@event4u/agent-config 14.6.0 → 14.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (258) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/CHANGELOG.md +255 -145
  3. package/README.md +1 -1
  4. package/dist/agent-src/commands/analyze/inbox.md +264 -10
  5. package/dist/agent-src/commands/analyze.md +1 -1
  6. package/dist/agent-src/commands/evals/git-pr-merge.json +13 -0
  7. package/dist/agent-src/commands/evals/roadmap.json +17 -1
  8. package/dist/agent-src/commands/pr/create.md +14 -2
  9. package/dist/agent-src/commands/pr/merge.md +379 -0
  10. package/dist/agent-src/commands/roadmap/process-full.md +272 -32
  11. package/dist/agent-src/commands/roadmap.md +1 -1
  12. package/dist/agent-src/contexts/execution/auto-dispatch-classification.md +46 -36
  13. package/dist/agent-src/contexts/execution/autonomy-mechanics.md +37 -2
  14. package/dist/agent-src/contexts/execution/roadmap-execution-contract.md +95 -2
  15. package/dist/agent-src/contexts/execution/roadmap-process-loop.md +289 -106
  16. package/dist/agent-src/rules/artifact-drafting-protocol.md +5 -1
  17. package/dist/agent-src/rules/context-hygiene.md +2 -0
  18. package/dist/agent-src/rules/decision-revisit-gate.md +67 -32
  19. package/dist/agent-src/rules/fix-what-you-see.md +108 -0
  20. package/dist/agent-src/rules/no-roadmap-references.md +0 -5
  21. package/dist/agent-src/rules/recurring-criticism.md +110 -0
  22. package/dist/agent-src/rules/roadmap-progress-sync.md +20 -1
  23. package/dist/agent-src/rules/rule-type-governance.md +0 -2
  24. package/dist/agent-src/rules/self-repair-loop.md +17 -0
  25. package/dist/agent-src/rules/skill-quality.md +0 -2
  26. package/dist/agent-src/rules/source-confidentiality.md +37 -7
  27. package/dist/agent-src/scripts/archival_sweep.ts +117 -0
  28. package/dist/agent-src/scripts/archive_completed_roadmaps.ts +26 -7
  29. package/dist/agent-src/scripts/dashboard_mode.ts +212 -0
  30. package/dist/agent-src/scripts/gate_budget.ts +282 -0
  31. package/dist/agent-src/scripts/gate_execute.ts +72 -31
  32. package/dist/agent-src/scripts/roadmap_gates.ts +74 -3
  33. package/dist/agent-src/scripts/update_roadmap_progress.ts +296 -53
  34. package/dist/agent-src/skills/adr-create/SKILL.md +124 -5
  35. package/dist/agent-src/skills/ai-council/SKILL.md +48 -807
  36. package/dist/agent-src/skills/ai-council/references/advanced-modes.md +320 -0
  37. package/dist/agent-src/skills/ai-council/references/cost-and-redaction.md +99 -0
  38. package/dist/agent-src/skills/ai-council/references/execution-modes.md +162 -0
  39. package/dist/agent-src/skills/ai-council/references/output-and-synthesis.md +125 -0
  40. package/dist/agent-src/skills/ai-council/references/procedure.md +143 -0
  41. package/dist/agent-src/skills/decision-record/SKILL.md +61 -3
  42. package/dist/agent-src/skills/decision-review/SKILL.md +65 -0
  43. package/dist/agent-src/skills/merge-conflicts/SKILL.md +26 -0
  44. package/dist/agent-src/skills/quality-tools/SKILL.md +34 -326
  45. package/dist/agent-src/skills/quality-tools/references/js-ts-tools.md +113 -0
  46. package/dist/agent-src/skills/quality-tools/references/php-tools.md +222 -0
  47. package/dist/agent-src/skills/roadmap-management/SKILL.md +15 -409
  48. package/dist/agent-src/skills/roadmap-management/references/archival.md +226 -0
  49. package/dist/agent-src/skills/roadmap-management/references/authoring.md +107 -0
  50. package/dist/agent-src/skills/roadmap-management/references/dashboard.md +47 -0
  51. package/dist/agent-src/skills/roadmap-management/references/lifecycle.md +58 -0
  52. package/dist/agent-src/skills/security/SKILL.md +8 -0
  53. package/dist/agent-src/skills/security-audit/SKILL.md +12 -1
  54. package/dist/agent-src/skills/skill-writing/SKILL.md +34 -570
  55. package/dist/agent-src/skills/skill-writing/references/procedure.md +275 -0
  56. package/dist/agent-src/skills/skill-writing/references/read-only-scripts.md +18 -0
  57. package/dist/agent-src/skills/skill-writing/references/section-patterns.md +298 -0
  58. package/dist/agent-src/templates/agents/agent-project-settings.example.yml +1 -1
  59. package/dist/agent-src/templates/roadmaps.md +65 -4
  60. package/dist/agent-src/templates/scripts/telemetry/flush_sender.mjs +163 -0
  61. package/dist/agent-src/templates/scripts/telemetry/remote.ts +160 -7
  62. package/dist/agent-src/templates/scripts/telemetry/transport.ts +169 -0
  63. package/dist/cli/registry.js +2 -1
  64. package/dist/cli/registry.js.map +1 -1
  65. package/dist/cli-delegate/chunk-2GNWGMAL.js +172 -0
  66. package/dist/cli-delegate/{chunk-P6LQDIWK.js → chunk-7PRE6ZV2.js} +338 -0
  67. package/dist/cli-delegate/{chunk-BKO2AZ7Z.js → chunk-B2ERU2VA.js} +1 -1
  68. package/dist/cli-delegate/chunk-E4XIZDIB.js +402 -0
  69. package/dist/cli-delegate/{chunk-3UCJWMMP.js → chunk-EEJUMCDZ.js} +16 -16
  70. package/dist/cli-delegate/{chunk-NXFWFAYV.js → chunk-G23AT6GD.js} +1 -0
  71. package/dist/cli-delegate/{chunk-XURJ4AQC.js → chunk-H4VIVD4C.js} +385 -284
  72. package/dist/cli-delegate/chunk-I3EIN2YG.js +36 -0
  73. package/dist/cli-delegate/{chunk-RLN73PR5.js → chunk-LPPWO5CE.js} +12 -8
  74. package/dist/cli-delegate/chunk-MWRD5YOH.js +100 -0
  75. package/dist/cli-delegate/{chunk-UEZ7D35A.js → chunk-N7CDDGI3.js} +4 -23
  76. package/dist/cli-delegate/{chunk-63WSP6YZ.js → chunk-PMEKGDED.js} +74 -167
  77. package/dist/cli-delegate/{chunk-GRRPEPRN.js → chunk-T7L2QK3K.js} +24 -5
  78. package/dist/cli-delegate/{chunk-EVTY7ISR.js → chunk-YM4GZDJG.js} +9 -1
  79. package/dist/cli-delegate/cmd_adr_effective.js +1162 -0
  80. package/dist/cli-delegate/cmd_conformance.js +466 -716
  81. package/dist/cli-delegate/cmd_converge.js +3 -3
  82. package/dist/cli-delegate/cmd_doctor.js +10 -10
  83. package/dist/cli-delegate/cmd_explain.js +1 -1
  84. package/dist/cli-delegate/cmd_export.js +10 -9
  85. package/dist/cli-delegate/cmd_handoff.js +10 -9
  86. package/dist/cli-delegate/cmd_memory_get.js +2 -1
  87. package/dist/cli-delegate/cmd_migrate.js +2 -2
  88. package/dist/cli-delegate/cmd_packs_active.js +1 -1
  89. package/dist/cli-delegate/cmd_preflight.js +5 -5
  90. package/dist/cli-delegate/cmd_prune.js +11 -10
  91. package/dist/cli-delegate/cmd_route_audit.js +6 -5
  92. package/dist/cli-delegate/cmd_route_explain.js +3 -3
  93. package/dist/cli-delegate/cmd_session_recycle.js +840 -30
  94. package/dist/cli-delegate/cmd_settings_get.js +3 -3
  95. package/dist/cli-delegate/cmd_settings_migrate.js +10 -9
  96. package/dist/cli-delegate/cmd_settings_set.js +1 -1
  97. package/dist/cli-delegate/cmd_sync.js +11 -10
  98. package/dist/cli-delegate/cmd_uninstall.js +13 -11
  99. package/dist/cli-delegate/cmd_update.js +4 -4
  100. package/dist/cli-delegate/cmd_upgrade.js +4 -4
  101. package/dist/cli-delegate/cmd_validate.js +11 -10
  102. package/dist/cli-delegate/cmd_versions.js +3 -3
  103. package/dist/discovery/deprecation-report.md +1 -1
  104. package/dist/discovery/discovery-manifest.json +111 -37
  105. package/dist/discovery/discovery-manifest.json.sha256 +1 -1
  106. package/dist/discovery/discovery-manifest.summary.md +5 -5
  107. package/dist/discovery/dormancy-report.md +1 -1
  108. package/dist/discovery/orphan-report.md +1 -1
  109. package/dist/discovery/packs.json +15 -12
  110. package/dist/discovery/trust-report.md +3 -3
  111. package/dist/discovery/workspaces.json +11 -8
  112. package/dist/hooks/dispatch.js +3165 -2192
  113. package/dist/install/claudePathsPlan.js +187 -0
  114. package/dist/install/claudePathsPlan.js.map +1 -0
  115. package/dist/install/globalRuleLayers.js +169 -0
  116. package/dist/install/globalRuleLayers.js.map +1 -0
  117. package/dist/install/hostLayerFingerprint.js +136 -0
  118. package/dist/install/hostLayerFingerprint.js.map +1 -0
  119. package/dist/install/install.mjs +553 -425
  120. package/dist/install/partitionEligibility.js +432 -0
  121. package/dist/install/partitionEligibility.js.map +1 -0
  122. package/dist/install/ruleLayerPartition.js +157 -0
  123. package/dist/install/ruleLayerPartition.js.map +1 -0
  124. package/dist/mcp/registry-manifest.json +3 -3
  125. package/dist/mcp/server.json +2 -2
  126. package/dist/mcp/server.mjs +1863 -1234
  127. package/dist/router.json +1 -1
  128. package/dist/scripts/_lib/agent_src.js +41 -0
  129. package/dist/scripts/_lib/agent_src.js.map +1 -1
  130. package/dist/scripts/_lib/install_layout.js +83 -0
  131. package/dist/scripts/_lib/install_layout.js.map +1 -0
  132. package/dist/scripts/_lib/installed_lock.js +444 -0
  133. package/dist/scripts/_lib/installed_lock.js.map +1 -0
  134. package/dist/scripts/_lib/prune_empty_dirs.js +85 -0
  135. package/dist/scripts/_lib/prune_empty_dirs.js.map +1 -0
  136. package/dist/scripts/condense.js +63 -251
  137. package/dist/scripts/condense.js.map +1 -1
  138. package/dist/server/schemas/settings.js +4 -0
  139. package/dist/server/schemas/settings.js.map +1 -1
  140. package/docs/contracts/settings-classes.md +12 -6
  141. package/docs/guidelines/agent-infra/agent-interaction-and-decision-quality.md +8 -3
  142. package/docs/guidelines/agent-infra/artifact-drafting-protocol-mechanics.md +45 -1
  143. package/docs/guidelines/agent-infra/context-hygiene-mechanics.md +26 -0
  144. package/docs/guidelines/agent-infra/false-green.md +47 -1
  145. package/docs/guidelines/agent-infra/memory-access.md +17 -0
  146. package/docs/guidelines/agent-infra/recurring-criticism-mechanics.md +96 -0
  147. package/package.json +1 -1
  148. package/src/agent-src/scripts/archival_sweep.ts +117 -0
  149. package/src/agent-src/scripts/archive_completed_roadmaps.ts +26 -7
  150. package/src/agent-src/scripts/dashboard_mode.ts +212 -0
  151. package/src/agent-src/scripts/gate_budget.ts +282 -0
  152. package/src/agent-src/scripts/gate_execute.ts +72 -31
  153. package/src/agent-src/scripts/roadmap_gates.ts +74 -3
  154. package/src/agent-src/scripts/update_roadmap_progress.ts +296 -53
  155. package/src/agent-src/templates/scripts/telemetry/flush_sender.mjs +163 -0
  156. package/src/agent-src/templates/scripts/telemetry/remote.ts +160 -7
  157. package/src/agent-src/templates/scripts/telemetry/transport.ts +169 -0
  158. package/src/config/agent-settings.template.yml +27 -2
  159. package/src/config/ci-local-parity.yml +39 -0
  160. package/src/config/estate-count-budget.json +612 -3
  161. package/src/config/evaluator-budgets.json +3 -3
  162. package/src/config/gate-coverage.yml +220 -12
  163. package/src/config/gate-violation-baselines.json +73 -63
  164. package/src/config/gitignore-block.txt +15 -2
  165. package/src/config/hook-latency-budget.json +5 -0
  166. package/src/config/rule-activation-census.json +14 -6
  167. package/src/config/rule-stub-ceilings.json +34 -7
  168. package/src/install/claudePathsPlan.ts +196 -0
  169. package/src/install/globalRuleLayers.ts +197 -0
  170. package/src/install/hostLayerFingerprint.ts +145 -0
  171. package/src/install/partitionEligibility.ts +502 -0
  172. package/src/install/ruleLayerPartition.ts +212 -0
  173. package/src/scripts/_cli/cmd_adr_effective.ts +484 -0
  174. package/src/scripts/_cli/cmd_session_recycle.ts +9 -1
  175. package/src/scripts/_dispatch.bash +17 -1
  176. package/src/scripts/_lib/ac_heading.ts +30 -0
  177. package/src/scripts/_lib/adr_frontmatter.test.ts +365 -0
  178. package/src/scripts/_lib/adr_frontmatter.ts +459 -0
  179. package/src/scripts/_lib/agent_src.ts +42 -0
  180. package/src/scripts/_lib/bench_ab_pinned_repo.ts +162 -0
  181. package/src/scripts/_lib/bench_ab_workspace.ts +10 -1
  182. package/src/scripts/_lib/envelope_grounding.ts +49 -9
  183. package/src/scripts/_lib/installed_lock.ts +50 -5
  184. package/src/scripts/_lib/layer_overlap_notice.ts +11 -2
  185. package/src/scripts/_lib/md_section.ts +129 -0
  186. package/src/scripts/_lib/prune_empty_dirs.ts +80 -0
  187. package/src/scripts/_lib/scope_guard.sh +26 -3
  188. package/src/scripts/_lib/self_repair.ts +19 -0
  189. package/src/scripts/_lib/self_repair_class_b.ts +171 -0
  190. package/src/scripts/adr/evidence_census.ts +899 -0
  191. package/src/scripts/adr/regenerate_index.ts +12 -32
  192. package/src/scripts/adr_cite_check.ts +540 -39
  193. package/src/scripts/ai_council/cli_help.ts +55 -0
  194. package/src/scripts/audit_adr_coverage.ts +103 -17
  195. package/src/scripts/before_complete_hook.ts +153 -28
  196. package/src/scripts/bench_ab_v2_complexity.ts +27 -7
  197. package/src/scripts/bench_hook_latency.ts +204 -0
  198. package/src/scripts/build_archive_index.ts +34 -0
  199. package/src/scripts/check_adr_frontmatter.ts +574 -39
  200. package/src/scripts/check_hook_bundle_content.ts +219 -0
  201. package/src/scripts/check_new_adr_evidence.ts +529 -0
  202. package/src/scripts/check_references.ts +78 -0
  203. package/src/scripts/check_release_published.ts +32 -11
  204. package/src/scripts/check_rule_layer_partition.ts +531 -0
  205. package/src/scripts/check_single_delivery.ts +194 -17
  206. package/src/scripts/check_standing_rule_delivery.ts +8 -2
  207. package/src/scripts/ci_settle.ts +170 -0
  208. package/src/scripts/condense.ts +79 -259
  209. package/src/scripts/council_cli.ts +3 -3
  210. package/src/scripts/dispatch_r2_reviewer.ts +6 -14
  211. package/src/scripts/external_sources_denylist.json +4 -1
  212. package/src/scripts/hook_manifest.json +1 -1
  213. package/src/scripts/hook_manifest.yaml +77 -14
  214. package/src/scripts/hooks/block_no_verify.ts +61 -10
  215. package/src/scripts/hooks/block_unauthorized_git.ts +21 -1
  216. package/src/scripts/hooks/concern_registry.ts +4 -0
  217. package/src/scripts/hooks/dispatch_hook.ts +154 -187
  218. package/src/scripts/hooks/dispatch_issues.ts +38 -19
  219. package/src/scripts/hooks/fallback_yaml.ts +66 -0
  220. package/src/scripts/hooks/host_semantics.ts +21 -0
  221. package/src/scripts/hooks/injection_budget.ts +13 -3
  222. package/src/scripts/hooks/py_json_dumps.ts +103 -0
  223. package/src/scripts/hooks/rtk_wrap_hook.ts +8 -3
  224. package/src/scripts/hooks/run_continuation_hook.ts +8 -5
  225. package/src/scripts/hooks/ship_diff_volume_hook.ts +81 -15
  226. package/src/scripts/hooks/source_first_gate_hook.ts +464 -0
  227. package/src/scripts/hooks/state_io.ts +870 -21
  228. package/src/scripts/hooks/stdin_failure_policy.ts +96 -0
  229. package/src/scripts/hooks/subagent_ledger_hook.ts +44 -15
  230. package/src/scripts/hooks/telemetry_flush_hook.ts +139 -0
  231. package/src/scripts/hooks/telemetry_self_repair.ts +128 -0
  232. package/src/scripts/hooks/telemetry_usage_hook.ts +22 -4
  233. package/src/scripts/hooks/turn_end_gate_hook.ts +81 -15
  234. package/src/scripts/injection_scan_hook.ts +137 -5
  235. package/src/scripts/install.ts +16 -11
  236. package/src/scripts/language_mirror_hook.ts +561 -25
  237. package/src/scripts/lint_framework_leakage_allowlist.json +2 -2
  238. package/src/scripts/lint_hook_manifest.ts +49 -0
  239. package/src/scripts/lint_plan_risk_register.ts +4 -3
  240. package/src/scripts/lint_provenance_vocabulary.ts +472 -4
  241. package/src/scripts/lint_skill_router_head.ts +4 -4
  242. package/src/scripts/mcp_server/tools.ts +2 -2
  243. package/src/scripts/new_roadmap.ts +136 -0
  244. package/src/scripts/pack_mcp_content.ts +20 -5
  245. package/src/scripts/release.ts +37 -38
  246. package/src/scripts/report_layer_overlap.ts +6 -0
  247. package/src/scripts/routing_doctor.ts +5 -1
  248. package/src/scripts/self_repair_hook.ts +37 -5
  249. package/src/scripts/session_register_hook.ts +11 -0
  250. package/src/scripts/skill_usage_collect.ts +11 -1
  251. package/src/scripts/skill_usage_report.ts +278 -8
  252. package/src/scripts/sync_pr_branch.ts +170 -20
  253. package/src/server/schemas/settings.ts +8 -0
  254. package/dist/cli-delegate/chunk-EJITJBJX.js +0 -172
  255. package/dist/cli-delegate/chunk-PZWRPRWP.js +0 -38
  256. package/dist/cli-delegate/{chunk-PPQO4NGR.js → chunk-6RJA2F5A.js} +3 -3
  257. package/dist/cli-delegate/{chunk-RYNADUFG.js → chunk-LWTYTX6F.js} +0 -0
  258. package/dist/cli-delegate/{chunk-FBKL6JWT.js → chunk-MMSGVZKV.js} +3 -3
