@event4u/agent-config 3.3.0 → 4.2.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 (561) hide show
  1. package/.agent-src/README.md +2 -2
  2. package/.agent-src/commands/agent-handoff.md +31 -2
  3. package/.agent-src/commands/agent-status.md +5 -5
  4. package/.agent-src/commands/agents/audit.md +8 -8
  5. package/.agent-src/commands/agents/init.md +25 -1
  6. package/.agent-src/commands/agents/optimize.md +3 -3
  7. package/.agent-src/commands/agents/user.md +1 -1
  8. package/.agent-src/commands/agents.md +1 -1
  9. package/.agent-src/commands/analyze-reference-repo.md +1 -1
  10. package/.agent-src/commands/check-current-md.md +8 -8
  11. package/.agent-src/commands/{compress.md → condense.md} +55 -55
  12. package/.agent-src/commands/context/create.md +7 -4
  13. package/.agent-src/commands/context/refactor.md +3 -1
  14. package/.agent-src/commands/feature/dev.md +1 -1
  15. package/.agent-src/commands/feature/explore.md +1 -1
  16. package/.agent-src/commands/feature/plan.md +10 -8
  17. package/.agent-src/commands/feature/refactor.md +3 -1
  18. package/.agent-src/commands/feature/roadmap.md +7 -4
  19. package/.agent-src/commands/fix/portability.md +3 -3
  20. package/.agent-src/commands/fix/refs.md +4 -4
  21. package/.agent-src/commands/ghostwriter.md +2 -2
  22. package/.agent-src/commands/memory/learn-low-impact.md +3 -3
  23. package/.agent-src/commands/module/explore.md +34 -8
  24. package/.agent-src/commands/optimize/agents-dir.md +9 -7
  25. package/.agent-src/commands/optimize/augmentignore.md +2 -2
  26. package/.agent-src/commands/optimize/skills.md +9 -9
  27. package/.agent-src/commands/post-as.md +1 -1
  28. package/.agent-src/commands/project-analyze.md +2 -2
  29. package/.agent-src/commands/project-health.md +3 -2
  30. package/.agent-src/commands/research/deep.md +1 -1
  31. package/.agent-src/commands/research/report.md +1 -1
  32. package/.agent-src/commands/research.md +1 -1
  33. package/.agent-src/commands/roadmap/ai-council.md +1 -1
  34. package/.agent-src/commands/roadmap/create.md +9 -4
  35. package/.agent-src/commands/rule-compliance-audit.md +1 -1
  36. package/.agent-src/commands/upstream-contribute.md +14 -14
  37. package/.agent-src/commands/video/from-script.md +1 -1
  38. package/.agent-src/commands/video/scene.md +1 -1
  39. package/.agent-src/commands/video/stitch.md +1 -1
  40. package/.agent-src/commands/video/storyboard.md +1 -1
  41. package/.agent-src/commands/video.md +1 -1
  42. package/.agent-src/contexts/augment-infrastructure.md +1 -1
  43. package/.agent-src/contexts/authority/commit-mechanics.md +15 -0
  44. package/.agent-src/contexts/authority/kernel-rule-edits.md +3 -3
  45. package/.agent-src/contexts/authority/scope-mechanics.md +1 -1
  46. package/.agent-src/contexts/communication/rules-auto/augment-source-of-truth-mechanics.md +28 -28
  47. package/.agent-src/contexts/communication/rules-auto/skill-quality-mechanics.md +4 -4
  48. package/.agent-src/contexts/communication/rules-auto/think-before-action-mechanics.md +2 -2
  49. package/.agent-src/contexts/contracts/artifact-engagement-flow.md +6 -6
  50. package/.agent-src/contexts/contracts/command-suggestion-flow.md +3 -3
  51. package/.agent-src/contexts/contracts/emergency-triage-block.md +4 -4
  52. package/.agent-src/contexts/contracts/frugality-charter.md +3 -3
  53. package/.agent-src/contexts/documentation-hierarchy.md +14 -7
  54. package/.agent-src/contexts/execution/autonomy-examples.md +1 -1
  55. package/.agent-src/contexts/execution/cheap-question-mechanics.md +39 -2
  56. package/.agent-src/contexts/execution/roadmap-process-loop.md +28 -5
  57. package/.agent-src/contexts/override-system.md +5 -5
  58. package/.agent-src/ghostwriter/fictional-fixture-v1.md +1 -1
  59. package/.agent-src/personas/advisors/first-principles.md +1 -1
  60. package/.agent-src/personas/hollywood-director.md +1 -1
  61. package/.agent-src/rules/architecture.md +5 -1
  62. package/.agent-src/rules/augment-edit-discipline.md +5 -5
  63. package/.agent-src/rules/augment-source-of-truth.md +15 -15
  64. package/.agent-src/rules/commit-conventions.md +1 -1
  65. package/.agent-src/rules/commit-policy.md +10 -0
  66. package/.agent-src/rules/domain-adoption-policy.md +3 -3
  67. package/.agent-src/rules/fast-path-marker-visibility.md +3 -3
  68. package/.agent-src/rules/finance-safety-floor.md +1 -1
  69. package/.agent-src/rules/framework-neutrality-in-generic-skills.md +8 -8
  70. package/.agent-src/rules/git-history-discipline.md +1 -1
  71. package/.agent-src/rules/improve-before-implement.md +2 -2
  72. package/.agent-src/rules/language-and-tone.md +2 -2
  73. package/.agent-src/rules/media-governance-routing.md +5 -5
  74. package/.agent-src/rules/no-attribution-footers.md +1 -0
  75. package/.agent-src/rules/no-cheap-questions.md +3 -0
  76. package/.agent-src/rules/no-decorative-emojis-in-git-surfaces.md +111 -0
  77. package/.agent-src/rules/no-pr-progress-comments.md +118 -0
  78. package/.agent-src/rules/no-roadmap-references.md +3 -3
  79. package/.agent-src/rules/non-destructive-by-default.md +1 -1
  80. package/.agent-src/rules/persona-governance.md +3 -3
  81. package/.agent-src/rules/preservation-guard.md +15 -15
  82. package/.agent-src/rules/roadmap-ci-steps-policy.md +7 -3
  83. package/.agent-src/rules/rule-type-governance.md +1 -1
  84. package/.agent-src/rules/skill-quality.md +1 -1
  85. package/.agent-src/rules/{caveman-speak.md → telegraph-speak.md} +15 -15
  86. package/.agent-src/rules/token-optimizer-maintenance.md +6 -6
  87. package/.agent-src/skills/agent-docs-writing/SKILL.md +17 -11
  88. package/.agent-src/skills/agents-md-thin-root/SKILL.md +9 -9
  89. package/.agent-src/skills/check-refs/SKILL.md +2 -2
  90. package/.agent-src/skills/code-refactoring/SKILL.md +2 -2
  91. package/.agent-src/skills/command-writing/SKILL.md +19 -19
  92. package/.agent-src/skills/comp-banding/SKILL.md +1 -1
  93. package/.agent-src/skills/condense-memory/SKILL.md +131 -0
  94. package/.agent-src/skills/context-authoring/SKILL.md +2 -2
  95. package/.agent-src/skills/context-document/SKILL.md +5 -3
  96. package/.agent-src/skills/copilot-agents-optimization/SKILL.md +3 -3
  97. package/.agent-src/skills/description-assist/SKILL.md +2 -2
  98. package/.agent-src/skills/git-workflow/SKILL.md +1 -1
  99. package/.agent-src/skills/guideline-writing/SKILL.md +5 -5
  100. package/.agent-src/skills/learning-to-rule-or-skill/SKILL.md +4 -4
  101. package/.agent-src/skills/lint-skills/SKILL.md +3 -3
  102. package/.agent-src/skills/md-language-check/SKILL.md +2 -2
  103. package/.agent-src/skills/module-detect-on-the-fly/SKILL.md +138 -0
  104. package/.agent-src/skills/module-management/SKILL.md +166 -94
  105. package/.agent-src/skills/override-management/SKILL.md +1 -1
  106. package/.agent-src/skills/persona-writing/SKILL.md +5 -5
  107. package/.agent-src/skills/positioning-strategy/SKILL.md +1 -1
  108. package/.agent-src/skills/project-docs/SKILL.md +6 -4
  109. package/.agent-src/skills/readme-reviewer/SKILL.md +2 -2
  110. package/.agent-src/skills/roadmap-management/SKILL.md +13 -1
  111. package/.agent-src/skills/roadmap-writing/SKILL.md +4 -2
  112. package/.agent-src/skills/rule-refactor/SKILL.md +5 -5
  113. package/.agent-src/skills/rule-writing/SKILL.md +18 -18
  114. package/.agent-src/skills/script-writing/SKILL.md +1 -1
  115. package/.agent-src/skills/skill-improvement-pipeline/SKILL.md +6 -6
  116. package/.agent-src/skills/skill-management/SKILL.md +21 -21
  117. package/.agent-src/skills/skill-reviewer/SKILL.md +2 -2
  118. package/.agent-src/skills/skill-writing/SKILL.md +8 -8
  119. package/.agent-src/skills/skill-writing/evals/triggers.json +1 -1
  120. package/.agent-src/skills/token-optimizer/SKILL.md +4 -4
  121. package/.agent-src/skills/unit-economics-modeling/SKILL.md +1 -1
  122. package/.agent-src/skills/upstream-contribute/SKILL.md +17 -17
  123. package/.agent-src/templates/AGENTS.md +1 -0
  124. package/.agent-src/templates/agent-settings.md +24 -13
  125. package/.agent-src/templates/agents/agent-project-settings.example.yml +61 -2
  126. package/.agent-src/templates/command.md +5 -5
  127. package/.agent-src/templates/contexts.md +1 -1
  128. package/.agent-src/templates/copilot-instructions.md +8 -8
  129. package/.agent-src/templates/features.md +1 -1
  130. package/.agent-src/templates/hooks/pre-commit-frontmatter +2 -2
  131. package/.agent-src/templates/hooks/pre-commit-roadmap-progress +3 -3
  132. package/.agent-src/templates/persona.md +2 -2
  133. package/.agent-src/templates/roadmaps.md +1 -1
  134. package/.agent-src/templates/rule.md +13 -13
  135. package/.agent-src/templates/scripts/memory_lookup.py +1 -1
  136. package/.agent-src/templates/scripts/memory_status.py +2 -2
  137. package/.agent-src/templates/scripts/work_engine/_lib/agent_settings.py +195 -1
  138. package/.agent-src/templates/scripts/work_engine/orchestration.py +1 -1
  139. package/.agent-src/templates/skill-archive-note.md +5 -5
  140. package/.agent-src/templates/skill.md +1 -1
  141. package/.claude-plugin/marketplace.json +4 -4
  142. package/AGENTS.md +16 -17
  143. package/CHANGELOG.md +216 -3
  144. package/CONTRIBUTING.md +31 -12
  145. package/README.md +21 -12
  146. package/config/agent-settings.template.yml +22 -2
  147. package/config/discovery/unassigned-artefacts.yml +24 -24
  148. package/config/profiles/full.ini +1 -1
  149. package/dist/cli/agent-config.js +52 -3
  150. package/dist/cli/agent-config.js.map +1 -1
  151. package/dist/cli/commands/uiServe.js +9 -0
  152. package/dist/cli/commands/uiServe.js.map +1 -1
  153. package/dist/cli/registry.js +2 -1
  154. package/dist/cli/registry.js.map +1 -1
  155. package/dist/discovery/deprecation-report.md +1 -1
  156. package/dist/discovery/discovery-manifest.json +649 -606
  157. package/dist/discovery/discovery-manifest.json.sha256 +1 -1
  158. package/dist/discovery/discovery-manifest.summary.md +4 -4
  159. package/dist/discovery/orphan-report.md +1 -1
  160. package/dist/discovery/packs.json +439 -437
  161. package/dist/discovery/trust-report.md +5 -5
  162. package/dist/discovery/workspaces.json +450 -448
  163. package/dist/install/atomic.js +92 -0
  164. package/dist/install/atomic.js.map +1 -0
  165. package/dist/install/conflict.js +196 -0
  166. package/dist/install/conflict.js.map +1 -0
  167. package/dist/install/detect.js +218 -0
  168. package/dist/install/detect.js.map +1 -0
  169. package/dist/install/paths.js +82 -0
  170. package/dist/install/paths.js.map +1 -0
  171. package/dist/install/plan.js +157 -0
  172. package/dist/install/plan.js.map +1 -0
  173. package/dist/install/txlog.js +140 -0
  174. package/dist/install/txlog.js.map +1 -0
  175. package/dist/install/types.js +19 -0
  176. package/dist/install/types.js.map +1 -0
  177. package/dist/install/wizard-plan.js +184 -0
  178. package/dist/install/wizard-plan.js.map +1 -0
  179. package/dist/mcp/registry-manifest.json +4 -4
  180. package/dist/router.json +67 -19
  181. package/dist/server/app.js +6 -0
  182. package/dist/server/app.js.map +1 -1
  183. package/dist/server/routes/install.js +358 -0
  184. package/dist/server/routes/install.js.map +1 -0
  185. package/dist/server/routes/wizard.js +468 -32
  186. package/dist/server/routes/wizard.js.map +1 -1
  187. package/dist/server/routes/workspace.js +396 -0
  188. package/dist/server/routes/workspace.js.map +1 -0
  189. package/dist/server/schemas/settings.js +5 -3
  190. package/dist/server/schemas/settings.js.map +1 -1
  191. package/dist/ui/assets/index-BDAhhpDV.js +40 -0
  192. package/dist/ui/assets/index-BDAhhpDV.js.map +1 -0
  193. package/dist/ui/assets/index-BXZILUxe.css +1 -0
  194. package/dist/ui/index.html +2 -2
  195. package/docs/MIGRATION.md +1 -1
  196. package/docs/adrs/cost/0001-hard-stop-hook.md +1 -1
  197. package/docs/adrs/router/0001-three-tier-routing.md +4 -4
  198. package/docs/adrs/schema/0001-json-schema-frontmatter.md +1 -1
  199. package/docs/adrs/smoke/0001-per-tier-smoke-scripts.md +4 -4
  200. package/docs/adrs/{caveman → telegraph}/0001-default-off-until-bench.md +9 -9
  201. package/docs/adrs/telegraph/README.md +9 -0
  202. package/docs/architecture/augment-projection.md +4 -4
  203. package/docs/architecture/claude-bundle.md +1 -1
  204. package/docs/architecture/current-onboard-baseline.md +3 -3
  205. package/docs/architecture/multi-tool-projection.md +10 -10
  206. package/docs/architecture/source-projection.md +27 -27
  207. package/docs/architecture.md +19 -15
  208. package/docs/archive/CHANGELOG-pre-2.11.0.md +2 -2
  209. package/docs/archive/CHANGELOG-pre-2.15.0.md +3 -3
  210. package/docs/archive/CHANGELOG-pre-2.16.0.md +1 -1
  211. package/docs/archive/CHANGELOG-pre-2.2.0.md +70 -70
  212. package/docs/archive/CHANGELOG-pre-2.20.0.md +2 -2
  213. package/docs/archive/CHANGELOG-pre-2.25.0.md +15 -15
  214. package/docs/archive/CHANGELOG-pre-3.0.0.md +4 -4
  215. package/docs/archive/CHANGELOG-pre-3.1.0.md +2 -2
  216. package/docs/archive/CHANGELOG-pre-3.2.0.md +3 -3
  217. package/docs/benchmark.md +65 -0
  218. package/docs/benchmarks.md +16 -16
  219. package/docs/catalog.md +17 -15
  220. package/docs/contracts/CHANGELOG-conventions.md +1 -1
  221. package/docs/contracts/STABILITY.md +2 -2
  222. package/docs/contracts/adoption-signal-floor.md +110 -0
  223. package/docs/contracts/adr-chat-history-split.md +4 -4
  224. package/docs/contracts/adr-command-suggestion.md +4 -4
  225. package/docs/contracts/adr-gtm-context-spine.md +1 -1
  226. package/docs/contracts/adr-implement-ticket-runtime.md +4 -4
  227. package/docs/contracts/adr-install-user-type-axis.md +1 -1
  228. package/docs/contracts/adr-layout.md +2 -2
  229. package/docs/contracts/adr-product-ui-track.md +10 -10
  230. package/docs/contracts/adr-user-types-axis.md +3 -3
  231. package/docs/contracts/adr-wing4-context-spine.md +1 -1
  232. package/docs/contracts/agent-memory-contract.md +3 -3
  233. package/docs/contracts/agents-md-tech-stack.md +2 -2
  234. package/docs/contracts/ai-council-config.md +2 -2
  235. package/docs/contracts/at-rest-encryption.md +4 -0
  236. package/docs/contracts/audit-log-v1.md +1 -1
  237. package/docs/contracts/benchmark-ab-contract.md +101 -0
  238. package/docs/contracts/benchmark-corpus-spec.md +1 -1
  239. package/docs/contracts/branch-protection-policy.md +98 -0
  240. package/docs/contracts/ci-cost-budget.md +106 -0
  241. package/docs/contracts/ci-green-floor.md +141 -0
  242. package/docs/contracts/command-clusters.md +6 -6
  243. package/docs/contracts/command-surface-tiers.md +2 -2
  244. package/docs/contracts/command-taxonomy.md +2 -2
  245. package/docs/contracts/{compression-default-kill-criterion.md → condensation-default-kill-criterion.md} +29 -29
  246. package/docs/contracts/config-presets.md +1 -1
  247. package/docs/contracts/context-paths.md +3 -3
  248. package/docs/contracts/context-spine.md +1 -1
  249. package/docs/contracts/cost-summary-schema.md +12 -12
  250. package/docs/contracts/cross-wing-handoff.md +4 -4
  251. package/docs/contracts/daily-workspace.md +4 -0
  252. package/docs/contracts/decision-trace-v1.md +2 -2
  253. package/docs/contracts/discovery-manifest.md +4 -4
  254. package/docs/contracts/explain-modes.md +4 -0
  255. package/docs/contracts/file-ownership-matrix.json +3493 -3318
  256. package/docs/contracts/file-ownership-matrix.md +3 -3
  257. package/docs/contracts/frontmatter-contract.md +4 -4
  258. package/docs/contracts/ghostwriter-schema.md +3 -3
  259. package/docs/contracts/gui-wizard.md +110 -97
  260. package/docs/contracts/harness-expectations.md +123 -0
  261. package/docs/contracts/host-agent-protocol.md +4 -0
  262. package/docs/contracts/implement-ticket-flow.md +9 -9
  263. package/docs/contracts/install-scopes.md +77 -0
  264. package/docs/contracts/iron-law-overrides.txt +1 -1
  265. package/docs/contracts/kernel-membership.md +26 -26
  266. package/docs/contracts/linear-ai-rules-inclusion.md +1 -1
  267. package/docs/contracts/linter-structural-model.md +2 -2
  268. package/docs/contracts/load-context-budget-model.md +4 -4
  269. package/docs/contracts/load-context-schema.md +13 -13
  270. package/docs/contracts/local-analytics.md +4 -0
  271. package/docs/contracts/local-knowledge-ingestion.md +1 -1
  272. package/docs/contracts/mcp-cloud-scope.md +2 -2
  273. package/docs/contracts/mcp-phase-1-scope.md +3 -3
  274. package/docs/contracts/measurement-baseline.md +5 -5
  275. package/docs/contracts/mental-models.md +30 -30
  276. package/docs/contracts/multi-tool-projection-fidelity.md +4 -4
  277. package/docs/contracts/namespace.md +4 -4
  278. package/docs/contracts/orchestration-dsl-v1.md +7 -7
  279. package/docs/contracts/package-self-orientation.md +12 -12
  280. package/docs/contracts/persona-schema.md +6 -6
  281. package/docs/contracts/pilot/language-and-tone.md +1 -1
  282. package/docs/contracts/plain-language-surface.md +117 -0
  283. package/docs/contracts/profile-system.md +3 -3
  284. package/docs/contracts/release-pr-gating.md +103 -0
  285. package/docs/contracts/role-experience.md +3 -3
  286. package/docs/contracts/rule-classification.md +13 -13
  287. package/docs/contracts/rule-interactions.md +4 -4
  288. package/docs/contracts/rule-interactions.yml +30 -30
  289. package/docs/contracts/rule-priority-hierarchy.md +13 -13
  290. package/docs/contracts/rule-router.md +2 -2
  291. package/docs/contracts/safety-model.md +1 -1
  292. package/docs/contracts/skill-distribution-channels.md +61 -0
  293. package/docs/contracts/skill-domains.md +2 -2
  294. package/docs/contracts/smoke-contracts.md +5 -5
  295. package/docs/contracts/telegraph-telemetry.md +83 -0
  296. package/docs/contracts/trust-and-safety.md +5 -5
  297. package/docs/contracts/ui-stack-extension.md +7 -7
  298. package/docs/contracts/ui-track-flow.md +9 -9
  299. package/docs/contracts/user-type-schema.md +4 -4
  300. package/docs/contracts/workflow-packs.md +4 -4
  301. package/docs/contracts/workspace-documents.md +4 -0
  302. package/docs/customization.md +28 -8
  303. package/docs/decisions/ADR-001-kernel-swap-deferred.md +6 -6
  304. package/docs/decisions/ADR-002-kernel-bucket-overrides.md +11 -11
  305. package/docs/decisions/ADR-003-flat-cluster-subs-and-colon-syntax.md +2 -2
  306. package/docs/decisions/ADR-004-rule-governance-pruning.md +4 -4
  307. package/docs/decisions/ADR-005-subagent-worktrees.md +7 -7
  308. package/docs/decisions/ADR-011-domain-pack-readiness.md +6 -6
  309. package/docs/decisions/ADR-013-discovery-frontmatter-contract.md +3 -3
  310. package/docs/decisions/ADR-015-discovery-manifest-contract.md +3 -3
  311. package/docs/decisions/ADR-017-monorepo-physical-layout.md +10 -10
  312. package/docs/decisions/ADR-018-trust-and-safety-layer.md +6 -6
  313. package/docs/decisions/ADR-019-router-json-dist-location.md +2 -2
  314. package/docs/decisions/ADR-020-global-only-consumer-scope.md +2 -2
  315. package/docs/decisions/ADR-021-deployment-shape.md +3 -3
  316. package/docs/decisions/ADR-022-daily-workspace-decomposition.md +1 -1
  317. package/docs/decisions/ADR-027-changelog-machine-vs-manual.md +2 -2
  318. package/docs/decisions/ADR-028-root-layout.md +7 -7
  319. package/docs/decisions/ADR-029-multi-workspace-deferred.md +2 -2
  320. package/docs/decisions/ADR-rule-kernel-and-router.md +5 -5
  321. package/docs/deploy/connector-setup.md +2 -2
  322. package/docs/deploy/policy-cookbook.md +2 -2
  323. package/docs/deploy/team-deployment-posture.md +20 -0
  324. package/docs/development.md +17 -17
  325. package/docs/distribution/registries.md +32 -0
  326. package/docs/distribution/registry-submissions.md +85 -0
  327. package/docs/distribution/telemetry-schema.md +1 -1
  328. package/docs/getting-started-by-role.md +45 -3
  329. package/docs/getting-started.md +2 -2
  330. package/docs/guidelines/agent-infra/5w2h-analysis.md +3 -3
  331. package/docs/guidelines/agent-infra/ask-when-uncertain-demos.md +1 -1
  332. package/docs/guidelines/agent-infra/asking-and-brevity-examples.md +3 -3
  333. package/docs/guidelines/agent-infra/carve-out-predicates.md +3 -3
  334. package/docs/guidelines/agent-infra/critical-thinking.md +4 -4
  335. package/docs/guidelines/agent-infra/direct-answers-demos.md +1 -1
  336. package/docs/guidelines/agent-infra/first-principles.md +2 -2
  337. package/docs/guidelines/agent-infra/inversion-thinking.md +5 -5
  338. package/docs/guidelines/agent-infra/layered-settings.md +56 -2
  339. package/docs/guidelines/agent-infra/mental-models.md +3 -3
  340. package/docs/guidelines/agent-infra/roadmap-progress-mechanics.md +2 -2
  341. package/docs/guidelines/agent-infra/rule-type-governance.md +1 -1
  342. package/docs/guidelines/agent-infra/scqa-framework.md +5 -5
  343. package/docs/guidelines/agent-infra/self-improvement-pipeline.md +2 -2
  344. package/docs/guidelines/agent-infra/six-hats.md +3 -3
  345. package/docs/guidelines/agent-infra/skill-quality-checklist.md +5 -5
  346. package/docs/guidelines/agent-infra/systems-thinking.md +1 -1
  347. package/docs/guidelines/agent-infra/verify-before-complete-demos.md +1 -1
  348. package/docs/guidelines/augment-portability-patterns.md +4 -4
  349. package/docs/guidelines/cross-role-handoff.md +2 -2
  350. package/docs/guidelines/php/php-coding-patterns.md +1 -1
  351. package/docs/guidelines/prompt-templates.md +6 -6
  352. package/docs/maintainers/dev-mode.md +1 -1
  353. package/docs/mcp.md +1 -1
  354. package/docs/parity/bench.json +3 -3
  355. package/docs/parity/ruflo.md +2 -2
  356. package/docs/profiles.md +11 -11
  357. package/docs/quality.md +11 -11
  358. package/docs/safety.md +3 -3
  359. package/docs/setup/mcp-client-config.md +1 -1
  360. package/docs/setup/mcp-r2-bootstrap.md +1 -1
  361. package/docs/setup/mcp-server-docker.md +3 -3
  362. package/docs/setup/per-ide/windsurf.md +1 -1
  363. package/docs/skills-catalog.md +8 -7
  364. package/docs/troubleshooting.md +1 -1
  365. package/docs/walkthroughs/daily-workspace-a11y.md +87 -0
  366. package/llms.txt +7 -6
  367. package/package.json +1 -1
  368. package/scripts/__pycache__/validate_frontmatter.cpython-312.pyc +0 -0
  369. package/scripts/_archive/README.md +2 -2
  370. package/scripts/_archive/_backfill_skill_domains.py +3 -3
  371. package/scripts/_archive/_bootstrap_tier_frontmatter.py +3 -3
  372. package/scripts/_archive/_p43_bodies.py +10 -10
  373. package/scripts/_archive/{_p43_compress.py → _p43_condense.py} +5 -5
  374. package/scripts/_archive/_p4_migrate.py +7 -7
  375. package/scripts/_archive/_phase2_shim_helper.py +1 -1
  376. package/scripts/_archive/_pilot_council_question.py +5 -5
  377. package/scripts/_cli/explain_last/inputs.py +1 -1
  378. package/scripts/_lib/__pycache__/__init__.cpython-312.pyc +0 -0
  379. package/scripts/_lib/__pycache__/agent_src.cpython-312.pyc +0 -0
  380. package/scripts/_lib/agent_settings.py +195 -1
  381. package/scripts/_lib/agent_src.py +19 -19
  382. package/scripts/_lib/bench_ab_cache.py +162 -0
  383. package/scripts/_lib/bench_ab_scoring.py +209 -0
  384. package/scripts/_lib/{bench_caveman.py → bench_telegraph.py} +21 -21
  385. package/scripts/_lib/{bench_caveman_report.py → bench_telegraph_report.py} +21 -21
  386. package/scripts/_lib/claude_desktop_bundler.py +5 -5
  387. package/scripts/_lib/module_detection.py +223 -0
  388. package/scripts/_lib/scope_guard.sh +162 -0
  389. package/scripts/_phase4_bucket.py +3 -3
  390. package/scripts/_pilot_measure.py +4 -4
  391. package/scripts/_tmp_scan_framework_leakage.py +1 -1
  392. package/scripts/adoption_report.py +195 -0
  393. package/scripts/adoption_snapshot.py +219 -0
  394. package/scripts/adoption_status.py +166 -0
  395. package/scripts/ai-video/lib/parse-blueprint.sh +1 -1
  396. package/scripts/ai_council/advisors.py +5 -5
  397. package/scripts/ai_council/compile_corpus.py +1 -1
  398. package/scripts/ai_council/one_off_archive/2026-05/_one_off_budget_v2_audit.py +3 -3
  399. package/scripts/ai_council/one_off_archive/2026-05/_one_off_context_layer_v1_review.py +2 -2
  400. package/scripts/ai_council/one_off_archive/2026-05/_one_off_inject_quiet_flag.py +1 -1
  401. package/scripts/ai_council/one_off_archive/2026-05/_one_off_measure_v2.sh +1 -1
  402. package/scripts/ai_council/one_off_archive/2026-05/_one_off_measure_verbosity.sh +1 -1
  403. package/scripts/ai_council/one_off_archive/2026-05/_one_off_nondestructive_inline_audit.py +3 -3
  404. package/scripts/ai_council/one_off_archive/2026-05/_one_off_per_task.sh +1 -1
  405. package/scripts/ai_council/one_off_archive/2026-05/_one_off_phase6_trigger_jaccard.py +1 -1
  406. package/scripts/ai_council/one_off_archive/2026-05/_one_off_phase_2a_budget_rebalance.py +6 -6
  407. package/scripts/ai_council/one_off_archive/2026-05/_one_off_rebalancing_audit.py +1 -1
  408. package/scripts/ai_council/one_off_archive/2026-05/_one_off_tier_retrofit.py +6 -6
  409. package/scripts/annotate_discovery.py +13 -13
  410. package/scripts/apply_modules_config.py +290 -0
  411. package/scripts/audit_adr_coverage.py +2 -2
  412. package/scripts/audit_auto_rules.py +2 -2
  413. package/scripts/audit_cloud_compatibility.py +3 -3
  414. package/scripts/audit_command_surface.py +9 -9
  415. package/scripts/audit_likelihood.py +2 -2
  416. package/scripts/audit_user_type_axis.py +2 -2
  417. package/scripts/bench_ab_cache_dispatch.py +68 -0
  418. package/scripts/bench_ab_clone.py +170 -0
  419. package/scripts/bench_ab_diff.py +227 -0
  420. package/scripts/bench_ab_integrity.py +143 -0
  421. package/scripts/bench_ab_run.py +235 -0
  422. package/scripts/bench_ab_task_runner.py +369 -0
  423. package/scripts/bench_ab_tracka_run.py +202 -0
  424. package/scripts/{bench_compress_memory.py → bench_condense_memory.py} +16 -16
  425. package/scripts/bench_run.py +33 -33
  426. package/scripts/bench_runner.py +2 -2
  427. package/scripts/bootstrap.sh +99 -0
  428. package/scripts/build_cloud_bundle.py +6 -6
  429. package/scripts/build_discovery_manifest.py +7 -7
  430. package/scripts/build_linear_digest.py +3 -3
  431. package/scripts/build_rule_trigger_matrix.py +8 -8
  432. package/scripts/chat_history.py +5 -5
  433. package/scripts/check_always_budget.py +11 -5
  434. package/scripts/check_augment_description_cap.py +3 -3
  435. package/scripts/check_cluster_patterns.py +2 -2
  436. package/scripts/check_command_count_messaging.py +3 -3
  437. package/scripts/{check_compression.py → check_condensation.py} +34 -34
  438. package/scripts/{check_compressed_paths.py → check_condensed_paths.py} +8 -8
  439. package/scripts/check_context_paths.py +7 -7
  440. package/scripts/check_council_layout.py +2 -2
  441. package/scripts/check_council_references.py +9 -9
  442. package/scripts/check_iron_law_prominence.py +2 -2
  443. package/scripts/check_kernel_rule_bundle.py +2 -2
  444. package/scripts/check_module_management_neutral.py +149 -0
  445. package/scripts/check_no_roadmap_refs.py +9 -9
  446. package/scripts/check_portability.py +3 -3
  447. package/scripts/check_public_catalog_links.py +4 -4
  448. package/scripts/check_references.py +7 -6
  449. package/scripts/check_release_pr_shape.py +112 -0
  450. package/scripts/check_reply_consistency.py +3 -3
  451. package/scripts/check_safety_floor_untouched.py +1 -1
  452. package/scripts/check_template_pin_drift.py +5 -5
  453. package/scripts/check_token_optimizer_freshness.py +3 -3
  454. package/scripts/ci_status.py +301 -0
  455. package/scripts/ci_time_ratio.py +1 -1
  456. package/scripts/cleanup_other_scope.sh +146 -0
  457. package/scripts/compile_router.py +10 -10
  458. package/scripts/{compress.py → condense.py} +64 -64
  459. package/scripts/condense.sh +18 -0
  460. package/scripts/{compress_memory.py → condense_memory.py} +33 -33
  461. package/scripts/config/presets.py +2 -2
  462. package/scripts/config/profiles.py +1 -1
  463. package/scripts/cost_by_conversation.py +3 -3
  464. package/scripts/cost_summary.py +7 -7
  465. package/scripts/count_token_optimizer_usage.sh +1 -1
  466. package/scripts/gen_discovery_baseline.py +5 -5
  467. package/scripts/generate_index.py +6 -6
  468. package/scripts/generate_ownership_matrix.py +10 -10
  469. package/scripts/generate_pack_manifests.py +1 -1
  470. package/scripts/ghostwriter_fixture_allowlist.txt +1 -1
  471. package/scripts/install +3 -3
  472. package/scripts/install-hooks.sh +6 -6
  473. package/scripts/install.py +273 -45
  474. package/scripts/install.sh +187 -1
  475. package/scripts/inventory_frontmatter.py +2 -2
  476. package/scripts/iron_law_sha.py +3 -3
  477. package/scripts/lint_agents_layout.py +14 -7
  478. package/scripts/lint_agents_md.py +4 -4
  479. package/scripts/lint_archived_skills.py +3 -3
  480. package/scripts/lint_artefact_frontmatter.py +2 -2
  481. package/scripts/lint_bench_ab.py +172 -0
  482. package/scripts/lint_bench_corpus.py +1 -1
  483. package/scripts/lint_command_tiers.py +5 -5
  484. package/scripts/lint_context_spine_usage.py +1 -1
  485. package/scripts/lint_framework_leakage.py +7 -7
  486. package/scripts/lint_framework_leakage_allowlist.json +152 -84
  487. package/scripts/lint_ghostwriter_source.py +3 -3
  488. package/scripts/lint_handoffs.py +1 -1
  489. package/scripts/lint_load_context.py +11 -11
  490. package/scripts/lint_media_policy_linkage.py +5 -5
  491. package/scripts/lint_namespace.py +1 -1
  492. package/scripts/lint_no_new_atomic_commands.py +2 -2
  493. package/scripts/lint_orchestration_dsl.py +1 -1
  494. package/scripts/lint_pack_boundaries.py +2 -2
  495. package/scripts/lint_persona_governance.py +4 -4
  496. package/scripts/lint_role_experiences.py +237 -0
  497. package/scripts/lint_rule_interactions.py +2 -2
  498. package/scripts/lint_rule_tiers.py +1 -1
  499. package/scripts/lint_trust_coherence.py +2 -2
  500. package/scripts/mcp_registry_submit.sh +187 -0
  501. package/scripts/mcp_server/tools.py +1 -1
  502. package/scripts/measure_frugality_savings.py +10 -10
  503. package/scripts/measure_patterns.py +1 -1
  504. package/scripts/measure_projection_bytes.py +5 -5
  505. package/scripts/measure_rule_budget.py +3 -3
  506. package/scripts/measure_skill_reduction.py +1 -1
  507. package/scripts/memory_lookup.py +1 -1
  508. package/scripts/memory_status.py +2 -2
  509. package/scripts/migrate_command_suggestions.py +3 -3
  510. package/scripts/mine_session.py +1 -1
  511. package/scripts/move_artefact.py +3 -3
  512. package/scripts/new_skill.py +2 -2
  513. package/scripts/pack_mcp_content.py +9 -9
  514. package/scripts/plan_physical_move.py +6 -6
  515. package/scripts/print_required_checks.py +196 -0
  516. package/scripts/probe_skill_registration.py +413 -0
  517. package/scripts/propose_modules_config.py +145 -0
  518. package/scripts/prototype_lint_contradictions.py +1 -1
  519. package/scripts/recruit_preflight.sh +152 -0
  520. package/scripts/refine_ticket_detect.py +3 -3
  521. package/scripts/release.py +20 -0
  522. package/scripts/render_benchmark_md.py +308 -0
  523. package/scripts/roadmap_progress_hook.py +1 -1
  524. package/scripts/run_skill_evals.py +2 -2
  525. package/scripts/runtime_registry.py +4 -4
  526. package/scripts/schemas/command.schema.json +4 -4
  527. package/scripts/schemas/rule.schema.json +5 -5
  528. package/scripts/schemas/skill.schema.json +3 -3
  529. package/scripts/schemas/user-type.schema.json +1 -1
  530. package/scripts/score_skill_selection.py +1 -1
  531. package/scripts/skill_collision_clusters.py +2 -2
  532. package/scripts/skill_linter.py +81 -81
  533. package/scripts/skill_overlap.py +5 -5
  534. package/scripts/skill_tools/audit_persona_coverage.py +2 -2
  535. package/scripts/skill_tools/audit_user_type_coverage.py +2 -2
  536. package/scripts/skill_tools/run_block_d_eval.py +1 -1
  537. package/scripts/skill_tools/score_skill_relevance.py +1 -1
  538. package/scripts/skill_tools/suggest_skill_for_task.py +1 -1
  539. package/scripts/skill_trigger_eval.py +3 -3
  540. package/scripts/smoke/kernel.sh +7 -1
  541. package/scripts/smoke/router.sh +5 -5
  542. package/scripts/smoke/skills.sh +1 -1
  543. package/scripts/smoke_quickstart.py +1 -1
  544. package/scripts/snapshot_agent_outputs.py +3 -3
  545. package/scripts/spotcheck_thin_root.py +1 -1
  546. package/scripts/{caveman_stats.py → telegraph_stats.py} +18 -18
  547. package/scripts/update_counts.py +1 -1
  548. package/scripts/validate_decision_engine.py +1 -1
  549. package/scripts/validate_frontmatter.py +1 -1
  550. package/scripts/validate_safe_paths.py +3 -3
  551. package/scripts/{validate_caveman_carveouts.py → validate_telegraph_carveouts.py} +7 -7
  552. package/scripts/verify_roadmap_closure.py +6 -6
  553. package/templates/consumer-settings/ONBOARDING.md +41 -0
  554. package/.agent-src/commands/install-via-agent.md +0 -129
  555. package/.agent-src/skills/compress-memory/SKILL.md +0 -131
  556. package/dist/ui/assets/index-D-DY1ywI.js +0 -35
  557. package/dist/ui/assets/index-D-DY1ywI.js.map +0 -1
  558. package/dist/ui/assets/index-Dqfhmg-d.css +0 -1
  559. package/docs/adrs/caveman/README.md +0 -9
  560. package/docs/contracts/caveman-telemetry.md +0 -83
  561. package/scripts/compress.sh +0 -18
