gunk-dev/the-valley

openquestions.md

source338bf6ca3fe9main's published tip history
7.9 KiB · Rendered
1# Open questions
2
3Consolidated from across the design docs. Grouped by theme. Each item retains an origin pointer to the doc where it was raised.
4
5## Identity & trust bootstrapping
6
7- **Agent identity.** When an agent (klaus-dispatched or otherwise) is the contributor, what key signs the commit and attestation? Ephemeral per-run, long-lived per-agent, or delegated from a human signer? The architecture supports any; a choice has to be made. *Origin: [scenarios.md](./scenarios.md), [contribute.md](./contribute.md).*
8- **Bootstrapping trust for new contributors.** A new contributor has no trust score. Do they get one by default, or do they require gating until $N attestations land cleanly? Probably the latter; the state machine needs concrete rules. *Origin: [verification.md](./verification.md), [scenarios.md](./scenarios.md).*
9- **Integrator self-integration.** The integrator is itself code in a repo. How does that code get integrated? Likely with a stricter policy on the integrator's own repo (always require human approval), but the chicken-and-egg deserves explicit handling. *Origin: [integration.md](./integration.md).*
10- **Attestation tool distribution.** The attestation tool is a Nix derivation. How is its canonical hash published and pinned? Probably as part of an `armstrong`-shaped flake, but bootstrapping is worth thinking through. *Origin: [verification.md](./verification.md).*
11
12## Policy & configuration
13
14- **Policy bootstrap.** Someone has to be able to land the first principle / first policy change before the policy exists to govern principle changes. v1: integrator-key-holders land changes to `.the-valley/principles/` directly with relaxed policy. Worked out in a follow-up. *Origin: [integrator-internals.md](./integrator-internals.md).*
15- **Per-repo integrator configuration.** Where does the integrator's per-repo configuration live — which protected refs, which trust thresholds per ref, which witnesses to wait for? Probably as a `config` node in the knowledge graph, queried alongside principles. *Origin: [integrator-internals.md](./integrator-internals.md).*
16- **Per-repo check-set evolution.** When `flake.nix` adds a new required check, do existing attestations become invalid? Answer per [integrator-internals.md](./integrator-internals.md): yes, stale via policy-required-check. But what about graceful introduction periods? *Origin: [contribute.md](./contribute.md).*
17
18## Cross-repo coordination
19
20- **Cross-repo integration.** Two requests in two repos that must succeed together (schema producer + consumer). The integrator pattern can support this — a wrapper controller conditions B on A — but the design is deferred to v2. *Origin: [integration.md](./integration.md), [integrator-internals.md](./integrator-internals.md).*
21- **Cross-repo feedback.** A change in repo A breaks a consumer in repo B. The consumer's event needs to land somewhere visible to A's thread. Cross-repo routing is non-trivial; deferred. *Origin: [feedback.md](./feedback.md).*
22- **Cross-repo nodes in the knowledge graph.** A bug in repo A blocking work in repo B. v1 is per-repo; cross-repo linking needs stable IDs that include a repo namespace. Deferred. *Origin: [knowledge.md](./knowledge.md).*
23
24## Attention, routing, and threads
25
26- **Priority layer architecture.** Per-subscriber rule sets, learned priorities, hand-curated digests, escalation chains? The hard new bottleneck created by the feedback reframe. Probably starts hand-configured and grows. Deserves its own design doc once shape clarifies. *Origin: [feedback.md](./feedback.md), README.*
27- **Thread identity and naming.** UUID? Human-readable slug? Tied to a commit, a chain, a topic? *Origin: [feedback.md](./feedback.md).*
28- **When does a thread close?** Auto-close on deploy-stable? Explicit close events? Both? *Origin: [feedback.md](./feedback.md).*
29- **Feedback back to an agent that finished its run.** Probably: events spawn new agent runs scoped to acting on them. klaus-shaped. *Origin: [feedback.md](./feedback.md).*
30- **Backpressure visibility on the integrator.** Contributors should see queue depth and estimated wait. Easy to expose via the same `request-state` query; not strictly v1. *Origin: [integrator-internals.md](./integrator-internals.md).*
31
32## Storage, retention, and evolution
33
34- **Attestation expiry.** If inputs referenced by an attestation get garbage-collected from a Nix cache, re-derivation breaks. What's the retention promise on the binary cache? *Origin: [contribute.md](./contribute.md), [verification.md](./verification.md) (as "replay timeline").*
35- **Stale-request expiry.** A request that sits stale forever clutters the namespace. Probably a periodic controller emits `request-abandoned` after $T of staleness with no owner action. *Origin: [integrator-internals.md](./integrator-internals.md).*
36- **Schema evolution (events).** CUE handles validation, but event schemas will change. Migration story? *Origin: README.*
37- **Schema evolution (knowledge graph).** Per-type schemas will change. Old nodes remain valid against their original version; agents produce against the latest. Migration tooling deferred. *Origin: [knowledge.md](./knowledge.md).*
38
39## Knowledge graph specifics
40
41- **Initial node-type set.** Probably `bug`, `principle`, `decision`, `idea`, `thread` for v1. `task` may collapse into `bug`. `retrospective` may not be needed yet. *Origin: [knowledge.md](./knowledge.md).*
42- **Hash-based vs incrementing IDs.** Hash-based is coordination-free but uglier; incrementing is human-friendly but needs coordination. Probably hash-based for v1, with an alias system for human-readable names later. *Origin: [knowledge.md](./knowledge.md).*
43- **Bus event granularity for node mutations.** One event per node mutation, or batched per commit? Affects subscriber complexity. *Origin: [knowledge.md](./knowledge.md).*
44- **Indexer cadence.** On every push, on-demand, subscriber-driven? The cost is small; freshness expectations drive the choice. *Origin: [knowledge.md](./knowledge.md).*
45
46## Verification specifics
47
48- **Effectful test catalogue.** Which classes of effectful test can be lifted to `nixosTest` or microVM-sealed environments? Maintaining a list — moving a test from effectful to pure is a meaningful security improvement. *Origin: [verification.md](./verification.md).*
49- **One attestation per commit, or multiple.** The current shape enforces one (refs are create-only). Multi-signature attestations could change this. A namespace like `refs/the-valley/attestations/<commit-sha>/<signer-id>` would allow multiple, at the cost of more complex lookup. *Origin: [contribute.md](./contribute.md).*
50
51## Workflow patterns
52
53- **Dependent changes / stacks.** When B depends on A, the integrator needs to know to integrate them as a unit or in order. Stacked-diff tooling exists; how does it surface in the request event? *Origin: [integration.md](./integration.md).*
54- **Long-running topic branches.** A topic that integrates incrementally over time. Does each request consume one commit, a range, the whole branch? Probably the request specifies a commit range and the topic drifts naturally. *Origin: [integration.md](./integration.md).*
55
56## Discovery
57
58- **Discovery.** Without GitHub-the-social-graph, how do humans find each other's repos? Probably out of scope, but worth naming. *Origin: README.*
59
60## Resolved (kept for the record)
61
62- ~~**Signaling: bus event vs. request ref vs. branch convention.**~~ *Resolved in [contribute.md](./contribute.md):* the contributor pushes `refs/the-valley/integration-requests/<name>` atomically with the topic branch and attestation; the bare repo's post-receive hook is the canonical projection of those ref updates into bus events.
63- ~~**The log is a single point of failure.**~~ *Reframed:* per-repo events (refs, attestations, integration requests) are durable in git itself and externally tamper-evident via the Tessera-backed tlog. The bus is only the source of truth for ephemeral cross-system events (deploys, metrics) and can be replicated lazily when needed.