@@ -0,0 +1,222 @@
1
+ # quality-tools — PHP quality tools
2
+
3
+ > Mode body of the [`quality-tools`](../SKILL.md) skill (router-head
4
+ > retrofit, 2026-08-20). Content moved VERBATIM from SKILL.md — load this
5
+ > file when the mode table in SKILL.md routes here.
6
+
7
+ # PHP Quality Tools
8
+
9
+ ## Tool Detection
10
+
11
+ Check `composer.json` to determine which tools are available and how to run them.
12
+ Use the **first matching** command style:
13
+
14
+ | `composer.json` contains | Command style | Example |
15
+ |---|---|---|
16
+ | A project-specific quality wrapper (exposes `quality:*` commands) | `php artisan quality:*` or `composer quality:*` | `php artisan quality:phpstan` |
17
+ | `phpstan/phpstan` or `larastan/larastan` | `vendor/bin/phpstan` | `vendor/bin/phpstan analyse` |
18
+ | `rector/rector` | `vendor/bin/rector` | `vendor/bin/rector process` |
19
+ | `symplify/easy-coding-standard` | `vendor/bin/ecs` | `vendor/bin/ecs check --fix` |
20
+
21
+ **Priority:** If a project ships a `quality:*` wrapper (Artisan or Composer script), always prefer it —
22
+ wrappers typically add git-aware execution, caching, automatic baseline regeneration, and memory
23
+ management on top of the native tools.
24
+
25
+ If none of the above is installed → skip quality checks, inform the user.
26
+
27
+ All commands run **inside the Docker container** if Docker is used (`docker compose exec` or `make console`).
28
+
29
+ ## Commands
30
+
31
+ ### PHPStan — Static Analysis
32
+
33
+ ```bash
34
+ # Native:
35
+ vendor/bin/phpstan analyse # Analyse all configured paths
36
+ vendor/bin/phpstan analyse --memory-limit=512M # With memory limit
37
+ vendor/bin/phpstan analyse --error-format=github # CI-friendly format
38
+
39
+ # With a project-specific quality wrapper:
40
+ php artisan quality:phpstan # Laravel
41
+ composer quality:phpstan # Composer
42
+ ```
43
+
44
+ **Native flags:**
45
+
46
+ | Flag | Description |
47
+ |---|---|
48
+ | `--memory-limit=SIZE` | Set memory limit (e.g. `512M`, `1G`) |
49
+ | `--debug` | Activate debug mode |
50
+ | `--error-format=FORMAT` | Output format: `table` (default), `github`, `gitlab` |
51
+ | `--pro` | Toggle PHPStan Pro |
52
+
53
+ **Wrapper-only flags** (typical of a `quality:*` wrapper — verify in the project):
54
+
55
+ | Flag | Description |
56
+ |---|---|
57
+ | `--baseline` | Generate/update phpstan baseline file |
58
+ | `--ignore-git` | Skip Git check, analyse all files |
59
+ | `--xdebug` | Activate Xdebug mode |
60
+
61
+ ### ECS — Easy Coding Standard
62
+
63
+ ```bash
64
+ # Native:
65
+ vendor/bin/ecs check # Dry-run
66
+ vendor/bin/ecs check --fix # Auto-fix
67
+
68
+ # With a project-specific quality wrapper:
69
+ php artisan quality:ecs --fix # Laravel
70
+ composer quality:ecs -- --fix # Composer
71
+ ```
72
+
73
+ **Native flags:**
74
+
75
+ | Flag | Description |
76
+ |---|---|
77
+ | `--fix` | Fix errors automatically |
78
+ | `--clear-cache` | Clear the ECS cache |
79
+
80
+ **Wrapper-only flags** (typical of a `quality:*` wrapper — verify in the project):
81
+
82
+ | Flag | Description |
83
+ |---|---|
84
+ | `--ignore-git` | Skip Git check, check all files |
85
+ | `--paths-to-scan[=PATHS]` | Custom paths, e.g. `--paths-to-scan='["./core"]'` |
86
+ | `--source-branch[=BRANCH]` | Source branch (default: HEAD) |
87
+ | `--target-branch[=BRANCH]` | Target branch to compare against |
88
+
89
+ ### Rector — Automated Refactoring
90
+
91
+ ```bash
92
+ # Native:
93
+ vendor/bin/rector process # Auto-fix
94
+ vendor/bin/rector process --dry-run # Preview changes
95
+
96
+ # With a project-specific quality wrapper:
97
+ php artisan quality:rector --fix # Laravel
98
+ composer quality:rector -- --fix # Composer
99
+ ```
100
+
101
+ **Native flags:**
102
+
103
+ | Flag | Description |
104
+ |---|---|
105
+ | `--dry-run` | Preview changes without applying |
106
+ | `--clear-cache` | Clear the Rector cache |
107
+
108
+ **Wrapper-only flags** (typical of a `quality:*` wrapper — verify in the project):
109
+
110
+ | Flag | Description |
111
+ |---|---|
112
+ | `--ignore-git` | Skip Git check, check all files |
113
+ | `--paths-to-scan[=PATHS]` | Custom paths |
114
+ | `--source-branch[=BRANCH]` | Source branch (default: HEAD) |
115
+ | `--target-branch[=BRANCH]` | Target branch to compare against |
116
+
117
+ ### Combined Commands
118
+
119
+ There is no native single command for running all three tools. Run them in sequence:
120
+
121
+ ```bash
122
+ # Full pipeline (native):
123
+ vendor/bin/rector process && vendor/bin/ecs check --fix && vendor/bin/phpstan analyse
124
+
125
+ # With a project-specific quality wrapper (if it ships these combined commands):
126
+ php artisan quality:refactor --fix # Rector + ECS
127
+ php artisan quality:finalize # Rector + ECS + PHPStan (full pipeline)
128
+ ```
129
+
130
+ ## Procedure: Run quality checks
131
+
132
+ 1. Run PHPStan — fix all errors
133
+ 2. Run Rector + ECS with auto-fix — fix style + refactoring
134
+ 3. Run PHPStan again — verify step 2 didn't introduce new issues
135
+
136
+ If step 3 finds errors → fix and repeat from step 2.
137
+
138
+ Detect commands from project (see Tool Detection above).
139
+
140
+ ## Configuration
141
+
142
+ Config files are typically in the **project root**. Do NOT modify without explicit user permission.
143
+
144
+ Detect config location:
145
+ - Check project root first: `phpstan.neon`, `ecs.php`, `rector.php`
146
+ - Some projects use `phpstan.neon.dist` instead of `phpstan.neon`
147
+
148
+ ### Standard config files
149
+
150
+ | File | Tool | Purpose |
151
+ |---|---|---|
152
+ | `phpstan.neon` | PHPStan | Level, paths, extensions, `ignoreErrors`, disallowed calls |
153
+ | `phpstan-baseline.neon` | PHPStan | Baseline for existing errors (auto-managed, do NOT edit) |
154
+ | `ecs.php` | ECS | Code style: rule sets, configured rules, skip list |
155
+ | `rector.php` | Rector | Refactoring: rule sets, PHP version sets, skip list |
156
+
157
+ ### Understanding the project's config
158
+
159
+ Read the actual config files to understand what rules are active:
160
+
161
+ - **phpstan.neon**: Check `level`, `paths`, `ignoreErrors`, `includes` (baselines, extensions)
162
+ - **ecs.php**: Check which rule sets are active (PSR-12, PHP-CS-Fixer sets), skip list
163
+ - **rector.php**: Check PHP version sets, active rule sets, skip list
164
+
165
+ Common patterns across projects:
166
+ - PHPStan at high levels (8-9) with `disallowedFunctionCalls` banning `var_dump()`, `dd()`
167
+ - ECS with PSR-12 base, trailing commas, Yoda style
168
+ - Rector with PHP version migration sets and naming conventions
169
+
170
+ ## Baseline policy
171
+
172
+ - **NEVER** edit `phpstan-baseline.neon` by hand.
173
+ - **NEVER** add errors, update counts, or regenerate manually.
174
+ - If the project ships a quality wrapper (exposing `quality:*` commands), it may regenerate the baseline automatically.
175
+
176
+ ## PHPStan error handling
177
+
178
+ Priority order for dealing with PHPStan errors:
179
+
180
+ 1. **Fix the code** — always the first choice. Fix the actual type issue.
181
+ 2. **Add type hints / PHPDoc** — if the code is correct but PHPStan can't infer the type.
182
+ 3. **Inline ignore (last resort)** — only for confirmed false positives:
183
+ ```php
184
+ // @phpstan-ignore-next-line — false positive: reason here
185
+ ```
186
+
187
+ ### When `phpstan.neon` changes ARE allowed
188
+
189
+ Adding `ignoreErrors` entries to `phpstan.neon` is allowed when:
190
+
191
+ - The error is a **structural limitation** of the toolchain (e.g., Pest tests bind `$this` at runtime, PHPStan can't resolve `artisan()`,
192
+ `get()`, etc. on `PHPUnit\Framework\TestCase`)
193
+ - The pattern applies **broadly** to a category of files (e.g., all test files), not just one specific line
194
+ - The fix would require abandoning the project's conventions (e.g., rewriting Pest tests as PHPUnit classes)
195
+
196
+ **If unsure whether a `phpstan.neon` change is appropriate → ask the user before making the change.**
197
+
198
+ ### NEVER do these
199
+
200
+ - Add entries to baseline files (`phpstan-baseline.neon`)
201
+ - Add `ignoreErrors` for individual files or specific code issues that should be fixed
202
+ - Use `@phpstan-ignore-next-line` without a reason comment
203
+
204
+ See also: `php-coding` rule → PHPStan section.
205
+
206
+ ## Testing framework
207
+
208
+ - **Always write tests in Pest**, not PHPUnit class syntax — unless the user explicitly asks for PHPUnit.
209
+ - Pest tests in `tests/Unit/` automatically use `UnitTestCase` as the base class (configured in `tests/Pest.php`).
210
+ - PHPStan cannot fully resolve Pest's runtime bindings — this is handled via `ignoreErrors` patterns in `phpstan.neon`.
211
+
212
+ ## Git-aware execution
213
+
214
+ By default, all tools only check files changed since the last commit.
215
+
216
+ | Flag | Effect |
217
+ |------------------------------|-----------------------------------------------|
218
+ | (default) | Only changed files (fast, for iterative work) |
219
+ | `--ignore-git` | All files (cache still applies) |
220
+ | `--clear-cache` | Changed files, but ignore cache |
221
+ | `--ignore-git --clear-cache` | Complete fresh run of all files |
222
+
@@ -98,419 +98,25 @@ actual paths in the current project; never assume `app/Modules/`.
98
98
  The file `.augment/templates/roadmaps.md` defines the canonical structure.
