plan-backlog
/octopus:plan-backlog audits your plans/ directory and docs/roadmap.md
for the six hygiene problems that accumulate silently over delivery cycles β
and optionally fixes the ones that are safe to automate.
What it solves
After a dozen delivery cycles, plans/ grows to fifty-plus files. New
contributors cannot tell which plans are alive, which completed features were
never archived, which roadmap entries have no plan at all, and which plans
point to specs that no longer exist. The planning surface becomes noise.
plan-backlog makes the state visible with a severity-tiered report
(β Warn / βΉ Info) and β with --fix β moves concluded plans into a
dated archive directory using git mv so history is preserved.
How it works
The command discovers the plans directory automatically (plans/ or
docs/plans/; configurable via .octopus.yml), then runs six checks across
every plan file and the roadmap:
- H1 orphan β plan with no RM, PR, issue, or spec link. Usually a draft that was never wired into the lifecycle. Severity: Info.
- H2 concluded β plan for a completed RM that is still outside
archive/. Severity: Warn. Auto-fixed with--fix(moved toarchive/YYYY-MM/viagit mv). - H3 duplicate β two or more plans reference the same RM. Severity: Warn. Needs human judgment; no auto-fix.
- H4 broken-link β plan cites a
docs/specs/,docs/rfcs/,docs/research/, ordocs/adrs/path that does not exist. Severity: Warn. No auto-fix. - H5 roadmap-orphan β an in-progress or proposed RM has no corresponding plan file. Severity: Info.
- H6 stale β plan unchanged for longer than
--stale-days(default 90) and not linked to a concluded RM. Severity: Info.
The output format matches audit-money and audit-contracts so reports from
all three can be concatenated in a single hygiene PR comment.
Usage & parameters
/octopus:plan-backlog [--fix] [--write-report] [--plans-dir=<path>] [--stale-days=<n>] [--only=<checks>]--fixβ apply reversible moves for H2 (concluded plans toarchive/YYYY-MM/). Requires a clean working tree. Default: read-only report.--write-reportβ save the report todocs/reviews/YYYY-MM-DD-hygiene.md.--plans-dir=<path>β override the plans directory lookup.--stale-days=<n>β staleness threshold for H6. Default:90.--only=<list>β run a subset of checks. Valid values:orphan,concluded,duplicate,broken-link,roadmap-orphan,stale.