Docs
Sign in
Browse the docs

Using Alara Code

Members and permissions

Who can see a project, who can run, approve or stop a step, and how organization roles decide it.

14 min read6 sections

Two separate questions decide what you can do with a project. Visibility decides whether you can open it at all: you created it, you are on a team attached to it, or you are an organization administrator. Permissions decide what you can do once it is open, such as run a step, approve a document, stop a run, bind the agent or push to a repository. Permissions come from your role in PolyX. This page covers both, who can see a project, and what you see when a permission is missing.

Two layers: visibility and permissions

Flow
  • You open a project or click a control to Project in your organization?
  • Project in your organization? to Project not found, No
  • Project in your organization? to Can you see it?, Yes
  • Can you see it? to Project not found, No
  • Can you see it? to Does your role grant the module and action?, Yes
  • Does your role grant the module and action? to Permission required, No
  • Does your role grant the module and action? to The action runs, Yes
  • Visibility is worked out from the project's creator, its attached teams and your organization role. Being able to see a project never gives you any action on it.
  • Permissions are PolyX module grants on your role. Having a grant never lets you see a project that visibility hides from you.
  • Everything is scoped to the organization you are signed in to. A project that belongs to another organization looks exactly like one that does not exist.

Who can see a project

You can open a project in your current organization if any of these is true:

You are…How it is decided
Its creatorYou created the project.
An organization administratorAdministrators see every project in their organization.
On an attached team (Whole team)The team is attached with Whole team access and you are on that team's current roster.
Picked from an attached team (Selected)The team is attached with Pick members access and you are one of the people picked.
Head of a departmentYou head a department that owns one of the project's attached teams.

A project with no teams attached can be opened only by its creator and by organization administrators.

A Whole team attachment follows the team's live roster. When someone joins the team in PolyX, they can see the project after the next organization sync. When someone leaves, they lose it. A Pick members attachment lists specific people and does not change when the team does.

If you open a link to a project you cannot see, the page shows Project not found with "The project may have been deleted or you do not have access." The same page appears for a project that really was deleted, and for a project in another organization.

Permissions: what each action needs

Alara Code checks four groups of PolyX modules: Projects and its sub-modules, Settings and its sub-modules, Usage and its sub-module, and Wiki and its sub-modules. Each one has its own grants. A grant on one module gives nothing on another, so Projects with every action does not include Projects › Run, and Settings does not include Settings › Alara Plan.

Module (as the UI names it)What it covers
ProjectsThe project and everything you read in it (documents, artifacts, run history, cost, the board), plus creating, deleting, linking to and syncing with Alara Plan, and re-syncing the board
Projects › RunStarting steps, requesting changes, approving, the project chat, uploading the RFP, and viewing runs and their live output
Projects › AbortStopping a running step
Projects › BindingSeeing, binding, checking and removing the project's Alara agent, and listing the organization's agents
MembersListing and changing a project's team attachments. In PolyX it sits under Projects
IntegrationsA project's repository through the organization's GitHub / Azure DevOps connection: create or pick a repository, push documents, disconnect. In PolyX it sits under Projects

The Usage and Wiki modules

Module (as the UI names it)What it covers
UsageThe Usage item in the sidebar and your own AI usage and cost on Native projects
Usage › OrganizationThe organization's usage, by person, project, model and step
WikiEvery read of a project's repository index: its status, the Graph, the guide and the Architecture picture
Wiki › AskAnalyse and the Ask & Impact chat (these make a model call)
Wiki › IndexIndex and Re-Index on the Repository tab

Like every sub-module, these inherit nothing from their parent: Wiki › Index does not let you read the index without Wiki.

Projects, Members and Integrations have the actions create, read, update and delete; the sub-modules have only the actions PolyX lists for them. manage grants every action on that one module.

The Settings modules

Settings is in the sidebar, below Artifacts. You see it, and can open the Settings page, only when your role includes Settings › read. Each section of the page is its own module, and the page shows only the sections your role includes.