@@ -1,8 +1,8 @@
1
1
  # Agent Infrastructure
2
2
 
3
3
  > **⚠️ DO NOT edit files in `.agent-src/` or `.augment/` directly.**
4
- > The source of truth is `.agent-src.uncompressed/`. Edit there, then run `task sync`.
5
- > See `.agent-src.uncompressed/commands/compress.md` for the full workflow.
4
+ > The source of truth is `.agent-src.uncondensed/`. Edit there, then run `task sync`.
5
+ > See `.agent-src.uncondensed/commands/condense.md` for the full workflow.
6
6
 
7
7
  This directory contains the shared agent infrastructure: skills, commands, rules, guidelines,
8
8
  templates, and contexts that power the AI coding assistant across all projects.
@@ -5,8 +5,9 @@ skills: [agent-docs-writing]
5
5
  description: Generate a context summary for continuing work in a fresh chat. Replaces the session system.
6
6
  disable-model-invocation: true
7
7
  suggestion:
8
- eligible: false
9
- rationale: "Explicit fresh-chat handoff must be deliberate, never inferred from prose."
8
+ eligible: true
9
+ trigger_description: "user asks for an agent handoff, fresh-chat summary, or context-summary to paste into a new chat"
10
+ trigger_context: "explicit verbatim ask — 'agent handoff', 'agend handoff' (typo), 'fasse für neuen chat zusammen', 'handoff summary', 'context summary for fresh chat'. Never inferred without a direct handoff / summary intent."
10
11
  workspaces:
11
12
  - agent-config-maintainer
12
13
  packs:
@@ -70,6 +71,33 @@ Show the handoff prompt in a fenced code block and say:
70
71
  > Copy this into a new chat to continue where we left off.
71
72
  ```
72
73
 
74
+ ## Iron Law — output is ALWAYS a fenced code block
75
+
76
+ ```
77
+ THE HANDOFF MUST BE WRAPPED IN A FENCED ```markdown CODE BLOCK
78
+ SO THE USER CAN COPY IT IN ONE CLICK. NEVER RENDER IT AS LIVE
79
+ MARKDOWN. NEVER SPLIT IT ACROSS MULTIPLE BLOCKS.
80
+ ```
81
+
82
+ Use ` ```markdown ` as the fence so consumers get syntax highlighting
83
+ and the inner content is preserved verbatim. Add one short prose line
84
+ above the block (e.g. *"Copy this into a new chat:"*) and nothing
85
+ after — no follow-up questions, no numbered options.
86
+
87
+ ## Detection — when natural-language triggers count as explicit
88
+
89
+ The user does not need to type `/agent-handoff` literally. Treat as
90
+ explicit invocation when the prompt contains a verbatim mention of:
91
+
92
+ - `agent handoff` / `agend handoff` (typo) / `handoff`
93
+ - `fresh chat`, `neuer chat`, `for a new chat`
94
+ - `context summary for {fresh,new} chat`
95
+ - `fasse … für … chat zusammen`
96
+
97
+ A vague *"summarize this conversation"* without handoff/new-chat
98
+ framing → NOT a trigger. Surface `/agent-handoff` as a numbered option,
99
+ do not auto-execute.
100
+
73
101
  ## Rules
74
102
 
75
103
  - **Keep it concise** — the prompt should be <30 lines. More context = more input tokens in the new chat.
@@ -78,6 +106,7 @@ Show the handoff prompt in a fenced code block and say:
78
106
  - **Open tasks are critical** — the new chat needs to know what's left.
79
107
  - **Decisions are important** — prevents the new chat from re-asking settled questions.
80
108
  - **File list is optional** — only include if the new chat will need to edit specific files.
109
+ - **NEVER render the handoff as live markdown** — see Iron Law above.
81
110
 
82
111
  ## When to use this vs. `agents/runtime/.agent-chat-history`
83
112
 
@@ -69,19 +69,19 @@ Extract from latest record:
69
69
  Pricing source: [`internal/bench/pricing.yaml`](../../bench/pricing.yaml). Reader
70
70
  implementation: [`scripts/cost/track.mjs`](../../scripts/cost/track.mjs).
71
71
 
72
- ### 3b. Read caveman delta + per-conversation cost lens
72
+ ### 3b. Read telegraph delta + per-conversation cost lens
73
73
 
74
74
  Run two read-only Python helpers (stdlib-only, no-op safe if JSONL missing):
75
75
 
76
- - `python3 scripts/caveman_stats.py --format json` — per-session +
77
- per-conversation + lifetime caveman delta. Honors suspended
78
- multiplier (see [`docs/contracts/caveman-telemetry.md`](../docs/contracts/caveman-telemetry.md)) — delta reads `0` while suspended; display version + ACTIVE/SUSPENDED state regardless.
76
+ - `python3 scripts/telegraph_stats.py --format json` — per-session +
77
+ per-conversation + lifetime telegraph delta. Honors suspended
78
+ multiplier (see [`docs/contracts/telegraph-telemetry.md`](../docs/contracts/telegraph-telemetry.md)) — delta reads `0` while suspended; display version + ACTIVE/SUSPENDED state regardless.
79
79
  - `python3 scripts/cost_by_conversation.py --format json` — per-conversation
80
80
  total cost + model breakdown for current conversation, sourced
81
81
  from same `agents/cost-tracking/sessions.jsonl` ledger.
82
82
 
83
83
  Surface in dashboard as one line:
84
- `[caveman: {lifetime.delta_tokens:+,} tok lifetime · {current_conv.delta_tokens:+,} this conv · multiplier v{multiplier_version} {ACTIVE|SUSPENDED}] · [conv cost: ${current_conv.total_cost_usd:.4f}]`.
84
+ `[telegraph: {lifetime.delta_tokens:+,} tok lifetime · {current_conv.delta_tokens:+,} this conv · multiplier v{multiplier_version} {ACTIVE|SUSPENDED}] · [conv cost: ${current_conv.total_cost_usd:.4f}]`.
85
85
 
86
86
  If both JSONLs missing or empty, omit line silently.
87
87
 
@@ -32,7 +32,7 @@ duplicate triggers, verifies the Thin-Root contract, and flags stale references.
32
32
  **Suggest only — never auto-apply.** Fixes happen via `/agents optimize` (file
33
33
  refactor) or rule-/skill-level commands.
34
34
 
35
- **Source of truth:** `.agent-src.uncompressed/` — never read or edit
35
+ **Source of truth:** `.agent-src.uncondensed/` — never read or edit
36
36
  `.agent-src/` or `.augment/` directly.
37
37
 
38
38
  ## Steps
@@ -43,7 +43,7 @@ Count lines affecting token consumption:
43
43
 
44
44
  ```bash
