The bets, each traced to a requirement (requirements.md) and taken no deeper
than rationale. Detailed design lives in the rest of design/, and only for roadmap phases that are
current or next — later phases get their detail re-fleshed when they start, informed by what
validation has taught us.
bare git (Tailscale) ──┐ ┌──► nix build (pure reactions)
build outputs ───┤ │
agent runs (klaus) ───┼──► event bus ──► subscribers ──► armstrong (effectful reactions)
deploy state ───┤ (NATS JS) │
external signals ──┘ └──► integrator (per-repo integration)
attestations published to a Tessera-backed transparency log on every push
| Concern | Current state | Direction |
|---|---|---|
| Hosting | Works fine, lock-in is the cost | Bare git over SSH on a Tailscale-reachable box |
| Identity / access | Works fine | Tailscale ACLs + SSH keys |
| Verification | Slow, YAML-shaped | nix flake check triggered by events |
| Artifacts | Opaque, ephemeral | Nix derivations, content-addressed, pushed to a cache |
| Automation | Actions: push-based, brittle | Reactive controllers subscribing to an event log |
| Integration / merge | Branch protection in vendor UI | Pull-based integrator controllers reacting to integration-requested events |
| Observability & feedback | PR-shaped, conflates four concerns | Continuous feedback as events; threads as derived views; priority/routing as a first-class subsystem |
| Project knowledge | Scattered: issues, wikis, docs, scratch files, agent histories, heads | Unified typed-node graph in markdown, equally navigable by humans and agents; discussion threads are themselves nodes |
Serves: automation, observability.
GitHub Actions, GitLab CI, Jenkins — all push-based pipelines. An event happens, a workflow runs, it exits, the trail is a log file.
A reactive log inverts this:
Per-repo events (refs, attestations, integration requests) are durable in git itself; the bus is a projection that can be rebuilt. Only ephemeral cross-system events (deploys, metrics, agent runs) have the bus as their source of truth — so the log is never load-bearing for the crown-jewel data.
Prior art: Atomist (defunct, but had this model). Kubernetes controllers. Datomic / event sourcing
generally. git itself — commits are events, refs are views.
Serves: verification (feedback in seconds), agents as first-class authors.
The contributor's own hermetic environment runs the canonical checks and produces a signed attestation of what ran, against what inputs, with what result. Subscribers act on the attestation immediately. Re-verifiers cross-check it asynchronously. Trust is measured per attester from re-verification confirm rates, and divergence revokes it.
This trades two failure modes:
| Model | Failure mode |
|---|---|
| CI-as-gate | False negatives — slow feedback, flakes, infra outages block correct changes |
| Attestation | False positives — a bad attestation can land before the re-verifier catches it |
For most environments — personal projects, small teams, trusted contributor sets — false positives that are detected and revocable are a much better trade than a slow, brittle gate. The primary win is latency; the security properties are a side effect of doing it well. See verification.md for what makes an attestation hard to forge.
Serves: integration (observable, policy-driven), architectural minimalism.
The simplest option is a pre-receive hook that checks attestations on every push to a protected
branch. It works — but it makes integration a different shape from the rest of the system, a
synchronous special case whose failure mode is a terse line of stderr. The design instead adopts a
pull-based integrator: a controller subscribing to integration-request events, performing
integration as a reaction, emitting outcome events back into the log.
| Pre-receive gate | Pull-based integrator | |
|---|---|---|
| Where policy lives | Hook script on git server | Controller subscribing to events |
| Failure mode | Push error to stderr | Outcome event in log, threadable |
| Multiple policies | Hard (one hook per repo) | Trivial (multiple subscribers) |
| Async validation | No — must answer before push completes | Yes — controller takes its time |
| Re-running on transient failure | Re-push | Re-fire the event |
| Architectural consistency | Special case | Same pattern as everything else |
Merge-queue semantics fall out for free: requests targeting the same ref serialize in the integrator. And the failure model is deliberately unified — there is no rejection, only staleness: a request that can't progress against current policy is marked stale, once, and refreshing it is the branch owner's problem, not the integrator's.
The bare repo enforces exactly one invariant, with two parts: only the integrator's key may write
protected refs, and attestation refs are create-only. Everything else — topic branches, new
attestation refs, integration requests — is wide open to anyone with push access. That's one short
pre-receive hook; all complex policy lives in the integrator.
Serves: observability & feedback; dissolves the "how do humans review agent code" question.
"Review" is one slice of a larger problem: how the system gives feedback to anyone or anything that needs it. The PR-as-page model conflates:
| Concern | What it does | Failure mode today |
|---|---|---|
| Coordination | A place humans converge to discuss a change | Discussion thread is locked to the PR; orphaned at merge |
| Gating | Correctness checks must pass before merge | Slow, brittle, false negatives |
| Record | Persistent trace of why a change happened | Lives inside one vendor's database |
| Notification | Someone needs to look at this | Firehose; no useful prioritization |
Unbundled: gating is handled by attestations; the record is the event log itself; coordination happens in threads — named, persistent views over events scoped to a change, derived rather than stored; notification becomes a priority/routing subsystem, which is the hard new bottleneck the design creates. The PR object disappears — what people call "a PR" becomes a query with a name. Pre-merge human review becomes the exception: humans engage when the priority layer flags something for them, and feedback accrues continuously before and after a change lands, on the same machinery.
Serves: project knowledge & discussion, agents as first-class authors.
Everything in a project that isn't executable code or user-facing docs — outcomes, bugs, principles,
decisions, ideas, threads — is a typed node: a markdown file whose YAML frontmatter carries the
structured layer (type, id, status, typed edges) and whose body carries prose. The graph lives at
the repo root, clones with the code, and is equally navigable by a human with grep and an agent
parsing frontmatter. Nodes are signed by the same keys as commits; discussion threads are themselves
nodes; and active principles can become load-bearing on integration policy. Not a wiki, not
Obsidian, not Jira — a project substrate that exposes a knowledge-tool-shaped surface.
Serves: project knowledge & discussion (the work itself is knowledge), agents as first-class authors. Anchored at rungs S3/S4 of the scenario ladder.
The typed-node graph already stores dependency structure: blocked_by/blocks edges form a
dependency DAG. The bet is to make outcome — a thing someone wants to exist that does not yet —
the central node type and read that DAG generatively: open outcomes are not a record of intent but
a worklist the system is under pressure to complete. Root outcomes — the things a human actually
asked for — carry a priority that propagates down to the sub-outcomes that must complete for them.
The system dispatches the unblocked frontier — the open outcomes whose blockers are all closed —
on the critical path toward the highest-priority root. Dispatch is klaus-shaped: one more subscriber
on the log, spawning agent runs against frontier nodes.
This splits the old "priority layer" question in two: work-scheduling — what the system produces next — is what this bet answers; attention-routing — what a human must see, and how urgently — stays open (openquestions.md). Scheduler mechanics and node formats are deliberately absent here; that detail returns when its rung is the top priority. The fuller sketch: .the-valley/ideas/ida-eac723e-outcome-dag.md.
Serves: small trusted teams (rung S5 and the S7 limit of the ladder).
A group — a team, a company, a personal namespace — is the unit of federation. Each group runs exactly one instance of the substrate: its hosting and its coordination (the bare repos, the bus, the integrator). An instance is instantiable on a single machine — the v1 case — and distributable later without changing shape. This frame splits the cross-repo open questions in two: intra-group (one bus, one integrator — the tractable near-term case) and inter-group (genuine federation — harder, later). See openquestions.md; anything deeper is deferred until its rung is in reach. The fuller sketch: .the-valley/ideas/ida-8482624-federation-groups.md.
One line each; these are the current picks, not commitments:
cgit or similar for browsing if
needed.