@massa-ai/codex-plugin 1.61.0 → 1.62.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (268) hide show
  1. package/.codex-plugin/plugin.json +1 -1
  2. package/README.md +1 -1
  3. package/{agents/massa-ai-builder.toml → agent-profiles/balanced/builder.toml} +3 -4
  4. package/agent-profiles/balanced/code-explorer.toml +101 -0
  5. package/agent-profiles/balanced/code-reviewer.toml +133 -0
  6. package/agent-profiles/balanced/{massa-ai-designer.toml → designer.toml} +34 -17
  7. package/agent-profiles/balanced/judge.toml +147 -0
  8. package/agent-profiles/balanced/product-manager.toml +107 -0
  9. package/agent-profiles/balanced/test-engineer.toml +100 -0
  10. package/agent-profiles/cheap/{massa-ai-builder.toml → builder.toml} +3 -4
  11. package/agent-profiles/cheap/code-explorer.toml +101 -0
  12. package/agent-profiles/cheap/code-reviewer.toml +133 -0
  13. package/agent-profiles/cheap/{massa-ai-designer.toml → designer.toml} +34 -17
  14. package/agent-profiles/cheap/judge.toml +147 -0
  15. package/agent-profiles/cheap/product-manager.toml +107 -0
  16. package/agent-profiles/cheap/test-engineer.toml +100 -0
  17. package/agent-profiles/{work/massa-ai-builder.toml → heavy/builder.toml} +3 -4
  18. package/agent-profiles/heavy/code-explorer.toml +101 -0
  19. package/agent-profiles/heavy/code-reviewer.toml +133 -0
  20. package/agent-profiles/{work/massa-ai-designer.toml → heavy/designer.toml} +34 -17
  21. package/agent-profiles/heavy/judge.toml +147 -0
  22. package/agent-profiles/heavy/product-manager.toml +107 -0
  23. package/agent-profiles/heavy/test-engineer.toml +100 -0
  24. package/agent-profiles/home/{massa-ai-builder.toml → builder.toml} +3 -4
  25. package/agent-profiles/home/code-explorer.toml +101 -0
  26. package/agent-profiles/home/code-reviewer.toml +133 -0
  27. package/{agents/massa-ai-designer.toml → agent-profiles/home/designer.toml} +34 -17
  28. package/agent-profiles/home/judge.toml +147 -0
  29. package/agent-profiles/home/product-manager.toml +107 -0
  30. package/agent-profiles/home/test-engineer.toml +100 -0
  31. package/agent-profiles/{heavy/massa-ai-builder.toml → work/builder.toml} +3 -4
  32. package/agent-profiles/work/code-explorer.toml +101 -0
  33. package/agent-profiles/work/code-reviewer.toml +133 -0
  34. package/agent-profiles/{heavy/massa-ai-designer.toml → work/designer.toml} +34 -17
  35. package/agent-profiles/work/judge.toml +147 -0
  36. package/agent-profiles/work/product-manager.toml +107 -0
  37. package/agent-profiles/work/test-engineer.toml +100 -0
  38. package/{agent-profiles/balanced/massa-ai-builder.toml → agents/builder.toml} +3 -4
  39. package/agents/code-explorer.toml +101 -0
  40. package/agents/code-reviewer.toml +133 -0
  41. package/{agent-profiles/home/massa-ai-designer.toml → agents/designer.toml} +34 -17
  42. package/agents/judge.toml +147 -0
  43. package/agents/product-manager.toml +107 -0
  44. package/agents/test-engineer.toml +100 -0
  45. package/hooks/massa-ai-hook +4 -4
  46. package/install.sh +98 -24
  47. package/package.json +1 -1
  48. package/skills/agents/builder/SKILL.md +3 -4
  49. package/skills/agents/code-explorer/SKILL.md +104 -0
  50. package/skills/agents/code-reviewer/SKILL.md +136 -0
  51. package/skills/agents/designer/SKILL.md +34 -17
  52. package/skills/agents/judge/SKILL.md +99 -48
  53. package/skills/agents/product-manager/SKILL.md +110 -0
  54. package/skills/agents/test-engineer/SKILL.md +57 -22
  55. package/skills/bootstrap/SKILL.md +4 -5
  56. package/skills/{adr.md → create-adr.md} +3 -3
  57. package/skills/{to-prd.md → create-prd.md} +3 -3
  58. package/skills/{rfc.md → create-rfc.md} +3 -3
  59. package/skills/{tdd.md → create-tdd.md} +3 -3
  60. package/skills/{ticket.md → create-ticket.md} +3 -3
  61. package/skills/massa-ai/SKILL.md +26 -29
  62. package/skills/massa-ai/references/agent-orchestration.md +62 -58
  63. package/skills/massa-ai/references/audit-report-io.md +8 -87
  64. package/skills/massa-ai/references/code-reuse-scan.md +1 -1
  65. package/skills/massa-ai/references/{adr-authoring.md → create-adr.md} +3 -3
  66. package/skills/massa-ai/references/{rfc → create-rfc}/discovery-and-sizing.md +1 -1
  67. package/skills/massa-ai/references/{tdd → create-tdd}/calibrated-examples.md +3 -3
  68. package/skills/massa-ai/references/{tdd → create-tdd}/discovery-and-sizing.md +1 -1
  69. package/skills/massa-ai/references/{tdd → create-tdd}/quality-and-lifecycle.md +1 -1
  70. package/skills/massa-ai/references/{ticket → create-ticket}/intake-and-sources.md +1 -1
  71. package/skills/massa-ai/references/figma-pre-analysis.md +1 -1
  72. package/skills/massa-ai/references/furps/analyst-role.md +3 -3
  73. package/skills/massa-ai/references/furps/checklist.md +2 -2
  74. package/skills/massa-ai/references/furps/intake.md +7 -7
  75. package/skills/massa-ai/references/hook-enforcement.md +4 -8
  76. package/skills/massa-ai/references/implementation-delivery.md +2 -2
  77. package/skills/massa-ai/references/knowledge-verification-chain.md +0 -1
  78. package/skills/massa-ai/references/mobile-context.md +2 -5
  79. package/skills/massa-ai/references/pr-task-fix.md +1 -1
  80. package/skills/massa-ai/references/spec-driven/sub-agents.md +3 -3
  81. package/skills/massa-ai/references/spec-driven/validate.md +1 -1
  82. package/skills/massa-ai/references/subagent-design.md +6 -9
  83. package/skills/massa-ai/references/verification-ladder.md +2 -2
  84. package/skills/massa-ai/scripts/validate_audit_report.ts +3 -8
  85. package/skills/massa-ai/workflows/architecture/architecture-audit.md +4 -5
  86. package/skills/massa-ai/workflows/architecture/architecture-fix.md +5 -6
  87. package/skills/massa-ai/workflows/bugs/bugs-audit.md +2 -3
  88. package/skills/massa-ai/workflows/bugs/bugs-fix.md +4 -5
  89. package/skills/massa-ai/workflows/code-quality/code-quality-audit.md +2 -3
  90. package/skills/massa-ai/workflows/code-quality/code-quality-fix.md +4 -5
  91. package/skills/massa-ai/workflows/commit.md +3 -3
  92. package/skills/massa-ai/workflows/{adr.md → create-adr.md} +10 -10
  93. package/skills/massa-ai/workflows/{to-prd.md → create-prd.md} +4 -4
  94. package/skills/massa-ai/workflows/{rfc.md → create-rfc.md} +6 -6
  95. package/skills/massa-ai/workflows/{tdd.md → create-tdd.md} +11 -11
  96. package/skills/massa-ai/workflows/{ticket.md → create-ticket.md} +5 -5
  97. package/skills/massa-ai/workflows/debug.md +4 -5
  98. package/skills/massa-ai/workflows/design.md +2 -2
  99. package/skills/massa-ai/workflows/exploration.md +2 -2
  100. package/skills/massa-ai/workflows/feature.md +5 -6
  101. package/skills/massa-ai/workflows/implementation/implementation-audit.md +22 -3
  102. package/skills/massa-ai/workflows/implementation/implementation-fix.md +6 -7
  103. package/skills/massa-ai/workflows/judge-with-debate.md +14 -14
  104. package/skills/massa-ai/workflows/mobile-figma/mobile-figma-audit.md +2 -2
  105. package/skills/massa-ai/workflows/mobile-figma/mobile-figma-fix.md +10 -11
  106. package/skills/massa-ai/workflows/pr-review.md +31 -13
  107. package/skills/massa-ai/workflows/{discovery.md → product-discovery.md} +12 -12
  108. package/skills/massa-ai/workflows/refactor.md +4 -5
  109. package/skills/massa-ai/workflows/refinement/furps-refinement.md +7 -7
  110. package/skills/massa-ai/workflows/requirements/requirements-audit.md +2 -2
  111. package/skills/massa-ai/workflows/requirements/requirements-fix.md +5 -6
  112. package/skills/massa-ai/workflows/security/security-audit.md +2 -3
  113. package/skills/massa-ai/workflows/security/security-fix.md +3 -4
  114. package/skills/massa-ai/workflows/spec-driven.md +9 -10
  115. package/skills/massa-ai/workflows/tests/tests-audit.md +2 -2
  116. package/skills/massa-ai/workflows/tests/tests-fix.md +16 -6
  117. package/skills/massa-ai/workflows/the-fool.md +7 -7
  118. package/skills/{discovery.md → product-discovery.md} +3 -3
  119. package/agent-profiles/balanced/massa-ai-architecture-specialist.toml +0 -62
  120. package/agent-profiles/balanced/massa-ai-audit-specialist.toml +0 -79
  121. package/agent-profiles/balanced/massa-ai-context-curator.toml +0 -64
  122. package/agent-profiles/balanced/massa-ai-documentation-agent.toml +0 -62
  123. package/agent-profiles/balanced/massa-ai-furps-analyst.toml +0 -68
  124. package/agent-profiles/balanced/massa-ai-investigator.toml +0 -65
  125. package/agent-profiles/balanced/massa-ai-judge.toml +0 -96
  126. package/agent-profiles/balanced/massa-ai-meta-judge.toml +0 -84
  127. package/agent-profiles/balanced/massa-ai-mobile-specialist.toml +0 -79
  128. package/agent-profiles/balanced/massa-ai-navigator.toml +0 -72
  129. package/agent-profiles/balanced/massa-ai-plan-critic.toml +0 -87
  130. package/agent-profiles/balanced/massa-ai-planner.toml +0 -62
  131. package/agent-profiles/balanced/massa-ai-requirements-analyst.toml +0 -61
  132. package/agent-profiles/balanced/massa-ai-reviewer.toml +0 -63
  133. package/agent-profiles/balanced/massa-ai-test-engineer.toml +0 -64
  134. package/agent-profiles/balanced/massa-ai-verification-agent.toml +0 -62
  135. package/agent-profiles/cheap/massa-ai-architecture-specialist.toml +0 -62
  136. package/agent-profiles/cheap/massa-ai-audit-specialist.toml +0 -79
  137. package/agent-profiles/cheap/massa-ai-context-curator.toml +0 -64
  138. package/agent-profiles/cheap/massa-ai-documentation-agent.toml +0 -62
  139. package/agent-profiles/cheap/massa-ai-furps-analyst.toml +0 -68
  140. package/agent-profiles/cheap/massa-ai-investigator.toml +0 -65
  141. package/agent-profiles/cheap/massa-ai-judge.toml +0 -96
  142. package/agent-profiles/cheap/massa-ai-meta-judge.toml +0 -84
  143. package/agent-profiles/cheap/massa-ai-mobile-specialist.toml +0 -79
  144. package/agent-profiles/cheap/massa-ai-navigator.toml +0 -72
  145. package/agent-profiles/cheap/massa-ai-plan-critic.toml +0 -87
  146. package/agent-profiles/cheap/massa-ai-planner.toml +0 -62
  147. package/agent-profiles/cheap/massa-ai-requirements-analyst.toml +0 -61
  148. package/agent-profiles/cheap/massa-ai-reviewer.toml +0 -63
  149. package/agent-profiles/cheap/massa-ai-test-engineer.toml +0 -64
  150. package/agent-profiles/cheap/massa-ai-verification-agent.toml +0 -62
  151. package/agent-profiles/heavy/massa-ai-architecture-specialist.toml +0 -62
  152. package/agent-profiles/heavy/massa-ai-audit-specialist.toml +0 -79
  153. package/agent-profiles/heavy/massa-ai-context-curator.toml +0 -64
  154. package/agent-profiles/heavy/massa-ai-documentation-agent.toml +0 -62
  155. package/agent-profiles/heavy/massa-ai-furps-analyst.toml +0 -68
  156. package/agent-profiles/heavy/massa-ai-investigator.toml +0 -65
  157. package/agent-profiles/heavy/massa-ai-judge.toml +0 -96
  158. package/agent-profiles/heavy/massa-ai-meta-judge.toml +0 -84
  159. package/agent-profiles/heavy/massa-ai-mobile-specialist.toml +0 -79
  160. package/agent-profiles/heavy/massa-ai-navigator.toml +0 -72
  161. package/agent-profiles/heavy/massa-ai-plan-critic.toml +0 -87
  162. package/agent-profiles/heavy/massa-ai-planner.toml +0 -62
  163. package/agent-profiles/heavy/massa-ai-requirements-analyst.toml +0 -61
  164. package/agent-profiles/heavy/massa-ai-reviewer.toml +0 -63
  165. package/agent-profiles/heavy/massa-ai-test-engineer.toml +0 -64
  166. package/agent-profiles/heavy/massa-ai-verification-agent.toml +0 -62
  167. package/agent-profiles/home/massa-ai-architecture-specialist.toml +0 -62
  168. package/agent-profiles/home/massa-ai-audit-specialist.toml +0 -79
  169. package/agent-profiles/home/massa-ai-context-curator.toml +0 -64
  170. package/agent-profiles/home/massa-ai-documentation-agent.toml +0 -62
  171. package/agent-profiles/home/massa-ai-furps-analyst.toml +0 -68
  172. package/agent-profiles/home/massa-ai-investigator.toml +0 -65
  173. package/agent-profiles/home/massa-ai-judge.toml +0 -96
  174. package/agent-profiles/home/massa-ai-meta-judge.toml +0 -84
  175. package/agent-profiles/home/massa-ai-mobile-specialist.toml +0 -79
  176. package/agent-profiles/home/massa-ai-navigator.toml +0 -72
  177. package/agent-profiles/home/massa-ai-plan-critic.toml +0 -87
  178. package/agent-profiles/home/massa-ai-planner.toml +0 -62
  179. package/agent-profiles/home/massa-ai-requirements-analyst.toml +0 -61
  180. package/agent-profiles/home/massa-ai-reviewer.toml +0 -63
  181. package/agent-profiles/home/massa-ai-test-engineer.toml +0 -64
  182. package/agent-profiles/home/massa-ai-verification-agent.toml +0 -62
  183. package/agent-profiles/work/massa-ai-architecture-specialist.toml +0 -62
  184. package/agent-profiles/work/massa-ai-audit-specialist.toml +0 -79
  185. package/agent-profiles/work/massa-ai-context-curator.toml +0 -64
  186. package/agent-profiles/work/massa-ai-documentation-agent.toml +0 -62
  187. package/agent-profiles/work/massa-ai-furps-analyst.toml +0 -68
  188. package/agent-profiles/work/massa-ai-investigator.toml +0 -65
  189. package/agent-profiles/work/massa-ai-judge.toml +0 -96
  190. package/agent-profiles/work/massa-ai-meta-judge.toml +0 -84
  191. package/agent-profiles/work/massa-ai-mobile-specialist.toml +0 -79
  192. package/agent-profiles/work/massa-ai-navigator.toml +0 -72
  193. package/agent-profiles/work/massa-ai-plan-critic.toml +0 -87
  194. package/agent-profiles/work/massa-ai-planner.toml +0 -62
  195. package/agent-profiles/work/massa-ai-requirements-analyst.toml +0 -61
  196. package/agent-profiles/work/massa-ai-reviewer.toml +0 -63
  197. package/agent-profiles/work/massa-ai-test-engineer.toml +0 -64
  198. package/agent-profiles/work/massa-ai-verification-agent.toml +0 -62
  199. package/agents/massa-ai-architecture-specialist.toml +0 -62
  200. package/agents/massa-ai-audit-specialist.toml +0 -79
  201. package/agents/massa-ai-context-curator.toml +0 -64
  202. package/agents/massa-ai-documentation-agent.toml +0 -62
  203. package/agents/massa-ai-furps-analyst.toml +0 -68
  204. package/agents/massa-ai-investigator.toml +0 -65
  205. package/agents/massa-ai-judge.toml +0 -96
  206. package/agents/massa-ai-meta-judge.toml +0 -84
  207. package/agents/massa-ai-mobile-specialist.toml +0 -79
  208. package/agents/massa-ai-navigator.toml +0 -72
  209. package/agents/massa-ai-plan-critic.toml +0 -87
  210. package/agents/massa-ai-planner.toml +0 -62
  211. package/agents/massa-ai-requirements-analyst.toml +0 -61
  212. package/agents/massa-ai-reviewer.toml +0 -63
  213. package/agents/massa-ai-test-engineer.toml +0 -64
  214. package/agents/massa-ai-verification-agent.toml +0 -62
  215. package/skills/agents/architecture-specialist/SKILL.md +0 -66
  216. package/skills/agents/audit-specialist/SKILL.md +0 -83
  217. package/skills/agents/context-curator/SKILL.md +0 -68
  218. package/skills/agents/documentation-agent/SKILL.md +0 -66
  219. package/skills/agents/furps-analyst/SKILL.md +0 -71
  220. package/skills/agents/investigator/SKILL.md +0 -69
  221. package/skills/agents/meta-judge/SKILL.md +0 -87
  222. package/skills/agents/mobile-specialist/SKILL.md +0 -83
  223. package/skills/agents/navigator/SKILL.md +0 -76
  224. package/skills/agents/plan-critic/SKILL.md +0 -90
  225. package/skills/agents/planner/SKILL.md +0 -66
  226. package/skills/agents/requirements-analyst/SKILL.md +0 -65
  227. package/skills/agents/reviewer/SKILL.md +0 -67
  228. package/skills/agents/verification-agent/SKILL.md +0 -66
  229. package/skills/general.md +0 -14
  230. package/skills/maestro-audit.md +0 -14
  231. package/skills/maestro-fix.md +0 -14
  232. package/skills/maestro.md +0 -14
  233. package/skills/massa-ai/personas/README.md +0 -35
  234. package/skills/massa-ai/personas/ai-native-nodejs-cli-architect.md +0 -47
  235. package/skills/massa-ai/personas/catalog.json +0 -7
  236. package/skills/massa-ai/personas/context-skill-harness-engineer-architect.md +0 -47
  237. package/skills/massa-ai/personas/product-manager.md +0 -65
  238. package/skills/massa-ai/personas/senior-mobile-engineer.md +0 -46
  239. package/skills/massa-ai/personas/senior-mobile-qa-automation-engineer.md +0 -51
  240. package/skills/massa-ai/personas/signals/ai-native-nodejs-cli-architect.json +0 -20
  241. package/skills/massa-ai/personas/signals/context-skill-harness-engineer-architect.json +0 -20
  242. package/skills/massa-ai/personas/signals/product-manager.json +0 -21
  243. package/skills/massa-ai/personas/signals/senior-mobile-engineer.json +0 -18
  244. package/skills/massa-ai/personas/signals/senior-mobile-qa-automation-engineer.json +0 -18
  245. package/skills/massa-ai/references/maestro/artifacts-reports.md +0 -69
  246. package/skills/massa-ai/references/maestro/cli-device.md +0 -65
  247. package/skills/massa-ai/references/maestro/cloud.md +0 -69
  248. package/skills/massa-ai/references/maestro/config-env-output.md +0 -76
  249. package/skills/massa-ai/references/maestro/fact-ledger.md +0 -73
  250. package/skills/massa-ai/references/maestro/js-scripting.md +0 -70
  251. package/skills/massa-ai/references/maestro/mcp.md +0 -59
  252. package/skills/massa-ai/references/maestro/patterns.md +0 -102
  253. package/skills/massa-ai/references/maestro/selectors.md +0 -91
  254. package/skills/massa-ai/references/maestro/workspace-execution.md +0 -81
  255. package/skills/massa-ai/references/maestro/yaml-commands.md +0 -203
  256. package/skills/massa-ai/references/maestro.md +0 -31
  257. package/skills/massa-ai/workflows/general.md +0 -88
  258. package/skills/massa-ai/workflows/maestro/maestro-audit.md +0 -64
  259. package/skills/massa-ai/workflows/maestro/maestro-fix.md +0 -111
  260. package/skills/massa-ai/workflows/maestro/maestro.md +0 -80
  261. package/skills/persona-router/SKILL.md +0 -52
  262. package/skills/persona-router/references/routing-details.md +0 -98
  263. /package/skills/massa-ai/references/{rfc → create-rfc}/ATTRIBUTION.md +0 -0
  264. /package/skills/massa-ai/references/{rfc → create-rfc}/document-contract.md +0 -0
  265. /package/skills/massa-ai/references/{rfc → create-rfc}/quality-and-lifecycle.md +0 -0
  266. /package/skills/massa-ai/references/{tdd → create-tdd}/document-contract.md +0 -0
  267. /package/skills/massa-ai/references/{ticket → create-ticket}/atlassian-fix.md +0 -0
  268. /package/skills/massa-ai/references/{ticket → create-ticket}/templates-and-quality.md +0 -0
