@event4u/agent-config 9.16.0 → 9.18.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 (227) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/AGENTS.md +1 -1
  3. package/CHANGELOG.md +80 -130
  4. package/README.md +1 -1
  5. package/dist/agent-src/commands/agent-handoff.md +100 -48
  6. package/dist/agent-src/commands/challenge-me/vision.md +5 -0
  7. package/dist/agent-src/commands/commit.md +1 -1
  8. package/dist/agent-src/commands/condense.md +19 -64
  9. package/dist/agent-src/commands/evals/agent-handoff.json +13 -1
  10. package/dist/agent-src/commands/evals/rule-compliance-audit.json +46 -0
  11. package/dist/agent-src/commands/feature/plan.md +20 -0
  12. package/dist/agent-src/commands/feature/roadmap.md +19 -0
  13. package/dist/agent-src/commands/memory/promote.md +14 -1
  14. package/dist/agent-src/commands/mode.md +9 -5
  15. package/dist/agent-src/commands/optimize/deep.md +72 -11
  16. package/dist/agent-src/commands/pr/create.md +29 -0
  17. package/dist/agent-src/commands/roadmap/create.md +29 -0
  18. package/dist/agent-src/commands/rule-compliance-audit.md +28 -5
  19. package/dist/agent-src/contexts/authority/commit-mechanics.md +5 -5
  20. package/dist/agent-src/contexts/communication/rules-auto/guidelines-mechanics.md +1 -0
  21. package/dist/agent-src/contexts/communication/rules-auto/skill-quality-mechanics.md +1 -1
  22. package/dist/agent-src/contexts/communication/rules-auto/think-before-action-mechanics.md +6 -1
  23. package/dist/agent-src/contexts/communication/rules-auto/token-efficiency-mechanics.md +4 -1
  24. package/dist/agent-src/contexts/execution/autonomy-mechanics.md +27 -1
  25. package/dist/agent-src/contexts/execution/plan-confidence-gate.md +133 -0
  26. package/dist/agent-src/contexts/execution/roadmap-process-loop.md +5 -2
  27. package/dist/agent-src/profiles/agency.yml +3 -3
  28. package/dist/agent-src/profiles/content_creator.yml +2 -2
  29. package/dist/agent-src/profiles/developer.yml +2 -2
  30. package/dist/agent-src/profiles/finance.yml +1 -1
  31. package/dist/agent-src/profiles/founder.yml +2 -2
  32. package/dist/agent-src/profiles/ops.yml +2 -2
  33. package/dist/agent-src/rules/active-remediation.md +2 -0
  34. package/dist/agent-src/rules/architecture.md +4 -2
  35. package/dist/agent-src/rules/augment-edit-discipline.md +2 -0
  36. package/dist/agent-src/rules/autonomous-execution.md +1 -1
  37. package/dist/agent-src/rules/brand-consistency.md +10 -62
  38. package/dist/agent-src/rules/brand-source-of-truth.md +62 -11
  39. package/dist/agent-src/rules/broken-access-control.md +4 -0
  40. package/dist/agent-src/rules/cli-output-handling.md +5 -0
  41. package/dist/agent-src/rules/code-comment-discipline.md +3 -0
  42. package/dist/agent-src/rules/commit-conventions.md +2 -0
  43. package/dist/agent-src/rules/context-hygiene.md +3 -2
  44. package/dist/agent-src/rules/cross-source-consistency.md +3 -0
  45. package/dist/agent-src/rules/design-fidelity.md +2 -0
  46. package/dist/agent-src/rules/doc-screenshot-hygiene.md +2 -0
  47. package/dist/agent-src/rules/docker-commands.md +4 -0
  48. package/dist/agent-src/rules/domain-adoption-policy.md +2 -0
  49. package/dist/agent-src/rules/domain-safety-disclaimer.md +5 -2
  50. package/dist/agent-src/rules/domain-safety-pii.md +1 -1
  51. package/dist/agent-src/rules/engineering-safety-floor.md +2 -0
  52. package/dist/agent-src/rules/framework-neutrality-in-generic-skills.md +9 -0
  53. package/dist/agent-src/rules/image-likeness-and-rights.md +4 -0
  54. package/dist/agent-src/rules/improve-before-implement.md +4 -0
  55. package/dist/agent-src/rules/laravel-routing.md +4 -0
  56. package/dist/agent-src/rules/legal-safety-floor.md +3 -0
  57. package/dist/agent-src/rules/lethal-trifecta-guard.md +3 -0
  58. package/dist/agent-src/rules/media-governance-routing.md +5 -0
  59. package/dist/agent-src/rules/minimal-safe-diff.md +2 -0
  60. package/dist/agent-src/rules/no-roadmap-references.md +2 -0
  61. package/dist/agent-src/rules/notes-first-reasoning.md +2 -0
  62. package/dist/agent-src/rules/output-discipline.md +9 -2
  63. package/dist/agent-src/rules/php-coding.md +2 -0
  64. package/dist/agent-src/rules/prefer-enums-over-literals.md +3 -0
  65. package/dist/agent-src/rules/provider-lifecycle-discipline.md +5 -0
  66. package/dist/agent-src/rules/roadmap-ci-steps-policy.md +2 -0
  67. package/dist/agent-src/rules/roadmap-progress-sync.md +2 -0
  68. package/dist/agent-src/rules/rule-type-governance.md +2 -0
  69. package/dist/agent-src/rules/scale-discipline.md +3 -0
  70. package/dist/agent-src/rules/secret-vcs-guard.md +2 -0
  71. package/dist/agent-src/rules/security-sensitive-stop.md +9 -2
  72. package/dist/agent-src/rules/senior-engineering-discipline.md +6 -0
  73. package/dist/agent-src/rules/skill-quality.md +2 -0
  74. package/dist/agent-src/rules/source-confidentiality.md +4 -0
  75. package/dist/agent-src/rules/source-discovery-gate.md +3 -0
  76. package/dist/agent-src/rules/source-of-truth.md +2 -0
  77. package/dist/agent-src/rules/strategy-safety-floor.md +2 -0
  78. package/dist/agent-src/rules/think-before-action.md +5 -0
  79. package/dist/agent-src/rules/token-budget-discipline.md +2 -2
  80. package/dist/agent-src/rules/ui-audit-gate.md +2 -0
  81. package/dist/agent-src/rules/user-interaction.md +3 -4
  82. package/dist/agent-src/skills/build-buy-partner/SKILL.md +1 -1
  83. package/dist/agent-src/skills/copilot-agents-optimization/SKILL.md +4 -4
  84. package/dist/agent-src/skills/copilot-config/SKILL.md +1 -1
  85. package/dist/agent-src/skills/deep-reading-analyst/SKILL.md +7 -4
  86. package/dist/agent-src/skills/description-assist/SKILL.md +1 -1
  87. package/dist/agent-src/skills/design-intelligence/SKILL.md +6 -180
  88. package/dist/agent-src/skills/design-intelligence/references/context-and-registers.md +100 -0
  89. package/dist/agent-src/skills/design-intelligence/references/integration-mapping.md +91 -0
  90. package/dist/agent-src/skills/design-review/SKILL.md +4 -141
  91. package/dist/agent-src/skills/design-review/references/review-communication.md +92 -0
  92. package/dist/agent-src/skills/design-review/references/verification-automation.md +61 -0
  93. package/dist/agent-src/skills/existing-ui-audit/SKILL.md +8 -27
  94. package/dist/agent-src/skills/existing-ui-audit/references/anti-slop-cross-reference.md +31 -0
  95. package/dist/agent-src/skills/fe-design/SKILL.md +4 -289
  96. package/dist/agent-src/skills/fe-design/references/design-patterns.md +227 -0
  97. package/dist/agent-src/skills/fe-design/references/design-read-and-memory.md +75 -0
  98. package/dist/agent-src/skills/market-entry-analysis/SKILL.md +1 -1
  99. package/dist/agent-src/skills/persona-writing/SKILL.md +2 -2
  100. package/dist/agent-src/skills/readme-reviewer/SKILL.md +2 -1
  101. package/dist/agent-src/skills/roadmap-management/SKILL.md +10 -0
  102. package/dist/agent-src/skills/roadmap-writing/SKILL.md +12 -1
  103. package/dist/agent-src/skills/rule-writing/SKILL.md +4 -2
  104. package/dist/agent-src/skills/skill-reviewer/SKILL.md +1 -1
  105. package/dist/agent-src/skills/skill-writing/SKILL.md +2 -2
  106. package/dist/agent-src/skills/tailwind-engineer/SKILL.md +3 -1
  107. package/dist/agent-src/skills/token-optimizer/SKILL.md +2 -2
  108. package/dist/agent-src/skills/ui-component-architect/SKILL.md +6 -3
  109. package/dist/agent-src/templates/agent-settings.md +13 -15
  110. package/dist/agent-src/templates/agents/agent-project-settings.example.yml +6 -2
  111. package/dist/agent-src/templates/persona.md +2 -2
  112. package/dist/agent-src/templates/roadmaps.md +13 -1
  113. package/dist/agent-src/templates/rule.md +1 -1
  114. package/dist/agent-src/templates/scripts/work_engine/directives/ui/_fix_lane.ts +52 -0
  115. package/dist/agent-src/templates/scripts/work_engine/directives/ui/audit.ts +8 -0
  116. package/dist/agent-src/templates/scripts/work_engine/directives/ui/design.ts +6 -0
  117. package/dist/agent-src/templates/scripts/work_engine/intent/classify.ts +56 -4
  118. package/dist/agent-src/templates/skill.md +1 -1
  119. package/dist/cli/registry.js +3 -0
  120. package/dist/cli/registry.js.map +1 -1
  121. package/dist/cli-delegate/chunk-AIIUU73N.js +2040 -0
  122. package/dist/cli-delegate/{chunk-ZXXJLL5K.js → chunk-BSLUHV2F.js} +127 -1487
  123. package/dist/cli-delegate/{chunk-H574KOUH.js → chunk-ELMFOQPW.js} +35 -1
  124. package/dist/cli-delegate/chunk-LF2KKJ4Q.js +183 -0
  125. package/dist/cli-delegate/chunk-VSYT7OHO.js +1382 -0
  126. package/dist/cli-delegate/chunk-XGA2NTU4.js +3727 -0
  127. package/dist/cli-delegate/cmd_conformance.js +4 -3
  128. package/dist/cli-delegate/cmd_converge.js +3 -3
  129. package/dist/cli-delegate/cmd_doctor.js +3 -2
  130. package/dist/cli-delegate/cmd_explain.js +36 -36
  131. package/dist/cli-delegate/cmd_export.js +4 -4
  132. package/dist/cli-delegate/cmd_handoff.js +1169 -0
  133. package/dist/cli-delegate/cmd_memory_get.js +35 -3754
  134. package/dist/cli-delegate/cmd_migrate.js +2 -2
  135. package/dist/cli-delegate/cmd_prune.js +4 -4
  136. package/dist/cli-delegate/cmd_route_audit.js +249 -0
  137. package/dist/cli-delegate/cmd_route_explain.js +285 -0
  138. package/dist/cli-delegate/cmd_settings_migrate.js +4 -4
  139. package/dist/cli-delegate/cmd_sync.js +4 -4
  140. package/dist/cli-delegate/cmd_uninstall.js +4 -4
  141. package/dist/cli-delegate/cmd_update.js +3 -3
  142. package/dist/cli-delegate/cmd_upgrade.js +3 -3
  143. package/dist/cli-delegate/cmd_validate.js +4 -4
  144. package/dist/cli-delegate/cmd_versions.js +3 -3
  145. package/dist/discovery/deprecation-report.md +1 -1
  146. package/dist/discovery/discovery-manifest.json +84 -84
  147. package/dist/discovery/discovery-manifest.json.sha256 +1 -1
  148. package/dist/discovery/discovery-manifest.summary.md +1 -1
  149. package/dist/discovery/orphan-report.md +1 -1
  150. package/dist/discovery/packs.json +2 -2
  151. package/dist/discovery/trust-report.md +1 -1
  152. package/dist/discovery/workspaces.json +2 -2
  153. package/dist/hooks/dispatch.js +602 -507
  154. package/dist/install/install.mjs +34 -0
  155. package/dist/mcp/awesome-mcp-servers.row.md +1 -1
  156. package/dist/mcp/mcp-cloudflare-catalogue.json +2 -2
  157. package/dist/mcp/registry-manifest.json +4 -4
  158. package/dist/mcp/server.json +2 -2
  159. package/dist/mcp/server.mjs +25 -3
  160. package/dist/router.json +1 -1
  161. package/dist/scripts/_lib/agent_src.js +39 -6
  162. package/dist/scripts/_lib/agent_src.js.map +1 -1
  163. package/dist/server/schemas/settings.js +25 -0
  164. package/dist/server/schemas/settings.js.map +1 -1
  165. package/docs/guidelines/abstraction-thresholds.md +53 -0
  166. package/docs/guidelines/agent-infra/agent-interaction-and-decision-quality.md +1 -1
  167. package/docs/guidelines/agent-infra/asking-and-brevity-examples.md +7 -0
  168. package/docs/guidelines/agent-infra/context-hygiene-mechanics.md +2 -2
  169. package/docs/guidelines/agent-infra/minimal-safe-diff-mechanics.md +5 -3
  170. package/docs/guidelines/agent-infra/size-and-scope.md +8 -2
  171. package/docs/guidelines/component-oriented-and-oop-development.md +11 -6
  172. package/docs/guidelines/docs/readme-size-and-splitting.md +5 -2
  173. package/llms.txt +1 -0
  174. package/package.json +1 -1
  175. package/src/agent-src/templates/scripts/work_engine/directives/ui/_fix_lane.ts +52 -0
  176. package/src/agent-src/templates/scripts/work_engine/directives/ui/audit.ts +8 -0
  177. package/src/agent-src/templates/scripts/work_engine/directives/ui/design.ts +6 -0
  178. package/src/agent-src/templates/scripts/work_engine/intent/classify.ts +56 -4
  179. package/src/config/agent-settings.template.yml +68 -0
  180. package/src/config/evaluator-budgets.json +8 -11
  181. package/src/config/gate-coverage.yml +70 -0
  182. package/src/scripts/_cli/cmd_explain.ts +41 -36
  183. package/src/scripts/_cli/cmd_handoff.ts +405 -0
  184. package/src/scripts/_cli/cmd_route_audit.ts +290 -0
  185. package/src/scripts/_cli/cmd_route_explain.ts +269 -0
  186. package/src/scripts/_cli/handoff_generate.ts +453 -0
  187. package/src/scripts/_cli/handoff_sessions.ts +435 -0
  188. package/src/scripts/_dispatch.bash +32 -0
  189. package/src/scripts/_lib/agent_src.ts +36 -6
  190. package/src/scripts/_lib/git_env.ts +40 -0
  191. package/src/scripts/_lib/md_table.ts +27 -0
  192. package/src/scripts/_lib/planning_settings.ts +43 -0
  193. package/src/scripts/_lib/release_material.ts +156 -0
  194. package/src/scripts/_lib/router_match.ts +301 -0
  195. package/src/scripts/annotate_r1_outcomes.ts +258 -0
  196. package/src/scripts/check_completion_review.ts +1140 -0
  197. package/src/scripts/check_condensation.ts +2 -1
  198. package/src/scripts/check_finding_dispositions.ts +278 -0
  199. package/src/scripts/check_pack_size.ts +4 -3
  200. package/src/scripts/check_references.ts +1 -0
  201. package/src/scripts/check_release_highlights.ts +300 -0
  202. package/src/scripts/check_release_pr_shape.ts +4 -0
  203. package/src/scripts/check_release_surface_equality.ts +132 -0
  204. package/src/scripts/check_reply_consistency.ts +187 -138
  205. package/src/scripts/compile_router.ts +20 -3
  206. package/src/scripts/dispatch_r2_reviewer.ts +968 -0
  207. package/src/scripts/eval_ui_triviality.ts +156 -0
  208. package/src/scripts/handoff_context_hook.ts +148 -0
  209. package/src/scripts/hook_manifest.yaml +17 -7
  210. package/src/scripts/hooks/concern_registry.ts +2 -0
  211. package/src/scripts/lint_abstraction_thresholds.ts +327 -0
  212. package/src/scripts/lint_framework_leakage_allowlist.json +2 -2
  213. package/src/scripts/lint_plan_risk_register.ts +931 -0
  214. package/src/scripts/lint_profile_personas.ts +153 -0
  215. package/src/scripts/lint_token_budget_discipline.ts +148 -0
  216. package/src/scripts/lint_trigger_collisions.ts +257 -0
  217. package/src/scripts/release.ts +156 -32
  218. package/src/scripts/release_drill.ts +491 -0
  219. package/src/scripts/router_telemetry.ts +16 -290
  220. package/src/scripts/schemas/command.schema.json +33 -0
  221. package/src/scripts/schemas/rule.schema.json +10 -0
  222. package/src/scripts/self_review_gate.ts +41 -3
  223. package/src/scripts/skill_linter.ts +3 -1
  224. package/src/scripts/smoke/router.sh +1 -1
  225. package/src/scripts/update_counts.ts +60 -12
  226. package/src/server/schemas/settings.ts +41 -0
  227. package/dist/cli-delegate/{chunk-XX6TOPD7.js → chunk-WR6GTRHJ.js} +3 -3
