gunk-dev/the-valley

openquestions.md

sourcefec8fb9dfaf0main's published tip history
12.1 KiB · Rendered
1# Open questions
2
3This document indexes unresolved requirements, architectural choices, and detailed design questions.
4Labels identify those levels. Linked graph nodes carry the fuller reasoning and implementation
5findings.
6
7Some early questions now have decisions or working implementations. They are summarized under
8[decisions already made](#decisions-already-made) so readers can distinguish remaining work from
9obsolete uncertainty.
10
11## Product interface and migration
12
13- `[design]` **First interface scope.** What is the smallest useful interface for navigating the
14 graph, reviewing changes, and improving the project? The
15 [interface proposal](../.the-valley/ideas/ida-23aa413-project-surfaces-are-derived-views.md)
16 considers editing, private access, selected public views, and browser-based approval. Its scope
17 and sequence are still open.
18- `[design]` **Migration requirements for each project.** Hosting alone does not replace checks,
19 automation, deployment reads, or browsing. The
20 [Cosmo outcome](../.the-valley/outcomes/oc-87deec8-valley-can-host-cosmo.md) identifies the
21 dependencies for the next infrastructure project. Which capabilities must the first migration
22 deliver, and which can remain in existing tools?
23
24## Identity, approval, and bootstrap
25
26- `[architecture]` **Verify delegated authority.** Agent runs use host-signed provenance and do not
27 hold their own registry keys. How does an enforcement point verify the recorded chain and the
28 scope granted to a run? Recording the chain does not establish that it was valid.
29 [Agent authority](../.the-valley/ideas/ida-a8243d2-agent-runs-act-under-delegated-authority.md)
30 and [provenance](../.the-valley/ideas/ida-45178f6-agent-identity-is-provenance.md) define the
31 intended distinction.
32- `[design]` **Deliver physical approval.** The
33 [core decision](../.the-valley/decisions/dcr-9c75283-substrate-adoption-and-the-core.md)
34 establishes default physical approval and permitted exemptions. The usable signing interface,
35 exact change identity, envelope, and verification rules still need implementation. The core must
36 not activate before a person can satisfy it.
37- `[architecture]` **Trust for a new contributor.** What evidence permits a previously unknown
38 signer to contribute? Independent verification, initial restrictions, thresholds, and later
39 revocation need concrete rules. A lack of history is not evidence of reliability.
40- `[architecture]` **Update and recover the integrator.** Previous accepted policy governs ordinary
41 updates, and the initial installation precedes enforcement. The complete procedure for replacing
42 broken integration machinery or recovering from compromise of the initial governing identity
43 remains open.
44- `[requirements]` **Record changes to the system itself.** The
45 [self-transparency proposal](./self-transparency.md) asks which persistent changes must be
46 governed and recorded, including emergency repairs outside the normal integration path. Its full
47 scope and enforcement limits remain unsettled.
48- `[design]` **Credential convergence and expiry.** The identity compiler now omits expired machine
49 keys on a successful compile; the original
50 [non-expiry bug](../.the-valley/bugs/bd-8a591dc-machine-credentials-never-expire.md) is closed. A
51 failed convergence can retain older compiled credentials. Provisioning, timely revocation, and
52 recovery must be tested together. The
53 [access verbs](../.the-valley/decisions/dcr-e544f20-access-is-verbs-on-projects.md) also need
54 their project and bus enforcement points.
55
56## Integration and evidence
57
58- `[design]` **Trusted check implementations.** The policy resolver reads governing state, but the
59 attestation and integration tools still evaluate check definitions from the candidate tree. The
60 [check-definition bug](../.the-valley/bugs/bd-eaefe82-check-definitions-come-from-the-branch.md)
61 tracks how a mandatory check can be weakened there. How are the canonical tool and required check
62 definitions distributed, pinned, and enforced at the runner?
63- `[architecture]` **Progress under contention.** How does repeatedly invalidated work get a fair
64 chance to land? The
65 [starvation risk](../.the-valley/bugs/bd-c324184-occ-starvation-under-contention.md) describes the
66 conditions to measure. Batching, narrower valid input closures, reservations, and faster
67 verification are candidates, not adopted queue policy.
68- `[design]` **Conflicting notes for a check.** The verdict rejects invalid selected evidence. The
69 [collector](../integrator/evidence.go) keeps an admissible note once found, but can replace
70 earlier invalid evidence with a later admissible note. How should invalid or contradictory notes
71 be retained and reported so they cannot be silently ignored?
72- `[design]` **Reconsider after governing state changes.** The current
73 [request memo](../integrator/refs.go) compares the request head, target tip, and attestation
74 namespace. How should changes to the valley floor or accepted signers invalidate a remembered
75 answer when those three inputs stay unchanged?
76- `[architecture]` **Recover after accepting a false claim.** Revocation can restrict a signer's
77 future work, but does not undo accepted changes or their effects. The
78 [recovery risk](../.the-valley/bugs/bd-e63bac8-cascading-revocation-on-divergence.md) asks how to
79 identify actual dependent work and choose a response. Later commits are not automatically invalid
80 merely because they follow a bad change.
81
82## Cross-repository coordination
83
84Coordination within a valley shares governance and can use common services. Coordination across
85valleys must also cross independent policy and access boundaries. Shared infrastructure does not by
86itself provide atomic integration.
87
88- `[architecture]` **Related changes in two repositories.** How should a producer and consumer
89 change be ordered or accepted together? A controller can make one depend on the other, but
90 dependency ordering alone does not provide an all-or-nothing update. The within-valley design is
91 deferred; the cross-valley case is later work.
92- `[architecture]` **Feedback from a consumer.** If a change in one project breaks another, how does
93 the failure reach the relevant change discussion? Within a valley this needs routing. Across
94 valleys it also needs authorized transport and attribution.
95- `[architecture]` **Contribution to a shared project.** The-valley is common software but is itself
96 a project owned by one valley. How does another valley carry changes, attestations, and approvals
97 to it for evaluation under the owner's policy? The
98 [federation proposal](../.the-valley/ideas/ida-8482624-federation-groups.md) records this case.
99
100## Valleys and hosts
101
102- `[architecture]` **Bus isolation.** Should each valley have a bus, or should one bus use
103 authenticated subjects scoped to each valley? The current bus is local and unauthenticated.
104 [Bus authorization](../.the-valley/bugs/bd-d853d9c-bus-unauthenticated.md) and
105 [host isolation](../.the-valley/decisions/dcr-9b5da04-hosts-serve-isolated-valleys.md) define the
106 requirements. Sharing a host must not imply sharing event visibility.
107- `[design]` **Mirror credentials.** Mirroring another repository needs a credential arrangement.
108 Per-repository keys and a broader machine account have different access and configuration costs.
109 The [mirror identity proposal](../.the-valley/ideas/ida-a0e5d03-second-mirror-identity.md) records
110 this choice.
111- `[design]` **Second-valley deployment.** The separation model is decided, but Unix naming,
112 filesystem layout, and the services needing separate users still need concrete configuration and
113 validation.
114
115## Attention and work scheduling
116
117- `[architecture]` **Route human attention.** Which events require a person, how urgently, and how
118 should they be grouped or escalated? Rules, digests, and learned priorities are possible
119 approaches. Outcome scheduling chooses work; it does not answer this question.
120- `[design]` **Bound continued work.** How are repeated attempts, decomposition, and spending
121 limited across an entire requested outcome? The
122 [unbounded-work risk](../.the-valley/bugs/bd-5cb2034-unbounded-loops-under-demand-pressure.md)
123 explains why per-run budgets alone do not answer this.
124
125## Storage, retention, and evolution
126
127- `[design]` **Retain evidence inputs.** Which source inputs, derivations, and outputs must remain
128 available for independent re-verification, and for how long? Losing a cached output differs from
129 losing the source needed to rebuild it. Pure evidence has no time-based expiry in the integration
130 rule, but that does not establish a retention promise.
131- `[architecture]` **Evolve schemas.** How do event and statement producers and consumers negotiate
132 versions and migrations? CUE validates a selected schema; compatibility across versions needs its
133 own rules.
134- `[architecture]` **Keep cross-system history durable.** S4 requires the causes of deployments and
135 notifications to survive. Records that exist only on the bus cannot be reconstructed from
136 repository refs. Phase 5 must choose a durable event store or establish replication and recovery
137 for the relevant bus records.
138- `[design]` **Preserve destructive ref history.** Replaying current refs cannot recover all
139 force-pushes or deletions. Server-side reflogs could retain earlier ref values, subject to their
140 own expiry and object retention. S6 needs the history that actually occurred, not just a
141 current-state projection. An incidental filesystem backup of JetStream is not a demonstrated
142 history-retention contract.
143- `[architecture]` **Store frequent task updates.** The
144 [Git churn risk](../.the-valley/bugs/bd-c4d069b-git-churn-from-task-state.md) asks whether
145 high-frequency runtime state belongs in Git. There is no measured workload yet. Any alternative
146 store must specify what survives failures and which transitions remain auditable.
147- `[design]` **Replace or continue the CLI prototype.** The
148 [graduation proposal](../.the-valley/decisions/dcr-2aa1a12-valley-cli-graduation.md) remains
149 undecided. Continuing under a specification-coverage rule would require explicitly replacing the
150 existing size and dependency limits.
151
152## Later work
153
154`[design]` An effectful-test catalogue belongs with Phase 6: identify which checks can use a
155controlled VM or sandbox and which observations inherently depend on the live world. The goal is to
156improve what can be independently verified without overstating reproducibility.
157
158`[requirements]` Public repository discovery remains outside the current scope. It becomes a
159question to revisit only if open contribution becomes a supported scenario.
160
161## Decisions already made
162
163| Earlier question | Current answer | Remaining limit |
164| ----------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
165| Initial replication mechanism | A Git-native publication mirror plus periodic offsite backup | Migration and restore must be repeatable for each project |
166| Attestation identity and multiplicity | Tree-digest subjects; separate evidence by signer; sibling signatures over one statement | Retention and independent verification remain open |
167| Whether the bus holds repository state | Git holds authoritative repository state; the bus projects it | Current-state replay does not recover all history or external effects |
168| How to choose work from project knowledge | Outcomes and dependencies are the adopted direction | Scheduling mechanics, fairness, and spending limits remain open |
169| Initial identity model | A governed registry and compiler replace manually maintained key lists | Fine-grained enforcement, delegation verification, and physical approval need work |
170
171The [roadmap](./roadmap.md) identifies the scenarios and validation work these questions affect.