This roadmap turns the architectural bets of the valley into an incremental validation plan. It sits downstream of the scenario ladder. The ladder defines what capabilities must become true for a user and in what order. This document describes what we build to satisfy each scenario, which design claims each phase tests, and the concrete gates that prove a phase is complete.
Where a phase description and a scenario rung disagree, the scenario rung wins.
The valley design relies on a chain of falsifiable bets: git as an event source, signed local verification instead of push-based CI, pull-based integration, reactive controllers, transparency-backed trust, and an in-repo knowledge graph.
Like water finding the natural contours of the terrain, our development moves from solid ground to solid ground rather than erecting elaborate scaffolding ahead of reality. Four rules govern every phase:
We sequence milestones by validation gates rather than calendar dates. A phase is complete only when its exit criteria are verified in practice.
| Phase | Ships | Scenario Rung | Validates | Exit Gate |
|---|---|---|---|---|
| 0 | Sovereign git hosting; knowledge graph v0 | S1 | Self-hosting is durable and reliable enough to trust as primary | Verified backup restore + one week off GitHub for the pilot repo |
| 1 | The event log | S2 (1 of 3) | Git ref updates cleanly project onto a log without a workflow engine | valley tail displays real-time ref updates from git pushes |
| 2 | Signed local attestations | S2 (2 of 3) | Local verification ergonomics can replace waiting for CI | nix run .#attest replaces remote CI runs for daily work |
| 3 | Pull-based integrator | S2 established | Pull-based integration and staleness handling replace push-to-main | Direct pushes to main cease entirely, even for solo work |
| 4 | Autonomous agent authors | S3 established | Non-human authors land changes unsupervised with provenance | A dispatched agent change integrates cleanly without human intervention |
| 5 | Reactive controllers | S4 established | Log-driven controllers replace monolithic CI/CD pipelines | Commit, build, deploy, and notification form one unified, queryable event history |
| 6 | Adversarial trust backstop | S3 hardened; S5 enabled | Transparency logs and witness re-derivation backstop local claims | An untrusted signer's change integrates only through verified trust evaluation |
| 7 | Feedback & incident memory | S6 established | Code review is feedback; operational incidents become repo memory | Incidents file structured graph nodes; review proceeds without pull request objects |
Scenario S7 (untrusted public strangers) has no dedicated phase because it is explicitly deferred. The trust architecture degrades gracefully toward it without prematurely optimizing for it.
Specific hostnames represent pilot infrastructure rather than design requirements. The portable system model is declared in schema/valley.cue.
Scenario Rung: S1 — my repos live on my infrastructure and I can never lose them.
Move canonical git repositories off third-party platforms onto operator-controlled infrastructure with high durability guarantees.
nix flake check.No event bus, no attestations, and no integrator controller. Direct push to main is permitted
during this phase.
Self-hosted bare git on existing infrastructure provides sufficient durability and ergonomics to serve as the sole primary home for active projects.
All criteria in S1's acceptance checklist are satisfied, including verified backup restore drills.
Scenario Rung: S2 (Part 1 of 3).
Turn repository ref updates into a structured, replayable event stream without introducing a complex workflow orchestrator.
ref-updated).valley tail command to stream live events.No consumers or controllers act on events yet. The stream is strictly observational.
Git ref updates project deterministically onto an append-only event log, establishing the log as the foundational nervous system for all automation.
ref-updated event visible via valley tail in
under one second.(Status: Validated on the pilot host on 2026-07-17. Follow-up items tracked in bd-d853d9c and bd-500adf7.)
Scenario Rung: S2 (Part 2 of 3).
Replace slow, asynchronous CI runs with instant, signed, locally produced test verifications.
nix run .#attest): Executes declared derivations on the exact source
tree, produces structured verification statements (verification.md), and
signs them with the local host key.refs/the-valley/attestations/<tree-digest>/<signer-key-hash> alongside commit objects
(dcr-0de694f).Public transparency logging and witness re-verification are deferred to Phase 6. Phase 2 validates the daily ergonomic workflow for trusted operators.
Local verification combined with cryptographic signing provides a faster, more dependable feedback loop than centralized CI.
Scenario Rung: S2 established.
Eliminate direct manual pushes to protected branches in favor of an automated, pull-based integration controller.
pre-receive hook that permits only the integrator's
cryptographic key to update protected branch refs (refs/heads/main).integration-requested events on the bus, verifies required
attestations against the repository verification policy
(dcr-f41f718),
fast-forwards or rebases valid changes, updates main, and emits outcome events
(integration.md).Pull-based integration controllers with unified staleness handling eliminate merge queues, pre-receive latency, and manual branch maintenance.
main are rejected by the git hook.Scenario Rung: S3 established.
Allow autonomous AI agents to propose and land changes with full provenance, using the exact same integration path as human engineers.
.the-valley/, reading context from the repository and updating the graph upon completion.The verification and integration pipeline operates autonomously without human supervision while preserving clear, indelible attribution.
main without human
intervention.Scenario Rung: S4 established.
Orchestrate post-integration actions (builds, deployments, notifications) as decentralized, event-driven controllers subscribing to the event bus.
integration-succeeded events, triggers Nix artifact
builds, executes deployments, and emits lifecycle status events back to the bus.closed.Discrete event-driven controllers replace monolithic push pipelines, turning commit, build, deploy, and operational status into a single cohesive, queryable history.
main automatically triggers deployment and notification solely through event
subscriptions.Scenario Rung: S3 hardened; S5 enabled.
Provide cryptographic non-repudiation and multi-party verification so external contributors and distributed agents can interact safely without central platform gates.
Local attestations backstopped by transparency logs and witness re-derivation provide strong security (comparable to SLSA Level 3) without requiring centralized build farms.
Scenario Rung: S6 established.
Unbundle code review, operational feedback, and incident analysis from centralized web UIs into durable, decentralized data structures.
.the-valley/,
linking root causes, uncertainty bounds, and remediations directly to source commits.Code review and incident management are simply specialized projections of the universal event log and knowledge graph, requiring no proprietary forge software.
Several foundational principles run through every phase of the roadmap:
valley CLI provides optional convenience verbs (valley tail,
valley attest), but the underlying protocols remain standard git and Nix operations.