@@ -11,9 +11,10 @@ triggers:
11
11
  - keyword: "symptoms"
12
12
  - keyword: "dosage"
13
13
  - keyword: "medication"
14
+ # `valuation` / `DCF` moved to finance-safety-floor (2026-08-04) — that
15
+ # pack floor already carried both; this rule keeps the advisory-shaped
16
+ # finance triggers the floor does not cover.
14
17
  - keyword: "investment memo"
15
- - keyword: "valuation"
16
- - keyword: "DCF"
17
18
  - keyword: "tax position"
18
19
  - keyword: "strategic recommendation"
19
20
  - keyword: "board memo"
@@ -39,6 +40,8 @@ applies_to_user_types:
39
40
  - "creator"
40
41
  workspaces: [agent-config-maintainer, construction, engineering, finance, founder, gtm, legal-review-prep, ops, product, small-business]
41
42
  packs: [meta]
43
+ collision_ok:
44
+ "review this contract": "contract review is advisory-shaped — the not-legal-advice footer floor"
42
45
  ---
43
46
 
44
47
  # Domain Safety — Advisory Disclaimer
@@ -127,7 +127,7 @@ k-anonymity rule of thumb: combinations of {birth date, ZIP/postal code, gender}
127
127
  | Internal analyst, BYO-device, cloud analytics | Pseudonymized + aggregated only |
