drive: WP-003: Cloud review-swarm infrastructure - #106
Conversation
Work produced by cloud run e8da632a-3b29-4a99-90e2-739842fe235a in a workflow sandbox and delivered from this host, because a sandbox has no remote and no GitHub token. Verification and adversarial review ran in-run; see ops/reviews/ in the diff.
maintainability lens — FAILMaintainability review — PR #106Files in diff: BlockersB1. B2. The run amends the gate that judges it. B3. Two sources of truth for Track D now disagree. ConcernsC1. "Gate 3" label misapplied. C2. Provenance-invisible citations. C3. No lifecycle for Notes
REVIEW_FAILED |
history lens — FAILBlockers
ConcernThe captured SDK failure in REVIEW_FAILED |
structure lens — FAIL$ cat docs/RFC-0001-everything-is-a-relayflow.md 2>/dev/null | head -200; echo "---AGENTS---"; cat AGENTS.md RFC-0001: Everything is a Relayflow
1. ThesisA Relayflow is a deterministic script that composes agentic primitives — an LLM call, an agent, a virtual filesystem, memory, identity, and authorization — into anything from a one-shot pipeline to a resident harness to an entire application. The product thesis in one line: we are taking prompting and making it reliable, with natural rails and gates. The primitives form a ladder, and every rung is a legal relayflow:
The three covenantsEvery gate, surface, and SDK is bound by three covenants, born from real cofounder friction with the current engine: Covenant 1 — easy to write, easy to read. A relayflow's spec reads like the plan it came from. The measure is the cofounder test: a technical founder writes their first working relayflow in under ten minutes without reading engine docs, and can read a stranger's flow aloud and say what it does. Error messages name the author's mistake in the author's vocabulary, never engine internals. Sage is the zero-syntax on-ramp (conversation → spec). Authoring friction is a gate-blocking defect, not a docs problem. Covenant 2 — no unexpected failures. A relayflow may fail only in ways it declared. Two mechanisms enforce this:
Covenant 3 — goals, not babysitting. A flow given a goal runs to completion or to a declared human gate — it never stops to ask permission for work inside its scope, and it never ends a report with "want me to start it?" (if the next step is in scope, it is already started). Human approval exists only where the flow declared it ( The engine underneath must be competitive with Temporal and Inngest as durable execution, and agentic-leading where those engines are structurally blind:
The kernel remains what the charter's phase 4 specified: step journal, idempotency keys, one lease primitive, durable timers, retry with backoff + jitter, built against a simulated clock, with 2. The method: rewrite relayflows using relayflowsThe rewrite is not a project about relayflows; it is a program of relayflows. Every capability below ships as a relayflow, and the acceptance gate for each relayflow is that it supports the use case it exists to achieve — not that its tests pass, not that a demo runs once, but that the real consumer (a persona, the garden, chief) runs on it. Rules of the program:
The Relayflow LeadYes — immediately, and it is the first consumer of this document. The Relayflow Lead is a chief-shaped system fully dedicated to relayflows: it encodes RFC-0001 as its constitution, runs long-lived in the cloud, and Khaliq speaks to it directly. It coordinates the entire product lifecycle — sequencing the gates, dispatching gate work to the Garden/factory machinery that exists today, running the review swarm and the rulebook flows, tracking design-partner acceptance evidence, and reporting state honestly. Per gate 4 it is not a long-running agent but a system: a loop of ephemeral agents over durable state (this RFC, the journal, the repo, its memory). It bootstraps now on the existing persona/chief machinery — the 0825 charter already appointed a Gate dependency orderGates 5–8 are horizontal capabilities that start as soon as gate 1 holds and are consumed by 2–4. Gate 9 closes the loop and depends on 5 + 8. 3. The nine gatesGate 1 — a relayflow can runProves: the kernel. Journal + memoization, resume without re-execution of completed steps, deterministic and agent steps, verification as control flow. Forces into existence: Done when: the canonical hello ladder — (a) a pure deterministic flow with zero agents (legalizing what today's validator rejects), (b) the same flow plus a bare Exists today: Gate 2 — a relayflow can power a proactive agentProves: triggers are entry conditions, not schedulers. Webhook ( Persona import is first-class: Done when: Exists today: cloud webhook router binds Gate 3 — a relayflow can power a factory → Software GardenProves: the flagship DAG. Discover → implement → review → merge-gate → close, on kernel leases instead of factory's ~10 hand-rolled claim protocols ( The rebrand is part of the gate: Software Garden is the presentation layer a customer authors against without ever meeting a lease, a journal, an attempt counter, or a dedupe key (charter phase 8). Factory's Done when: a labeled issue flows to a reviewed PR end-to-end with every claim/lease/retry served by the kernel, the merge gate holding (no auto-merge without opt-in), and the run legible in the journal — while the customer-facing config surface mentions none of it. Gate 4 — a relayflow can run chief (a relayflow can be a harness)Proves: resident runs, not resident processes. Chief is not a single long-running agent — it is a system: a loop of many agents, none of them long-running, over durable state. No agent outlives its step; what persists is the run — the journal, the backed filesystem (the relayfile mount), and memory (gate 5). "Chief" names the loop, not a process. That is how it runs for months or years: there is nothing to keep alive, only state to keep consistent. Done when: chief's loop — surface intent → dispatch → checkpoint → approval — runs for a week of real use (design target: indefinitely) with every participating agent ephemeral, waking on triggers and sleeping between them, and the whole system restartable at any moment from journal + mount + memory alone: kill every process, resume, no lost or duplicated dispatches. Skip attaches as a client of the run/event API, proving harness = relayflow + renderer. The context answer. A chief-like entity does not have a context problem, because it does not have a session. History and context are different things: history is the append-only journal (complete, auditable, never fed wholesale to a model); context is a view assembled per wake — the current epoch summary (structural compaction: everything still live, with the full segment archived losslessly), the triggering event and its surface thread (relayfile), and task-relevant memory packs retrieved from relayhistory, token-budgeted and charged to the step. The model's window bounds the view, never what the system knows. The hard part moves rather than vanishes — from "impossible: window limit" to "tractable: retrieval quality" — which is gate 5's acceptance test and why evals are first-class. The corollary is a product: what the market sells as "an agent" — Viktor, Tembo, Tasklet, Warp — is in relayflows terms a small system: triggers (gate 2) + ephemeral agent steps + a backed filesystem + memory (gate 5) + identity (gate 8) + performance review (gate 9). It self-improves and never dies because it was never alive. Once gate 4 holds, "build an agent" is an afternoon of authoring, not a product category we have to chase. Gate 5 — a relayflow has memory: for the script, and per agentProves: memory is a kernel-adjacent concept with two scopes:
Done when: a step can declare Exists today: relayhistory (Rust, SQLite/FTS5, MCP server, Gate 6 — integrations are first-class via relayfile, with no
|
|
🎯 review-swarm: FAILED (M:fail H:fail S:fail) Lens transcripts posted as sibling comments above. |
ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Free Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe change replaces the SDK worker brief with a cloud review-swarm infrastructure package. It also documents the SDK test blocker, resolution options, updated scope, and revised definition of done. ChangesGate 3 review-swarm scope
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: 🟡 Moderate · up to The PR moves review and merge decisions into a cloud workflow for every pull request, but the current design does not clearly bind results to the exact repository, commit, pull request, and run, or isolate concurrent and interrupted runs. Stale or mixed results could affect merge decisions, so the changes need follow-up or explicit owner acceptance before merging. Poem
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Essentials by visiting https://app.coderabbit.ai/settings/billing. Comment |
|
Auto-closed: drive loops stopped. Focus consolidating on #96 (hand-written Track A v2 with latest fixes). |
Automated drive work from cloud run
e8da632a-3b29-4a99-90e2-739842fe235a.The sandbox cannot open PRs (no remote, no GitHub token), so this was delivered
from a host that can. Verification and adversarial review ran in-run — see
ops/reviews/in the diff. A human merges.