gunk-dev/the-valley

bd-e63bac8-cascading-revocation-on-divergence.md

source8b1b9a095b54main's published tip history
4.2 KiB · Rendered
1---
2type: bug
3id: bd-e63bac8
4status: open
5title: Asynchronous attestation re-verification causes cascading invalidation on divergence
6created: 2026-09-01
7source: knowledge base design review, 2026-09-01
8---
9
10# Asynchronous re-verification causes cascading invalidation on divergence
11
12The verification architecture chooses attestation with revocation over CI as a gate
13([architecture.md](../../design/architecture.md)). A contributor's change lands on a protected ref
14immediately upon presenting valid cryptographic attestations, while full re-verification of the
15derivations happens asynchronously in the background. If an asynchronous re-verifier detects that an
16attestation diverged, failed, or was forged, revoking trust does not cleanly undo the landed change.
17Because git history is append-only, all subsequent changes landed on top of the invalidated commit
18are tainted, creating a cascading invalidation crisis across in-flight and landed work.
19
20## The failure mode of optimistic landing
21
22The system trades CI latency for optimistic throughput: false positives that are detected and
23revocable are accepted in place of slow, brittle pre-merge gates.
24
25In practice, git branches are linear chains of commits. Consider a sequence of events:
26
271. Change A lands on `main` carrying a fraudulent or flawed attestation for a pure check.
282. Changes B, C, and D land on `main` over the subsequent twenty minutes, each rebased onto the tip
29 containing A.
303. An asynchronous re-verifier finishes re-executing A's derivations and discovers that the check
31 fails or that the recorded output digest was forged.
324. The system revokes trust in the attester.
33
34Revoking trust in the attester does not alter the git tree. Resolving the defect on `main` leaves
35two problematic choices:
36
37- **Rewriting `main` (force-push).** Removing commit A from history breaks every contributor clone,
38 invalidates all remote-tracking refs, and severs the cryptographic provenance of changes B, C, and
39 D.
40- **Landing a revert commit.** Committing a revert of A produces a new tree. This new tree
41 invalidates the input-closure digests and merge bases of all active integration requests and
42 in-flight branches across the entire project. Furthermore, if B, C, or D depended semantically on
43 changes introduced by A, the revert introduces broken builds directly onto `main`.
44
45In an autonomous multi-agent environment with high change velocity, a single diverged attestation
46causes cascading invalidation across the entire outcome DAG and in-flight branch pool.
47
48## Why this is acceptable today
49
50All contributors today share the operator's identity and run checks on trusted hardware. Divergence
51between local check execution and re-verification has not occurred because there are no semi-trusted
52or untrusted signers. The defect becomes active as soon as semi-trusted human contributors (scenario
53S5) or autonomous agent authors (scenario S3) push changes without operator supervision.
54
55## Directions, not decisions
56
57- **Staged integration streams.** Introduce a transient integration stream (such as `staging` or
58 `next`) where changes land optimistically and are published to `main` only after background
59 re-verification confirms the evidence.
60- **Tiered verification by attester standing.** Require synchronous re-verification for new,
61 unproven, or low-trust signers, while reserving instantaneous OCC landing for signers with high
62 established confirm rates.
63- **Blast-radius partitioning.** Restrict optimistic landing to path classes with zero system-level
64 blast radius (such as `.the-valley/**` documentation and knowledge nodes). Require synchronous
65 verification for foundational classes (NixOS modules, policy schemas, compiler tools).
66
67## Related
68
69- The verification architecture bet: [architecture.md](../../design/architecture.md)
70- Verification mechanics: [verification.md](../../design/verification.md)
71- Integration concurrency: [[dcr-439b771]]
72 ([dcr-439b771-integration-occ-over-content-addressed-evidence.md](../decisions/dcr-439b771-integration-occ-over-content-addressed-evidence.md))
73- Standing and identity registry: [[dcr-b87f6e8]]
74 ([dcr-b87f6e8-identity-is-a-governed-registry.md](../decisions/dcr-b87f6e8-identity-is-a-governed-registry.md))