@event4u/agent-config 1.12.0 → 1.14.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 (260) hide show
  1. package/.agent-src/commands/agent-handoff.md +3 -0
  2. package/.agent-src/commands/agent-status.md +3 -0
  3. package/.agent-src/commands/agents-audit.md +4 -0
  4. package/.agent-src/commands/agents-cleanup.md +6 -1
  5. package/.agent-src/commands/agents-prepare.md +3 -0
  6. package/.agent-src/commands/analyze-reference-repo.md +4 -0
  7. package/.agent-src/commands/bug-fix.md +5 -1
  8. package/.agent-src/commands/bug-investigate.md +4 -0
  9. package/.agent-src/commands/chat-history-checkpoint.md +126 -0
  10. package/.agent-src/commands/chat-history-clear.md +5 -0
  11. package/.agent-src/commands/chat-history-resume.md +5 -0
  12. package/.agent-src/commands/chat-history.md +5 -0
  13. package/.agent-src/commands/check-current-md.md +126 -0
  14. package/.agent-src/commands/commit-in-chunks.md +98 -0
  15. package/.agent-src/commands/commit.md +4 -0
  16. package/.agent-src/commands/compress.md +3 -0
  17. package/.agent-src/commands/context-create.md +4 -0
  18. package/.agent-src/commands/context-refactor.md +4 -0
  19. package/.agent-src/commands/copilot-agents-init.md +3 -0
  20. package/.agent-src/commands/copilot-agents-optimize.md +3 -0
  21. package/.agent-src/commands/create-pr-description.md +4 -0
  22. package/.agent-src/commands/create-pr.md +4 -0
  23. package/.agent-src/commands/do-and-judge.md +4 -1
  24. package/.agent-src/commands/do-in-steps.md +3 -0
  25. package/.agent-src/commands/e2e-heal.md +4 -0
  26. package/.agent-src/commands/e2e-plan.md +4 -0
  27. package/.agent-src/commands/estimate-ticket.md +4 -1
  28. package/.agent-src/commands/feature-dev.md +4 -0
  29. package/.agent-src/commands/feature-explore.md +4 -0
  30. package/.agent-src/commands/feature-plan.md +4 -0
  31. package/.agent-src/commands/feature-refactor.md +4 -0
  32. package/.agent-src/commands/feature-roadmap.md +6 -0
  33. package/.agent-src/commands/fix-ci.md +4 -0
  34. package/.agent-src/commands/fix-portability.md +3 -0
  35. package/.agent-src/commands/fix-pr-bot-comments.md +4 -0
  36. package/.agent-src/commands/fix-pr-comments.md +4 -0
  37. package/.agent-src/commands/fix-pr-developer-comments.md +4 -0
  38. package/.agent-src/commands/fix-references.md +3 -0
  39. package/.agent-src/commands/fix-seeder.md +4 -0
  40. package/.agent-src/commands/implement-ticket.md +39 -13
  41. package/.agent-src/commands/jira-ticket.md +4 -0
  42. package/.agent-src/commands/judge.md +3 -0
  43. package/.agent-src/commands/memory-add.md +5 -3
  44. package/.agent-src/commands/memory-full.md +5 -2
  45. package/.agent-src/commands/memory-promote.md +7 -6
  46. package/.agent-src/commands/mode.md +3 -0
  47. package/.agent-src/commands/module-create.md +4 -0
  48. package/.agent-src/commands/module-explore.md +4 -0
  49. package/.agent-src/commands/onboard.md +24 -0
  50. package/.agent-src/commands/optimize-agents.md +4 -0
  51. package/.agent-src/commands/optimize-augmentignore.md +3 -0
  52. package/.agent-src/commands/optimize-rtk-filters.md +3 -0
  53. package/.agent-src/commands/optimize-skills.md +4 -0
  54. package/.agent-src/commands/override-create.md +4 -0
  55. package/.agent-src/commands/override-manage.md +4 -0
  56. package/.agent-src/commands/package-reset.md +3 -0
  57. package/.agent-src/commands/package-test.md +3 -0
  58. package/.agent-src/commands/prepare-for-review.md +4 -0
  59. package/.agent-src/commands/project-analyze.md +4 -0
  60. package/.agent-src/commands/project-health.md +4 -0
  61. package/.agent-src/commands/propose-memory.md +6 -8
  62. package/.agent-src/commands/quality-fix.md +4 -0
  63. package/.agent-src/commands/refine-ticket.md +4 -1
  64. package/.agent-src/commands/review-changes.md +4 -0
  65. package/.agent-src/commands/review-routing.md +4 -0
  66. package/.agent-src/commands/roadmap-create.md +7 -0
  67. package/.agent-src/commands/roadmap-execute.md +12 -1
  68. package/.agent-src/commands/rule-compliance-audit.md +4 -0
  69. package/.agent-src/commands/set-cost-profile.md +3 -0
  70. package/.agent-src/commands/sync-agent-settings.md +3 -0
  71. package/.agent-src/commands/sync-gitignore.md +3 -0
  72. package/.agent-src/commands/tests-create.md +4 -0
  73. package/.agent-src/commands/tests-execute.md +4 -0
  74. package/.agent-src/commands/threat-model.md +4 -0
  75. package/.agent-src/commands/update-form-request-messages.md +4 -0
  76. package/.agent-src/commands/upstream-contribute.md +4 -0
  77. package/.agent-src/commands/work.md +161 -0
  78. package/.agent-src/guidelines/agent-infra/engineering-memory-data-format.md +2 -6
  79. package/.agent-src/guidelines/agent-infra/layered-settings.md +0 -1
  80. package/.agent-src/guidelines/agent-infra/memory-access.md +0 -7
  81. package/.agent-src/guidelines/agent-infra/role-contracts.md +2 -4
  82. package/.agent-src/guidelines/agent-infra/self-improvement-pipeline.md +0 -1
  83. package/.agent-src/guidelines/php/patterns/strategy.md +180 -2
  84. package/.agent-src/personas/README.md +0 -1
  85. package/.agent-src/rules/artifact-drafting-protocol.md +7 -2
  86. package/.agent-src/rules/artifact-engagement-recording.md +133 -0
  87. package/.agent-src/rules/ask-when-uncertain.md +18 -13
  88. package/.agent-src/rules/augment-portability.md +8 -0
  89. package/.agent-src/rules/autonomous-execution.md +158 -0
  90. package/.agent-src/rules/chat-history.md +147 -118
  91. package/.agent-src/rules/cli-output-handling.md +26 -3
  92. package/.agent-src/rules/command-suggestion.md +133 -0
  93. package/.agent-src/rules/commit-policy.md +99 -0
  94. package/.agent-src/rules/direct-answers.md +114 -0
  95. package/.agent-src/rules/docs-sync.md +36 -0
  96. package/.agent-src/rules/downstream-changes.md +10 -9
  97. package/.agent-src/rules/improve-before-implement.md +9 -6
  98. package/.agent-src/rules/language-and-tone.md +81 -6
  99. package/.agent-src/rules/non-destructive-by-default.md +117 -0
  100. package/.agent-src/rules/package-ci-checks.md +4 -0
  101. package/.agent-src/rules/preservation-guard.md +20 -0
  102. package/.agent-src/rules/roadmap-progress-sync.md +103 -30
  103. package/.agent-src/rules/scope-control.md +42 -1
  104. package/.agent-src/rules/size-enforcement.md +1 -3
  105. package/.agent-src/rules/skill-quality.md +3 -8
  106. package/.agent-src/rules/ui-audit-before-build.md +106 -0
  107. package/.agent-src/rules/user-interaction.md +81 -3
  108. package/.agent-src/scripts/update_roadmap_progress.py +48 -6
  109. package/.agent-src/skills/blade-ui/SKILL.md +30 -5
  110. package/.agent-src/skills/command-routing/SKILL.md +32 -0
  111. package/.agent-src/skills/command-writing/SKILL.md +41 -2
  112. package/.agent-src/skills/description-assist/SKILL.md +21 -0
  113. package/.agent-src/skills/estimate-ticket/SKILL.md +0 -1
  114. package/.agent-src/skills/existing-ui-audit/SKILL.md +187 -0
  115. package/.agent-src/skills/fe-design/SKILL.md +72 -60
  116. package/.agent-src/skills/finishing-a-development-branch/SKILL.md +4 -0
  117. package/.agent-src/skills/flux/SKILL.md +31 -4
  118. package/.agent-src/skills/guideline-writing/SKILL.md +24 -2
  119. package/.agent-src/skills/learning-to-rule-or-skill/SKILL.md +51 -9
  120. package/.agent-src/skills/livewire/SKILL.md +30 -4
  121. package/.agent-src/skills/md-language-check/SKILL.md +103 -0
  122. package/.agent-src/skills/php-coder/SKILL.md +24 -0
  123. package/.agent-src/skills/react-shadcn-ui/SKILL.md +121 -0
  124. package/.agent-src/skills/refine-prompt/SKILL.md +220 -0
  125. package/.agent-src/skills/refine-ticket/SKILL.md +2 -4
  126. package/.agent-src/skills/roadmap-management/SKILL.md +10 -3
  127. package/.agent-src/skills/rule-writing/SKILL.md +23 -1
  128. package/.agent-src/skills/skill-writing/SKILL.md +1 -3
  129. package/.agent-src/skills/upstream-contribute/SKILL.md +1 -1
  130. package/.agent-src/skills/using-git-worktrees/SKILL.md +3 -1
  131. package/.agent-src/templates/AGENTS.md +24 -6
  132. package/.agent-src/templates/agent-settings.md +149 -0
  133. package/.agent-src/templates/github-workflows/roadmap-progress-check.yml +63 -0
  134. package/.agent-src/templates/hooks/pre-commit-roadmap-progress +60 -0
  135. package/.agent-src/templates/roadmaps.md +8 -2
  136. package/.agent-src/templates/scripts/implement_ticket/__init__.py +63 -26
  137. package/.agent-src/templates/scripts/implement_ticket/__main__.py +8 -2
  138. package/.agent-src/templates/scripts/memory_lookup.py +382 -21
  139. package/.agent-src/templates/scripts/memory_status.py +110 -9
  140. package/.agent-src/templates/scripts/telemetry/__init__.py +42 -0
  141. package/.agent-src/templates/scripts/telemetry/aggregator.py +154 -0
  142. package/.agent-src/templates/scripts/telemetry/boundary.py +171 -0
  143. package/.agent-src/templates/scripts/telemetry/engagement.py +238 -0
  144. package/.agent-src/templates/scripts/telemetry/report_renderer.py +170 -0
  145. package/.agent-src/templates/scripts/telemetry/settings.py +112 -0
  146. package/.agent-src/templates/scripts/telemetry_record.py +166 -0
  147. package/.agent-src/templates/scripts/telemetry_report.py +161 -0
  148. package/.agent-src/templates/scripts/telemetry_status.py +142 -0
  149. package/.agent-src/templates/scripts/work_engine/__init__.py +58 -0
  150. package/.agent-src/templates/scripts/work_engine/__main__.py +9 -0
  151. package/.agent-src/templates/scripts/work_engine/cli.py +592 -0
  152. package/.agent-src/templates/scripts/{implement_ticket → work_engine}/delivery_state.py +7 -0
  153. package/.agent-src/templates/scripts/work_engine/directives/__init__.py +33 -0
  154. package/.agent-src/templates/scripts/work_engine/directives/backend/__init__.py +98 -0
  155. package/.agent-src/templates/scripts/{implement_ticket/steps → work_engine/directives/backend}/analyze.py +1 -1
  156. package/.agent-src/templates/scripts/{implement_ticket/steps → work_engine/directives/backend}/implement.py +2 -2
  157. package/.agent-src/templates/scripts/{implement_ticket/steps → work_engine/directives/backend}/memory.py +1 -1
  158. package/.agent-src/templates/scripts/{implement_ticket/steps → work_engine/directives/backend}/plan.py +1 -1
  159. package/.agent-src/templates/scripts/work_engine/directives/backend/refine.py +396 -0
  160. package/.agent-src/templates/scripts/{implement_ticket/steps → work_engine/directives/backend}/report.py +36 -4
  161. package/.agent-src/templates/scripts/{implement_ticket/steps → work_engine/directives/backend}/test.py +2 -2
  162. package/.agent-src/templates/scripts/{implement_ticket/steps → work_engine/directives/backend}/verify.py +2 -2
  163. package/.agent-src/templates/scripts/work_engine/directives/mixed/__init__.py +116 -0
  164. package/.agent-src/templates/scripts/work_engine/directives/mixed/contract.py +254 -0
  165. package/.agent-src/templates/scripts/work_engine/directives/mixed/stitch.py +229 -0
  166. package/.agent-src/templates/scripts/work_engine/directives/mixed/ui.py +231 -0
  167. package/.agent-src/templates/scripts/work_engine/directives/ui/__init__.py +113 -0
  168. package/.agent-src/templates/scripts/work_engine/directives/ui/_passthrough.py +44 -0
  169. package/.agent-src/templates/scripts/work_engine/directives/ui/apply.py +241 -0
  170. package/.agent-src/templates/scripts/work_engine/directives/ui/audit.py +414 -0
  171. package/.agent-src/templates/scripts/work_engine/directives/ui/design.py +335 -0
  172. package/.agent-src/templates/scripts/work_engine/directives/ui/polish.py +510 -0
  173. package/.agent-src/templates/scripts/work_engine/directives/ui/review.py +468 -0
  174. package/.agent-src/templates/scripts/work_engine/directives/ui_trivial/__init__.py +119 -0
  175. package/.agent-src/templates/scripts/work_engine/directives/ui_trivial/_skipped.py +37 -0
  176. package/.agent-src/templates/scripts/work_engine/directives/ui_trivial/apply.py +165 -0
  177. package/.agent-src/templates/scripts/work_engine/directives/ui_trivial/refine.py +66 -0
  178. package/.agent-src/templates/scripts/work_engine/directives/ui_trivial/report.py +62 -0
  179. package/.agent-src/templates/scripts/work_engine/directives/ui_trivial/test.py +115 -0
  180. package/.agent-src/templates/scripts/work_engine/dispatcher.py +331 -0
  181. package/.agent-src/templates/scripts/work_engine/hooks/__init__.py +54 -0
  182. package/.agent-src/templates/scripts/work_engine/hooks/builtin/__init__.py +32 -0
  183. package/.agent-src/templates/scripts/work_engine/hooks/builtin/_chat_history_base.py +103 -0
  184. package/.agent-src/templates/scripts/work_engine/hooks/builtin/chat_history_append.py +44 -0
  185. package/.agent-src/templates/scripts/work_engine/hooks/builtin/chat_history_halt_append.py +42 -0
  186. package/.agent-src/templates/scripts/work_engine/hooks/builtin/chat_history_heartbeat.py +50 -0
  187. package/.agent-src/templates/scripts/work_engine/hooks/builtin/chat_history_turn_check.py +49 -0
  188. package/.agent-src/templates/scripts/work_engine/hooks/builtin/directive_set_guard.py +53 -0
  189. package/.agent-src/templates/scripts/work_engine/hooks/builtin/halt_surface_audit.py +50 -0
  190. package/.agent-src/templates/scripts/work_engine/hooks/builtin/state_shape_validation.py +52 -0
  191. package/.agent-src/templates/scripts/work_engine/hooks/builtin/trace.py +84 -0
  192. package/.agent-src/templates/scripts/work_engine/hooks/context.py +66 -0
  193. package/.agent-src/templates/scripts/work_engine/hooks/events.py +44 -0
  194. package/.agent-src/templates/scripts/work_engine/hooks/exceptions.py +79 -0
  195. package/.agent-src/templates/scripts/work_engine/hooks/registry.py +60 -0
  196. package/.agent-src/templates/scripts/work_engine/hooks/runner.py +73 -0
  197. package/.agent-src/templates/scripts/work_engine/hooks/settings.py +141 -0
  198. package/.agent-src/templates/scripts/work_engine/intent/__init__.py +47 -0
  199. package/.agent-src/templates/scripts/work_engine/intent/classify.py +280 -0
  200. package/.agent-src/templates/scripts/work_engine/migration/__init__.py +8 -0
  201. package/.agent-src/templates/scripts/work_engine/migration/v0_to_v1.py +199 -0
  202. package/.agent-src/templates/scripts/work_engine/resolvers/__init__.py +22 -0
  203. package/.agent-src/templates/scripts/work_engine/resolvers/diff.py +106 -0
  204. package/.agent-src/templates/scripts/work_engine/resolvers/file.py +113 -0
  205. package/.agent-src/templates/scripts/work_engine/resolvers/prompt.py +90 -0
  206. package/.agent-src/templates/scripts/work_engine/scoring/__init__.py +14 -0
  207. package/.agent-src/templates/scripts/work_engine/scoring/confidence.py +300 -0
  208. package/.agent-src/templates/scripts/work_engine/stack/__init__.py +31 -0
  209. package/.agent-src/templates/scripts/work_engine/stack/detect.py +187 -0
  210. package/.agent-src/templates/scripts/work_engine/state.py +641 -0
  211. package/.claude-plugin/marketplace.json +105 -2
  212. package/AGENTS.md +36 -8
  213. package/CHANGELOG.md +558 -0
  214. package/README.md +146 -4
  215. package/composer.json +3 -0
  216. package/config/agent-settings.template.yml +45 -0
  217. package/config/gitignore-block.txt +4 -0
  218. package/docs/architecture.md +28 -1
  219. package/docs/development.md +1 -1
  220. package/docs/getting-started.md +3 -2
  221. package/docs/installation.md +86 -0
  222. package/docs/showcase.md +204 -0
  223. package/package.json +9 -1
  224. package/scripts/agent-config +274 -0
  225. package/scripts/audit_cloud_compatibility.py +288 -0
  226. package/scripts/build_cloud_bundle.py +458 -0
  227. package/scripts/build_linear_digest.py +263 -0
  228. package/scripts/chat_history.py +796 -7
  229. package/scripts/check_compression.py +139 -0
  230. package/scripts/check_iron_law_prominence.py +143 -0
  231. package/scripts/check_md_language.py +159 -0
  232. package/scripts/check_portability.py +36 -0
  233. package/scripts/check_reply_consistency.py +140 -0
  234. package/scripts/command_suggester/__init__.py +51 -0
  235. package/scripts/command_suggester/cooldown.py +132 -0
  236. package/scripts/command_suggester/loader.py +70 -0
  237. package/scripts/command_suggester/match.py +180 -0
  238. package/scripts/command_suggester/rank.py +120 -0
  239. package/scripts/command_suggester/render.py +86 -0
  240. package/scripts/command_suggester/sanitize.py +113 -0
  241. package/scripts/command_suggester/settings.py +125 -0
  242. package/scripts/command_suggester/types.py +78 -0
  243. package/scripts/hooks/augment-chat-history.sh +56 -0
  244. package/scripts/install-hooks.sh +67 -0
  245. package/scripts/install.py +150 -33
  246. package/scripts/lint_marketplace.py +27 -0
  247. package/scripts/memory_lookup.py +143 -7
  248. package/scripts/memory_status.py +76 -14
  249. package/scripts/migrate_command_suggestions.py +151 -0
  250. package/scripts/postinstall.sh +16 -0
  251. package/scripts/schemas/command.schema.json +41 -0
  252. package/scripts/skill_linter.py +67 -0
  253. package/scripts/sync_agent_settings.py +42 -12
  254. package/templates/consumer-settings/augment-cli-hooks.json +54 -0
  255. package/templates/consumer-settings/claude-settings.json +55 -1
  256. package/.agent-src/templates/scripts/implement_ticket/cli.py +0 -171
  257. package/.agent-src/templates/scripts/implement_ticket/dispatcher.py +0 -134
  258. package/.agent-src/templates/scripts/implement_ticket/steps/__init__.py +0 -49
  259. package/.agent-src/templates/scripts/implement_ticket/steps/refine.py +0 -140
  260. /package/.agent-src/templates/scripts/{implement_ticket → work_engine}/persona_policy.py +0 -0
