@event4u/agent-config 1.20.0 → 1.22.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 (268) hide show
  1. package/.agent-src/commands/agents.md +1 -1
  2. package/.agent-src/commands/bug-fix.md +2 -1
  3. package/.agent-src/commands/bug-investigate.md +3 -2
  4. package/.agent-src/commands/challenge-me/vision.md +348 -0
  5. package/.agent-src/commands/challenge-me/with-docs.md +333 -0
  6. package/.agent-src/commands/challenge-me.md +61 -0
  7. package/.agent-src/commands/chat-history/import.md +60 -64
  8. package/.agent-src/commands/compress.md +12 -0
  9. package/.agent-src/commands/context/create.md +2 -2
  10. package/.agent-src/commands/context.md +1 -1
  11. package/.agent-src/commands/copilot-agents.md +1 -1
  12. package/.agent-src/commands/council/default.md +69 -10
  13. package/.agent-src/commands/council.md +1 -1
  14. package/.agent-src/commands/create-pr.md +7 -3
  15. package/.agent-src/commands/e2e-heal.md +1 -1
  16. package/.agent-src/commands/e2e-plan.md +1 -1
  17. package/.agent-src/commands/feature/dev.md +3 -3
  18. package/.agent-src/commands/feature.md +1 -1
  19. package/.agent-src/commands/fix/seeder.md +2 -2
  20. package/.agent-src/commands/fix.md +1 -1
  21. package/.agent-src/commands/grill-me.md +38 -0
  22. package/.agent-src/commands/jira-ticket.md +1 -1
  23. package/.agent-src/commands/judge/steps.md +1 -1
  24. package/.agent-src/commands/judge.md +2 -2
  25. package/.agent-src/commands/memory.md +1 -1
  26. package/.agent-src/commands/mode.md +5 -5
  27. package/.agent-src/commands/module.md +1 -1
  28. package/.agent-src/commands/onboard.md +4 -4
  29. package/.agent-src/commands/optimize/augmentignore.md +1 -1
  30. package/.agent-src/commands/optimize-prompt.md +61 -0
  31. package/.agent-src/commands/optimize.md +1 -1
  32. package/.agent-src/commands/override.md +1 -1
  33. package/.agent-src/commands/review-changes.md +1 -1
  34. package/.agent-src/commands/review-routing.md +1 -1
  35. package/.agent-src/commands/roadmap/ai-council.md +183 -0
  36. package/.agent-src/commands/roadmap/create.md +6 -1
  37. package/.agent-src/commands/roadmap/process-full.md +58 -0
  38. package/.agent-src/commands/roadmap/process-phase.md +69 -0
  39. package/.agent-src/commands/roadmap/process-step.md +57 -0
  40. package/.agent-src/commands/roadmap.md +45 -17
  41. package/.agent-src/commands/set-cost-profile.md +3 -3
  42. package/.agent-src/commands/sync-agent-settings.md +2 -2
  43. package/.agent-src/commands/tests/create.md +2 -2
  44. package/.agent-src/commands/tests.md +1 -1
  45. package/.agent-src/commands/threat-model.md +5 -4
  46. package/.agent-src/contexts/augment-infrastructure.md +1 -1
  47. package/.agent-src/contexts/authority/commit-mechanics.md +14 -1
  48. package/.agent-src/contexts/authority/destructive-mechanics.md +14 -1
  49. package/.agent-src/contexts/authority/scope-mechanics.md +5 -0
  50. package/.agent-src/contexts/communication/rules-auto/guidelines-mechanics.md +76 -0
  51. package/.agent-src/contexts/communication/rules-auto/slash-command-routing-policy-mechanics.md +54 -19
  52. package/.agent-src/contexts/communication/rules-auto/think-before-action-mechanics.md +98 -0
  53. package/.agent-src/contexts/communication/rules-auto/token-efficiency-mechanics.md +93 -0
  54. package/.agent-src/contexts/communication/rules-auto/user-interaction-mechanics.md +128 -5
  55. package/.agent-src/contexts/execution/autonomy-mechanics.md +44 -0
  56. package/.agent-src/contexts/execution/roadmap-process-loop.md +125 -0
  57. package/.agent-src/contexts/model-recommendations.md +2 -2
  58. package/.agent-src/contexts/override-system.md +1 -1
  59. package/.agent-src/contexts/skills-and-commands.md +1 -1
  60. package/.agent-src/personas/product-owner.md +2 -2
  61. package/.agent-src/personas/qa.md +1 -1
  62. package/.agent-src/rules/agent-authority.md +5 -6
  63. package/.agent-src/rules/agent-docs.md +11 -53
  64. package/.agent-src/rules/analysis-skill-routing.md +10 -40
  65. package/.agent-src/rules/architecture.md +6 -1
  66. package/.agent-src/rules/artifact-drafting-protocol.md +5 -0
  67. package/.agent-src/rules/artifact-engagement-recording.md +23 -59
  68. package/.agent-src/rules/ask-when-uncertain.md +24 -47
  69. package/.agent-src/rules/augment-portability.md +14 -62
  70. package/.agent-src/rules/augment-source-of-truth.md +10 -1
  71. package/.agent-src/rules/autonomous-execution.md +17 -98
  72. package/.agent-src/rules/capture-learnings.md +9 -80
  73. package/.agent-src/rules/cli-output-handling.md +12 -42
  74. package/.agent-src/rules/command-suggestion-policy.md +25 -73
  75. package/.agent-src/rules/commit-conventions.md +9 -58
  76. package/.agent-src/rules/commit-policy.md +16 -47
  77. package/.agent-src/rules/context-hygiene.md +5 -0
  78. package/.agent-src/rules/direct-answers.md +21 -50
  79. package/.agent-src/rules/docker-commands.md +11 -45
  80. package/.agent-src/rules/docs-sync.md +10 -56
  81. package/.agent-src/rules/downstream-changes.md +5 -0
  82. package/.agent-src/rules/e2e-testing.md +9 -44
  83. package/.agent-src/rules/guidelines.md +13 -75
  84. package/.agent-src/rules/improve-before-implement.md +11 -2
  85. package/.agent-src/rules/invite-challenge.md +71 -0
  86. package/.agent-src/rules/language-and-tone.md +41 -106
  87. package/.agent-src/rules/laravel-translations.md +11 -40
  88. package/.agent-src/rules/markdown-safe-codeblocks.md +4 -0
  89. package/.agent-src/rules/minimal-safe-diff.md +4 -0
  90. package/.agent-src/rules/missing-tool-handling.md +4 -0
  91. package/.agent-src/rules/model-recommendation.md +9 -61
  92. package/.agent-src/rules/no-attribution-footers.md +5 -0
  93. package/.agent-src/rules/no-cheap-questions.md +11 -27
  94. package/.agent-src/rules/no-council-references.md +76 -0
  95. package/.agent-src/rules/no-roadmap-references.md +7 -0
  96. package/.agent-src/rules/non-destructive-by-default.md +13 -43
  97. package/.agent-src/rules/onboarding-gate.md +9 -117
  98. package/.agent-src/rules/package-ci-checks.md +10 -37
  99. package/.agent-src/rules/php-coding.md +10 -55
  100. package/.agent-src/rules/preservation-guard.md +9 -0
  101. package/.agent-src/rules/review-routing-awareness.md +9 -97
  102. package/.agent-src/rules/reviewer-awareness.md +8 -83
  103. package/.agent-src/rules/roadmap-progress-sync.md +7 -170
  104. package/.agent-src/rules/role-mode-adherence.md +6 -2
  105. package/.agent-src/rules/rule-type-governance.md +8 -66
  106. package/.agent-src/rules/runtime-safety.md +5 -0
  107. package/.agent-src/rules/scope-control.md +17 -62
  108. package/.agent-src/rules/security-sensitive-stop.md +7 -1
  109. package/.agent-src/rules/size-enforcement.md +6 -1
  110. package/.agent-src/rules/skill-improvement-trigger.md +9 -49
  111. package/.agent-src/rules/skill-quality.md +7 -113
  112. package/.agent-src/rules/slash-command-routing-policy.md +11 -63
  113. package/.agent-src/rules/think-before-action.md +22 -87
  114. package/.agent-src/rules/token-efficiency.md +10 -74
  115. package/.agent-src/rules/token-optimizer-maintenance.md +68 -0
  116. package/.agent-src/rules/tool-safety.md +4 -0
  117. package/.agent-src/rules/ui-audit-gate.md +25 -61
  118. package/.agent-src/rules/upstream-proposal.md +9 -67
  119. package/.agent-src/rules/user-interaction.md +22 -108
  120. package/.agent-src/rules/verify-before-complete.md +1 -1
  121. package/.agent-src/skills/adversarial-review/SKILL.md +1 -0
  122. package/.agent-src/skills/agent-docs-writing/SKILL.md +1 -1
  123. package/.agent-src/skills/ai-council/SKILL.md +197 -8
  124. package/.agent-src/skills/analysis-autonomous-mode/SKILL.md +1 -1
  125. package/.agent-src/skills/analysis-skill-router/SKILL.md +3 -3
  126. package/.agent-src/skills/artisan-commands/SKILL.md +2 -2
  127. package/.agent-src/skills/authz-review/SKILL.md +1 -1
  128. package/.agent-src/skills/aws-infrastructure/SKILL.md +5 -5
  129. package/.agent-src/skills/blast-radius-analyzer/SKILL.md +8 -8
  130. package/.agent-src/skills/bug-analyzer/SKILL.md +6 -5
  131. package/.agent-src/skills/code-refactoring/SKILL.md +4 -4
  132. package/.agent-src/skills/code-review/SKILL.md +2 -2
  133. package/.agent-src/skills/command-writing/SKILL.md +11 -0
  134. package/.agent-src/skills/composer-packages/SKILL.md +2 -2
  135. package/.agent-src/skills/context-authoring/SKILL.md +11 -0
  136. package/.agent-src/skills/context-document/SKILL.md +1 -1
  137. package/.agent-src/skills/copilot-agents-optimization/SKILL.md +23 -0
  138. package/.agent-src/skills/copilot-config/SKILL.md +1 -1
  139. package/.agent-src/skills/dependency-upgrade/SKILL.md +2 -2
  140. package/.agent-src/skills/devcontainer/SKILL.md +2 -2
  141. package/.agent-src/skills/developer-like-execution/SKILL.md +1 -1
  142. package/.agent-src/skills/docker/SKILL.md +1 -1
  143. package/.agent-src/skills/dto-creator/SKILL.md +1 -1
  144. package/.agent-src/skills/estimate-ticket/SKILL.md +2 -2
  145. package/.agent-src/skills/fe-design/SKILL.md +4 -4
  146. package/.agent-src/skills/feature-planning/SKILL.md +5 -5
  147. package/.agent-src/skills/funnel-analysis/SKILL.md +1 -1
  148. package/.agent-src/skills/laravel/SKILL.md +1 -1
  149. package/.agent-src/skills/laravel-notifications/SKILL.md +5 -5
  150. package/.agent-src/skills/laravel-pennant/SKILL.md +1 -1
  151. package/.agent-src/skills/laravel-pulse/SKILL.md +4 -4
  152. package/.agent-src/skills/laravel-reverb/SKILL.md +2 -2
  153. package/.agent-src/skills/laravel-scheduling/SKILL.md +1 -1
  154. package/.agent-src/skills/migration-creator/SKILL.md +7 -7
  155. package/.agent-src/skills/multi-tenancy/SKILL.md +8 -8
  156. package/.agent-src/skills/performance-analysis/SKILL.md +3 -3
  157. package/.agent-src/skills/pest-testing/SKILL.md +6 -6
  158. package/.agent-src/skills/php-service/SKILL.md +2 -2
  159. package/.agent-src/skills/project-analysis-hypothesis-driven/SKILL.md +3 -3
  160. package/.agent-src/skills/project-analysis-react/SKILL.md +1 -1
  161. package/.agent-src/skills/project-analysis-symfony/SKILL.md +1 -1
  162. package/.agent-src/skills/project-analysis-zend-laminas/SKILL.md +2 -2
  163. package/.agent-src/skills/project-analyzer/SKILL.md +4 -4
  164. package/.agent-src/skills/prompt-optimizer/SKILL.md +108 -0
  165. package/.agent-src/skills/readme-reviewer/SKILL.md +1 -1
  166. package/.agent-src/skills/roadmap-management/SKILL.md +7 -7
  167. package/.agent-src/skills/rule-writing/SKILL.md +33 -0
  168. package/.agent-src/skills/sentry-integration/SKILL.md +1 -1
  169. package/.agent-src/skills/skill-writing/SKILL.md +14 -0
  170. package/.agent-src/skills/systematic-debugging/SKILL.md +22 -2
  171. package/.agent-src/skills/technical-specification/SKILL.md +58 -1
  172. package/.agent-src/skills/terraform/SKILL.md +2 -2
  173. package/.agent-src/skills/terragrunt/SKILL.md +8 -8
  174. package/.agent-src/skills/test-performance/SKILL.md +5 -5
  175. package/.agent-src/skills/threat-modeling/SKILL.md +3 -2
  176. package/.agent-src/skills/token-optimizer/SKILL.md +110 -0
  177. package/.agent-src/skills/universal-project-analysis/SKILL.md +1 -1
  178. package/.agent-src/templates/AGENTS.md +1 -1
  179. package/.agent-src/templates/agent-settings.md +35 -19
  180. package/.agent-src/templates/command.md +17 -1
  181. package/.agent-src/templates/contexts/tenant-boundaries.md +2 -2
  182. package/.agent-src/templates/contexts.md +1 -1
  183. package/.agent-src/templates/copilot-instructions.md +21 -0
  184. package/.agent-src/templates/copilot-review-instructions.md +76 -0
  185. package/.agent-src/templates/features.md +1 -1
  186. package/.agent-src/templates/roadmaps.md +10 -2
  187. package/.agent-src/templates/rule.md +129 -0
  188. package/.agent-src/templates/skill.md +17 -0
  189. package/.claude-plugin/marketplace.json +12 -2
  190. package/AGENTS.md +32 -5
  191. package/CHANGELOG.md +107 -3
  192. package/README.md +22 -21
  193. package/config/agent-settings.template.yml +66 -10
  194. package/config/gitignore-block.txt +7 -0
  195. package/docs/architecture.md +86 -5
  196. package/docs/catalog.md +16 -6
  197. package/docs/contracts/agent-memory-contract.md +1 -1
  198. package/docs/contracts/command-clusters.md +45 -1
  199. package/docs/contracts/context-paths.md +2 -1
  200. package/docs/contracts/file-ownership-matrix.json +354 -500
  201. package/docs/contracts/iron-law-overrides.txt +25 -0
  202. package/docs/contracts/kernel-membership.md +273 -0
  203. package/docs/contracts/load-context-schema.md +26 -11
  204. package/docs/contracts/pilot/agent-authority.md +24 -0
  205. package/docs/contracts/pilot/direct-answers.md +70 -0
  206. package/docs/contracts/pilot/language-and-tone.md +63 -0
  207. package/docs/contracts/rule-classification.md +170 -0
  208. package/docs/contracts/rule-router.md +153 -0
  209. package/docs/customization.md +17 -6
  210. package/docs/decisions/ADR-001-kernel-swap-deferred.md +109 -0
  211. package/docs/decisions/ADR-002-kernel-bucket-overrides.md +124 -0
  212. package/docs/decisions/ADR-003-flat-cluster-subs-and-colon-syntax.md +126 -0
  213. package/docs/decisions/ADR-rule-kernel-and-router.md +122 -0
  214. package/docs/getting-started.md +2 -2
  215. package/docs/guidelines/agent-infra/naming.md +1 -1
  216. package/docs/guidelines/agent-infra/roadmap-progress-mechanics.md +176 -0
  217. package/docs/guidelines/agent-infra/rule-type-governance.md +73 -0
  218. package/docs/guidelines/agent-infra/size-and-scope.md +13 -2
  219. package/docs/guidelines/agent-infra/skill-quality-checklist.md +119 -0
  220. package/docs/guidelines/augment-portability-patterns.md +68 -0
  221. package/docs/guidelines/php/php-coding-patterns.md +62 -0
  222. package/package.json +1 -1
  223. package/scripts/_p43_bodies.py +235 -0
  224. package/scripts/_p43_compress.py +118 -0
  225. package/scripts/_p4_migrate.py +199 -0
  226. package/scripts/_phase2_shim_helper.py +1 -1
  227. package/scripts/_pilot_council_question.py +57 -0
  228. package/scripts/_pilot_measure.py +53 -0
  229. package/scripts/ai_council/session.py +107 -5
  230. package/scripts/build_linear_digest.py +3 -5
  231. package/scripts/check_always_budget.py +39 -6
  232. package/scripts/check_compressed_paths.py +213 -0
  233. package/scripts/check_compression.py +15 -0
  234. package/scripts/check_context_paths.py +1 -0
  235. package/scripts/check_council_layout.py +105 -0
  236. package/scripts/check_council_references.py +145 -0
  237. package/scripts/check_portability.py +2 -0
  238. package/scripts/check_references.py +2 -0
  239. package/scripts/check_token_optimizer_freshness.py +131 -0
  240. package/scripts/compile_router.py +148 -0
  241. package/scripts/compress.py +219 -11
  242. package/scripts/council_cli.py +132 -11
  243. package/scripts/council_prune.py +81 -0
  244. package/scripts/count_token_optimizer_usage.sh +54 -0
  245. package/scripts/install.sh +44 -2
  246. package/scripts/iron_law_sha.py +98 -0
  247. package/scripts/lint_load_context.py +35 -5
  248. package/scripts/measure_rule_budget.py +314 -0
  249. package/scripts/migrate_command_suggestions.py +2 -2
  250. package/scripts/prototype_lint_contradictions.py +150 -0
  251. package/scripts/schemas/command.schema.json +5 -0
  252. package/scripts/schemas/rule.schema.json +60 -6
  253. package/scripts/schemas/skill.schema.json +5 -0
  254. package/scripts/skill_linter.py +197 -7
  255. package/scripts/smoke_path_resolution.py +93 -0
  256. package/scripts/validate_frontmatter.py +41 -1
  257. package/.agent-src/commands/roadmap/execute.md +0 -109
  258. package/.agent-src/contexts/communication/rules-auto/artifact-engagement-recording-mechanics.md +0 -72
  259. package/.agent-src/contexts/communication/rules-auto/augment-portability-mechanics.md +0 -79
  260. package/.agent-src/contexts/communication/rules-auto/cli-output-handling-mechanics.md +0 -87
  261. package/.agent-src/contexts/communication/rules-auto/command-suggestion-policy-mechanics.md +0 -62
  262. package/.agent-src/contexts/communication/rules-auto/docs-sync-mechanics.md +0 -78
  263. package/.agent-src/contexts/communication/rules-auto/package-ci-checks-mechanics.md +0 -85
  264. package/.agent-src/contexts/communication/rules-auto/review-routing-awareness-mechanics.md +0 -65
  265. package/.agent-src/contexts/communication/rules-auto/roadmap-progress-sync-mechanics.md +0 -78
  266. package/.agent-src/contexts/communication/rules-auto/ui-audit-gate-mechanics.md +0 -53
  267. /package/{docs → .agent-src/contexts}/contracts/artifact-engagement-flow.md +0 -0
  268. /package/{docs → .agent-src/contexts}/contracts/command-suggestion-flow.md +0 -0
