GeezerVison is showing github.com — test(id): CLI scenario refusals for delegate/revoke (#13532) by dezren39 · Pull Request #13807 · developing-today/code
Conversation
dezren39
commented
Nov 23, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Tests-only change for #13532 (stage-2 packet for #6379, finding F5).
Adds four CLI scenario tests to pkgs/id/tests/cli_delegation.rs, each naming the refusal it asserts:
- test_a_delegate_may_not_grant_above_its_scope - attenuation, Refused(Attenuated), via the real id delegate command
- test_revoke_by_a_non_manager_is_refused - non-manager veto, Refused(NotManager), via the real id revoke command; asserts the grant stays in force
- test_a_cross_world_grant_above_write_is_refused - Manage crossing and empty-world crossing, both Refused(NotCrossable), recorded through the CLI's own GroupLog (id delegate has no cross-world flag yet)
- test_a_device_may_not_grant_above_its_scope - Read-scoped device granting Write, Refused(Attenuated), through the CLI's GroupLog (no CLI surface for acting as a device yet)
Verification (laptop, nix develop inside pkgs/id):
cargo test --test cli_delegation -> 6 passed, 0 failed (2 pre-existing + 4 new), exit 0, on main 5e41070.
Work adopted from AU13's implementation (see issue thread); rebased onto current main with no conflicts. No behavior changes. No closing keywords used intentionally - Archer merges via the API from the evidence record on #13532.
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-23T22:09:34Z",
"session_id": "ses_e5df59cd595ffeFkkMAleAHzST",
"lane": null,
"host": "amd",
"worktree": "/home/user/wt-oc-code-05-13532",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/user/wt-oc-code-05-13532",
"repo": "developing-today/code",
"branch": null,
"sha": "48d42cd02718b2f4612ef99bdff15984d53f7f10"
},
"auth_subject": "oc-code-02",
"stamped_by": "fleet 0.1.0 (native)"
}
}

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Add the four stage-2 scenarios from the #6379 audit at the CLI boundary:
attenuation (grant above the grantor's scope), a non-manager's veto,
a cross-world grant above Write or naming no world, and a device
granting above its own scope. The first two drive the real
`id delegate` / `id revoke`; the last two have no CLI flag yet, so they
record through the same GroupLog the CLI writes and assert the fold's
named refusal.
Refs #13532
Warning
Review limit reached
You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.
Next included review available in 58 minutes.
Check out review usage here.
View limit details
-
Limit details: You’ve used the included review currently available.
Learn how review limits work.
Review configuration:
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
f132fd32-3de8-434b-995e-67a3cbb31d67
Commits
-
Reviewing files that changed from the base of the PR and between a0840e2 and 48d42cd.
Files selected for processing: 1
-
pkgs/id/tests/cli_delegation.rs
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Evidence record (lane oc-code-05, task 21422): laptop nix develop in pkgs/id, cargo test --test cli_delegation → 6 passed, 0 failed, exit 0, on main 5e41070 (rebased, no conflicts). Tests-only, no behavior changes. Full record on #13532; READY TO MERGE at 48d42cd. Worker does not merge.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 24, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|