Module (as the UI names it)ActionsWhat it covers
SettingsreadThe Settings item in the sidebar and the Settings page itself
Settings › Organization agentsreadThe Alara Agents section (the permission keeps its original name): the agents shared with Alara Code for your organization
Settings › Alara Planread, update, deleteThe Alara Plan section (read); saving and verifying the organization's service key (update); disconnecting it (delete)
Settings › API keyread, update, deleteThe AI providers section: provider keys, allowed models, default and fallback model, budget and limits, and the change log at View all activity
Settings › Appearanceread, updateThe Appearance section (read); changing the theme, there and in the sidebar's theme switch (update)
Settings › Danger zonedeleteThe Danger zone section: together with Projects › delete, Delete all projects
Settings › Organization Repositoriesread, update, deleteThe Repositories section (read; the permission keeps its original name); connecting GitHub, saving or replacing the Azure DevOps token, re-checking them (update); removing them (delete)

Like every sub-module, a Settings section inherits nothing from Settings. The other way round, a section grant without Settings › read still lets the bridge answer that section's requests, but you have no way to open the page.

Action reference

What you doWhere in the appModule › action needed
See your projects list and its activity chartProjects pageProjects › read
Open a project, read its documents and artifacts, download themProject, Artifacts tabProjects › read
See Activity and costsActivity tabProjects › read
See the board and a ticket's linked requirements and testsBoard tabProjects › read
Create a projectNew projectProjects › create
Change the project's inputsProject inputsProjects › update
Publish the board to Alara Plan, or re-sync an unlinked boardPublish to Alara Plan, Sync from manifestProjects › update
Link a project to Alara PlanBoard › Link to Alara Plan, or Project Settings › Alara PlanProjects › update
Sync with Alara Plan nowBoard › Sync now, or Settings › Alara Plan › Sync nowProjects › update
See the organization's Alara Plan connectionSettings › Alara PlanSettings › Alara Plan › read
Connect or verify Alara Plan for the organization (the service key and the Alara Plan organization id beside it)Settings › Alara PlanSettings › Alara Plan › update
Disconnect Alara Plan for the organizationSettings › Alara Plan › DisconnectSettings › Alara Plan › delete
See the organization's GitHub and Azure DevOps connectionsSettings › RepositoriesSettings › Organization Repositories › read
Connect GitHub or Azure DevOps for the organization, replace the token, re-checkSettings › RepositoriesSettings › Organization Repositories › update
Remove the organization's GitHub or Azure DevOps connectionSettings › Repositories › RemoveSettings › Organization Repositories › delete
Delete a projectProject Settings › Delete projectProjects › delete
Delete all your projectsSettings › Danger zone › Delete all projectsProjects › delete and Settings › Danger zone › delete
See your profile (name and email)Account menu › ProfileNone, everyone sees their own
See your own AI usageUsage in the sidebarUsage › read
See the organization's usageUsage › OrganizationUsage › Organization › read
See the repository's index status, Graph and Architecture pictureRepository and Architecture tabsWiki › read
Analyse the architecture, or ask the Architecture chat a questionArchitecture › Analyse, Ask & ImpactWiki › Ask › create
Index or re-index the repositoryRepository › IndexWiki › Index › create
See the organization's agents in SettingsSettings › Alara AgentsSettings › Organization agents › read (or Projects › Binding › read)
Change the themeSettings › Appearance, or the sidebar's theme switchSettings › Appearance › update
Start a stepSDLC Pipeline step railProjects › Run › create
Request changes to a documentRequest changesProjects › Run › create
Approve a documentApprove, or Approve tickets on the boardProjects › Run › create
Upload or replace the RFPUpload RFP / Replace RFPProjects › Run › create
Send a chat message to the agentSDLC Pipeline composerProjects › Run › create
Read the chat history and watch a reply streamSDLC PipelineProjects › Run › read
See step states, approvals, runs and a run's outputSDLC Pipeline, Runs pageProjects › Run › read
Stop a running stepStopProjects › Abort › create
See the bound agent, list the organization's agentsSettings › AgentProjects › Binding › read
Check the agent's skill filesCheck agentProjects › Binding › read
Bind or change the agentBind agent / Change agentProjects › Binding › update
Remove the agentRemoveProjects › Binding › delete
List a project's teamsAPIMembers › read
Attach teamsAPIMembers › create
Change a team's access mode or picked membersAPIMembers › update
Detach a teamAPIMembers › delete
See repository connection statusRepository tabIntegrations › read
Connect GitHub or Azure DevOps, create or pick a repositoryRepository tabIntegrations › create
Push documents to the repositoryPush docs to GitHub, or the Azure DevOps pushIntegrations › update
Disconnect the repositoryRepository tabIntegrations › delete

