Real-time approval
Partial Tier approve-first
The action is not performed. Only that line is suspended and other lines keep running. An approval request goes to the outbox. The owner’s reply arrives as an inbox event and resumes the same session.
“Always-on” is a user experience, not a process that never rests: the agent sleeps and wakes when an event arrives or a timer is due. This repository is the constrained loop behind that experience. Small recorded steps, validated outputs and deterministic gates are designed so that a weak, Haiku-class model can run a stable 7x24 workflow.
Status. This is the target architecture. Production still runs on host scripts while the libraries are wired into the daemon; the cutover is not done. Every module below shows its real status.
Select a module to see what it does, how far it is built, and where its code lives. Everything that happens becomes an event; an event wakes one line; the line runs a short pipeline; a completion tier decides how it ends.
Review and e2e can send work back to execution.
auto-silent (Partial)auto-notify (Partial)approve-first (Partial)Owner replies and approvals come back to the inbox as events.
| Module | Status | What it does | Code | Issues |
|---|---|---|---|---|
| Intake: requirements | Implemented | The front Chief turns a conversation into an issue with a goal and acceptance, through the intake backlog. |
| #261, #263 |
| Intake: feedback plugins | Partial | Turns GitHub issues into inbox events through a source adapter and a config file. X and Discord plugins are not built. |
| #207, #366, #369 |
| Intake: webhook listener | Library only | A loopback listener that checks signed webhooks and writes them to the inbox. It is library code, and nothing starts it by default. |
| #367, #383 |
| Intake: decision chain | Implemented | Decides how a line continues after each turn and follows up on its own decisions. |
| #29 |
| Intake: human intervention | Implemented | Human commands such as /rt and owner comments enter as events. Merging stays refused as a command. |
| #267 |
| Event inbox and claims | Implemented | A durable, de-duplicated, replayable record of what happened, and the only path that wakes or resumes a line. The daemon cycle drains it on each cycle. |
| #266, #268, #378, #384, #569 |
| Due timers | Implemented | Every “do this later” is a due timer that writes an inbox event, so no process sleeps for a business reason. |
| #269, #309, #384, #575, #577 |
| Pipeline: requirements design and goal | Partial | Turns a request into a goal with numbered acceptance. Admission refuses a body that lacks a goal, acceptance, scope limits, dependencies or a size estimate. |
| None recorded |
| Pipeline: technical plan | Implemented | A technical plan written before execution. The gate is wired into the loop and off by default; a missing or invalid plan is re-asked once, then execution continues degraded. |
| #382, #607 |
| Pipeline: decomposition | Implemented | Splits oversized work into sized children with dependencies, on size, acceptance-count and risk triggers. |
| #97, #331, #332 |
| Pipeline: execution | Implemented | Workers run the task in its own git worktree through a harness adapter. |
| #302, #303, #311 |
| Pipeline: review | Implemented | Gates 0, 1 and 2, run only on a clean committed head. Follow-ups are created only for in-scope high or critical findings. |
| #338, #341 |
| Pipeline: e2e tests | Implemented | An optional end-to-end command run on the final head after review. Off by default; a failure returns the line to execute. |
| #602 |
| Pipeline: acceptance | Implemented | Checks acceptance, closes finished parents and handles aftercare. |
| None recorded |
| Completion tiers | Partial | Decides per change whether to act silently, act and notify, or ask first. The tier function exists and decides on the ask path; merges are not tiered yet. |
| #273, #312, #380 |
| Outbox and dispatcher | Implemented | Every outward side effect is first an outbox item, then delivered by a dispatcher in the daemon cycle. The host loop sends its comments, labels and merges through it. |
| #285, #286, #385, #570, #578 |
| Outbox: IM adapters | Library only | Adapters that route notices to chat channels through fixed templates and an allow-list. A library with tests; no IM provider is passed to the daemon yet. |
| #381 |
| Approval: real-time | Partial | Approve-first: the action is not performed and only that line is suspended. The owner’s reply returns as an event and resumes the same session. |
| #262, #387 |
| Approval: deferred, execute by default | Partial | Execute by default: act now with the default plan, record it in an action journal, then let the owner confirm, amend or roll back. The journal and the /rt replies run in the daemon cycle; merge confirmation is still open. |
| #389, #390, #579 |
| Concurrent queue and dynamic scheduling | Partial | Runs eligible issues in parallel with per-issue locks, dependency and touch-set checks, and an adaptive worker cap. The series suffix rule is applied; freeze intervals are not yet excluded from stall checks. |
| #310, #333, #308, #309, #379 |
| Monitoring and justification | Partial | Supervisor, stall signals, diagnosis and a usage ledger, so “why did it do that” can be answered from files. |
| #218, #336, #337, #340 |
| Role memory | Partial | Preloads active rules and a short index into each role prompt and records lessons. The daemon applies it to role prompts only; the host loop does not. |
| #265, #386 |
| Daemon cycle loop | Implemented | One cycle that fires timers, drains the inbox, schedules work, flushes the outbox and waits, until stopped. |
| #377 |
A weak model is not trusted to be careful. Each constraint is a mechanism in code or in the loop, not advice in a prompt, so a bad output costs one retry and never a bad merge.
Admission refuses a ticket over 400 lines or 5 files and asks for decomposition. One run advances one pipeline stage.
Code: runtime/lib/intake.mjs
A run ends in a validated object: a continuation decision, a verdict token, an approve or reject token, or a decision card with closed fields. Free text never drives a transition.
Code: runtime/lib/machine.mjs
Gates, acceptance, diff checks, risk and tier are plain code over facts. A model can fail them but cannot waive them.
Code: runtime/lib/gates.mjs
Every effect has a key: an inbox event id, an outbox item id, a merge ledger entry, an action id. A replayed cycle repeats nothing.
Code: runtime/lib/outbox.mjs
Per-issue budgets, phase timeouts and a lock lease bound each run. Quota and provider failures do not spend them.
Code: runtime/lib/budget.mjs
Children get no GitHub credentials. Writes go through a proxy that refuses merge, close, force push and pushes to main.
Code: runtime/lib/gh-write-proxy.mjs
A finished change is not always merged the same way. A pure function over the facts of the change picks one of three tiers. The first matching rule wins, and the function is plain code over facts, not a model’s judgement.
auto-silentPartial
Act now and say nothing.
Typical case. A low-risk change that only touches silent paths such as docs and tests.
auto-notifyPartial
Act now with the default plan, then tell the owner.
Typical case. The default for everything in scope that is not silent, for example a medium-risk runtime change.
approve-firstPartial
Do not act. Ask, and wait for the answer.
Typical case. Safety files, closed ask categories, production changes, irreversible actions and high risk.
The first rule that matches decides. Rules 1 to 6 all lead to approve-first.
Fixed by design. No configuration can move a safety-file change out of approve-first, and a revert PR is never auto-silent. The tier function exists and decides on the ask path. Merges are not tiered yet; the approval path for safety files exists today.
Waiting for a human on every routine decision stalls a 7x24 loop. Inside the autonomous scope the loop acts first with a recorded default plan and lets the owner correct it later. Outside the scope it asks first.
Partial Tier approve-first
The action is not performed. Only that line is suspended and other lines keep running. An approval request goes to the outbox. The owner’s reply arrives as an inbox event and resumes the same session.
Partial Tier auto-notify
The action is performed now with the default plan and written to an append-only action journal before it runs. A notice says what was done. The owner can confirm, amend or roll back later.
The action is settled. No GitHub or file change and no further notice.
The line re-enters execution with the owner’s text. A merged change is amended by a follow-up PR, never by rewriting history.
The recorded revert steps run in order, each one idempotent. If a step fails the line is held and the owner is asked.
Partly built. The action journal and the owner replies (/rt confirm, /rt amend, /rt rollback) run in the daemon cycle. Merge confirmation is open work. If no revert recipe can be built, the action is irreversible and the tier is approve-first. A pending action that is never answered expires after a time limit and is reported in a digest. It is never reverted on its own.
The cutover is not done. Production still runs on the host scripts rt-sched.py and rt-work.sh, which live under host/. They poll GitHub every 300 seconds and run several workers.
The host scripts claim, execute, review and merge issues. The runtime in this repository is exercised by tests. Its daemon runs in shadow mode by default, without the live flag, and its service unit is an uninstalled template.
The inbox, timers, outbox, memory and decision cards run in the daemon cycle of runtime/rtd.mjs --loop. The host loop already fires timers and uses the outbox; the rest of the inbox port and role memory are not in it yet. Finishing the cutover is the work tracked under #374.
Across the 23 modules: 13 implemented, 8 partial, 2 library only, 0 missing.
Four phases. Nothing changes on the host until phase 3, which is an owner-only step.
Cycle loop, inbox, timers, outbox, memory and decision cards, each merged on its own with fake providers. Nothing changes on the host.
The owner runs the daemon without live mode beside the host loop and compares its decisions with the host’s for at least 48 hours.
Owner-only steps: stop the host scheduler, then start the daemon in live mode with a single worker. The two loops are never live together.
Raise the worker cap over days. The cap goes down by itself during clusters of host freezes.
Rollback is to stop the daemon or remove live mode and restart the host scheduler. GitHub labels are the shared state, so issues the daemon left running are requeued first.
The sections above describe the system. This one follows a single invented ticket through the roles of the Roundtable Work skill: a human sets the goal, a Chief coordinates, executors do the work, checks and an independent review follow, and a human decides on the merge.
Text first: nine stages, in order.
Checks before review are called the test gate and the scope gate in this walkthrough. They are instructions that an agent follows, not an automated enforcement engine. Independent review means a separate session judges the delivery. Its verdict line is 审查结论:通过 | 打回 | 阻塞 (approved | rejected | blocked).
Each turn ends with exactly one continuation decision.
continuewaitaskdonestopA role is not a model. A separate session gives a fresh viewpoint, but a different model or name is not proof of quality.
Role: human
Sets the goal, the acceptance and the limits. Can correct, pause or stop at any time. Merging is a human decision.
Role: chief
The main contact. Writes the ticket, splits and delegates the work, reads the results, and ends every turn with one decision.
Role: researcher
Answers a bounded question with sources and separates what was observed from what was inferred.
Role: developer
Turns a delegated task into a verifiable artifact and reports in a delivery card. Does not commit by default.
Role: reviewer
Judges the delivery against the original goal and acceptance, in a session separate from the author’s.
The first line of its card is the verdict: 审查结论:通过 | 打回 | 阻塞 (approved | rejected | blocked).
Role: fixer
Handles a delegated bug: reproduces it with a failing check first, then fixes it.
Notekeep dark-mode toggle: a synthetic Roundtable Work walkthrough. The task, the people and every ID are invented. This section follows 17 steps, from a human goal to a pull request that a human decides on.
Every marker has a symbol and a text label; colour is never the only signal.
Sample Requester asks for a dark-mode toggle in the fictional Notekeep app and lists what would count as done. The human sets the direction, the acceptance and the limits of authority.
Artifacts
queuedChief turns the goal into ticket DEMO-001 with the original wording, four checkable acceptance items, the allowed scope, and a budget (at most 2 attempts per assignment, at most 2 review rejection rounds, after which only blocking findings stop the work).
Artifacts
queuedcontinueChief asks one bounded question: does Notekeep already store any theme setting? The Researcher reports, with sources, that it has none, and separates what was observed from what was inferred.
Artifacts
assignedChief sends delegation card DEMO-001-dev with the target version, acceptance, workspace, allowed files and a no-commit rule. The host only reports started and returned, so Chief records sent+started and later returned, and marks the other delegation events as not confirmed.
Artifacts
workingwaitOpen question Q1: on the very first visit, follow the system preference or start in light mode? Chief recommends following the system preference, which is easy to reverse, and keeps other work going. Only the item that needs the human is suspended.
Artifacts
waiting_personaskSample Requester accepts the recommendation: follow the system preference. The acceptance item that was provisionally treated as met is now confirmed.
Artifacts
workingcontinueThe Developer reports what changed, the checks it ran, and what it did not do. It did not commit, because executors do not commit by default.
Artifacts
workingChief does not rely on the Developer's own report. It reads the evidence and runs the final full check itself. In this synthetic run the check passes.
Artifacts
workingChief compares the changed files with the allowed files, for example from the version-control status. Nothing outside the allowed scope was written.
Artifacts
reviewA separate reviewer session checks the delivery against the ticket, not against the author's claim of success. The first line of its card is the verdict. Finding 1: the toggle has no accessible name (acceptance 3). Finding 2: the choice is lost after a reload (acceptance 2). Each finding names a trigger and a direction for the fix.
Artifacts
workingcontinueChief returns the findings to the original Developer. The Developer adds an accessible name, stores the choice, adds a test for each finding, and returns a new delivery card that answers each finding. This is review rejection 1 of at most 2 under the default budget.
Artifacts
workingChief runs the full check on the new version. Because behavior and tests changed, the work must be reviewed again.
Artifacts
workingChief repeats the scope comparison on the new version. Still inside the allowed files.
Artifacts
reviewThe reviewer re-checks the affected items and the likely regressions against the new version. Every acceptance item now has evidence.
Artifacts
readyOnly after the review passes, Chief commits the change on a feature branch. The Developer never committed. Nothing is merged.
Artifacts
readyIn this synthetic setup the deployment policy allows Chief to open a pull request. The description states the problem, the checks that were actually run, the checks not run, and the remaining risks. Chief then waits for a human; whether a wake-up on merge exists depends on the host.
Artifacts
readywaitMerging is a human-only step and happens outside this demo. The demo has no merge control and performs no privileged action. Only after a human merges and the evidence is checked could the ticket move to done.
Artifacts
waiting_personWaiting or asking
Open question Q1: on the very first visit, follow the system preference or start in light mode? Chief recommends following the system preference, which is easy to reverse, and keeps other work going. Only the item that needs the human is suspended.
Sent back or stopped
The reviewer sends the work back, the original author fixes it, and a second review passes. The verdict line is shown exactly as the reviewer writes it.
Waiting or asking
Merging is a human-only step and happens outside this demo. The demo has no merge control and performs no privileged action. Only after a human merges and the evidence is checked could the ticket move to done. No button on this page performs a merge or any other privileged action.
waiting_person).These branches show what the Chief does. They never say that recovery will succeed.
| ID | Trigger | What the Chief does | Outcome |
|---|---|---|---|
| f01 | The host cannot start a separate reviewer session. | Chief does not approve its own work. Any same-session check is labelled a self-check, not an independent review. The ticket stays short of done and Chief asks the human whether to accept a self-check or to wait for a reviewer. | Review stays pending. The human decides; independence is not claimed in the meantime. |
| f02 | The reviewer sends the work back more times than the configured limit (default 2 rounds). | Chief stops further automatic rework on blocking findings and hands them to the human with the findings and the evidence. Non-blocking findings are listed for the pull request. | A human decides whether to continue, change the acceptance or abandon the work. |
| f03 | A test gate fails. | Chief does not accept the work and does not send it for review. The failing output goes back to the original author within the attempt budget. | The work may pass on a later attempt. If attempts run out, Chief stops and reports (see f04). |
| f04 | The attempt budget for an assignment is used up (default 2 attempts). | Chief records stop for the affected work, reports what was tried, and states the decision it needs from the human. | The work halts. Recovery, if any, starts from a human decision. |
| f05 | Two turns in a row produce no new fact and no new artifact. | Chief records stop instead of repeating the same step. | The work halts and is reported. Nothing is retried automatically. |
| f06 | A scope gate finds a file written outside the allowed files. | Chief does not accept the work. The out-of-scope change is reported, not silently kept, and the human or Chief decides whether it is reverted or re-authorized. | The work is held until the scope question is settled. |
| f07 | The result of an external action is unknown, for example a request that may or may not have been sent. | The state is marked unknown. Chief checks the real state first and does not blindly repeat the action. | The action is retried or escalated only after the actual state is known; some outcomes may stay unknown. |
| f08 | The session ends while Chief is waiting for an event. | A turn ending does not wake anything. Only a wake-up mechanism the host really supports can resume the work, and this has not been verified. Otherwise the human re-engages and Chief re-checks the facts before continuing. | Work may sit idle until a human or a supported host event resumes it. |
The first five entries are real controls described by the repository instructions. The last one is a visual control on this page only.
waitaskstopImplemented means written down in the repository as instructions, templates, scripts or CI. It does not mean that a background service exists, and it does not mean the behavior was measured in a live run. Planned rows mark the boundary and are not claims. For the status of the system modules, see the architecture table above.
| Statement | Status | Evidence |
|---|---|---|
| The skill defines five roles with separate instructions: Chief, developer, fixer, reviewer and researcher. | Implemented | .agents/skills/roundtable-work/SKILL.md |
| Work is handed over with structured templates: ticket, delegation card, delivery card and checkpoint record. | Implemented | .agents/skills/roundtable-work/SKILL.md |
| Every Chief turn ends with one of five continuation decisions: continue, wait, ask, done or stop. | Implemented | .agents/skills/roundtable-work/SKILL.md |
| The Chief instructions require reading the evidence in a delivery, checking for writes outside the allowed scope, and running the final full check before acceptance. | Implemented | .agents/skills/roundtable-work/prompts/roles/chief.md |
| The reviewer instructions require the first line of a review card to be the verdict line, and state that an independent session or a different model is not proof of correctness. | Implemented | .agents/skills/roundtable-work/prompts/roles/reviewer.md |
| The Chief instructions require a review to be done by a different session than the author; a review by the same session is called a self-check. | Implemented | .agents/skills/roundtable-work/prompts/roles/chief.md |
| Executors do not commit by default; the Chief commits after a review passes. | Implemented | .agents/skills/roundtable-work/SKILL.md |
| The policy template sets default budgets: 2 attempts per assignment, a limit of 2 review rejection rounds after which only blocking findings stop the work, and stop after 2 turns without progress. | Implemented | .agents/skills/roundtable-work/templates/policy.md |
| The policy template lists merging, publishing and deploying as actions that need the user's approval first. | Implemented | .agents/skills/roundtable-work/templates/policy.md |
| The repository ships an installer and a read-only doctor script; the doctor reports background wake-up as unverified. | Implemented | scripts/doctor.mjs |
| The repository's own CI workflow runs the install and test commands on pushes and pull requests. | Implemented | .github/workflows/check.yml |
| Contributions use a pull request that links an issue and reports the checks actually run and those not run. | Implemented | CONTRIBUTING.md |
| Waking the Chief in the background after a turn ends, which depends on the host and has not been verified. | Planned, not claimed | No path: planned only |
| A loop that turns external events into issues and queued work, described only as a candidate design. | Planned, not claimed | No path: planned only |
| An outbox with idempotency keys for external actions after a restart, described only as a design. | Planned, not claimed | No path: planned only |
| Publishing the static demo site on GitHub Pages through the reviewed workflow; Pages is not enabled yet, and a maintainer must enable it. | Planned, not claimed | No path: planned only |