tiger-doc-keeper
Reconcile the Tiger Claw living dashboard to current origin/main truth. Use doc-keeper for every other repository.
Codex Runtime
- Dependencies: tiger-claw-v4-core repository; repository documentation checks
tiger-claw-v4-core repositoryrepository documentation checks- Execution: Operate directly in the main Codex agent. Delegation is optional only when the environment permits it; direct execution remains complete.
- The direct main-agent workflow remains valid without delegation.
- Use repository-native Git, GitHub, and doc-check commands.
- Never print, log, or expose secret values.
Inputs and Preflight
- Require the
tiger-claw-v4-corerepository, merged PRs or decisions from this session, any named Desktop punch list, and known stale docs. - Read repository instructions and
SACRED_WIRING.md; confirm the documented doc-check command. - Fetch
origin, isolate from concurrent work, and createdocs/reconcile-YYYY-MM-DDfromorigin/main. The default branch ismain; never edit or push it directly. - Read the latest relevant
.codex/sessions/snapshot as evidence, never as a substitute for merged state.
Procedure
- Inspect the complete Tiger dashboard:
BIG-PICTURE.md, the mandatory and highest-stakes flyover.SOTU.md,NEXT_SESSION.md,PROGRESS.md,TO-DO.md, andVERIFIED.md.ARCHITECTURAL_DECISIONS.md,REFACTOR_QUEUE.md, andSECURITY_HARDENING_QUEUE.md.- Any active Desktop punch list the user names.
- Establish ground truth from
git log origin/main, merge commits, PR metadata,git show, and the live code. Confirm migration numbers, flags, constraints, channel policy, and scope limits directly. - Reconcile surgically by each doc's convention:
- Append verified shipped evidence to
VERIFIED.md, distinguishing DARK from live. - Add a numbered architectural decision only when a decision is locked.
- Move SOTU and PROGRESS current-state references to the latest defensible
origin/mainstate. - Put follow-ups in NEXT_SESSION or TO-DO and link tracking issues.
- Reconcile BIG-PICTURE whenever a locked decision, thesis, channel policy, or canon-map path changes.
- Append verified shipped evidence to
- Enforce the exact Tiger doc-CI rules:
- The SOTU top entry leads with a SHA that is an ancestor of, or equal to,
origin/mainHEAD. - The PROGRESS timestamp is newer than the newest
origin/maincommit. - The merged-PR guard must resolve every PR number near merged wording as an actually merged PR; keep issue numbers away from that wording.
- The LINE/drift_guard must contain no newly forbidden phrase.
- The SOTU top entry leads with a SHA that is an ancestor of, or equal to,
- Run the repository's documented doc check and inspect the working-tree diff. Build an explicit list containing only reviewed Tiger documentation paths.
- Stage only that allowlist:
Never stage code or unreviewed files.git add -- <reviewed-doc-paths> - Run
git diff --cached --name-onlyand require the complete cached path list to equal the reviewed Tiger documentation allowlist. Inspect the entire cached patch withgit diff --cached, then secret-scan that exact complete cached diff. Abort on any hit and report locations without values. - Commit with
git commit, push only the topic branch, then open one docs PR againstmain. Do not merge.
Safety and Errors
- Docs only. Never edit code, schema, migrations, Stripe, webhooks,
ai.ts, configuration, or sacred wiring. - Timeless-rule docs require a real rule change and explicit user approval.
- Never overstate DARK, gated, scaffolded, Telegram-only, or otherwise limited behavior.
- If evidence is unverifiable, doc CI fails, or a code change is needed, stop and flag it.
Output Contract
Return a drift report mapping each correction to a PR, commit, or inspected code fact; include all doc-CI results, the docs PR URL, unverifiable items, and decisions requiring Brent. State explicitly that the PR is not merged.