@@ -1,40 +1,49 @@
1
1
  ---
2
2
  name: test-engineer
3
- description: Testing strategy agent. Generate unit, integration, edge-case, negative-scenario, and acceptance-coverage test plans. Default read-only; writes only test files when explicitly scoped with a disjoint write set. Triggers when a workflow needs a test strategy or test plan. Focuses only on testing; no production code changes outside test files.
3
+ description: Testing agent. Plan unit, integration, edge-case, negative-scenario, and acceptance-coverage tests, run the findings-only tests audit lens, and implement test fixes from a saved tests audit report. Mode is selected by the capability packet (plan, audit, or fix). Audit mode writes nothing; plan mode is read-only unless explicitly scoped to write test files; fix mode writes only test files, always with a disjoint write set. Focuses only on testing; no production code changes outside test files.
4
4
  license: MIT
5
5
  metadata:
6
6
  author: Luiz Massa
7
- version: "1.0.0"
7
+ version: "2.0.0"
8
8
  permission: write
9
9
  ---
10
10
 
11
11
  # Test Engineer Agent Skill
12
12
 
13
13
  ## Mission
14
- Generate a testing strategy that covers unit, integration, edge cases, negative scenarios, and acceptance criteria, and that catches the five distinct error classes a test suite must cover: business-logic errors, code no test touched, hardcoded-example brittleness, built-the-wrong-thing, and drift over time.
14
+ Make a test suite catch the five distinct error classes it must cover business-logic errors, code no test touched, hardcoded-example brittleness, built-the-wrong-thing, and drift over time — by planning the tests, auditing the ones that exist, and implementing test fixes.
15
15
 