@@ -0,0 +1,129 @@
1
+ # Rule Template
2
+
3
+ > Template for creating new rules in `.agent-src.uncompressed/rules/{rule-name}.md`.
4
+ > Rules ship to `.agent-src/rules/` (compressed) and `.augment/rules/` (projected).
5
+ > Schema: `scripts/schemas/rule.schema.json`.
6
+
7
+ ## Instructions
8
+
9
+ 1. Pick a kebab-case `{rule-name}` matching the file stem.
10
+ 2. Copy the template below into `.agent-src.uncompressed/rules/{rule-name}.md`.
11
+ 3. Replace placeholders, drop sections that don't apply.
12
+ 4. Run `task lint-skills` and `python3 scripts/lint_load_context.py`.
13
+ 5. Compress: `bash scripts/compress.sh --changed` then follow the agent flow.
14
+
15
+ ## Path conventions — load-bearing
16
+
17
+ Two different fields, two different rules. Mixing them up will either
18
+ break linting or produce paths that resolve to nothing in the
19
+ consumer's `.augment/`.
20
+
21
+ ### `load_context:` / `load_context_eager:` — logical names
22
+
23
+ Use **logical names** rooted at the source — never the
24
+ `.agent-src.uncompressed/` prefix. The compress-time rewriter
25
+ (`scripts/compress.py::_rewrite_paths`) resolves logical names to
26
+ deployment-correct relative paths; the schema regex
27
+ (`scripts/schemas/rule.schema.json`) and `scripts/lint_load_context.py`
28
+ both reject the legacy prefix.
29
+
30
+ | Write this (logical) | Forbidden (legacy) |
31
+ |---|---|
32
+ | `contexts/execution/verification-mechanics.md` | `.agent-src.uncompressed/contexts/execution/verification-mechanics.md` |
33
+ | `contexts/authority/commit-mechanics.md` | `.agent-src.uncompressed/contexts/authority/commit-mechanics.md` |
34
+ | `agents/contexts/local.md` (project-local) | `.agent-src.uncompressed/contexts/...` for project-only material |
35
+
36
+ ### `triggers[].path_prefix:` — literal match pattern, not a file path
37
+
38
+ `path_prefix:` is a **literal match pattern** the host evaluates against
39
+ the file the agent is editing — it is **not** a file reference and is
40
+ **not rewritten**. Rules that fire when the agent edits source-of-truth
41
+ files legitimately keep the `.agent-src.uncompressed/` prefix (see
42
+ `skill-quality`, `docs-sync`, `rule-type-governance`,
43
+ `augment-portability`). Rules that fire on consumer-project paths use
44
+ `agents/`, `lang/`, `.augment/`, etc.
45
+
46
+ | Use case | Example `path_prefix:` |
47
+ |---|---|
48
+ | Fires when editing source-of-truth artifacts | `.agent-src.uncompressed/skills/` |
49
+ | Fires when editing consumer project files | `agents/`, `lang/`, `app/`, `src/` |
50
+ | Fires when editing the projected layer | `.augment/` |
51
+
52
+ ### Body links — `../../docs/...` is fine in source
53
+
54
+ Source files keep verbatim `../../docs/guidelines/...` and
55
+ `../../docs/contracts/...` links so they work in any markdown viewer.
56
+ The rewriter rewrites them to depth-aware single-up form at compress
57
+ time and is idempotent. Do not pre-rewrite in source.
58
+
59
+ ### Why "logical, depth-aware, idempotent"
60
+
61
+ A rule at `rules/{name}.md` resolves `contexts/{area}/{file}.md` to
62
+ `../contexts/{area}/{file}.md` in the compressed output; a nested
63
+ file at `commands/{cluster}/{sub}.md` resolves to
64
+ `../../contexts/{area}/{file}.md`. Re-running the rewriter does not
65
+ double-prefix. The full decision history lives in the archived
66
+ path-fixes roadmap under `agents/roadmaps/archive/`.
67
+
68
+ ## Template
69
+
70
+ ````markdown
71
+ ---
72
+ type: "always"
73
+ tier: "kernel"
74
+ description: "{One-line trigger sentence — what fires this rule}"
75
+ source: package
76
+ # council_depth: deep # uncomment for rules that gate architecture/refactor/bug-diagnose flows
77
+ load_context:
78
+ - contexts/{area}/{file}.md
79
+ triggers:
80
+ - path_prefix: "{project-relative path or .augment/...}"
81
+ - keyword: "{trigger-keyword}"
82
+ routes_to:
83
+ - "skill:{target-skill}"
84
+ ---
85
+
86
+ # {Rule Title}
87
+
88
+ **Iron Law.** {The single non-negotiable behavior the rule enforces.}
89
+
90
+ ## When this fires
91
+
92
+ {1–3 bullets on the trigger surface — what the agent is doing when this rule applies.}
93
+
94
+ ## What to do
95
+
96
+ {Numbered procedure or short directive list. Reference skills / guidelines
97
+ for full detail; rules are pointers, not playbooks.}
98
+
99
+ ## What NOT to do
100
+
101
+ - {Anti-pattern 1}
102
+ - {Anti-pattern 2}
103
+
104
+ ## See also
105
+
106
+ - [`{related-rule}`](./{related-rule}.md)
107
+ - [`{guideline-ref}`](docs/guidelines/{group}/{name}.md) — full pattern catalog
108
+ ````
109
+
110
+ ## Field reference
111
+
112
+ | Field | Required | Notes |
113
+ |---|---|---|
114
+ | `type` | yes | `always` or `auto`. Always-rules load every turn; auto-rules require trigger match. |
115
+ | `tier` | yes | `kernel` (Iron Law floor), `tier-1` (default), `tier-2` (full profile only). Legacy values still accepted. |
116
+ | `description` | yes | One sentence, ≤ 500 chars. Trigger-clarity wins over poetry. |
117
+ | `source` | yes | `package` (this repo) or `project` (consumer override). |
118
+ | `load_context` | no | Lazy context list — logical names only. Budget enforced by `lint_load_context.py`. |
119
+ | `load_context_eager` | no | Eager context list — counts against per-rule char budget. |
120
+ | `triggers` | no | Required on non-kernel rules per `rule-router.md`. |
121
+ | `routes_to` | no | `skill:`, `guideline:`, `command:`, `contract:` targets. Forbidden on kernel rules. |
122
+ | `alwaysApply` | no | Cursor/Cline sidecar — by convention `true` for `type: always`. |
123
+ | `council_depth` | no | Only `deep` is accepted; **omit the key for default depth** (`standard` is the implicit default and is rejected by the schema — every frontmatter byte counts). Set `deep` when this rule gates AI Council on architecture, refactoring, or bug-diagnosis flows. Host translates to `--depth deep` on the council CLI. See `.augment/skills/ai-council/SKILL.md`. |
124
+
125
+ ## Size budget
126
+
127
+ - Kernel rules: ≤ 4 000 chars (Iron-Law overrides documented in `docs/contracts/iron-law-overrides.txt`).
128
+ - Non-kernel rules: ≤ 2 500 chars.
129
+ - Enforced by `task lint-rule-budget`.
@@ -41,6 +41,23 @@ status: active
41
41
  See guidelines/agent-infra/runtime-layer.md for details.
