Incremental workflow
This is the normal agent operation after bootstrap.
Sequence
documentledger --json statusdocumentledger --json doctordocumentledger --json scandocumentledger --json document affecteddocumentledger document build-context --affected --out -Inspect source-unit evidence and section links.
Edit affected sections unless consistency requires a broader update.
Run configured validation commands.
Mark updated sections fresh.
Run
documentledger --json link audit.Run
documentledger --json check.Finish with
documentledger --json status.
scan reconciles each existing durable document record with the current Markdown section
index before deciding that the scan is unchanged. It adds new headings, refreshes structural
metadata for surviving sections, prunes removed sections with empty links, and retains
removed linked sections as actionable orphans. The reconciliation counters are included in
the scan result. doctor and link audit remain read-only.
Live freshness projection
Section-level documentledger document mark-fresh updates affectedness from the current scan without another scan. It refreshes section hashes and the tracked source-unit hash set at the latest scan version. A reason is required so the state transition remains reviewable.
Scope discipline
Use the rendered context and source-unit ids to keep edits bounded. Update linked sections when their tracked dimensions changed, link newly documented source units deliberately, and leave unrelated docs alone. Never invent links solely to improve a coverage percentage.