16
16
  ## Responsibilities
17
- - Define unit test cases for core logic.
18
- - Define integration test cases for boundaries.
19
- - Identify edge cases and negative scenarios.
17
+ - Run exactly one mode per dispatch, selected by the packet `mode` field: `plan`, `audit`, or `fix`.
18
+ - Map acceptance coverage to spec criteria.
20
19
  - Design variation/property-style test cases — vary inputs beyond the fixture example (bounds, parameter changes) — technique-level, library-neutral.
21
- - Produce a test plan aligned with acceptance criteria.
22
- - Ensure acceptance coverage maps to spec criteria.
23
20
 
24
21
  ## Restrictions
22
+ - Unknown `mode`: return `Blocked` naming the valid modes `plan`, `audit`, `fix`; a missing `mode` takes the default in Inputs.
25
23
  - Focus only on testing.
26
24
  - No production code changes outside test files.
27
- - Write only when scoped with a disjoint write set (same constraint as builder).
28
- - Never load the `massa-ai` or `persona-router` routers, and never open a `personas/` prompt file; the dispatching workflow owns routing and persona selection.
29
- - A `persona` supplied in the capability packet shapes emphasis only; these Restrictions win on any conflict.
25
+ - Write only in `fix` mode (or `plan` mode when explicitly scoped to write test files), always with a disjoint write set (same constraint as `builder`); `audit` mode writes nothing.
26
+ - Never weaken, skip, or delete an existing test assertion to make a suite pass.
27
+ - Never load the `massa-ai` router skill; the dispatching workflow owns routing.
30
28
 