@@ -0,0 +1,114 @@
1
+ ---
2
+ type: "always"
3
+ description: "Always — direct, unembellished answers. No flattery, no invented facts (verify the load-bearing ones with tools, otherwise ask). Emojis only as functional markers — status, warning, mandated. Brevity is the default."
4
+ alwaysApply: true
5
+ source: package
6
+ ---
7
+
8
+ # Direct Answers
9
+
10
+ Three Iron Laws govern every reply. They override conversation
11
+ momentum, politeness defaults, and the urge to fill space.
12
+
13
+ ## Iron Law 1 — No Flattery
14
+
15
+ ```
16
+ NEVER OPEN WITH "GREAT QUESTION", "FASCINATING", "EXCELLENT POINT".
17
+ NEVER PRAISE THE USER'S IDEA TO MAKE THEM HAPPY.
18
+ ANSWER THE SUBSTANCE. SHIP THE TRUTH.
19
+ ```
20
+
21
+ - No positive adjectives about the user, their question, idea, or
22
+ work product as an opener.
23
+ - No subjective judgments on the user's code, decisions, or work
24
+ products ("nice approach", "clean design", "boring") unless the
25
+ user asked for an evaluation.
26
+ - "Good catch" / "you're right" only when literally true and
27
+ load-bearing for the answer.
28
+ - Acknowledge mistakes without performative apologies. One sentence,
29
+ switch behavior.
30
+
31
+ Failure mode: praise as a hedge before delivering bad news. Drop the
32
+ cushion, deliver the news.
33
+
34
+ ## Iron Law 2 — No Invented Facts (severity-tiered)
35
+
36
+ ```
37
+ DO NOT CLAIM WHAT YOU HAVEN'T VERIFIED.
38
+ THE MORE LOAD-BEARING THE CLAIM, THE HARDER YOU VERIFY.
39
+ WHEN VERIFICATION IS NOT WORTH THE COST → ASK.
40
+ ```
41
+
42
+ | Severity | Examples | Required action |
43
+ |---|---|---|
44
+ | **High — load-bearing** | File paths, function/method signatures, version numbers, security claims, API contracts, "this test passes/fails", "this method exists" | MUST verify with tools (`view`, `grep`, `codebase-retrieval`, command output) before claiming. If too expensive → ask the user. |
45
+ | **Medium — project-shape** | "This project uses X for Y", general conventions, file location guesses | Verify if one tool call reaches it; otherwise hedge explicitly ("I'd guess X — not checked"). |
46
+ | **Low — well-known idioms** | Generic language/framework idioms, illustrative examples, well-documented public APIs | Inference acceptable. Mark as inference if not 100% sure. |
47
+
48
+ User override: "just guess", "rough estimate is fine", "skip the
49
+ verify" → drop to Low for that turn.
50
+
51
+ Hedging language is explicit and short: "haven't verified X",
52
+ "guess, not checked". Never bare "probably" / "vermutlich" without
53
+ naming what's unverified.
54
+
55
+ ## Iron Law 3 — Brevity by Default
56
+
57
+ ```
58
+ THE SHORTEST REPLY THAT FULLY ANSWERS THE QUESTION IS THE RIGHT REPLY.
59
+ LONG ANSWERS ARE A FAILURE MODE, NOT A SIGN OF EFFORT.
60
+ ```
61
+
62
+ - Skip restating the user's question.
63
+ - Skip announcing intent ("Let me…", "I will now…"). Just do.
64
+ - Skip explaining why a tool was used — the call result speaks.
65
+ - Skip post-hoc summary unless the user must recheck a decision.
66
+ - Multi-step work → bullet points, not paragraphs.
67
+ - Question with one true answer → one sentence + the answer.
68
+
69
+ `token-efficiency` covers the loop side (no repeated tool calls);
70
+ this rule covers the per-reply-length side. **Never overrides**
71
+ `user-interaction` (numbered options stay) or command-mandated
72
+ steps — brevity ≠ skipping required questions.
73
+
74
+ ## Emoji Scope — Whitelist + Blacklist
75
+
76
+ Emojis are **functional markers**, never decoration.
77
+
78
+ **Whitelist — allowed and expected:**
79
+
80
+ - Mandated markers from rules/scripts: `📒` (chat-history heartbeat,
81
+ verbatim per `chat-history`), mode markers from
82
+ `role-mode-adherence`.
83
+ - CLI status icons: `❌`, `✅`, `⚠️` — two-space rule from
84
+ `language-and-tone` § other-language-rules still applies.
85
+ - Roadmap status checkboxes: `[x]`, `[~]`, `[-]`.
86
+
87
+ **Blacklist — never in the agent's own prose:**
88
+
89
+ - Opening flair: ✨, 🚀, 🎉, 💡, 🔥, 👍.
90
+ - Empathy signaling: ❤️, 🤗, 😊.
91
+ - Section dividers / headline ornaments.
92
+ - Reaction reactions to the user's message.
93
+
94
+ If unsure whether a given emoji is functional → assume blacklist.
95
+
96
+ ## Failure modes the user will call out
97
+
98
+ - "Great question, …" / "Das ist eine gute Frage" — Iron Law 1.
99
+ - Stating a function name without `grep`/`view` — Iron Law 2.
100
+ - Three paragraphs for a one-line answer — Iron Law 3.
101
+ - ✨/🎉/💡 to mark "this is interesting" — emoji blacklist.
102
+
103
+ When called out: acknowledge once in the user's language, switch,
104
+ no excuses (mirrors `language-and-tone` § slip handling).
105
+
106
+ ## Interactions
107
+
108
+ - `language-and-tone` — language mirroring, `.md` always English,
109
+ CLI-icon two-space rule.
110
+ - `ask-when-uncertain` — resolution surface for Iron Law 2 gaps.
111
+ - `think-before-action` — how to verify code-behavior claims.
112
+ - `verify-before-complete` — completion-claim evidence gate.
113
+ - `token-efficiency` — loop-side brevity.
114
+ - `user-interaction` — numbered-options Iron Law overrides brevity.
@@ -61,6 +61,42 @@ exist in `.augment/templates/agent-settings.md`:
61
61
  **This step is mandatory.** If the template gains a new key but the local `.agent-settings.yml`
