GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test(id): CLI scenario refusals for delegate/revoke (#13532) by dezren39 · Pull Request #13807 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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:

  1. test_a_delegate_may_not_grant_above_its_scope - attenuation, Refused(Attenuated), via the real id delegate command
  2. 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
  3. 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)
  4. 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)"
  }
}

See it in action
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.

All reactions
fleet lane code-i @dezren39
test(id): CLI scenario refusals for delegate/revoke (#13532)
48d42cd
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
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

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

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 mentioned this pull request Nov 23, 2026
id: CLI scenario tests for delegate/revoke (#6379 F5) #13532
Closed
@dezren39

dezren39 commented Nov 23, 2026

Copy link
Copy Markdown
Member Author

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 merged commit bf1ff3c into main Nov 24, 2026
2 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the queue/21422-13532-delegate-tests branch November 24, 2026 00:11
@dezren39 dezren39 mentioned this pull request Nov 24, 2026
AUDIT-7 Lane 1 — PR-SWEEP tracking (open PRs, 4 repos) #13872
Open
5 tasks
@dezren39 dezren39 added the audit:complete PR fully implemented spawning issue label Nov 24, 2026
This was referenced Nov 24, 2026
AUDIT-7 Lane 4 — MERGED-PR-AUDIT: merged PRs since 2026-10-23 vs their spawning issues #13879
Open
[Security] Identity and Delegation System Hardening #6379
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

audit:complete PR fully implemented spawning issue

Projects

None yet

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.

1 participant

@dezren39
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.