gunk-dev/the-valley

openquestions.md

sourceebd98d24666emain's published tip history
10.9 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-valley-is-the-unit) splits each of these
46into an **intra-valley** case (within one valley — one bus, one integrator; the tractable near-term
47problem) and an **inter-valley** case (across valleys — 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-valley:_ one integrator, shared bus — a wrapper controller
51 can condition B on A; design deferred to v2. _Inter-valley:_ events must cross a valley 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-valley:_ both on the same
55 bus, but routing is still non-trivial. _Inter-valley:_ the breakage event must federate to A's
56 valley. Deferred. _Origin: [architecture.md](./architecture.md)._
57
58- `[architecture]` **Cross-valley contribution to a shared project.** The substrate is consumed by
59 every valley and is at the same time a project owned by one valley, landed by that valley's
60 integrator. How a valley that does not own such a project contributes to it — carrying a change,
61 its attestations and its approvals across the boundary, and getting them weighed by the owning
62 valley's policy — is the federation edge
63 ([ida-8482624](../.the-valley/ideas/ida-8482624-federation-groups.md)). _Inter-valley only._
64 _Origin: [architecture.md](./architecture.md#system-shape-and-cardinalities)._
65
66## Valleys and hosts
67
68The [system-shape section](./architecture.md#system-shape-and-cardinalities) settles the
69cardinalities and the isolation between valleys sharing a host
70([dcr-9b5da04](../.the-valley/decisions/dcr-9b5da04-hosts-serve-isolated-valleys.md)). Two questions
71survive it.
72
73- `[architecture]` **The bus's valley scoping.** One bus per valley, or one bus whose subjects are
74 valley-scoped and authenticated? The bus is host plumbing today: localhost-only and
75 unauthenticated ([bd-d853d9c](../.the-valley/bugs/bd-d853d9c-bus-unauthenticated.md)), with
76 subjects namespaced per project
77 ([dcr-62ecc36](../.the-valley/decisions/dcr-62ecc36-signal-contracts.md)). When authentication
78 ships, credentials compile from valley registries, which makes the bus a valley surface — and
79 cross-valley event visibility is not a default, so the two shapes are the whole choice. The
80 question is gated on that authentication and answers with it. _Origin:
81 [architecture.md](./architecture.md#system-shape-and-cardinalities)._
82- `[design]` **The mirror credential mechanism.** A mirror host allows one deploy key per
83 repository, so a second mirrored repository authenticates only with per-repository keys behind ssh
84 host aliases, or with a machine account whose one credential reaches every mirror. The fork, and
85 what each way costs the host schema, is stated at
86 [ida-a0e5d03](../.the-valley/ideas/ida-a0e5d03-second-mirror-identity.md); the missing mirrors are
87 declared once it is taken. _Origin: [roadmap.md](./roadmap.md)._
88
89## Attention, routing, and threads
90
91- `[architecture]` **Priority layer architecture (attention routing).** Which events a human must
92 _see_, and how urgently — per-subscriber rule sets, learned priorities, hand-curated digests,
93 escalation chains? The firehose problem; the half of the old priority-layer question the
94 [outcome-DAG bet](./architecture.md#bet-the-knowledge-graph-read-generatively--an-outcome-dag)
95 does not answer. Probably starts hand-configured and grows. Deserves its own design doc once shape
96 clarifies. _Origin: [architecture.md](./architecture.md)._
97
98## Storage, retention, and evolution
99
100- `[design]` **Attestation expiry.** If inputs referenced by an attestation get garbage-collected
101 from a Nix cache, re-derivation breaks. What's the retention promise on the binary cache? _Origin:
102 [contribute.md](./contribute.md), [verification.md](./verification.md)._
103- `[architecture]` **Schema evolution (events).** CUE handles validation, but event schemas will
104 change. Migration story? _Origin: [architecture.md](./architecture.md)._
105- `[architecture]` **Durable home for cross-system events.** The resolved single-point-of-failure
106 answer calls deploys and notifications ephemeral. S4 makes those events the substance of "one
107 durable history" ([requirements.md](./requirements.md)), so by Phase 5 that answer expires: either
108 the bus is genuinely replicated — contradicting the bus-as-rebuildable-projection position
109 ([architecture.md](./architecture.md#bet-git-as-event-source--a-log-not-a-workflow-engine)) — or
110 its events get projected into a durable store. Which, and when? _Origin: owner review of Phase 1,
111 2026-07-16._
112
113## Discovery
114
115- `[requirements]` **Discovery.** Without GitHub-the-social-graph, how do humans find each other's
116 repos? Probably out of scope, but worth naming. _Origin: [requirements.md](./requirements.md)._
117
118## Held for later phases
119
120Two design-level questions belong to phases beyond the near-term horizon. They are parked whole
121instead of pruned because each carries analysis that re-asking from git history would bury:
122
123- `[design]` **The lived event log is the only witness to destructive ref updates** (S6, Phase 7).
124 "Per-repo events are durable in git" fails exactly when git state is destroyed: after a force-push
125 or a branch deletion, the event's `old` id may reference objects the repository no longer reaches,
126 and replay — a current-state projection — reproduces strictly less than what happened. S6's
127 incident memory wants the lived record, not the projection. A cheap, git-native mitigation is
128 decidable now: server-side reflogs (`core.logAllRefUpdates`) on the bare repos keep prior ref
129 values inside git through rewrites and deletions. Today the lived stream survives only by accident
130 — the JetStream store sits under the valley dataDir, so the nightly restic pass snapshots it,
131 crash-consistent at best: the volatile-store wrinkle in
132 [stores beyond git](../.the-valley/ideas/ida-48c8868-stores-beyond-git.md). _Origin: owner review
133 of Phase 1, 2026-07-16._
134- `[design]` **Effectful test catalogue** (Phase 6). Which classes of effectful test can be lifted
135 to `nixosTest` or microVM-sealed environments? Maintaining a list — moving a test from effectful
136 to pure is a meaningful security improvement. _Origin: [verification.md](./verification.md)._
137
138## Resolved (kept for the record)
139
140- ~~**Phase 0 replication mechanism.**~~ _Decided 2026-07-11
141 ([dcr-d7952bc](../.the-valley/decisions/dcr-d7952bc-phase0-replication-github-transitional.md)):_
142 a git-native live mirror plus periodic offsite backup, applied in
143 [roadmap Phase 0](./roadmap.md#phase-0--mvp-repos-off-github).
144- ~~**One attestation per commit, or multiple.**~~ _Decided 2026-08-02
145 ([dcr-0de694f](../.the-valley/decisions/dcr-0de694f-phase2-attestation-shape.md)):_ an
146 attestation's subject is a tree digest, not a commit, and storage is a ref keyed by subject digest
147 and signer, so attestations by several signers coexist; several parties attesting to one statement
148 sign it as sibling lines under one text.
149- ~~**The log is a single point of failure.**~~ _Reframed:_ the bus is a rebuildable projection of
150 state that is durable in git; the position is stated at
151 [architecture.md](./architecture.md#bet-git-as-event-source--a-log-not-a-workflow-engine).
152- ~~**Priority layer architecture (work scheduling).**~~ _Split, and addressed as a bet in
153 [architecture.md](./architecture.md):_ the knowledge graph read generatively — root-outcome
154 priority propagating down the dependency DAG, frontier dispatch toward the highest-priority root —
155 answers "what should the system work on next." The attention-routing half of the original question
156 stays open above.