GeezerVison is showing github.com — Key compromise/revocation effect on previously accepted data (revalidate, flag, or quarantine) · Issue #10204 · developing-today/code
Key compromise/revocation effect on previously accepted data (revalidate, flag, or quarantine) #10204DescriptionProblem and goal
Implement minimal V2 key/peer emergency disable, revocation and quarantine for previously accepted data; preserve evidence and do not claim signing-time proof from issuer timestamps.
Version and design basis
Version: V2. Settled design: https://github.com/developing-today/code/blob/main/doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-b/versioned-design.md#wiredata-model (section: Wire/data model).
Tier: crucial.
Statement IDs: S1.22, S1.84, S1.86
Enables: Provides mandatory V2 emergency containment before advanced takeover automation.
Scope and ownership
Parent: #9141 (native component/meta parent).
Test / evidence first
Create or validate pkgs/id/crates/id-sync/tests/federation_b02.rs first. Proposed command: cargo test -p id-sync --test federation_b02
Oracle: invariant — expected Emergency disable prevents new acceptance/relay and quarantines in-scope prior accepted records without trusting issuer wall-clock signing times.; verifier: Independent reference state machine or golden fixture in the dedicated integration test; cryptographic tests use independent vectors, not the implementation under test..
Done and rollback
Done when the declared oracle passes and test/evidence output plus changed-file summary is attached. Research evidence: not applicable.
Rollback: Disable affected peer/key admission and relay immediately; preserve quarantine and evidence. Do not restore acceptance as rollback.
Manifest SHA-256 approval binding: 3b5bce3523945bf5adaa28739f0b90b7b70ff1d6522b4ac827246654e8ff6b06.
Activitydeveloping-today commented on Nov 14, 2026 dezren39 commented on Nov 14, 2026 agent-note:v1
state: blocked
task: 17049
lane: any-c
worker: repo-worker-code
Preflight for B02 (#10204, Key compromise/revocation effect on previously accepted data): verified fresh on 2026-11-14 that all native blockers remain OPEN — #10160 (Define versioned capability-oriented port contracts), #10183, and #10186. No held / user/owned / do-not-merge / do-not-auto-edit labels on #10204, #10160, #10183, or #10186.
Per the task packet's mandatory preflight, no implementation was performed. Task 17049 is dep-blocked on #10160, #10183, and #10186 (broker-watched, TTL 3 days); it will return to the pool automatically when all blockers close. dezren39 commented on Nov 16, 2026
Preflight for B02 recorded (task 17049, lane code-a, 2026-11-16): ALL native blockers are CLOSED — the implementation is unblocked. No self-block.
Fresh verification this shift (gh, 2026-11-16):
Routing: this packet is the mandatory preflight only. The B02 implementation (crucial-tier Rust slice with an invariant oracle and an independent reference state machine in its test) is enqueued as the bounded follow-on task 17469 (dedupe repo-health:v1:fix:developing-today/code:issue:10204, dedupe-checked: no live implementation task for #10204 existed). Task 17049 completes as triaged naming task 17469.
dezren39 commented on Nov 16, 2026 Agent note (fleet conductor, dispatch binding): queue task 17469 is claimed (worker conductor, 2026-11-16T12:12:20Z) and a session is implementing this slice on opencode-route/workhorse: ses_e5e1baac469ffeX1EFwc1PkLI9, worktree /home/user/git/fleet/17469-10204-key-revoke, branch queue/17469-10204-key-revoke off origin/main bb57b6f.
Scope handed to the worker: create only pkgs/id/crates/id-sync/src/federation/slices/b02_key_revocation.rs + pkgs/id/crates/id-sync/tests/federation_b02.rs (no shared-root/Cargo/lib.rs edits; exports are #9110-09). Dependencies verified in tree on main: B01 key lifecycle (b01_key_lifecycle.rs) and B31 peer classes (b31_peer_classes.rs); the 9110-02 registry in slices/mod.rs already records b02_key_revocation. Design semantics (S1.22, S1.84, S1.86): a locally signed emergency key/peer disable or revocation immediately blocks new acceptance and relay; previously accepted affected data is flagged/quarantined with signed bytes and admission-time evidence preserved, never silently rewritten; issuer wall-clock timestamps do not prove signing time (historical validity may be indeterminate). Oracle: cargo test -p id-sync --test federation_b02, with an independent reference state machine / golden fixture and independent crypto vectors. The worker will open a PR against main (no merge, no push to main) and checkpoint the task to a terminal state; the conductor tends it every 5-15 minutes. dezren39 commented on Nov 16, 2026 B02 implemented — PR #10752 (task 17469, branch queue/17469-10204-key-revoke, commit b2dec42315). Not merged.
Files (2 new, nothing else touched):
pkgs/id/crates/id-sync/src/federation/slices/b02_key_revocation.rs — revocation records, admission/relay decisions, quarantine registry, explicit revalidation
pkgs/id/crates/id-sync/tests/federation_b02.rs — independent reference-state-machine oracle
No edits to src/lib.rs, src/federation/mod.rs, src/federation/slices/mod.rs or Cargo.toml; the test includes the module by path exactly as tests/federation_b01.rs does. Deps reused unmodified: B01 key lifecycle, B31 peer classes.
Test output (cd pkgs/id && cargo test -p id-sync --test federation_b02):
running 9 tests ... test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s
cargo clippy -p id-sync --test federation_b02: no diagnostics for either new file.
Oracle independence: the expected verdicts come from a reference state machine written from the design statements (S1.22/S1.84/S1.86), sharing no code with the module, including a 25-seed differential run over interleaved admissions/revocations. Signatures are produced by ed25519-dalek directly and the re-attestation path is pinned by hard-coded RFC 8032 §7.1 TEST 3 vectors; the module only verifies.
Semantics: revocation/disable blocks new acceptance and relay immediately inside its effective interval; sweep quarantines records admitted at/after the effective start and flags records admitted before it (releasable but indeterminate); quarantine is sticky and only explicit evidence — an independent good-through witness, or re-attestation under a currently unrevoked key — clears it; signed bytes and admission-time evidence are never rewritten; issuer_claimed_at is stored but never consulted, so backdating cannot exonerate anything; unrelated keys/peers and out-of-scope records unaffected.
Questions (recorded, defaults taken, nothing blocked):
- Suspension vs. compromise. A bounded
effective_until allows new acceptance again when the interval ends, but the sweep's quarantine/flag is not undone by expiry. Default taken: interval expiry is not evidence — only explicit revalidation clears, per "never silently rewrite". If operations wants a bounded suspension to also release past records, that should be an explicit operator revalidation for the interval, not an implicit expiry rule.
- Re-attestation trust root.
Reattested accepts any key that is unrevoked locally, because this slice has no key-lineage/enrolment authority wired in yet. Default taken: unrevoked-now is the whole test; when design(id): extensibility architecture — primitive/adapter/hook boundary spec + backend conformance #9110-09 wires exports, the attesting key should additionally be required to be an enrolled lineage member (B01) of the record's signer. Recorded here rather than silently assumed.
- Late-arriving revocation. A revocation whose
effective_from predates recorded_at (learned late) quarantines records admitted inside the asserted interval. Default taken: operator assertion of effect time is authoritative for scoping the sweep, while scoping never depends on issuer timestamps — consistent with "local signed record" authority.
Rollback: do not restore acceptance. Disable affected peer/key admission and relay immediately, preserve quarantine and admission-time evidence, and leave release to explicit revalidation.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|