gunk-dev/the-valley

openquestions.md

source0d936ef425c5main's published tip history
8.8 KiB · Rendered
1# Open questions
2
3Consolidated across the design docs, tagged by layer: `[requirements]`, `[architecture]`,
4`[design]`. Design-level questions survive here only when a current or near-term roadmap phase (0–2)
5needs them; questions attached to pruned detail get re-asked when their phase starts — git history
6has the originals. The exceptions sit under [Held for later phases](#held-for-later-phases), each
7with the phase it waits for.
8
9## Identity & trust bootstrapping
10
11- `[architecture]` **Delegation-chain verification.** Agent identity itself is decided: an agent run
12 holds no key of its own; the host signs, and the change is attributed inside the host-signed
13 statement, as provenance — harness, model, digests of the prompt and of the context, and the
14 delegation chain as recorded
15 ([dcr-0de694f](../.the-valley/decisions/dcr-0de694f-phase2-attestation-shape.md)). What remains
16 open is verifying that chain rather than recording it: the check belongs to the enforcement point,
17 the Phase 3 integrator, and its rules are undesigned. _Origin: [contribute.md](./contribute.md)._
18- `[architecture]` **Bootstrapping trust for new contributors.** A new contributor has no trust
19 score. Do they get one by default, or do they require gating until $N attestations land cleanly?
20 Probably the latter; the state machine needs concrete rules. _Origin:
21 [verification.md](./verification.md)._
22- `[architecture]` **Integrator self-integration.** The integrator is itself code in a repo. How
23 does that code get integrated? Likely with a stricter policy on the integrator's own repo (always
24 require human approval), but the chicken-and-egg deserves explicit handling. _Origin:
25 [architecture.md](./architecture.md)._
26- `[requirements]` **Recursive self-transparency (candidate invariant).** Several questions here
27 look like facets of one property: _no actor can durably change the system, or an output of it,
28 without transparency_ — recursive all the way down (the-valley builds the-valley). Integrator
29 self-integration (above), the policy bootstrap, and load-bearing principles are the instances so
30 far. Statement, mechanism, and base case are all undesigned;
31 [self-transparency.md](./self-transparency.md) is a deliberate DRAFT stub that names the invariant
32 and decides nothing. _Origin: [self-transparency.md](./self-transparency.md)._
33- `[design]` **Attestation tool distribution.** The attestation tool is a Nix derivation. How is its
34 canonical hash published and pinned? Probably as part of an `armstrong`-shaped flake, but
35 bootstrapping is worth thinking through. _Origin: [verification.md](./verification.md)._
36- `[architecture]` **Phase-0 identity is Tailscale-ACL-based.** Thin by design and swappable. The
37 open question is _when_ it has to grow (untrusted contributors, agent keys) and into what. Likely
38 driven by the trust backstop. One concrete forcing function is already recorded:
39 [bd-8a591dc](../.the-valley/bugs/bd-8a591dc-machine-credentials-never-expire.md) — machine grants
40 never expire, so disposable machines make provisioning O(machines) and revocation optional.
41 _Origin: [roadmap.md](./roadmap.md)._
42
43## Cross-repo coordination
44
45The [federation frame](./architecture.md#federation-the-group-is-the-unit) splits each of these into
46an **intra-group** case (within one instance — one bus, one integrator; the tractable near-term
47problem) and an **inter-group** case (across instances — genuine federation, harder and later).
48
49- `[architecture]` **Cross-repo integration.** Two requests in two repos that must succeed together
50 (schema producer + consumer). _Intra-group:_ one integrator, shared bus — a wrapper controller can
51 condition B on A; design deferred to v2. _Inter-group:_ events must cross an instance boundary;
52 deferred further still. _Origin: [architecture.md](./architecture.md)._
53- `[architecture]` **Cross-repo feedback.** A change in repo A breaks a consumer in repo B; the
54 consumer's event needs to land somewhere visible to A's thread. _Intra-group:_ both on the same
55 bus, but routing is still non-trivial. _Inter-group:_ the breakage event must federate to A's
56 instance. Deferred. _Origin: [architecture.md](./architecture.md)._
57
58## Attention, routing, and threads
59
60- `[architecture]` **Priority layer architecture (attention routing).** Which events a human must
61 _see_, and how urgently — per-subscriber rule sets, learned priorities, hand-curated digests,
62 escalation chains? The firehose problem; the half of the old priority-layer question the
63 [outcome-DAG bet](./architecture.md#bet-the-knowledge-graph-read-generatively--an-outcome-dag)
64 does not answer. Probably starts hand-configured and grows. Deserves its own design doc once shape
65 clarifies. _Origin: [architecture.md](./architecture.md)._
66
67## Storage, retention, and evolution
68
69- `[design]` **Attestation expiry.** If inputs referenced by an attestation get garbage-collected
70 from a Nix cache, re-derivation breaks. What's the retention promise on the binary cache? _Origin:
71 [contribute.md](./contribute.md), [verification.md](./verification.md)._
72- `[architecture]` **Schema evolution (events).** CUE handles validation, but event schemas will
73 change. Migration story? _Origin: [architecture.md](./architecture.md)._
74- `[architecture]` **Durable home for cross-system events.** The resolved single-point-of-failure
75 answer calls deploys and notifications ephemeral. S4 makes those events the substance of "one
76 durable history" ([requirements.md](./requirements.md)), so by Phase 5 that answer expires: either
77 the bus is genuinely replicated — contradicting the bus-as-rebuildable-projection position
78 ([architecture.md](./architecture.md#bet-git-as-event-source--a-log-not-a-workflow-engine)) — or
79 its events get projected into a durable store. Which, and when? _Origin: owner review of Phase 1,
80 2026-07-16._
81
82## Discovery
83
84- `[requirements]` **Discovery.** Without GitHub-the-social-graph, how do humans find each other's
85 repos? Probably out of scope, but worth naming. _Origin: [requirements.md](./requirements.md)._
86
87## Held for later phases
88
89Two design-level questions belong to phases beyond the near-term horizon. They are parked whole
90instead of pruned because each carries analysis that re-asking from git history would bury:
91
92- `[design]` **The lived event log is the only witness to destructive ref updates** (S6, Phase 7).
93 "Per-repo events are durable in git" fails exactly when git state is destroyed: after a force-push
94 or a branch deletion, the event's `old` id may reference objects the repository no longer reaches,
95 and replay — a current-state projection — reproduces strictly less than what happened. S6's
96 incident memory wants the lived record, not the projection. A cheap, git-native mitigation is
97 decidable now: server-side reflogs (`core.logAllRefUpdates`) on the bare repos keep prior ref
98 values inside git through rewrites and deletions. Today the lived stream survives only by accident
99 — the JetStream store sits under the valley dataDir, so the nightly restic pass snapshots it,
100 crash-consistent at best: the volatile-store wrinkle in
101 [stores beyond git](../.the-valley/ideas/ida-48c8868-stores-beyond-git.md). _Origin: owner review
102 of Phase 1, 2026-07-16._
103- `[design]` **Effectful test catalogue** (Phase 6). Which classes of effectful test can be lifted
104 to `nixosTest` or microVM-sealed environments? Maintaining a list — moving a test from effectful
105 to pure is a meaningful security improvement. _Origin: [verification.md](./verification.md)._
106
107## Resolved (kept for the record)
108
109- ~~**Phase 0 replication mechanism.**~~ _Decided 2026-07-11
110 ([dcr-d7952bc](../.the-valley/decisions/dcr-d7952bc-phase0-replication-github-transitional.md)):_
111 a git-native live mirror plus periodic offsite backup, applied in
112 [roadmap Phase 0](./roadmap.md#phase-0--mvp-repos-off-github).
113- ~~**One attestation per commit, or multiple.**~~ _Decided 2026-08-02
114 ([dcr-0de694f](../.the-valley/decisions/dcr-0de694f-phase2-attestation-shape.md)):_ an
115 attestation's subject is a tree digest, not a commit, and storage is a ref keyed by subject digest
116 and signer, so attestations by several signers coexist; several parties attesting to one statement
117 sign it as sibling lines under one text.
118- ~~**The log is a single point of failure.**~~ _Reframed:_ the bus is a rebuildable projection of
119 state that is durable in git; the position is stated at
120 [architecture.md](./architecture.md#bet-git-as-event-source--a-log-not-a-workflow-engine).
121- ~~**Priority layer architecture (work scheduling).**~~ _Split, and addressed as a bet in
122 [architecture.md](./architecture.md):_ the knowledge graph read generatively — root-outcome
123 priority propagating down the dependency DAG, frontier dispatch toward the highest-priority root —
124 answers "what should the system work on next." The attention-routing half of the original question
125 stays open above.