You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Research: path to authorized autonomy with lagging approval
#397
After the owner grants authority, the system should finish tasks on its own with weak, lagging owner approval:
Inside the authorized scope it acts on a default plan first, notifies after the fact, and records the work as "done, awaiting confirmation".
Every such action carries a recorded pre-state and an automatic revert path.
The owner may later confirm, modify (amend), or roll back. Those three replies travel through the inbox.
Only actions outside the authorized scope block and wait for approval.
The long-term direction has four capability levels: self-loop (drop in an issue, it is claimed and finished), self-decision (scope + default plan + after-the-fact notice + rollback), self-iteration (the loop repairs itself from real failures and files its own issues), and high judgment (sound routine decisions, and some hard ones, without the owner). One more requirement cuts across all four: a single set of constraints under which even a Haiku-class model runs a stable 7x24 workflow.
Positioning (owner decision)
Harness-agnostic. The execution harness (pi, Claude Code, Codex or similar) is swappable behind a thin adapter, and the owner does not care which one runs. The repository already has that seam (runtime/lib/agent-adapter.mjs, harness.mjs). The owner picks a small fixed model set per deployment.
Not an aggregator. Roundtable does not build harness switching, model switching or ACP-style aggregation of coding agents. Other tools already do that (the owner names CC Switch, the DeepSeek harness and pi itself). It is not the thesis.
Triggering is trivial. Cron plus a webhook is enough (even a scheduled Claude task can fire one). A catalog of trigger adapters or a multi-agent canvas is not the problem to solve.
The value is the continuous workflow engine after the trigger: decomposition, concurrency, deterministic gates, park-versus-retry, deferred approval with rollback, self-iteration, and 7x24 stability on weak (Haiku-class) models. Every surveyed project is judged on that.
A gap I found no issue for: the production --handler and --providers modules that rtd.mjs requires exist only as test fixtures in the repository.
Top borrowings. OpenHands' deterministic delivery watchdog (code merges over head-pinned statuses; missing evidence means no merge). Agent Canvas' per-conversation Docker containers, as a pilot against host load and leaked locks (not a worktree replacement). loope's park-on-failure rule, only for unclassified failures (quota waits on a timer). chipping's typed owner commands. dev-loops' stopAt list as the authority boundary. Optio's pure decision function with compare-and-swap writes. Anthropic's deferred tool call for approve-first.
Agent Canvas cannot replace roundtable (2.2a). It runs and triggers agents; its SDK has only approve-before-execute. I found no act-then-confirm, rollback, merge tiers, outbox, self-iteration or weak-model constraint set. ACP adapters and backend switching are out of scope.
Intake correction. Optio's "fourteen triggers" are four mechanisms (manual, cron, generic webhook, ticket sync) plus ten platform webhook adapters. GitHub events, cron and one generic signed webhook inbox cover most of our intake.
Method
Everything was checked against primary sources on 2026-11-15 (UTC); versions are in the table below.
Revision (same day). Added Agent Canvas (2.2a), corrected the Optio trigger count (2.1) and added the positioning.
Surveyed projects: README plus relevant docs, fetched through the GitHub API or the documentation site. For OpenHands I also read the delivery-watchdog source in OpenHands/extensions, and for Agent Canvas the README and docs pages (not its source). One extra source: Anthropic's multi-agent safety post (merge outside the agent, offline monitor).
What is new here. A different goal (authorized autonomy with lagging approval, not review convergence or harness tuning). 竞品调研:同类自迭代开发循环框架对比与优化建议 #106 looked at OpenHands' Canvas and automation at an earlier snapshot; I re-read current Agent Canvas, Software Factory and the delivery watchdog against this goal, and the other sources are new. Also new: a roundtable assessment after [RT-O] 基于开发过程分析的自迭代优化 #330 and [RT-B] Haiku-stable 7x24 architecture #374, and one question the earlier surveys did not ask: who does act-then-confirm with rollback? (Nobody here.)
2.1 Optio (jonwiggins/optio, MIT, about 1.1k stars)
Self-hosted orchestration for coding agents, scheduled jobs and interactive sessions: TypeScript, Fastify, Postgres, Redis/BullMQ, Kubernetes (Helm); local setup needs Docker Desktop with Kubernetes.
Intake / inbox. The README's "fourteen trigger types" are four mechanisms plus ten platform adapters (docs/tasks.md, Triggers): manual, schedule (cron), a generic webhook (/api/hooks/:path) and ticket (a ticket-sync sweep); then adapters for GitHub, GitLab, Slack, Linear, Jira, PagerDuty, Sentry (signed workspace receivers) and Pylon, Alertmanager, Datadog (per-trigger shared secret). All fire through one dispatcher into one normalized firing. Per docs/trigger-delivery.md, receivers persist an event before acknowledging (so the sender retries on failure), dedupe by delivery id or payload digest, accept an Idempotency-Key, and retry dispatch up to eight times. Persistent agents have a durable per-agent inbox; pending messages are drained into the next turn's prompt in an envelope with a typed sender (user:, agent:, system:, external:).
Reconciler. Events enter a de-duplicated queue. A worker builds a frozen world snapshot, calls a pure decision function, and applies one typed action guarded by compare-and-swap; a failed CAS re-queues instead of retrying on stale data.
PR pipeline. The agent stops after opening a PR; a PR watcher follows CI, review and merge state, with an optional review agent, capped auto-resume on CI failure or requested changes, and optional auto-merge.
Evidence over self-report. "A PR URL in an agent's output is not evidence": a task adopts only PRs its own tool calls created. Auto-merge re-reads the PR and checks, defers on errors or pending/failing checks, and passes the checked head SHA so a concurrent push cannot merge unchecked commits.
Failure. A persistent agent moves to failed after consecutive_failure_limit (default 3) and needs a manual resume; the README requires "an explicit decision before retrying an uncertain outcome".
Not found: core auto-decomposition, deferred approval, act-then-confirm, rollback, self-iteration.
Borrow (intake): only the delivery discipline (persist before ack, dedupe, idempotent retry), which matches [RT-B8] Webhook HTTP listener on loopback using the #367 verifier, ack after durable inbox append #383's "ack after durable inbox append". The ten adapters are payload mapping; GitHub events + cron + one generic signed webhook inbox covers most of our needs. Add an adapter only for a demonstrated gap.
Borrow: the pure decide(snapshot) -> one typed action discipline with CAS writes (machine.mjs and the epoch-fenced store are close; route every daemon action through that shape); "output text is not evidence"; typed sender labels on inbox events; capped auto-resume. Skip: the Kubernetes/Postgres/Redis stack.
A recipe on top of Agent Canvas (next subsection): four independent automations, each polling every 5 minutes: triage (priorities, dependencies, acceptance criteria, then ready-for-dev), developer (issue to PR), reviewer (checks out the exact PR head, runs tests, posts a review and exact-head statuses) and watchdog.
Least privilege per role. Each profile gets only its own fine-grained token; the reviewer can publish statuses but cannot push. Profiles disable MCP servers, model switching and sub-agents.
The watchdog is code. The docs call it "deterministic" and say it "starts no agent". I read scripts/worker.py (96 lines). It merges only when the PR is open, non-draft, mergeable, on the expected branch prefix, the head SHA matches, software-factory/tests and software-factory/review are successon that exact head, all other statuses and Actions runs pass, and the branch is not behind base. If behind, it calls update-branch and re-adds the review label, forcing a fresh review. The merge call carries the expected SHA; any exception means no merge. "Branch protection remains GitHub's final merge gate."
Caveat. The two acceptance statuses come from a reviewer agent: the model produces evidence but cannot merge. The six-concurrent-developers demo is the docs' claim, not reproduced.
Borrow: fail closed on missing, pending, failed or inaccessible evidence; head-pinned acceptance where a changed head forces re-review; merge as a separate stateless pass so it works when workers are down or out of budget (roundtable's merge.mjs already pins head, tree and gate evidence but runs in the issue's finalizing wake, so an accepted PR merges only when the loop wakes that issue); per-role least-privilege tokens.
2.2a OpenHands Agent Canvas (OpenHands/OpenHands, MIT; v1.40.0, 02c438a on 2026-11-15)
The platform Software Factory runs on: a "self-hosted developer control center for coding agents and automations" (README). The factory is a recipe on it (docs: Canvas 1.24.0+ and per-conversation Docker). Read: the README, the docs pages in the sources table, the SDK security guide and the automation service README (beta).
Architecture. A UI over an Agent Server (runs conversations) and a separate Automation Server (OpenHands/automation: cron, webhooks, run history, dispatch). Settings, LLMs, MCP servers and automations are scoped per switchable backend.
ACP and backends. Drives OpenHands, Claude Code, Codex, Gemini CLI, Pi or OpenCode as ACP subprocesses, each with its own LLM and tools. This is harness and backend switching: out of scope.
Sandboxes. None (the docs warn of full filesystem access), the whole Canvas in Docker, or per-conversation Docker (OH_CONVERSATION_RUNTIME=docker, "useful for running several agents concurrently"). Each conversation gets its own container and Agent Server: host UID, capabilities dropped, no-new-privileges, memory/CPU/PID limits, stopped after 20 idle minutes and restarted on next use, stale containers removed at server start. The workspace is bind-mounted: "Conversations using the same host workspace still share those files; choose separate directories or worktrees." Client-supplied limits are not capped by the server.
Automations. Cron and event triggers; templates (issue to PR for GitHub, GitLab, Jira, Linear; PR review; repo and Slack monitors); custom signed webhook sources (event-key expression plus signing secret); "script bundle" automations that poll and dedupe deterministically and use the agent only for judgment.
Approval and safety found. SDK confirmation policy (AlwaysConfirm, NeverConfirm, ConfirmRisky): the agent blocks on a pending action until it is accepted or rejected, i.e. approval before acting. A stuck detector halts looping agents. An experimental critic can trigger refinement after a low score (OpenHands agent only).
Not found: act-then-confirm, rollback, merge tiers (the only merge logic is the factory watchdog), an outbox store, self-filed issues from failures, a weak-model constraint set, a park-versus-retry policy.
Can it replace roundtable? No. Canvas decides when an agent runs and gives it a sandbox (the automation service "decides when work runs"). Everything the goal depends on, from deferred approval with rollback to weak-model stability, is absent from the sources. Adopting it would replace the part we do not need (triggers, UI) and leave the engine unbuilt. Roundtable is harness-agnostic and not an aggregator, so Canvas' agent switching solves a problem we do not have.
Borrow only two things:
Per-session container isolation, as a pilot against the host freezes and leaked temp-lock trees in section 4.4. Limits on memory, CPU and PIDs and discarded container state may help; the docs do not claim lock cleanup, and the bind-mounted workspace stays shared, so this is a hypothesis to measure and per-task worktrees stay. Copy the pattern (a container per role session behind our adapter seam), not the product.
The deterministic merge watchdog: the same mechanism as in 2.2, counted once.
ACP adapters, backend switching and the multi-agent UI are out of scope.
2.3 loope (ngthluu/loope, MIT, 13 stars, last commit 2026-08-23)
A Go daemon. An issue's state is its label (ai-agent, ai-wip, ai-done, ai-rework, ai-needs-info, ai-stopped). It polls, takes the oldest eligible issues up to a slot budget, and works each in a git worktree.
Structured output. Each session ends with a JSON object enforced by the Claude CLI --json-schema option; execute must report status: complete or the issue parks.
Confidence gate. Below confidenceThreshold (default 70) the entry session asks questions instead of guessing.
Product-owner proxy. The architect debates a cheaper agent answering from a persona file the owner writes once: a policy-driven default-plan chooser (level 2).
Park, do not retry. Any failure (usage limit, turn ceiling, network, crash) parks the issue as ai-rework with the full error, and nothing retries until the owner removes the label. The docs say retrying "meant one broken issue re-ran the whole pipeline every cycle and burned tokens unattended". A restart sweep strips ai-wip only when a directory lock proves no live owner.
One-shot sessions. Background tasks, cron and wake-up tools are disabled mechanically; it stops at the PR (no merge).
A Python poller (systemd user service) that turns issues into reviewed PRs with Claude Code, Codex CLI or Antigravity CLI. State lives on the issue.
Flow.decomposing -> ready -> implementing -> validating -> documenting -> in_review -> done/rejected. The decomposer can split work into child issues; oversized changes, conflicts and retries take explicit side paths.
Evidence-bound review. The reviewer declares the verification its verdict relies on, and the orchestrator publishes it on the PR. "An approval without passing evidence covering every configured VERIFY_COMMANDS command waits for a human." A docs commit is re-verified on that exact commit; stale evidence is invalidated and sent back for fresh review.
Human always merges. "Pull requests are never merged automatically."
Typed owner commands and budgets./orchestrator continue, add-review-rounds N, add-agent-runs N, authorize-oversized <commit>, accepted only in the contexts the park comment names; an author allow-list is mandatory. Caps on review rounds, lifetime agent runs and daily retries are raisable by command.
Risks. Agents run with approvals and sandbox checks disabled ("the host account is the security boundary"). docs/state-machine.md is about a thousand lines; state from one version does not resume under the next.
Borrow: typed, bounded owner commands with documented effects are the right precedent for /rt confirm|amend|rollback; a mandatory author allow-list. Evidence binding is mostly covered already: Gate 0 runs the tests itself in a sandbox, and [RT-O-8] Machine-readable roundtable record on every loop PR, required before merge #340 adds a validated record per PR.
2.5 dev-loops (mfittko/dev-loops, MIT, 18 stars)
A shared core with three front ends: a Claude Code plugin, a Pi extension and a CLI; closest to this repository's stack.
Deterministic lifecycle. Seven phases (issue_intake through merge) in a pure module with an explicit transition table; ambiguous input falls back to issue_intake. README: "Deterministic gates and a judge decide; humans decide only what tooling cannot, or what the repo requires."
Authority is a config list.autonomy.stopAt: [merge] and humanMergeOnly: true in the shipped defaults. Gates have requireCi toggles; Copilot re-review rounds are capped (default 5); postMerge.actions run local actions after a merge.
Invocation. Command-driven, "to the human-approval checkpoint"; no resident scheduler or inbox in the README.
2.6 Harness (VocanicZ/Harness, MIT, 2 stars) - not google-research/harness2
A pool of agent CLI sessions against a GitHub-issues board. A PRD issue is split into dependency-ordered issues; workers claim ready ones, implement, audit, test and merge.
Deterministic merge gate. The repo's scripts/ci-local.sh if present, otherwise targeted test rounds on the rebased head. "gh pr checks and mergeable-state are never the gate." A red gate is retried up to 3 times, then the PR is left open with the failing step commented. A lane never weakens a test to pass.
Recovery and claims. Claims only when usage is not held, the default branch is green and the GitHub budget is fine. harness start --recover clears claims from dead lanes; pause --force checkpoints agents to GitHub (label, pushed branch, handoff comment) so another host can resume; /harness-one forecasts one issue against live usage and asks the owner to APPROVE or DENY.
Early self-iteration. An optional security audit and "gauntlet" review file confirmed findings of medium severity or above as ready-for-agent gap issues that hold sign-off.
Cost warning from its own benchmark. On a small task (n=3 vs n=5, marked "indicative") Harness took about 76.5 min and $8.34 against 2.9 min and $0.58 for one plain session: roughly 26x time and 14x cost.
Borrow: severity-filtered gap issues that hold sign-off; checkpointing state to GitHub so work survives a lost host (relevant to our freezes); a local deterministic merge gate; claim guards tied to quota and main health.
2.7 soba (douhashi/soba, MIT, 0 stars; last commit 2025-12-05, dormant)
Label state machine (todo -> queued -> planning -> ready -> doing -> review-requested -> reviewing -> done, plus requires-changes -> revising), polling every 20 s, one issue at a time. Runs Claude Code in tmux with --dangerously-skip-permissions; optional Slack webhook on phase starts. auto_merge_enabled defaults to true: when a Claude review approves and labels the PR soba:lgtm, soba merges, the "model verdict decides the merge" pattern I recommend against. No recovery, budgets, parking or rollback in the README. Borrow: only a quiet-by-default per-phase notification channel.
2.8 dispatch (moonexpr/dispatch, no license declared, 0 stars)
The README refers to ReclaimByDesign/dispatch, which the API reports as not found; I read the repo above. A scheduled tick picks one ready job at a time; a state-machine engine runs spec -> work -> build, opens a PR, and "arms auto-merge (awaiting your approval)" or escalates. Dry-run is the default, --live is required to mutate GitHub, and no token may merge directly. On failure it advances a "fix ladder"; on ambiguity it escalates. I found Slack only in soba, not here; I did not read the wiki. Borrow: dry-run default (matches roundtable's shadow default), explicit priority rungs, skills that decompose a request into small issues before queueing.
Five primitives around an agent that "is not actually 'always on'": an event inbox (durable, de-duplicated, one active worker, batch pending events, acknowledge fast), timers (own store; due timers fire into the inbox), memory (own store; only what cannot be looked up again), permissions (credential-injecting proxy outside the agent, classifiers, deferred tool calls) and an outbox (a run ends by sending, sending nothing, or deferring).
A deferred call ends the run, saves the session mid-call, shows the request to the user, and brings the answer back "as an event in the inbox", which resumes the saved session while the worker handles other events. The article also advises the agent "to start quiet and then earn more of the user's attention over time". This is approval before acting; it does not describe act-then-confirm or rollback.
2.10 Extra source: Anthropic, "Safely scaling multi-agent teams" (2026-11-09)
Added for layered controls on unattended teams. Agents push only to their own branch; a separate job merges, refusing only on conflict or fault. A classifier can block each tool call, and an offline monitor reviews all actions afterwards. Caveat: the task (a formal proof) has a machine checker as ground truth, which software review lacks. Borrow: merge outside the agent's authority; a periodic offline audit of past decisions, a fit for lagging approval.
2.11 Cross-cutting findings
Three merge-authority patterns. Code decides on evidence (OpenHands, Harness, Optio, roundtable's merge.mjs); a model verdict decides (soba); a human merges (chipping, dev-loops default, dispatch, loope stops at the PR). Roundtable is in the first group, with one carve-out: safety-file changes need a recorded cross-check-model or owner approval (runtime/lib/gates.mjs).
Nobody implements act-then-confirm with rollback. Everything is "auto and final" or "human before merge" (Agent Canvas' SDK blocks per action until approved, which is the same family). The only rollbacks I found concern tool or package versions, not task actions.
Parking versus waiting. No surveyed project separates "transient, wait on a timer" from "broken, park" as a table; the [RT-B] Haiku-stable 7x24 architecture #374 recovery table does.
Weak-model robustness is mostly mechanical: CLI-enforced schemas (loope), watchdogs that cannot be talked into merging (OpenHands), capped rounds. Nobody documents tests against a specific weak model.
Legend: yes = implemented and documented; partial = narrower than the column; lib only = merged code with tests, not on the production path; no = looked for, not found; n/d = not documented in what I read. For roundtable, "production" means the host-side loop as documented in the repo (case doc, #374, #375, #330), not something I observed.
production: host poll about every 300 s (#374). Inbox, claims, signed-webhook verifier, intake adapters lib only (#366, #367); listener #383 open. Enough for us: GitHub events + cron + one generic signed webhook inbox
repo: size/risk triggers (#331), two-phase child creation (#332). Production: 13 automatic splits, 33 of 36 children merged first time (case doc)
production: up to 8 slots, average 2.02, then 3.54 after the series fix (case doc). Repo: touch sets (#310); --workers default 2
Gate 0 (diff policy, hygiene, sandboxed tests), Gate 1 reviewer, Gate 2 cross-check for high risk, required CI, one merge entry point (merge.mjs) pinning head and tree
auto-merge after gates; safety files need recorded cross-check-model or owner approval. mergeRisklib only; tier function #380open
lib only (outbox.mjs), not imported by rtd.mjs; write proxy only in the front Chief launcher
no. Closest: revert PR when main goes red after auto-merge (recoverRedMain; 4 cases), triggered by CI, not the owner. Design merged as docs (PR #375); journal #389 and replies #390 open
partial: repo has wake / attempt / reviewer-unavailable budgets, 1 h phase and 10 min queue timeouts; budget.mjs, guard.mjslib only. Production lost 7.3 h to a quota wait (case doc); #308 merged, #309 open
repo: lock leases with epoch fencing, claim TTL. Production: 16 scheduler restarts in about 79 h, a 4 h hang found by a human; liveness lib (#333) not wired
partial: Gate 2 follow-ups auto-filed (54, 38 bulk-closed), then restricted (#195, #338); stall + diagnoser libs (#218) not wired; 36 host patch classes by hand
design only (#374/#375). Present: admission checks, verdict token, structured DECISION with one free re-ask (#339)
Reading the matrix: roundtable's gate and merge-safety rows are as strong as any surveyed project's. Its weakest rows are the ones the goal depends on: wired inbox/outbox, deferred approval, and act-then-confirm. For the last one the whole field is empty, so we build rather than borrow.
4. Roundtable's real current state
4.1 Repository versus production
rtd.mjs is one pass, not a daemon. It reads the queue, wakes each runnable issue at most once, and exits. The README: an external wake is required and "nothing in this repository schedules it".
It imports a narrow set. The import graph from rtd.mjs reaches 31 files (including itself and scripts/github-read.mjs): locks, queue, state store, classification, intake, claims, workers, worktrees, decisions, routing, gates, production adapter, merge entry point, label projection, observation, status, shadow. On main5655b74 the only change is syncWithBase ([Parallel] Native multi-way parallelism: touch-set scheduling, worktrees, and ordered rebase-merge #55). event-inbox, event-claim, event-timers, outbox, role-memory, reflect, decision-cards, liveness, budget, guard, usage-ledger, diagnose, merge-risk, merge-decision and rt-commands have no non-test importer reachable from rtd.mjs (the architecture doc marks /rt commands "implemented"; I found no importer, so I treat them as library until wired). gh-write-proxy.mjs is imported only by bin/rt-chief.mjs.
Caveat. Gate code (accept, gate-exec, hygiene) is reached through the operator-supplied --handler and --providers, so "unreachable from rtd.mjs" is not "dead".
Handler and providers are not in the repository.rtd.mjs refuses to run without --handler (exporting preDispatch) and, for GitHub runs, --providers (gates, GitHub merge/label/revert methods, git). I found these shapes only in tests and fixtures, and no issue that adds a production module. Either it is deliberately operator code or it is a gap in the RT-B plan; the readiness check ([RT-B13] Cutover readiness check, host decision exporter and --exclusive-with guard for the live switch #391) cannot pass without something supplying it.
The docs flag their own limits:docs/12-events-and-memory.md is a candidate design; the README says the outbox, timers and inbox are "not wired into rtd".
4.2 What "cutover" delivered
#290 (RT-U2f) was closed by PR #321 on 2026-11-15. The PR says it adds acceptance tests and an operator section and that "no runtime code changed"; the production switch and host-script removal are "deployer actions outside this repository". Delivered facts:
rtd is in shadow unless --live; shadow wraps the GitHub client so only reads pass and writes a per-cycle decision diff.
deploy/systemd/rtd.service is a template: placeholders, no [Install] section, no --live, not installed by any script. Enabling it is an owner-only step.
The supervisor is observe-only; nothing in the repo calls writeHeartbeat; --mode apply exits non-zero ("apply needs live actuator adapters").
I do not claim the cutover is done, and neither do the docs.[RT-B] Haiku-stable 7x24 architecture #374 says production "still runs on the host scripts (300 s GitHub poll, several workers)".
4.3 The production loop and its patches
Per the case doc (snapshot 2026-11-14) and #334: a host-side scheduler plus per-issue workers, 188 dispatches, 99 ended done, 107 merged PRs over four days, 16 restarts. 36 classes of host patch (94 backups; the worker script went through 17 versions) were applied by hand. #334 / PR #361 produced docs/host-patch-inventory.md, mapping each class to a runtime rule plus test, superseded, or not ported: <reason>; the patches are still live on the host. The inventory test checks structure, not freshness (waitguard and subretry still say "pending" though #333 and #332 merged).
4.4 Known real failures, with status
Counts are from the case docs (self-reported snapshots; freeze durations are estimates per their own caveats). Status as of 2026-11-15.
4.6 The planned wiring: #374 and docs/architecture.md
PR #375 merged docs/architecture.md on 2026-11-15. #374 [RT-B] (held) lists children #377-#391, all rt:go and open when I checked: daemon cycle (#377), inbox claim release (#378), inbox and timers (#384), outbox (#385), role memory (#386), decision cards (#387), recovery table (#388), tier function (#380), action journal (#389), owner replies (#390), cutover readiness (#391), IM adapters (#381), webhook listener (#383), plan/e2e stages (#382), series suffix (#379). The document marks each module implemented / partial / library-only / missing and says the cutover is not done: design, not shipped behavior. It records one defect I confirmed in event-claim.mjs: if dispatch throws inside processPending, the claim file keeps the live daemon's pid, so later cycles see already_claimed and the event stays stuck until restart (#378).
5. Gap-to-goal analysis
5.1 Anthropic's primitives plus deferred approval, mapped
Primitive
Anthropic's pattern
Roundtable library
On production path?
Still missing
Event inbox
durable, deduped, one worker, batch, ack fast
event-inbox.mjs, event-claim.mjs
no
producers (comments, CI, intake), wake signal, claim release on throw, status records (#378, #384, #383)
Timers
own store; fire into the inbox
event-timers.mjs (once, recurring, waitRelease)
no
firing inside a cycle; quota waits as timers (#309, #384)
Memory
own store; only what cannot be looked up
role-memory.mjs, reflect.mjs
no
preload into real role prompts, reflect on delivery/failure (#386); #175 (reflector) was closed as not planned
Permissions
credential proxy, classifiers, deferred calls
gh-write-proxy.mjs (denies merge, close, force push, push to main); childEnv strips GH_* / GITHUB_*
partial: front Chief launcher only
proxy for worker and merge writes (#385); relation to the host gh shim
Outbox
send / nothing / defer; dispatcher; pacing
outbox.mjs
no
GitHub provider, backoff, dead-letter, IM adapters, digest (#385, #381)
Deferred approval
deferred call, answer as inbox event, resume session
Where we are. Real for small, well-formed issues: 33 of 36 decomposition children merged first time; 13 automatic splits; 107 PRs merged in four days. This is the host implementation, not the in-repo runtime.
Uptime. Measured losses are the host and quota (about 15 h of freezes over two days, a 4 h hang, 7.3 h of quota idle), not model quality. The libraries exist but are not running.
A merge path that does not depend on the issue's worker being woken.
OpenHands watchdog (Software Factory and Canvas, one mechanism): keep, as placement, not logic. Roundtable's merge is already deterministic code over recorded evidence. Borrow the separate stateless pass: scan open loop PRs, merge those whose head-pinned evidence is complete, update a behind branch and force fresh review. It is a small extension of the main monitor and merge.mjs. Prefer safetyApprover: owner over a model approver once [RT-B7a] Autonomy allow-list and tier function (auto-silent / auto-notify / approve-first) applied before merge #380 lands.
This is the level the goal is about. The merged design is coherent; I assess it against the survey and point out holes. "Proposal" marks my ideas, not in the repo.
Defining authority scope. The design combines three layers, which I think is right:
An allow-list of action kinds (runtime/defaults/autonomy.json: kinds, silentKinds, silentPaths, notifyTtlDays, safetyApprover) with a tighten-only host override (loosening values are ignored and reported). This is dev-loops' stopAt shape.
Facts-based risk tiers from existing deterministic code: safetyFiles, mergeRisk (safety file, review disagreement, over 400 lines, protocol files, CI not green), the closed ask categories and production detection (machine.mjs), and whether a revert recipe can be built.
A first-match pure functionautonomyTier(action, autonomy) returning auto-silent, auto-notify or approve-first: kind not allowed; closed category or production; no revert possible; safety file; owner override label; risk:high; silent kind with low risk and silent paths only; otherwise notify.
I would keep this over a model-estimated risk score: every input is a fact, every outcome has reasons, and no configuration moves a safety-file change out of approve-first. Holes:
The grant is not a record. "After the owner grants authority" should be a durable object: who, what scope, when, expiry, revocation. Proposal: the allow-list file is the grant; changes to it are config-change actions that are always approve-first; the journal records the grant version each action ran under.
Unbounded confirmation debt. With a 7-day TTL and a silent owner, unconfirmed actions pile up and later PRs may build on them. Proposal: cap pending executed_pending_confirmation actions (count and age) per scope; beyond the cap, new actions degrade to approve-first and the digest says why. This breaker is what makes weak approval safe.
Scope expansion should be evidence-driven. Proposal: the loop may propose widening silentKinds after N confirmed-or-expired actions of a kind with zero rollbacks; the change needs the owner.
Choosing the default plan. The design: the gated merge through the existing entry point; for non-closed decision cards, the provider's choice validated against the options, falling back to the card's recommendation; the projected label set; the admitted issue draft. The plan is written to the journal before the action. This matches #195 and loope's persona idea. Proposal: for scope and direction questions, order mostly mechanically: (1) the option with a revert recipe, (2) the smaller diff, (3) the option most consistent with the issue text and policy. A model may rank options, not invent one.
Event flow for confirm / modify / roll back. Replies are /rt confirm|amend|rollback <action-id> comments, parsed with the existing exact-grammar rule (parseRtCommand accepts only /rt <word> today and refuses merge), turned into owner_comment inbox events with stable ids (gh-comment:<id>), and applied to the journal after the author check resumeAfterOwnerReply already uses:
Reply
Journal transition
Effect
confirm
executed_pending_confirmation to settled
no GitHub or file change, no notice
amend (text)
to amend_requested; the line resumes with the text; next action carries amends: <id>
a merged change is amended by a follow-up PR, never by rewriting history
rollback
to rolling_back, then rolled_back or revert_failed
line held; revert steps run in order; rollback-result notice
approve / reject (approve-first)
resume the suspended line / cancelled
decision cards and resumeFromApproval
TTL expiry
to expired
reported in the digest; never auto-reverted
Holes:
Ignored replies must be acknowledged. A reply for an unknown id or illegal state is "recorded, never applied". If the owner asks for a rollback and nothing visible happens, that is dangerous. Proposal: ignored replies produce a short notice with the reason.
Rollback after settled. The design makes it illegal. Owners change their minds. Proposal: treat a late rollback as a new action (revertOf: <id>, auto-notify, never auto-silent, which the design already specifies for revert PRs).
Silence is consent only after the TTL, and only for what is reversible; "expired" must not read as "confirmed".
Recorded pre-state and automated revert. The rollback contract is the strongest part. Before any auto-notify action the daemon appends { id: "act:<kind>:<issue>:<key>", kind, tier, reasons, plan, before: { mainSha, labels, files }, revert: [steps], at } to an append-only actions.jsonl. The id is deterministic, so a replayed cycle does not act twice. Revert steps come from a closed set (git-revert-merge, labels-restore, file-restore, issue-reopen, issue-close), each idempotent. A failed step moves the record to revert_failed, stops the remaining steps, holds the line and raises an approval request. file-restore refuses if the file changed after the action. If no recipe can be built, the action is irreversible and approve-first.
Assessment: the only revert path proven in production is revert-on-red (4 cases), so the closed-set approach is grounded in something that has worked. Remaining risks:
Stacked changes. Reverting merge A when merge B builds on it can conflict; the revert PR goes through the normal gates and a conflict ends in revert_failed plus a human question. Proposal: record in-flight PRs touching the same files at action time and show them in the rollback notice.
Side effects that cannot be reverted (packages, deploys). Production, credentials and destructive are already approve-first; add "has external side effects" as a tier input.
Deferred versus real-time approval. Anthropic's deferred call, decision cards and chipping's typed commands cover approve-first. Act-then-confirm covers the rest and nobody else has it, so test the journal with a fake clock before enabling.
No model judgment where a gate will do. Today the one place a model's approval feeds a merge is the safety-file rule (recorded cross-check-model approval or current-head owner approval). The tier design allows safetyApprover: owner; I recommend making that the first-stage default.
5.4 Level 3: self-iteration
Where we are. Rules from real failures have become code: ten ported rules (#287, #288) and most #330 children (#331-#334, #338, #339, #341, #342 merged; #336, #337, #340 open). Stall detection, the diagnoser contract and gated rule patches exist as libraries (#218). In production the loop does not repair itself: the 36 patch classes were hand-applied.
What is missing. The architecture promises "a classified real failure produces a recovery action or a fix issue", but the children cover only the recovery action half (#388: a pure table of failure class to action, with spendsBudget) and an alert notice. No child files a deduplicated fix issue from a classified failure. The only auto-filing precedent is Gate 2 follow-ups, which produced noise (54 filed, 38 bulk-closed; #195, #338).
Authority: a self-filed issue enters as rt:proposed (kept out of the queue until rt:approved) unless it falls in an allow-listed low-risk class, where the tier function decides. Changes to control-plane rules, safety files, budgets or routing stay approve-first; docs/01-architecture.md already says global rules must not change from a single success.
loope's lesson: a repeated signature trips a breaker instead of burning another round (exists in stall.mjs; needs wiring).
Where we are. Decider-by-rule (#195) means routine scope and direction questions no longer reach the owner (18 stops, 17 disagreements, 7 asks decided in the case window; pull-backs fell from 17 to 1 per day, partly due to the rule change and the decomposition fix rather than judgment). Credentials, destructive and production questions deliberately stay with the owner.
What is missing. Outcome data. Nothing records whether a decision was later reversed, amended or confirmed. The journal and replies are the first source of that signal.
Anthropic's offline monitor as a scheduled audit: sample journal entries, compare with later outcomes (reverted within 14 days? amended?), report in the digest.
"Start quiet, earn attention" as the notice rule: auto-silent where trivial and reversible, a daily digest for auto-notify, immediate notices only for approval requests and failures.
Reject model-verdict merges (soba) and any design where risk is a model's number instead of a function of facts.
Define "high judgment" measurably: the share of auto-notify actions confirmed unchanged, or expired without a later revert, over a rolling 30 days with a stable rollback rate. Expand scope only when that holds.
5.6 The weak-model constraint set
docs/architecture.md maps each constraint to a mechanism. My check of what already exists in the runtime (not necessarily in production):
Constraint
Mechanism
State
Small steps
admission (at most 400 lines, 5 files), early decompose triggers, one stage per run
Missing for a "Haiku-stable" claim: a regression suite for the weak model itself. The constraints are asserted, but nothing measures whether the configured model passes them (first-try valid DECISION, verdict line, schema). The case doc counts 10 wakes without a decision, 14 "no valid DECISION" and 14 reviewer runs without a verdict against 240 wakes, before #339 added the free re-ask. Proposal: a nightly replay of fixed fixtures against the configured weak model, reporting those rates, so a model or prompt change that breaks structure is caught before production.
6. Recommended path
Ordered by leverage, based on where measured time and tokens were lost and what the goal depends on. I cite existing issues instead of reopening merged work; (new) marks items for which I found no issue.
Scope guardrails
Out of scope: harness or model switching, ACP aggregation and adapters, Agent Canvas' backend switching and multi-agent UI. Roundtable stays harness-agnostic behind the existing thin adapter. Triggering is trivial; effort goes to the continuous engine after it.
(new) Pilot per-session container isolation (from Agent Canvas, 2.2a): run one role session (developer) in a container with limits and a bind-mounted worktree, behind the adapter seam. Compare host load, freezes and leaked locks with and without; keep it only if they improve.
(new) A deduplicated, rate-limited fix-issue filer driven by the recovery table and failure signatures, entering as rt:proposed unless allow-listed; capped per day; checked against open and recently closed issues.
(new) A scheduled decision audit (sampled journal entries versus later outcomes) reported in the digest.
(new) Weak-model replay suite, nightly, with first-try structure validity as a tracked rate.
16 scheduler restarts in about 79 h; a 4 h hang; about 15 h of freezes over two days
at least 168 h without a manual restart or hand patch after cutover; hang detected within 3 polls; zero hours idle while a fallback candidate is available
at most N pending unconfirmed actions per scope (owner sets N); none older than the TTL missing from the digest
journal
Open questions for the owner
Which action kinds form the first authorized scope (docs-only, test-only, label projection)? Is silence after the TTL consent?
Should safetyApprover start as owner, since a model's approval is the only non-deterministic input to a merge?
Is the production handler/providers module meant to live in this repository?
What pending-unconfirmed limit and TTL are acceptable?
Are late rollbacks after a confirm acceptable as new auto-notify actions?
Is a per-session Docker pilot acceptable on the host (Docker permission, image upkeep)?
Caveats
Production claims come from repository docs and issues, not the host. Issue states move quickly (several RT-B and RT-O children were running).
chipping-orchestrator and Harness: I read READMEs and searched their long docs, not the full state machines.
Agent Canvas was read from its README and docs, not its source; the automation service is beta; I did not run Docker mode. That containers help with host load and leaked locks is a hypothesis.
"No" in the matrix means I looked in those sources and did not find it, not that no version of the project has it.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
1. Purpose and method
Goal
After the owner grants authority, the system should finish tasks on its own with weak, lagging owner approval:
The long-term direction has four capability levels: self-loop (drop in an issue, it is claimed and finished), self-decision (scope + default plan + after-the-fact notice + rollback), self-iteration (the loop repairs itself from real failures and files its own issues), and high judgment (sound routine decisions, and some hard ones, without the owner). One more requirement cuts across all four: a single set of constraints under which even a Haiku-class model runs a stable 7x24 workflow.
Positioning (owner decision)
runtime/lib/agent-adapter.mjs,harness.mjs). The owner picks a small fixed model set per deployment.TL;DR
docs/architecture.md, PR docs: Haiku-stable 7x24 architecture #375; work items [RT-B7a] Autonomy allow-list and tier function (auto-silent / auto-notify / approve-first) applied before merge #380, [RT-B7b] Execute by default: action journal with snapshot, revert recipes and automated rollback #389, [RT-B7c] Owner replies /rt confirm, amend, rollback through the inbox to the action journal #390) with no code yet. Level 3 is part library, part hand work. Level 4 cannot be assessed because outcomes are not measured.runtime/rtd.mjsis a single pass over the queue. It does not import the inbox, claims, timers, outbox, role memory, decision cards, liveness or the write proxy. The cutover mechanism shipped ([RT-U2f] Shadow mode and cutover: runtime/ is the only loop implementation; config-only switch with rollback #290 / PR [RT-U2f] Shadow mode and cutover: runtime/ is the only loop implementation; config-only switch with rollback #321), not the cutover; production is the host-side polling loop ([RT-B] Haiku-stable 7x24 architecture #374).--handlerand--providersmodules thatrtd.mjsrequires exist only as test fixtures in the repository.stopAtlist as the authority boundary. Optio's pure decision function with compare-and-swap writes. Anthropic's deferred tool call for approve-first.Method
Everything was checked against primary sources on 2026-11-15 (UTC); versions are in the table below.
OpenHands/extensions, and for Agent Canvas the README and docs pages (not its source). One extra source: Anthropic's multi-agent safety post (merge outside the agent, offline monitor).35d6bf0, with the moving parts re-checked onmainat5655b74(it gained PR docs: Haiku-stable 7x24 architecture #375docs/architecture.md, [RT-T1] Test runner: per-run RTW_STATE_DIR/XDG_STATE_HOME/TMPDIR, removed at end, plus leak regression check #322, [RT-O-10] Scope-overlap check against closed issues at intake and decomposition #342, [RT-I] Triage: dedupe, drop noise, cluster, and plan issues with source links #368, [Parallel] Native multi-way parallelism: touch-set scheduling, worktrees, and ordered rebase-merge #55 mid-research). I read the README,docs/01,03,11,12, the operator guide,supervisor.md,host-patch-inventory.md, both case docs,runtime/rtd.mjsandruntime/lib/, and usedghfor issues and PRs.Relationship to Discussions #106 and #172
google-research/harness2, a research framework for improving agent harnesses. It is notVocanicZ/Harness, which is surveyed below. Its suggestions became [Review] Blocking findings must carry reproducible evidence; others become PR comments #173-[Gates] Prompt/policy fingerprint in gate evidence; re-evaluate issues stopped under old rules #178: four completed; the reflector ([Memory] Post-issue reflector: at most one lesson, NO_ENTRY allowed, pending confirmation #175) and the per-issue cost ledger ([Ops] Per-issue session and cost ledger with over-budget hold #177) were closed as not planned.Sources read
f5f5b86(2026-11-13); README,docs/tasks.md(Triggers),trigger-delivery.md,persistent-agents.md,reconciliation.md02c438a(2026-11-15), v1.40.0; README; docs.openhands.dev/openhands/usage/agent-canvas/ pagesbackends,acp-agents,prebuilt-automations,automation-events,backend-setup/docker-execution,critic(fetched 2026-11-15)2ebf361(2026-11-14), README (beta); guide fetched 2026-11-15b98ac06(2026-11-12);skills/github-delivery-watchdog/SKILL.md,scripts/worker.pyc59f260(2026-08-23); README,docs/how-it-works.md,operations.md,configuration.md56b79bb(2026-11-15); README; long docs searched, not read in full1315d08(2026-11-12); README,extension-defaults.yaml,lifecycle-state.mjs7e93e8c(2026-11-14); README,docs/reference.md3f536ce(2025-12-05); READMEa019bc1(2026-07-09); README,CLAUDE.md35d6bf0; re-checked onmain5655b742. Survey of comparable projects
2.1 Optio (
jonwiggins/optio, MIT, about 1.1k stars)Self-hosted orchestration for coding agents, scheduled jobs and interactive sessions: TypeScript, Fastify, Postgres, Redis/BullMQ, Kubernetes (Helm); local setup needs Docker Desktop with Kubernetes.
docs/tasks.md, Triggers): manual, schedule (cron), a generic webhook (/api/hooks/:path) and ticket (a ticket-sync sweep); then adapters for GitHub, GitLab, Slack, Linear, Jira, PagerDuty, Sentry (signed workspace receivers) and Pylon, Alertmanager, Datadog (per-trigger shared secret). All fire through one dispatcher into one normalized firing. Perdocs/trigger-delivery.md, receivers persist an event before acknowledging (so the sender retries on failure), dedupe by delivery id or payload digest, accept anIdempotency-Key, and retry dispatch up to eight times. Persistent agents have a durable per-agent inbox; pending messages are drained into the next turn's prompt in an envelope with a typed sender (user:,agent:,system:,external:).failedafterconsecutive_failure_limit(default 3) and needs a manual resume; the README requires "an explicit decision before retrying an uncertain outcome".decide(snapshot) -> one typed actiondiscipline with CAS writes (machine.mjsand the epoch-fenced store are close; route every daemon action through that shape); "output text is not evidence"; typed sender labels on inbox events; capped auto-resume. Skip: the Kubernetes/Postgres/Redis stack.2.2 OpenHands Software Factory (docs page +
OpenHands/extensions)A recipe on top of Agent Canvas (next subsection): four independent automations, each polling every 5 minutes: triage (priorities, dependencies, acceptance criteria, then
ready-for-dev), developer (issue to PR), reviewer (checks out the exact PR head, runs tests, posts a review and exact-head statuses) and watchdog.scripts/worker.py(96 lines). It merges only when the PR is open, non-draft, mergeable, on the expected branch prefix, the head SHA matches,software-factory/testsandsoftware-factory/reviewaresuccesson that exact head, all other statuses and Actions runs pass, and the branch is not behind base. If behind, it calls update-branch and re-adds the review label, forcing a fresh review. The merge call carries the expected SHA; any exception means no merge. "Branch protection remains GitHub's final merge gate."merge.mjsalready pins head, tree and gate evidence but runs in the issue's finalizing wake, so an accepted PR merges only when the loop wakes that issue); per-role least-privilege tokens.2.2a OpenHands Agent Canvas (
OpenHands/OpenHands, MIT; v1.40.0,02c438aon 2026-11-15)The platform Software Factory runs on: a "self-hosted developer control center for coding agents and automations" (README). The factory is a recipe on it (docs: Canvas 1.24.0+ and per-conversation Docker). Read: the README, the docs pages in the sources table, the SDK security guide and the automation service README (beta).
OpenHands/automation: cron, webhooks, run history, dispatch). Settings, LLMs, MCP servers and automations are scoped per switchable backend.OH_CONVERSATION_RUNTIME=docker, "useful for running several agents concurrently"). Each conversation gets its own container and Agent Server: host UID, capabilities dropped,no-new-privileges, memory/CPU/PID limits, stopped after 20 idle minutes and restarted on next use, stale containers removed at server start. The workspace is bind-mounted: "Conversations using the same host workspace still share those files; choose separate directories or worktrees." Client-supplied limits are not capped by the server.AlwaysConfirm,NeverConfirm,ConfirmRisky): the agent blocks on a pending action until it is accepted or rejected, i.e. approval before acting. A stuck detector halts looping agents. An experimental critic can trigger refinement after a low score (OpenHands agent only).Can it replace roundtable? No. Canvas decides when an agent runs and gives it a sandbox (the automation service "decides when work runs"). Everything the goal depends on, from deferred approval with rollback to weak-model stability, is absent from the sources. Adopting it would replace the part we do not need (triggers, UI) and leave the engine unbuilt. Roundtable is harness-agnostic and not an aggregator, so Canvas' agent switching solves a problem we do not have.
Borrow only two things:
ACP adapters, backend switching and the multi-agent UI are out of scope.
2.3 loope (
ngthluu/loope, MIT, 13 stars, last commit 2026-08-23)A Go daemon. An issue's state is its label (
ai-agent,ai-wip,ai-done,ai-rework,ai-needs-info,ai-stopped). It polls, takes the oldest eligible issues up to a slot budget, and works each in a git worktree.--json-schemaoption; execute must reportstatus: completeor the issue parks.confidenceThreshold(default 70) the entry session asks questions instead of guessing.ai-reworkwith the full error, and nothing retries until the owner removes the label. The docs say retrying "meant one broken issue re-ran the whole pipeline every cycle and burned tokens unattended". A restart sweep stripsai-wiponly when a directory lock proves no live owner.2.4 chipping-orchestrator (
chippingway/chipping-orchestrator, Apache-2.0, 18 stars)A Python poller (systemd user service) that turns issues into reviewed PRs with Claude Code, Codex CLI or Antigravity CLI. State lives on the issue.
decomposing -> ready -> implementing -> validating -> documenting -> in_review -> done/rejected. The decomposer can split work into child issues; oversized changes, conflicts and retries take explicit side paths.VERIFY_COMMANDScommand waits for a human." A docs commit is re-verified on that exact commit; stale evidence is invalidated and sent back for fresh review./orchestrator continue,add-review-rounds N,add-agent-runs N,authorize-oversized <commit>, accepted only in the contexts the park comment names; an author allow-list is mandatory. Caps on review rounds, lifetime agent runs and daily retries are raisable by command.docs/state-machine.mdis about a thousand lines; state from one version does not resume under the next./rt confirm|amend|rollback; a mandatory author allow-list. Evidence binding is mostly covered already: Gate 0 runs the tests itself in a sandbox, and [RT-O-8] Machine-readable roundtable record on every loop PR, required before merge #340 adds a validated record per PR.2.5 dev-loops (
mfittko/dev-loops, MIT, 18 stars)A shared core with three front ends: a Claude Code plugin, a Pi extension and a CLI; closest to this repository's stack.
issue_intakethroughmerge) in a pure module with an explicit transition table; ambiguous input falls back toissue_intake. README: "Deterministic gates and a judge decide; humans decide only what tooling cannot, or what the repo requires."autonomy.stopAt: [merge]andhumanMergeOnly: truein the shipped defaults. Gates haverequireCitoggles; Copilot re-review rounds are capped (default 5);postMerge.actionsrun local actions after a merge.stopAtlist as the authority boundary (the shape of [RT-B7a] Autonomy allow-list and tier function (auto-silent / auto-notify / approve-first) applied before merge #380's allow-list); a pure lifecycle table with a safe fallback state; capped review rounds.2.6 Harness (
VocanicZ/Harness, MIT, 2 stars) - notgoogle-research/harness2A pool of agent CLI sessions against a GitHub-issues board. A PRD issue is split into dependency-ordered issues; workers claim ready ones, implement, audit, test and merge.
scripts/ci-local.shif present, otherwise targeted test rounds on the rebased head. "gh pr checksand mergeable-state are never the gate." A red gate is retried up to 3 times, then the PR is left open with the failing step commented. A lane never weakens a test to pass.harness start --recoverclears claims from dead lanes;pause --forcecheckpoints agents to GitHub (label, pushed branch, handoff comment) so another host can resume;/harness-oneforecasts one issue against live usage and asks the owner to APPROVE or DENY.ready-for-agentgap issues that hold sign-off.2.7 soba (
douhashi/soba, MIT, 0 stars; last commit 2025-12-05, dormant)Label state machine (
todo -> queued -> planning -> ready -> doing -> review-requested -> reviewing -> done, plusrequires-changes -> revising), polling every 20 s, one issue at a time. Runs Claude Code in tmux with--dangerously-skip-permissions; optional Slack webhook on phase starts.auto_merge_enableddefaults to true: when a Claude review approves and labels the PRsoba:lgtm, soba merges, the "model verdict decides the merge" pattern I recommend against. No recovery, budgets, parking or rollback in the README. Borrow: only a quiet-by-default per-phase notification channel.2.8 dispatch (
moonexpr/dispatch, no license declared, 0 stars)The README refers to
ReclaimByDesign/dispatch, which the API reports as not found; I read the repo above. A scheduled tick picks one ready job at a time; a state-machine engine runs spec -> work -> build, opens a PR, and "arms auto-merge (awaiting your approval)" or escalates. Dry-run is the default,--liveis required to mutate GitHub, and no token may merge directly. On failure it advances a "fix ladder"; on ambiguity it escalates. I found Slack only in soba, not here; I did not read the wiki. Borrow: dry-run default (matches roundtable's shadow default), explicit priority rungs, skills that decompose a request into small issues before queueing.2.9 Anthropic, "Building always-on agents" (2026-11-13)
Five primitives around an agent that "is not actually 'always on'": an event inbox (durable, de-duplicated, one active worker, batch pending events, acknowledge fast), timers (own store; due timers fire into the inbox), memory (own store; only what cannot be looked up again), permissions (credential-injecting proxy outside the agent, classifiers, deferred tool calls) and an outbox (a run ends by sending, sending nothing, or deferring).
A deferred call ends the run, saves the session mid-call, shows the request to the user, and brings the answer back "as an event in the inbox", which resumes the saved session while the worker handles other events. The article also advises the agent "to start quiet and then earn more of the user's attention over time". This is approval before acting; it does not describe act-then-confirm or rollback.
2.10 Extra source: Anthropic, "Safely scaling multi-agent teams" (2026-11-09)
Added for layered controls on unattended teams. Agents push only to their own branch; a separate job merges, refusing only on conflict or fault. A classifier can block each tool call, and an offline monitor reviews all actions afterwards. Caveat: the task (a formal proof) has a machine checker as ground truth, which software review lacks. Borrow: merge outside the agent's authority; a periodic offline audit of past decisions, a fit for lagging approval.
2.11 Cross-cutting findings
merge.mjs); a model verdict decides (soba); a human merges (chipping, dev-loops default, dispatch, loope stops at the PR). Roundtable is in the first group, with one carve-out: safety-file changes need a recorded cross-check-model or owner approval (runtime/lib/gates.mjs).3. Capability matrix
Legend: yes = implemented and documented; partial = narrower than the column; lib only = merged code with tests, not on the production path; no = looked for, not found; n/d = not documented in what I read. For roundtable, "production" means the host-side loop as documented in the repo (case doc, #374, #375, #330), not something I observed.
Table A: intake through outbox
waiting_on_depsstatecompletestopAtlist; default stops at mergeready-for-agent/prdsoba:todo--workersdefault 2merge.mjs) pinning head and treemergeRisklib only; tier function #380 openoutbox.mjs), not imported byrtd.mjs; write proxy only in the front Chief launcherTable B: approval through weak-model robustness
needs_attention, manual resume/harness-oneapprove/deny--recover, GitHub checkpoints, other-host resumert:askmarker + owner reply (4 categories). Decision cards + resume lib only; daemon wiring #387 openrecoverRedMain; 4 cases), triggered by CI, not the owner. Design merged as docs (PR #375); journal #389 and replies #390 openbudget.mjs,guard.mjslib only. Production lost 7.3 h to a quota wait (case doc); #308 merged, #309 openReading the matrix: roundtable's gate and merge-safety rows are as strong as any surveyed project's. Its weakest rows are the ones the goal depends on: wired inbox/outbox, deferred approval, and act-then-confirm. For the last one the whole field is empty, so we build rather than borrow.
4. Roundtable's real current state
4.1 Repository versus production
rtd.mjsis one pass, not a daemon. It reads the queue, wakes each runnable issue at most once, and exits. The README: an external wake is required and "nothing in this repository schedules it".rtd.mjsreaches 31 files (including itself andscripts/github-read.mjs): locks, queue, state store, classification, intake, claims, workers, worktrees, decisions, routing, gates, production adapter, merge entry point, label projection, observation, status, shadow. Onmain5655b74the only change issyncWithBase([Parallel] Native multi-way parallelism: touch-set scheduling, worktrees, and ordered rebase-merge #55).event-inbox,event-claim,event-timers,outbox,role-memory,reflect,decision-cards,liveness,budget,guard,usage-ledger,diagnose,merge-risk,merge-decisionandrt-commandshave no non-test importer reachable fromrtd.mjs(the architecture doc marks/rtcommands "implemented"; I found no importer, so I treat them as library until wired).gh-write-proxy.mjsis imported only bybin/rt-chief.mjs.accept,gate-exec,hygiene) is reached through the operator-supplied--handlerand--providers, so "unreachable fromrtd.mjs" is not "dead".rtd.mjsrefuses to run without--handler(exportingpreDispatch) and, for GitHub runs,--providers(gates, GitHub merge/label/revert methods, git). I found these shapes only in tests and fixtures, and no issue that adds a production module. Either it is deliberately operator code or it is a gap in the RT-B plan; the readiness check ([RT-B13] Cutover readiness check, host decision exporter and --exclusive-with guard for the live switch #391) cannot pass without something supplying it.docs/12-events-and-memory.mdis a candidate design; the README says the outbox, timers and inbox are "not wired intortd".4.2 What "cutover" delivered
#290 (RT-U2f) was closed by PR #321 on 2026-11-15. The PR says it adds acceptance tests and an operator section and that "no runtime code changed"; the production switch and host-script removal are "deployer actions outside this repository". Delivered facts:
rtdis in shadow unless--live; shadow wraps the GitHub client so only reads pass and writes a per-cycle decision diff.deploy/systemd/rtd.serviceis a template: placeholders, no[Install]section, no--live, not installed by any script. Enabling it is an owner-only step.writeHeartbeat;--mode applyexits non-zero ("apply needs live actuator adapters").4.3 The production loop and its patches
Per the case doc (snapshot 2026-11-14) and #334: a host-side scheduler plus per-issue workers, 188 dispatches, 99 ended
done, 107 merged PRs over four days, 16 restarts. 36 classes of host patch (94 backups; the worker script went through 17 versions) were applied by hand. #334 / PR #361 produceddocs/host-patch-inventory.md, mapping each class to a runtime rule plus test,superseded, ornot ported: <reason>; the patches are still live on the host. The inventory test checks structure, not freshness (waitguardandsubretrystill say "pending" though #333 and #332 merged).4.4 Known real failures, with status
Counts are from the case docs (self-reported snapshots; freeze durations are estimates per their own caveats). Status as of 2026-11-15.
liveness.mjs: bounded wait, freeze vs stall classification, ledger (#333 / PR #351)budget_exhaustedidlingfallback.mjscandidate fallback (#308 / PR #372)check:leaks(#322 / PR #347)usage-ledger.mjshas no producerrecoverRedMain4.5 What approval looks like today
4.6 The planned wiring: #374 and
docs/architecture.mdPR #375 merged
docs/architecture.mdon 2026-11-15. #374 [RT-B] (held) lists children #377-#391, allrt:goand open when I checked: daemon cycle (#377), inbox claim release (#378), inbox and timers (#384), outbox (#385), role memory (#386), decision cards (#387), recovery table (#388), tier function (#380), action journal (#389), owner replies (#390), cutover readiness (#391), IM adapters (#381), webhook listener (#383), plan/e2e stages (#382), series suffix (#379). The document marks each module implemented / partial / library-only / missing and says the cutover is not done: design, not shipped behavior. It records one defect I confirmed inevent-claim.mjs: ifdispatchthrows insideprocessPending, the claim file keeps the live daemon's pid, so later cycles seealready_claimedand the event stays stuck until restart (#378).5. Gap-to-goal analysis
5.1 Anthropic's primitives plus deferred approval, mapped
event-inbox.mjs,event-claim.mjsevent-timers.mjs(once,recurring,waitRelease)role-memory.mjs,reflect.mjsgh-write-proxy.mjs(denies merge, close, force push, push to main);childEnvstripsGH_*/GITHUB_*ghshimoutbox.mjsdecision-cards.mjs(routeCard,resumeFromApproval)rt:askcommentsrecoverRedMainis the nearest revert path)5.2 Level 1: self-loop
Where we are. Real for small, well-formed issues: 33 of 36 decomposition children merged first time; 13 automatic splits; 107 PRs merged in four days. This is the host implementation, not the in-repo runtime.
What is missing.
What to borrow.
merge.mjs. PrefersafetyApprover: ownerover a model approver once [RT-B7a] Autonomy allow-list and tier function (auto-silent / auto-notify / approve-first) applied before merge #380 lands.stall.mjshas anerror-signature-repeatbreaker); classified quota/provider failures wait on timers ([Runtime] Recovery probes via due timers, switch-back, all-unavailable wait, and executor records #309).merge.mjsbinds head and tree); the remaining piece is [RT-O-8] Machine-readable roundtable record on every loop PR, required before merge #340. dev-loops state machine:machine.mjsis already pure; take the safe fallback state for ambiguous input.aftercare.mjs, [Aftercare] Record PR comment, CI, and base cursors (optional, default off) #111, default off, unwired). Harness: GitHub-checkpointed state for second-host resume, low priority.5.3 Level 2: self-decision
This is the level the goal is about. The merged design is coherent; I assess it against the survey and point out holes. "Proposal" marks my ideas, not in the repo.
Defining authority scope. The design combines three layers, which I think is right:
runtime/defaults/autonomy.json:kinds,silentKinds,silentPaths,notifyTtlDays,safetyApprover) with a tighten-only host override (loosening values are ignored and reported). This is dev-loops'stopAtshape.safetyFiles,mergeRisk(safety file, review disagreement, over 400 lines, protocol files, CI not green), the closed ask categories and production detection (machine.mjs), and whether a revert recipe can be built.autonomyTier(action, autonomy)returningauto-silent,auto-notifyorapprove-first: kind not allowed; closed category or production; no revert possible; safety file; owner override label;risk:high; silent kind with low risk and silent paths only; otherwise notify.I would keep this over a model-estimated risk score: every input is a fact, every outcome has reasons, and no configuration moves a safety-file change out of
approve-first. Holes:config-changeactions that are alwaysapprove-first; the journal records the grant version each action ran under.executed_pending_confirmationactions (count and age) per scope; beyond the cap, new actions degrade toapprove-firstand the digest says why. This breaker is what makes weak approval safe.silentKindsafter N confirmed-or-expired actions of a kind with zero rollbacks; the change needs the owner.Choosing the default plan. The design: the gated merge through the existing entry point; for non-closed decision cards, the provider's choice validated against the options, falling back to the card's
recommendation; the projected label set; the admitted issue draft. The plan is written to the journal before the action. This matches #195 and loope's persona idea. Proposal: for scope and direction questions, order mostly mechanically: (1) the option with a revert recipe, (2) the smaller diff, (3) the option most consistent with the issue text and policy. A model may rank options, not invent one.Event flow for confirm / modify / roll back. Replies are
/rt confirm|amend|rollback <action-id>comments, parsed with the existing exact-grammar rule (parseRtCommandaccepts only/rt <word>today and refusesmerge), turned intoowner_commentinbox events with stable ids (gh-comment:<id>), and applied to the journal after the author checkresumeAfterOwnerReplyalready uses:executed_pending_confirmationtosettledamend_requested; the line resumes with the text; next action carriesamends: <id>rolling_back, thenrolled_backorrevert_failedrollback-resultnoticecancelledresumeFromApprovalexpiredHoles:
settled. The design makes it illegal. Owners change their minds. Proposal: treat a late rollback as a new action (revertOf: <id>,auto-notify, neverauto-silent, which the design already specifies for revert PRs).Recorded pre-state and automated revert. The rollback contract is the strongest part. Before any
auto-notifyaction the daemon appends{ id: "act:<kind>:<issue>:<key>", kind, tier, reasons, plan, before: { mainSha, labels, files }, revert: [steps], at }to an append-onlyactions.jsonl. The id is deterministic, so a replayed cycle does not act twice. Revert steps come from a closed set (git-revert-merge,labels-restore,file-restore,issue-reopen,issue-close), each idempotent. A failed step moves the record torevert_failed, stops the remaining steps, holds the line and raises an approval request.file-restorerefuses if the file changed after the action. If no recipe can be built, the action is irreversible andapprove-first.Assessment: the only revert path proven in production is revert-on-red (4 cases), so the closed-set approach is grounded in something that has worked. Remaining risks:
revert_failedplus a human question. Proposal: record in-flight PRs touching the same files at action time and show them in the rollback notice.credentialsanddestructiveare alreadyapprove-first; add "has external side effects" as a tier input.Deferred versus real-time approval. Anthropic's deferred call, decision cards and chipping's typed commands cover approve-first. Act-then-confirm covers the rest and nobody else has it, so test the journal with a fake clock before enabling.
No model judgment where a gate will do. Today the one place a model's approval feeds a merge is the safety-file rule (recorded cross-check-model approval or current-head owner approval). The tier design allows
safetyApprover: owner; I recommend making that the first-stage default.5.4 Level 3: self-iteration
Where we are. Rules from real failures have become code: ten ported rules (#287, #288) and most #330 children (#331-#334, #338, #339, #341, #342 merged; #336, #337, #340 open). Stall detection, the diagnoser contract and gated rule patches exist as libraries (#218). In production the loop does not repair itself: the 36 patch classes were hand-applied.
What is missing. The architecture promises "a classified real failure produces a recovery action or a fix issue", but the children cover only the recovery action half (#388: a pure table of failure class to action, with
spendsBudget) and an alert notice. No child files a deduplicated fix issue from a classified failure. The only auto-filing precedent is Gate 2 follow-ups, which produced noise (54 filed, 38 bulk-closed; #195, #338).What to borrow and how to do it safely.
stall.mjssignatureOf) + class + evidence, deduplicated against open and recently closed issues ([RT-O-10] Scope-overlap check against closed issues at intake and decomposition #342 overlap check merged), capped per day.rt:proposed(kept out of the queue untilrt:approved) unless it falls in an allow-listed low-risk class, where the tier function decides. Changes to control-plane rules, safety files, budgets or routing stayapprove-first;docs/01-architecture.mdalready says global rules must not change from a single success.stall.mjs; needs wiring).5.5 Level 4: high judgment
Where we are. Decider-by-rule (#195) means routine scope and direction questions no longer reach the owner (18 stops, 17 disagreements, 7 asks decided in the case window; pull-backs fell from 17 to 1 per day, partly due to the rule change and the decomposition fix rather than judgment). Credentials, destructive and production questions deliberately stay with the owner.
What is missing. Outcome data. Nothing records whether a decision was later reversed, amended or confirmed. The journal and replies are the first source of that signal.
What to borrow.
Define "high judgment" measurably: the share of auto-notify actions confirmed unchanged, or expired without a later revert, over a rolling 30 days with a stable rollback rate. Expand scope only when that holds.
5.6 The weak-model constraint set
docs/architecture.mdmaps each constraint to a mechanism. My check of what already exists in the runtime (not necessarily in production):DECISION=line, fixed verdict token, closed card fields, one free re-ask (#339)mergeRisk, tier functionmerge:<head>, action idsrtd.mjs; bounded wait, cycle deadline, heartbeat watchdogMissing for a "Haiku-stable" claim: a regression suite for the weak model itself. The constraints are asserted, but nothing measures whether the configured model passes them (first-try valid DECISION, verdict line, schema). The case doc counts 10 wakes without a decision, 14 "no valid DECISION" and 14 reviewer runs without a verdict against 240 wakes, before #339 added the free re-ask. Proposal: a nightly replay of fixed fixtures against the configured weak model, reporting those rates, so a model or prompt change that breaks structure is caught before production.
6. Recommended path
Ordered by leverage, based on where measured time and tokens were lost and what the goal depends on. I cite existing issues instead of reopening merged work; (new) marks items for which I found no issue.
Scope guardrails
Stage 0: control plane and measurement
--liveand its own work root, then live with one worker, then ramp. No cutover claim until the readiness check passes.rtd --loopcannot run end to end.usageKnown: falsewhen unknown), [RT-O-5b] Loop health metrics: owner pull-backs, first-pass rate, wakes, fix rounds, idle and frozen time, tokens per merged PR #337 (rt metrics), [RT-O-8] Machine-readable roundtable record on every loop PR, required before merge #340 (PR record). Every milestone below depends on them, and all are alreadyrt:go.Stage 1: authorized autonomy, shadow first
safetyApprover: owner.auto-silentfor docs-only and test-only changes; (c) enableauto-notifyforrisk:lowruntime changes with a short TTL; (d) widen only on evidence. Include acknowledgment of ignored replies and late-rollback-as-new-action.Stage 2: self-iteration with limits
rt:proposedunless allow-listed; capped per day; checked against open and recently closed issues.Deprioritize
Milestones
Baselines come from the case docs and issues. Targets are my proposals to agree with the owner, not commitments.
rt:goissues finished with zero owner actionOpen questions for the owner
safetyApproverstart asowner, since a model's approval is the only non-deterministic input to a merge?auto-notifyactions?Caveats
All reactions