42
42
  -->
43
43
 
44
+ <!-- COUNCIL DEPTH (optional — delete this comment when done):
45
+ Add `council_depth: deep` to the frontmatter when this skill triggers
46
+ AI Council on architecture, refactoring, or bug-diagnosis artefacts.
47
+ The host translates `deep` into `--depth deep` on the council CLI,
48
+ raising the round floor to `max(ai_council.deep_min_rounds,
49
+ ai_council.min_rounds)`.
50
+
51
+ Only `deep` is accepted. **Omit the key for default depth** —
52
+ `standard` is the implicit default and is rejected by the schema
53
+ (every frontmatter byte counts against the context window).
54
+
55
+ Example:
56
+ council_depth: deep
57
+
58
+ See .augment/skills/ai-council/SKILL.md.
59
+ -->
60
+
44
61
  <!-- DESCRIPTION RULES (delete this comment when done):
45
62
  - Start with "Use when..." — this is a TRIGGER, not a summary
46
63
  - Include 2-3 phrases users actually say: "create a DTO", "add column", "fix tests"
@@ -6,7 +6,7 @@
6
6
  },
7
7
  "metadata": {
8
8
  "description": "Shared agent configuration \u2014 skills for AI coding tools (Claude Code, Augment, Cursor, Cline, Windsurf, Gemini CLI).",
9
- "version": "1.20.0"
9
+ "version": "1.22.0"
10
10
  },
