GeezerVison is showing github.com — id: implement grant expiry bound and grantor veto (#6379 F1+F2) · Issue #13534 · developing-today/code
id: implement grant expiry bound and grantor veto (#6379 F1+F2) #13534DescriptionImplementation follow-on for #6379 findings F1 + F2. Gated on the #6379 design-core record (threat model + decisions, lane felix, PR to be linked here when opened): do not start implementation until that record merges; the record's decision sections are the spec.
Scope, per the design of record (§7.1/§7.4 of the 2026-10-11 groups/delegation design) and the design-core record's decisions:
- Grant expiry (F1). Optional signed
expires_at bound on the grant event and a matching id delegate flag (DelegateArgs, pkgs/id/crates/id-cli/src/cli/groups.rs); the delegation judge (pkgs/id/crates/id-events/src/groups/delegation.rs) refuses a chain link whose grant has expired at the action's causal position (validity rule 5). Judged only from signed fields, so the fold stays a deterministic function of the log. uses bounds are out of scope (design §7.4: never a group state rule).
- Grantor veto (F2). Extend the veto judge so a grant's own grantor may veto that grant (author == grant grantor, grant in the veto's causal past, same group), in addition to the existing manager veto, which is unchanged. Grants re-anchored at the group (
from == None) have no grantor and remain manager-veto only; a transfer-reissued grant's grantor is its reissuer.
Acceptance: fold-layer tests for expiry-at-position (incl. a chain failing only after expiry, and pre-expiry positions still judging valid) and for grantor veto (own grant cut; another's grant refused; manager path unchanged); CLI flag covered by the F5 test packet's scenarios where applicable. No existing refusal is weakened. Activitydeveloping-today commented on Nov 23, 2026 dezren39 commented on Nov 23, 2026 Gate update (lane felix, 2026-11-23): the design-core record this issue waits on is now open as PR #13535 — doc/2026-11-23T17-47-48Z_design_id_delegation_threat_model/note.md, decisions D1 (expiry) and D2 (grantor veto) in §4. Implementation starts when #13535 merges; the record's D1 limitation paragraph (comparison rule against author-asserted signed timestamps) is part of the spec.
Filed without a pilot packet: Felix's lane queue is operator-managed via the prioritized shortlist (the #13342 pattern); this issue is picked up from the shortlist in order rather than enqueued separately. dezren39 commented on Nov 23, 2026 Lane any-n note (no claim held — lane oc-code-07 holds task 21478 as of 21:34:54Z): a prior any-n worker left uncommitted in-progress F2 work in laptop worktree /home/user/git/fleet/queue-21478-13534 (base bf7040df368, PR #13535 merge confirmed ancestor) — grantor veto (is_grantor_of_record incl. transfer-successor, veto short-circuit before manager path) in pkgs/id/crates/id-events/src/groups/delegation.rs plus 4 new fold-layer tests in groups/tests.rs. F1 (expiry bound) was not started — no agreed timestamp source found in the fold layer. Holder may cherry-pick or ignore. dezren39 commented on Nov 23, 2026 Lane oc-code-07 update (task 21478): F1 grant expiry + F2 grantor veto landed via PR #13819, merged as f033916.
Verification (post-rebase on origin/main 84aab4f):
cargo test -p id-events --lib: 378 passed, 0 failed
cargo test -p id --test delegation_voiding_scenarios: 3 passed, 0 failed
cargo fmt --check -p id-events -p id-groups -p id-cli: clean
- Existing refusals unchanged (expiry surfaces as NoChain); no group-state
uses bounds added (out of scope per design section 7.4).
Comparison rule as recorded in the PR: expired iff action time T >= grant.expires_at; T=None means unexpired. Expiry is judged against author-asserted signed timestamps per the design D1 limitation.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|