99
99
  **Always read it first** before creating or modifying roadmaps.
100
100
 
101
- ## Roadmap structure
102
101
 
103
- Every roadmap follows this structure:
102
+ ## Modes
104
103
 
105
- ```markdown
106
- # Roadmap: {Short descriptive title}
104
+ This skill is a router head. The dashboard-sync obligation above, the procedure
105
+ skeleton, and the location table are true in every mode and stay here. The
106
+ per-mode procedure bodies live in `references/`; load the one the task calls
107
+ for, not the set.
107
108
 
108
- > {One sentence: What is the expected outcome?}
109
-
110
- ## Prerequisites
111
-
112
- - [ ] Read `AGENTS.md` and relevant docs
113
- - [ ] {specific prerequisites}
114
-
115
- ## Context
116
-
117
- {Why this roadmap exists. Which module/domain. Links to Jira tickets.}
118
-
119
- ## Phase 1: {Phase name}
120
-
121
- - [ ] **Step 1:** {Clear, actionable instruction}
122
- - [ ] **Step 2:** {Next step — reference files/classes}
123
- - [ ] ...
124
-
125
- ## Phase 2: {Phase name}
126
-
127
- - [ ] **Step 1:** {description}
128
- - [ ] ...
129
-
130
- ## Acceptance Criteria
131
-
132
- - [ ] {Observable, testable criterion}
133
- - [ ] All quality gates pass — the project's type-checker, auto-fixer, linter, and full test suite (see the `quality-tools` skill for stack-specific invocations)
134
-
135
- ## Notes
136
-
137
- {Edge cases, decisions, links}
138
- ```
139
-
140
- ## Key rules for roadmaps
141
-
142
- ### Checkboxes — mandatory, not decorative
143
-
144
- - **Every active roadmap MUST contain at least one `- [ ]` per non-intro phase.** Decision tables, ICE matrices, and block-sequencing tables are valid rationale, but they do not satisfy this rule on their own — pair them with a `## Phase N` or `## Implementation Checklist` section whose checkboxes execute the decision. A roadmap without checkboxes is invisible to `agents/roadmaps-progress.md` and violates [`roadmap-progress-sync`](../../rules/roadmap-progress-sync.md) Iron Law #2.
145
- - Every actionable step uses `- [ ]` (unchecked) or `- [x]` (completed).
146
- - Mark steps as `[x]` immediately after completing them.
147
- - Never remove completed steps — they serve as history.
148
- - **Status is binary: `ready` (default, implicit) or `draft`.** New roadmaps are created **ready** unless the user explicitly says otherwise — `ready` is implicit and need not be written. A roadmap that is still being authored, awaiting upstream decisions, or capturing options without a worked plan declares `status: draft` in YAML frontmatter at the top of the file. Drafts are hidden from `agents/roadmaps-progress.md` until the flag is removed or flipped to `ready`. There are no other status values; legacy banners (`**Status: directional**`, `Status: capture-only`, `mode: feedback`) are removed.
149
-
150
- ### Awaiting evidence — a blocker entry, never a new glyph
151
-
152
- - Waiting on **evidence that has not arrived** (soak still running, benchmark unfunded, adopter absent) is neither `[~]` nor `[-]`. Signal it with a structured `## Blockers` entry — five-field shape in [`templates/roadmaps.md` rule 20](../../agent-src/templates/roadmaps.md) — whose `Resolved when:` names the decidable signal ending the wait. The item stays `- [ ]` and points at it: `<!-- blocked-by: <id> -->`.
153
- - **No new glyph.** `[ ]` + `blocked-by:` = open, awaiting named evidence (stays active) · `[~]` = deferred by decision (bars archival, Iron Law 3) · `[-]` = cancelled with a reason (does not bar it). A fifth state buys nothing the entry above does not already carry.
154
-
155
- ### Phases
156
-
157
- - Group related steps into phases (e.g. "Preparation", "Migration", "Cleanup").
158
- - Complete one phase before starting the next (unless steps are independent).
159
- - After completing a phase, summarize what was done.
160
-
161
- ### Quality gates
162
-
163
- Every roadmap implicitly includes the project's quality pipeline
164
- (static analysis, autofixes, tests). Whether the agent runs it locally
165
- at all is gated by `quality.local_auto_run`: `false` or missing (the
166
- default) → the agent never runs the pipeline locally; the user runs it
167
- manually and remote CI on the PR is the authoritative gate (run-end
168
- report: *"quality gates delegated to remote CI"*; new-gate carve-out
169
- steps still run once). When `local_auto_run: true`, **when** the
170
- pipeline runs during `/roadmap:process-step|phase|full` is controlled
171
- by `roadmap.quality_cadence` in `.agent-settings.yml`:
172
-
173
- | Cadence | Pipeline runs (`local_auto_run: true` only) | Trade-off |
174
- |---|---|---|
175
- | `end_of_roadmap` (default) | Once before archiving | Fastest, fewest tokens; errors compound across phases |
176
- | `per_phase` | After every completed phase + final | Balanced; catches drift at phase boundaries |
177
- | `per_step` | After every completed step + final | Legacy verbose; highest token cost |
178
-
179
- The default is `end_of_roadmap` because most steps are checkbox-only
180
- content edits and a final pipeline run is the cheapest way to satisfy
181
- `verify-before-complete`. Switch to `per_phase` for risky migrations or
182
- unfamiliar codebases.
183
-
184
- **Always-on, regardless of cadence:**
185
-
186
- - Step checkboxes flip `[ ] → [x]` and the dashboard regenerates **same
187
- response** (enforced by `roadmap-progress-sync`).
188
- - Before any "roadmap complete" claim or archival, the pipeline runs
189
- fresh (enforced by `verify-before-complete`).
190
-
191
- ### Step granularity
192
-
193
- - Each step should be completable in one session (< 1 hour of work).
194
- - If a step is too large, break it down into sub-steps.
195
- - Steps should reference specific files/classes when possible.
196
-
197
- ### Language
198
-
199
- - Roadmap files are written in **English** (per project convention).
200
- - Step descriptions should be precise and actionable, not vague.
201
-
202
- ## Working with roadmaps
203
-
204
- ### Creating a roadmap
205
-
206
- 1. Ask the user for goal, context-create, and phases.
207
- 2. Use the template structure from `.augment/templates/roadmaps.md`.
208
- 3. Review with the user iteratively until approved.
209
- 4. **Branch & release questions — at most once, only if genuinely useful.**
210
- Default: stay on the current branch, no version numbers in the
211
- roadmap. Only propose a separate branch when there is concrete,
212
- evidence-based reason (e.g. risky migration benefits from a spike).
213
- Never include release versions, deprecation dates, or git tags in
214
- the roadmap text. If the user declines, do **not** re-propose during
215
- `/roadmap:process-*`. Decline = silence. See [`scope-control`](../../rules/scope-control.md#decline--silence--no-re-asking-on-the-same-task).
216
- 5. Save with a kebab-case filename (e.g. `optimize-webhook-jobs.md`).
217
- **Before writing**, scan the entire roadmap namespace for a
218
- collision — active, `archive/`, `skipped/`, and nested subdirs —
219
- with `find agents/roadmaps -type f -iname "<name>.md"`. If any
220
- hit comes back, stop and ask the user to rename, open the
221
- existing file, or abort. Never silently overwrite an archived
222
- or skipped roadmap. Detailed prompt in
223
- [`commands/roadmap/create.md`](../../commands/roadmap/create.md)
224
- step 6.
225
- 6. Regenerate the dashboard so the new roadmap is included.
226
-
227
- ### Executing a roadmap
228
-
229
- 0. Resolve the mode per `roadmap-process-loop` § 3a: suffix, frontmatter
230
- `execution.mode`, invocation form (absent = derived, not
231
- `interactive`). Under `/roadmap:process-*` the mode selects the
232
- interaction pattern via the run-start execution contract — see
233
- [`roadmap-execution-contract`](../../contexts/execution/roadmap-execution-contract.md).
234
- The manual flow below describes `interactive`; under `autonomous`
235
- / `phase-checkpoints` step 4's per-step ask is replaced by the
236
- accepted contract. **Mode never changes archival semantics** —
237
- glyph counting, the closure decision table, and the Iron Law 3
238
- deferred-resolution gate below apply identically in every mode.
239
- 1. Read the full roadmap.
240
- 2. Find the next unchecked step (`- [ ]`).
241
- 3. Summarize what needs to be done.
242
- 4. Ask the user before implementing (numbered options: implement / adjust / skip).
243
- 5. After implementation: mark `[x]`, run quality gates, then regenerate the dashboard.
244
- 6. Move to the next step.
245
-
246
- ### Resuming a roadmap
247
-
248
- When picking up a roadmap in a new session:
249
- 1. Read the roadmap to understand the full context.
250
- 2. Check which steps are already completed (`[x]`).
251
- 3. Summarize progress to the user.
252
- 4. Continue from the next open step.
253
-
254
- ### Completing, archiving & skipping a roadmap
255
-
256
- Every roadmap ends in exactly one of four states:
257
-
258
- | State | Folder | Trigger |
109
+ | Task | Mode body | Covers |
259
110
  |---|---|---|
260
- | **Active** | `agents/roadmaps/` | Work in progress or planned **and workable now** |
261
- | **Archived** | `agents/roadmaps/archive/` | Work was done (fully or partially) and no more work is planned |
262
- | **Skipped** | `agents/roadmaps/skipped/` | Decision against pursuit — superseded, scope rejected, wrong direction. Typically **0 items `[x]`** |
263
- | **Later** | `agents/roadmaps/later/` | Open work remains but is **blocked-for-later** — gated on an external trigger or a decision, **will resume** when unblocked. Set frontmatter `status: later` + a `Blocked until` / `Trigger` resume line. Excluded from the dashboard and `/roadmap:process-*` (parked, not abandoned). |
264
-
265
- **Active vs. Later — the test:** can the agent make progress on this roadmap *now*, autonomously? If every open item is gated on something outside this roadmap (a real consumer repo, a benchmark re-open, host-model access, a kernel soak, a pruning track, a human decision), it is **not** active — move it to `later/` with its resume condition. A blocked roadmap left in the active tree silently lies to the dashboard and to `/roadmap:process-*`, which will keep trying to execute it. The `lint_roadmap_later_disposition` guard enforces the placement↔`status: later` contract.
266
-
267
- After the last step of a roadmap is done, check completion status:
268
-
269
- 0. **Completion review (Gate R2)** — last open item done → findings BEFORE
270
- fixes, before any archival decision:
271
- - `dispatch_r2_reviewer` builds the reviewer input; a **fresh subagent
272
- without the implementation context** writes
273
- `agents/evidence/reviews/<slug>.findings.md`.
274
- - Work findings in priority order — each ends `fixed` / `accepted-risk` /
275
- `deferred`. No code surface → explicit skip, never silent.
276
- - Grammar, scope-hash binding, escape hatch:
277
- [`plan-review-gates § 2`](../../../docs/contracts/plan-review-gates.md).
278
-
279
- 1. **Scan the file** for all checkbox markers: `- [x]`, `- [ ]`, `- [~]`, `- [-]`.
280
- 2. **Classify:**
281
- - `[x]` = completed
282
- - `[ ]` = open (not done)
283
- - `[~]` = deferred (intentionally pushed out, may come back)
284
- - `[-]` = cancelled (individual item dropped)
285
-
286
- 3. **Decision rule — `count_open == 0` means the roadmap has no active
287
- work left. `[x]`, `[-]` are final states. `[~]` deferred items
288
- block silent closure — they carry plans the user has not consented
289
- to drop (enforced by [`roadmap-progress-sync`](../../rules/roadmap-progress-sync.md)
290
- Iron Law 3).**
291
-
292
- | count_x | count_open | count_deferred | count_cancelled | Action |
293
- |---|---|---|---|---|
294
- | ≥ 1 | 0 | 0 | 0 | **Auto-archive** (silent) — pure completion |
295
- | ≥ 1 | 0 | 0 | ≥ 1 | **Auto-archive** (silent) — done with explicit drops |
296
- | ≥ 1 | 0 | ≥ 1 | ≥ 0 | **STOP — Iron Law 3 flow.** Surface deferred items, present the options, resolve by the preservation test (council where the item survives, user where it does not). See step 4b. |
297
- | 0 | 0 | ≥ 1 | ≥ 0 | **STOP — Iron Law 3 flow.** Was this a scope-drop or deferred-to-later? Same options and same routing as 4b. |
298
- | 0 | 0 | 0 | ≥ 1 | **Auto-skip** (silent) — no work, all cancelled |
299
- | ≥ 0 | ≥ 1 | ≥ 0 | ≥ 0 | **Ask the user** — open work remains (step 4a) |
300
-
301
- Show on auto-move:
302
-
303
- - Archive: `✅ Roadmap archived → agents/roadmaps/archive/{filename}`
304
- - Skip: `⏭️ Roadmap skipped → agents/roadmaps/skipped/{filename}`
305
- - Later: `🕒 Roadmap parked for later → agents/roadmaps/later/{filename}`
306
-
307
- `[-]` cancelled items remain searchable inside the archived file —
308
- they were explicit drops. `[~]` deferred items, by contrast, may
309
- not silently follow the file into archive: they represent work the
310
- user planned and would lose track of. Step 4b is the gate.
311
-
312
- 4a. **Open items remain (`count_open ≥ 1`)** → **Ask the user.** Show what's incomplete:
313
-
314
- ```
315
- 📋 Roadmap completion check:
316
-
317
- ✅ Completed: {count_x}
318
- ⬜ Open: {count_open} — {list of open items, 1 line each}
319
- ⏭️ Deferred: {count_deferred} — {list of deferred items, 1 line each}
320
- ❌ Cancelled: {count_cancelled} — {list of cancelled items, 1 line each}
321
-
322
- > 1. Archive — mark open items as cancelled [-] and archive now
323
- > 2. Keep active — I want to finish the open items
324
- > 3. Mark open items as deferred [~] and archive (triggers Iron Law 3 flow)
325
- > 4. Skip — move to skipped/ (no meaningful work done, not pursuing)
326
- > 5. Later — park in later/ (open work is blocked on an external trigger / decision but will resume)
327
- ```
328
-
329
- Option 4 is only appropriate when `count_x == 0` or the completed items were
330
- trivial (e.g. prerequisites only). If the user picks 4 despite meaningful work
331
- being done, confirm once — archive is usually the right choice. Picking option 3
332
- does NOT archive immediately — it converts open → deferred and re-enters the
333
- `count_deferred > 0` branch, which runs step 4b.
334
-
335
- **Option 5 (Later) is the right choice when the open items are real but
336
- cannot proceed now** — gated on an external trigger or a decision. Set the
337
- roadmap's frontmatter `status: later`, ensure it carries a `Blocked until` /
338
- `Trigger` resume line, `git mv` it to `agents/roadmaps/later/`, migrate any
339
- inbound references to the new path, and regenerate the dashboard. The open
340
- `[ ]` items stay open (they are not cancelled or deferred) — the roadmap is
341
- parked whole, ready to resume when the trigger fires. **Roadmaps with open
342
- tasks deferred for later are always moved to `later/`**, never left to rot in
343
- the active tree.
344
-
345
- 4b. **Deferred items present (`count_deferred ≥ 1`, `count_open == 0`)** — Iron Law 3 flow.
346
- Archive **blocked** until resolved. WHO resolves is the preservation test in
347
- [`roadmap-progress-sync § Who resolves it`](../../rules/roadmap-progress-sync.md),
348
- never the mode — same menu either way, only the resolver differs:
349
-
350
- - **1, 2, 4** keep the item alive → **council**, recorded at the item (2 only
351
- if the follow-up lands in the SAME change).
352
- - **3, 5** drop or weaken it → **user**, always. In doubt: user.
353
-
354
- ```
355
- 📋 Roadmap closure check — deferred items must resolve before archive:
356
-
357
- ✅ Completed: {count_x}
358
- ⏭️ Deferred: {count_deferred}
359
- {for each deferred item:}
360
- - Phase {N}: {step text} {<!-- deferred: <annotation> --> if present}
361
-
362
- These items carry plans you would lose to a silent archive.
363
-
364
- > 1. Spawn follow-up roadmap as DRAFT
365
- > → agents/roadmaps/road-to-{auto-slug}.md, status: draft,
366
- > parent_roadmap: {this-slug}. Hidden from the dashboard until
367
- > you flip status to "ready".
368
- > 2. Spawn follow-up roadmap as READY (with blocked-until note)
369
- > → status: ready (default), parent_roadmap: {this-slug}, plus
370
- > a `> Blocked until <condition>` line in the body. Visible
371
- > in the dashboard; execution waits on the condition.
372
- > 3. Keep deferred items in this archive — confirm "no follow-up"
373
- > is an intentional drop. Items stay searchable in archive/.
374
- > 4. Restore selected items to [ ] — finish them here before archive.
375
- > 5. Convert selected items to [-] cancelled — drop with rationale.
376
- ```
377
-
378
- Picks 1 or 2 → see "Spawn follow-up from deferred items" procedure below.
379
- Picks 3, 4, or 5 → apply the change in this roadmap; re-evaluate the
380
- decision table; archive when the gate clears.
381
-
382
- ### Spawn follow-up from deferred items (procedure)
383
-
384
- When the user picks option 1 or 2 in step 4b:
385
-
386
- 1. **Derive the slug.** Default `<parent-slug>-followup` (e.g.
387
- `road-to-x.md` → `road-to-x-followup.md`). If a user-supplied
388
- slug was given in the picker, use that. Avoid collisions with
389
- `agents/roadmaps/` (active + `archive/` + `skipped/`).
390
-
391
- 2. **Write the new file** at `agents/roadmaps/<slug>.md`:
392
-
393
- ```markdown
394
- ---
395
- complexity: lightweight # bump if the parent was structural
396
- status: draft # option 1; omit for option 2 (= ready)
397
- parent_roadmap: <parent-slug> # back-link to source
398
- ---
399
-
400
- # Roadmap: Follow-up to <parent-title>
401
-
402
- > <One sentence stating the carried-over outcome.>
403
-
404
- ## Context
405
-
406
- This roadmap collects items deferred from
407
- [`agents/roadmaps/archive/<parent-slug>.md`](archive/<parent-slug>.md).
408
- See the parent's archive entry for the original rationale.
409
-
410
- ## Prerequisites
411
-
412
- - [ ] Read `AGENTS.md` and the parent archive entry.
413
- {parent prerequisites still relevant, copied verbatim}
414
-
415
- <!-- Option 2 only — body note, NOT a frontmatter key: -->
416
- > Blocked until <condition>. Execution starts when the condition clears.
417
-
418
- ## Phase 1: <name carried from parent>
419
-
420
- - [ ] {deferred step text, copied verbatim with parent-phase pointer}
421
- {repeat per deferred item, regrouped by parent phase}
422
-
423
- ## Acceptance Criteria
424
-
425
- - [ ] {restate or adjust per the deferred scope}
426
- - [ ] All quality gates pass — see `quality-tools`.
427
- ```
428
-
429
- 3. **In the parent roadmap** (still in the working tree), append a
430
- line at the bottom (above any final `---`):
431
-
432
- ```
433
- <!-- Deferred items migrated to agents/roadmaps/<followup-slug>.md on YYYY-MM-DD -->
434
- ```
435
-
436
- Do **not** delete the `[~]` lines — keep them visible in the
437
- archived parent so the trail stays grep-able. The follow-up
438
- carries forward the executable copy.
439
-
440
- 4. **Regenerate the dashboard.** The follow-up appears (draft hidden,
441
- ready visible) and the parent — once moved — drops off.
442
-
443
- 5. **Archive the parent** (`git mv` → `archive/`) and regen one
444
- more time per [`roadmap-progress-sync`](../../rules/roadmap-progress-sync.md)
445
- Iron Laws 1 + 3.
446
-
447
- 5. **Move the file** with `git mv` so history is preserved:
448
-
449
- ```bash
450
- # Archive (work was done)
451
- git mv agents/roadmaps/{file} agents/roadmaps/archive/{file}
452
-
453
- # Skipped (not pursuing)
454
- git mv agents/roadmaps/{file} agents/roadmaps/skipped/{file}
455
- ```
456
-
457
- 6. **Regenerate the dashboard** (see "Command" below). The moved roadmap is
458
- excluded from the active set once it sits in `archive/` or `skipped/`.
459
-
460
- ### When to use `skipped/` vs `archive/`
461
-
462
- | Situation | Destination |
463
- |---|---|
464
- | Finished all phases | `archive/` |
465
- | Finished some phases, rest deferred/cancelled on purpose | `archive/` |
466
- | Whole roadmap deferred or cancelled (no `[x]` at all) | `skipped/` |
467
- | Never started, scope decision reversed | `skipped/` |
468
- | Superseded by another roadmap | `skipped/` — add a pointer line at the top: `> Superseded by agents/roadmaps/{other}.md` |
469
- | Research proved the direction wrong | `skipped/` — add a 1-line reason at the top |
470
-
471
- If in doubt: archive beats skipped. `skipped/` is reserved for roadmaps where
472
- no meaningful work was invested and the scope itself was rejected.
473
-
474
- ## Progress dashboard — `agents/roadmaps-progress.md`
475
-
476
- A generated dashboard aggregates progress across every open roadmap. It sits at
477
- `agents/roadmaps-progress.md` (outside `roadmaps/` to keep the folder clean) and
478
- is rewritten by `.augment/scripts/update_roadmap_progress.ts`.
479
-
480
- **Always regenerate in the SAME response** after any of the following
481
- (enforced by [`roadmap-progress-sync`](../../rules/roadmap-progress-sync.md)):
482
-
483
- - Creating a new roadmap (`/roadmap:create`)
484
- - Marking a step `[x]`, `[~]`, or `[-]` during `/roadmap:process-*`
485
- - Archiving or moving a roadmap to `skipped/`
486
- - Adding, renaming, or removing a phase
487
-
488
- Command:
489
-
490
- ```bash
491
- ./agent-config roadmap:progress # rewrite the dashboard
492
- ./agent-config roadmap:progress-check # CI: fail if stale
493
- ```
494
-
495
- The `./agent-config` wrapper lives in the project root (written by the
496
- package installer, gitignored) and delegates to the master CLI inside
497
- `node_modules/@event4u/agent-config/` or `vendor/event4u/agent-config/`.
498
- No global tooling required.
499
-
500
- The dashboard is a **read-only snapshot**. Do not edit it by hand — regenerate it.
501
-
502
- ### Blockers on the dashboard
503
-
504
- The overview table's `Blocker` column counts each roadmap's open
505
- `## Blockers` entries (or the legacy `> Blocked until` note) and links
506
- to the per-roadmap breakdown, which lists every open blocker with
507
- owner, blocked scope, and full instructions. Authoring shape:
508
- [`templates/roadmaps.md` rule 20](../../agent-src/templates/roadmaps.md);
509
- authoring guidance: [`roadmap-writing § 5b`](../roadmap-writing/SKILL.md).
510
- Clearing a blocker flips its `Status: resolved` and regenerates the
511
- dashboard in the same reply, same cadence as a checkbox flip. The
512
- blocker entry is also the canonical **awaiting-evidence** signal —
513
- see [§ Awaiting evidence](#awaiting-evidence--a-blocker-entry-never-a-new-glyph).
111
+ | Author a roadmap — structure and the rules it must satisfy | [`references/authoring.md`](references/authoring.md) | The canonical structure block, checkbox semantics, awaiting-evidence as a blocker entry, phases, quality gates, step granularity, language |
112
+ | Create, execute, or resume a roadmap | [`references/lifecycle.md`](references/lifecycle.md) | Creating a roadmap, executing one step by step, resuming a partially-done one |
113
+ | Complete, archive, or skip a roadmap | [`references/archival.md`](references/archival.md) | The four end states, the archival sweep and its manual fallback, spawning a follow-up from deferred items, `skipped/` versus `archive/` |
114
+ | Regenerate or read the progress dashboard | [`references/dashboard.md`](references/dashboard.md) | The generated dashboard, its regeneration cadence, blockers on the dashboard |
115
+
116
+ Archival is the mode with the sharpest failure: an archive that buries deferred
117
+ work or open blockers is the thing the sweep refuses to do, so load
118
+ [`references/archival.md`](references/archival.md) before archiving anything
119
+ rather than working from memory of it.
514
120
 
515
121
  ## Rubric pass (optional, surfacing-only)
516
122