Approve a text
Type: types/instruction.md
Goal: the operator knows each text a revise run published, and a held candidate replaces the note only when the operator has seen that exact text, or their revision of it, and said to publish it.
Consumption: an agent in a session with the operator, reached from a run report's publications or held, or from a held-candidate item of a continuation record through continue a revise pass. Nothing here is inherited from the worker instruction; the rules below are the whole procedure. For a list of proposals, follow decide items instead.
After a revise run publishes
commonplace-revise writes its candidate to the note without a stop when no decision is needed: changes applied without a decision, and items the operator already decided. It does so before a per-item pass is asked for proposals and when the run ends. The report then has published: true, and its publications list gives, for each publication, the published text text, its diff from the text before it, and the plan entries it covers. The run does not ask for approval of these texts.
After each run whose report has published: true:
- Tell the operator what was published: the plan entries the new publication covers, the path of the note, and the path of the publication's
diff. - Tell the operator that the change is not committed. It is in the working tree, and
git diffon the note shows it. - Tell the operator that they reverse it with git, for example
git checkout -- NOTEorgit restore NOTE. The run does not reverse it. - If a publication contains
relocation, follow relocate a retitled note. - If the report has a
continuation, continue with continue a revise pass.
Do not approve, commit or reverse a publication on your own judgment.
Relocate a retitled note
A publication's relocation names the note, new-title and expected
destination. The workflow writes the text at the old path; the session
agent completes publication with the move tool. This applies to both
automatic and held publications. Do not move a note for a title proposal,
or when no relocation is listed.
- Confirm that the old path still holds the latest published text and that the
published title matches
new-title. Dry-runcommonplace-relocate-note NOTE "NEW TITLE"with those values. Check that its destination matches the report and that its proposed writes do not touch unrelated working changes. - If pending answers, a held candidate, or other active revision work still needs the old path, defer the move until that work is settled or explicitly left behind. Do not move review results or run records to the new path.
- Make the text and relocation separate commits if the operator authorized
commits. Commit the text at the old path first. Then repeat the dry-run
invocation with
--apply. Do not rename by hand or manually rewrite backlinks or redirects. Without commit authority, the move may still be applied; leave it and the text change uncommitted, and report that they need separate commits. If the move is blocked, report it as pending with the exact reason rather than improvising a different path. - Inspect the move diff, validate the relocated note and, when the redirect map changed, validate redirects. Report the old and new paths. A review at the new path needs a fresh run; old results remain historical evidence.
A held candidate
A revise run holds its candidate when the candidate adds a validation warning the note does not have, and ends. Every rewrite run whose accepted candidate changes the note holds it. The note is not written.
Inputs:
- the run's JSON report:
heldgives the candidateartifact/final.md, itsdiffartifact/final.diff, thenew-warnings, thecommandthat publishes the candidate and therevised-commandthat publishes a revision; a rewrite'sheld.whatalso says how manywarnfindings the accepted review left and where it is; new-warnings: validation warnings that the candidate has and the note did not have;artifact/final.mdandartifact/final.diff.
Authority: the decision is the operator's. The agent shows, records and runs commands. It never publishes, rejects or defers on its own judgment, never revises the text on its own judgment, and never edits a file under the run's artifact/: the candidate is a workflow output, not an input.
Procedure
- If
new-warningslists warnings, tell the operator each one, and that a revise run held the candidate because of them. A warning does not block publication; the operator decides with it in view. Ifheld.whatsays the accepted review left findings of level warn, tell the operator how many there are and where the review is. - Give the operator the full paths of the note,
final.mdandfinal.diff, so they can open each. Show the operatorfinal.diff, andfinal.mdwhen they ask for the whole text. Ask: publish this exact text, publish it with changes, or do not publish it. For publication with changes, follow accept with a revision. - On the operator's stated word to publish this exact candidate, run
commonplace-revise publish RUN, thecommandinheld. Naming the run is the approval; no other step precedes it. - If the command refuses, read the refusal to the operator. It writes nothing when the note no longer holds the text the candidate was held over, when
final.md,final.diffor a rewrite's accepted review changed after the run, when the write brief changed, or when the candidate was already published. A new run works on the current text. - When the operator does not want it published, nothing is written and nothing needs to run: the note keeps its text, and
commonplace-revise decisionslists the candidate as a pending publication until the note changes. To change the candidate other than by a stated revision, start a new run: a replacement plan with--planfor revise, or a changed commission for rewrite. Do not editfinal.md.
Accept with a revision
Use this when the operator accepts the candidate with changes.
- Copy
final.mdto a file outside the run'sartifact/directory. - In the copy, apply exactly the changes the operator stated, or the wording the operator approved. Change nothing else.
- Show the operator the diff from
final.mdto the copy, and ask them to approve that exact revised text. Do not continue before the operator has seen it. - On the operator's stated word for that text, run
commonplace-revise publish RUN --revised FILE, therevised-commandinheld. It launches nothing. It is refused on the checks of step 4 above, and when the revised text fails the candidate checks (frontmatter, H1, validation). Read a refusal to the operator. When it publishes, the run keeps the text asartifact/revised.md, withartifact/revised-from-final.difffrom the candidate andartifact/revised.difffrom the note, and its report lists anynew-warningsof the published text; tell the operator each one.
Verification: after publish, its report names the publication under published, and the note holds final.md or the revised text. If published.relocation is present, follow relocate a retitled note. For a rewrite whose published text is the judged candidate, the report's current-result names the stored review; after a revision, not-current says why the review was not stored. Code writes the note only when every check of step 4 passes. Any other case writes nothing.
Stop and leave the candidate unpublished when the operator declines to decide.