62
62
  is not updated, the user cannot discover the new setting exists.
63
63
 
64
+ ## Distribution manifests and hook registries
65
+
66
+ `.augment/`-internal sync (counts, contexts, cross-refs) is one half. The
67
+ other half is **distribution manifests** that ship the package to consumers
68
+ and **hook registries** that wire engine code into platform lifecycles.
69
+ These are not auto-derived — they drift silently until CI catches them, and
70
+ on cooperative platforms (no pre-commit) they can sit broken in a branch
71
+ for hours.
72
+
73
+ When a **skill** is added, renamed, or deleted under
74
+ `.agent-src.uncompressed/skills/`:
75
+
76
+ | Manifest | Required update |
77
+ |---|---|
78
+ | `.claude-plugin/marketplace.json` | Add/remove the `./.claude/skills/<name>` entry in `plugins[0].skills[]`, alphabetical position. Caught by `scripts/lint_marketplace.py` in CI. |
79
+ | `.augment-plugin/marketplace.json` | Skill-name-agnostic — no update needed. Touch only when plugin metadata (description, tags) changes. |
80
+ | `.github/plugin/marketplace.json` | Same as above — metadata-only manifest. |
81
+
82
+ When a **hook** is added, renamed, or deleted under
83
+ `.agent-src.uncompressed/templates/scripts/work_engine/hooks/builtin/`:
84
+
85
+ | Registry | Required update |
86
+ |---|---|
87
+ | `templates/scripts/work_engine/hooks/builtin/__init__.py` | New hook class → add the import + `__all__` entry. Single source of truth for engine-side registration. |
88
+ | `templates/consumer-settings/claude-settings.json` | Only when a **new platform event** is wired (e.g. first time a hook listens on `SessionEnd`). Existing hooks reuse the `./agent-config chat-history:hook --platform claude` dispatcher — no per-hook entry needed. |
89
+ | `templates/consumer-settings/augment-cli-hooks.json` | Same logic — new platform event → new `command` block; new hook on existing event → no update. |
90
+
91
+ Failure mode that motivated this section: a skill on disk without its
92
+ `marketplace.json` entry passes local edits, builds, and tests — only
93
+ CI catches it via `lint_marketplace`. The cooperative path is
94
+ "agent updates the manifest in the same response as the skill"; the
95
+ structural backstop is a pre-commit hook installed by
96
+ `scripts/install-hooks.sh` that runs `lint_marketplace` on every
97
+ commit. Run the installer once per clone; bypass for an unrelated WIP
98
+ commit is `git commit --no-verify`.
99
+
64
100
  ## Content consistency