128
128
  | External partner, signed DPA | Pseudonymized + minimum-necessary columns |
129
129
  | External partner, no DPA | Refuse; require DPA first |
130
- | Public dataset | Aggregated, k-anonymity ≥ 5, no quasi-identifier combos |
130
+ | Public dataset | Aggregated, k-anonymity ≥ 5 as the release floor, no quasi-identifier combos — a stricter bar (k ≥ 50) applies before *classifying* a metric as anonymous, per [`data-handling-judgment`](../skills/data-handling-judgment/SKILL.md) |
131
131
 
132
132
  ## Surface 4 — Legal privilege markers (legal pack)
133
133
 
@@ -26,6 +26,8 @@ routes_to:
26
26
  - "skill:threat-modeling"
27
27
  workspaces: [engineering]
28
28
  packs: [engineering-base]
29
+ collision_ok:
30
+ "migration": "a prod migration is a hard-floor evidence surface (rollback path, blast radius)"
29
31
  ---
30
32
 
31
33
  # Engineering Safety Floor
@@ -34,6 +34,15 @@ workspaces: [agent-config-maintainer]
34
34
  packs: [meta]
35
35
  enforced_by:
36
36
  - "validator:src/scripts/lint_framework_leakage.ts"
37
+ collision_ok:
38
+ "src/skills/": "generic skills must not mandate a stack — fires on skill edits"
39
+ "src/rules/": "rule edits are checked for framework leakage"
40
+ "src/agent-src/commands/": "command edits are checked for framework leakage"
41
+ "artisan": "artisan named in a generic artifact is leakage — the lint surface"
42
+ "eloquent": "eloquent named in a generic artifact is leakage — the lint surface"
43
+ "formrequest": "FormRequest named in a generic artifact is leakage — the lint surface"
44
+ "phpstan": "phpstan named in a generic artifact is leakage — the lint surface"
45
+ "rector": "rector named in a generic artifact is leakage — the lint surface"
37
46
  ---