31
29
  ## Inputs
32
- - `scope`: the feature, module, or spec to test.
33
- - `inputs`: acceptance criteria, recalled facts, existing test conventions.
34
- - `permissions`: read-only default; write test files only when explicitly scoped + disjoint.
30
+ - `mode`: `plan` | `audit` | `fix` (defaults to `plan`).
31
+ - `lens`: `audit` mode only one of `tests` (the single lens this charter runs; optional).
32
+ - `scope`: the feature, module, spec, audit target, or saved-report findings to handle.
33
+ - `inputs`: acceptance criteria, recalled facts, existing test conventions, the saved tests audit report (`fix` mode).
34
+ - `permissions`: read-only default; write test files only when explicitly scoped + disjoint, and never in `audit` mode.
35
35
  - `sensors`: test runner commands, coverage tools.
36
36
 
37
- ## Outputs
37
+ ## Modes
38
+
39
+ ### Mode: `plan`
40
+ Testing strategy before or after implementation.
41
+
42
+ - Define unit test cases for core logic and integration test cases for boundaries.
43
+ - Identify edge cases and negative scenarios.
44
+ - Produce a test plan aligned with acceptance criteria.
45
+
46
+ Output:
38
47
  - Status: Complete | Partial | Blocked
39
48
  - Scope: test plan or test files written
40
49
  - Evidence: test commands, coverage output, acceptance-criteria mapping
@@ -42,27 +51,53 @@ Generate a testing strategy that covers unit, integration, edge cases, negative
42
51
  - Risks and skipped checks
43
52
  - Exact next step
44
53
 
