atlas-workflow 0.8.2

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 (197) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +235 -0
  3. package/VERSION +1 -0
  4. package/build/cli/atlas-init.mjs +590 -0
  5. package/hosts/opencode/.opencode/agents/atlas-direct-execute.md +31 -0
  6. package/hosts/opencode/.opencode/agents/atlas-findings-repair.md +35 -0
  7. package/hosts/opencode/.opencode/agents/atlas-plan-execute.md +33 -0
  8. package/hosts/opencode/.opencode/agents/atlas-slice-review.md +27 -0
  9. package/hosts/opencode/.opencode/agents/atlas-task-validator.md +121 -0
  10. package/hosts/opencode/.opencode/atlas/VERSION +1 -0
  11. package/hosts/opencode/.opencode/atlas/orchestrator/README.md +261 -0
  12. package/hosts/opencode/.opencode/atlas/orchestrator/commands/workflow.md +37 -0
  13. package/hosts/opencode/.opencode/atlas/orchestrator/defaults/paths.md +21 -0
  14. package/hosts/opencode/.opencode/atlas/orchestrator/references/host-adapters.md +104 -0
  15. package/hosts/opencode/.opencode/atlas/orchestrator/references/qa_s13_matrix.md +141 -0
  16. package/hosts/opencode/.opencode/atlas/orchestrator/references/subagent_dispatch.md +42 -0
  17. package/hosts/opencode/.opencode/atlas/orchestrator/skills/atlas-workflow-orchestrator/SKILL.md +412 -0
  18. package/hosts/opencode/.opencode/atlas/packages/mcp-server/README.md +28 -0
  19. package/hosts/opencode/.opencode/atlas/packages/mcp-server/package.json +15 -0
  20. package/hosts/opencode/.opencode/atlas/packages/mcp-server/server.js +3076 -0
  21. package/hosts/opencode/.opencode/atlas/packages/templates/BACKLOG_MESTRE_TEMPLATE.md +844 -0
  22. package/hosts/opencode/.opencode/atlas/packages/templates/BOUNDARY_PRD_PLAN.md +93 -0
  23. package/hosts/opencode/.opencode/atlas/packages/templates/PERGUNTAS_EM_ABERTO_TEMPLATE.md +139 -0
  24. package/hosts/opencode/.opencode/atlas/packages/templates/PLAN_TEMPLATE.md +146 -0
  25. package/hosts/opencode/.opencode/atlas/packages/templates/PRD_TEMPLATE.md +149 -0
  26. package/hosts/opencode/.opencode/atlas/packages/templates/STATE_FILE_SCHEMA.md +32 -0
  27. package/hosts/opencode/.opencode/skills/atlas-backlog-generator/SKILL.md +88 -0
  28. package/hosts/opencode/.opencode/skills/atlas-backlog-generator/agents/openai.yaml +4 -0
  29. package/hosts/opencode/.opencode/skills/atlas-direct-execute/SKILL.md +186 -0
  30. package/hosts/opencode/.opencode/skills/atlas-direct-execute/agents/openai.yaml +7 -0
  31. package/hosts/opencode/.opencode/skills/atlas-findings-repair/SKILL.md +148 -0
  32. package/hosts/opencode/.opencode/skills/atlas-findings-repair/agents/openai.yaml +7 -0
  33. package/hosts/opencode/.opencode/skills/atlas-plan-execute/SKILL.md +129 -0
  34. package/hosts/opencode/.opencode/skills/atlas-plan-execute/agents/openai.yaml +7 -0
  35. package/hosts/opencode/.opencode/skills/atlas-plan-execute/references/plan-contract.md +88 -0
  36. package/hosts/opencode/.opencode/skills/atlas-plan-execute/references/quality-gates.md +60 -0
  37. package/hosts/opencode/.opencode/skills/atlas-plan-execute/scripts/check_budget_state.py +96 -0
  38. package/hosts/opencode/.opencode/skills/atlas-plan-execute/scripts/extract_plan_contract.py +191 -0
  39. package/hosts/opencode/.opencode/skills/atlas-plan-execute/scripts/validate_gate_result.py +56 -0
  40. package/hosts/opencode/.opencode/skills/atlas-plan-handoff/SKILL.md +181 -0
  41. package/hosts/opencode/.opencode/skills/atlas-plan-handoff/agents/openai.yaml +7 -0
  42. package/hosts/opencode/.opencode/skills/atlas-prd-interview/SKILL.md +77 -0
  43. package/hosts/opencode/.opencode/skills/atlas-prd-interview/agents/openai.yaml +7 -0
  44. package/hosts/opencode/.opencode/skills/atlas-slice-review/SKILL.md +121 -0
  45. package/hosts/opencode/.opencode/skills/atlas-slice-review/agents/openai.yaml +4 -0
  46. package/hosts/opencode/.opencode/skills/atlas-slice-review/references/review-contract.md +58 -0
  47. package/hosts/opencode/.opencode/skills/atlas-slice-review/references/scenario-lenses.md +49 -0
  48. package/hosts/opencode/.opencode/skills/atlas-slice-review/scripts/classify_findings.py +56 -0
  49. package/hosts/opencode/.opencode/skills/atlas-slice-review/scripts/extract_review_slice.py +158 -0
  50. package/hosts/opencode/.opencode/skills/atlas-sprint-prd-generator/SKILL.md +74 -0
  51. package/hosts/opencode/.opencode/skills/atlas-sprint-prd-generator/agents/openai.yaml +7 -0
  52. package/hosts/opencode/.opencode/skills/atlas-task-validator/SKILL.md +158 -0
  53. package/hosts/opencode/.opencode/skills/atlas-task-validator/agents/openai.yaml +7 -0
  54. package/hosts/opencode/.opencode/skills/atlas-workflow-orchestrator/SKILL.md +412 -0
  55. package/hosts/opencode/opencode.json +13 -0
  56. package/hosts/pi/.mcp.json +11 -0
  57. package/hosts/pi/.pi/agents/atlas-direct-execute.md +218 -0
  58. package/hosts/pi/.pi/agents/atlas-findings-repair.md +184 -0
  59. package/hosts/pi/.pi/agents/atlas-plan-execute.md +163 -0
  60. package/hosts/pi/.pi/agents/atlas-slice-review.md +149 -0
  61. package/hosts/pi/.pi/agents/atlas-task-validator.md +121 -0
  62. package/hosts/pi/atlas/VERSION +1 -0
  63. package/hosts/pi/atlas/orchestrator/README.md +261 -0
  64. package/hosts/pi/atlas/orchestrator/commands/workflow.md +37 -0
  65. package/hosts/pi/atlas/orchestrator/defaults/paths.md +21 -0
  66. package/hosts/pi/atlas/orchestrator/references/host-adapters.md +104 -0
  67. package/hosts/pi/atlas/orchestrator/references/qa_s13_matrix.md +141 -0
  68. package/hosts/pi/atlas/orchestrator/references/subagent_dispatch.md +42 -0
  69. package/hosts/pi/atlas/orchestrator/skills/atlas-workflow-orchestrator/SKILL.md +412 -0
  70. package/hosts/pi/atlas/packages/mcp-server/README.md +28 -0
  71. package/hosts/pi/atlas/packages/mcp-server/package.json +15 -0
  72. package/hosts/pi/atlas/packages/mcp-server/server.js +3076 -0
  73. package/hosts/pi/atlas/packages/templates/BACKLOG_MESTRE_TEMPLATE.md +844 -0
  74. package/hosts/pi/atlas/packages/templates/BOUNDARY_PRD_PLAN.md +93 -0
  75. package/hosts/pi/atlas/packages/templates/PERGUNTAS_EM_ABERTO_TEMPLATE.md +139 -0
  76. package/hosts/pi/atlas/packages/templates/PLAN_TEMPLATE.md +146 -0
  77. package/hosts/pi/atlas/packages/templates/PRD_TEMPLATE.md +149 -0
  78. package/hosts/pi/atlas/packages/templates/STATE_FILE_SCHEMA.md +32 -0
  79. package/hosts/pi/skills/atlas-backlog-generator/SKILL.md +88 -0
  80. package/hosts/pi/skills/atlas-backlog-generator/agents/openai.yaml +4 -0
  81. package/hosts/pi/skills/atlas-direct-execute/SKILL.md +186 -0
  82. package/hosts/pi/skills/atlas-direct-execute/agents/openai.yaml +7 -0
  83. package/hosts/pi/skills/atlas-findings-repair/SKILL.md +148 -0
  84. package/hosts/pi/skills/atlas-findings-repair/agents/openai.yaml +7 -0
  85. package/hosts/pi/skills/atlas-plan-execute/SKILL.md +129 -0
  86. package/hosts/pi/skills/atlas-plan-execute/agents/openai.yaml +7 -0
  87. package/hosts/pi/skills/atlas-plan-execute/references/plan-contract.md +88 -0
  88. package/hosts/pi/skills/atlas-plan-execute/references/quality-gates.md +60 -0
  89. package/hosts/pi/skills/atlas-plan-execute/scripts/check_budget_state.py +96 -0
  90. package/hosts/pi/skills/atlas-plan-execute/scripts/extract_plan_contract.py +191 -0
  91. package/hosts/pi/skills/atlas-plan-execute/scripts/validate_gate_result.py +56 -0
  92. package/hosts/pi/skills/atlas-plan-handoff/SKILL.md +181 -0
  93. package/hosts/pi/skills/atlas-plan-handoff/agents/openai.yaml +7 -0
  94. package/hosts/pi/skills/atlas-prd-interview/SKILL.md +77 -0
  95. package/hosts/pi/skills/atlas-prd-interview/agents/openai.yaml +7 -0
  96. package/hosts/pi/skills/atlas-slice-review/SKILL.md +121 -0
  97. package/hosts/pi/skills/atlas-slice-review/agents/openai.yaml +4 -0
  98. package/hosts/pi/skills/atlas-slice-review/references/review-contract.md +58 -0
  99. package/hosts/pi/skills/atlas-slice-review/references/scenario-lenses.md +49 -0
  100. package/hosts/pi/skills/atlas-slice-review/scripts/classify_findings.py +56 -0
  101. package/hosts/pi/skills/atlas-slice-review/scripts/extract_review_slice.py +158 -0
  102. package/hosts/pi/skills/atlas-sprint-prd-generator/SKILL.md +74 -0
  103. package/hosts/pi/skills/atlas-sprint-prd-generator/agents/openai.yaml +7 -0
  104. package/hosts/pi/skills/atlas-task-validator/SKILL.md +158 -0
  105. package/hosts/pi/skills/atlas-task-validator/agents/openai.yaml +7 -0
  106. package/hosts/pi/skills/atlas-workflow-orchestrator/SKILL.md +412 -0
  107. package/package.json +17 -0
  108. package/plugins/atlas-workflow-orchestrator/.codex/agents/atlas-direct-execute.toml +3 -0
  109. package/plugins/atlas-workflow-orchestrator/.codex/agents/atlas-findings-repair.toml +3 -0
  110. package/plugins/atlas-workflow-orchestrator/.codex/agents/atlas-plan-execute.toml +3 -0
  111. package/plugins/atlas-workflow-orchestrator/.codex/agents/atlas-slice-review.toml +3 -0
  112. package/plugins/atlas-workflow-orchestrator/.codex/agents/atlas-task-validator.toml +5 -0
  113. package/plugins/atlas-workflow-orchestrator/.codex-plugin/plugin.json +37 -0
  114. package/plugins/atlas-workflow-orchestrator/.mcp.json +12 -0
  115. package/plugins/atlas-workflow-orchestrator/VERSION +1 -0
  116. package/plugins/atlas-workflow-orchestrator/agents/atlas-direct-execute.md +31 -0
  117. package/plugins/atlas-workflow-orchestrator/agents/atlas-findings-repair.md +35 -0
  118. package/plugins/atlas-workflow-orchestrator/agents/atlas-plan-execute.md +33 -0
  119. package/plugins/atlas-workflow-orchestrator/agents/atlas-slice-review.md +27 -0
  120. package/plugins/atlas-workflow-orchestrator/agents/atlas-task-validator.md +123 -0
  121. package/plugins/atlas-workflow-orchestrator/orchestrator/README.md +261 -0
  122. package/plugins/atlas-workflow-orchestrator/orchestrator/commands/workflow.md +37 -0
  123. package/plugins/atlas-workflow-orchestrator/orchestrator/defaults/paths.md +21 -0
  124. package/plugins/atlas-workflow-orchestrator/orchestrator/references/host-adapters.md +104 -0
  125. package/plugins/atlas-workflow-orchestrator/orchestrator/references/qa_s13_matrix.md +141 -0
  126. package/plugins/atlas-workflow-orchestrator/orchestrator/references/subagent_dispatch.md +42 -0
  127. package/plugins/atlas-workflow-orchestrator/orchestrator/skills/atlas-workflow-orchestrator/SKILL.md +412 -0
  128. package/plugins/atlas-workflow-orchestrator/packages/mcp-server/README.md +28 -0
  129. package/plugins/atlas-workflow-orchestrator/packages/mcp-server/package.json +15 -0
  130. package/plugins/atlas-workflow-orchestrator/packages/mcp-server/server.js +3076 -0
  131. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-backlog-generator/SKILL.md +88 -0
  132. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-backlog-generator/agents/openai.yaml +4 -0
  133. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-direct-execute/SKILL.md +186 -0
  134. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-direct-execute/agents/openai.yaml +7 -0
  135. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-findings-repair/SKILL.md +148 -0
  136. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-findings-repair/agents/openai.yaml +7 -0
  137. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-plan-execute/SKILL.md +129 -0
  138. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-plan-execute/agents/openai.yaml +7 -0
  139. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-plan-execute/references/plan-contract.md +88 -0
  140. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-plan-execute/references/quality-gates.md +60 -0
  141. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-plan-execute/scripts/check_budget_state.py +96 -0
  142. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-plan-execute/scripts/extract_plan_contract.py +191 -0
  143. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-plan-execute/scripts/validate_gate_result.py +56 -0
  144. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-plan-handoff/SKILL.md +181 -0
  145. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-plan-handoff/agents/openai.yaml +7 -0
  146. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-prd-interview/SKILL.md +77 -0
  147. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-prd-interview/agents/openai.yaml +7 -0
  148. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-slice-review/SKILL.md +121 -0
  149. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-slice-review/agents/openai.yaml +4 -0
  150. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-slice-review/references/review-contract.md +58 -0
  151. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-slice-review/references/scenario-lenses.md +49 -0
  152. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-slice-review/scripts/classify_findings.py +56 -0
  153. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-slice-review/scripts/extract_review_slice.py +158 -0
  154. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-sprint-prd-generator/SKILL.md +74 -0
  155. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-sprint-prd-generator/agents/openai.yaml +7 -0
  156. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-task-validator/SKILL.md +158 -0
  157. package/plugins/atlas-workflow-orchestrator/packages/skills/atlas-task-validator/agents/openai.yaml +7 -0
  158. package/plugins/atlas-workflow-orchestrator/packages/templates/BACKLOG_MESTRE_TEMPLATE.md +844 -0
  159. package/plugins/atlas-workflow-orchestrator/packages/templates/BOUNDARY_PRD_PLAN.md +93 -0
  160. package/plugins/atlas-workflow-orchestrator/packages/templates/PERGUNTAS_EM_ABERTO_TEMPLATE.md +139 -0
  161. package/plugins/atlas-workflow-orchestrator/packages/templates/PLAN_TEMPLATE.md +146 -0
  162. package/plugins/atlas-workflow-orchestrator/packages/templates/PRD_TEMPLATE.md +149 -0
  163. package/plugins/atlas-workflow-orchestrator/packages/templates/STATE_FILE_SCHEMA.md +32 -0
  164. package/plugins/atlas-workflow-orchestrator/skills/atlas-backlog-generator/SKILL.md +88 -0
  165. package/plugins/atlas-workflow-orchestrator/skills/atlas-backlog-generator/agents/openai.yaml +4 -0
  166. package/plugins/atlas-workflow-orchestrator/skills/atlas-direct-execute/SKILL.md +186 -0
  167. package/plugins/atlas-workflow-orchestrator/skills/atlas-direct-execute/agents/openai.yaml +7 -0
  168. package/plugins/atlas-workflow-orchestrator/skills/atlas-findings-repair/SKILL.md +148 -0
  169. package/plugins/atlas-workflow-orchestrator/skills/atlas-findings-repair/agents/openai.yaml +7 -0
  170. package/plugins/atlas-workflow-orchestrator/skills/atlas-plan-execute/SKILL.md +129 -0
  171. package/plugins/atlas-workflow-orchestrator/skills/atlas-plan-execute/agents/openai.yaml +7 -0
  172. package/plugins/atlas-workflow-orchestrator/skills/atlas-plan-execute/references/plan-contract.md +88 -0
  173. package/plugins/atlas-workflow-orchestrator/skills/atlas-plan-execute/references/quality-gates.md +60 -0
  174. package/plugins/atlas-workflow-orchestrator/skills/atlas-plan-execute/scripts/check_budget_state.py +96 -0
  175. package/plugins/atlas-workflow-orchestrator/skills/atlas-plan-execute/scripts/extract_plan_contract.py +191 -0
  176. package/plugins/atlas-workflow-orchestrator/skills/atlas-plan-execute/scripts/validate_gate_result.py +56 -0
  177. package/plugins/atlas-workflow-orchestrator/skills/atlas-plan-handoff/SKILL.md +181 -0
  178. package/plugins/atlas-workflow-orchestrator/skills/atlas-plan-handoff/agents/openai.yaml +7 -0
  179. package/plugins/atlas-workflow-orchestrator/skills/atlas-prd-interview/SKILL.md +77 -0
  180. package/plugins/atlas-workflow-orchestrator/skills/atlas-prd-interview/agents/openai.yaml +7 -0
  181. package/plugins/atlas-workflow-orchestrator/skills/atlas-slice-review/SKILL.md +121 -0
  182. package/plugins/atlas-workflow-orchestrator/skills/atlas-slice-review/agents/openai.yaml +4 -0
  183. package/plugins/atlas-workflow-orchestrator/skills/atlas-slice-review/references/review-contract.md +58 -0
  184. package/plugins/atlas-workflow-orchestrator/skills/atlas-slice-review/references/scenario-lenses.md +49 -0
  185. package/plugins/atlas-workflow-orchestrator/skills/atlas-slice-review/scripts/classify_findings.py +56 -0
  186. package/plugins/atlas-workflow-orchestrator/skills/atlas-slice-review/scripts/extract_review_slice.py +158 -0
  187. package/plugins/atlas-workflow-orchestrator/skills/atlas-sprint-prd-generator/SKILL.md +74 -0
  188. package/plugins/atlas-workflow-orchestrator/skills/atlas-sprint-prd-generator/agents/openai.yaml +7 -0
  189. package/plugins/atlas-workflow-orchestrator/skills/atlas-task-validator/SKILL.md +158 -0
  190. package/plugins/atlas-workflow-orchestrator/skills/atlas-task-validator/agents/openai.yaml +7 -0
  191. package/plugins/atlas-workflow-orchestrator/skills/atlas-workflow-orchestrator/SKILL.md +412 -0
  192. package/plugins/atlas-workflow-orchestrator/templates/BACKLOG_MESTRE_TEMPLATE.md +844 -0
  193. package/plugins/atlas-workflow-orchestrator/templates/BOUNDARY_PRD_PLAN.md +93 -0
  194. package/plugins/atlas-workflow-orchestrator/templates/PERGUNTAS_EM_ABERTO_TEMPLATE.md +139 -0
  195. package/plugins/atlas-workflow-orchestrator/templates/PLAN_TEMPLATE.md +146 -0
  196. package/plugins/atlas-workflow-orchestrator/templates/PRD_TEMPLATE.md +149 -0
  197. package/plugins/atlas-workflow-orchestrator/templates/STATE_FILE_SCHEMA.md +32 -0
