Skip to content

design(id): delegation threat model, guarantees, and F1/F2 decisions (#6379) - #13535

Merged
dezren39 merged 1 commit into
mainfrom
felix/6379-delegation-threat-model
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
felix/6379-delegation-threat-model

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Stage 2 packet 1 for #6379 (the design core, routed first by the 2026-11-17 triage, task 18481): the threat-model / security-guarantees design record, with findings F1 and F2 ending in explicit decisions. Docs only — no code changes, no check weakened, no schedule touched.

What the record contains

  • Current-state map of the delegation surface at its post-crate-split paths (pkgs/id crate split — step 2: extract id-store, then id-events #4405–pkgs/id crate split — step 5: extract id-worlds #4408), with F1–F6 re-verified against origin/main 805258752: F1 open (no expiry/bounds field on DelegateArgs or Grant), F2 open (veto judge requires Manage + chain), F5 still exactly 2 CLI tests.
  • Threat model: assets, actors, and three trust boundaries — TB1 ingest totality (the fold does no cryptography; guarantees are conditional on no write path bypassing ingest verification), TB2 keypair-file custody, TB3 causal-order judging (no wall-clock inputs to the fold).
  • Guarantees G1–G9 as falsifiable claims, each pointed at the judging code and its refusal: attenuation (Attenuated/NoChain), Admin never granted (BadScope), no self-grants (BadGrantee), cross-world cap (NotCrossable), veto discipline, explicit removal disposition incl. the Phase 2: keep_prior revives earlier grants for a re-added member #169 no-revival rule, device scope cap, ingest authenticity, fold determinism — plus G9, the interim no-expiry fact stated plainly as the operative guarantee until the implementation lands.
  • D1 (F1) — adopt the designed expiry bound. Optional signed expires_at per the design of record (§7.1/§7.4, validity rule §7.2(5)), judged from signed fields only so determinism (G8) holds. uses explicitly rejected as a group state rule (§7.4). Stated limitation: judged against author-asserted signed timestamps, expiry is a convergent, auditable bound, not a hard real-time cutoff — veto/removal remain the hard cutoff; the implementation PR must state its exact comparison rule against this limitation.
  • D2 (F2) — grantor veto adopted; manager veto confirmed unchanged. A grant's own grantor may veto that grant (grantor of record, grant in causal past, same group); group-reanchored grants (from == None) stay manager-only; transfer-reissued grants belong to the reissuer. Rationale: revocation only removes authority, so the widening fails closed by construction; the design of record's revoke{ delegation } is author-agnostic — manager-only is an implementation narrowing.

Follow-ups filed (remaining stage-2 work, named on #6379)

Refs #6379 (does not close it — the items above remain).


See it in action
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@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 41 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: 7d1b75b3-05fe-4375-9351-ab1e6e7509d9
Commits

Reviewing files that changed from the base of the PR and between 074d396 and 35e0563.

Files selected for processing: 1

  • doc/2026-11-23T17-47-48Z_design_id_delegation_threat_model/note.md
  • 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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T17:51:46.055536Z 35e0563 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant