--- name: refine description: Refine a planning document or passage and carry the change through the documents it binds or is bound by. --- # Refine a document Use the feature name given in the session's opening prompt. Its vision and sections live under `doc/product//`; its metaplans and plans live under `doc/plans//`. A standalone plan lives at `doc/plans/PLAN-.md`, has `Implements: none`, and has no metaplan. 1. Read the target document and any attached passage in context. Read the documents it binds or is bound by: for a product section, its vision; for a plan, its metaplan entry if any and every product section named in its `Implements:` line. Follow references to find the other documents that state the same requirement or decision. When an attachment is a finding, read the feature's `doc/plans//findings.md` for its `About:` nodes and status. 2. Check the write limits before editing. Refuse changes to files prefixed `IN_PROGRESS-`, `DONE-`, or `RETIRED-`, anything under `doc/plans//archive/` or `doc/plans/archive/`, a locked plan's brief bundle, and `REVIEW-*.md` files. Explain that running and completed plans and their briefs preserve the execution record, and run reviews are read-only. Offer a new metaplan entry or a spec refinement for the correction instead. 3. Make the change the user asks for. Resolve material ambiguity with the user in plain text, one question at a time. Record each settled decision immediately in the document it affects, with its reason when the reason is not obvious. A document under `doc/product/` follows the session brief's rule for product documents: technical points go under its `## Deferred to planning`, never under `## Open questions`, and the vision's `## Planning notes` bind how you work. 4. Carry the change into every document that states the same thing in the same turn. For a product section, that includes the feature's vision (`index.md` and its `## Decisions`): correct any statement the change makes untrue. If you cannot reconcile a related document, record the conflict under its `## Open questions`, naming the conflicting statements, options, and your recommendation. If that document is locked, preserve it and record the conflict in the affected editable spec or proposed metaplan entry instead; explain the limit. 5. Keep headings that summaries cite unless the requested change concerns the heading itself. Keep cross-references consistent with any deliberate heading change. 6. Never write or edit a `Settled:` line; the app's Mark settled action writes it. When a document you edit has one, say so in the reply ("section 04 was settled; it now reads revised"). A section's stub is its vision row and a plan's stub is its metaplan entry: when a body's scope moves past its stub, update the stub in the same turn or ask. 7. A `(My call.)` marker, including the forms `(My call: reason)` and `(My call; reason)`, blocks Mark settled until it is gone. When the user addresses one, whether they confirm the decision, change it or drop it, edit the sentence to the agreed text and delete the whole marker in the same turn; when the reason is not obvious, keep it as plain prose. Leave no `(My call` text in the document. A decision the user has not confirmed keeps its marker. Write only the target and affected editable documents under `doc/`, including an agreed new metaplan entry under `doc/plans//`. Never edit code or configuration. Never write `doc/loom/knowledge/` with a file tool; use the `loom-plan:knowledge` skill for an agreed knowledge change. Never write `doc/loom/summaries/` directly; summaries change only through `loom plan summary seal `. Never stage, commit, branch, or run `loom init`, `loom run`, or `loom pressure`. After any turn that edited documents, run `loom plan check` and fix what it reports before you reply. Do not rebuild summaries at the end of the turn: the app rebuilds them in the background once the documents stop changing.