45
45
  # Always-loaded (per chat)
46
- for f in .agent-src.uncompressed/rules/*.md; do
46
+ for f in .agent-src.uncondensed/rules/*.md; do
47
47
  type=$(head -5 "$f" | grep 'type:' | sed 's/.*"\(.*\)"/\1/')
48
48
  [ "$type" = "auto" ] && continue
49
49
  lines=$(wc -l < "$f"); echo "always | $lines | $(basename "$f")"
@@ -51,15 +51,15 @@ done | sort -t'|' -k2 -rn
51
51
  agents=$(wc -l < AGENTS.md); echo "always | $agents | AGENTS.md"
52
52
 
53
53
  # Auto-loaded rules
54
- for f in .agent-src.uncompressed/rules/*.md; do
54
+ for f in .agent-src.uncondensed/rules/*.md; do
55
55
  type=$(head -5 "$f" | grep 'type:' | sed 's/.*"\(.*\)"/\1/')
56
56
  [ "$type" != "auto" ] && continue
57
57
  lines=$(wc -l < "$f"); echo "auto | $lines | $(basename "$f")"
58
58
  done | sort -t'|' -k2 -rn
59
59
 
60
60
  # Skills (top 20 by size)
61
- for f in .agent-src.uncompressed/skills/*/SKILL.md; do
62
- name=$(echo "$f" | sed 's|.agent-src.uncompressed/skills/||;s|/SKILL.md||')
61
+ for f in .agent-src.uncondensed/skills/*/SKILL.md; do
62
+ name=$(echo "$f" | sed 's|.agent-src.uncondensed/skills/||;s|/SKILL.md||')
63
63
  lines=$(wc -l < "$f"); echo "$lines | $name"
64
64
  done | sort -rn | head -20
65
65
  ```
@@ -74,7 +74,7 @@ Report totals (always + auto + skills + AGENTS.md).
74
74
  - **Merge candidates**: rules under 15 lines that belong inside a sibling rule.
75
75
 
76
76
  ```bash
77
- for f in .agent-src.uncompressed/rules/*.md; do
77
+ for f in .agent-src.uncondensed/rules/*.md; do
78
78
  desc=$(head -5 "$f" | grep 'description:' | sed 's/.*"\(.*\)"/\1/')
79
79
  [ -n "$desc" ] && echo "$desc | $(basename "$f")"
80
80
  done | sort | awk -F' \\| ' '{descs[$1]=descs[$1] " " $2} END {for (d in descs) {n=split(descs[d], a, " "); if (n>1) print "⚠️ " d " →" descs[d]}}'
@@ -115,7 +115,7 @@ python3 scripts/check_references.py
115
115
  ```
116
116
 
117
117
  Confirm counts/lists in `.augment/contexts/augment-infrastructure.md` and
118
- `docs/architecture.md` match the actual `.agent-src.uncompressed/` tree.
118
+ `docs/architecture.md` match the actual `.agent-src.uncondensed/` tree.
119
119
 
120
120
  ### 6. Run skill linter
121
121
 
@@ -150,7 +150,7 @@ Then ask:
150
150
  - **No edits** — read-only audit. Fixes route to `/agents optimize`,
151
151
  `skill-reviewer`, or `/optimize skills`.
152
152
  - **No edits to `.agent-src/` or `.augment/`** — those regenerate from
153
- `.agent-src.uncompressed/`. Edit the source.
153
+ `.agent-src.uncondensed/`. Edit the source.
154
154
  - **No `agents/` folder ops** — scaffolding, folder-audit, folder-cleanup
155
155
  live in `/optimize agents-dir`.
156
156
  - **No commits, no push, no PR** — finishing the audit is a user decision
@@ -156,7 +156,31 @@ Next steps:
156
156
  3. Run `/agents optimize` periodically to deduplicate against .augment/
157
157
  ```
158
158
 
159
- ### 7. Follow-ups
159
+ ### 7. Module-root proposal (optional)
160
+
161
+ Surface configurable-module candidates so the team file can opt in to
162
+ module-aware skills (road-to-configurable-modules Phase B). Skips
163
+ silently when the helper finds no candidates.
164
+
165
+ ```bash
166
+ python3 scripts/propose_modules_config.py --json
167
+ ```
168
+
169
+ If the JSON `candidates` array is non-empty, render the proposed
170
+ `modules:` block as numbered options:
171
+
172
+ ```
173
+ > 1. Accept all candidates — patch .agent-project-settings.yml
174
+ > 2. Pick a subset — choose root paths interactively
175
+ > 3. Skip — leave modules.enabled: false (default)
176
+ ```
177
+
178
+ On accept, append the `modules:` block to the team file
179
+ `.agent-project-settings.yml` (preserve comments + ordering per the
180
+ [`layered-settings`](../../docs/guidelines/agent-infra/layered-settings.md)
181
+ contract). On skip, do nothing — the block stays opt-in.
182
+
183
+ ### 8. Follow-ups
160
184
 
161
185
  If `agents/` directory does not exist, suggest running `/optimize agents-dir --scaffold`.
162
186
  If `.agent-settings.yml` does not exist, suggest running `scripts/install` (then `/onboard` for first-run setup).
@@ -60,7 +60,7 @@ Default: the AGENTS.md the user is editing right now. If unclear,
60
60
  ask:
61
61
 
62
62
  > 1. project root — `AGENTS.md`
63
- > 2. consumer template — `.agent-src.uncompressed/templates/AGENTS.md`
63
+ > 2. consumer template — `.agent-src.uncondensed/templates/AGENTS.md`
64
64
  > 3. package root — `AGENTS.md` of `event4u/agent-config` itself
65
65
  > 4. monorepo package — `<path>/AGENTS.md` (specify path)
66
66
 
@@ -110,7 +110,7 @@ For every link in the file, verify:
110
110
 
111
111
  ```bash
112
112
  diff <(awk '/^## Emergency triage/,/^## [^E]/' "$target") \
113
- .agent-src.uncompressed/contexts/contracts/emergency-triage-block.md
113
+ .agent-src.uncondensed/contexts/contracts/emergency-triage-block.md
114
114
  ```
115
115
 
116
116
  Drift = revert in-file block to the canonical variant (package-root
@@ -176,7 +176,7 @@ final reply per
176
176
  ## What this command does NOT do
177
177
 
178
178
  - **No edits to** `.augment/` **or** `.agent-src/` — those regenerate
179
- from `.agent-src.uncompressed/`. Edit the source.
179
+ from `.agent-src.uncondensed/`. Edit the source.
180
180
  - **No commits, no push, no PR** — finishing the refactor is a user
181
181
  decision; cite [`commit-policy`](../../rules/commit-policy.md).
182
182
  - **No broader agent-infra audit** — for token overhead, rule
@@ -68,7 +68,7 @@ Schema contract:
68
68
  - **Do NOT introduce network code** in this package. External
69
69
  enrichment is rejected for v1 — see the
70
70
  [determinism floor](../../../docs/contracts/agent-user-schema.md#determinism-floor).
71
- - **Edit `.agent-src.uncompressed/` only.** `.agent-src/` and
71
+ - **Edit `.agent-src.uncondensed/` only.** `.agent-src/` and
72
72
  `.augment/` regenerate from source.
73
73
 
74
74
  ## See also
@@ -65,5 +65,5 @@ Sub-command names match the locked contract in
65
65
  - **Do NOT chain sub-commands.** One `/agents <sub>` per turn.
66
66
  - If the user invokes `/agents` with no argument, **show the menu** — do
67
67
  not guess which sub-command they meant.
68
- - **Edit `.agent-src.uncompressed/` only.** `.agent-src/` and `.augment/`
68
+ - **Edit `.agent-src.uncondensed/` only.** `.agent-src/` and `.augment/`
69
69
  regenerate from source.
@@ -106,7 +106,7 @@ rather than guess.
106
106
  ### 4. Compare against this project
107
107
 
108
108
  Add a **this-repo** column per axis. Sources of truth:
109
- `.agent-src.uncompressed/` (skills/rules/commands), `docs/architecture.md`
109
+ `.agent-src.uncondensed/` (skills/rules/commands), `docs/architecture.md`
110
110
  (stable/experimental), `scripts/` (installer), `.github/workflows/` (CI).
111
111
  Never invent capabilities — if we don't have it, say so.
112
112
 
@@ -101,12 +101,12 @@ Apply all fixes** for ≤2 findings or when all are pure translations.
101
101
 
102
102
  Edit only the source-of-truth file:
103
103
 
104
- - Path under `.agent-src.uncompressed/` → edit there directly
104
+ - Path under `.agent-src.uncondensed/` → edit there directly
105
105
  - Path under `.agent-src/` → edit the matching
106
- `.agent-src.uncompressed/` file instead, then run
107
- `bash scripts/compress.sh --sync`
106
+ `.agent-src.uncondensed/` file instead, then run
107
+ `bash scripts/condense.sh --sync`
108
108
  - Path under `.augment/` → same as `.agent-src/` (it's a projection)
109
- - Path under `agents/` → edit directly (no compression layer)
109
+ - Path under `agents/` → edit directly (no condensation layer)
110
110
 
111
111
  After all fixes, re-run:
112
112
 
@@ -114,21 +114,21 @@ After all fixes, re-run:
114
114
  python3 scripts/check_md_language.py <path> [<path> …]
115
115
  ```
116
116
 
117
- ### 6. Mark hashes (only if `.agent-src.uncompressed/` was edited)
117
+ ### 6. Mark hashes (only if `.agent-src.uncondensed/` was edited)
118
118
 
119
119
  For each modified source file:
120
120
 
121
121
  ```bash
122
- python3 scripts/compress.py --mark-done "{relative_path}"
122
+ python3 scripts/condense.py --mark-done "{relative_path}"
123
123
  ```
124
124
 
125
- This keeps `.compression-hashes.json` consistent with the new content.
125
+ This keeps `.condensation-hashes.json` consistent with the new content.
126
126
 
127
127
  ## Rules
128
128
 
129
129
  - **Never edit `.augment/` directly** — it's a generated projection.
130
130
  Per [`augment-source-of-truth`](../rules/augment-source-of-truth.md),
131
- the source is `.agent-src.uncompressed/`.
131
+ the source is `.agent-src.uncondensed/`.
132
132
  - **Per-line ignore marker is reserved** for meta-documentation that
133
133
  must quote German tokens; do NOT use it as a generic mute.
134
134
  - **Frontmatter is exempt** — the checker skips YAML frontmatter at
@@ -1,8 +1,8 @@
1
1
  ---
2
- name: compress
2
+ name: condense
3
3
  tier: 1
4
4
  skills: []
5
- description: Compress .md files from .agent-src.uncompressed/ into caveman format and write to .agent-src/
5
+ description: Condense .md files from .agent-src.uncondensed/ into telegraph format and write to .agent-src/
6
6
  disable-model-invocation: true
7
7
  suggestion:
8
8
  eligible: false
@@ -21,44 +21,44 @@ install:
21
21
  removable: false
22
22
  ---
23
23
 
24
- # compress
24
+ # condense
25
25
 
26
- Compress agent config `.md` files from `.agent-src.uncompressed/` into token-efficient caveman format
27
- and write the compressed output to `.agent-src/`.
26
+ Condense agent config `.md` files from `.agent-src.uncondensed/` into token-efficient telegraph format
27
+ and write the condensed output to `.agent-src/`.
28
28
 
29
- Uses SHA-256 hashes to track which source files changed since last compression.
30
- Only changed files need recompression — saving tokens and time.
29
+ Uses SHA-256 hashes to track which source files changed since last condensation.
30
+ Only changed files need recondensation — saving tokens and time.
31
31
 
32
32
  ## Step 1: Sync non-.md files
33
33
 
34
34
  ```bash
35
- bash scripts/compress.sh --sync
35
+ bash scripts/condense.sh --sync
36
36
  ```
37
37
 
38
38
  This copies non-`.md` files (`.php`, etc.), deletes stale files, and shows the count of
39
- changed `.md` files that need compression.
39
+ changed `.md` files that need condensation.
40
40
 
41
41
  ## Step 2: Get changed files
42
42
 
43
43
  ```bash
44
- bash scripts/compress.sh --changed
44
+ bash scripts/condense.sh --changed
45
45
  ```
46
46
 
47
- This lists only `.md` files whose source has changed since the last compression (based on
47
+ This lists only `.md` files whose source has changed since the last condensation (based on
48
48
  stored SHA-256 hashes). If no files changed → you're done.
49
49
 
50
50
  If you need to see ALL files regardless of change status:
51
- `bash scripts/compress.sh --list`.
51
+ `bash scripts/condense.sh --list`.
52
52
 
53
- ## Step 3: Compress each changed .md file
53
+ ## Step 3: Condense each changed .md file
54
54
 
55
- **Core principle:** Compression must improve execution quality, not just reduce length.
56
- A compressed file should be easier to scan, easier to trigger, and easier to execute than the original.
55
+ **Core principle:** Condensation must improve execution quality, not just reduce length.
56
+ A condensed file should be easier to scan, easier to trigger, and easier to execute than the original.
57
57
 
58
58
  For each changed `.md` file:
59
59
 
60
- 1. Read the source from `.agent-src.uncompressed/{path}`
61
- 2. Compress the prose using these rules:
60
+ 1. Read the source from `.agent-src.uncondensed/{path}`
61
+ 2. Condense the prose using these rules:
62
62
  - **Remove:** articles (a, an, the), filler (just, really, basically, actually, simply, essentially),
63
63
  pleasantries, hedging, connective fluff (however, furthermore, additionally),
64
64
  redundant wording, obvious framework knowledge, repeated explanations, decorative prose
@@ -79,18 +79,18 @@ For each changed `.md` file:
79
79
  - **Drop:** "you should", "make sure to", "remember to" — state action directly
80
80
  - **Merge** redundant bullets that say the same thing differently
81
81
  - **Prefer** bullets over prose, direct instructions over explanatory paragraphs, one-line decisions over paragraphs
82
- 3. **Copy-paste first, compress second:**
83
- Before compressing ANY prose, extract and set aside these elements from the source.
84
- They go into the compressed output **unchanged, byte-for-byte**:
82
+ 3. **Copy-paste first, condense second:**
83
+ Before condensing ANY prose, extract and set aside these elements from the source.
84
+ They go into the condensed output **unchanged, byte-for-byte**:
85
85
  - **All code blocks** (``` fenced or indented) — copy EVERY code block from source to output FIRST
86
86
  - **YAML frontmatter** — copy verbatim
87
87
  - **All inline code** (`backtick content`)
88
88
  - **All URLs, links, file paths, commands**
89
89
  - **All H1/H2 headings** — exact text preserved
90
- - **Tables** (structure preserved, compress cell text only)
90
+ - **Tables** (structure preserved, condense cell text only)
91
91
  - **Technical terms, library names, API names**
92
92
  - **Dates, version numbers, numeric values**
93
- Then compress ONLY the prose around these preserved elements.
93
+ Then condense ONLY the prose around these preserved elements.
94
94
  4. **NEVER remove (even if verbose):**
95
95
  - Trigger clarity (When to use / description)
96
96
  - Decision hints that prevent mistakes
@@ -98,7 +98,7 @@ For each changed `.md` file:
98
98
  - Gotchas based on real failure patterns
99
99
  - Anti-patterns that prevent recurring failures
100
100
  - **Iron Law sections** — see "Iron Laws — do not touch" below
101
- 5. **Enrich (SKILL.md files only):** During compression, also improve agent-effectiveness:
101
+ 5. **Enrich (SKILL.md files only):** During condensation, also improve agent-effectiveness:
102
102
  - **Validation steps:** If a Procedure ends with a vague validation ("check if it works"),
103
103
  replace with concrete checks (expected output, commands to verify, specific conditions)
104
104
  - **Mini examples:** If no `Examples` section exists, add a short safe/unsafe or good/bad example
@@ -109,16 +109,16 @@ For each changed `.md` file:
109
109
  - **Do NOT invent content.** Only concretize what the source implies. If the source says
110
110
  "validate copy/paste safety", you can add "Check: no nested backticks, fully selectable".
111
111
  But don't add unrelated sections.
112
- - **Do NOT compress weak skills.** If the source has no procedure or no validation, fix structure first.
113
- - **Reference skill:** See `.agent-src.uncompressed/skills/skill-writing/SKILL.md` for the gold standard
114
- 6. Write the compressed output to `.agent-src/{path}`
115
- 7. **MANDATORY: Run compression quality check on this file:**
112
+ - **Do NOT condense weak skills.** If the source has no procedure or no validation, fix structure first.
113
+ - **Reference skill:** See `.agent-src.uncondensed/skills/skill-writing/SKILL.md` for the gold standard
114
+ 6. Write the condensed output to `.agent-src/{path}`
115
+ 7. **MANDATORY: Run condensation quality check on this file:**
116
116
 
117
117
  ```bash
118
- python3 scripts/check_compression.py --format text 2>&1 | grep "{path}"
118
+ python3 scripts/check_condensation.py --format text 2>&1 | grep "{path}"
119
119
  ```
120
120
 
121
- If the output contains 🔴 (error) for this file: **STOP. Fix the compressed file before continuing.**
121
+ If the output contains 🔴 (error) for this file: **STOP. Fix the condensed file before continuing.**
122
122
  Common errors and how to fix them:
123
123
  - `lost_code_blocks` → You dropped a code block. Copy ALL code blocks from source.
124
124
  - `modified_code_block` → Code block content changed. Replace with exact source content.
@@ -126,12 +126,12 @@ Common errors and how to fix them:
126
126
 
127
127
  **Do NOT call `mark-done` until this file has zero 🔴 errors.**
128
128
 
129
- 8. Show word count: `{original} → {compressed} words ({saved}% saved)`
130
- 9. **Mark as done:** `bash scripts/compress.sh --mark-done {path}`
129
+ 8. Show word count: `{original} → {condensed} words ({saved}% saved)`
130
+ 9. **Mark as done:** `bash scripts/condense.sh --mark-done {path}`
131
131
 
132
132
  ### Batch processing
133
133
 
134
- When compressing multiple files, process them in batches of ~10.
134
+ When condensing multiple files, process them in batches of ~10.
135
135
  Mark each file done after writing it. After each batch, show a progress summary:
136
136
 
137
137
  ```
@@ -143,13 +143,13 @@ Batch 1/5 complete: 10 files, avg 42% saved
143
143
  Run BOTH checks. Both must pass before finishing.
144
144
 
145
145
  ```bash
146
- bash scripts/compress.sh --check
146
+ bash scripts/condense.sh --check
147
147
  ```
148
148
 
149
149
  Must show ✅ (hashes in sync).
150
150
 
151
151
  ```bash
152
- python3 scripts/check_compression.py
152
+ python3 scripts/check_condensation.py
153
153
  ```
154
154
 
155
155
  Must show **zero 🔴 errors**. Warnings (🟡) are acceptable.
@@ -161,23 +161,23 @@ Read `verbosity.post_action_reports` from `.agent-settings.yml` (default
161
161
  `minimal`).
162
162
 
163
163
  - `off` → emit nothing on success; surface errors only.
164
- - `minimal` (default) → one line: `→ N files compressed (avg X% savings)`.
165
- - `full` → multi-line table with per-category stats (files compressed,
164
+ - `minimal` (default) → one line: `→ N files condensed (avg X% savings)`.
165
+ - `full` → multi-line table with per-category stats (files condensed,
166
166
  avg savings).
167
167
 
168
168
  ## Hash management
169
169
 
170
- - Hashes are stored in `.augment/.compression-hashes.json` (committed to Git).
171
- - `bash scripts/compress.sh --sync` automatically cleans up hashes for deleted source files.
172
- - `bash scripts/compress.sh --mark-all-done` marks ALL current `.md` files as compressed
173
- (useful after an initial full compression or when bootstrapping the hash file).
170
+ - Hashes are stored in `.augment/.condensation-hashes.json` (committed to Git).
171
+ - `bash scripts/condense.sh --sync` automatically cleans up hashes for deleted source files.
172
+ - `bash scripts/condense.sh --mark-all-done` marks ALL current `.md` files as condensed
173
+ (useful after an initial full condensation or when bootstrapping the hash file).
174
174
  - A file with no stored hash is always treated as "changed".
175
175
 
176
176
  ## Iron Laws — do not touch
177
177
 
178
178
  Sections under headings matching `Iron Law`, `Iron Laws`, or `The Iron Law` (any
179
179
  heading level, numbered variants like `Iron Law 1` included) are **load-bearing
180
- behavioral rules**. Compression rules above do **not** apply to them.
180
+ behavioral rules**. Condensation rules above do **not** apply to them.
181
181
 
182
182
  For every Iron Law section in a source file:
183
183
 
@@ -187,27 +187,27 @@ For every Iron Law section in a source file:
187
187
  breaks, and trailing punctuation.
188
188
  - **Copy the negation clauses verbatim** — `NO X`, `NEVER Y`, `NOT Z`. These
189
189
  are the law's exception denials; stripping them weakens the rule.
190
- - **Caveman the prose, keep every passage** — every paragraph, every list
190
+ - **Telegraph the prose, keep every passage** — every paragraph, every list
191
191
  item, and every fenced code block from the source must appear in the
192
- compressed output, in order. Drop articles, shorten phrasing, primitive
192
+ condensed output, in order. Drop articles, shorten phrasing, primitive
193
193
  grammar, terse cave-speak — all encouraged. What's forbidden is dropping
194
194
  whole sentences, merging two paragraphs into one, or skipping a bullet.
195
195
  One paragraph → one paragraph; one bullet → one bullet.
196
- - **No word-count budget** — compress the prose as hard as caveman style
196
+ - **No word-count budget** — condense the prose as hard as telegraph style
197
197
  allows. The check is structural (passage count), not quantitative.
198
198
 
199
- `scripts/check_compression.py` enforces these mechanically — `iron_law_missing`,
199
+ `scripts/check_condensation.py` enforces these mechanically — `iron_law_missing`,
200
200
  `iron_law_passage_dropped`, and `iron_law_heading_downgrade` are `error`-level
201
201
  and block CI.
202
202
 
203
203
  If an Iron Law section genuinely contains filler (rare): edit the SOURCE in
204
- `.agent-src.uncompressed/`, not the compressed copy. Source is the truth.
204
+ `.agent-src.uncondensed/`, not the condensed copy. Source is the truth.
205
205
 
206
- ## Compression quality checklist
206
+ ## Condensation quality checklist
207
207
 
208
- **Also apply the `preservation-guard` rule** — strongest validation, example, anti-pattern, and decision hints must survive compression. Iron Laws are non-negotiable.
208
+ **Also apply the `preservation-guard` rule** — strongest validation, example, anti-pattern, and decision hints must survive condensation. Iron Laws are non-negotiable.
209
209
 
210
- After compressing each file, verify:
210
+ After condensing each file, verify:
211
211
 
212
212
  - [ ] All code blocks preserved exactly (no content changes)
213
213
  - [ ] All inline code, URLs, file paths unchanged
@@ -216,11 +216,11 @@ After compressing each file, verify:
216
216
  - [ ] Tables structure preserved (cell text may be shortened)
217
217
  - [ ] "NEVER", "MUST", "Do NOT" and other strong language preserved
218
218
  - [ ] Technical terms, library names, API names unchanged
219
- - [ ] No meaning lost — compressed version says the same thing, shorter
219
+ - [ ] No meaning lost — condensed version says the same thing, shorter
220
220
  - [ ] No sections accidentally removed
221
221
  - [ ] Word count reduction is 20-50% (typical range for prose-heavy files)
222
222
 
223
- ### Safe vs unsafe compression
223
+ ### Safe vs unsafe condensation
224
224
 
225
225
  Safe:
226
226
  - "You should always make sure to run the tests before committing" → "Run tests before commit"
@@ -236,8 +236,8 @@ Unsafe (DO NOT do this):
236
236
  ## Rules
237
237
 
238
238
  - **Do NOT commit or push.** Only write files.
239
- - **Do NOT modify `.agent-src.uncompressed/`** — it is the source of truth.
240
- - **Only write to `.augment/`** — the compressed output directory.
241
- - **Preserve ALL technical content** — only compress natural language prose.
239
+ - **Do NOT modify `.agent-src.uncondensed/`** — it is the source of truth.
240
+ - **Only write to `.augment/`** — the condensed output directory.
241
+ - **Preserve ALL technical content** — only condense natural language prose.
242
242
  - **YAML frontmatter** in command/skill files must be preserved exactly.
243
- - **Always run `bash scripts/compress.sh --mark-done {path}`** after writing each compressed file.
243
+ - **Always run `bash scripts/condense.sh --mark-done {path}`** after writing each condensed file.
@@ -44,18 +44,21 @@ Examples:
44
44
 
45
45
  ### 2. Determine scope (module vs. project-wide)
46
46
 
47
- Check if `app/Modules/` exists. If yes, ask:
47
+ Resolve module roots via `scripts/_lib/agent_settings.py::enumerate_modules()`
48
+ (reads `modules.root_paths` + `modules.agent_folder` from
49
+ `.agent-project-settings.yml`). If at least one module is discovered, ask:
48
50
 
49
51
  ```
50
52
  Should the context be created in a module or in the project root?
51
53
 
52
- 1. 📦 In a module → app/Modules/{Module}/agents/settings/contexts/
54
+ 1. 📦 In a module → {module_root}/{Module}/{agent_folder}/settings/contexts/
53
55
  2. 🌐 Project root → agents/settings/contexts/
54
56
  ```
55
57
 
56
58
  If module:
57
- - List available modules and ask which one.
58
- - Target: `app/Modules/{Module}/agents/settings/contexts/`
59
+ - Render the list of modules from `enumerate_modules()` and ask which one.
60
+ - Target: `{module_root}/{Module}/{agent_folder}/settings/contexts/`
61
+ (Laravel example: `app/Modules/{Module}/agents/settings/contexts/`)
59
62
  - Create directory if it doesn't exist.
60
63
 
61
64
  If project-wide:
@@ -30,7 +30,9 @@ install:
30
30
  ### 1. Find the context
31
31
 
32
32
  - List all context documents in `agents/settings/contexts/`.
33
- - Also check module-level `app/Modules/*/agents/settings/contexts/`.
33
+ - Also check module-level contexts via `enumerate_modules()` — for each
34
+ module, look in `{module_path}/{modules.agent_folder}/settings/contexts/`
35
+ (Laravel shape: `app/Modules/*/agents/settings/contexts/`).
34
36
 
35
37
  If only one context exists, ask if that's the one to refactor.
36
38
  If the user has a context file open in their editor, use that one.
@@ -59,7 +59,7 @@ Do NOT use for single-line fixes, trivial changes, or urgent hotfixes.
59
59
  - Architecture patterns in the affected area
60
60
  - Key files, services, models, routes involved
61
61
  2. Read identified files to build deep understanding.
62
- 3. Check module docs (`app/Modules/*/agents/`) if applicable.
62
+ 3. Check module docs via `enumerate_modules()` — for each module, look in `{module_path}/{modules.agent_folder}/` (Laravel shape: `app/Modules/*/agents/`) if applicable.
63
63
  4. Check existing contexts (`agents/settings/contexts/`) for the affected area.
64
64
  5. Present findings with file references.
65
65
 
@@ -128,7 +128,7 @@ While exploring, proactively research:
128
128
 
129
129
  - Use `codebase-retrieval` to find related code, existing patterns, and affected areas.
130
130
  - Check `agents/features/` for existing feature plans that might overlap.
131
- - Check the module structure (`app/Modules/`) for where this would live.
131
+ - Check the module structure via `enumerate_modules()` (resolves `modules.root_paths`; Laravel shape: `app/Modules/`) for where this would live.
132
132
  - Look for existing services, models, or endpoints that could be extended.
133
133
 
134
134
  **Share findings naturally:**