54
+ ### Mode: `audit`
55
+ Findings-only tests lens: coverage, regression protection, assertion quality, fixture reliability, variation, and missing deterministic sensors in a concrete target. Shares `references/audit-scope.md` (scope rules) and `references/audit-report-io.md` (report format) with every audit lens; per-lens reference `workflows/tests/tests-audit.md`. Read-only; no fix actions are taken.
56
+
57
+ Output:
58
+ - Status: Complete | Partial | Blocked
59
+ - Scope: area audited + tests lens
60
+ - Evidence: `path:line` pointers, test-run and coverage results
61
+ - Findings: ranked list (severity, location, problem, suggestion) in the project audit-report format
62
+ - Risks and skipped checks
63
+ - Exact next step
64
+
65
+ ### Mode: `fix`
66
+ Implement the confirmed findings of a saved tests audit report inside test files only, per `workflows/tests/tests-fix.md`.
67
+
68
+ Output:
69
+ - Status: Complete | Partial | Blocked
70
+ - Scope: test files changed, per finding ID
71
+ - Evidence: test commands and results, proof each new or changed test fails without the behavior it guards
72
+ - Findings: per-finding implementation summary
73
+ - Risks and skipped checks
74
+ - Exact next step
75
+
45
76
  ## Invocation
46
77
  ### Use when
47
- - A workflow needs a test strategy before or after implementation.
48
- - Acceptance criteria exist and need coverage mapping.
78
+ - A workflow needs a test strategy before or after implementation, or acceptance criteria need coverage mapping (`plan`).
79
+ - A workflow needs a findings-only tests audit (`audit`).
80
+ - The `tests-fix` workflow closes saved tests audit findings (`fix`).
49
81
  - The user asks for a test plan or test cases.
50
82
 
51
83
  ### Do not use when
52
- - No acceptance criteria or spec exists.
84
+ - No acceptance criteria, spec, or audit report exists.
53
85
  - The task is a docs-only change with no testable behavior.
86
+ - The fix needs production code changes (route to `builder`).
54
87
 
55
88
  ## massa-ai Integration
56
- - Context Firewall: summarize test output; return the plan and coverage map, not raw logs.
89
+ - Context Firewall: summarize test output; return the plan, coverage map, or findings, not raw logs.
57
90
  - Verification Ladder: behavioral (tests) and file-integrity (no validation assets weakened).
58
91
  - Massa-ai Memory: suggest durable test-pattern memories only when a testing convention is established; main agent persists.
59
- - Synapse: none (test planning is not a repeated-search task).
60
- - References (paths relative to the `massa-ai` skill directory): `references/verification-ladder.md`, `references/code-annotation.md`, `references/root-cause-scripts.md`.
92
+ - Synapse: none (test work is not a repeated-search task).
93
+ - References (paths relative to the `massa-ai` skill directory): `references/verification-ladder.md`, `references/code-annotation.md`, `references/root-cause-scripts.md`, `references/audit-scope.md`, `references/audit-report-io.md`.
61
94
 
62
95
  ## Validation Sensors
63
96
  - Every acceptance criterion maps to at least one test case.
64
97
  - Edge cases and negative scenarios are enumerated.
65
98
  - Test runner commands are named.
99
+ - `audit`: every finding has a `path:line` pointer and follows `references/audit-report-io.md`; no file written.
100
+ - `fix`: the diff stays inside test files and the assigned write set; no validation asset weakened.
66
101
 
67
102
  ## Memory Boundary
68
- Suggest durable memories only when a reusable testing convention or fixture pattern is established. The main agent persists. Do not persist one-off test plans.
103
+ Suggest durable memories only when a reusable testing convention or fixture pattern is established. The main agent persists. Do not persist one-off test plans or audit results.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: bootstrap
3
- description: Inspect or toggle the massa-ai startup-contract rules (caveman, massa-ai-router, persona-router, dedupe-guardrails, plan-challenge, conversation-feedback, indexing-hygiene, english-code, code-comments) that the installed MASSA-AI.md delivers to this host. Use when the user asks which startup rules are active, asks to turn one on or off, or asks why a rule is or is not being applied. Do NOT use for editing the rule text itself (that is a massa-ai repository change, not a runtime toggle) and do NOT claim a toggle is live before the user restarts the host session.
3
+ description: Inspect or toggle the massa-ai startup-contract rules (caveman, massa-ai-router, dedupe-guardrails, plan-challenge, conversation-feedback, indexing-hygiene, english-code, code-comments) that the installed MASSA-AI.md delivers to this host. Use when the user asks which startup rules are active, asks to turn one on or off, or asks why a rule is or is not being applied. Do NOT use for editing the rule text itself (that is a massa-ai repository change, not a runtime toggle) and do NOT claim a toggle is live before the user restarts the host session.
4
4
  license: MIT
5
5
  metadata:
6
6
  author: Luiz Massa
@@ -33,11 +33,10 @@ Run `bootstrap list` before any toggle, so the reported change is against a stat
33
33
  `--target <dir>` exists for scratch homes and requires `--yes`; it redirects only where the contract is *rendered*. The preference itself is always persisted to `~/.config/massa-ai/config.json`, so under a redirected target the CLI names both paths on stderr. Do not pass `--target` unless the user asked for a specific directory.
34
34
 
35
35
  ## The Rule Ids
36
- Exactly nine ids exist, and only these are accepted. There is no protected subset — every one of them can be switched both ways, including `massa-ai-router`.
36
+ Exactly eight ids exist, and only these are accepted. There is no protected subset — every one of them can be switched both ways, including `massa-ai-router`.
37
37
 
38
38
  - `caveman` — keep communication compressed while preserving technical accuracy. Default: enabled.
39
39
  - `massa-ai-router` — load the massa-ai skill as the workflow router before substantive work. Default: enabled.
40
- - `persona-router` — select one cataloged specialist persona after massa-ai context is available. Default: enabled.
41
40
  - `dedupe-guardrails` — reuse already-loaded massa-ai context instead of bulk-loading workflows or references. Default: enabled.
42
41
  - `plan-challenge` — run The Fool as a post-plan challenge gate per the configured policy. Default: enabled.
43
42
  - `conversation-feedback` — emit chat-visible status updates for massa-ai workflow progress. Default: enabled.
@@ -45,7 +44,7 @@ Exactly nine ids exist, and only these are accepted. There is no protected subse
45
44
  - `english-code` — write generated code, identifiers, comments, and commit-facing artifacts in English regardless of conversational language. Default: enabled.
46
45
  - `code-comments` — require API doc blocks and rationale comments on generated code. Default: **disabled**.
47
46
 
48
- Never invent an id. An unrecognised id is refused before anything is read or written, and the error names the id and lists all nine — relay that list rather than guessing what the user meant.
47
+ Never invent an id. An unrecognised id is refused before anything is read or written, and the error names the id and lists all eight — relay that list rather than guessing what the user meant.
49
48
 
50
49
  Disabling `massa-ai-router` is allowed and is the user's call. Say plainly that it removes the router which reads the startup contract, and that the recovery is this same CLI (`massa-ai-config bootstrap enable massa-ai-router`), which is a binary and not a rule, so it stays reachable.
51
50
 