65
101
 
66
102
  **CRITICAL — MANDATORY CHECK:** When a rule, skill, or guideline's **content** is changed
@@ -7,6 +7,16 @@ source: package
7
7
 
8
8
  # Downstream Changes
9
9
 
10
+ ## The Iron Law
11
+
12
+ ```
13
+ EVERY EDIT IS INCOMPLETE UNTIL ALL DOWNSTREAM CHANGES ARE MADE.
14
+ MISSING A CALLER, A TEST, OR AN IMPORT IS A CRITICAL FAILURE.
15
+ ```
16
+
17
+ Do NOT move on to the next task, claim completion, or suggest
18
+ committing until every caller, test, import, and reference is updated.
19
+
10
20
  ## Rule
11
21
 
12
22
  After EVERY code edit, find **ALL downstream changes** needed. Missing a caller, a test,
@@ -59,12 +69,3 @@ After completing all downstream changes:
59
69
  2. **No broken tests** — run the test suite
60
70
  3. **No broken types** — PHPStan Level 9 catches signature mismatches
61
71
  4. **No stale references** — grep for the old name/namespace to confirm zero results
62
-
63
- ## The iron law
64
-
65
- ```
66
- Every edit is incomplete until all downstream changes are made.
67
- ```
68
-
69
- Do NOT move on to the next task, claim completion, or suggest committing
70
- until every caller, test, import, and reference is updated.
@@ -40,10 +40,11 @@ Before coding, quickly verify:
40
40
  - Does similar functionality already exist?