@@ -0,0 +1,186 @@
1
+ ---
2
+ name: atlas-direct-execute
3
+ description: Execute a scoped PRD, task, or implementation slice directly using a compact execution contract, PRD obligation tracking, finite task gates, bounded repair, and mandatory cold validation via atlas-task-validator. Use when the user provides a PRD/spec/path or a debated task and wants implementation now without first producing a separate planning artifact. Preserve evidence against acceptance criteria, dependencies, fixtures, and invariants.
4
+ ---
5
+
6
+ # Atlas Direct Execute
7
+
8
+ ## Purpose
9
+
10
+ Execute directly from a PRD/spec/task while preserving execution quality: explicit scope, obligations, invariants, task order, risks, and validation. Do not write a separate planning artifact unless the user asks.
11
+
12
+ This is not planless execution. Replace the visible markdown plan with a compact operational contract held in the current turn and passed to validation.
13
+
14
+ ## Use Criteria
15
+
16
+ Use when all are true:
17
+
18
+ - User wants implementation, not a planning artifact.
19
+ - Scope is a PRD/spec/path or a debated task with clear boundaries.
20
+ - Work fits one coherent slice or a bounded task sequence.
21
+ - Execution happens in the same chat/context.
22
+ - A compact contract can be materialized into the state file boundary required by `atlas-task-validator`.
23
+
24
+ Do not use when any are true:
25
+
26
+ - User asks only for planning, review, explanation, or handoff artifact.
27
+ - Product rules, permissions, backend contract, migrations, security, or data-loss risk are materially ambiguous.
28
+ - The PRD/spec conflicts with code or adjacent docs in a way that blocks implementation.
29
+
30
+ ## Workflow
31
+
32
+ ### 0. Triage
33
+
34
+ Before implementation, decide one exact path:
35
+
36
+ - `direct`: proceed with this skill.
37
+ - `blocked`: ask for the missing decision or environment.
38
+
39
+ Ask at most 1-3 blocking questions only when a reasonable assumption could change product behavior, contract, permissions, persistence, or user-visible outcome. Otherwise state assumptions and proceed.
40
+
41
+ ### 1. Load inputs
42
+
43
+ Read the user-provided PRD/spec/task and any directly referenced files needed to resolve scope. If the input names repo artifacts, verify those artifacts exist before editing.
44
+
45
+ Extract only execution-relevant items:
46
+
47
+ - in scope / out of scope
48
+ - acceptance criteria and required deliverables
49
+ - accepted decisions
50
+ - invariants and "do not change" rules
51
+ - contracts, entities, routes, schemas, wrappers, generated files
52
+ - dependency contracts that must be consumed, bridged, or preserved
53
+ - fixture requirements and scenario language such as "weeks", "profiles", "matrix", "sequence", or "integration"
54
+ - validation requirements
55
+ - regression risks
56
+ - likely files/modules
57
+
58
+ If the PRD references another PRD or code contract as dependency, inspect enough to confirm the dependency shape and required bridge. Do not satisfy a dependency by creating parallel synthetic contracts unless the PRD explicitly allows it.
59
+
60
+ ### 2. Build Compact Execution Contract
61
+
62
+ Before editing, write a compact contract in the working response or internal task state. Size follows complexity: terse for simple tasks, denser only where needed to preserve scope, invariants, and validator quality.
63
+
64
+ Required shape:
65
+
66
+ ```text
67
+ Direct Execute Contract
68
+ - Goal:
69
+ - Boundary:
70
+ - In scope:
71
+ - Out of scope:
72
+ - Obligations:
73
+ - Invariants:
74
+ - Dependency bridges:
75
+ - Fixtures/scenarios:
76
+ - Scenario probes:
77
+ - Risk probes:
78
+ - Task order:
79
+ - Validation:
80
+ - Stop conditions:
81
+ ```
82
+
83
+ Do not expand this into a separate planning artifact. The goal is execution guardrails, not transfer documentation. The contract may be terse in the user-visible response, but it must be concrete enough to materialize into `.atlas/state/<run_id>/<slice>.json` and referenced evidence for `atlas-task-validator`.
84
+
85
+ Obligations are mandatory. Convert every PRD acceptance criterion and explicit deliverable into one compact row:
86
+
87
+ ```text
88
+ O1 <requirement> -> evidence: <file/test/check>
89
+ ```
90
+
91
+ When the PRD asks for fixtures, profiles, weeks, matrices, bridges/adapters, immutability, determinism, or calendar semantics, name those explicitly in `Obligations`. Do not collapse them into generic "tests cover rules".
92
+
93
+ Add a closure analysis packet before implementation starts. Keep it compact, but concrete enough that a cold validator can hunt omissions instead of only confirming obvious files:
94
+
95
+ - `Invariant ledger`: each invariant or "do not change" rule, with expected code evidence.
96
+ - `Scenario probes`: negative, repeated, empty/null, out-of-order, partial failure, stale state, permission, and cleanup scenarios relevant to this slice.
97
+ - `Contract probes`: DTO/entity/schema/route/RPC/generated/localization/import boundaries that could drift.
98
+ - `Risk probes`: each regression risk translated into a specific question the validator must answer from code.
99
+ - `Validation map`: which checks prove which obligations, and which obligations remain only manually evidenced.
100
+
101
+ If a probe is irrelevant, omit it. Do not write generic probes such as "check edge cases"; name the exact state, actor, field, route, or failure mode.
102
+
103
+ ### 3. Implement by finite tasks
104
+
105
+ Execute one task at a time. Prefer this order when applicable:
106
+
107
+ 1. contracts/types/domain
108
+ 2. dependency bridges/adapters from existing models or contracts
109
+ 3. datasource/client boundary
110
+ 4. repository/use case/state
111
+ 5. UI/route wiring
112
+ 6. fixtures/tests/generation/docs required for closure
113
+
114
+ For each task, keep a tiny task contract:
115
+
116
+ - objective
117
+ - files likely touched
118
+ - invariants at risk
119
+ - obligations satisfied
120
+ - focused check
121
+ - repair budget
122
+
123
+ Do not widen scope for opportunistic cleanup.
124
+
125
+ ### 4. Gate each task
126
+
127
+ Run focused checks appropriate to the diff:
128
+
129
+ - targeted tests
130
+ - analyzer/typecheck/lint
131
+ - codegen/localization/schema checks when relevant
132
+ - diff scan for scope creep
133
+ - runtime/browser verification when UI changed
134
+
135
+ If a check fails, classify:
136
+
137
+ - `fixable`: caused by current diff and repairable inside budget
138
+ - `blocked`: missing env, upstream failure, ambiguous contract, or required decision
139
+ - `pre-existing`: outside slice; report, do not repair unless blocking closure
140
+
141
+ Repair only current-diff failures. Stop after repeated failure or budget exhaustion.
142
+
143
+ ### 5. Mandatory cold validation
144
+
145
+ After tasks and local gates pass, write `.atlas/state/<run_id>/<slice>.json` following `packages/templates/STATE_FILE_SCHEMA.md`.
146
+
147
+ For direct execution, the state file is still the only validator input. Use the user-provided PRD/spec path as `plan_path` when no handoff plan exists, and include direct-contract anchors in `boundary_refs` such as `direct.O1`, `direct.invariant.permissions`, or `direct.risk.partial_failure`.
148
+
149
+ The state file is the only validator input. Validation is always **sibling**, on every host: this executor **never** dispatches `atlas-task-validator` itself and never validates its own work in the same context. After tasks and local gates pass and the state file is written, this executor **stops mutation** and returns `validator_handoff_required` with the `state_path`. The orchestrator then dispatches `atlas-task-validator` as the next isolated sibling phase, locks it via `atlas_lock_validator`, and — if the verdict is `fail` — dispatches `atlas-findings-repair` (not this executor) before the **2nd and last** validator.
150
+
151
+ Do not paste the compact contract, diff, obligation ledger, local checks, or closure analysis packet into the state file's handoff. Those belong in the state file and referenced artifacts.
152
+
153
+ **Finish all local work before the handoff — then stop idle.** Finish every local gate (lint, analyze, tests, `git diff --check`, diff-stat) and write the state file **before** returning the handoff. After returning `validator_handoff_required`, do nothing: no diff hygiene checks, no extra reads, no opportunistic edits, no parallel work. The orchestrator now owns the slice; any mutation here would change what the sibling validator reads and breaks determinism (same failure class as the orchestrator's G9).
154
+
155
+ The verdict is consumed by the **orchestrator**, not by this executor:
156
+
157
+ - `pass` / `pass_with_observations`: terminal — the orchestrator closes the slice (observations are reported residuals, never a trigger for another validator dispatch).
158
+ - `fail`: the orchestrator opens `repair_start`, dispatches `atlas-findings-repair`, closes with `repair_run_id`, and runs the **2nd and last** validator. This executor does not re-validate itself and is not reused for the repair retry.
159
+
160
+ This executor only re-engages if the orchestrator explicitly re-dispatches it for a new slice. It must not "fix" observations and reopen a closed slice; real follow-up from an observation goes to the final report or backlog, not into an extra in-slice change.
161
+
162
+ If isolated subagents are unavailable in the current environment, do not pretend the slice is validator-closed. Run a local self-check against the same contract, report `validator not run`, and mark residual risk explicitly.
163
+
164
+ ## Stop Conditions
165
+
166
+ Stop and report instead of improvising when:
167
+
168
+ - code contradicts the PRD in product behavior, permissions, backend contract, or persistence shape
169
+ - required dependency PRD/contract is missing or unstable
170
+ - implementing would violate explicit out-of-scope
171
+ - deterministic checks cannot run and no equivalent evidence exists
172
+ - repair loops repeat the same failure twice
173
+ - validator cannot receive a valid `.atlas/state/<run_id>/<slice>.json` state path
174
+ - any PRD obligation lacks code/test/check evidence after implementation
175
+
176
+ ## Final Report
177
+
178
+ Keep final report short:
179
+
180
+ - changed scope
181
+ - files touched
182
+ - validations run
183
+ - validator verdict/cycles
184
+ - blockers or residual risks
185
+
186
+ Do not include the full internal contract unless the user asks.
@@ -0,0 +1,7 @@
1
+ interface:
2
+ display_name: "Atlas Direct Execute"
3
+ short_description: "Direct PRD execution with cold validation"
4
+ default_prompt: "Use $atlas-direct-execute to implement this PRD or scoped task directly with a compact obligation ledger, focused gates, and validator closure."
5
+
6
+ policy:
7
+ allow_implicit_invocation: true
@@ -0,0 +1,148 @@
1
+ ---
2
+ name: atlas-findings-repair
3
+ description: Skill `atlas-findings-repair`. Corrige findings P0/P1/P2 retornados por `atlas-task-validator` dentro do boundary já executado, sem reabrir o plano completo. Use quando o orquestrador receber `fail` do validator (topologia sibling, única em todos os hosts) e precisar de um reparo enxuto, bounded e sem reusar `atlas-plan-execute`.
4
+ ---
5
+
6
+ # Atlas Findings Repair
7
+
8
+ Use esta skill apenas no caminho de recuperação pós-validator. Ela **não** substitui `atlas-plan-execute` nem `atlas-direct-execute`; serve só para corrigir findings bloqueantes já emitidos pelo `atlas-task-validator`.
9
+
10
+ ## Finalidade
11
+
12
+ Corrigir findings P0/P1/P2 dentro do boundary atual com o menor contexto possível:
13
+
14
+ - sem replanejar
15
+ - sem carregar skill de execução
16
+ - sem criar novas tasks
17
+ - sem ampliar o escopo
18
+ - sem despachar validator
19
+
20
+ O orquestrador é dono do ciclo sibling em todos os hosts:
21
+
22
+ 1. executor inicial entrega `state_path`
23
+ 2. orquestrador roda `atlas-task-validator`
24
+ 3. se `fail`, orquestrador trava o ciclo em `repair_required`
25
+ 4. orquestrador chama `atlas_lock_validator(action=repair_start, state_path=...)`
26
+ 5. orquestrador despacha `atlas-findings-repair` com o pacote retornado pelo lock
27
+ 6. esta skill corrige e devolve `repair_complete`
28
+ 7. orquestrador fecha o lock com `repair_run_id`
29
+ 8. orquestrador roda o **2º e último** validator
30
+
31
+ ## Entrada obrigatória
32
+
33
+ Receba do orquestrador:
34
+
35
+ - `state_path`
36
+ - findings estruturados do validator
37
+ - `validator_attempt`
38
+ - `repair_run_id`
39
+ - `repair_budget: 1`
40
+
41
+ Leia `atlas_run_state` como fonte primária do estado da run. O `state_path` continua sendo a fronteira canônica da slice.
42
+
43
+ ## Regras duras
44
+
45
+ 1. **Não carregar `atlas-plan-execute` nem `atlas-direct-execute`.**
46
+ 2. **Não reabrir o plano inteiro.** Corrija só o que os findings exigem.
47
+ 3. **Não aumentar boundary** sem evidência estrita de dependência técnica inevitável.
48
+ 4. **Não corrigir observações/P3 por capricho.** O foco é fechamento do `fail`.
49
+ 5. **Não despachar validator, review ou qualquer subagente.** O orquestrador faz isso.
50
+ 6. **Não iniciar terceiro ciclo.** Esta skill existe só entre validator 1 e validator 2.
51
+ 7. **Não trocar o `state_path`.** Atualize o arquivo original em lugar; redirecionar o boundary invalida a correlação do repair.
52
+
53
+ ## Fluxo
54
+
55
+ ### 1. Ler o boundary
56
+
57
+ Abra o `state_path` e extraia:
58
+
59
+ - `files_changed`
60
+ - `diff_stat`
61
+ - `plan_path`
62
+ - `boundary_refs`
63
+
64
+ Leia do plano apenas o mínimo necessário:
65
+
66
+ - Section 2 — invariantes
67
+ - Section 6 — contratos técnicos
68
+ - Section 8 — checklist
69
+
70
+ ### 2. Ler os findings recebidos
71
+
72
+ Trabalhe somente com findings de severidade:
73
+
74
+ - `P0`
75
+ - `P1`
76
+ - `P2`
77
+
78
+ Se o pacote vier vazio, inconsistente ou sem finding reparável, pare em `blocked`.
79
+
80
+ ### 3. Montar contrato mínimo de reparo
81
+
82
+ Antes de editar, reduza o trabalho a:
83
+
84
+ - finding alvo
85
+ - arquivos a tocar
86
+ - invariante em risco
87
+ - check focado
88
+ - budget de reparo
89
+
90
+ ### 4. Corrigir de forma bounded
91
+
92
+ Permissões:
93
+
94
+ - corrigir arquivos do boundary
95
+ - tocar arquivo adjacente apenas quando necessário para satisfazer contrato/invariante
96
+
97
+ Proibições:
98
+
99
+ - cleanup oportunista
100
+ - refactor largo
101
+ - nova feature
102
+ - mudança fora da causa do finding
103
+
104
+ ### 5. Rodar gates focados
105
+
106
+ Rode só validações coerentes com o diff:
107
+
108
+ - teste alvo
109
+ - lint/analyze/typecheck do pacote afetado
110
+ - `git diff --check`
111
+
112
+ Se o finding persistir por falta de decisão de produto, dependência externa ou widening de escopo, pare em `blocked`.
113
+
114
+ ### 6. Atualizar evidência
115
+
116
+ Ao terminar:
117
+
118
+ - atualize o conteúdo do `state_path` original se a evidência do boundary mudou
119
+ - mantenha a mesma slice
120
+ - não invente novo run state paralelo
121
+
122
+ ### 7. Devolver resultado ao orquestrador
123
+
124
+ Retorne saída curta e estruturada com:
125
+
126
+ - `status: repair_complete | blocked`
127
+ - `repair_run_id`
128
+ - `state_path`
129
+ - `files_touched`
130
+ - `checks_run`
131
+ - `residual_risk` (se houver)
132
+
133
+ O orquestrador chamará `atlas_lock_validator(action=repair_complete, repair_run_id=..., state_path=<mesmo path original>)` e só então poderá despachar o validator final.
134
+ Antes disso, ele deve ter aberto o slot com `atlas_lock_validator(action=repair_start, state_path=...)`; `repair_run_id` é obrigatório no fechamento.
135
+
136
+ ## Stop conditions
137
+
138
+ Pare e reporte `blocked` quando:
139
+
140
+ - finding exige reabrir decisão fechada
141
+ - finding exige ampliar escopo além da slice
142
+ - mesmo erro repete sem sinal novo
143
+ - correção depende de ambiente ausente
144
+ - pacote de findings não é confiável
145
+
146
+ ## Resultado esperado
147
+
148
+ Esta skill deve ser menor e mais barata que um executor completo, mas ainda disciplinada. Ela repara findings; ela **não** “continua a execução”.
@@ -0,0 +1,7 @@
1
+ interface:
2
+ display_name: "Atlas Findings Repair"
3
+ short_description: "Repair-only post-validator fixer for bounded findings"
4
+ default_prompt: "Use $atlas-findings-repair to fix the blocking validator findings inside the current slice boundary without reloading the full executor."
5
+
6
+ policy:
7
+ allow_implicit_invocation: true
@@ -0,0 +1,129 @@
1
+ ---
2
+ name: atlas-plan-execute
3
+ description: Executa planos produzidos por `atlas-plan-handoff` task-a-task com gates finitos e self-repair local pré-handoff (lint/tests/diff — máximo 2 passes por task). Ao concluir todas as tasks da slice, escreve o state file, para toda mutação e retorna `validator_handoff_required` ao orquestrador para validação fria sibling via `atlas-task-validator`. O orquestrador consome o veredito e decide sobre repair ou fechamento — este executor nunca valida o próprio trabalho nem processa resultado do validador. Use quando o cliente precisar implementar um plano sem derivar dos invariantes.
4
+ ---
5
+
6
+ # Atlas Plan Execute
7
+
8
+ Use this skill to turn a `atlas-plan-handoff` artifact into a controlled execution loop.
9
+
10
+ Prefer finite, stage-based execution over continuous self-critique. The goal is to finish the task with high confidence, not to keep polishing indefinitely.
11
+
12
+ ---
13
+
14
+ ## Execution Model
15
+
16
+ Operate as a bounded state machine:
17
+ `ready` → `implementing` → `gating` → `repairing` (self-repair LOCAL, gates pré-handoff) → `task_done` → `validator_handoff_required` (or `blocked`).
18
+
19
+ `repairing` cobre exclusivamente falhas de gates locais (lint, analyze, tests, diff-check) introduzidas pelo diff corrente — máximo 2 passes por task. O executor não entra em `repairing` pós-validação; qualquer repair pós-veredito é de responsabilidade do orquestrador via `atlas-findings-repair`. Após `task_done` para todas as tasks da slice, o executor escreve o state file e transita para `validator_handoff_required` — não existe `slice_validating` nem `slice_done` no escopo deste executor.
20
+
21
+ ## State persistence
22
+
23
+ Use `atlas_run_state` as the primary source of run state. Do not read or write run ledger files directly. If the MCP is unavailable, report the gate as unprovable and abort instead of continuing with a silent file fallback.
24
+
25
+ ## Plan path resolution
26
+
27
+ Resolve plan paths in this order:
28
+
29
+ 1. `.atlas/plans/`
30
+ 2. `.cursor/plans/` with a deprecation warning
31
+ 3. `.codex/plans/` with a deprecation warning
32
+
33
+ New or rewritten plan artifacts must use `.atlas/plans/`.
34
+
35
+ ## Host adapter
36
+
37
+ This skill is host-agnostic. To resolve any host-specific verb (subagent dispatch, native todo tool, plan paths), call the MCP tool `atlas_capabilities` first and use the returned descriptor. Canonical reference: `packages/orchestrator/references/host-adapters.md`. Do not hardcode a host name in reasoning — read it from the descriptor.
38
+
39
+ ## Native todo mirror
40
+
41
+ When entering `implementing` for the first time in a slice, mirror the plan tasks into the native todo surface named by `atlas_capabilities.todo_tool` (e.g. `TodoWrite` on Claude Code, `tasks` on Codex App). If `todo_tool` is `null`, proceed without a mirror — do not invent a tool.
42
+
43
+ The plan is the SSoT. Map `ready` to `pending`, `implementing`/`gating` to `in_progress`, and `task_done` to `completed`. If todo state diverges, sync from the plan to todo, never from todo back to the plan. Do not create parallel todos that are not derived from plan task IDs.
44
+
45
+ ## Review gate
46
+
47
+ `atlas-slice-review` is dispatched only when `--review` is present in the user command or executor arguments. Without `--review`, the orchestrator closes the slice upon receiving `pass` or `pass_with_observations` from the validator — this executor is not involved in that decision and never observes the validator verdict directly.
48
+
49
+ ## Entrada via modo `execute` (PRD D1/D13)
50
+
51
+ Esta skill aceita entrada pelo modo `execute` do orquestrador: um `PLAN_*.md` pronto de pipeline curta, apontado diretamente e já reverificado na entrada (`atlas_verify_artifact` + TC) pelo orquestrador. **A entrada `execute` é o mesmo executor, com as mesmas garantias** — o contrato não muda: o state file (`.atlas/state/<run_id>/<slice>.json`) permanece **obrigatório** e o `atlas-task-validator` (validador frio, só `state_path`) permanece **obrigatório** antes do relatório final. Não há caminho de execução sem state file nem sem validador, em nenhum modo de entrada.
52
+
53
+ ---
54
+
55
+ ## Required Workflow
56
+
57
+ ### 1. Load the plan as an execution contract
58
+ Read the `atlas-plan-handoff` artifact. Extract at minimum:
59
+ * **Execution metadata**: Prefix, mode, and validator options.
60
+ * **Executive translation and PRD links** (from Section 1 — include path to PRD; cite `PRD §3` D* IDs, do not paste the full D* table).
61
+ * **Execution invariants** (from Section 2).
62
+ * **Current state at sprint opening** (from Section 4 — not Section 2).
63
+ * **Pitfalls** (from Section 3).
64
+ * **All execution tasks TNN** (from Section 5).
65
+ * **Technical contracts** (from Section 6).
66
+ * **Slices of execution** (from Section 7).
67
+ * **Checklist for the validator** (from Section 8).
68
+
69
+ Treat headings as semantic. If the plan uses equivalent wording but carries the same contract, continue. If the plan is missing the substance, stop and report.
70
+ The old Gate of Readiness (§15) and Handoff Prompt (§16) are **no longer required** in the compact template.
71
+ If optional Section 9 (open questions / real blockers — **not** PRD §7 Apêndice/Referências) has active blocking items, stop execution and request clarification.
72
+
73
+ When Section 8 checklist is thin, read **PRD §4–6** from the PRD path in the plan header for business acceptance.
74
+
75
+ ### 2. Create a task-scoped execution contract
76
+ Before editing code, write a short task contract for the current task only (objective, files, invariants, local checks, and repair budget).
77
+
78
+ ### 3. Implement in the smallest coherent slice
79
+ Do not implement the entire feature before validating anything. Prefer one task at a time. Follow closed decisions from the plan.
80
+
81
+ ### 4. Run a focused quality gate after each task slice
82
+ Run only the checks that are relevant to the current diff and task risks (linter, analyze of the affected package, or tests).
83
+
84
+ ### 5. Repair only what the current diff introduced
85
+ If the gate fails, classify the outcome as `fixable` (maximum 2 repair passes per task) or `blocked`.
86
+
87
+ ### 6. Enforce hard stop conditions
88
+ Stop repair and move to `blocked` when budget is exhausted, the same failure repeats twice, or the fix requires reopening closed plan decisions.
89
+
90
+ ### 7. Close the task with evidence
91
+ Mark a task complete and move to the next. Once all tasks are `completed`, write the state file and transition to `validator_handoff_required`.
92
+
93
+ ### 8. Write the state file and hand off to the orchestrator
94
+ After all tasks in the current slice are complete, write the state file boundary. The cold validation runs as an isolated **sibling** dispatched by the orchestrator — never by this executor (see below).
95
+
96
+ #### State file boundary
97
+
98
+ Create `.atlas/state/<run_id>/<slice>.json` following `packages/templates/STATE_FILE_SCHEMA.md`:
99
+
100
+ ```json
101
+ {
102
+ "run_id": "<run_id>",
103
+ "slice": "<slice id>",
104
+ "tasks": ["T01"],
105
+ "files_changed": ["relative/path.ext"],
106
+ "diff_stat": "N files, +X -Y",
107
+ "plan_path": ".atlas/plans/<id>.plan.md",
108
+ "boundary_refs": ["§2.I1", "§6.1", "§8"],
109
+ "executed_at": "ISO8601",
110
+ "executor_skill": "atlas-plan-execute"
111
+ }
112
+ ```
113
+
114
+ Validation is always **sibling**, on every host. The validator is registered as a real subagent on every host, but this executor **never** dispatches it and never validates its own work. After tasks and local gates pass and the state file is written, this executor **stops mutation** and returns `validator_handoff_required` with the `state_path`. The orchestrator dispatches `atlas-task-validator` as the next isolated sibling phase, locks it via `atlas_lock_validator`, and — if the verdict is `fail` — dispatches `atlas-findings-repair` (not this executor) before the **2nd and last** validator.
115
+
116
+ The only handoff input is `state_path`. Do not paste the contract, diff, or task list inline. The validator reads everything it needs from the state file and the plan it points to. (`atlas_capabilities` is the runtime source of truth for the dispatch mechanism the orchestrator uses — see `references/host-adapters.md`.)
117
+
118
+ **Finish all local work before the handoff — then stop idle.** Finish every local gate (lint, analyze, tests, `git diff --check`, diff-stat) and write the state file **before** returning the handoff. After returning `validator_handoff_required`, the executor must not mutate anything: the orchestrator now owns the slice, and any mutation here would change what the sibling validator reads and breaks determinism (same failure class as the orchestrator's G9).
119
+
120
+ ### 9. The orchestrator consumes the verdict
121
+ This executor does not parse the validator output — the **orchestrator** does, deciding only from `verdict`:
122
+
123
+ - `pass` / `pass_with_observations`: terminal — close the slice. Observations and `boundary_violations` returned alongside a non-`fail` verdict are reported residuals, never a trigger for another validator dispatch.
124
+ - `fail`: the orchestrator opens `repair_start`, dispatches `atlas-findings-repair`, closes with `repair_run_id`, then runs the **2nd and last** validator (max 2 cycles total). This executor is not reused for the retry.
125
+
126
+ Never decide by substring matching prose. Once the slice is closed, do not edit code, tests, or boundary files just to satisfy an observation; that reopens the slice and forces an avoidable re-validation. Real follow-up from an observation goes to the final report or a backlog item, not into an extra in-slice change.
127
+
128
+ ### 10. Report final outcome
129
+ At the end of execution, report completed tasks, validations run, validator outcome, and any residual gaps.
@@ -0,0 +1,7 @@
1
+ interface:
2
+ display_name: "Atlas Plan Execute"
3
+ short_description: "Bounded plan execution with gates (atlas-plan-execute)"
4
+ default_prompt: "Use $atlas-plan-execute to execute this handoff plan task by task with explicit invariants, focused validation, bounded self-repair, and clear stop conditions."
5
+
6
+ policy:
7
+ allow_implicit_invocation: true
@@ -0,0 +1,88 @@
1
+ # Plan Contract
2
+
3
+ Input plans must follow `atlas-plan-handoff` and align with `PLAN_TEMPLATE.md` / `BOUNDARY_PRD_PLAN.md` (compact template, sections 1–8). Locate both in the Atlas Workflow plugin bundle at `packages/templates/`; do not use workspace-local templates as primary sources.
4
+
5
+ If `packages/templates/PLAN_TEMPLATE.md` or `packages/templates/BOUNDARY_PRD_PLAN.md` is absent from the bundle, stop with a clear `Template canônico ausente: <nome-do-template>` error. Do not fall back silently to old local, vault, or global copies.
6
+
7
+ Legacy 15-section plans (handoff prompt, architecture impact block in PRD, etc.) are **not** the target format.
8
+
9
+ ## Required execution metadata
10
+
11
+ Near the top of the artifact:
12
+
13
+ - `Plan prefix: atlas`
14
+ - `Execution mode: sequencial (T01→TN)` | `orchestrated-per-slice`
15
+ - `Executor skill: atlas-plan-execute`
16
+ - `Internal validator: atlas-task-validator`
17
+ - `External review: atlas-slice-review` (optional)
18
+
19
+ ## Required plan sections (match by meaning)
20
+
21
+ | § | Purpose |
22
+ |---|---------|
23
+ | 1 | Executive translation (`Tradução executiva`) — scope link to PRD, reference module, diffs vs mirror |
24
+ | 2 | Execution invariants (derived from `PRD §3` — cite D* IDs, do not paste full table) |
25
+ | 3 | Pitfalls (anti-pattern → fix) |
26
+ | 4 | State at sprint opening (3–6 bullets; not a global file inventory) |
27
+ | 5 | Execution tasks `#### T01.` … `TNN` |
28
+ | 6 | Technical contracts (only where PRD → code is ambiguous) |
29
+ | 8 | Validation and validator checklist (derived from `PRD §6` + §2 invariants) |
30
+
31
+ Section 7 (Slices) is required only when `execution_mode: orchestrated-per-slice`.
32
+
33
+ **Not required:** handoff prompt, planner readiness gate, full `project-rules` rules dump, full PRD scope copy, global touched-files inventory.
34
+
35
+ **Optional:** section 9 open questions / real blockers (executor must stop if active blockers remain).
36
+
37
+ ## Minimum task shape (section 5)
38
+
39
+ Each `#### TNN.` should include when applicable:
40
+
41
+ - `Objetivo` / `Objective`
42
+ - `Referência` (module or pattern — not a long path laundry list)
43
+ - `Pré-condições` / `Preconditions`
44
+ - `Mudança esperada` / `Expected change`
45
+ - `Invariantes preservados`
46
+ - `Não mudar` / `Não fazer` / `Do not do`
47
+ - `Dependências` / `Dependencies`
48
+ - `Riscos` (if not obvious)
49
+ - `Critério de done` / `Done criteria`
50
+ - `Validação local` / `Task-local validation` (command with package path)
51
+ - `Quality gates` (optional on critical tasks)
52
+ - `Casos mínimos` (test tasks only)
53
+
54
+ Paths may appear in **Referência** or **Validação local**; prefer module-level pointers per boundary policy.
55
+
56
+ ## Executor consumption map
57
+
58
+ | Contract need | Plan section |
59
+ |---------------|--------------|
60
+ | Translation, PRD links, reference module | §1 |
61
+ | Execution invariants | §2 |
62
+ | Pitfalls | §3 |
63
+ | Current codebase state | §4 |
64
+ | Tasks, done criteria, local validation | §5 |
65
+ | Technical contracts | §6 |
66
+ | Slice boundaries | §7 (orchestrated mode) |
67
+ | Validator checklist | §8 |
68
+ | Business acceptance (when §8 is thin) | PRD §4–6 (read PRD path from plan header) |
69
+
70
+ ## Why this matters
71
+
72
+ Prefix and mode are part of the execution contract, not chat memory.
73
+
74
+ If `Plan prefix` or `Execution mode` is missing, stop — do not guess the chain.
75
+
76
+ Thin tasks (`refactor bootstrap` only) are not ready for gated execution; ask for a denser plan.
77
+
78
+ Pitfalls, contracts, and invariants are binding — not commentary.
79
+
80
+ ## Parsing notes
81
+
82
+ The bundled `extract_plan_contract.py` uses heading heuristics:
83
+
84
+ - `#` … `####` headings
85
+ - task headings `#### T01. …`
86
+ - bullet lines `- …`
87
+
88
+ Normalize non-standard plans before execution or extend the parser aliases.
@@ -0,0 +1,60 @@
1
+ # Quality Gates
2
+
3
+ Choose the lightest gate that still protects the current task.
4
+
5
+ ## Gate selection order
6
+
7
+ 1. Prove the task with deterministic checks.
8
+ 2. Add semantic review against plan invariants.
9
+ 3. Add targeted runtime verification only when behavior changed in a way static checks cannot prove.
10
+ 4. Escalate to broader validation only when the task blast radius justifies it.
11
+
12
+ ## Common gate matrix
13
+
14
+ ### Pure refactor
15
+
16
+ - targeted tests for touched modules
17
+ - typecheck or analyze for touched package
18
+ - diff scan for forbidden scope expansion
19
+
20
+ ### Contract or DTO change
21
+
22
+ - compilation or typecheck
23
+ - serialization or mapper tests if available
24
+ - search for all consumers of renamed or reshaped fields
25
+ - compare with plan constraints and declared contract
26
+ - verify generated artifacts or localization files named by the plan before wiring consumers
27
+
28
+ ### UI-only change
29
+
30
+ - component, widget, or snapshot tests when available
31
+ - targeted runtime verification for changed flow
32
+ - search for accessibility or localization regressions if the repo has such rules
33
+ - verify role/permission gating when the plan distinguishes who can see or mutate related resources
34
+
35
+ ### State management or orchestration change
36
+
37
+ - focused tests around the changed store, controller, or service
38
+ - validation of loading, error, and success transitions
39
+ - explicit invariant review so closed architectural decisions are not violated
40
+ - rapid repeat-action or stale async check when the slice changes user-triggered operations
41
+
42
+ ### Data migration or cleanup
43
+
44
+ - migration-specific validation
45
+ - idempotency or rollback reasoning
46
+ - stronger stop conditions if external systems are involved
47
+
48
+ ## What not to do
49
+
50
+ - Do not run every available check after every edit.
51
+ - Do not promote unrelated warnings into mandatory work.
52
+ - Do not claim semantic safety from lint alone.
53
+ - Do not keep retrying the same failing check with no code or environment change.
54
+ - Do not repair by weakening a permission matrix, source-of-truth decision, or explicit negative scope.
55
+
56
+ ## Failure classification
57
+
58
+ - `pass`: checks passed and no unresolved high-severity invariant break remains
59
+ - `fixable`: a current-diff issue is clear and repair budget remains
60
+ - `blocked`: repair would require scope change, external dependency, environment fix, or repeated speculative retries