A few things are worth knowing:

  • Approving is the same grant as running. Approving moves the pipeline forward, so it needs Projects › Run › create, like starting a step.
  • Creating a project is not enough to run it. The creator has no automatic rights. Whoever creates a project still needs Run, Abort, Binding and Integrations to drive it.
  • Deleting all projects removes only the projects you created in the current organization, and needs both Projects › delete and Settings › Danger zone › delete. Neither delete works while a command is running.
  • Reading the Alara Plan connection needs no grant. The New project form, the project's Alara Plan card and the board read it for everyone, so linking a project works without any Settings grant.
  • Your profile is in the account menu, not in Settings: click your name at the bottom of the sidebar and choose Profile. It shows your full name and email, read-only and managed in PolyX, and needs no permission.
  • Account & security (two-factor sign-in) stays in the account menu at the bottom of the sidebar and needs no module grant. The account menu no longer has a Settings entry.
  • Your account is deleted in PolyX, not in Alara Code. There is no Delete account button in Settings; ask your organization administrator, who removes you in PolyX.

Organization administrators

Alara Code treats you as an organization administrator when your PolyX permission is named as one, for example "Organisation Administrator", "Organization Admin", "Admin" or "Owner". An administrator:

  • sees every project in the organization;
  • gets no extra actions from being an administrator. To run, approve, stop, bind or push, the administrator's role must hold the same module grants as everyone else's.

When you lack a permission

The app disables a control before you click it when your role lacks the grant. Hover over the disabled control to see why. The tooltip reads Needs followed by the module and action, for example "Needs Projects › Run › create" or "Needs Integrations › update".

Where a whole area is blocked, the app says so in place:

  • SDLC Pipeline. When you cannot run steps, the message box is replaced by a note and the step rail's run buttons are disabled with the same reason. The note's title is the missing grant, followed by: "Your role does not include Projects › Run › create. Ask an organization administrator to add it to your role in PolyX." Approve and Request changes are disabled with the same reason. Stop is disabled when you lack Projects › Abort.
  • No agent bound. If you have the grant but the project has no agent, the note reads "No Alara agent bound" and "Bind one of the organization's agents in Project Settings › Agent before running a step.", with an Open Project Settings link. A missing grant is reported before a missing agent.
  • Repository tab. When you cannot read the integration, the tab shows "Repository settings are not available to you" and names the missing grant.
  • Settings. Without Settings › read the sidebar has no Settings item. Opening /settings directly shows "Your role does not include Settings" with the same ask-an-administrator sentence. On the page, each section appears only with its own grant.

If the app could not work out your grants before you clicked, the bridge still refuses the request. You then see a toast titled Permission required with the same sentence: "Your role does not include module › action. Ask an organization administrator to add it to your role in PolyX."

The fix is always in PolyX. An organization administrator adds the module and action to your role there. Changes can take a minute to reach Alara Code, because both the bridge and the app cache your grants briefly.

Under the hood

  • Every protected bridge route is mapped to one module and action in bridge/src/config/access-control.ts. The action comes from the HTTP method (GET is read, POST is create, PUT and PATCH are update, DELETE is delete) unless the route overrides it. A refusal is 403 PERMISSION_DENIED with { module, action } in the error details.
  • A route can accept another module just as well (listing the organization's agents takes Projects › Binding › read or Settings › Organization agents › read), or need an extra grant for one method (deleting all projects needs Settings › Danger zone › delete on top of Projects › delete). The refusal names a grant you are missing.
  • Enforcement follows the deployment's ACCESS_CONTROL_MODE: off checks nothing, audit logs what it would refuse without refusing, and enforce refuses. The app disables controls only when the bridge reports enforce. In the other modes, anyone who can see a project can use every control on it.
  • A protected route with no mapping is refused with ROUTE_NOT_MAPPED under enforce. It is never silently allowed.
  • Visibility is one predicate (bridge/src/lib/projectScope.ts) that every project read and write loads through, always within the request's organization.

For how sign-in and the organization header reach the bridge, see Authentication and tenancy. For each endpoint's permission, see the API reference.