136 โ Note rewrites run as a workflow that ends at operator approval
Type: reference/types/adr.md ยท Status: accepted
Status: accepted; implemented at the operator's direction on 2026-11-16, with one live run.
Date: 2026-11-16
Extends: ADR 135, whose runner edits a note within bounds that preserve its claims, and ADR 134, whose publication stop the rewrite uses unchanged.
Amends: ADR 129 for rewrites of existing notes: their runs live under kb/reports/state/review/runs/v2/rewrite/, not under kb/reports/state/multistage/.
Layout amendment (2026-11-23): ADR 128 places new workflow records in kb/workflow-state/data/current/. Paths below describe the layout at the time of this decision.
Context
The improvement procedures edit a note without changing its claims. When a review finds a problem with a claim itself, the full procedure stops and leaves the change to the operator. On 2026-11-16 such a stop led to a rewrite done by hand in a conversation.
The procedure for that case existed as the multistage writing skill. A session agent ran three fresh workers and enforced by instruction who saw what: a reconstructor that must not see the existing note, an author, and a reviewer. The agent hashed the candidate, tracked the one allowed repair, and wrote the note when the reviewer accepted. The procedure kept no captured inputs, could not be repeated from its record, did not appear in the decision record, and published on a worker's acceptance. It did not use the note's write brief.
Decision
A rewrite of an existing note is a workflow. commonplace-review run rewrite NOTE --commission FILE runs on the headless layer the review and revise workflows use. Its run directory is keyed by the note's path and start text, keeps every call's prompt, inputs and outputs, and continues when the command is repeated.
The commission is a file the session agent writes with the operator. It names the note and the authorized sources with their roles, and states the intended contribution, what to keep and exclude, the reserved decisions and the operator's current direction. The run captures it once; a changed commission needs --restart. When the note declares a write brief, every worker receives it as binding retained intent, and after publication the session agent writes or updates the brief from the commission's lasting parts.
One writer selects claims while writing, then an independent reviewer judges the candidate. Both see the authorized sources and the old note. The old note supplies no independent evidence. The writer need not account for every possible claim. One repair and a fresh review are allowed; a second blocking review ends the run with nothing published.
The review step is a review operation. Its criterion is the review instruction and its target is the candidate text, so it returns a typed review result bound to that text. fail blocks. warn findings reach the operator at the publication stop. When the operator publishes exactly the judged candidate, the result becomes the note's current result for that criterion, and its warn findings can be triaged like any review's. A revised candidate leaves the result unstored, because the published text is not the text judged.
Incoming citations inform but do not bind the writer. Give both workers the bounded incoming passages and earlier operator decisions. Discuss concrete losses of support separately from the note. Normally remove the affected reference and assess the dependent on its own merits. Never edit dependents in this run.
The operator approves the exact text. An accepted candidate goes to the publication stop of revise: an answers file, acceptance with a revision, new validation warnings named, and a write only when the note still holds its start text. The reviewer's acceptance lets the run reach that stop and publishes nothing.
Sources are captured or referenced. A tracked text file is captured as an input. A file that is git-ignored or under a snapshot directory is passed by path and hash and never copied into the run.
The candidate keeps the title. The candidate checks of revise apply; the bounds of a single edit operation do not, because a rewrite may change claims. A retitle is a separate relocation on the operator's word.
What stays on the agent-run procedure. A new note, and an edit that poses a literature-disposition question (ADR 081). Grounding of sources stays with the session agent and happens before the run.
Considered alternatives
Keep the skill and add the write brief to it. Not adopted, on the operator's choice to port now. It would have fixed the brief and left isolation, the record and approval as they were.
Reconstruct and freeze a claim inventory before drafting. Not adopted for existing notes. An inventory can make separate writing obligations out of distinctions one example already conveys. Give the writer the sources directly and test support in independent review.
Publish on the reviewer's acceptance. Rejected. Every other procedure that writes a note requires the operator's approval of the exact text.
Copy all sources into the run. Rejected. Full copies of external sources must stay out of operational state that may be published.
A typed result for each call. Adopted for the review, whose findings triage and the fix operation consume. Not adopted for the writer's citation report, which accompanies the candidate.
Port the new-note path in the same change. Deferred. It needs a run identity without a start text, collection and type resolution, a near-duplicate search and a create-only write.
Consequences
The first live run, on the pre-rewrite text of the note rewritten by hand that morning, made four calls with no rejected output and reached the publication stop. Its candidate separated the same three questions as the hand rewrite. It marked each step as Popper's or as the note's own inference, which the hand rewrite had not done and a later review had to correct. The commission was written with hindsight, and this is one run, so the comparison shows that the workflow runs and little about how often its output is better.
A rewrite normally costs two model calls, with two more if a blocking review requires repair.
Known gaps: the one live run preceded the typed review, the role report and the earlier decisions, so none of these has run live. No run has exercised the repair, a referenced snapshot source, or a note with a write brief. A stale stored rewrite review cannot be rerun by run gates, though the project status counts it among stale results.