Skip to content

Latest commit

 

History

History
82 lines (67 loc) · 6.3 KB

File metadata and controls

82 lines (67 loc) · 6.3 KB

ROUTER.md

This file is the first entry point for an AI agent working in this repo: it tells you what to read, what to run, and which files are canonical.

Role split

  • ROUTER.md = startup order and canonical entry points
  • GUIDING-PRINCIPLES.md = the north star; what the repo's goals and design tradeoffs answer to
  • AGENTS.md = behavioral rules, decision quality, reversibility, blast radius, proof
  • README.md = human-facing repo/product overview
  • ROADMAP.md = pointer ledger for this repo's own maintenance work
  • CHANGELOG.md = the end-of-iteration running log (first-class PDDA artifact; governed by PROJECT/PDDA.md)
  • RELEASES.md = forward-looking release-planning ledger (first-class PDDA artifact; governed by PROJECT/PDDA.md)
  • PROJECT/PDDA.md = the canonical PDDA contract and automation rules
  • utils/pdda/PDDA-INSTALL.md = the extraction/install manifest PDDA was installed from
  • utils/pdda/pdda.sh = the unified runnable surface (dispatcher + every deterministic check + run)
  • utils/pdda/pdda-doc-ready.sh = the opt-in LLM readiness review; utils/pdda/pdda-lib.sh = shared helpers

Startup sequence

  1. Read ROUTER.md to understand the repo's operating order and canonical files. -> expect one clear next file, not a repo-wide scavenger hunt.
  2. Read GUIDING-PRINCIPLES.md for the repo's north star. -> expect the goals and tradeoff lens that every design choice answers to.
  3. Read AGENTS.md before making recommendations or edits. -> expect explicit assumptions, a reversibility read on consequential changes, and verified claims only.
  4. Read README.md for the repo's purpose and baseline usage. -> expect a short explanation of what is canonical here.
  5. If the task is about the PDDA contract or enforcement model, read PROJECT/PDDA.md. -> expect the source of truth for lifecycle, roadmap, changelog, and enforcement rules.
  6. Read ROADMAP.md only for repo-local maintenance state. -> expect a pointer ledger, not a copied plan body from another repo.
  7. Before reporting success on repo changes, run utils/pdda/pdda.sh run or the relevant single check (utils/pdda/pdda.sh <check>). -> expect deterministic findings first, then any LLM review.
  8. If you are exploring an unknown system, proposing a new spike, or are blocked, search PROJECT/3-COMPLETED/ and CHANGELOG.md for past context first. -> expect to recover memory of past struggles, gotchas, or decisions.

Canonical rules

  • Do not put phase checklists, build steps, or deep execution notes in ROADMAP.md.
  • Do not edit utils/pdda/** in this repo. PDDA's runtime is installed here, not authored here; a local edit is overwritten the next time the runtime is synced from the canonical PDDA repo. Fix it upstream instead.
  • PROJECT/PDDA-ACTIVITY.jsonl is runtime output, not source. It starts fresh in this repo and is gitignored.
  • Every active doc in PROJECT/2-WORKING/ must be reflected by a pointer in ROADMAP.md — a one-line ledger entry that links it. A working doc that should not appear opts out with roadmap_exempt: true in its frontmatter. Enforced by utils/pdda/pdda.sh roadmap-coverage; governance lives in PROJECT/PDDA.md -> "ROADMAP.md contract".
  • Every captured GitHub issue doc in PROJECT/1-INBOX/GH-*.md must also be parked in ROADMAP.md as a one-line queue entry immediately at intake, then promoted or removed later. Enforced by utils/pdda/pdda.sh roadmap-coverage; governance lives in PROJECT/PDDA.md -> "GitHub issue intake" + "ROADMAP.md contract".
  • The long-term canonical deterministic surface is utils/pdda/pdda.sh; do not add wrapper commands unless a real external integration forces them.
  • Do not override deterministic PDDA findings with prose.
  • Do not report a win you did not verify with the relevant script or test.
  • Update CHANGELOG.md at the end of each iteration; its governance lives in PROJECT/PDDA.md — do not re-specify CHANGELOG rules in AGENTS.md or elsewhere.

Command rails

For baseline verification and document hygiene:

utils/pdda/pdda.sh run

For targeted PDDA debugging, run a single check by name:

utils/pdda/pdda.sh frontmatter
utils/pdda/pdda.sh status-table
utils/pdda/pdda.sh hardcoded-paths
utils/pdda/pdda.sh roadmap
utils/pdda/pdda.sh roadmap-coverage
utils/pdda/pdda.sh changelog
utils/pdda/pdda.sh stale
utils/pdda/pdda.sh quad-concepts    # opt-in: a "## Quad Concepts" section of 1-4 bullets (lever: .pdda-quad / PDDA_QUAD)
utils/pdda/pdda.sh glance           # read-only roll-up: title + Quad Concepts for each PROJECT/2-WORKING doc
utils/pdda/pdda.sh issue-doc-sync   # flag GH-*.md docs drifted from their GitHub issue state (warn-only; gh-degrades to cache)
utils/pdda/pdda.sh releases         # validate RELEASES.md blocks (never blocks, even in full mode)
utils/pdda/pdda.sh releases-current # read-only roll-up: RELEASES.md entries not marked Shipped
utils/pdda/pdda.sh governance  # governance-doc cross-reference + doc/code drift (this file, AGENTS.md, CLAUDE.md, ...)
utils/pdda/pdda.sh gh-refresh  # refresh the cached GitHub issue-state file issue-doc-sync reads offline (needs gh)
utils/pdda/pdda.sh doc-ready   # LLM readiness review — set PDDA_LLM_BIN (codex/claude/agy) for recommendations, else it self-skips
utils/pdda/pdda.sh catchup     # LLM repo triage and ROUTER.md recommendations — opt-in like doc-ready
utils/pdda/pdda.sh help        # list every command

Routing hints

  • If the task is about document quality, active-doc lifecycle, roadmap sprawl, or automation policy, start in PROJECT/PDDA.md.
  • If the task is about repo-local maintenance state, start in ROADMAP.md.
  • If the task is about the changelog, provenance, or end-of-iteration logging, the governance is in PROJECT/PDDA.md (the "CHANGELOG.md — end-of-iteration record" contract).
  • To re-run this startup sequence mid-session (task switch, resume, post-compact, context drift), invoke the /pdda skill (.claude/skills/pdda/SKILL.md) instead of re-reading by hand.