38
47
 
39
48
  # framework-neutrality-in-generic-skills
@@ -18,6 +18,10 @@ applies_to_user_types:
18
18
  self_contained: true
19
19
  workspaces: [agent-config-maintainer, engineering, gtm]
20
20
  packs: [ai-image]
21
+ collision_ok:
22
+ "/image:": "rights/likeness gate on the image-generation surface"
23
+ "likeness": "its own core subject — the rights gate"
24
+ "scripts/ai-image/adapters/": "adapter edits touch the likeness-gated generation path"
21
25
  ---
22
26
 
23
27
  # Image Likeness and Rights
@@ -16,6 +16,10 @@ validator_ignore:
16
16
  reason: "Rule cites the authoring tree when describing where examples live."
17
17
  workspaces: [engineering]
18
18
  packs: [engineering-base]
19
+ collision_ok:
20
+ "migration": "a migration is a significant behavioural change — the pre-implementation checks apply"
21
+ "refactor": "refactor = significant change; the demand gate + three checks apply"
22
+ "implement": "its own core trigger — pre-implementation validation"
19
23
  ---
20
24
 
21
25
  # Improve Before Implement
@@ -16,6 +16,10 @@ trust:
16
16
  install:
17
17
  default: false
18
18
  removable: true
19
+ collision_ok:
20
+ "artisan": "artisan is a Laravel-flavoured PHP routing cue — load the laravel skill"
21
+ "eloquent": "eloquent is a Laravel routing cue"
22
+ "formrequest": "FormRequest is a Laravel routing cue"
19
23
  ---