@@ -67,7 +66,7 @@ On a dry run, say so and that no files changed.
67
66
 
68
67
  ## Restrictions
69
68
  - Never use an MCP tool for this surface; none exists. The CLI must keep working with the MCP server unreachable.
70
- - Never invent, abbreviate, or pluralise a rule id; use only the nine ids above, exactly as the engine lists them.
69
+ - Never invent, abbreviate, or pluralise a rule id; use only the eight ids above, exactly as the engine lists them.
71
70
  - Never hand-edit a delivered `MASSA-AI.md`, a host's `AGENTS.md`, or `~/.config/massa-ai/config.json` to satisfy a toggle request — the engine owns those bytes, and a hand edit is overwritten by the next apply.
72
71
  - Never edit the rule text itself to satisfy a toggle request; that is a massa-ai repository change owned by a different workflow.
73
72
  - Never claim a toggle is live before the affected host's session restarts.
@@ -1,13 +1,13 @@
1
1
  ---
2
- description: "Use this workflow to record a finalized or being-finalized architecture decision; route open options to rfc and implementation planning to tdd. — explicit massa-ai 'adr' workflow"
2
+ description: "Use this workflow to record a finalized or being-finalized architecture decision; route open options to create-rfc and implementation planning to create-tdd. — explicit massa-ai 'create-adr' workflow"
3
3
  argument-hint: "[task description]"
4
4
  ---
5
5
  <!-- massa-ai:generated workflow-command -->
6
6
 
7
- Explicit massa-ai workflow invocation: `adr`.
7
+ Explicit massa-ai workflow invocation: `create-adr`.
8
8
 
9
9
  Load the massa-ai router skill if not already loaded (dedupe guard), then
10
- route to workflow `adr` under routing precedence 1 (explicit route) —
10
+ route to workflow `create-adr` under routing precedence 1 (explicit route) —
11
11
  do not reclassify. Pass the following as the task description; if empty,
12
12
  the workflow's own intake gathers it.
13
13
 
@@ -1,13 +1,13 @@
1
1
  ---
2
- description: "Turn the current conversation into a PRD. Use when the user asks to create, synthesize, or convert existing discussion and codebase context into a Product Requirements Document without another interview. Do NOT use for implementation plans, architecture design docs, RFCs, TDDs, or discovery interviews that require new product questioning. — explicit massa-ai 'to-prd' workflow"
2
+ description: "Turn the current conversation into a PRD. Use when the user asks to create, synthesize, or convert existing discussion and codebase context into a Product Requirements Document without another interview. Do NOT use for implementation plans, architecture design docs, RFCs, TDDs, or discovery interviews that require new product questioning. — explicit massa-ai 'create-prd' workflow"
3
3
  argument-hint: "[task description]"
4
4
  ---
5
5
  <!-- massa-ai:generated workflow-command -->
6
6
 
7
- Explicit massa-ai workflow invocation: `to-prd`.
7
+ Explicit massa-ai workflow invocation: `create-prd`.
8
8
 
9
9
  Load the massa-ai router skill if not already loaded (dedupe guard), then
10
- route to workflow `to-prd` under routing precedence 1 (explicit route) —
10
+ route to workflow `create-prd` under routing precedence 1 (explicit route) —
11
11
  do not reclassify. Pass the following as the task description; if empty,
12
12
  the workflow's own intake gathers it.
13
13
 
@@ -1,13 +1,13 @@
1
1
  ---
2
- description: "Use this workflow when a significant technical, process, product, vendor, tool, or policy decision is still open and stakeholders need a structured proposal before committing. — explicit massa-ai 'rfc' workflow"
2
+ description: "Use this workflow when a significant technical, process, product, vendor, tool, or policy decision is still open and stakeholders need a structured proposal before committing. — explicit massa-ai 'create-rfc' workflow"
3
3
  argument-hint: "[task description]"
4
4
  ---
5
5
  <!-- massa-ai:generated workflow-command -->
6
6
 
7
- Explicit massa-ai workflow invocation: `rfc`.
7
+ Explicit massa-ai workflow invocation: `create-rfc`.
8
8
 
9
9
  Load the massa-ai router skill if not already loaded (dedupe guard), then
10
- route to workflow `rfc` under routing precedence 1 (explicit route) —
10
+ route to workflow `create-rfc` under routing precedence 1 (explicit route) —
11
11
  do not reclassify. Pass the following as the task description; if empty,
12
12
  the workflow's own intake gathers it.
13
13
 
@@ -1,13 +1,13 @@
1
1
  ---
2
- description: "Use this workflow to write a Technical Design Document once one product direction is selected and no unresolved API, data, security, or rollout decision blocks implementation. — explicit massa-ai 'tdd' workflow"
2
+ description: "Use this workflow to write a Technical Design Document once one product direction is selected and no unresolved API, data, security, or rollout decision blocks implementation. — explicit massa-ai 'create-tdd' workflow"
3
3
  argument-hint: "[task description]"
4
4
  ---
5
5
  <!-- massa-ai:generated workflow-command -->
6
6
 
7
- Explicit massa-ai workflow invocation: `tdd`.
7
+ Explicit massa-ai workflow invocation: `create-tdd`.
8
8
 
9
9
  Load the massa-ai router skill if not already loaded (dedupe guard), then
10
- route to workflow `tdd` under routing precedence 1 (explicit route) —
10
+ route to workflow `create-tdd` under routing precedence 1 (explicit route) —
11
11
  do not reclassify. Pass the following as the task description; if empty,
12
12
  the workflow's own intake gathers it.
13
13
 
@@ -1,13 +1,13 @@
1
1
  ---
2
- description: "Use this workflow to draft, review, create, or resume creation of Jira Epics, issues, or sub-tasks through Atlassian MCP, the only tracker and mutation path. — explicit massa-ai 'ticket' workflow"
2
+ description: "Use this workflow to draft, review, create, or resume creation of Jira Epics, issues, or sub-tasks through Atlassian MCP, the only tracker and mutation path. — explicit massa-ai 'create-ticket' workflow"
3
3
  argument-hint: "[task description]"
4
4
  ---
5
5
  <!-- massa-ai:generated workflow-command -->
6
6
 
7
- Explicit massa-ai workflow invocation: `ticket`.
7
+ Explicit massa-ai workflow invocation: `create-ticket`.
8
8
 
9
9
  Load the massa-ai router skill if not already loaded (dedupe guard), then
10
- route to workflow `ticket` under routing precedence 1 (explicit route) —
10
+ route to workflow `create-ticket` under routing precedence 1 (explicit route) —
11
11
  do not reclassify. Pass the following as the task description; if empty,
12
12
  the workflow's own intake gathers it.
