Skip to content

feat(daemon): project active room grants into MCP env - #1721

Merged
lilyshen0722 merged 2 commits into
mainfrom
kai/task039
Sep 16, 2026
Merged

lilyshen0722 merged 2 commits into
mainfrom
kai/task039

Conversation

@lilyshen0722

@lilyshen0722 lilyshen0722 commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • project active, unexpired Commonly grant brokers into each assigned audience seat's environment.mcp
  • enforce grant broker identity, audience, current pod membership, revocation, and expiry at assignment time
  • preserve only safe MCP auth headers and use the per-grant API URL placeholder

Validation

  • npm test -- --runInBand __tests__/unit/routes/agentBinding.phase2.test.js
  • adjacent grant/catalogue/broker suites (23 tests)
  • npm run tsc:check
  • npm run build

The full backend suite was attempted; unrelated service suites fail during jsonwebtoken startup in the clean dependency install (buffer-equal-constant-time prototype error).

CLI consumer

  • Claude now preserves projected MCP headers, including Authorization: Bearer ${COMMONLY_AGENT_TOKEN}, while keeping the token as a per-spawn environment placeholder.
  • The CLI package is bumped to 0.1.44; merge/publish is required before assigned seats receive this consumer fix.
  • Codex seats cannot consume URL-transport grants until URL transport support lands in the Codex adapter; those seats remain hand-configured for now.

@lilyshen0722
lilyshen0722 merged commit 4e8de86 into main Sep 16, 2026
14 checks passed
lilyshen0722 added a commit that referenced this pull request Sep 18, 2026
…inds only a seat with no ambient credentials (TASK-053)

The 2026-09-18 stranger run on commonly.me reached C4: admin-minted grant
11:32:51Z, first approved write (issue #1745) 12:10:11Z, close approved
12:16:28Z, five-row trail read as the stranger at 12:20Z. The row now carries
the timeline, the ~28 minutes the seat cost, the thirteen stumbles filed from
the recording (TASK-039..058, #1743) and the evidence paths.

#1714's exit criterion said the stranger grants and approves; the run showed
the stranger can do neither. The criterion now says what happened: the admin
installs once, grants and approves; the stranger mentions the seat and reads
the trail.

tools-catalogue-room-grants.md: the "no daemon or adapter change" claim in §4
and §8 did not survive the run (#1721 projection reaches daemon-supervised
seats only, launchd token-file seats never see it; #1743; #1740; codex). New
§4 statement: a grant binds a seat, not an agent, and only a seat with no other
path to the provider — the host-gh answer left a 0-call trail — so the public
sandbox default is the seat half of the confirmation floor, not an option
(TASK-052, #1746, #1744).

Eight stranger-view captures at 1200 under docs/design/evidence/.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
lilyshen0722 added a commit that referenced this pull request Sep 19, 2026
…inds only a seat with no ambient credentials (TASK-053)

The 2026-09-18 stranger run on commonly.me reached C4: admin-minted grant
11:32:51Z, first approved write (issue #1745) 12:10:11Z, close approved
12:16:28Z, five-row trail read as the stranger at 12:20Z. The row now carries
the timeline, the ~28 minutes the seat cost, the thirteen stumbles filed from
the recording (TASK-039..058, #1743) and the evidence paths.

#1714's exit criterion said the stranger grants and approves; the run showed
the stranger can do neither. The criterion now says what happened: the admin
installs once, grants and approves; the stranger mentions the seat and reads
the trail.

tools-catalogue-room-grants.md: the "no daemon or adapter change" claim in §4
and §8 did not survive the run (#1721 projection reaches daemon-supervised
seats only, launchd token-file seats never see it; #1743; #1740; codex). New
§4 statement: a grant binds a seat, not an agent, and only a seat with no other
path to the provider — the host-gh answer left a 0-call trail — so the public
sandbox default is the seat half of the confirmation floor, not an option
(TASK-052, #1746, #1744).

Eight stranger-view captures at 1200 under docs/design/evidence/.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
lilyshen0722 added a commit that referenced this pull request Sep 19, 2026
…y a seat with no ambient credentials (TASK-053) (#1749)

* docs(plans): C4 exit record — the stranger run reached, and a grant binds only a seat with no ambient credentials (TASK-053)

The 2026-09-18 stranger run on commonly.me reached C4: admin-minted grant
11:32:51Z, first approved write (issue #1745) 12:10:11Z, close approved
12:16:28Z, five-row trail read as the stranger at 12:20Z. The row now carries
the timeline, the ~28 minutes the seat cost, the thirteen stumbles filed from
the recording (TASK-039..058, #1743) and the evidence paths.

#1714's exit criterion said the stranger grants and approves; the run showed
the stranger can do neither. The criterion now says what happened: the admin
installs once, grants and approves; the stranger mentions the seat and reads
the trail.

tools-catalogue-room-grants.md: the "no daemon or adapter change" claim in §4
and §8 did not survive the run (#1721 projection reaches daemon-supervised
seats only, launchd token-file seats never see it; #1743; #1740; codex). New
§4 statement: a grant binds a seat, not an agent, and only a seat with no other
path to the provider — the host-gh answer left a 0-call trail — so the public
sandbox default is the seat half of the confirmation floor, not an option
(TASK-052, #1746, #1744).

Eight stranger-view captures at 1200 under docs/design/evidence/.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

* docs(plans): C4 record — the trail capture shows the trail; two captures renamed for what they show

Vera (69588): the three captures named for trail states were the same Tools
viewport with the trail below the fold. T4 is re-shot as the stranger with the
trail card in view (5 calls, 0 refused, five rows). T1 and T2 cannot be
re-shot — those states are gone — so they are renamed for the granted row
they do show (1m, 33m) and the row cites the ledger reads for the empty →
one-call progression. #1746 is now merged (48a5ea9); the row says so.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

* docs(plans): C4 record — the ledger reads carry the progression by row timestamp, and the T4 capture is dated by its own row

Co-Authored-By: Claude Fable 5.1 <[email protected]>

---------

Co-authored-by: Claude Fable 5.1 <[email protected]>
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