20
24
 
21
25
  # Laravel Routing
@@ -28,6 +28,9 @@ packs: [legal-review-prep]
28
28
  trust:
29
29
  level: advisory
30
30
  human_review_required: true
31
+ collision_ok:
32
+ "controller": "'controller' is a GDPR role term (controller/processor) in the legal pack"
33
+ "review this contract": "the legal-pack contract-review gate — both floors must fire"
31
34
  ---
32
35
  <!-- agent-config:human-review-banner -->
33
36
  > HUMAN REVIEW REQUIRED · trust: advisory · owner: unknown
@@ -17,6 +17,9 @@ workspaces: [engineering]
17
17
  packs: [engineering-base]
18
18
  enforced_by:
19
19
  - "validator:src/scripts/lint_skill_frontmatter_safety.ts"
20
+ collision_ok:
21
+ "src/skills/": "skill authoring reviews tool grants and the egress leg"
22
+ "src/agent-src/commands/": "command authoring reviews the three trifecta legs"
20
23
  ---
21
24
 
22
25
  # Lethal-Trifecta Guard
@@ -31,6 +31,11 @@ workspaces: [agent-config-maintainer, engineering, gtm]
31
31
  packs: [ai-image, ai-video]
32
32
  enforced_by:
33
33
  - "validator:src/scripts/lint_media_policy_linkage.ts"
34
+ collision_ok:
35
+ "/image:": "routes the project-local media policy layer on the same surface"
36
+ "/audio:": "routes the media policy layer for audio surfaces"
37
+ "/video:": "routes the media policy layer for video surfaces"
38
+ "likeness": "likeness prompts must load the policy layer before generation"
34
39
  ---
35
40
 
36
41
  # Media Governance Routing
@@ -15,6 +15,8 @@ workspaces: [engineering]
15
15
  packs: [engineering-base]
16
16
  enforced_by:
17
17
  - "hook:minimal-safe-diff"
18
+ collision_ok:
19
+ "fix": "a fix is the smallest change that solves the stated problem"
18
20
  ---
19
21
 
20
22
  # Minimal Safe Diff
@@ -20,6 +20,8 @@ packs: [meta]
20
20
  enforced_by:
21
21
  - "validator:src/scripts/check_no_roadmap_refs.ts"
22
22
  - "validator:src/scripts/check_council_references.ts"
23
+ collision_ok:
24
+ "agents/roadmaps/": "roadmap edits are where transient-ref links get written"
23
25
  ---
24
26
 
25
27
  # No Transient References from Stable Artifacts
@@ -15,6 +15,8 @@ routes_to:
15
15
  - "skill:memory-consolidation"
16
16
  workspaces: [agent-config-maintainer, engineering]
17
17
  packs: [meta]
18
+ collision_ok:
19
+ "debug": "debug hypotheses belong in the session notes file"
18
20
  ---
19
21
 
20
22
  # Notes-First Reasoning
@@ -42,8 +42,15 @@ in a broken state:
42
42
  | `[Your component here]` / `<YourComponentName>` | Use the actual component name or write the component |
43
43
  | `Lorem ipsum` / `dolor sit amet` in UI output intended for review | Use realistic placeholder content or ask for content |
44
44
 
45
- The banned patterns above are also detected by `lint_output_slop.ts` (see
46
- `src/scripts/lint_output_slop.ts`) — violations cause a CI exit-code-2.
45
+ A subset of the banned patterns is detected by `lint_output_slop.ts` (see
46
+ `src/scripts/lint_output_slop.ts`) — Lorem-ipsum filler, bracket placeholders,
47
+ `// rest of component` / `// ... (unchanged)`-style implementation
48
+ placeholders, "for brevity" in code, standalone Unicode `…` lines, and
49
+ `// TODO … implement` stubs — violations cause a CI exit-code-2. Three rows
50
+ are NOT linter-detected (`/* similar pattern */`, `// rest follows same
51
+ pattern`, ASCII `...`), and the linter scans only the suite's authored
52
+ markdown (`src/skills/`, `src/rules/`, `docs/guidelines/`) as a backstop; for
53
+ generated output the ban itself is model-carried.
47
54
 
48
55
  ## On budget overflow — PAUSED protocol
49
56
 
@@ -16,6 +16,8 @@ trust:
16
16
  install:
17
17
  default: false
18
18
  removable: true
19
+ collision_ok:
20
+ "phpstan": "phpstan findings are the PHP pattern floor's own quality surface"
19
21
  ---
20
22
 
21
23
  # Php Coding
@@ -12,6 +12,9 @@ triggers:
12
12
  self_contained: true
13
13
  workspaces: [engineering]
14
14
  packs: [engineering-base]
15
+ collision_ok:
16
+ "migration": "migrations add columns — multi-state fields should land as enums from the start"
17
+ "category": "a category field is the canonical enum candidate"
15
18
  ---
16
19
 
17
20
  # Prefer Enums Over Literal Values
@@ -25,6 +25,11 @@ applies_to_user_types:
25
25
  - "maintainer"
26
26
  workspaces: [agent-config-maintainer, engineering, gtm]
27
27
  packs: [ai-image, ai-video]
28
+ collision_ok:
29
+ "/image:": "provider-tier gate fires on the same generation surface"
30
+ "/audio:": "provider-tier gate for audio providers"
31
+ "/video:": "provider-tier gate for video providers"
32
+ "scripts/ai-image/adapters/": "adapter edits are the lifecycle contract's surface"
28
33
  ---
29
34
 
30
35
  # Provider Lifecycle Discipline
@@ -28,6 +28,8 @@ self_contained: true
28
28
  workspaces: [agent-config-maintainer, engineering]
29
29
  packs: [meta]
30
30
  roles: [planner]
31
+ collision_ok:
32
+ "agents/roadmaps/": "roadmap steps must not schedule CI-shaped gates"
31
33
  ---
32
34
 
33
35
  # Roadmap CI-Steps Policy
@@ -14,6 +14,8 @@ packs: [meta]
14
14
  roles: [planner]
15
15
  enforced_by:
16
16
  - "hook:roadmap-progress"
17
+ collision_ok:
18
+ "agents/roadmaps/": "any roadmap touch regenerates the dashboard, same response"
17
19
  ---
18
20
 
19
21
  # Roadmap Progress Sync
@@ -8,6 +8,8 @@ routes_to:
8
8
  - "guideline:agent-infra/rule-type-governance"
9
9
  workspaces: [agent-config-maintainer]
10
10
  packs: [meta]
11
+ collision_ok:
12
+ "src/rules/": "the always-vs-auto choice fires on every rule edit"
11
13
  ---
12
14
 
13
15
  # Rule Type Governance
@@ -23,6 +23,9 @@ workspaces: [engineering]
23
23
  packs: [scale-discipline]
24
24
  trust:
25
25
  level: professional
26
+ collision_ok:
27
+ "migration": "R-A6 migration-safety owns reversibility/index/retention rules"
28
+ "schema": "schema change routes the persistence pack floor (R-A6/R-A2)"
26
29
  ---
27
30
 
28
31
  # Scale Discipline
@@ -25,6 +25,8 @@ workspaces: [engineering]
25
25
  packs: [engineering-base]
26
26
  enforced_by:
27
27
  - "validator:src/scripts/check_secret_leak.ts"
28
+ collision_ok:
29
+ "commit": "committing is the credential-leak moment this guard exists for"
28
30
  ---
29
31
 
30
32
  # Secret-in-VCS Guard
@@ -3,13 +3,18 @@ type: "auto"
3
3
  tier: "2a"
4
4
  alwaysApply: false
5
5
  description: "Security-sensitive paths (auth, billing, tenants, secrets, uploads, webhooks) — threat-model BEFORE editing"
6
+ # Trigger set disjoint from secret-vcs-guard by design (2026-08-04): bare
7
+ # `secret` / `password` belong to the VCS-write surface (secret-vcs-guard);
8
+ # this rule keeps the conversational security surface (editing auth/billing/
9
+ # tenant/webhook paths and secrets *infrastructure*, not committing a
10
+ # credential).
6
11
  triggers:
7
12
  - keyword: "auth"
8
13
  - keyword: "billing"
9
14
  - keyword: "tenant"
10
- - keyword: "secret"
11
15
  - keyword: "webhook"
12
- - keyword: "password"
16
+ - keyword: "oauth"
17
+ - keyword: "signing key"
13
18
  validator_ignore:
14
19
  - type: "substring"
15
20
  pattern: "../../docs/"
@@ -19,6 +24,8 @@ workspaces: [engineering]
19
24
  packs: [engineering-base]
20
25
  enforced_by:
21
26
  - "none"
27
+ collision_ok:
28
+ "tenant": "tenancy is a threat-model-before-edit surface"
22
29
  ---
23
30
 
24
31
  # Security-Sensitive Stop Rule
@@ -19,6 +19,12 @@ routes_to:
19
19
  - "skill:testing-anti-patterns"
20
20
  workspaces: [engineering]
21
21
  packs: [engineering-base]
22
+ collision_ok:
23
+ "migration": "migration = invisible-controls surface (reversible, indexed, tenant-scoped)"
24
+ "refactor": "a refactor must generalize, never overfit — the anchor applies"
25
+ "implement": "implementation = the invisible-controls checklist"
26
+ "endpoint": "endpoint row of the surface-to-controls table"
27
+ "component": "component work = generalize + reuse duty"
22
28
  ---
23
29
 
24
30
  # Senior Engineering Discipline
@@ -10,6 +10,8 @@ workspaces: [agent-config-maintainer]
10
10
  packs: [meta]
