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
- 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 creator | You created the project. |
| An organization administrator | Administrators 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 department | You 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 |
|---|---|
| Projects | The 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 › Run | Starting steps, requesting changes, approving, the project chat, uploading the RFP, and viewing runs and their live output |
| Projects › Abort | Stopping a running step |
| Projects › Binding | Seeing, binding, checking and removing the project's Alara agent, and listing the organization's agents |
| Members | Listing and changing a project's team attachments. In PolyX it sits under Projects |
| Integrations | A 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 |
|---|---|
| Usage | The Usage item in the sidebar and your own AI usage and cost on Native projects |
| Usage › Organization | The organization's usage, by person, project, model and step |
| Wiki | Every read of a project's repository index: its status, the Graph, the guide and the Architecture picture |
| Wiki › Ask | Analyse and the Ask & Impact chat (these make a model call) |
| Wiki › Index | Index 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) | Actions | What it covers |
|---|---|---|
| Settings | read | The Settings item in the sidebar and the Settings page itself |
| Settings › Organization agents | read | The Alara Agents section (the permission keeps its original name): the agents shared with Alara Code for your organization |
| Settings › Alara Plan | read, update, delete | The Alara Plan section (read); saving and verifying the organization's service key (update); disconnecting it (delete) |
| Settings › API key | read, update, delete | The AI providers section: provider keys, allowed models, default and fallback model, budget and limits, and the change log at View all activity |
| Settings › Appearance | read, update | The Appearance section (read); changing the theme, there and in the sidebar's theme switch (update) |
| Settings › Danger zone | delete | The Danger zone section: together with Projects › delete, Delete all projects |
| Settings › Organization Repositories | read, update, delete | The 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 do | Where in the app | Module › action needed |
|---|---|---|
| See your projects list and its activity chart | Projects page | Projects › read |
| Open a project, read its documents and artifacts, download them | Project, Artifacts tab | Projects › read |
| See Activity and costs | Activity tab | Projects › read |
| See the board and a ticket's linked requirements and tests | Board tab | Projects › read |
| Create a project | New project | Projects › create |
| Change the project's inputs | Project inputs | Projects › update |
| Publish the board to Alara Plan, or re-sync an unlinked board | Publish to Alara Plan, Sync from manifest | Projects › update |
| Link a project to Alara Plan | Board › Link to Alara Plan, or Project Settings › Alara Plan | Projects › update |
| Sync with Alara Plan now | Board › Sync now, or Settings › Alara Plan › Sync now | Projects › update |
| See the organization's Alara Plan connection | Settings › Alara Plan | Settings › Alara Plan › read |
| Connect or verify Alara Plan for the organization (the service key and the Alara Plan organization id beside it) | Settings › Alara Plan | Settings › Alara Plan › update |
| Disconnect Alara Plan for the organization | Settings › Alara Plan › Disconnect | Settings › Alara Plan › delete |
| See the organization's GitHub and Azure DevOps connections | Settings › Repositories | Settings › Organization Repositories › read |
| Connect GitHub or Azure DevOps for the organization, replace the token, re-check | Settings › Repositories | Settings › Organization Repositories › update |
| Remove the organization's GitHub or Azure DevOps connection | Settings › Repositories › Remove | Settings › Organization Repositories › delete |
| Delete a project | Project Settings › Delete project | Projects › delete |
| Delete all your projects | Settings › Danger zone › Delete all projects | Projects › delete and Settings › Danger zone › delete |
| See your profile (name and email) | Account menu › Profile | None, everyone sees their own |
| See your own AI usage | Usage in the sidebar | Usage › read |
| See the organization's usage | Usage › Organization | Usage › Organization › read |
| See the repository's index status, Graph and Architecture picture | Repository and Architecture tabs | Wiki › read |
| Analyse the architecture, or ask the Architecture chat a question | Architecture › Analyse, Ask & Impact | Wiki › Ask › create |
| Index or re-index the repository | Repository › Index | Wiki › Index › create |
| See the organization's agents in Settings | Settings › Alara Agents | Settings › Organization agents › read (or Projects › Binding › read) |
| Change the theme | Settings › Appearance, or the sidebar's theme switch | Settings › Appearance › update |
| Start a step | SDLC Pipeline step rail | Projects › Run › create |
| Request changes to a document | Request changes | Projects › Run › create |
| Approve a document | Approve, or Approve tickets on the board | Projects › Run › create |
| Upload or replace the RFP | Upload RFP / Replace RFP | Projects › Run › create |
| Send a chat message to the agent | SDLC Pipeline composer | Projects › Run › create |
| Read the chat history and watch a reply stream | SDLC Pipeline | Projects › Run › read |
| See step states, approvals, runs and a run's output | SDLC Pipeline, Runs page | Projects › Run › read |
| Stop a running step | Stop | Projects › Abort › create |
| See the bound agent, list the organization's agents | Settings › Agent | Projects › Binding › read |
| Check the agent's skill files | Check agent | Projects › Binding › read |
| Bind or change the agent | Bind agent / Change agent | Projects › Binding › update |
| Remove the agent | Remove | Projects › Binding › delete |
| List a project's teams | API | Members › read |
| Attach teams | API | Members › create |
| Change a team's access mode or picked members | API | Members › update |
| Detach a team | API | Members › delete |
| See repository connection status | Repository tab | Integrations › read |
| Connect GitHub or Azure DevOps, create or pick a repository | Repository tab | Integrations › create |
| Push documents to the repository | Push docs to GitHub, or the Azure DevOps push | Integrations › update |
| Disconnect the repository | Repository tab | Integrations › 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
/settingsdirectly 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 is403 PERMISSION_DENIEDwith{ 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:offchecks nothing,auditlogs what it would refuse without refusing, andenforcerefuses. The app disables controls only when the bridge reportsenforce. 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_MAPPEDunderenforce. 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.