Skip to content

fix(hub): keep the coordinator's permissions past a day - #360

Open
TheGreatAxios wants to merge 3 commits into
mainfrom
cl-12467-let-interchange-keep-the-coordinators-permissions
Open

TheGreatAxios wants to merge 3 commits into
mainfrom
cl-12467-let-interchange-keep-the-coordinators-permissions

Conversation

@TheGreatAxios

@TheGreatAxios TheGreatAxios commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

What

A project's coordinator now gets its six permissions from the person who created its package. Interchange lends those with no one-day end and takes one back when that person loses it.

Why

Interchange ends the permissions a run borrows from its starter one day after the run starts, so an older coordinator was refused on its own project. I worked around that by copying the six permissions into Interchange's table by hand. Those copies never ended, so a coordinator kept a permission after the person lost it.

Interchange lends a creator's permissions only to a package stored as source, so the coordinator's package moves to source. The other agents stay as they are, so nothing an already-running agent reads changes.

Changed

  • The coordinator declares its six permissions with source: "creator".
  • The install commits the coordinator's two built files to a workflow asset and records the commit. The stored record accepts format: "source" beside format: "tarball".
  • The code that copied the coordinator's permissions on every start is deleted.
  • An install that a running agent starts runs as the person who deployed the coordinator, so the storage's creator is always a person.
  • The coordinator authority end-to-end test covers the creator source, the missing end date and a permission taken back.

Closes CL-12467

Interchange ends permissions a run borrows from its starter a day after it starts, so Builder
copied the coordinator's six permissions into the grant table by hand, and nothing removed a copy
when the person lost the permission. The coordinator now declares them from its package's creator,
which Interchange lends with no one-day end and takes back itself.

Interchange refuses creator permissions for a prebuilt package file, so the coordinator's package
is stored as source at a commit; the other agents are unchanged. An install a running agent starts
runs as the person who deployed the coordinator, so the storage's creator is always a person.
@linear-code

linear-code Bot commented Nov 26, 2026

Copy link
Copy Markdown

CL-12467

@corbits-triage

corbits-triage Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Triage: Unsure

Asking a maintainer about:

  • changes sensitive paths: auth: apps/hub/src/auth/agent-token-bridge.ts

Changed since the last verdict (Fail at ab42e72): 1 new commit.

@TheGreatAxios TheGreatAxios changed the title fix(hub): keep the coordinator's permissions past a day (CL-12467) fix(hub): keep the coordinator's permissions past a day Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant