You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add plan, diff, apply, and check workflows for agent-driven sync #6
Introduce an explicit inspect, plan, apply, and verify workflow for synchronizing Markdown code blocks. Agents must be able to determine the exact proposed change before mdcode writes a file.
Acceptance criteria
A dry-run mode returns a structured change plan without modifying files.
A diff mode presents the intended Markdown changes for human review.
Applying a change is explicit; in-place mutation is never the only way to obtain an update result.
A check mode exits non-zero when selected Markdown blocks are out of sync with their sources.
Blocks can be selected deterministically using documented stable selectors.
Category: enhancement Summary: Make Markdown synchronization safe by default with explicit plan, diff, apply, and check modes.
Current behavior:
The update command reads linked source files and writes the resulting Markdown in place by default when given a file. The stdout option is the only non-mutating alternative. There is no structured plan, reviewable diff, drift check, or explicit apply gate.
Desired behavior:
Update is non-mutating by default. It determines the selected block changes and returns a change plan; writing requires an explicit --apply option. Agents and humans can inspect the plan, view a unified diff, or check for drift without modifying Markdown. Selection uses the stable names introduced by issue #16.
--apply — the only mode that writes an input Markdown document in place.
--diff — emit a unified diff for intended Markdown changes and never write.
--check — never write; exit with status 1 when selected blocks are out of sync. Operational, validation, and configuration failures remain distinct errors.
Activity
adrianbrowning commentedon Aug 8, 2026
Agent Brief
Category: enhancement
Summary: Make Markdown synchronization safe by default with explicit plan, diff, apply, and check modes.
Current behavior:
The update command reads linked source files and writes the resulting Markdown in place by default when given a file. The stdout option is the only non-mutating alternative. There is no structured plan, reviewable diff, drift check, or explicit apply gate.
Desired behavior:
Update is non-mutating by default. It determines the selected block changes and returns a change plan; writing requires an explicit --apply option. Agents and humans can inspect the plan, view a unified diff, or check for drift without modifying Markdown. Selection uses the stable names introduced by issue #16.
Key interfaces:
Acceptance criteria:
Out of scope:
Verification status:
Confirmed: update currently writes in place by default and offers no plan, diff, or check mode. This issue remains blocked by #5.
feat(update): plan by default; explicit --apply, --diff and --check (#34