11
11
  enforced_by:
12
12
  - "validator:src/scripts/skill_linter.ts"
13
+ collision_ok:
14
+ "src/skills/": "every skill edit passes the executable-quality floor"
13
15
  ---
14
16
 
15
17
  # Skill Quality
@@ -19,6 +19,10 @@ workspaces: [agent-config-maintainer]
19
19
  packs: [meta]
20
20
  enforced_by:
21
21
  - "validator:src/scripts/check_no_external_sources.ts"
22
+ collision_ok:
23
+ "src/skills/": "skill prose must not name derivation sources"
24
+ "src/rules/": "rule prose must not name derivation sources"
25
+ "agents/roadmaps/": "harvest/comparison roadmaps stay anonymized"
22
26
  ---
23
27
 
24
28
  # Source Confidentiality
@@ -17,6 +17,9 @@ routes_to:
17
17
  - "skill:source-discovery"
18
18
  workspaces: [engineering]
19
19
  packs: [engineering-base]
20
+ collision_ok:
21
+ "endpoint": "an unconfirmed endpoint shape needs evidence before code"
22
+ "schema": "a DB schema is the canonical structure to verify from a real source"
20
23
  ---
21
24
 
22
25
  # Source Discovery — evidence before structure
@@ -14,6 +14,8 @@ workspaces: [agent-config-maintainer]
14
14
  packs: [meta]
15
15
  enforced_by:
16
16
  - "validator:src/scripts/check_condensation.ts"
17
+ collision_ok:
18
+ ".augment/": "the projection is read-only — edits belong in src/"
17
19
  ---
18
20
 
19
21
  # Source of Truth
@@ -33,6 +33,8 @@ packs: [founder-strategy]
33
33
  trust:
34
34
  level: advisory
35
35
  human_review_required: true
36
+ collision_ok:
37
+ "category": "'category' is positioning vocabulary (category design) in the strategy pack"
36
38
  ---
37
39
  <!-- agent-config:human-review-banner -->
38
40
  > HUMAN REVIEW REQUIRED · trust: advisory · owner: unknown
@@ -17,6 +17,11 @@ triggers:
17
17
  self_contained: true
18
18
  workspaces: [engineering]
19
19
  packs: [engineering-base]
20
+ collision_ok:
21
+ "refactor": "analyze-before-modify floor fires on any refactor"
22
+ "implement": "analyze-first floor on any implementation"
23
+ "debug": "targeted inspection over brute force while debugging"
24
+ "fix": "no blind trial-and-error on fixes — max 2 retries"
20
25
  ---
21
26
 
22
27
  # think-before-action
@@ -50,8 +50,8 @@ A skill claiming `rich` MUST satisfy ALL three:
50
50
  carry a `load_context` pointer instead.
51
51
 
52
52
  3. **≤ 15 % of the suite's skills may claim `rich`** — the CI linter counts
53
- rich-tagged skills and hard-fails if the ratio is exceeded. With ~230 skills, the
54
- cap is ~35. Do not claim `rich` for convenience; claim it only for
53
+ rich-tagged skills and hard-fails if the ratio is exceeded. With ~290 skills
54
+ (288 as-of 2026-08), the cap is ~43. Do not claim `rich` for convenience; claim it only for
55
55
  irreducible-complexity skills.
56
56
 
57
57
  ## Telegraph-speak amendment
@@ -14,6 +14,8 @@ routes_to:
14
14
  - "skill:typography-system"
15
15
  workspaces: [agent-config-maintainer, engineering]
16
16
  packs: [frontend-design]
17
+ collision_ok:
18
+ "component": "no new component without audit findings — its core subject"
17
19
  ---
18
20
 
19
21
  # UI Audit Gate
@@ -46,12 +46,11 @@ Mechanical backstop:
46
46
  (non-zero exit on any rule below). Self-scan is the primary gate;
47
47
  the script is the deterministic safety net.
48
48
 
49
- ## Question pacing — simple vs complex
49
+ ## Question pacing — one decision point per turn
50
50
 
51
- - **Simple, binary, or independent questions** may be grouped into a single reply with numbered options.
52
- - **Complex, dependent, or branching questions** must be asked **one at a time** — one question per turn — so each answer informs the next.
51
+ [`ask-when-uncertain`](ask-when-uncertain.md)'s Iron Law is canonical: **one question per turn**. What counts as "one question" is **one decision point** — a single numbered-options block is ONE question even when its options span multiple dimensions (a depth-and-framework matrix answered with a single number is one decision). Multiple separate asks in one reply, or a block whose answer would need a structured reply (`1a, 2b`), violate the kernel rule's self-check.
53
52
 
54
- If in doubt, prefer one question at a time over a long batched prompt.
53
+ If in doubt, split into serial turns — never a long batched prompt.
55
54
 
56
55
  ## Mechanics — rationale, failure modes, format details, examples
57
56
 
@@ -70,7 +70,7 @@ Integration cost is the most under-counted number. For each option:
70
70
  2. **Buy** — vendor integration (weeks to first value) + ongoing change-management cost + lock-in (cost to switch off).
71
71
  3. **Partner** — boundary management + divergence cost (what happens when partner changes their roadmap?).
72
72
 