11
11
  "plugins": [
12
12
  {
@@ -42,6 +42,9 @@
42
42
  "./.claude/skills/chat-history-import",
43
43
  "./.claude/skills/chat-history-learn",
44
44
  "./.claude/skills/chat-history-show",
45
+ "./.claude/skills/challenge-me",
46
+ "./.claude/skills/challenge-me-vision",
47
+ "./.claude/skills/challenge-me-with-docs",
45
48
  "./.claude/skills/check-current-md",
46
49
  "./.claude/skills/check-refs",
47
50
  "./.claude/skills/code-refactoring",
@@ -109,6 +112,7 @@
109
112
  "./.claude/skills/git-workflow",
110
113
  "./.claude/skills/github-ci",
111
114
  "./.claude/skills/grafana",
115
+ "./.claude/skills/grill-me",
112
116
  "./.claude/skills/guideline-writing",
113
117
  "./.claude/skills/implement-ticket",
114
118
  "./.claude/skills/jira-integration",
@@ -157,6 +161,7 @@
157
161
  "./.claude/skills/optimize",
158
162
  "./.claude/skills/optimize-agents",
159
163
  "./.claude/skills/optimize-augmentignore",
164
+ "./.claude/skills/optimize-prompt",
160
165
  "./.claude/skills/optimize-rtk",
161
166
  "./.claude/skills/optimize-skills",
162
167
  "./.claude/skills/override",
@@ -185,6 +190,7 @@
185
190
  "./.claude/skills/project-analyzer",
186
191
  "./.claude/skills/project-docs",
187
192
  "./.claude/skills/project-health",
193
+ "./.claude/skills/prompt-optimizer",
188
194
  "./.claude/skills/quality-fix",
189
195
  "./.claude/skills/quality-tools",
190
196
  "./.claude/skills/react-shadcn-ui",
@@ -199,9 +205,12 @@
199
205
  "./.claude/skills/review-routing",
200
206
  "./.claude/skills/rice-prioritization",
201
207
  "./.claude/skills/roadmap",
208
+ "./.claude/skills/roadmap-ai-council",
202
209
  "./.claude/skills/roadmap-create",
203
- "./.claude/skills/roadmap-execute",
204
210
  "./.claude/skills/roadmap-management",
211
+ "./.claude/skills/roadmap-process-full",
212
+ "./.claude/skills/roadmap-process-phase",
213
+ "./.claude/skills/roadmap-process-step",
205
214
  "./.claude/skills/rtk-output-filtering",
206
215
  "./.claude/skills/rule-compliance-audit",
207
216
  "./.claude/skills/rule-writing",
@@ -229,6 +238,7 @@
229
238
  "./.claude/skills/tests-execute",
230
239
  "./.claude/skills/threat-model",
231
240
  "./.claude/skills/threat-modeling",
241
+ "./.claude/skills/token-optimizer",
232
242
  "./.claude/skills/traefik",
233
243
  "./.claude/skills/unit-economics-modeling",
234
244
  "./.claude/skills/universal-project-analysis",
package/AGENTS.md CHANGED
@@ -111,7 +111,7 @@ want to measure which skills/rules/commands the agent actually applies set
111
111
  `telemetry.artifact_engagement.enabled: true` in `.agent-settings.yml`. The
112
112
  log is local-only JSONL (no upload, no cross-project share) and is bound
113
113
  by the redaction floor described in
114
- [`docs/contracts/artifact-engagement-flow.md`](docs/contracts/artifact-engagement-flow.md) (beta).
114
+ [`contexts/contracts/artifact-engagement-flow.md`](.agent-src.uncompressed/contexts/contracts/artifact-engagement-flow.md) (beta).
115
115
  The recording rule lives at
116
116
  [`.agent-src/rules/artifact-engagement-recording.md`](.agent-src/rules/artifact-engagement-recording.md).
117
117
 
@@ -125,7 +125,7 @@ picks every time. Engine: `scripts/command_suggester/`. Rule:
125
125
  Locked eligibility table, scoring contract, and hardening list:
126
126
  [`docs/contracts/adr-command-suggestion.md`](docs/contracts/adr-command-suggestion.md)
127
127
  and
128
- [`docs/contracts/command-suggestion-flow.md`](docs/contracts/command-suggestion-flow.md) (beta).
128
+ [`contexts/contracts/command-suggestion-flow.md`](.agent-src.uncompressed/contexts/contracts/command-suggestion-flow.md) (beta).
129
129
 
130
130
  ## Key rules for agents editing this repo
131
131
 
@@ -139,19 +139,46 @@ and
139
139
  | Keep `.agent-src/` / `agents/` cross-refs in sync on add/rename/delete | [`docs-sync`](.agent-src/rules/docs-sync.md) |
140
140
  | Creating a new skill/rule/command/guideline runs Understand → Research → Draft | [`artifact-drafting-protocol`](.agent-src/rules/artifact-drafting-protocol.md) |
141
141
 
142
+ ## Kernel + Router
143
+
144
+ The rule set runs on a **Kernel + Router** model (locked 2026-05-06,
145
+ see [`docs/decisions/ADR-rule-kernel-and-router.md`](docs/decisions/ADR-rule-kernel-and-router.md)):
146
+
147
+ - **Kernel** = 9 always-loaded Iron-Law rules, ≤ 26k chars
148
+ (`agent-authority`, `ask-when-uncertain`, `commit-policy`,
149
+ `direct-answers`, `language-and-tone`, `no-cheap-questions`,
150
+ `non-destructive-by-default`, `scope-control`, `verify-before-complete`).
151
+ Locked set: [`docs/contracts/kernel-membership.md`](docs/contracts/kernel-membership.md) (beta).
152
+ - **Router** = frontmatter `tier:` + `triggers:` + `routes_to:` keys
153
+ on every rule. `scripts/compile_router.py` builds `router.json`
154
+ deterministically. Contract: [`docs/contracts/rule-router.md`](docs/contracts/rule-router.md) (beta).
155
+ - **Cost profiles** gate which tiers load:
156
+ `minimal` = kernel only · `balanced` = kernel + tier-1 (default) ·
157
+ `full` = kernel + tier-1 + tier-2.
158
+
159
+ Hard caps enforced by `task lint-rule-budget`: kernel-bucket ≤ 26k chars,
160
+ per-rule ≤ 2.5k chars (Iron-Law overrides up to 4.0k via ADR in
161
+ [`docs/decisions/`](docs/decisions/) and
162
+ [`docs/contracts/iron-law-overrides.txt`](docs/contracts/iron-law-overrides.txt)).
163
+ Daily snapshots: `python3 scripts/measure_rule_budget.py --trend-append`
164
+ appends to `agents/.rule-budget-history.jsonl`.
165
+
142
166
  ## Repository layout
143
167
 
144
168
  ```
145
169
  .agent-src.uncompressed/ ← edit here
146
- skills/ (134 skills)
147
- rules/ (56 rules)
148
- commands/ (94 commands)
170
+ skills/ (136 skills)
171
+ rules/ (59 rules)
172
+ commands/ (102 commands)
149
173
  personas/ (7 personas)
150
174
  templates/ (AGENTS.md, copilot-instructions.md, skill.md, …)
151
175
  contexts/
152
176
 
153
177
  docs/guidelines/ (47 guidelines — reference material, not packaged)
178
+ docs/contracts/ (kernel-membership, rule-router, rule-classification, …)
179
+ docs/decisions/ (ADRs — kernel overrides, scope decisions)
154
180
  .agent-src/ ← compressed output shipped in the package
181
+ .agent-src/router.json ← compiled router manifest (consumed at runtime)
155
182
  .augment/ ← local projection for Augment Code (gitignored)
156
183
  scripts/ ← install.sh, install.py, compress.py, linters
157
184
  tests/ ← pytest (324 tests) + test_install.sh
package/CHANGELOG.md CHANGED
@@ -318,6 +318,110 @@ our recommendation order, not its support status.
318
318
  users" tension without removing any path that an existing user
319
319
  might rely on.
320
320
 
321
+ ## [1.22.0](https://github.com/event4u-app/agent-config/compare/1.21.0...1.22.0) (2026-05-07)
322
+
323
+ ### Features
324
+
325
+ * **commands:** add /grill-me alias for /challenge-me + expand triggers ([d2be4ee](https://github.com/event4u-app/agent-config/commit/d2be4ee1a97d2ca2374c6543e0fd908eca0a0f1a))
326
+ * **challenge-me:** add !roadmap and !ai triggers ([7bfbd69](https://github.com/event4u-app/agent-config/commit/7bfbd6943852d781ca7ad29e51750de24d3ef413))
327
+ * **create-pr:** default to skipping description preview to save tokens ([80e77ae](https://github.com/event4u-app/agent-config/commit/80e77aed76a13c26fac8316bc5d58a3533dbbe44))
328
+ * **council:** add critical-evaluation stance for council findings ([7e2524b](https://github.com/event4u-app/agent-config/commit/7e2524b75fd84ca4b6afb6deae0b8777e8b81ac7))
329
+ * **council:** add /roadmap:ai-council deep-tier sub-command ([c5933e4](https://github.com/event4u-app/agent-config/commit/c5933e4b2301a0f9d1c116d2843ed4953bd92163))
330
+ * replace /roadmap-execute with autonomous /roadmap:process-* cluster ([9d4ffd0](https://github.com/event4u-app/agent-config/commit/9d4ffd0815fb7923b337bfd0b3847d9bc5a01e54))
331
+ * **council:** mark architecture/refactor/bug-diagnose artefacts as deep ([6f903c1](https://github.com/event4u-app/agent-config/commit/6f903c194e4bc54512e93a32e1876e84d0292401))
332
+ * **council:** add deep reasoning depth tier with schema enforcement ([f4efd7a](https://github.com/event4u-app/agent-config/commit/f4efd7a11b9d57e93153e6e4605c968565c8924d))
333
+ * **linter:** require suggestion block on commands ([231df91](https://github.com/event4u-app/agent-config/commit/231df918b2d15ea9cc2fa8fe12bae4c2482990df))
334
+ * add --siblings council mode and refine convener wording ([9075647](https://github.com/event4u-app/agent-config/commit/9075647ba520efb5f10ab7612970111e9f9d16e9))
335
+ * add PRD template to technical-specification ([f9ee749](https://github.com/event4u-app/agent-config/commit/f9ee7496434f9342d6b46b95dce14c4703d07d96))
336
+ * add 6-phase loop checklist to systematic-debugging ([29c9e94](https://github.com/event4u-app/agent-config/commit/29c9e9419c9d08dd93c4fc7364e51b93bc771131))
337
+ * add invite-challenge rule for pre-execution goal restatement ([e96da5f](https://github.com/event4u-app/agent-config/commit/e96da5fdf124da3582e454fc625fe32a27ada634))
338
+ * add /challenge-me cluster with vision and with-docs sub-commands ([74481ef](https://github.com/event4u-app/agent-config/commit/74481ef7e7850d3e015ff0f9853be6ea618ac1d9))
339
+
340
+ ### Documentation
341
+
342
+ * **roadmap:** drop council-response file links per no-council-references ([d792100](https://github.com/event4u-app/agent-config/commit/d792100ef6b2727cca1338c89fefc4c591513265))
343
+ * **readme:** bump hero command count from 100 to 102 ([3212db4](https://github.com/event4u-app/agent-config/commit/3212db48fb1d62a70f9e87cf9307ee73059b7e4e))
344
+ * **roadmap:** integrate R5 council verdict for caveman-insurance ([38b26e2](https://github.com/event4u-app/agent-config/commit/38b26e2f00504a7c6c821c356964cb0cabefd905))
345
+ * **roadmap:** incorporate R4 verdict + structural findings into caveman integration ([c50f39b](https://github.com/event4u-app/agent-config/commit/c50f39bc9b08c8d59c4cf547aeec7fffbff38bc0))
346
+ * **roadmap:** convert caveman integration Phase 2 to hard cutover ([fb459be](https://github.com/event4u-app/agent-config/commit/fb459be70a093eea1814a38a3b1fec9cf9261363))
347
+ * **harvest:** add Superpowers harvest roadmap, hardened by council R2 ([e559259](https://github.com/event4u-app/agent-config/commit/e559259f789014603067e87141d9feb815b480ab))
348
+ * **harvest:** analyze obra/superpowers v5.1.0 for adoption candidates ([e89e0ee](https://github.com/event4u-app/agent-config/commit/e89e0eeadc4b76517b181c559422e88df5c8122a))
349
+ * **council:** document council_depth frontmatter convention in templates ([ba56412](https://github.com/event4u-app/agent-config/commit/ba56412c76204bbe49366bbceb62e4d31c994fc2))
350
+
351
+ ### Chores
352
+
353
+ * **sync:** re-sync compressed mirror with create-pr preview-gate + agent-settings preview_description ([ceab79e](https://github.com/event4u-app/agent-config/commit/ceab79e23be2c1d4ba504b80426d1b91ffdaadd1))
354
+ * bump artefact counts and refresh compression hashes ([2801342](https://github.com/event4u-app/agent-config/commit/28013424668177fc23df45cc56390faba6fd010e))
355
+ * regenerate tool-dir symlinks for challenge-me and invite-challenge ([b3b0ada](https://github.com/event4u-app/agent-config/commit/b3b0ada9ce108b220289c9f044b3f3d0209f0a12))
356
+ * bump artefact counts and refresh compression hashes ([4147de3](https://github.com/event4u-app/agent-config/commit/4147de3b4da24494128a847be194ac901e506df9))
357
+ * sync compressed projection for challenge-me cluster ([9165762](https://github.com/event4u-app/agent-config/commit/91657620e6d822fbe28923e3b008e218f13e5cea))
358
+
359
+ ## [1.21.0](https://github.com/event4u-app/agent-config/compare/1.20.0...1.21.0) (2026-05-06)
360
+
361
+ ### Features
362
+
363
+ * **linter:** add council-reference guard with pragma suppressions ([734b7ae](https://github.com/event4u-app/agent-config/commit/734b7ae61d53c17fadb78f6f68bb54e3fe7cdde8))
364
+ * **linter:** density-gated size warnings (council Option 2) ([281b9aa](https://github.com/event4u-app/agent-config/commit/281b9aa6f52640a93cf55c7b13678fbd2ea85077))
365
+ * **skills:** add prompt-optimizer skill and /optimize-prompt command ([4f99e50](https://github.com/event4u-app/agent-config/commit/4f99e50ae46b19eab3eed2629bb94ac5d017151e))
366
+ * **path-fixes:** finalize Phase 5-7 — checker, smoke, copilot review, contracts move ([3c5fc5d](https://github.com/event4u-app/agent-config/commit/3c5fc5d100ea7c542a48778e4e0669f551fad946))
367
+ * **install:** rules_use_symlinks toggle for both compress.py and install.sh ([927adc3](https://github.com/event4u-app/agent-config/commit/927adc35002588eef4d24825c313e6a9511d6ca1))
368
+ * **ai-council:** default rounds via ai_council.min_rounds (default 2) ([26da301](https://github.com/event4u-app/agent-config/commit/26da30125a0b5a2c74c9c48cf6a2f8e2e5d021dd))
369
+ * **ai-council:** isolate council artefacts as gitignored, auto-pruned scratch ([ab0e245](https://github.com/event4u-app/agent-config/commit/ab0e245734c8560f6d93df927b8af6d105c1d8dc))
370
+ * **rules:** enforce logical-name path conventions for load_context ([fd12ff6](https://github.com/event4u-app/agent-config/commit/fd12ff6b37cec7d2be8ea88d3ec055333fea13e2))
371
+ * **rules:** land kernel + router architecture ([d4fe80e](https://github.com/event4u-app/agent-config/commit/d4fe80e1ce2a956eb86df328de32e3252515553f))
372
+ * **linter:** validate router frontmatter schema (P3.3) ([124e4d7](https://github.com/event4u-app/agent-config/commit/124e4d7387c4f6b90dba5a60179580af5ba5ed45))
373
+ * **router:** compile router.json + wire into CI (P3.2) ([a050a5c](https://github.com/event4u-app/agent-config/commit/a050a5c7b1ba4900be8d7439eadf5cd2953f15d1))
374
+ * **router:** add rule-router schema contract (P3.1) ([e7b1088](https://github.com/event4u-app/agent-config/commit/e7b108809d2fc1f26b4f8f4254044c6019b75a90))
375
+ * **kernel:** add Iron-Law SHA tooling + raise bucket cap to 26k (ADR-002) ([2f8b867](https://github.com/event4u-app/agent-config/commit/2f8b867bb1c306d8c03a754f68f8c82a53013689))
376
+ * **kernel:** land P2.1 — kernel-budget enforcement + ADR-001 ([dd7d50a](https://github.com/event4u-app/agent-config/commit/dd7d50aeb81ca53c430d84d1c0ba36a93008c7f8))
377
+ * **scripts:** add rule-budget measurement + Phase-1 pilot tooling ([396a85f](https://github.com/event4u-app/agent-config/commit/396a85fef25578871566c6c463f57e23b7f95ef2))
378
+
379
+ ### Bug Fixes
380
+
381
+ * **commands:** add cluster: optimize to optimize-prompt frontmatter ([bdc3907](https://github.com/event4u-app/agent-config/commit/bdc390772086fa4c13dba1142eb2b82ab133f5a7))
382
+ * **compress:** protect rule examples with inline-code backticks ([c5ea62b](https://github.com/event4u-app/agent-config/commit/c5ea62ba8937d52651544b8509b955498e109579))
383
+ * **schema:** accept rewritten ../contexts/ paths in load_context ([8101320](https://github.com/event4u-app/agent-config/commit/8101320c9a014e02bddfa60fb433b09bd3646b0a))
384
+ * **linter:** support validator_ignore frontmatter + dual-location contracts ([031bd7d](https://github.com/event4u-app/agent-config/commit/031bd7df79deb35a53b8f1d49384056cfcea7711))
385
+ * **templates:** compressed mirror of templates/rule.md + placeholder fix for check-refs ([c182723](https://github.com/event4u-app/agent-config/commit/c18272386d1c5f31efdd14f6d2cca8b8d8b876c8))
386
+ * **skills:** portability — script paths in rule-writing, lower-case agent-config in copilot-agents-optimization ([7e5a86f](https://github.com/event4u-app/agent-config/commit/7e5a86f5dda9a095e3d887c19df718555f7f347c))
387
+ * **tests:** align load_context tests with logical-name path format ([924e52e](https://github.com/event4u-app/agent-config/commit/924e52ed4005d2fb8d22167899058ed9eeb61449))
388
+ * **commit-mechanics:** trim four-exceptions block to fit 6k extended-size cap ([0b6391f](https://github.com/event4u-app/agent-config/commit/0b6391f08d23af71f8945a7e685c7a979e229d61))
389
+ * **contexts:** restore obligation-keyword baseline after P2.2 rule compression ([8996bcd](https://github.com/event4u-app/agent-config/commit/8996bcd83621670f175f93d73ee1c577695d3b34))
390
+ * **linear-digest:** update language-and-tone strip-section title after P2.2 rename ([9643a82](https://github.com/event4u-app/agent-config/commit/9643a82c15a9904ceefcc6a9f1b90a4ef2225b47))
391
+
392
+ ### Documentation
393
+
394
+ * **roadmap:** add road-to-structural-linter-reform (council Option 3) ([ac62e56](https://github.com/event4u-app/agent-config/commit/ac62e563f17f697401c8d9045847b3c12ec1c927))
395
+ * update package docs for kernel + router model ([8fef804](https://github.com/event4u-app/agent-config/commit/8fef804aa00ce578ee2b1a96c7002081f07bc538))
396
+ * **kernel:** land Phase 1 classification + kernel set + Council R2 amendments ([a179487](https://github.com/event4u-app/agent-config/commit/a179487dd6fef2b548cd1b886a1e7d54a4c00a39))
397
+
398
+ ### Refactoring
399
+
400
+ * compression logic ([6701f9f](https://github.com/event4u-app/agent-config/commit/6701f9f12568ddc409ccad62a7690d64ba885122))
401
+ * **chat-history:** import emits summary + resume offer instead of verbatim entries ([dfafd9c](https://github.com/event4u-app/agent-config/commit/dfafd9cd62d740a7137f6a6e648acfb377f46b1b))
402
+ * **kernel:** compress 8 kernel rules per P2.2 playbook + lock kernel (P2.3) ([4e771da](https://github.com/event4u-app/agent-config/commit/4e771da5c4ceea2e6d2e8935098f1cd231c80c30))
403
+
404
+ ### Chores
405
+
406
+ * **router:** add routes_to to no-council-references rule ([fb50540](https://github.com/event4u-app/agent-config/commit/fb505404c9b03cb9fa597ac36793eb3f552585f7))
407
+ * **roadmaps:** archive completed agent-memory roadmaps ([a35b680](https://github.com/event4u-app/agent-config/commit/a35b6803ff545ce2e9098a55cfa8ecb1fbcf624d))
408
+ * **ownership:** regenerate matrix after road-to-structural-linter-reform ([174dd24](https://github.com/event4u-app/agent-config/commit/174dd24989f112eab89c628807acbbb0e10b6aae))
409
+ * **ci:** regenerate index, catalog, roadmap complexity fix ([d61dc9c](https://github.com/event4u-app/agent-config/commit/d61dc9ce96f2ccdab8efd11281bf00d80ed755ef))
410
+ * **docs:** bump getting-started command count from 94 to 95 ([6751897](https://github.com/event4u-app/agent-config/commit/6751897cdf2744683731fc9230183a38834e9b9c))
411
+ * **sync:** regenerate agents/index.md + docs/catalog.md after prompt-optimizer ([cfe2367](https://github.com/event4u-app/agent-config/commit/cfe236759671792a9b49ff10f664fbed10edc4c4))
412
+ * **readme:** bump command count from 94 to 95 after prompt-optimizer addition ([62a59a4](https://github.com/event4u-app/agent-config/commit/62a59a427986ff428d1c1e729d311914ce3be0e5))
413
+ * **sync:** regenerate .windsurfrules after caveman arrow update ([509ba00](https://github.com/event4u-app/agent-config/commit/509ba0061500a47129c77da5bae1f8384636a09c))
414
+ * **compression:** apply caveman abbreviation and arrow rules to mirror ([34e5b1f](https://github.com/event4u-app/agent-config/commit/34e5b1f85da99de94ea8b5f932011583c844a0c8))
415
+ * **sync:** regenerate compressed mirror + ownership matrix after Phase 5-7 ([b421e8e](https://github.com/event4u-app/agent-config/commit/b421e8e3aae6c1ee739bbdd35ed4f44cd78eed85))
416
+ * **roadmap:** archive road-to-path-fixes after Phase 7 closure ([651fd3e](https://github.com/event4u-app/agent-config/commit/651fd3e6586e552dab6368be1853141b2b2fb0ff))
417
+ * **portability:** replace 'Galawork'/'galawork' with 'Consumer'/'consumer' ([bac0433](https://github.com/event4u-app/agent-config/commit/bac0433c13e007910564e6b21b82ca6e6dcccdf9))
418
+ * regenerate router, index, catalog, windsurf rules, tool symlinks ([93685bb](https://github.com/event4u-app/agent-config/commit/93685bb0fbe7c9f671f3a49672e693a8e4a44b85))
419
+ * **commands:** sync compressed mirror of chat-history/import.md to summary+resume ([0063941](https://github.com/event4u-app/agent-config/commit/0063941c69d011a8935ddbcc7ea1266cd4d2c692))
420
+ * **roadmaps:** add road-to-path-fixes and refresh progress ([34f9c23](https://github.com/event4u-app/agent-config/commit/34f9c23ccf67f79758e7dd293c66bc4c443ccc29))
421
+ * **roadmaps:** close kernel-router, package-opt, token-opt plates ([445ef25](https://github.com/event4u-app/agent-config/commit/445ef2574772358ca278ce2d334a08431e82ed68))
422
+ * **roadmap:** close Phase 3 (Router contract) in kernel-and-router ([30b834f](https://github.com/event4u-app/agent-config/commit/30b834fceb9c1198ffae5f0d35d1c84e5bd44c24))
423
+ * **ownership:** regenerate file-ownership matrix after P2.2 kernel compression ([0e82da1](https://github.com/event4u-app/agent-config/commit/0e82da18399cd1e9ecff57769116d7a3317c2949))
424
+
321
425
  ## [1.20.0](https://github.com/event4u-app/agent-config/compare/1.19.0...1.20.0) (2026-05-06)
322
426
 
323
427
  ### Features
@@ -1298,7 +1402,7 @@ our recommendation order, not its support status.
1298
1402
 
1299
1403
  * add iron rule for skill independence ([b060730](https://github.com/event4u-app/agent-config/commit/b060730e98b15b6bc498ad68a111035fab72907f))
1300
1404
  * address Copilot PR review feedback ([11b4d20](https://github.com/event4u-app/agent-config/commit/11b4d2060084d1739bfc9e6550fc78c4a4a0bcb7))
1301
- * address galawork-api PR [#1466](https://github.com/event4u-app/agent-config/issues/1466) bot feedback ([c5f8e18](https://github.com/event4u-app/agent-config/commit/c5f8e18a6c429e2f8f0224e1d9130233107ce65e))
1405
+ * address consumer-api PR [#1466](https://github.com/event4u-app/agent-config/issues/1466) bot feedback ([c5f8e18](https://github.com/event4u-app/agent-config/commit/c5f8e18a6c429e2f8f0224e1d9130233107ce65e))
1302
1406
  * **check-refs:** resolve .augment/X as alias for .agent-src/X ([ff3b094](https://github.com/event4u-app/agent-config/commit/ff3b09479a7fa266606467d862f8de9277ef1fc4))
1303
1407
  * **check-refs:** skip forward refs in unchecked TODO items ([1458a18](https://github.com/event4u-app/agent-config/commit/1458a181eb5bbe3189777b87bd9ad210b8cc00c5))
1304
1408
  * **check-refs:** validate paths inside memory YAML + exempt consumer dirs ([ec4e8aa](https://github.com/event4u-app/agent-config/commit/ec4e8aae2a0f8e7c489442441b8cfa7f9242be2f))
@@ -1474,8 +1578,8 @@ our recommendation order, not its support status.
1474
1578
  for scope questions; Issues remain for bugs and feature requests.
1475
1579
 
1476
1580
  ### Removed
1477
- - Hardcoded `galawork` references removed from installer and portability
1478
- checker. No public release ever shipped the legacy `# galawork/agent-config`
1581
+ - Hardcoded `consumer` references removed from installer and portability
1582
+ checker. No public release ever shipped the legacy `# consumer/agent-config`
1479
1583
  gitignore marker, so the in-place migration path was also removed.
1480
1584
 
1481
1585
  ## [1.3.3] — 2026-04-17
package/README.md CHANGED
@@ -7,7 +7,7 @@ Give your AI agents an audit-disciplined orchestration contract — testing, Git
7
7
  > Your agent picks up the project's stack, runs tests, prepares PRs, fixes CI — and follows your team's coding standards while doing it. Stack-aware skill sets ship for PHP (Laravel · Symfony · Zend/Laminas), JavaScript (Next.js · React · Node), and cross-stack concerns (API · testing · security · observability).
8
8
 
9
9
  <p align="center">
10
- <strong>134 Skills</strong> · <strong>56 Rules</strong> · <strong>94 Commands</strong> · <strong>51 Guidelines</strong> · <strong>8 AI Tools</strong>
10
+ <strong>136 Skills</strong> · <strong>59 Rules</strong> · <strong>102 Commands</strong> · <strong>56 Guidelines</strong> · <strong>8 AI Tools</strong>
11
11
  </p>
12
12
 
13
13
  ---
@@ -55,15 +55,11 @@ bash vendor/event4u/agent-config/scripts/install
55
55
  bash node_modules/@event4u/agent-config/scripts/install --profile=balanced
56
56
  ```
57
57
 
58
- **To install the package:** no Task, no Make, no build tools required.
59
- `scripts/install` orchestrates two stages: a bash payload sync and a
60
- Python bridge generator. **Python 3** (stdlib only, pre-installed on
61
- macOS 12.3+ and all major Linux distros) is required for the bridge
62
- stage; without it the orchestrator warns, runs the payload sync, and
63
- continues. The package makes rules, skills, and commands available
64
- project-locally for all supported AI tools. Task is required for
65
- *contributors* who want to rebuild the compressed content locally — see
66
- [CONTRIBUTING.md](CONTRIBUTING.md).
58
+ **To install:** no Task / Make / build tools — `scripts/install` runs a
59
+ bash payload sync plus a Python 3 bridge generator (stdlib only, default
60
+ on macOS 12.3+ / major Linux distros). Python missing → orchestrator
61
+ warns and continues payload-only. Task is needed only for *contributors*
62
+ rebuilding compressed content see [CONTRIBUTING.md](CONTRIBUTING.md).
67
63
 
68
64
  **Verify hook coverage** after installing — every supported platform
69
65
  (Augment, Claude Code, Cowork, Cursor, Cline, Windsurf, Gemini CLI,
@@ -270,15 +266,20 @@ session is explicitly not.
270
266
 
271
267
  ## You don't need everything
272
268
 
273
- Start with **Rules + Skills**. Everything else is optional.
269
+ `cost_profile` is the master switch for **rule-tier loading**. The kernel
270
+ (always-loaded Iron-Law floor, ≤ 26k chars across 9 rules) ships in every
271
+ profile; tier-1 and tier-2 rules are gated by profile and resolved at
272
+ session start from `router.json`.
274
273
 
275
- | Mode | What's active | Runtime process overhead |
276
- |---|---|---|
277
- | **Minimal** (default) | Rules, Skills, Commands | None |
278
- | **Balanced** | + Runtime Dispatcher for skills that declare a shell command | Low |
279
- | **Full** | + Tool Adapters (GitHub / Jira read-only, opt-in) | Moderate |
274
+ | Profile | Rule tiers loaded | Token footprint | Best for |
275
+ |---|---|---|---|
276
+ | **`minimal`** | kernel only (no router, no auto-rules) | lowest | Cost-sensitive sessions; trivial Q&A; CI runs |
277
+ | **`balanced`** (default) | kernel + tier-1 auto-rules | medium | Day-to-day work current behaviour superset |
278
+ | **`full`** | kernel + tier-1 + tier-2 (everything) | highest | Agent-config development; full rule fidelity |
280
279
 
281
- Nothing runs automatically without your control. [Configure modes →](docs/customization.md)
280
+ Architecture: [`docs/contracts/rule-router.md`](docs/contracts/rule-router.md) (beta) ·
281
+ kernel set: [`docs/contracts/kernel-membership.md`](docs/contracts/kernel-membership.md) (beta) ·
282
+ [Configure profiles →](docs/customization.md)
282
283
 
283
284
  > **Stability tiers** — [`STABILITY.md`](docs/contracts/STABILITY.md) for
284
285
  > the full matrix. Runtime Dispatcher: **stable** (`php` / `node` handlers
@@ -342,7 +343,7 @@ Nothing runs automatically without your control. [Configure modes →](docs/cust
342
343
  | [`/jira-ticket`](.agent-src/commands/jira-ticket.md) | Read ticket from branch, implement feature |
343
344
  | [`/compress`](.agent-src/commands/compress.md) | Compress skills for token efficiency |
344
345
 
345
- → [Browse all 94 active commands](.agent-src/commands/)
346
+ → [Browse all 95 active commands](.agent-src/commands/)
346
347
 
347
348
  ---
348
349
 
@@ -367,7 +368,7 @@ Every developer gets the same behavior. No per-user setup needed.
367
368
  native slash-commands)
368
369
 
369
370
  > **What this means in practice:** Augment Code and Claude Code get the full
370
- > package (rules + 134 skills + 94 native commands). Cursor, Cline, Windsurf,
371
+ > package (rules + 136 skills + 95 native commands). Cursor, Cline, Windsurf,
371
372
  > Gemini CLI, and GitHub Copilot only get the **rules** natively; skills and
372
373
  > commands are available to them as documentation the agent can read, not as
373
374
  > first-class features.
@@ -449,7 +450,7 @@ telemetry:
449
450
 
450
451
  Reports: `./agent-config telemetry:report`. Full contract,
451
452
  privacy/redaction floor, and quartile semantics:
452
- [`docs/contracts/artifact-engagement-flow.md`](docs/contracts/artifact-engagement-flow.md) (beta).
453
+ [`contexts/contracts/artifact-engagement-flow.md`](.agent-src.uncompressed/contexts/contracts/artifact-engagement-flow.md) (beta).
453
454
 
454
455
  ### Context-aware command suggestion
455
456
 
@@ -470,7 +471,7 @@ commands:
470
471
  Per-conversation: `/command-suggestion-off` disables the layer until
471
472
  re-enabled or the chat ends. Full scoring contract and hardening:
472
473
  [`adr-command-suggestion`](docs/contracts/adr-command-suggestion.md),
473
- [`command-suggestion-flow`](docs/contracts/command-suggestion-flow.md) (beta).
474
+ [`command-suggestion-flow`](.agent-src.uncompressed/contexts/contracts/command-suggestion-flow.md) (beta).
474
475
 
475
476
  ---
476
477
 
@@ -7,13 +7,15 @@
7
7
 
8
8
  # --- Cost profile ---
9
9
  #
10
- # Selects which agent surfaces are active. See docs/customization.md for
11
- # the authoritative description.
10
+ # Master switch that controls which rule tiers load each session.
11
+ # See docs/customization.md for the authoritative description and
12
+ # docs/contracts/rule-router.md for the kernel + router architecture.
12
13
  #
13
- # minimal = rules, skills, and commands only (zero extra surface, default)
14
- # balanced = + runtime dispatcher for skills that declare a shell command
15
- # full = + tool adapters (GitHub / Jira, read-only, opt-in)
16
- # custom = ignore profile every matrix value must be set explicitly
14
+ # minimal = kernel only (always-loaded Iron-Law floor, ≤ 26k chars).
15
+ # No router, no auto-rules. Lowest token footprint.
16
+ # balanced = kernel + tier-1 auto-rules (default current behaviour superset).
17
+ # full = kernel + tier-1 + tier-2 (everything, highest token cost).
18
+ # custom = ignore profile — every matrix value must be set explicitly.
17
19
  cost_profile: __COST_PROFILE__
18
20
 
19
21
  # --- Personal preferences ---
@@ -74,6 +76,22 @@ github:
74
76
  # auto = detect on first use and update this setting
75
77
  pr_reply_method: create_review_comment
76
78
 
79
+ # --- Augment Code projection (.augment/) ---
80
+ #
81
+ # Controls how rule files are written into .augment/rules/ during
82
+ # install (scripts/install.sh) and the package's own projection
83
+ # (scripts/compress.py --project-augment).
84
+ #
85
+ # Augment Code historically does not load symlinked rule files, so the
86
+ # default is to write each rule as a real copy. Flip the toggle to true
87
+ # once Augment Code supports symlinked rules — symlinks keep the files
88
+ # in sync without re-running install/sync, and remove a class of stale-
89
+ # copy path bugs.
90
+ augment:
91
+ # When true, .augment/rules/*.md are symlinked into .agent-src/rules/.
92
+ # When false (default) or missing, they are copied as real files.
93
+ rules_use_symlinks: false
94
+
77
95
  # --- Eloquent (Laravel) ---
78
96
  eloquent:
79
97
  # Model property access style
@@ -205,10 +223,35 @@ ai_council:
205
223
  model: "gpt-4o"
206
224
  # mode: "manual" # uncomment to override ai_council.mode
207
225
 
226
+ # Default number of debate rounds per /council invocation.
227
+ #
228
+ # Round 1 sees the artefact alone. Round 2+ sees the artefact plus
229
+ # anonymised critiques from the previous round (provider/model
230
+ # identity stripped per the neutrality Iron Law). Applies identically
231
+ # to api and manual transports — manual mode runs round 1 across all
232
+ # members, the host agent consolidates, then round 2 starts with the
233
+ # anonymised round-1 critiques folded in.
234
+ #
235
+ # Default is 2 so council members critique each other at least once
236
+ # before convergence. The agent does NOT ask "how many rounds?" when
237
+ # the requested rounds <= min_rounds; pass `rounds:N` on the
238
+ # invocation (or `--rounds N` to the CLI) to override.
239
+ min_rounds: 2
240
+
241
+ # Higher floor for deep-reasoning artefacts (architecture review,
242
+ # refactoring proposals, bug-diagnosis runs). Activated when the
243
+ # consuming rule, skill, or command declares `council_depth: deep`
244
+ # in its frontmatter, or the user passes `--depth deep` to the CLI.
245
+ # Effective rounds = max(deep_min_rounds, min_rounds), so this floor
246
+ # is monotonic — lowering it below `min_rounds` has no effect.
247
+ # Standard tasks keep `min_rounds`; cost rises only when an artefact
248
+ # opts in. Set to `min_rounds` to disable the deep tier.
249
+ deep_min_rounds: 3
250
+
208
251
  # Hard cost ceiling per /council invocation. The orchestrator pauses
209
252
  # before any member whose projected spend would breach a cap and asks
210
253
  # the user to continue. `max_total_usd: 0` disables the USD ceiling
211
- # (token caps still apply).
254
+ # (token caps still apply). Total spend = rounds * single-round cost.
212
255
  #
213
256
  # Prices come from `agents/.agent-prices.md` (gitignored, refreshed weekly
214
257
  # by `python3 scripts/update_prices.py`; bootstrapped from
@@ -219,10 +262,11 @@ ai_council:
219
262
  max_calls: 10
220
263
  max_total_usd: 0.50
221
264
 
222
- # Retention for `agents/council-sessions/` audit folders. Sessions
223
- # older than this are pruned automatically on the next `save()`.
265
+ # Retention for council artefacts. Files older than this in
266
+ # `agents/council-{questions,responses,sessions}/` are pruned
267
+ # automatically on the next `save()` and on `task council-prune`.
224
268
  # `0` disables pruning (keep forever — disk grows unbounded).
225
- session_retention_days: 14
269
+ session_retention_days: 7
226
270
 
227
271
  # --- Onboarding ---
228
272
  #
@@ -264,3 +308,15 @@ commands:
264
308
  # Commands to never suggest. Still work when typed explicitly.
265
309
  # Example: ["/refine-ticket", "/work"]
266
310
  blocklist: []
311
+
312
+ # --- /create-pr behavior ---
313
+ #
314
+ # Pre-creation preview of the generated PR description.
315
+ # false (default): skip the title/body preview + adjust loop in
316
+ # /create-pr; use the generated content directly. Saves agent tokens
317
+ # by avoiding a re-render of the full description in chat.
318
+ # true: show title and body in copyable code blocks and ask for
319
+ # adjustments before creating the PR.
320
+ # /create-pr:description-only always previews — that is its sole purpose.
321
+ create_pr:
322
+ preview_description: false