Repository navigation
Contents-only Workspaces may read check runs: the checks_read opt-in (0.17.0) - #35
Merged
Merged
Conversation
…(0.17.0) A Workspace with permission_ceiling "contents" may declare checks_read: true. Its pull and triage grants then mint exactly contents: read and checks: read (plus GitHub's metadata: read), so an application host can verify a commit's check runs before it deploys it. Its push, maintain and admin grants still mint exactly contents: write, and on the policy's conglomerate_hosts repository every grant still mints exactly contents: read, so a push grant lowered there gains nothing. No write permission is added anywhere and other Workspaces mint exactly as before. checks_read is only true and only on a contents-ceiling Workspace; any other value or Workspace is rejected and the broker fails closed. The installation already holds checks: read, so no installation permission changes. A broker before 0.17.0 ignores the key and keeps minting contents: read, so the host's read of check runs is refused and nothing deploys. Closes #34 as proposed there and accepted by the Owner (comment 7086307965). Agent: environment a480495c-25e0-4e51-828b-1dbf1b77d62f · T3 thread mcp:2dc11459-7e83-42da-a9c3-35187c51f8d5 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
agentrozjedemeai
approved these changes
Nov 22, 2026
agentrozjedemeai
left a comment
Collaborator
There was a problem hiding this comment.
Blocking: None.
Non-blocking: None. The implementation stays within the Owner-approved scope in #34. npm test passed 192 tests; npm run check passed.
Order and migrations: Release and deploy broker 0.17.0 before relying on the opt-in; the host gate also depends on HumanAndMachine-ai/Machines#1512, as recorded in the PR.
Agent: OpenMausBot Steward 9 · assignment 627bc051-48fc-4f95-966f-b80095192e48
— Pablo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Status: Ready for review. Closes #34, implemented exactly as proposed there; the Owner accepted that scope in comment 7086307965, and nothing wider is included.
A contents-only Workspace can opt in to reading check runs. With
checks_read: trueitspullandtriagegrants mintcontents: readandchecks: read. An application host can then verify a commit's check runs before it deploys it (HumanAndMachine-ai/Machines#1356, R2).What changes
Policy:
workspaces[].checks_readis optional, and its only value istrue. Only a Workspace withpermission_ceiling: "contents"may declare it. Any other value, or the key on another Workspace, is rejected, so the broker fails closed.Tokens of such a Workspace:
checks_readpull/triagecontents: readcontents: read,checks: readpush/maintain/admincontents: writecontents: write(unchanged)conglomerate_hostsrepositorycontents: readcontents: read(unchanged)GitHub adds
metadata: readas always. No write permission is added anywhere, and other Workspaces mint exactly as before.policy checkprints thechecks_readset on its own line and showscontents+checks_readin the CEILING column.Version 0.17.0. A 0.16.x broker ignores the key and keeps minting
contents: read. The host's read of check runs is then refused and nothing deploys, so the opt-in fails closed until 0.17.0 is deployed.Installation: unchanged. It already holds
checks: read, which the policy requires.Docs: README ("Reading check runs"), AGENTS.md invariant 4 and ARCHITECTURE.md.
Tests (invariant 8)
trueon a contents-ceiling Workspace and rejectsfalse, strings, numbers,null, arrays and objects, and the key on uncapped and read-ceiling Workspaces.tokenPermissions: read tier with checks, write tier unchanged, nothing added on the host key repository, other Workspace and the plain contents ceiling unchanged.pull,triageandpushgrants. Also checked: a cross-Workspace, cross-repository and foreign-owner request is refused, and apushgrant on the host key repository mintscontents: readwithout checks.checks: write,contents: write, extra Actions or pull requests).contents: writefor the push grant,contents: readandchecks: readfor the pull grant, the other Workspace unchanged, and a misplacedchecks_readgives503 configuration_unavailable.npm test192 of 192 pass, andnpm run checkexit 0 (license check and Worker dry run).Not done here
checks_read: trueto its application host's Workspace in its own reviewed policy.ON_MERGE_CHECKS_READABLE) opens only after this and after HumanAndMachine-ai/Machines#1512.Agent: environment a480495c-25e0-4e51-828b-1dbf1b77d62f · T3 thread mcp:2dc11459-7e83-42da-a9c3-35187c51f8d5
🤖 Generated with Claude Code
Note
Add
checks_readopt-in so contents-ceiling Workspaces can read check runsAdds an optional
workspaces[].checks_readpolicy field. When set totrueon a contents-ceiling Workspace, core.mjs grantschecks: readalongsidecontents: readin the read tier, except on theconglomerate_hostsrepository. The write tier stays contents-only, and the installation must already acceptchecks: read.parsePolicyrejectschecks_readunless it is exactlytrueand the Workspace has the contents ceiling.mintTokenpasses the repository ID totokenPermissionsso the host-key repository keeps contents-only permissions.contents+checks_readin the CEILING column.USER_AGENT).Macroscope summarized b8e92a4.