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 /tmp/documentledger-context.mdInspect 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.
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.