You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
id: CLI scenario tests for delegate/revoke (#6379 F5) #13532
Stage-2 test packet for #6379 (finding F5 from the stage-1 audit, task 14441; routed by the 2026-11-17 triage, task 18481).
Property/scenario coverage at the fold layer is deep (pkgs/id/crates/id-events/src/groups/tests.rs, voiding_scenarios.rs, membership_properties.rs, …), but the actual id delegate / id revoke commands have only 2 CLI-level tests (pkgs/id/tests/cli_delegation.rs, verified 2026-11-23 against origin/main).
Add CLI scenario tests for the four named scenarios, exercising the real commands end to end:
Attenuation refusal — delegating a scope the grantor does not hold at that position is refused.
Cross-world cap — a cross-world grant above Write, or naming an empty world, is refused.
Device scope cap — a device acting for an account above its device scope is refused.
Acceptance: the four scenarios run green remotely as part of the pkgs/id test suite; each test names the refusal it asserts (no assertion-free smoke tests).
Filed by lane felix (2026-11-23) as a stage-2 packet of #6379, without a pilot packet: Felix's lane queue is operator-managed via the prioritized shortlist (the #13342 pattern), so follow-ups are picked up from the shortlist in order rather than enqueued separately. The parent record is #6379; the design core is PR #13535.
agent-note:v1 — claim: Lane AU13 (archer), 2026-11-23. Taking #13532: add CLI scenario tests for id delegate / id revoke covering the four named refusal scenarios, in the style of pkgs/id/tests/cli_delegation.rs.
Premise + ownership check (fresh, 2026-11-23): issue open, no labels, comments count-confirmed at 2 (automated Kaneo link + the felix filing note) — no lane claim, no user/* label, no design-protection/ratification gate, no recorded flag hold. Acceptance per the issue: the four scenarios run green as part of the pkgs/id test suite; each test names the refusal it asserts (no assertion-free smoke tests). Scenario 2 asserts current behaviour (revoke by a non-manager who is not the grant's grantor is refused), per the issue's own caveat about the pending F2 change.
agent-note:v1 — claim: Lane AU12 (archer), 2026-11-23. Taking #13532: add CLI scenario tests for delegate/revoke in pkgs/id/tests/cli_delegation.rs covering the four named refusal scenarios (attenuation refusal, veto by non-manager refusal, cross-world cap, device scope cap), each test naming the refusal it asserts.
Premise + ownership check (fresh, 2026-11-23): issue open, no labels, comments count-confirmed at 2 (automated Kaneo link + the lane-felix filing note) — no lane claim, no user/* label, no design-protection/ratification gate, no flag hold. fleet agent next returned no claimable task, so this was picked directly from GitHub. Tests will assert current shipped rules (the F2 grantor-veto change in #13534 is gated on PR #13535 and has not landed, so scenario 2 asserts the current manager-only veto rule).
agent-note:v1 — FLAG HOLD: Lane AU12 (archer), 2026-11-23. The platform execution-risk check fired on the tool result of this lane's laptop worktree creation for #13532 (~/wt-lane-au12-13532, branch lane-au12-13532, off origin/main at 1f9bc15391c). Per the standing lane guard I stopped immediately:
Nothing was run, built, tested, or edited inside that checkout; it is left exactly as created (no cleanup either).
The premise stands as verified in my claim (c.7109447677): only 2 CLI-level tests exist in pkgs/id/tests/cli_delegation.rs; the four refusal scenarios are the acceptance.
This item needs Drew's item-specific go-ahead before any lane operates in a checkout for it. The claim above stays as the record of intent; the work is ready to resume the moment the go-ahead lands.
Routed to a laptop OpenCode session — Lane RT1 (archer), 2026-11-23.
Per Drew's direction at 12:16 CST today ("use the laptop instead of local disk"), this item leaves the Muse lane rotation: its checkout content trips the platform execution-risk check in Muse sessions (one recorded firing (Lane AU12, at worktree creation; Lane AU13's parallel claim is superseded by this route)), and Drew's approvals do not clear that check. The work will instead be done in-session by a laptop OpenCode lane; Archer merges via the GitHub API from the evidence record it posts.
Queue task: 21422 (repo-health-code-pilot, read back as queued after enqueue). Scope: add the four named CLI scenario tests for id delegate / id revoke (attenuation refusal, veto by non-manager refusal, cross-world cap, device scope cap) in the style of pkgs/id/tests/cli_delegation.rs, run them green in the pkgs/id suite, and open the PR. The task instructs the session to work entirely on the laptop, post the full evidence record on this issue and the PR it opens, state READY TO MERGE with the head SHA, and not merge — the merge is Archer's step.
Prior Muse claims on this item are superseded by this route; the flagged Muse worktrees stay exactly as they were left.
agent-note:v1 — stand-down + handover: Lane AU13 (archer), 2026-11-23. This lane claimed #13532 first (c.7109442074, 17:57:48Z, fourteen seconds before Lane AU12's claim) and completed the implementation before re-reading the thread for the PR step, where AU12's flag hold (c.7109458008) and Lane RT1's routing of this item to a laptop OpenCode session (c.7110416763, under Drew's 12:16 CST direction) had landed meanwhile. Per the routing, this lane does not push or open a PR — the routed session owns the landing. The finished work is left for it to adopt:
Where: laptop worktree ~/wt-lane-au13-13532, branch lane-au13-13532 off origin/main 1f9bc15391c, change uncommitted. One file: pkgs/id/tests/cli_delegation.rs, +224/−1 (the import line widens; four tests and one helper added; nothing else touched).
What: the four named scenarios, each asserting the fold's decision through the library —
attenuation: Ann holds read and delegates write → command fails, grant recorded Refused(Attenuated);
veto by non-manager: reader member Bob (not the grantor) runs id revoke on the owner's grant → Refused(NotManager), grant stays in force;
cross-world cap: Manage crossing and empty-world Write crossing → Refused(NotCrossable); control Write crossing naming a world → Applied;
device scope cap: Ann (holds write) authorizes a device capped at read; Ann delegates write OK, the device delegates read OK, the device's write delegation → Refused(Attenuated).
Two setups are recorded through GroupLog on the shared log because no CLI command emits them yet — crossings (scenario 3's grants) and device authorizations (scenario 4) — with a comment in the file saying so; the actions under test in scenario 4 are the real id delegate commands.
Verification:cargo test --test cli_delegation in the pkgs/id dev shell on the laptop: 6 passed / 0 failed (the 2 pre-existing tests plus the 4 new), exit 0. Build note for whoever lands it: the shared ~/.cargo package-cache lock is heavily contended by parallel lanes; the green run used a private CARGO_HOME copy plus a private target dir inside the worktree (both still present there), with sccache disabled (defect #13367 pattern).
For the record: this lane's own worktree creation did not trip the platform check; AU12's did. No PR was opened and nothing was pushed by this lane.
Activity
developing-today commentedon Nov 23, 2026
CODE-4941
dezren39 commentedon Nov 23, 2026
Filed by lane felix (2026-11-23) as a stage-2 packet of #6379, without a pilot packet: Felix's lane queue is operator-managed via the prioritized shortlist (the #13342 pattern), so follow-ups are picked up from the shortlist in order rather than enqueued separately. The parent record is #6379; the design core is PR #13535.
dezren39 commentedon Nov 23, 2026
agent-note:v1 — claim: Lane AU13 (archer), 2026-11-23. Taking #13532: add CLI scenario tests for
id delegate/id revokecovering the four named refusal scenarios, in the style ofpkgs/id/tests/cli_delegation.rs.Premise + ownership check (fresh, 2026-11-23): issue open, no labels, comments count-confirmed at 2 (automated Kaneo link + the felix filing note) — no lane claim, no user/* label, no design-protection/ratification gate, no recorded flag hold. Acceptance per the issue: the four scenarios run green as part of the
pkgs/idtest suite; each test names the refusal it asserts (no assertion-free smoke tests). Scenario 2 asserts current behaviour (revoke by a non-manager who is not the grant's grantor is refused), per the issue's own caveat about the pending F2 change.dezren39 commentedon Nov 23, 2026
agent-note:v1 — claim: Lane AU12 (archer), 2026-11-23. Taking #13532: add CLI scenario tests for delegate/revoke in pkgs/id/tests/cli_delegation.rs covering the four named refusal scenarios (attenuation refusal, veto by non-manager refusal, cross-world cap, device scope cap), each test naming the refusal it asserts.
Premise + ownership check (fresh, 2026-11-23): issue open, no labels, comments count-confirmed at 2 (automated Kaneo link + the lane-felix filing note) — no lane claim, no user/* label, no design-protection/ratification gate, no flag hold.
fleet agent nextreturned no claimable task, so this was picked directly from GitHub. Tests will assert current shipped rules (the F2 grantor-veto change in #13534 is gated on PR #13535 and has not landed, so scenario 2 asserts the current manager-only veto rule).dezren39 commentedon Nov 23, 2026
agent-note:v1 — FLAG HOLD: Lane AU12 (archer), 2026-11-23. The platform execution-risk check fired on the tool result of this lane's laptop worktree creation for #13532 (
~/wt-lane-au12-13532, branchlane-au12-13532, off origin/main at1f9bc15391c). Per the standing lane guard I stopped immediately:dezren39 commentedon Nov 23, 2026
Routed to a laptop OpenCode session — Lane RT1 (archer), 2026-11-23.
Per Drew's direction at 12:16 CST today ("use the laptop instead of local disk"), this item leaves the Muse lane rotation: its checkout content trips the platform execution-risk check in Muse sessions (one recorded firing (Lane AU12, at worktree creation; Lane AU13's parallel claim is superseded by this route)), and Drew's approvals do not clear that check. The work will instead be done in-session by a laptop OpenCode lane; Archer merges via the GitHub API from the evidence record it posts.
Queue task: 21422 (repo-health-code-pilot, read back as queued after enqueue). Scope: add the four named CLI scenario tests for id delegate / id revoke (attenuation refusal, veto by non-manager refusal, cross-world cap, device scope cap) in the style of pkgs/id/tests/cli_delegation.rs, run them green in the pkgs/id suite, and open the PR. The task instructs the session to work entirely on the laptop, post the full evidence record on this issue and the PR it opens, state READY TO MERGE with the head SHA, and not merge — the merge is Archer's step.
Prior Muse claims on this item are superseded by this route; the flagged Muse worktrees stay exactly as they were left.
dezren39 commentedon Nov 23, 2026
agent-note:v1 — stand-down + handover: Lane AU13 (archer), 2026-11-23. This lane claimed #13532 first (c.7109442074, 17:57:48Z, fourteen seconds before Lane AU12's claim) and completed the implementation before re-reading the thread for the PR step, where AU12's flag hold (c.7109458008) and Lane RT1's routing of this item to a laptop OpenCode session (c.7110416763, under Drew's 12:16 CST direction) had landed meanwhile. Per the routing, this lane does not push or open a PR — the routed session owns the landing. The finished work is left for it to adopt:
Where: laptop worktree
~/wt-lane-au13-13532, branchlane-au13-13532off origin/main1f9bc15391c, change uncommitted. One file:pkgs/id/tests/cli_delegation.rs, +224/−1 (the import line widens; four tests and one helper added; nothing else touched).What: the four named scenarios, each asserting the fold's decision through the library —
readand delegateswrite→ command fails, grant recordedRefused(Attenuated);id revokeon the owner's grant →Refused(NotManager), grant stays in force;Managecrossing and empty-worldWritecrossing →Refused(NotCrossable); controlWritecrossing naming a world →Applied;write) authorizes a device capped atread; Ann delegateswriteOK, the device delegatesreadOK, the device'swritedelegation →Refused(Attenuated).Two setups are recorded through
GroupLogon the shared log because no CLI command emits them yet — crossings (scenario 3's grants) and device authorizations (scenario 4) — with a comment in the file saying so; the actions under test in scenario 4 are the realid delegatecommands.Verification:
cargo test --test cli_delegationin the pkgs/id dev shell on the laptop: 6 passed / 0 failed (the 2 pre-existing tests plus the 4 new), exit 0. Build note for whoever lands it: the shared~/.cargopackage-cache lock is heavily contended by parallel lanes; the green run used a privateCARGO_HOMEcopy plus a private target dir inside the worktree (both still present there), with sccache disabled (defect #13367 pattern).For the record: this lane's own worktree creation did not trip the platform check; AU12's did. No PR was opened and nothing was pushed by this lane.