41
41
  - Does it follow established patterns in the codebase?
42
42
  - Does it contradict existing conventions?
43
- - Do **multiple valid patterns/frameworks** already exist (Tailwind + Flux, multiple form libs, competing state stores)? If yes do NOT pick arbitrarily, ask.
43
+ - Do **multiple valid patterns/frameworks** already exist (e.g. Tailwind + Flux, multiple form libraries, competing state stores)? If yes, do NOT pick one arbitrarily ask which to use.
44
+ - Is the change a **second branch on the same discriminator** — second `match`/`switch` arm, second `if/elseif`, or second class hardcoded to one enum value (e.g. `Provider::FOO`, `'stripe'`)? If yes, run the Strategy sniff test before adding the branch — see [`guidelines/php/patterns/strategy.md`](../guidelines/php/patterns/strategy.md#sniff-test--when-an-enumstring-discriminator-wants-to-become-a-strategy).
44
45
 
45
46
  **If misfit** → show evidence (file references), propose alternative.
46
- **If multiple valid options** → list them, ask which. See [`no blind implementation`](../guidelines/agent-infra/agent-interaction-and-decision-quality.md#2-no-blind-implementation).
47
+ **If multiple valid options** → list them, ask which to use. See [`no blind implementation`](../guidelines/agent-infra/agent-interaction-and-decision-quality.md#2-no-blind-implementation).
47
48
 
48
49
  ### 3. Is the approach sound?
49
50
 
@@ -90,7 +91,9 @@ The agent is a thought partner, not a gatekeeper. After presenting concerns:
90
91
 
91
92
  ## Creating new agent artifacts
92
93
 
93
- For skill/rule/command/guideline creation or major rewrite, the architecture-fit
94
- check is handled by [`artifact-drafting-protocol`](artifact-drafting-protocol.md)
95
- Phase B (Research) — scans `.agent-src.uncompressed/` for overlap before
96
- creating a new file.
94
+ When the request is to create or significantly rewrite a skill, rule, command,
95
+ or guideline, the "fit the existing architecture" check above is handled by
96
+ [`artifact-drafting-protocol`](artifact-drafting-protocol.md)'s Phase B
97
+ (Research). Follow that protocol instead of improvising a one-shot check — it
98
+ scans `.agent-src.uncompressed/` for overlap and reports candidates to extend
99
+ before creating a new file.
@@ -10,20 +10,46 @@ source: package
10
10
  ## Iron Law — mirror the user's language, ALWAYS
11
11
 
12
12
  ```
13
- MIRROR THE LANGUAGE OF THE USER'S LAST MESSAGE. ALWAYS.
14
- BEFORE SENDING ANY REPLY, RUN THE PRE-SEND GATE BELOW.
13
+ MIRROR THE LANGUAGE OF THE USER'S LAST/CURRENT MESSAGE. ALWAYS.
14
+ THE FIRST TOKEN OF EVERY REPLY MUST BE IN THAT LANGUAGE.
15
15
  A REPLY IN THE WRONG LANGUAGE IS A RULE VIOLATION, NOT A SLIP.
16
+ NO MOMENTUM EXCEPTION. NO TECHNICAL-CONTEXT EXCEPTION.
17
+ NO "SWITCH MID-PARAGRAPH". NO "LAST 20 TURNS WERE ENGLISH".
16
18
  ```
17
19
 
18
- **Overrides** conversation momentum, tool-output habits, convenience.
19
- First thing to check on every reply, last thing to check before sending.
20
+ **Overrides** conversation momentum, tool-output habits, prior-reply
21
+ language, codebase language, open-file language, files-just-edited
22
+ language, convenience. First thing to check on every reply, last thing
23
+ to check before sending.
24
+
25
+ Canonical failure: agent edited English `.md` for many turns; user
26
+ types short German (`3`, `weiter`, `mach das`, `und jetzt X`); agent
27
+ answers English because momentum wins. **Trigger is the user's last
28
+ message, not the turn count.** Length irrelevant — `3` after a German
29
+ question still means German continues.
30
+
31
+ ### Source of language truth — chat messages ONLY
32
+
33
+ ```
34
+ THE LANGUAGE SIGNAL IS THE USER'S CHAT MESSAGES. NOTHING ELSE.
35
+ OPEN FILES, ROADMAPS, .md CONTENT, TOOL OUTPUT, CODE, COMMIT MESSAGES,
36
+ TICKETS, PR DESCRIPTIONS, FILE NAMES — NONE OF THEM COUNT.
37
+ ```
38
+
39
+ `.md` files in this repo are English by rule (see below) — that says
40
+ nothing about chat language. Same for: file contents read via `view` /
41
+ `grep`, quoted commits / tickets / PRs / branches, code identifiers,
42
+ the agent's own previous replies. Only the most recent **chat message**
43
+ sets the language. User opens an English roadmap and types German →
44
+ reply in German.
20
45
 
21
46
  ### Pre-send gate — MANDATORY before every reply
22
47
 
23
48
  Run silently **before** emitting any tokens:
24
49
 
25
- 1. **Detect** — language of user's last message.
26
- German signals: "ich", "Du", "nicht", "warum", "wie", "ist", umlauts.
50
+ 1. **Detect** — language of user's last **chat message** (not the open
51
+ file, not the roadmap, not the prior reply).
52
+ German signals: "ich", "Du", "nicht", "warum", "wie", "ist", umlauts. <!-- md-language-check: ignore -->
27
53
  English signals: "I", "you", "is", "the", "how".
28
54
  Mixed → mirror the **dominant** language; tie → German wins (project default).
29
55
  2. **Check** — is drafted prose (not code, not file contents) in that language?
@@ -66,6 +92,10 @@ Run silently **before** emitting any tokens:
66
92
  code identifiers as-is; translate everything else.
67
93
  - Assuming English because "the codebase is English" — codebase language ≠
68
94
  conversation language.
95
+ - Mirroring the **open file** the IDE reports — open files are background
96
+ context, not chat messages.
97
+ - Mirroring the **roadmap or ticket** being executed — artefacts are English
98
+ by `.md` rule; chat language is whatever the user wrote.
69
99
 
70
100
  ## Other language rules
71
101
 
@@ -102,3 +132,48 @@ The `.md` source files are the English blueprint — they define WHAT to say, no
102
132
  > 1. Interactive — ask before each comment
103
133
  > 2. Automatic — handle all independently
104
134
  ```
135
+
136
+ ### Quoted user-input examples — same rule, with one labeled exception
137
+
138
+ Common drift: a rule documents trigger phrases and writes them as quoted
139
+ German examples inside English prose. **Not allowed**, even demonstrative.
140
+
141
+ **Wrong** (DE quote embedded in EN prose):
142
+
143
+ ```md
144
+ Single-decision delegation ("für diesen Schritt entscheide du") →
145
+ handle that step autonomously.
146
+
147
+ A standing "arbeite selbstständig" never lifts the floor.
148
+ ```
149
+
150
+ Two correct paths:
151
+
152
+ 1. **Translate to English.** Trigger recognition is semantic; the agent
153
+ matches intent across languages regardless of example wording.
154
+ 2. **Labeled `DE: … · EN: …` anchor block** — only when multilingual
155
+ recognition is the point:
156
+
157
+ ```md
158
+ - DE: "arbeite selbstständig" · "frag nicht jedes Mal" · "tue es einfach"
159
+ - EN: "work autonomously" · "don't ask" · "just do it"
160
+ ```
161
+
162
+ Labeled-anchor block is the **only** allowed location for German prose in
163
+ an English `.md`. Body text, example sentences, prompt templates,
164
+ agent-rendered strings, failure modes must be English. Reference phrases
165
+ abstractly later (e.g. "a standing autonomy directive") and link back.
166
+
167
+ ### Detection heuristic
168
+
169
+ Before saving an `.md` file under `.augment/`, `.agent-src/`,
170
+ `.agent-src.uncompressed/`, or `agents/`, scan for:
171
+
172
+ - Umlauts (`ä`, `ö`, `ü`, `Ä`, `Ö`, `Ü`, `ß`) outside fenced code, file
173
+ paths, and labeled anchor blocks.
174
+ - German function words in unquoted prose: `für`, `nicht`, `dass`,
175
+ `wenn`, `sollte`, `werden`, `arbeite`, `selbstständig`, `jetzt`,
176
+ `einfach`, `weiter`, `lösche`, `frag`, `schreib`, `mach`.
177
+ - Non-English quoted phrases in body text when surrounding prose is English.
178
+
179
+ Hit → translate the fragment or move into a `DE: … · EN: …` block.
@@ -0,0 +1,117 @@
1
+ ---
2
+ type: "always"
3
+ description: "Agent is never destructive and never endangers production systems — Hard Floor that always asks for production-trunk merges, deploys, pushes, prod data/infra changes, whimsical bulk deletions, and commits containing bulk deletions or infra changes; no autonomy setting, roadmap step, or standing instruction can bypass it"
4
+ alwaysApply: true
5
+ source: package
6
+ ---
7
+
8
+ # Non-Destructive by Default
9
+
10
+ Agent is **never** destructive and **never** endangers user work or
11
+ production systems. Universal safety floor — applies in every mode,
12
+ every conversation, every turn. Autonomy settings, "just keep going"
13
+ directives, roadmap authorizations, and standing permissions narrow
14
+ other rules; **none lift this one**.
15
+
16
+ ## The Iron Law
17
+
18
+ ```
19
+ HARD FLOOR OVERRIDES EVERYTHING.
20
+ NO AUTONOMY SETTING, NO ROADMAP STEP, NO STANDING INSTRUCTION,
21
+ NO "JUST KEEP GOING" CAN BYPASS IT.
22
+ ```
23
+
24
+ Triggers below require explicit user confirmation **on this turn** —
25
+ not from a previous turn, not from a roadmap, not from a standing
26
+ autonomy directive (anchor list of recognized phrases:
27
+ [`autonomous-execution`](autonomous-execution.md#opt-in-detection--match-by-intent-not-exact-string)):
28
+
29
+ | Trigger | Examples |
30
+ |---|---|
31
+ | **Production-branch merge** | merging into `main`, `master`, `prod`, `production`, `release/*`, or any branch the project marks as deployment trunk |
32
+ | **Deploy / release** | `terraform apply` on prod, `kubectl apply` on prod, deploy scripts, release commands, tag pushes that trigger CI deployment |
33
+ | **Push to remote** | any `git push` (also covered by [`scope-control`](scope-control.md), restated so the floor never weakens) |
34
+ | **Production data / infra** | prod DB writes or migrations, prod config, secrets rotation, IAM / role / policy, DNS, anything in a `prod`-scoped path or pipeline |
35
+ | **Whimsical or unscoped bulk deletion** | `rm -rf <dir>`, `git rm -r`, glob deletions, `DROP TABLE`, `TRUNCATE`, `git reset --hard` past unpushed work — when **not required by the current task**. Task-aligned bulk deletions are allowed during WIP — see below. |
36
+ | **Commit containing bulk deletions or infra changes** | a commit whose diff removes a directory, deletes ≥5 unrelated files, or touches Terraform / Pulumi / k8s manifests / Ansible / cloud-config — surface the diff and confirm even when [`commit-policy`](commit-policy.md) otherwise authorizes the commit |
37
+
38
+ Standing "just keep going" + next step crosses the floor → STOP,
39
+ surface what's about to happen (one numbered-options block per
40
+ [`user-interaction`](user-interaction.md)), wait. Other rules still
41
+ apply to every other step.
42
+
43
+ ## Not in scope — deterministic regeneration
44
+
45
+ Output regenerated from a tracked source (compression, code-gen,
46
+ formatter passes, lock-file rebuilds) is not destructive — the source
47
+ of truth makes it reversible. Lives in
48
+ [`autonomous-execution`](autonomous-execution.md#trivial--just-act-do-not-ask)
49
+ § Trivial, not here. Per-file diff approval is theater.
50
+
51
+ ## Bulk deletions during WIP — allowed if task-connected
52
+
53
+ Deletions inside an **active, user-stated task** are allowed in the
54
+ working tree, **even multiple files or multiple folders**. Floor
55
+ moves to the **commit** (row 6 above), not the in-progress edit.
56
+
57
+ **Allowed during WIP (no floor on the edit):**
58
+
59
+ - A roadmap step or current task explicitly names files / folders to remove
60
+ - Refactor naturally drops deprecated code the user already agreed is dead
61
+ - Cleanup of generated artifacts — `node_modules/`, `dist/`, `.next/`,
62
+ build caches, `vendor/` reinstall — never source code
63
+ - Single-file edits, single-class refactors, deleting **one** file the
64
+ user just named
65
+ - Renames and moves (technically delete + add)
66
+
67
+ **Floor fires on the edit when the deletion is:**
68
+
69
+ - Whimsical — "while I was in there", drive-by cleanup not part of the task
70
+ - Unnamed scope — "delete all the old tests" without a list, glob
71
+ across unrelated files, "clean up the legacy folder" with no inventory
72
+ - ≥5 unrelated files in one operation, outside current task scope
73
+ - Content destruction — `DROP TABLE`, `TRUNCATE`, `git reset --hard`
74
+ past unpushed work, database wipes (destroys *content*, not just tree)
75
+
76
+ Ambiguous → floor wins. Ask.
77
+
78
+ **The commit of task-aligned bulk deletions still needs its own ask.**
79
+ A roadmap or task authorizes the *edit*; only the user-this-turn
80
+ authorizes the *commit* (row 6). Surface the diff (paths + counts), get
81
+ confirmation, then commit.
82
+
83
+ ## Failure modes
84
+
85
+ - Treating a standing autonomy directive as cover for a Hard-Floor
86
+ action. Standing autonomy never lifts the floor; merging to `main`,
87
+ deploying, pushing, prod-data edits, or whimsical `rm -rf <dir>`
88
+ always ask.
89
+ - Reading a roadmap step that says "deploy to staging" or
90
+ "merge into main" as authorization. Roadmap can sequence work;
91
+ only the user-this-turn authorizes the floor crossing.
92
+ - Refusing to delete files the user already named because "the floor
93
+ fires on `rm`". It does not — task-aligned WIP deletions are
94
+ allowed, even multi-folder. Floor fires when the deletion is
95
+ whimsical, unscoped, or about to be committed.
96
+ - Committing a diff that removes a directory, deletes ≥5 unrelated
97
+ files, or touches Terraform / k8s manifests / Ansible without
98
+ surfacing the diff first — even when [`commit-policy`](commit-policy.md)
99
+ otherwise authorizes commits (e.g. `/commit-in-chunks`, roadmap
100
+ pre-scan, an explicit "commit this now"). Bulk-deletion / infra
101
+ commits need their own ask, every time.
102
+ - Reading a roadmap step listing files to delete as authorization to
103
+ *commit* the deletion. Step authorizes the *edit*; the commit is
104
+ row 6 of the Hard Floor and needs its own confirmation.
105
+
106
+ ## Cloud Behavior
107
+
108
+ The Hard Floor applies on every surface, including Claude.ai Web,
109
+ Skills API, and any cloud agent. No "cloud override" — the floor
110
+ predates and outranks any platform-specific autonomy default.
111
+
112
+ ## See also
113
+
114
+ - [`autonomous-execution`](autonomous-execution.md) — defers to this rule for the floor; covers trivial-vs-blocking and opt-in detection only
115
+ - [`commit-policy`](commit-policy.md) — four commit-exception paths; row 6 of the floor still applies on top of all four
116
+ - [`scope-control`](scope-control.md) — git-ops permission gate; the floor is the never-overridable subset
117
+ - [`user-interaction`](user-interaction.md) — numbered-options Iron Law for the confirmation prompt
@@ -9,10 +9,14 @@ source: package
9
9
 
10
10
  Before **any** push/PR in agent-config: run ALL CI checks locally.
11
11
 
12
+ ## The Iron Law
13
+
12
14
  ```
13
15
  NEVER push without running ALL CI checks locally first.
14
16
  ```
15
17
 
18
+ Every CI pipeline failure is preventable by running these checks before pushing.
19
+
16
20
  ## Required checks
17
21
 
18
22
  ### 1. Sync
@@ -9,8 +9,25 @@ source: package
9
9
 
10
10
  Transformations (merge, refactor, compress, split) must produce output **at least as strong** as input.
11
11
 
12
+ ## Iron Laws — every passage stays, caveman is fine
13
+
14
+ Sections marked **Iron Law** (heading matches `# Iron Law`, `# Iron Laws`,
15
+ `# The Iron Law`, any level, numbered like `Iron Law 1`, `Iron Law 2`)
16
+ are **non-negotiable**, strictest preservation:
17
+
18
+ - [ ] **Heading verbatim** — exact text, exact level. Drop heading → law gone, even if code block survives.
19
+ - [ ] **Fenced code blocks byte-for-byte** — the law itself.
20
+ - [ ] **Negation clauses kept** — `NO X`, `NEVER Y`, `NOT Z` stay. Load-bearing exception denials, not filler.
21
+ - [ ] **Every passage stays** — every paragraph, every list item, every fenced code block from source survives in compressed output, in order. One paragraph → one paragraph; one bullet → one bullet. Dropping whole sentences, merging two paragraphs, skipping a list item is forbidden, even if surviving prose still "makes the point".
22
+ - [ ] **No Iron Law downgrades** — `## Iron Law` MUST NOT become `### Iron Law`, `**Iron Law:**`, or inline prose. Heading level is part of prominence.
23
+
24
+ **Caveman style encouraged for Iron Law bodies** — drop articles ("the", "a"), shorten phrasing, primitive grammar, terse cave-speak. Word count not a budget; structural unit count is. Every paragraph, bullet, code block from source present → compress as hard as you want. Forbidden is **deletion**: rationale paragraph stays, canonical-failure example stays, every "NEVER X" bullet stays.
25
+
26
+ `scripts/check_compression.py` enforces mechanically — any violation is `error`, not warning.
27
+
12
28
  ## Checklist — verify before completing
13
29
 
30
+ - [ ] **Iron Law sections** preserved per rules above — heading, body, fenced blocks, rationale
14
31
  - [ ] Strongest validation step preserved
15
32
  - [ ] Strongest example preserved
16
33
  - [ ] Strongest anti-pattern / "Do NOT" preserved
@@ -21,6 +38,9 @@ Transformations (merge, refactor, compress, split) must produce output **at leas
21
38
 
22
39
  ## Reject if
23
40
 
41
+ - Iron Law heading removed or downgraded
42
+ - Paragraph, list item, or fenced code block dropped from Iron Law section
43
+ - Negation clauses or canonical-failure prose stripped from Iron Law
24
44
  - Validation, example, or anti-pattern removed without replacement
25
45
  - Decision logic weakened
26
46
  - Scope broadened by merging unrelated concerns