@massa-ai/codex-plugin 1.26.0 → 1.29.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 (156) hide show
  1. package/.codex-plugin/plugin.json +1 -1
  2. package/agent-profiles/balanced/massa-ai-judge.toml +5 -8
  3. package/agent-profiles/balanced/massa-ai-meta-judge.toml +2 -5
  4. package/agent-profiles/balanced/massa-ai-navigator.toml +1 -1
  5. package/agent-profiles/cheap/massa-ai-judge.toml +5 -8
  6. package/agent-profiles/cheap/massa-ai-meta-judge.toml +2 -5
  7. package/agent-profiles/cheap/massa-ai-navigator.toml +1 -1
  8. package/agent-profiles/heavy/massa-ai-judge.toml +5 -8
  9. package/agent-profiles/heavy/massa-ai-meta-judge.toml +2 -5
  10. package/agent-profiles/heavy/massa-ai-navigator.toml +1 -1
  11. package/agent-profiles/home/massa-ai-judge.toml +5 -8
  12. package/agent-profiles/home/massa-ai-meta-judge.toml +2 -5
  13. package/agent-profiles/home/massa-ai-navigator.toml +1 -1
  14. package/agent-profiles/work/massa-ai-judge.toml +5 -8
  15. package/agent-profiles/work/massa-ai-meta-judge.toml +2 -5
  16. package/agent-profiles/work/massa-ai-navigator.toml +1 -1
  17. package/agents/massa-ai-judge.toml +5 -8
  18. package/agents/massa-ai-meta-judge.toml +2 -5
  19. package/agents/massa-ai-navigator.toml +1 -1
  20. package/install.sh +32 -0
  21. package/package.json +1 -1
  22. package/skills/agents/judge/SKILL.md +6 -9
  23. package/skills/agents/meta-judge/SKILL.md +3 -6
  24. package/skills/agents/navigator/SKILL.md +2 -2
  25. package/skills/massa-ai/SKILL.md +6 -17
  26. package/skills/massa-ai/references/adr-authoring.md +3 -3
  27. package/skills/massa-ai/references/agent-orchestration.md +18 -3
  28. package/skills/massa-ai/references/architecture-coupling-lens.md +1 -1
  29. package/skills/massa-ai/references/architecture-deepening-lens.md +1 -1
  30. package/skills/massa-ai/references/architecture-domain-lens.md +1 -1
  31. package/skills/massa-ai/references/architecture-lenses.md +1 -1
  32. package/skills/massa-ai/references/audit-report-io.md +32 -2
  33. package/skills/massa-ai/references/audit-scope.md +22 -1
  34. package/skills/massa-ai/references/code-annotation.md +5 -5
  35. package/skills/massa-ai/references/codebase-investigation.md +1 -1
  36. package/skills/massa-ai/references/coding-guidelines.md +67 -0
  37. package/skills/massa-ai/references/context-firewall.md +2 -1
  38. package/skills/massa-ai/references/conversation-feedback.md +1 -1
  39. package/skills/massa-ai/references/debug-diagnosis-loop.md +1 -1
  40. package/skills/massa-ai/references/decision-engine.md +1 -1
  41. package/skills/massa-ai/references/evidence-gate.md +1 -1
  42. package/skills/massa-ai/references/figma-pre-analysis.md +3 -3
  43. package/skills/massa-ai/references/furps/analyst-role.md +1 -1
  44. package/skills/massa-ai/references/furps/checklist.md +1 -1
  45. package/skills/massa-ai/references/furps/intake.md +1 -1
  46. package/skills/massa-ai/references/furps/report-contract.md +1 -1
  47. package/skills/massa-ai/references/graceful-degradation.md +22 -0
  48. package/skills/massa-ai/references/hook-enforcement.md +3 -3
  49. package/skills/massa-ai/references/implementation-delivery.md +4 -4
  50. package/skills/massa-ai/references/installation.md +1 -1
  51. package/skills/massa-ai/references/lessons.md +2 -2
  52. package/skills/massa-ai/references/maestro/artifacts-reports.md +1 -1
  53. package/skills/massa-ai/references/maestro/cli-device.md +1 -1
  54. package/skills/massa-ai/references/maestro/cloud.md +1 -1
  55. package/skills/massa-ai/references/maestro/config-env-output.md +1 -1
  56. package/skills/massa-ai/references/maestro/fact-ledger.md +1 -1
  57. package/skills/massa-ai/references/maestro/js-scripting.md +1 -1
  58. package/skills/massa-ai/references/maestro/mcp.md +1 -1
  59. package/skills/massa-ai/references/maestro/patterns.md +1 -1
  60. package/skills/massa-ai/references/maestro/selectors.md +1 -1
  61. package/skills/massa-ai/references/maestro/workspace-execution.md +1 -1
  62. package/skills/massa-ai/references/maestro/yaml-commands.md +1 -1
  63. package/skills/massa-ai/references/maestro.md +1 -1
  64. package/skills/massa-ai/references/mcp-tools.md +2 -2
  65. package/skills/massa-ai/references/memory-policy.md +2 -2
  66. package/skills/massa-ai/references/mobile-context.md +9 -5
  67. package/skills/massa-ai/references/mobile-diagnosis.md +2 -2
  68. package/skills/massa-ai/references/mobile-figma-matcher/android-compose.md +1 -1
  69. package/skills/massa-ai/references/mobile-figma-matcher/android-views.md +1 -1
  70. package/skills/massa-ai/references/mobile-figma-matcher/core.md +1 -1
  71. package/skills/massa-ai/references/mobile-figma-matcher/ios-swiftui.md +1 -1
  72. package/skills/massa-ai/references/mobile-figma-matcher/ios-uikit.md +1 -1
  73. package/skills/massa-ai/references/mobile-figma-matcher/kmp-compose-multiplatform.md +1 -1
  74. package/skills/massa-ai/references/mobile-figma-matcher/repository-detection.md +1 -1
  75. package/skills/massa-ai/references/naming-standards.md +1 -1
  76. package/skills/massa-ai/references/pr-task-fix.md +2 -2
  77. package/skills/massa-ai/references/project-context.md +2 -2
  78. package/skills/massa-ai/references/repo-rules-discovery.md +4 -4
  79. package/skills/massa-ai/references/rfc/discovery-and-sizing.md +1 -1
  80. package/skills/massa-ai/references/rfc/document-contract.md +1 -1
  81. package/skills/massa-ai/references/rfc/quality-and-lifecycle.md +1 -1
  82. package/skills/massa-ai/references/root-cause-scripts.md +2 -2
  83. package/skills/massa-ai/references/skill-architect/examples.md +256 -0
  84. package/skills/massa-ai/references/skill-architect/patterns.md +317 -0
  85. package/skills/massa-ai/references/skill-architect/quality-checklist.md +70 -0
  86. package/skills/massa-ai/references/sonarqube-mcp.md +73 -0
  87. package/skills/massa-ai/references/spec-driven/artifact-store.md +1 -1
  88. package/skills/massa-ai/references/spec-driven/brownfield-mapping.md +16 -0
  89. package/skills/massa-ai/references/spec-driven/code-analysis.md +1 -1
  90. package/skills/massa-ai/references/spec-driven/coding-principles.md +1 -1
  91. package/skills/massa-ai/references/spec-driven/context-limits.md +1 -1
  92. package/skills/massa-ai/references/spec-driven/design.md +22 -1
  93. package/skills/massa-ai/references/spec-driven/discuss.md +1 -1
  94. package/skills/massa-ai/references/spec-driven/execute.md +3 -1
  95. package/skills/massa-ai/references/spec-driven/memory.md +1 -1
  96. package/skills/massa-ai/references/spec-driven/specify.md +3 -3
  97. package/skills/massa-ai/references/spec-driven/sub-agents.md +1 -1
  98. package/skills/massa-ai/references/spec-driven/tasks.md +1 -1
  99. package/skills/massa-ai/references/spec-driven/validate.md +1 -1
  100. package/skills/massa-ai/references/subagent-design.md +4 -4
  101. package/skills/massa-ai/references/synapse-policy.md +1 -1
  102. package/skills/massa-ai/references/tdd/calibrated-examples.md +1 -1
  103. package/skills/massa-ai/references/tdd/discovery-and-sizing.md +1 -1
  104. package/skills/massa-ai/references/tdd/document-contract.md +1 -1
  105. package/skills/massa-ai/references/tdd/quality-and-lifecycle.md +1 -1
  106. package/skills/massa-ai/references/the-fool/cognitive-bias-inventory.md +1 -1
  107. package/skills/massa-ai/references/the-fool/dialectic-synthesis.md +1 -1
  108. package/skills/massa-ai/references/the-fool/evidence-audit.md +1 -1
  109. package/skills/massa-ai/references/the-fool/pre-mortem-analysis.md +1 -1
  110. package/skills/massa-ai/references/the-fool/red-team-adversarial.md +1 -1
  111. package/skills/massa-ai/references/the-fool/socratic-questioning.md +1 -1
  112. package/skills/massa-ai/references/ticket/atlassian-fix.md +1 -1
  113. package/skills/massa-ai/references/ticket/intake-and-sources.md +1 -1
  114. package/skills/massa-ai/references/ticket/templates-and-quality.md +1 -1
  115. package/skills/massa-ai/references/verification-ladder.md +1 -1
  116. package/skills/massa-ai/scripts/validate_audit_report.ts +382 -0
  117. package/skills/massa-ai/scripts/validate_design.ts +264 -0
  118. package/skills/massa-ai/scripts/validate_skill.ts +364 -0
  119. package/skills/massa-ai/workflows/adr.md +16 -8
  120. package/skills/massa-ai/workflows/architecture/architecture-audit.md +23 -40
  121. package/skills/massa-ai/workflows/architecture/architecture-fix.md +14 -6
  122. package/skills/massa-ai/workflows/bugs/bugs-audit.md +19 -35
  123. package/skills/massa-ai/workflows/bugs/bugs-fix.md +13 -5
  124. package/skills/massa-ai/workflows/code-quality/code-quality-audit.md +25 -41
  125. package/skills/massa-ai/workflows/code-quality/code-quality-fix.md +13 -5
  126. package/skills/massa-ai/workflows/commit.md +13 -5
  127. package/skills/massa-ai/workflows/debug.md +11 -3
  128. package/skills/massa-ai/workflows/design.md +15 -7
  129. package/skills/massa-ai/workflows/exploration.md +12 -4
  130. package/skills/massa-ai/workflows/feature.md +14 -13
  131. package/skills/massa-ai/workflows/general.md +13 -8
  132. package/skills/massa-ai/workflows/implementation/implementation-audit.md +15 -15
  133. package/skills/massa-ai/workflows/implementation/implementation-fix.md +13 -5
  134. package/skills/massa-ai/workflows/judge-with-debate.md +12 -4
  135. package/skills/massa-ai/workflows/long-session.md +10 -2
  136. package/skills/massa-ai/workflows/maestro/maestro-audit.md +11 -3
  137. package/skills/massa-ai/workflows/maestro/maestro-fix.md +12 -4
  138. package/skills/massa-ai/workflows/maestro/maestro.md +12 -4
  139. package/skills/massa-ai/workflows/mobile-figma/mobile-figma-audit.md +11 -3
  140. package/skills/massa-ai/workflows/mobile-figma/mobile-figma-fix.md +12 -4
  141. package/skills/massa-ai/workflows/onboarding.md +10 -2
  142. package/skills/massa-ai/workflows/refactor.md +12 -4
  143. package/skills/massa-ai/workflows/refinement/furps-refinement.md +12 -4
  144. package/skills/massa-ai/workflows/requirements/requirements-audit.md +19 -36
  145. package/skills/massa-ai/workflows/requirements/requirements-fix.md +13 -5
  146. package/skills/massa-ai/workflows/rfc.md +10 -2
  147. package/skills/massa-ai/workflows/security/security-audit.md +19 -35
  148. package/skills/massa-ai/workflows/security/security-fix.md +13 -5
  149. package/skills/massa-ai/workflows/skill-architect.md +393 -0
  150. package/skills/massa-ai/workflows/spec-driven.md +20 -23
  151. package/skills/massa-ai/workflows/tdd.md +10 -2
  152. package/skills/massa-ai/workflows/tests/tests-audit.md +19 -35
  153. package/skills/massa-ai/workflows/tests/tests-fix.md +13 -5
  154. package/skills/massa-ai/workflows/the-fool.md +11 -3
  155. package/skills/massa-ai/workflows/ticket.md +10 -2
  156. package/skills/massa-ai/workflows/to-prd.md +81 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "massa-ai",
