Repository navigation
[CTX-1842] docs(security): record the P0-AC-022 live scope evidence (bitty#2921) - #511
Merged
Merged
Conversation
… evidence (bitty#2921) The 2026-11-13 and 2026-11-15 records carried four residual cells for `P0-AC-022` (per-action IPC scopes). The code change at `bitty` `a8abf31c` (bitty-terminal/bitty#3182) supplies three of them from the tree, so this record captures what was actually run and leaves the criterion Partially verified for the one reason that remains: the independent review. New: - `docs/security/audits/bittyd-ac022-scopes-2026-11-16.md` — the dated single-criterion record: the pre-run cell enumeration, source identity (`a8abf31c`, `bittyd 0.0.42` service API 1.5, binary digests), the client disclosure (three corpus vectors, one matrix target, one live `ctl` target), the matrix result, the terminal-instance elevation transcript with exit codes, the per-cell live table for `session.resize`, `session.control.transfer`, `session.grant.revoke`, and `lease.heartbeat`, a disposition table, and the residuals it does not claim. - `docs/security/audits/ac022-scope-matrix-2026-11-16.md` — the 15-scope by 51-method artifact as one table: 765 cells, 51 allowed, 714 `Denied/ScopeDenied`, plus the invariants the generating test asserts and the boundaries the artifact does not cross. Updated, exact observed results only: - `docs/security/evidence-matrix.md`: a fifth campaign entry; a per-criterion table for the new record; the `DR-01`/`DR-03` remaining-gap text, since the transfer, grant-revoke, and heartbeat cells are now observed live and only `C-10` and the review remain; the `R-011` rationale, which no longer cites unrun cells; and a residual bullet that names what is still open. - `docs/security/p0-acceptance-criteria.md`: the campaign-status preamble count and the `P0-AC-022` row's evidence and residual columns. The status stays Partially verified. - `docs/security/README.md`: index rows for the record and the artifact. Every still-unrun cell is labelled as such in the record's `Residuals` section: the arbitrary single-scope live grant (`C-09` `deferred`, bitty#2917), the MCP/Agent adapter audit, a live `ctl window new`, live `terminal send` and `terminal text`, second-uid and Windows cells, and the independent review. Gates: `bunx --bun [email protected] --check . --ignore-unknown`; `bunx --bun [email protected]` (126 files, 0 issues); `check-docs.mjs links|metadata|language|agents|hygiene` (126 files each, under a node shim because `import.meta.dir` is Bun-only here).
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.
What this records
A dated evidence record for
P0-AC-022(per-action IPC scopes) atbittya8abf31c, plus the scope-by-method matrix as a standalone artifact. The codechange that makes it replayable is bitty-terminal/bitty#3182.
The 2026-11-13 record left this residual cell, and 2026-11-15 carried it
forward:
New files
docs/security/audits/bittyd-ac022-scopes-2026-11-16.md— the record.It lists the six cells as enumerated before anything ran, then source
identity (
a8abf31c,bittyd 0.0.42, service API 1.5, binary digests,toolchain, host class,
0700throwaway roots, own PIDs only), the clientdisclosure (three corpus vectors, one matrix target, one live
ctltarget,all committed), the matrix result, the terminal-instance elevation transcript
with exit codes, the per-cell live table, a disposition table, and the
residuals it does not claim.
docs/security/audits/ac022-scope-matrix-2026-11-16.md— the artifact:765 cells, 51 allowed, 714
Denied/ScopeDenied, one allowed cell per method,with the invariants the generating test asserts and the three boundaries the
artifact does not cross (transport registry vs daemon catalog, component tier
vs served exchange, one live grant shape).
What was observed
Denied/ScopeDenied; no scope substitutes for anotherbitty ctlunder the default grantterminal spawn,terminal close,workspace close→ exit7,Denied/ScopeDenied, scopeterminal.manage;config reload→ exit7, scopeconfig.modify; refused spawn leaves the terminal count at oneBITTY_CTL_ELEVATE=config.modify0, spawn still exit7BITTY_CTL_ELEVATE=terminal.manage0(t:2created), reload still exit7session.resizeC-17step 7Denied/ControllerRequired(observer), step 8ok(controller);C-27steps 9/10 — authority follows the transferred leasesession.control.transferC-27step 7Denied/ControllerRequired(observer), step 8ok;C-11step 10Denied/InvalidControlToken;V-41step 9Validation/InvalidRequestsession.grant.revokeC-28step 8Denied/ControllerRequired(observer), step 9ok, step 11 revoked bearerDenied/ObserverGrantRequired, step 12not_active;V-38step 14 uniformnot_activelease.heartbeatC-26steps 7/8NotFound/NotFound(foreign and unknown attach id, one answer), steps 9/10ok(owner)The real-driver conformance row is 68 pass, 0 fail, 18 typed skips of 86 at
this revision.
What this does not claim
The criterion stays Partially verified.
P0-AC-022's verification methodnames an independent security review, and that is still absent; a record is
evidence for review, not the verdict. Also unrun and labelled as such in the
record's
Residualssection:bittyd(C-09deferred,bitty#2917) — every same-uid connection negotiates one fixed grant set, so
"granted only
terminal.inspect" is not reachable live;ctl window new— the headless--test-modeloop has no app threadfor the new-window lane, so it answers
Unavailable(exit6), which thisrecord marks not observed rather than passing;
terminal send/terminal textover the socket;No
R-*orDR-*state moves.DR-01,DR-03, and theR-011rationale areupdated only to say which cells are now observed and what still remains.
Gates
bunx --bun [email protected] --check . --ignore-unknownbunx --bun [email protected]check-docs.mjs linkscheck-docs.mjs metadatacheck-docs.mjs languagecheck-docs.mjs agentscheck-docs.mjs hygienejust checkitself cannot complete here (bun/bunx is unreliable in thisenvironment), so the gates above were run individually: prettier and
markdownlint through
bunxwith the pinned versions echoed above, and thecheck-docs.mjssubcommands through a node shim because the script uses theBun-only
import.meta.dir.Refs bitty#2921. Companion code PR: bitty-terminal/bitty#3182.