13
13
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: massa-ai
3
- description: Default memory-backed workflow router for every coding, planning-before-coding, debugging, code review, refactoring, or implementation conversation. Always load it once per new coding session, select specialized workflows first, and use the general fallback otherwise. Handles massa-ai recall/search, durable memory, context compaction, handoff, audits, specs, ADR/RFC/TDD, and evidence gates. Do NOT use for generic non-coding chat or bulk-loading every workflow/reference.
3
+ description: Default memory-backed workflow router for every coding, planning-before-coding, debugging, code review, refactoring, or implementation conversation. Always load it once per new coding session, select specialized workflows first, and work under the Core Contract without a workflow file otherwise. Handles massa-ai recall/search, durable memory, context compaction, handoff, audits, specs, ADR/RFC/TDD, and evidence gates. Do NOT use for generic non-coding chat or bulk-loading every workflow/reference.
4
4
  license: MIT
5
5
  metadata:
6
6
  author: Luiz Massa
@@ -35,6 +35,9 @@ Before reading any massa-ai file:
35
35
 
36
36
  - Every coding/planning task uses one stable `projectId` and
37
37
  `workflowSessionId`.
38
+ - Sub-agents are dispatched by bare charter name (`builder`, `code-reviewer`, ...).
39
+ On the Claude plugin route, dispatch the plugin-namespaced `massa-ai:<name>`
40
+ so a same-named user or project agent cannot intercept the dispatch.
38
41
  - Start with `recall` for relevant prior decisions/patterns.
39
42
  - Default startup/context recall is budgeted: use `limit <= 3`,
40
43
  `minImportance >= 0.7`, and `types=["critical","decision","pattern"]`
@@ -113,7 +116,7 @@ Examples:
113
116
  - `feature-user-onboarding`
114
117
  - `refactor-auth-module`
115
118
  - `spec-billing-workflow`
116
- - `adr-postgres-migration`
119
+ - `create-adr-postgres-migration`
117
120
 
118
121
  Resolve `projectId`:
119
122
 
@@ -143,9 +146,6 @@ current context already contains it.
143
146
  | `security-fix` | fix security audit report findings | `workflows/security/security-fix.md` |
144
147
  | `requirements-audit` | requirements/spec/acceptance/scope alignment findings | `workflows/requirements/requirements-audit.md` |
145
148
  | `requirements-fix` | fix requirements audit report findings | `workflows/requirements/requirements-fix.md` |
146
- | `maestro` | implement new Maestro mobile E2E flows | `workflows/maestro/maestro.md` |
147
- | `maestro-audit` | run and audit existing Maestro mobile E2E flows | `workflows/maestro/maestro-audit.md` |
148
- | `maestro-fix` | child-only fix for saved Maestro audit findings | `workflows/maestro/maestro-fix.md` |
149
149
  | `tests-audit` | test coverage/regression/assertion/flakiness findings | `workflows/tests/tests-audit.md` |
150
150
  | `tests-fix` | fix tests audit report findings | `workflows/tests/tests-fix.md` |
151
151
  | `bugs-audit` | findings-only bug discovery | `workflows/bugs/bugs-audit.md` |
@@ -159,34 +159,33 @@ current context already contains it.
159
159
  | `mobile-figma-audit` | compare an Android, iOS, or KMP UI implementation with a Figma design | `workflows/mobile-figma/mobile-figma-audit.md` |
160
160
  | `mobile-figma-fix` | fix saved mobile Figma findings | `workflows/mobile-figma/mobile-figma-fix.md` |
161
161
  | `refactor` | behavior-preserving structural cleanup | `workflows/refactor.md` |
162
- | `adr` | record a finalized decision | `workflows/adr.md` |
163
- | `rfc` | propose a significant change | `workflows/rfc.md` |
164
- | `tdd` | technical design / implementation plan | `workflows/tdd.md` |
165
- | `ticket` | draft and create Jira Epics, issues, and sub-tasks through Atlassian MCP | `workflows/ticket.md` |
162
+ | `create-adr` | record a finalized decision | `workflows/create-adr.md` |
163
+ | `create-rfc` | propose a significant change | `workflows/create-rfc.md` |
164
+ | `create-tdd` | technical design / implementation plan | `workflows/create-tdd.md` |
165
+ | `create-ticket` | draft and create Jira Epics, issues, and sub-tasks through Atlassian MCP | `workflows/create-ticket.md` |
166
166
  | `commit` | draft or create safe Conventional Commits with Jira branch prefixes and audit report exclusions | `workflows/commit.md` |
167
167
  | `the-fool` | direct challenge, red-team, pre-mortem, evidence audit | `workflows/the-fool.md` |
168
168
  | `judge-with-debate` | standalone multi-judge debate evaluation of user-supplied artifacts | `workflows/judge-with-debate.md` |
169
169
  | `pr-review` | review a hosted GitHub PR / GitLab MR and post findings via `gh`/`glab` | `workflows/pr-review.md` |
170
- | `discovery` | product brainstorming / problem-space thinking partner | `workflows/discovery.md` |
171
- | `to-prd` | turn the current conversation into a PRD without a new interview | `workflows/to-prd.md` |
170
+ | `product-discovery` | product brainstorming / problem-space thinking partner | `workflows/product-discovery.md` |
171
+ | `create-prd` | turn the current conversation into a PRD without a new interview | `workflows/create-prd.md` |
172
172
  | `skill-architect` | design and build a new skill through structured conversation | `workflows/skill-architect.md` |
173
173
  | `furps-refinement` | FURPS+ refinement of a PRD and/or ADR before implementation, with The Fool pre-validation and DoR coverage | `workflows/refinement/furps-refinement.md` |
174
- | `general` | coding work with no more specific workflow | `workflows/general.md` |
175
174
 
176
175
  Explicitly requested workflows win. Otherwise choose the most specific matching
177
176
  workflow. Use `exploration` only for explicitly read-only understanding or flow
178
- mapping; route to `general` when no route's precedence key above matches. Ask
177
+ mapping; when no route's precedence key above matches, load no workflow file. Ask
179
178
  the user only when two or more routes match the same precedence tier; a single
180
179
  match or no match is resolved deterministically without asking.
181
180
 
182
181
  Deterministic routing precedence, first match wins:
183
182
 
184
183
  1. **Explicit route:** user names a massa-ai workflow, report family, saved finding type, or asks for a direct challenge.
