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