@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,226 @@
1
+ # roadmap-management — completing, archiving, skipping
2
+
3
+ > Mode body of the [`roadmap-management`](../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
+ ### Completing, archiving & skipping a roadmap
8
+
9
+ Every roadmap ends in exactly one of four states:
10
+
11
+ | State | Folder | Trigger |
12
+ |---|---|---|
13
+ | **Active** | `agents/roadmaps/` | Work in progress or planned **and workable now** |
14
+ | **Archived** | `agents/roadmaps/archive/` | Work was done (fully or partially) and no more work is planned |
15
+ | **Skipped** | `agents/roadmaps/skipped/` | Decision against pursuit — superseded, scope rejected, wrong direction. Typically **0 items `[x]`** |
16
+ | **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). |
17
+
18
+ **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.
19
+
20
+ After the last step of a roadmap is done, check completion status:
21
+
22
+ 0. **Completion review (Gate R2)** — last open item done → findings BEFORE
23
+ fixes, before any archival decision:
24
+ - `dispatch_r2_reviewer` builds the reviewer input; a **fresh subagent
25
+ without the implementation context** writes
26
+ `agents/evidence/reviews/<slug>.findings.md`.
27
+ - Work findings in priority order — each ends `fixed` / `accepted-risk` /
28
+ `deferred`. No code surface → explicit skip, never silent.
29
+ - Grammar, scope-hash binding, escape hatch:
30
+ [`plan-review-gates § 2`](../../../../docs/contracts/plan-review-gates.md).
31
+
32
+ 1. **Scan the file** for all checkbox markers: `- [x]`, `- [ ]`, `- [~]`, `- [-]`.
33
+ 2. **Classify:**
34
+ - `[x]` = completed
35
+ - `[ ]` = open (not done)
36
+ - `[~]` = deferred (intentionally pushed out, may come back)
37
+ - `[-]` = cancelled (individual item dropped)
38
+
39
+ 3. **Decision rule — `count_open == 0` means the roadmap has no active
40
+ work left. `[x]`, `[-]` are final states. `[~]` deferred items
41
+ block silent closure — they carry plans the user has not consented
42
+ to drop (enforced by [`roadmap-progress-sync`](../../rules/roadmap-progress-sync.md)
43
+ Iron Law 3).**
44
+
45
+ | count_x | count_open | count_deferred | count_cancelled | Action |
46
+ |---|---|---|---|---|
47
+ | ≥ 1 | 0 | 0 | 0 | **Auto-archive** (silent) — pure completion |
48
+ | ≥ 1 | 0 | 0 | ≥ 1 | **Auto-archive** (silent) — done with explicit drops |
49
+ | ≥ 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. |
50
+ | 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. |
51
+ | 0 | 0 | 0 | ≥ 1 | **Auto-skip** (silent) — no work, all cancelled |
52
+ | ≥ 0 | ≥ 1 | ≥ 0 | ≥ 0 | **Ask the user** — open work remains (step 4a) |
53
+
54
+ Show on auto-move:
55
+
56
+ - Archive: `✅ Roadmap archived → agents/roadmaps/archive/{filename}`
57
+ - Skip: `⏭️ Roadmap skipped → agents/roadmaps/skipped/{filename}`
58
+ - Later: `🕒 Roadmap parked for later → agents/roadmaps/later/{filename}`
59
+
60
+ `[-]` cancelled items remain searchable inside the archived file —
61
+ they were explicit drops. `[~]` deferred items, by contrast, may
62
+ not silently follow the file into archive: they represent work the
63
+ user planned and would lose track of. Step 4b is the gate.
64
+
65
+ 4a. **Open items remain (`count_open ≥ 1`)** → **Ask the user.** Show what's incomplete:
66
+
67
+ ```
68
+ 📋 Roadmap completion check:
69
+
70
+ ✅ Completed: {count_x}
71
+ ⬜ Open: {count_open} — {list of open items, 1 line each}
72
+ ⏭️ Deferred: {count_deferred} — {list of deferred items, 1 line each}
73
+ ❌ Cancelled: {count_cancelled} — {list of cancelled items, 1 line each}
74
+
75
+ > 1. Archive — mark open items as cancelled [-] and archive now
76
+ > 2. Keep active — I want to finish the open items
77
+ > 3. Mark open items as deferred [~] and archive (triggers Iron Law 3 flow)
78
+ > 4. Skip — move to skipped/ (no meaningful work done, not pursuing)
79
+ > 5. Later — park in later/ (open work is blocked on an external trigger / decision but will resume)
80
+ ```
81
+
82
+ Option 4 is only appropriate when `count_x == 0` or the completed items were
83
+ trivial (e.g. prerequisites only). If the user picks 4 despite meaningful work
84
+ being done, confirm once — archive is usually the right choice. Picking option 3
85
+ does NOT archive immediately — it converts open → deferred and re-enters the
86
+ `count_deferred > 0` branch, which runs step 4b.
87
+
88
+ **Option 5 (Later) is the right choice when the open items are real but
89
+ cannot proceed now** — gated on an external trigger or a decision. Set the
90
+ roadmap's frontmatter `status: later`, ensure it carries a `Blocked until` /
91
+ `Trigger` resume line, `git mv` it to `agents/roadmaps/later/`, migrate any
92
+ inbound references to the new path, and regenerate the dashboard. The open
93
+ `[ ]` items stay open (they are not cancelled or deferred) — the roadmap is
94
+ parked whole, ready to resume when the trigger fires. **Roadmaps with open
95
+ tasks deferred for later are always moved to `later/`**, never left to rot in
96
+ the active tree.
97
+
98
+ 4b. **Deferred items present (`count_deferred ≥ 1`, `count_open == 0`)** — Iron Law 3 flow.
99
+ Archive **blocked** until resolved. WHO resolves is the preservation test in
100
+ [`roadmap-progress-sync § Who resolves it`](../../rules/roadmap-progress-sync.md),
101
+ never the mode — same menu either way, only the resolver differs:
102
+
103
+ - **1, 2, 4** keep the item alive → **council**, recorded at the item (2 only
104
+ if the follow-up lands in the SAME change).
105
+ - **3, 5** drop or weaken it → **user**, always. In doubt: user.
106
+
107
+ ```
108
+ 📋 Roadmap closure check — deferred items must resolve before archive:
109
+
110
+ ✅ Completed: {count_x}
111
+ ⏭️ Deferred: {count_deferred}
112
+ {for each deferred item:}
113
+ - Phase {N}: {step text} {<!-- deferred: <annotation> --> if present}
114
+
115
+ These items carry plans you would lose to a silent archive.
116
+
117
+ > 1. Spawn follow-up roadmap as DRAFT
118
+ > → agents/roadmaps/road-to-{auto-slug}.md, status: draft,
119
+ > parent_roadmap: {this-slug}. Hidden from the dashboard until
120
+ > you flip status to "ready".
121
+ > 2. Spawn follow-up roadmap as READY (with blocked-until note)
122
+ > → status: ready (default), parent_roadmap: {this-slug}, plus
123
+ > a `> Blocked until <condition>` line in the body. Visible
124
+ > in the dashboard; execution waits on the condition.
125
+ > 3. Keep deferred items in this archive — confirm "no follow-up"
126
+ > is an intentional drop. Items stay searchable in archive/.
127
+ > 4. Restore selected items to [ ] — finish them here before archive.
128
+ > 5. Convert selected items to [-] cancelled — drop with rationale.
129
+ ```
130
+
131
+ Picks 1 or 2 → see "Spawn follow-up from deferred items" procedure below.
132
+ Picks 3, 4, or 5 → apply the change in this roadmap; re-evaluate the
133
+ decision table; archive when the gate clears.
134
+
135
+ ### Spawn follow-up from deferred items (procedure)
136
+
137
+ When the user picks option 1 or 2 in step 4b:
138
+
139
+ 1. **Derive the slug.** Default `<parent-slug>-followup` (e.g.
140
+ `road-to-x.md` → `road-to-x-followup.md`). If a user-supplied
141
+ slug was given in the picker, use that. Avoid collisions with
142
+ `agents/roadmaps/` (active + `archive/` + `skipped/`).
143
+
144
+ 2. **Write the new file** at `agents/roadmaps/<slug>.md`:
145
+
146
+ ```markdown
147
+ ---
148
+ complexity: lightweight # bump if the parent was structural
149
+ status: draft # option 1; omit for option 2 (= ready)
150
+ parent_roadmap: <parent-slug> # back-link to source
151
+ ---
152
+
153
+ # Roadmap: Follow-up to <parent-title>
154
+
155
+ > <One sentence stating the carried-over outcome.>
156
+
157
+ ## Context
158
+
159
+ This roadmap collects items deferred from
160
+ [`agents/roadmaps/archive/<parent-slug>.md`](archive/<parent-slug>.md).
161
+ See the parent's archive entry for the original rationale.
162
+
163
+ ## Prerequisites
164
+
165
+ - [ ] Read `AGENTS.md` and the parent archive entry.
166
+ {parent prerequisites still relevant, copied verbatim}
167
+
168
+ <!-- Option 2 only — body note, NOT a frontmatter key: -->
169
+ > Blocked until <condition>. Execution starts when the condition clears.
170
+
171
+ ## Phase 1: <name carried from parent>
172
+
173
+ - [ ] {deferred step text, copied verbatim with parent-phase pointer}
174
+ {repeat per deferred item, regrouped by parent phase}
175
+
176
+ ## Acceptance Criteria
177
+
178
+ - [ ] {restate or adjust per the deferred scope}
179
+ - [ ] All quality gates pass — see `quality-tools`.
180
+ ```
181
+
182
+ 3. **In the parent roadmap** (still in the working tree), append a
183
+ line at the bottom (above any final `---`):
184
+
185
+ ```
186
+ <!-- Deferred items migrated to agents/roadmaps/<followup-slug>.md on YYYY-MM-DD -->
187
+ ```
188
+
189
+ Do **not** delete the `[~]` lines — keep them visible in the
190
+ archived parent so the trail stays grep-able. The follow-up
191
+ carries forward the executable copy.
192
+
193
+ 4. **Regenerate the dashboard.** The follow-up appears (draft hidden,
194
+ ready visible) and the parent — once moved — drops off.
195
+
196
+ 5. **Archive the parent** (`git mv` → `archive/`) and regen one
197
+ more time per [`roadmap-progress-sync`](../../rules/roadmap-progress-sync.md)
198
+ Iron Laws 1 + 3.
199
+
200
+ 5. **Move the file** with `git mv` so history is preserved:
201
+
202
+ ```bash
203
+ # Archive (work was done)
204
+ git mv agents/roadmaps/{file} agents/roadmaps/archive/{file}
205
+
206
+ # Skipped (not pursuing)
207
+ git mv agents/roadmaps/{file} agents/roadmaps/skipped/{file}
208
+ ```
209
+
210
+ 6. **Regenerate the dashboard** (see "Command" below). The moved roadmap is
211
+ excluded from the active set once it sits in `archive/` or `skipped/`.
212
+
213
+ ### When to use `skipped/` vs `archive/`
214
+
215
+ | Situation | Destination |
216
+ |---|---|
217
+ | Finished all phases | `archive/` |
218
+ | Finished some phases, rest deferred/cancelled on purpose | `archive/` |
219
+ | Whole roadmap deferred or cancelled (no `[x]` at all) | `skipped/` |
220
+ | Never started, scope decision reversed | `skipped/` |
221
+ | Superseded by another roadmap | `skipped/` — add a pointer line at the top: `> Superseded by agents/roadmaps/{other}.md` |
222
+ | Research proved the direction wrong | `skipped/` — add a 1-line reason at the top |
223
+
224
+ If in doubt: archive beats skipped. `skipped/` is reserved for roadmaps where
225
+ no meaningful work was invested and the scope itself was rejected.
226
+
@@ -0,0 +1,107 @@
1
+ # roadmap-management — authoring a roadmap
2
+
3
+ > Mode body of the [`roadmap-management`](../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
+ ## Roadmap structure
8
+
9
+ Every roadmap follows this structure:
10
+
11
+ ```markdown
12
+ # Roadmap: {Short descriptive title}
13
+
14
+ > {One sentence: What is the expected outcome?}
15
+
16
+ ## Prerequisites
17
+
18
+ - [ ] Read `AGENTS.md` and relevant docs
19
+ - [ ] {specific prerequisites}
20
+
21
+ ## Context
22
+
23
+ {Why this roadmap exists. Which module/domain. Links to Jira tickets.}
24
+
25
+ ## Phase 1: {Phase name}
26
+
27
+ - [ ] **Step 1:** {Clear, actionable instruction}
28
+ - [ ] **Step 2:** {Next step — reference files/classes}
29
+ - [ ] ...
30
+
31
+ ## Phase 2: {Phase name}
32
+
33
+ - [ ] **Step 1:** {description}
34
+ - [ ] ...
35
+
36
+ ## Acceptance Criteria
37
+
38
+ - [ ] {Observable, testable criterion}
39
+ - [ ] 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)
40
+
41
+ ## Notes
42
+
43
+ {Edge cases, decisions, links}
44
+ ```
45
+
46
+ ## Key rules for roadmaps
47
+
48
+ ### Checkboxes — mandatory, not decorative
49
+
50
+ - **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.
51
+ - Every actionable step uses `- [ ]` (unchecked) or `- [x]` (completed).
52
+ - Mark steps as `[x]` immediately after completing them.
53
+ - Never remove completed steps — they serve as history.
54
+ - **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.
55
+
56
+ ### Awaiting evidence — a blocker entry, never a new glyph
57
+
58
+ - 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> -->`.
59
+ - **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.
60
+
61
+ ### Phases
62
+
63
+ - Group related steps into phases (e.g. "Preparation", "Migration", "Cleanup").
64
+ - Complete one phase before starting the next (unless steps are independent).
65
+ - After completing a phase, summarize what was done.
66
+
67
+ ### Quality gates
68
+
69
+ Every roadmap implicitly includes the project's quality pipeline
70
+ (static analysis, autofixes, tests). Whether the agent runs it locally
71
+ at all is gated by `quality.local_auto_run`: `false` or missing (the
72
+ default) → the agent never runs the pipeline locally; the user runs it
73
+ manually and remote CI on the PR is the authoritative gate (run-end
74
+ report: *"quality gates delegated to remote CI"*; new-gate carve-out
75
+ steps still run once). When `local_auto_run: true`, **when** the
76
+ pipeline runs during `/roadmap:process-step|phase|full` is controlled
77
+ by `roadmap.quality_cadence` in `.agent-settings.yml`:
78
+
79
+ | Cadence | Pipeline runs (`local_auto_run: true` only) | Trade-off |
80
+ |---|---|---|
81
+ | `end_of_roadmap` (default) | Once before archiving | Fastest, fewest tokens; errors compound across phases |
82
+ | `per_phase` | After every completed phase + final | Balanced; catches drift at phase boundaries |
83
+ | `per_step` | After every completed step + final | Legacy verbose; highest token cost |
84
+
85
+ The default is `end_of_roadmap` because most steps are checkbox-only
86
+ content edits and a final pipeline run is the cheapest way to satisfy
87
+ `verify-before-complete`. Switch to `per_phase` for risky migrations or
88
+ unfamiliar codebases.
89
+
90
+ **Always-on, regardless of cadence:**
91
+
92
+ - Step checkboxes flip `[ ] → [x]` and the dashboard regenerates **same
93
+ response** (enforced by `roadmap-progress-sync`).
94
+ - Before any "roadmap complete" claim or archival, the pipeline runs
95
+ fresh (enforced by `verify-before-complete`).
96
+
97
+ ### Step granularity
98
+
99
+ - Each step should be completable in one session (< 1 hour of work).
100
+ - If a step is too large, break it down into sub-steps.
101
+ - Steps should reference specific files/classes when possible.
102
+
103
+ ### Language
104
+
105
+ - Roadmap files are written in **English** (per project convention).
106
+ - Step descriptions should be precise and actionable, not vague.
107
+
@@ -0,0 +1,47 @@
1
+ # roadmap-management — progress dashboard
2
+
3
+ > Mode body of the [`roadmap-management`](../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
+ ## Progress dashboard — `agents/roadmaps-progress.md`
8
+
9
+ A generated dashboard aggregates progress across every open roadmap. It sits at
10
+ `agents/roadmaps-progress.md` (outside `roadmaps/` to keep the folder clean) and
11
+ is rewritten by `.augment/scripts/update_roadmap_progress.ts`.
12
+
13
+ **Always regenerate in the SAME response** after any of the following
14
+ (enforced by [`roadmap-progress-sync`](../../rules/roadmap-progress-sync.md)):
15
+
16
+ - Creating a new roadmap (`/roadmap:create`)
17
+ - Marking a step `[x]`, `[~]`, or `[-]` during `/roadmap:process-*`
18
+ - Archiving or moving a roadmap to `skipped/`
19
+ - Adding, renaming, or removing a phase
20
+
21
+ Command:
22
+
23
+ ```bash
24
+ ./agent-config roadmap:progress # rewrite the dashboard
25
+ ./agent-config roadmap:progress-check # CI: fail if stale
26
+ ```
27
+
28
+ The `./agent-config` wrapper lives in the project root (written by the
29
+ package installer, gitignored) and delegates to the master CLI inside
30
+ `node_modules/@event4u/agent-config/` or `vendor/event4u/agent-config/`.
31
+ No global tooling required.
32
+
33
+ The dashboard is a **read-only snapshot**. Do not edit it by hand — regenerate it.
34
+
35
+ ### Blockers on the dashboard
36
+
37
+ The overview table's `Blocker` column counts each roadmap's open
38
+ `## Blockers` entries (or the legacy `> Blocked until` note) and links
39
+ to the per-roadmap breakdown, which lists every open blocker with
40
+ owner, blocked scope, and full instructions. Authoring shape:
41
+ [`templates/roadmaps.md` rule 20](../../agent-src/templates/roadmaps.md);
42
+ authoring guidance: [`roadmap-writing § 5b`](../roadmap-writing/SKILL.md).
43
+ Clearing a blocker flips its `Status: resolved` and regenerates the
44
+ dashboard in the same reply, same cadence as a checkbox flip. The
45
+ blocker entry is also the canonical **awaiting-evidence** signal —
46
+ see [§ Awaiting evidence](authoring.md#awaiting-evidence--a-blocker-entry-never-a-new-glyph).
47
+
@@ -0,0 +1,58 @@
1
+ # roadmap-management — creating, executing, resuming
2
+
3
+ > Mode body of the [`roadmap-management`](../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
+ ## Working with roadmaps
8
+
9
+ ### Creating a roadmap
10
+
11
+ 1. Ask the user for goal, context-create, and phases.
12
+ 2. Use the template structure from `.augment/templates/roadmaps.md`.
13
+ 3. Review with the user iteratively until approved.
14
+ 4. **Branch & release questions — at most once, only if genuinely useful.**
15
+ Default: stay on the current branch, no version numbers in the
16
+ roadmap. Only propose a separate branch when there is concrete,
17
+ evidence-based reason (e.g. risky migration benefits from a spike).
18
+ Never include release versions, deprecation dates, or git tags in
19
+ the roadmap text. If the user declines, do **not** re-propose during
20
+ `/roadmap:process-*`. Decline = silence. See [`scope-control`](../../rules/scope-control.md#decline--silence--no-re-asking-on-the-same-task).
21
+ 5. Save with a kebab-case filename (e.g. `optimize-webhook-jobs.md`).
22
+ **Before writing**, scan the entire roadmap namespace for a
23
+ collision — active, `archive/`, `skipped/`, and nested subdirs —
24
+ with `find agents/roadmaps -type f -iname "<name>.md"`. If any
25
+ hit comes back, stop and ask the user to rename, open the
26
+ existing file, or abort. Never silently overwrite an archived
27
+ or skipped roadmap. Detailed prompt in
28
+ [`commands/roadmap/create.md`](../../commands/roadmap/create.md)
29
+ step 6.
30
+ 6. Regenerate the dashboard so the new roadmap is included.
31
+
32
+ ### Executing a roadmap
33
+
34
+ 0. Resolve the mode per `roadmap-process-loop` § 3a: suffix, frontmatter
35
+ `execution.mode`, invocation form (absent = derived, not
36
+ `interactive`). Under `/roadmap:process-*` the mode selects the
37
+ interaction pattern via the run-start execution contract — see
38
+ [`roadmap-execution-contract`](../../contexts/execution/roadmap-execution-contract.md).
39
+ The manual flow below describes `interactive`; under `autonomous`
40
+ / `phase-checkpoints` step 4's per-step ask is replaced by the
41
+ accepted contract. **Mode never changes archival semantics** —
42
+ glyph counting, the closure decision table, and the Iron Law 3
43
+ deferred-resolution gate below apply identically in every mode.
44
+ 1. Read the full roadmap.
45
+ 2. Find the next unchecked step (`- [ ]`).
46
+ 3. Summarize what needs to be done.
47
+ 4. Ask the user before implementing (numbered options: implement / adjust / skip).
48
+ 5. After implementation: mark `[x]`, run quality gates, then regenerate the dashboard.
49
+ 6. Move to the next step.
50
+
51
+ ### Resuming a roadmap
52
+
53
+ When picking up a roadmap in a new session:
54
+ 1. Read the roadmap to understand the full context.
55
+ 2. Check which steps are already completed (`[x]`).
56
+ 3. Summarize progress to the user.
57
+ 4. Continue from the next open step.
58
+
@@ -62,6 +62,14 @@ Focus on: attack surface, trusting user input, authorization gaps.
62
62
  → For PHP / Laravel specifics (auth helpers, mass assignment, Blade escaping, CSRF middleware): see guideline `docs/guidelines/php/security.md`.
63
63
  → For other stacks, follow the framework's hardening guide and the carve-outs above.
64
64
 
65
+ ### Crypto, password storage, certificates — route, do not guess
66
+
67
+ This skill carries no cryptographic parameter, key size, work factor, cipher
68
+ suite, or TLS version floor: such a value is authoritative-looking long after it stops
69
+ being true. Take it from <https://cheatsheetseries.owasp.org/> at the moment you
70
+ need it — never from memory, never from this file. Rationale and reopening
71
+ condition: [ADR-238](../../../docs/decisions/ADR-238-security-content-routes-to-external-authority.md).
72
+
65
73
  ### Validate
66
74
 
67
75
  - Verify all user input is validated at the boundary via the framework's primitive — never trust raw request data.
@@ -120,6 +120,17 @@ Worked example (fail-open): `if (!$gate->check($user)) { … }` wrapped in a
120
120
  grants access. Finding shape: Category *Insecure defaults*, Evidence the
121
121
  catch block `file:line`, Fix *fail closed — rethrow or deny on gate error*.
122
122
 
123
+ ### 3b. Out of scope — route, do not guess
124
+
125
+ The table above names vulnerability **classes**, which are stable. This package
126
+ carries no cryptographic parameter, key size, work factor, cipher suite, or TLS
127
+ version floor: a value copied here reads authoritative long after it stops being
128
+ true. Report the finding, route the fix to
129
+ <https://cheatsheetseries.owasp.org/> — Cryptographic Storage, Transport Layer
130
+ Security, Password Storage, XML External Entity Prevention — and never name a
131
+ value from memory. Rationale and reopening condition:
132
+ [ADR-238](../../../docs/decisions/ADR-238-security-content-routes-to-external-authority.md).
133
+
123
134
  ### 4. Framework-specific checks
124
135
 
125
136
  → Laravel-specific checks: see [`laravel`](../laravel/SKILL.md) § Security audit checks.
@@ -178,4 +189,4 @@ reaches it"). An audit that rejects nothing has usually skipped the gate.
178
189
 
179
190
  ## See also
180
191
 
181
- - [`docs/threat-model.md`](../../docs/threat-model.md) — package attack surface and trust boundary documentation.
192
+ - [`docs/threat-model.md`](../../../docs/threat-model.md) — package attack surface and trust boundary documentation.