Skip to content

docs(plans): put a progress track first in autonomous-core; ADR-0054 progress means output - #232

Merged
lg2m merged 1 commit into
mainfrom
docs/eng-978-ac-progress-first
Oct 2, 2026
Merged

lg2m merged 1 commit into
mainfrom
docs/eng-978-ac-progress-first

Conversation

@lg2m

@lg2m lg2m commented Oct 1, 2026

Copy link
Copy Markdown
Collaborator

Plan revision for autonomous-core.md · Linear ENG-978 · new ADR-0054 (Proposed)

Why

The plan made long runs survive, but nothing in it made them produce. The lead's session store (30 days ending 2026-10-01, schema 39) shows:

  • Children read and don't answer.
    • 85 long children made no changes.
    • 41 of them said nothing before their final turn.
    • One child made 690 calls in 76 minutes and never answered; it re-read one file 47 times.
    • 34 of 124 spawns returned an error instead of an answer.
  • Parents wait. Delegating runs had a spawn_agent call open for 1,722 of their 4,351 wall minutes (40 %, overlapping calls merged).
  • The checkpoint is ignored.
    • 23 of 25 checkpoint turns that got tool calls had no text.
    • The checkpoint notice also rewrites the system prompt, so it breaks the prompt cache.

A spend or time cap was ruled out, because multi-day runs are the goal. ADR-0054 instead counts output as progress: a change, a command (whatever its exit), a child answer, a steer or a report. Reading never counts.

What changes in the plan

New track AP0–AP5, ordered first. AP0–AP3b need no PROTOCOL_VERSION bump.

Priority Slice What you see when it merges
1 AP0 (this PR) docs/runbooks/progress-report.md with read-only, window-pinned queries; baseline in progress/root.md
2 AP1, AP2 (parallel, small) Children are told a parent is waiting and when to stop; pruned read_file stubs say which window to re-read
3 AP3a Checkpoint and continuation notices move from the system prompt to persisted turns (cache kept, replay identical); an empty checkpoint no longer fails the run. One store column
4 AP3b After 64 calls with no output a run reports. A read child's fourth report is a tool-free final answer (worst case 316 calls). Roots report and keep going
5 AP4 Unbounded read spawn_agent returns on admission; answers are delivered exactly once at the parent's next boundary; adds wait_agents / cancel_agent. Write children and budget-bounded runs stay blocking
6 AC1… The existing AC track, unchanged except as below

Also:

  • Goal 6 (Productive) has four measurable targets against the baseline.
  • Non-goal: no default time, token or cost cap.
  • AC3's empty-checkpoint item moves to AP3a.
  • ADR-0048 § 2's empty-checkpoint clause is superseded.
  • ADR-0049 § 8: text written in a runtime-requested report does not count as "new assistant text", so a stuck root that answers reports still pauses.
  • ADR-0054 is reserved in root.md; next free is 0055. ADR-0053 is held by docs(plans): design decision-model support — qq-decision crate, OpenAI Decisions API and Jev (DM0) #231.

Review

An independent sub-agent checked the design against the code before the push, since Codex is out of quota. Every blocking finding is resolved in this PR:

  • AP3 needed a schema column for replay. AP3 is split into AP3a and AP3b, and the turn-kind column is declared.
  • Forced reports would have defeated the loop-guard pause. Fixed by the § 8 rule above.
  • Non-blocking spawns would have overspent finite budgets. Bounded runs, including every goal run, keep blocking spawns.
  • An answer delivered after a restart had no target. The delivered mark and the notice commit in one transaction, and an undelivered answer goes into the parent session's next run.

Should-fix items also addressed:

  • failing commands count as work;
  • External calls count;
  • a successful blocking spawn resets the count;
  • report turns never settle the run;
  • the final-answer turn declares no tools and skips Jev and audit redirects;
  • audit children are exempt;
  • AP1 is keyed on being a child, not on read-only;
  • AP2 drops the hash from the stub, so if_changed_since cannot return an empty body;
  • the AC0.1 → AP3a edge is in the order diagram;
  • blocking time is measured as merged intervals;
  • the window end is pinned so the baseline can be reproduced.

Verification

  • Every number in the ADR, plan and baseline comes from the runbook's own queries. I extracted the sh blocks from the runbook, ran them against the store with mode=ro, and checked the output against the text.
  • Code citations were re-checked at 5fce347.
  • cargo test --bin qq docs_truth: 23 passed.
  • Every relative link resolves.

Docs only. There is no code, wire or store change in this PR.

…progress means output

The session store shows long runs and sub-agents producing activity without
output. Children answer only at the end or not at all, checkpoint turns are
answered with tool calls, and delegating parents had a spawn_agent call open
for 40 % of their wall time. ADR-0054 (Proposed) defines progress as output
rather than activity. With it, a run that stops changing things reports, a
child answers its brief with tools off on its final turn, and unbounded read
delegation stops blocking the parent. None of this caps time or money.

The plan gains AP0-AP5, ordered first, and Goal 6 (Productive). AP0's
read-only runbook and its pinned-window baseline ship in this commit.
AC3's empty-checkpoint item moves to AP3a. The ADR-0048 § 2 and
ADR-0049 § 8 interactions are amended.

Linear: ENG-978
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant