orient-sync · git:20261021.df58c20 · 2026-10-21 · sha256 ed1663e0dd9e5978

orient-sync git:20261021.df58c20A

Immutable. This exact content never changes and is served at /api/v1/blob/ed1663e0dd9e5978.

---
name: orient-sync
description: Update STATE.md to match what actually changed this session — moving items between done, in progress, and blocked.
---

# orient-sync

Reconcile `STATE.md` with what actually changed.

The docs directory is `docs` unless the user named a different one.

1. Read `<docs_dir>/STATE.md`.
2. Read `git status` and `git diff --stat` for the uncommitted work.
3. Reconcile the two: move finished items to Done, add new blockers and open
   questions, refresh the `<!-- updated: YYYY-MM-DD -->` marker.
4. Drift check: if any ADR's `- Date:` in `<docs_dir>/decisions/` is newer than
   `<docs_dir>/architecture.md`'s `updated:` marker, that decision skipped `decide`'s architecture
   step (ADR-0020). Say so in the diff and offer to update `architecture.md` and set its marker,
   as a separate approval.

Show the diff and get approval before writing.

Keep the file under 70 lines, and preserve the `## Shape` diagram — don't drop it when
condensing. When Done grows long, condense old entries into a one-line summary rather than
letting the file grow forever.