73
- A buy decision with 2-week integration is rare; budget 4–8 weeks for non-trivial integrations and 3–6 months for enterprise-grade ones.
73
+ A buy decision with 2-week integration is rare; industry-typical ranges (public integration benchmarks — not a prediction of your timeline, per `direct-answers` § no duration estimates) run 4–8 weeks for non-trivial integrations and 3–6 months for enterprise-grade ones.
74
74
 
75
75
  ### Step 3: Inversion — name the failure mode for each option
76
76
 
@@ -47,7 +47,7 @@ Only after this analysis, proceed with optimization.
47
47
  |---|---|
48
48
  | **Audience** | Augment Agent, other AI agents |
49
49
  | **Can read `.augment/`?** | ✅ Yes — can follow references |
50
- | **Line budget** | Max 1000, ideal ≤ 500 |
50
+ | **Size budget** | ≤ 3,000 chars (package root; consumer template ≤ 2,500) — enforced by `lint_agents_md.ts`; see `size-and-scope.md` |
51
51
  | **Purpose** | Project-specific setup, Docker, testing, quality tools |
52
52
 
53
53
  **What belongs here:**
@@ -73,7 +73,7 @@ Only after this analysis, proceed with optimization.
73
73
  |---|---|
74
74
  | **Audience** | GitHub Copilot (Code Review bot + Chat) |
75
75
  | **Can read `.augment/`?** | ❌ Code Review cannot, ✅ Chat can |
76
- | **Line budget** | Max 1000, ideal ≤ 500 |
76
+ | **Line budget** | < 150 lines (ideal < 60); Copilot Code Review reads only the first 4,000 chars |
77
77
  | **Purpose** | Coding standards, review rules, architecture constraints |
78
78
 
79
79
  **What belongs here:**
@@ -127,8 +127,8 @@ both. Instead, reference with a table:
127
127
 
128
128
  | File | 🟢 Good | 🟡 Warning | 🔴 Over budget |
129
129
  |---|---|---|---|
130
- | `AGENTS.md` | ≤ 500 | 501–800 | > 1000 |
131
- | `copilot-instructions.md` | ≤ 500 | 501–800 | > 1000 |
130
+ | `AGENTS.md` | ≤ 2,800 chars | 2,801–3,000 chars | > 3,000 chars — `lint_agents_md.ts` fails (consumer template: warn 2,300 / fail 2,500) |
131
+ | `copilot-instructions.md` | < 60 lines | 60–150 lines | > 150 lines, or key rules past the 4,000-char Copilot read window |
132
132
 
133
133
  ### Reduction strategies (when over budget)
134
134
 
@@ -197,7 +197,7 @@ Copilot and Augment complement each other:
197
197
 
198
198
  - copilot-instructions.md is for GitHub Copilot, NOT for Augment — don't mix audiences.
199
199
  - Don't duplicate .augment/ content into copilot-instructions.md — it bloats the file and causes drift.
200
- - Copilot reads the ENTIRE instructions file on every request — keep it under 500 lines.
200
+ - Keep copilot-instructions.md under 150 lines (per `size-and-scope.md`) — Copilot Code Review reads only the first 4,000 characters, so put the highest-priority rules up top.
201
201
 
202
202
  ## Do NOT
203
203
 
@@ -49,11 +49,14 @@ Every framework module is a project-local guideline under `docs/guidelines/agent
49
49
 
50
50
  ### Step 1: Initialize Analysis
51
51
 
52
- Ask the user three things in **one** message (not three turns), per `ask-when-uncertain` Iron Law (one question per turn — these three are bundled into a single numbered-options block):
52
+ Open with ONE decision point (per `ask-when-uncertain` — a single numbered-options block answerable with a single number is one question; never three separate asks):
53
53
 
54
- 1. **Goal** — problem-solving · learning · writing · decision-making · curiosity.
55
- 2. **Depth** — L1 Quick (15 min) · L2 Standard (30 min) · L3 Deep (60 min) · L4 Research (120 min+).
56
- 3. **Framework override** — defaults are auto-suggested by content type (table below); user may name specific frameworks.
54
+ 1. **Standard read** — L2 depth, auto-selected frameworks (default).
55
+ 2. **Quick skim** — L1 depth, auto-selected frameworks.
56
+ 3. **Deep dive** — L3/L4 depth, auto-selected frameworks.
57
+ 4. **Custom** — name your goal (problem-solving · learning · writing · decision-making · curiosity), depth level, and/or specific frameworks in your reply.
58
+
59
+ Depth levels are scope descriptors, not wall-clock promises (per `direct-answers` — no duration estimates): L1 skim · L2 standard · L3 deep · L4 exhaustive-research.
57
60
 
58
61
  If the user does not answer, default to L2 Standard with auto-selected frameworks.
59
62
 
@@ -52,7 +52,7 @@ Normative source: [`skill-quality`](../../rules/skill-quality.md) § *Descriptio
52
52
 
53
53
  | Check | Pass when… |
54
54
  |---|---|
55
- | **Length** | ≤ 200 characters (soft cap; linter warns `description_too_long`) |
55
+ | **Length** | ≤ 200 characters (hard cap; linter errors `description_too_long`) |
56
56
  | **Trigger prefix** | Starts with "Use when …" or equivalent trigger phrasing |
57
57
  | **Trigger classes** | Names ≥ 2 of: domain, symptom, user phrasing, tool, file type |
58
58
  | **Undertrigger tail** | Ends with "… even if the user doesn't say `{name}`" or equivalent |