185
- 2. **Requested artifact:** ADR, RFC, TDD, Jira ticket, commit, session guide, audit report, implementation audit report, mobile Figma report, FURPS refinement report, PRD synthesized from the current conversation -> `to-prd` (explicit request only; refining an existing PRD stays `furps-refinement`), or new SKILL.md / skill design -> `skill-architect`.
186
- 3. **Target type:** broken behavior/error -> `debug`; hosted PR/MR reference (number or URL) to review with posted findings -> `pr-review` (local working diff stays with audit routes); saved audit finding -> matching `*-fix`; implementation scope review -> `implementation-audit`; Maestro E2E/device automation target -> `maestro`, `maestro-audit`, or child-only `maestro-fix` before generic tests workflows; security/privacy/auth finding -> security workflow; tests/flakes/coverage finding -> tests workflow; supplied Figma/screenshot mobile UI design -> `design`; mobile Figma compare/audit -> `mobile-figma-audit`; saved `MFM-*` findings -> `mobile-figma-fix`.
187
- 4. **Primary verb:** create/add/implement -> `feature` unless the concrete target is new Maestro flow work, which routes to `maestro`; restructure without behavior change -> `refactor`; inspect/understand only -> `exploration`; brainstorm/explore a product problem, idea, or direction with no concrete code target -> `discovery`; record selected decision -> `adr`; compare open options -> `rfc`; design settled implementation -> `tdd`; refine/quality-check an existing PRD or ADR document (not implementation auditing) -> `furps-refinement`.
184
+ 2. **Requested artifact:** ADR, RFC, TDD, Jira ticket, commit, session guide, audit report, implementation audit report, mobile Figma report, FURPS refinement report, PRD synthesized from the current conversation -> `create-prd` (explicit request only; refining an existing PRD stays `furps-refinement`), or new SKILL.md / skill design -> `skill-architect`.
185
+ 3. **Target type:** broken behavior/error -> `debug`; hosted PR/MR reference (number or URL) to review with posted findings -> `pr-review` (local working diff stays with audit routes); saved audit finding -> matching `*-fix`; implementation scope review -> `implementation-audit`; security/privacy/auth finding -> security workflow; tests/flakes/coverage finding -> tests workflow; supplied Figma/screenshot mobile UI design -> `design`; mobile Figma compare/audit -> `mobile-figma-audit`; saved `MFM-*` findings -> `mobile-figma-fix`.
186
+ 4. **Primary verb:** create/add/implement -> `feature`; restructure without behavior change -> `refactor`; inspect/understand only -> `exploration`; brainstorm/explore a product problem, idea, or direction with no concrete code target -> `product-discovery`; record selected decision -> `create-adr`; compare open options -> `create-rfc`; design settled implementation -> `create-tdd`; refine/quality-check an existing PRD or ADR document (not implementation auditing) -> `furps-refinement`.
188
187
  5. **Risk domain escalation:** migrations, irreversible operations, auth/privacy, cross-service contracts, public compatibility, or work over 10 files routes to `spec-driven` unless the user explicitly requests a narrower workflow and accepts the containment.
189
- 6. **General fallback:** use `general` only after a one-line General fallback preflight names the specialized workflow considered, rejected reason, and why fallback does not change verification or mutation behavior.
188
+ 6. **No match:** proceed without loading a workflow file. The main agent works under the Core Contract above (recall, verify, Evidence Gate) and states in one line which specialized workflow it considered and why none applies.
190
189
 
191
190
  Mobile is a context modifier, not a workflow. Route by primary intent first.
192
191
  Load `references/mobile-context.md` for non-debug mobile work, or
@@ -199,8 +198,8 @@ Read and apply the canonical Plan Challenge Policy from the installed
199
198
  `AGENTS.md` bootstrap block (single source: `skills/AGENTS.md`). Prompt-level
200
199
  user instructions override that policy for the current turn.
201
200
 
202
- For a low-risk plan that receives the lite gate, attempt a read-only
203
- `massa-ai-plan-critic` subagent with a bounded checklist packet instead of
201
+ For a low-risk plan that receives the lite gate, attempt a
202
+ `judge` subagent in `plan-critique` mode (it writes nothing in that mode) with a bounded checklist packet instead of
204
203
  running the checklist in the main agent. The packet includes the proposed plan, scope,
205
204
  constraints, compact recalled facts/evidence, known risks, verification recipe,
206
205
  parent identifiers, and this output requirement:
@@ -214,19 +213,19 @@ Lite preserves progressive disclosure: do not load The Fool mode references
214
213
  unless the lite critique escalates to full.
215
214
 
216
215
  Low-risk `feature` and `refactor` plans receive the lite gate first. Full The
217
- Fool stays for `spec-driven`, `design`, `adr`, `rfc`, `tdd`, explicit challenge
216
+ Fool stays for `spec-driven`, `design`, `create-adr`, `create-rfc`, `create-tdd`, explicit challenge
218
217
  requests, high-risk domains, or plans touching more than 5 files/classes/modules.
219
218
  When the policy selects the full gate, or lite escalates, load
220
219
  `workflows/the-fool.md`, select the mode in the main agent, load only the
221
- selected The Fool references, and attempt a read-only `massa-ai-plan-critic`
222
- subagent with selected mode context and a bounded critique packet. Subagents inherit
220
+ selected The Fool references, and attempt a `judge` subagent in `plan-critique` mode with the selected mode passed as `fool_mode`
221
+ and a bounded critique packet. Subagents inherit
223
222
  `projectId`, parent `workflowSessionId`, workflow name, entity, and compact
224
223
  evidence; they do not receive full conversation context.
225
224
 
226
225
  If the policy file is unavailable, use the conservative fallback: run the full
227
226
  gate for high-risk domains, broad multi-module plans, explicit challenge
228
227
  requests, and planning workflows that commit to a feature, refactor, ADR, RFC,
229
- or TDD. If the `massa-ai-plan-critic` agent is unavailable for any reason —
228
+ or TDD. If the `judge` agent is unavailable for any reason —
230
229
  spawning forbidden, plugin not installed, unknown `subagent_type` — run a strict
231
230
  standalone fresh-eyes local critique against the same output contract and report
232
231
  the skipped delegation reason. Do not retry under a different agent name. Reuse
@@ -282,7 +281,7 @@ Load only when a selected workflow asks for them:
282
281
  - `references/agent-orchestration.md`
283
282
  - `references/subagent-design.md`
284
283
  - `references/code-reuse-scan.md`
285
- - `references/adr-authoring.md`
284
+ - `references/create-adr.md`
286
285
  - `references/audit-scope.md`
287
286
  - `references/audit-report-io.md`
288
287
  - `references/hook-enforcement.md`
@@ -311,12 +310,10 @@ Load only when a selected workflow asks for them:
311
310
  - `references/repo-rules-discovery.md`
312
311
  - `references/root-cause-scripts.md`
313
312
  - `references/conversation-feedback.md`
314
- - `references/maestro.md`
315
- - `references/maestro/`
316
313
  - `references/synapse-policy.md`
317
- - `references/tdd/`
318
- - `references/rfc/`
319
- - `references/ticket/`
314
+ - `references/create-tdd/`
315
+ - `references/create-rfc/`
316
+ - `references/create-ticket/`
320
317
  - `references/spec-driven/`
321
318
  - `references/furps/`
322
319