3
- "version": "1.26.0",
3
+ "version": "1.29.0",
4
4
  "description": "massa-ai — semantic code search, memory, and context compression for Codex",
5
5
  "author": {
6
6
  "name": "Luiz Massa",
@@ -1,9 +1,9 @@
1
1
  # massa-ai-owned
2
2
  name = "massa-ai-judge"
3
- description = "Read-only debate-panel evaluator for judge-with-debate. Score an artifact against the meta-judge's evaluation specification with quoted evidence, then defend or revise scores across up to 3 debate rounds until the panel reaches consensus. Writes only its own judge-N report file per dispatch. Never judges outside the specification, never revises without quoted evidence."
3
+ description = "Debate-panel evaluator for judge-with-debate. Score an artifact against the meta-judge's evaluation specification with quoted evidence, then defend or revise scores across up to 3 debate rounds until the panel reaches consensus. Writes only its own judge-N report file per dispatch. Never judges outside the specification, never revises without quoted evidence."
4
4
  model = "gpt-5.6-sol"
5
5
  model_reasoning_effort = "high"
6
- sandbox_mode = "read-only"
6
+ sandbox_mode = "workspace-write"
7
7
  developer_instructions = """# Judge Agent Skill
8
8
 
9
9
  ## Mission
@@ -78,12 +78,9 @@ next_step: <string>
78
78
  - References: `references/agent-orchestration.md`, `references/audit-report-io.md` (Judge With Debate Report Contracts).
79
79
 
80
80
  ## Model Hint
81
- This charter's `metadata.model_tier` (`deep`) is the fallback every host runs when dispatch-time
82
- model selection is unavailable. The `judge-with-debate` workflow additionally requests per-slot
83
- model diversity at dispatch time on hosts that support it — `workflows/judge-with-debate.md` is
84
- the single source for the current slot assignments, not this file. When dispatch-time selection
85
- is unavailable, every slot runs the charter default and the orchestrator records
86
- `DIVERSITY DEGRADED` per the workflow contract.
81
+ See `references/agent-orchestration.md` (Model Diversity Fallback): `metadata.model_tier`
82
+ (`deep`) is the per-slot fallback; `workflows/judge-with-debate.md` owns the live slot
83
+ assignments.
87
84
 
88
85
  ## Validation Sensors
89
86
  - Every criterion score carries an exact quotation from the artifact.
@@ -69,11 +69,8 @@ overall: weighted-mean
69
69
  - References: `references/agent-orchestration.md`, `references/audit-report-io.md` (Judge With Debate Report Contracts).
70
70
 
71
71
  ## Model Hint
72
- This charter's `metadata.model_tier` (`deep`) is the fallback every host runs when dispatch-time
73
- model selection is unavailable. The `judge-with-debate` workflow additionally requests a specific
74
- model for this slot at dispatch time on hosts that support it — `workflows/judge-with-debate.md`
75
- is the single source for the current assignment, not this file. When dispatch-time selection is
76
- unavailable, the orchestrator records a diversity warning per the workflow contract.
72
+ See `references/agent-orchestration.md` (Model Diversity Fallback): `metadata.model_tier`
73
+ (`deep`) is the fallback; `workflows/judge-with-debate.md` owns the live model assignment.
77
74
 
78
75
  ## Validation Sensors
79
76
  - Output parses as YAML; weights sum to 1.0 (±0.001); every criterion carries id, name, weight, scale (min 1, max 5), rubric anchors for 1/3/5, and a non-empty checklist.
@@ -10,7 +10,7 @@ developer_instructions = """# Navigator Agent Skill
10
10
  Answer codebase questions through the massa-ai semantic index, reading files only once the index has narrowed the target to one to three of them.
11
11
 
12
12
  ## Core Principle
13
- The user's codebase is **already indexed** by massa-ai. The first move on any question is to query the index, not to read files blindly. File reads are expensive in context; massa-ai index queries are not.
13
+ The user's codebase is **already indexed** by massa-ai. The first move on any question is to query the index, not read files blindly — file reads are expensive in context; massa-ai index queries are not.
14
14
 
15
15
  ## Responsibilities
16
16
  - Resolve the current project: run `pwd`, match the basename against `list_projects`.
@@ -1,9 +1,9 @@
1
1
  # massa-ai-owned
2
2
  name = "massa-ai-judge"
3
- description = "Read-only debate-panel evaluator for judge-with-debate. Score an artifact against the meta-judge's evaluation specification with quoted evidence, then defend or revise scores across up to 3 debate rounds until the panel reaches consensus. Writes only its own judge-N report file per dispatch. Never judges outside the specification, never revises without quoted evidence."
3
+ description = "Debate-panel evaluator for judge-with-debate. Score an artifact against the meta-judge's evaluation specification with quoted evidence, then defend or revise scores across up to 3 debate rounds until the panel reaches consensus. Writes only its own judge-N report file per dispatch. Never judges outside the specification, never revises without quoted evidence."
4
4
  model = "gpt-5.6-luna"
5
5
  model_reasoning_effort = "high"
6
- sandbox_mode = "read-only"
6
+ sandbox_mode = "workspace-write"
7
7
  developer_instructions = """# Judge Agent Skill
8
8
 
9
9
  ## Mission
@@ -78,12 +78,9 @@ next_step: <string>
78
78
  - References: `references/agent-orchestration.md`, `references/audit-report-io.md` (Judge With Debate Report Contracts).
79
79
 
80
80
  ## Model Hint
81
- This charter's `metadata.model_tier` (`deep`) is the fallback every host runs when dispatch-time
82
- model selection is unavailable. The `judge-with-debate` workflow additionally requests per-slot
83
- model diversity at dispatch time on hosts that support it — `workflows/judge-with-debate.md` is
84
- the single source for the current slot assignments, not this file. When dispatch-time selection
85
- is unavailable, every slot runs the charter default and the orchestrator records
86
- `DIVERSITY DEGRADED` per the workflow contract.
81
+ See `references/agent-orchestration.md` (Model Diversity Fallback): `metadata.model_tier`
82
+ (`deep`) is the per-slot fallback; `workflows/judge-with-debate.md` owns the live slot
83
+ assignments.
87
84
 
88
85
  ## Validation Sensors
89
86
  - Every criterion score carries an exact quotation from the artifact.
@@ -69,11 +69,8 @@ overall: weighted-mean
69
69
  - References: `references/agent-orchestration.md`, `references/audit-report-io.md` (Judge With Debate Report Contracts).
70
70
 
71
71
  ## Model Hint
72
- This charter's `metadata.model_tier` (`deep`) is the fallback every host runs when dispatch-time
73
- model selection is unavailable. The `judge-with-debate` workflow additionally requests a specific
74
- model for this slot at dispatch time on hosts that support it — `workflows/judge-with-debate.md`
75
- is the single source for the current assignment, not this file. When dispatch-time selection is
76
- unavailable, the orchestrator records a diversity warning per the workflow contract.
72
+ See `references/agent-orchestration.md` (Model Diversity Fallback): `metadata.model_tier`
73
+ (`deep`) is the fallback; `workflows/judge-with-debate.md` owns the live model assignment.
77
74
 
78
75
  ## Validation Sensors
79
76
  - Output parses as YAML; weights sum to 1.0 (±0.001); every criterion carries id, name, weight, scale (min 1, max 5), rubric anchors for 1/3/5, and a non-empty checklist.
@@ -10,7 +10,7 @@ developer_instructions = """# Navigator Agent Skill
10
10
  Answer codebase questions through the massa-ai semantic index, reading files only once the index has narrowed the target to one to three of them.
11
11
 
12
12
  ## Core Principle
13
- The user's codebase is **already indexed** by massa-ai. The first move on any question is to query the index, not to read files blindly. File reads are expensive in context; massa-ai index queries are not.
13
+ The user's codebase is **already indexed** by massa-ai. The first move on any question is to query the index, not read files blindly — file reads are expensive in context; massa-ai index queries are not.
14
14
 
15
15
  ## Responsibilities
16
16
  - Resolve the current project: run `pwd`, match the basename against `list_projects`.
@@ -1,9 +1,9 @@
1
1
  # massa-ai-owned
2
2
  name = "massa-ai-judge"
3
- description = "Read-only debate-panel evaluator for judge-with-debate. Score an artifact against the meta-judge's evaluation specification with quoted evidence, then defend or revise scores across up to 3 debate rounds until the panel reaches consensus. Writes only its own judge-N report file per dispatch. Never judges outside the specification, never revises without quoted evidence."
3
+ description = "Debate-panel evaluator for judge-with-debate. Score an artifact against the meta-judge's evaluation specification with quoted evidence, then defend or revise scores across up to 3 debate rounds until the panel reaches consensus. Writes only its own judge-N report file per dispatch. Never judges outside the specification, never revises without quoted evidence."
4
4
  model = "gpt-5.6-sol"
5
5
  model_reasoning_effort = "xhigh"
6
- sandbox_mode = "read-only"
6
+ sandbox_mode = "workspace-write"
7
7
  developer_instructions = """# Judge Agent Skill
8
8
 
9
9
  ## Mission
@@ -78,12 +78,9 @@ next_step: <string>
78
78
  - References: `references/agent-orchestration.md`, `references/audit-report-io.md` (Judge With Debate Report Contracts).
79
79
 
80
80
  ## Model Hint
81
- This charter's `metadata.model_tier` (`deep`) is the fallback every host runs when dispatch-time
82
- model selection is unavailable. The `judge-with-debate` workflow additionally requests per-slot
83
- model diversity at dispatch time on hosts that support it — `workflows/judge-with-debate.md` is
84
- the single source for the current slot assignments, not this file. When dispatch-time selection
85
- is unavailable, every slot runs the charter default and the orchestrator records
86
- `DIVERSITY DEGRADED` per the workflow contract.
81
+ See `references/agent-orchestration.md` (Model Diversity Fallback): `metadata.model_tier`
82
+ (`deep`) is the per-slot fallback; `workflows/judge-with-debate.md` owns the live slot
83
+ assignments.
87
84
 
88
85
  ## Validation Sensors
89
86
  - Every criterion score carries an exact quotation from the artifact.
@@ -69,11 +69,8 @@ overall: weighted-mean
69
69
  - References: `references/agent-orchestration.md`, `references/audit-report-io.md` (Judge With Debate Report Contracts).
70
70
 
71
71
  ## Model Hint
72
- This charter's `metadata.model_tier` (`deep`) is the fallback every host runs when dispatch-time
73
- model selection is unavailable. The `judge-with-debate` workflow additionally requests a specific
74
- model for this slot at dispatch time on hosts that support it — `workflows/judge-with-debate.md`
75
- is the single source for the current assignment, not this file. When dispatch-time selection is
76
- unavailable, the orchestrator records a diversity warning per the workflow contract.
72
+ See `references/agent-orchestration.md` (Model Diversity Fallback): `metadata.model_tier`
73
+ (`deep`) is the fallback; `workflows/judge-with-debate.md` owns the live model assignment.
77
74
 
78
75
  ## Validation Sensors
79
76
  - Output parses as YAML; weights sum to 1.0 (±0.001); every criterion carries id, name, weight, scale (min 1, max 5), rubric anchors for 1/3/5, and a non-empty checklist.
@@ -10,7 +10,7 @@ developer_instructions = """# Navigator Agent Skill
10
10
  Answer codebase questions through the massa-ai semantic index, reading files only once the index has narrowed the target to one to three of them.
11
11
 
12
12
  ## Core Principle
13
- The user's codebase is **already indexed** by massa-ai. The first move on any question is to query the index, not to read files blindly. File reads are expensive in context; massa-ai index queries are not.
13
+ The user's codebase is **already indexed** by massa-ai. The first move on any question is to query the index, not read files blindly — file reads are expensive in context; massa-ai index queries are not.
14
14
 
15
15
  ## Responsibilities
16
16
  - Resolve the current project: run `pwd`, match the basename against `list_projects`.
@@ -1,9 +1,9 @@
1
1
  # massa-ai-owned
2
2
  name = "massa-ai-judge"
3
- description = "Read-only debate-panel evaluator for judge-with-debate. Score an artifact against the meta-judge's evaluation specification with quoted evidence, then defend or revise scores across up to 3 debate rounds until the panel reaches consensus. Writes only its own judge-N report file per dispatch. Never judges outside the specification, never revises without quoted evidence."
3
+ description = "Debate-panel evaluator for judge-with-debate. Score an artifact against the meta-judge's evaluation specification with quoted evidence, then defend or revise scores across up to 3 debate rounds until the panel reaches consensus. Writes only its own judge-N report file per dispatch. Never judges outside the specification, never revises without quoted evidence."
4
4
  model = "gpt-5.6-terra"
5
5
  model_reasoning_effort = "xhigh"
6
- sandbox_mode = "read-only"
6
+ sandbox_mode = "workspace-write"
7
7
  developer_instructions = """# Judge Agent Skill
8
8
 
9
9
  ## Mission
@@ -78,12 +78,9 @@ next_step: <string>
78
78
  - References: `references/agent-orchestration.md`, `references/audit-report-io.md` (Judge With Debate Report Contracts).
79
79
 
80
80
  ## Model Hint
81
- This charter's `metadata.model_tier` (`deep`) is the fallback every host runs when dispatch-time
82
- model selection is unavailable. The `judge-with-debate` workflow additionally requests per-slot
83
- model diversity at dispatch time on hosts that support it — `workflows/judge-with-debate.md` is
84
- the single source for the current slot assignments, not this file. When dispatch-time selection
85
- is unavailable, every slot runs the charter default and the orchestrator records
86
- `DIVERSITY DEGRADED` per the workflow contract.
81
+ See `references/agent-orchestration.md` (Model Diversity Fallback): `metadata.model_tier`
82
+ (`deep`) is the per-slot fallback; `workflows/judge-with-debate.md` owns the live slot
83
+ assignments.
87
84
 
88
85
  ## Validation Sensors
89
86
  - Every criterion score carries an exact quotation from the artifact.
@@ -69,11 +69,8 @@ overall: weighted-mean
69
69
  - References: `references/agent-orchestration.md`, `references/audit-report-io.md` (Judge With Debate Report Contracts).
70
70
 
71
71
  ## Model Hint
72
- This charter's `metadata.model_tier` (`deep`) is the fallback every host runs when dispatch-time
73
- model selection is unavailable. The `judge-with-debate` workflow additionally requests a specific
74
- model for this slot at dispatch time on hosts that support it — `workflows/judge-with-debate.md`
75
- is the single source for the current assignment, not this file. When dispatch-time selection is
76
- unavailable, the orchestrator records a diversity warning per the workflow contract.
72
+ See `references/agent-orchestration.md` (Model Diversity Fallback): `metadata.model_tier`
73
+ (`deep`) is the fallback; `workflows/judge-with-debate.md` owns the live model assignment.
77
74
 
78
75
  ## Validation Sensors
79
76
  - Output parses as YAML; weights sum to 1.0 (±0.001); every criterion carries id, name, weight, scale (min 1, max 5), rubric anchors for 1/3/5, and a non-empty checklist.
@@ -10,7 +10,7 @@ developer_instructions = """# Navigator Agent Skill
10
10
  Answer codebase questions through the massa-ai semantic index, reading files only once the index has narrowed the target to one to three of them.
11
11
 
12
12
  ## Core Principle
13
- The user's codebase is **already indexed** by massa-ai. The first move on any question is to query the index, not to read files blindly. File reads are expensive in context; massa-ai index queries are not.
13
+ The user's codebase is **already indexed** by massa-ai. The first move on any question is to query the index, not read files blindly — file reads are expensive in context; massa-ai index queries are not.
14
14
 
15
15
  ## Responsibilities
16
16
  - Resolve the current project: run `pwd`, match the basename against `list_projects`.
@@ -1,9 +1,9 @@
1
1
  # massa-ai-owned
2
2
  name = "massa-ai-judge"
3
- description = "Read-only debate-panel evaluator for judge-with-debate. Score an artifact against the meta-judge's evaluation specification with quoted evidence, then defend or revise scores across up to 3 debate rounds until the panel reaches consensus. Writes only its own judge-N report file per dispatch. Never judges outside the specification, never revises without quoted evidence."
3
+ description = "Debate-panel evaluator for judge-with-debate. Score an artifact against the meta-judge's evaluation specification with quoted evidence, then defend or revise scores across up to 3 debate rounds until the panel reaches consensus. Writes only its own judge-N report file per dispatch. Never judges outside the specification, never revises without quoted evidence."
4
4
  model = "gpt-5.6-sol"
5
5
  model_reasoning_effort = "high"
6
- sandbox_mode = "read-only"
6
+ sandbox_mode = "workspace-write"
7
7
  developer_instructions = """# Judge Agent Skill
8
8
 
9
9
  ## Mission
@@ -78,12 +78,9 @@ next_step: <string>
78
78
  - References: `references/agent-orchestration.md`, `references/audit-report-io.md` (Judge With Debate Report Contracts).
79
79
 
80
80
  ## Model Hint
81
- This charter's `metadata.model_tier` (`deep`) is the fallback every host runs when dispatch-time
82
- model selection is unavailable. The `judge-with-debate` workflow additionally requests per-slot
83
- model diversity at dispatch time on hosts that support it — `workflows/judge-with-debate.md` is
84
- the single source for the current slot assignments, not this file. When dispatch-time selection
85
- is unavailable, every slot runs the charter default and the orchestrator records
86
- `DIVERSITY DEGRADED` per the workflow contract.
81
+ See `references/agent-orchestration.md` (Model Diversity Fallback): `metadata.model_tier`
82
+ (`deep`) is the per-slot fallback; `workflows/judge-with-debate.md` owns the live slot
83
+ assignments.
87
84
 
88
85
  ## Validation Sensors
89
86
  - Every criterion score carries an exact quotation from the artifact.
@@ -69,11 +69,8 @@ overall: weighted-mean
69
69
  - References: `references/agent-orchestration.md`, `references/audit-report-io.md` (Judge With Debate Report Contracts).
70
70
 
71
71
  ## Model Hint
72
- This charter's `metadata.model_tier` (`deep`) is the fallback every host runs when dispatch-time
73
- model selection is unavailable. The `judge-with-debate` workflow additionally requests a specific
74
- model for this slot at dispatch time on hosts that support it — `workflows/judge-with-debate.md`
75
- is the single source for the current assignment, not this file. When dispatch-time selection is
76
- unavailable, the orchestrator records a diversity warning per the workflow contract.
72
+ See `references/agent-orchestration.md` (Model Diversity Fallback): `metadata.model_tier`
73
+ (`deep`) is the fallback; `workflows/judge-with-debate.md` owns the live model assignment.
77
74
 
78
75
  ## Validation Sensors
79
76
  - Output parses as YAML; weights sum to 1.0 (±0.001); every criterion carries id, name, weight, scale (min 1, max 5), rubric anchors for 1/3/5, and a non-empty checklist.
@@ -10,7 +10,7 @@ developer_instructions = """# Navigator Agent Skill
10
10
  Answer codebase questions through the massa-ai semantic index, reading files only once the index has narrowed the target to one to three of them.
11
11
 
12
12
  ## Core Principle
13
- The user's codebase is **already indexed** by massa-ai. The first move on any question is to query the index, not to read files blindly. File reads are expensive in context; massa-ai index queries are not.
13
+ The user's codebase is **already indexed** by massa-ai. The first move on any question is to query the index, not read files blindly — file reads are expensive in context; massa-ai index queries are not.
14
14
 
15
15
  ## Responsibilities
16
16
  - Resolve the current project: run `pwd`, match the basename against `list_projects`.
@@ -1,9 +1,9 @@
1
1
  # massa-ai-owned
2
2
  name = "massa-ai-judge"
3
- description = "Read-only debate-panel evaluator for judge-with-debate. Score an artifact against the meta-judge's evaluation specification with quoted evidence, then defend or revise scores across up to 3 debate rounds until the panel reaches consensus. Writes only its own judge-N report file per dispatch. Never judges outside the specification, never revises without quoted evidence."
3
+ description = "Debate-panel evaluator for judge-with-debate. Score an artifact against the meta-judge's evaluation specification with quoted evidence, then defend or revise scores across up to 3 debate rounds until the panel reaches consensus. Writes only its own judge-N report file per dispatch. Never judges outside the specification, never revises without quoted evidence."
4
4
  model = "gpt-5.6-sol"
5
5
  model_reasoning_effort = "high"
6
- sandbox_mode = "read-only"
6
+ sandbox_mode = "workspace-write"
7
7
  developer_instructions = """# Judge Agent Skill
8
8
 
9
9
  ## Mission
@@ -78,12 +78,9 @@ next_step: <string>
78
78
  - References: `references/agent-orchestration.md`, `references/audit-report-io.md` (Judge With Debate Report Contracts).
79
79
 
80
80
  ## Model Hint
81
- This charter's `metadata.model_tier` (`deep`) is the fallback every host runs when dispatch-time
82
- model selection is unavailable. The `judge-with-debate` workflow additionally requests per-slot
83
- model diversity at dispatch time on hosts that support it — `workflows/judge-with-debate.md` is
84
- the single source for the current slot assignments, not this file. When dispatch-time selection
85
- is unavailable, every slot runs the charter default and the orchestrator records
86
- `DIVERSITY DEGRADED` per the workflow contract.
81
+ See `references/agent-orchestration.md` (Model Diversity Fallback): `metadata.model_tier`
82
+ (`deep`) is the per-slot fallback; `workflows/judge-with-debate.md` owns the live slot
83
+ assignments.
87
84
 
88
85
  ## Validation Sensors
89
86
  - Every criterion score carries an exact quotation from the artifact.
@@ -69,11 +69,8 @@ overall: weighted-mean
69
69
  - References: `references/agent-orchestration.md`, `references/audit-report-io.md` (Judge With Debate Report Contracts).
70
70
 
71
71
  ## Model Hint
72
- This charter's `metadata.model_tier` (`deep`) is the fallback every host runs when dispatch-time
73
- model selection is unavailable. The `judge-with-debate` workflow additionally requests a specific
74
- model for this slot at dispatch time on hosts that support it — `workflows/judge-with-debate.md`
75
- is the single source for the current assignment, not this file. When dispatch-time selection is
76
- unavailable, the orchestrator records a diversity warning per the workflow contract.
72
+ See `references/agent-orchestration.md` (Model Diversity Fallback): `metadata.model_tier`
73
+ (`deep`) is the fallback; `workflows/judge-with-debate.md` owns the live model assignment.
77
74
 
78
75
  ## Validation Sensors
79
76
  - Output parses as YAML; weights sum to 1.0 (±0.001); every criterion carries id, name, weight, scale (min 1, max 5), rubric anchors for 1/3/5, and a non-empty checklist.
@@ -10,7 +10,7 @@ developer_instructions = """# Navigator Agent Skill
10
10
  Answer codebase questions through the massa-ai semantic index, reading files only once the index has narrowed the target to one to three of them.
11
11
 
12
12
  ## Core Principle
13
- The user's codebase is **already indexed** by massa-ai. The first move on any question is to query the index, not to read files blindly. File reads are expensive in context; massa-ai index queries are not.
13
+ The user's codebase is **already indexed** by massa-ai. The first move on any question is to query the index, not read files blindly — file reads are expensive in context; massa-ai index queries are not.
14
14
 
15
15
  ## Responsibilities
16
16
  - Resolve the current project: run `pwd`, match the basename against `list_projects`.
package/install.sh CHANGED
@@ -68,6 +68,38 @@ done
68
68
  source "$SCRIPT_DIR/../../scripts/banner.sh"
69
69
  massa_ai_banner
70
70
 
71
+ # ── Generated-bundle contract (T6, design Component 4 / UGB-05..07) ─────────
72
+ # Why: apps/*-plugin generated subtrees (skills/, agents/, agent-profiles/,
73
+ # hooks/massa-ai-hook, lib/opencode-config.cjs) are gitignored build
74
+ # output (UGB-01) — a repo checkout must regenerate them before this
75
+ # installer copies or registers anything; a published tarball ships them
76
+ # pre-generated and has no generator sources to run at all. Runs before
77
+ # any host-config mutation (before CODEX_DIR resolution below).
78
+ # Impacts: UGB-05 checkout generates, UGB-06 tarball skips, UGB-07 loud
79
+ # failure before mutation, UGB-08 (skip-env honored for harness runs).
80
+ # Test: apps/codex-plugin/__tests__/install.test.ts (skip-branch + loud-failure cases)
81
+ if [[ -f "$REPO_ROOT/scripts/generate-skill-artifacts.ts" ]]; then
82
+ if [[ "${MASSA_AI_SKIP_ARTIFACT_GENERATION:-0}" != "1" ]]; then
83
+ if ! command -v bun &>/dev/null; then
84
+ echo "Error: bun required to generate plugin bundles in a repo checkout (scripts/generate-*.ts)" >&2
85
+ exit 3
86
+ fi
87
+ bun "$REPO_ROOT/scripts/generate-skill-artifacts.ts"
88
+ bun "$REPO_ROOT/scripts/generate-subagent-artifacts.ts"
89
+ fi
90
+ fi
91
+ # Tarball installs (generator sources absent) skip the block above entirely
92
+ # and fall straight through to this sentinel, which every context must pass:
93
+ # the bundle this installer is about to copy/register has to actually exist.
94
+ if [[ ! -f "$SCRIPT_DIR/skills/massa-ai/SKILL.md" ]]; then
95
+ echo "Error: missing $SCRIPT_DIR/skills/massa-ai/SKILL.md — run 'bun run generate:artifacts' first" >&2
96
+ exit 1
97
+ fi
98
+ if [[ ! -d "$SCRIPT_DIR/agents" ]] || [[ -z "$(ls -A "$SCRIPT_DIR/agents" 2>/dev/null)" ]]; then
99
+ echo "Error: missing or empty $SCRIPT_DIR/agents — run 'bun run generate:artifacts' first" >&2
100
+ exit 1
101
+ fi
102
+
71
103
  # Resolve target base dir
72
104
  if [[ "$SCOPE" == "project" ]]; then
73
105
  CODEX_DIR="$(pwd)/.codex"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@massa-ai/codex-plugin",
3
- "version": "1.26.0",
3
+ "version": "1.29.0",
4
4
  "description": "massa-ai plugin for Codex — semantic code search, memory, and context compression",
5
5
  "files": [
6
6
  "agents",
@@ -1,12 +1,12 @@
1
1
  ---
2
2
  name: judge
3
- description: Read-only debate-panel evaluator for judge-with-debate. Score an artifact against the meta-judge's evaluation specification with quoted evidence, then defend or revise scores across up to 3 debate rounds until the panel reaches consensus. Writes only its own judge-N report file per dispatch. Never judges outside the specification, never revises without quoted evidence.
3
+ description: Debate-panel evaluator for judge-with-debate. Score an artifact against the meta-judge's evaluation specification with quoted evidence, then defend or revise scores across up to 3 debate rounds until the panel reaches consensus. Writes only its own judge-N report file per dispatch. Never judges outside the specification, never revises without quoted evidence.
4
4
  license: MIT
5
5
  metadata:
6
6
  author: S1LV4, luizgmassa
7
- version: "1.0.0"
7
+ version: "1.2.0"
8
8
  model_tier: deep
9
- permission: read-only
9
+ permission: write
10
10
  ---
11
11
 
12
12
  # Judge Agent Skill
@@ -83,12 +83,9 @@ next_step: <string>
83
83
  - References: `references/agent-orchestration.md`, `references/audit-report-io.md` (Judge With Debate Report Contracts).
84
84
 
85
85
  ## Model Hint
86
- This charter's `metadata.model_tier` (`deep`) is the fallback every host runs when dispatch-time
87
- model selection is unavailable. The `judge-with-debate` workflow additionally requests per-slot
88
- model diversity at dispatch time on hosts that support it — `workflows/judge-with-debate.md` is
89
- the single source for the current slot assignments, not this file. When dispatch-time selection
90
- is unavailable, every slot runs the charter default and the orchestrator records
91
- `DIVERSITY DEGRADED` per the workflow contract.
86
+ See `references/agent-orchestration.md` (Model Diversity Fallback): `metadata.model_tier`
87
+ (`deep`) is the per-slot fallback; `workflows/judge-with-debate.md` owns the live slot
88
+ assignments.
92
89
 
93
90
  ## Validation Sensors
94
91
  - Every criterion score carries an exact quotation from the artifact.
@@ -4,7 +4,7 @@ description: Read-only evaluation-specification author for judge-with-debate. Ge
4
4
  license: MIT
5
5
  metadata:
6
6
  author: S1LV4, luizgmassa
7
- version: "1.0.0"
7
+ version: "1.1.0"
8
8
  model_tier: deep
9
9
  permission: read-only
10
10
  ---
@@ -74,11 +74,8 @@ overall: weighted-mean
74
74
  - References: `references/agent-orchestration.md`, `references/audit-report-io.md` (Judge With Debate Report Contracts).
75
75
 
76
76
  ## Model Hint
77
- This charter's `metadata.model_tier` (`deep`) is the fallback every host runs when dispatch-time
78
- model selection is unavailable. The `judge-with-debate` workflow additionally requests a specific
79
- model for this slot at dispatch time on hosts that support it — `workflows/judge-with-debate.md`
80
- is the single source for the current assignment, not this file. When dispatch-time selection is
81
- unavailable, the orchestrator records a diversity warning per the workflow contract.
77
+ See `references/agent-orchestration.md` (Model Diversity Fallback): `metadata.model_tier`
78
+ (`deep`) is the fallback; `workflows/judge-with-debate.md` owns the live model assignment.
82
79
 
83
80
  ## Validation Sensors
84
81
  - Output parses as YAML; weights sum to 1.0 (±0.001); every criterion carries id, name, weight, scale (min 1, max 5), rubric anchors for 1/3/5, and a non-empty checklist.
@@ -4,7 +4,7 @@ description: Code exploration specialist that leverages the massa-ai semantic in
4
4
  license: MIT
5
5
  metadata:
6
6
  author: S1LV4, luizgmassa
7
- version: "1.0.0"
7
+ version: "1.1.0"
8
8
  model_tier: deep
9
9
  permission: read-only
10
10
  tools: mcp-index
@@ -16,7 +16,7 @@ metadata:
16
16
  Answer codebase questions through the massa-ai semantic index, reading files only once the index has narrowed the target to one to three of them.
17
17
 
18
18
  ## Core Principle
19
- The user's codebase is **already indexed** by massa-ai. The first move on any question is to query the index, not to read files blindly. File reads are expensive in context; massa-ai index queries are not.
19
+ The user's codebase is **already indexed** by massa-ai. The first move on any question is to query the index, not read files blindly — file reads are expensive in context; massa-ai index queries are not.
20
20
 
21
21
  ## Responsibilities
22
22
  - Resolve the current project: run `pwd`, match the basename against `list_projects`.
@@ -80,6 +80,8 @@ Before reading any massa-ai file:
80
80
  requirement meaning, scope boundaries, destructive/irreversible choices,
81
81
  contradictory evidence — ask the user rather than choose silently. Facts
82
82
  are looked up; decisions are asked.
83
+ - Before writing or changing implementation code, load
84
+ `references/coding-guidelines.md` if not already loaded.
83
85
  - Complete Evidence Gate before claiming done.
84
86
 
85
87
  Use internal references only when needed:
@@ -164,6 +166,8 @@ current context already contains it.
164
166
  | `commit` | draft or create safe Conventional Commits with Jira branch prefixes and audit report exclusions | `workflows/commit.md` |
165
167
  | `the-fool` | direct challenge, red-team, pre-mortem, evidence audit | `workflows/the-fool.md` |
166
168
  | `judge-with-debate` | standalone multi-judge debate evaluation of user-supplied artifacts | `workflows/judge-with-debate.md` |
169
+ | `to-prd` | turn the current conversation into a PRD without a new interview | `workflows/to-prd.md` |
170
+ | `skill-architect` | design and build a new skill through structured conversation | `workflows/skill-architect.md` |
167
171
  | `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` |
168
172
  | `general` | coding work with no more specific workflow | `workflows/general.md` |
169
173
 
@@ -176,7 +180,7 @@ match or no match is resolved deterministically without asking.
176
180
  Deterministic routing precedence, first match wins:
177
181
 
178
182
  1. **Explicit route:** user names a massa-ai workflow, report family, saved finding type, or asks for a direct challenge.
179
- 2. **Requested artifact:** ADR, RFC, TDD, Jira ticket, commit, session guide, audit report, implementation audit report, mobile Figma report, or FURPS refinement report.
183
+ 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`.
180
184
  3. **Target type:** broken behavior/error -> `debug`; 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`.
181
185
  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`; 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`.
182
186
  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.
@@ -312,22 +316,7 @@ Load only when a selected workflow asks for them:
312
316
 
313
317
  ## Graceful Degradation
314
318
 
315
- | Failure | Behavior |
316
- |---|---|
317
- | `recall` empty | Continue as cold start; do not invent memory. |
318
- | massa-ai server unavailable | Fall back to focused shell/file reads; keep session concept. |
319
- | Synapse unavailable | Continue with stateless search. |
320
- | Synapse prime/access mismatch | Use verified REST fallback or skip that optional step. |
321
- | index incomplete or stale | Use recall; skip search-dependent steps until ready. Graph tools (`trace_path`, `impact_analysis`, `get_architecture`) fall back to `search`/`get_references`; record reduced retrieval confidence. |
322
- | no meaningful memory | Say memory was intentionally skipped. |
323
- | memory write fails | Continue and report the unpersisted insight. |
324
- | `create_checkpoint` unavailable | Continue with `.specs/` artifact state as fallback. |
325
- | `handoff_begin` unavailable (`HANDOFFS_ENABLED=false`) | Fall back to `remember` + `.specs/` writes; record skipped handoff-table write. |
326
- | `bootstrap` unavailable | Proceed with manual `remember` calls. |
327
- | `compact_snapshot` unavailable | Continue with `compress` + `remember`; record skipped snapshot. |
328
- | code execution (`execute`/`execute_file`/`batch_execute`) unavailable | Load file into context instead; note the local-dev-only trust model still applies. |
329
- | `fetch_and_index` unavailable | Use native web fetch + manual indexing or skip external content. |
330
- | feedback reference unavailable | Continue without feedback lines; do not block the workflow. |
319
+ On any tool/index/MCP failure (server unavailable, index incomplete, Synapse unavailable, `create_checkpoint`/`handoff_begin`/`bootstrap`/`compact_snapshot`/`execute`/`fetch_and_index` unavailable), load and follow `references/graceful-degradation.md` instead of blocking.
331
320
 
332
321
  ## Completion
333
322
 
@@ -1,6 +1,6 @@
1
1
  # ADR Authoring
2
2
 
3
- Use this reference from `workflows/adr.md`. It defines how massa-ai creates Architecture Decision Records without delegating orchestration to another ADR skill.
3
+ Use from `workflows/adr.md`. Defines how massa-ai creates Architecture Decision Records without delegating orchestration to another ADR skill.
4
4
 
5
5
  ## Core Rule
6
6
 
@@ -15,9 +15,9 @@ Route matrix:
15
15
  | Direction is selected and implementation architecture/contracts/rollout need a blueprint | TDD |
16
16
  | Requirements, design, tasks, and execution all need staged approval | Spec-driven |
17
17
 
18
- Source relevance requires the source to name at least one target, constraint, risk, dependency, public contract, rejected option, decision owner, or rollout/rollback consequence for this ADR. Sources that provide only style or adjacent context are examples, not facts.
18
+ Source relevance requires the source to name at least one target, constraint, risk, dependency, public contract, rejected option, decision owner, or rollout/rollback consequence for this ADR. Sources providing only style or adjacent context are examples, not facts.
19
19
 
20
- Do not guess. Missing source facts become questions, source gaps, or a workflow route change.
20
+ Do not guess — missing source facts become questions, source gaps, or a workflow route change.
21
21
 
22
22
  ## Source Order
23
23
 
@@ -1,6 +1,6 @@
1
1
  # Agent Orchestration
2
2
 
3
- Use this reference when a workflow benefits from isolated context, parallel work, or independent verification.
3
+ Use when a workflow benefits from isolated context, parallel work, or independent verification.
4
4
 
5
5
  Load `references/context-firewall.md` first when the delegated work may involve verbose logs, snapshots, generated reports, external research, or broad source inspection.
6
6
 
@@ -23,7 +23,7 @@ Subagents do bounded work only. Do not delegate everything.
23
23
 
24
24
  Tokens are spent once; context shapes every decision that follows. The orchestrator's
25
25
  working memory is the asset every rule below protects — delegation exists to keep
26
- disposable reasoning out of the main thread, not only to parallelize.
26
+ disposable reasoning out of the main thread, not just to parallelize.
27
27
 
28
28
  - **Never poll a running subagent for status, and never ingest a subagent's raw
29
29
  transcript, JSONL, or intermediate reasoning — running or completed.** The
@@ -98,6 +98,21 @@ installed, spawning forbidden by platform policy, or the host returns an unknown
98
98
  delegated scope locally against the same output contract, and report the skipped
99
99
  delegation with its reason in the Evidence Gate.
100
100
 
101
+ ## Model Diversity Fallback
102
+
103
+ Applies to any charter whose `metadata.model_tier` is a fallback and whose
104
+ dispatching workflow additionally requests per-invocation model diversity at
105
+ dispatch time (e.g. `judge` — 3 parallel slots; `meta-judge` — one slot).
106
+
107
+ - The charter's `metadata.model_tier` is the fallback every host runs when
108
+ dispatch-time model selection is unavailable.
109
+ - The dispatching workflow (e.g. `workflows/judge-with-debate.md`) is the
110
+ single source for the current slot/model assignment, not the charter file.
111
+ - When dispatch-time selection is unavailable, every affected slot runs the
112
+ charter default, and the orchestrator records `DIVERSITY DEGRADED`
113
+ (multi-slot) or an equivalent diversity warning (single-slot) per the
114
+ dispatching workflow's own contract.
115
+
101
116
  ## Roles
102
117
 
103
118
  Use the role names in prompts and memory tags; use the host agent names to
@@ -133,7 +148,7 @@ only, never a dispatch target.
133
148
 
134
149
  ## Capability Packet
135
150
 
136
- **This section is the sole canonical Capability Packet definition.** `references/subagent-design.md` and the root `skills/AGENTS.md` registry defer to or mirror this list; `scripts/__tests__/capability-packet-parity.test.ts` fails when the `skills/AGENTS.md` mirror diverges. Bespoke packets (judge panel, FURPS analyst, phase-batch worker) are declared specializations that map onto these fields in their own workflow files.
151
+ **This section is the sole canonical Capability Packet definition.** `references/subagent-design.md` mirrors this list and the root `skills/AGENTS.md` registry points here without restating it. Bespoke packets (judge panel, FURPS analyst, phase-batch worker) are declared specializations that map onto these fields in their own workflow files.
137
152
 
138
153
  **A subagent inherits nothing from the parent session** — no skills, no personas, no loaded references, no conversation history. Everything the subagent needs is named explicitly in the packet, including the exact reference file paths it must read itself.
139
154
 
@@ -1,6 +1,6 @@
1
1
  # Architecture Coupling Lens
2
2
 
3
- Use this detail reference when an architecture audit or execution task needs dependency health, dependency direction, integration cost, or coupling reduction.
3
+ Use when an architecture audit or execution task needs dependency health, dependency direction, integration cost, or coupling reduction.
4
4
 
5
5
  ## Contents
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Architecture Deepening Lens
2
2
 
3
- Use this detail reference when an architecture audit or execution task needs module depth, seams, adapters, testability, locality, or AI-navigability analysis.
3
+ Use when an architecture audit or execution task needs module depth, seams, adapters, testability, locality, or AI-navigability analysis.
4
4
 
5
5
  ## Contents
6
6