oxe-cc 1.2.1 → 1.4.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 (281) hide show
  1. package/.cursor/commands/oxe-ask.md +2 -2
  2. package/.cursor/commands/oxe-capabilities.md +2 -2
  3. package/.cursor/commands/oxe-checkpoint.md +2 -2
  4. package/.cursor/commands/oxe-compact.md +2 -2
  5. package/.cursor/commands/oxe-dashboard.md +2 -2
  6. package/.cursor/commands/oxe-debug.md +2 -2
  7. package/.cursor/commands/oxe-discuss.md +2 -2
  8. package/.cursor/commands/oxe-execute.md +5 -2
  9. package/.cursor/commands/oxe-forensics.md +2 -2
  10. package/.cursor/commands/oxe-help.md +2 -2
  11. package/.cursor/commands/oxe-loop.md +2 -2
  12. package/.cursor/commands/oxe-milestone.md +2 -2
  13. package/.cursor/commands/oxe-next.md +2 -2
  14. package/.cursor/commands/oxe-obs.md +2 -2
  15. package/.cursor/commands/oxe-plan-agent.md +2 -2
  16. package/.cursor/commands/oxe-plan.md +2 -2
  17. package/.cursor/commands/oxe-project.md +2 -2
  18. package/.cursor/commands/oxe-quick.md +2 -2
  19. package/.cursor/commands/oxe-research.md +2 -2
  20. package/.cursor/commands/oxe-retro.md +2 -2
  21. package/.cursor/commands/oxe-review-pr.md +2 -2
  22. package/.cursor/commands/oxe-route.md +2 -2
  23. package/.cursor/commands/oxe-scan.md +2 -2
  24. package/.cursor/commands/oxe-security.md +2 -2
  25. package/.cursor/commands/oxe-session.md +2 -2
  26. package/.cursor/commands/oxe-ship.md +2 -2
  27. package/.cursor/commands/oxe-skill.md +2 -2
  28. package/.cursor/commands/oxe-spec.md +2 -2
  29. package/.cursor/commands/oxe-ui-review.md +2 -2
  30. package/.cursor/commands/oxe-ui-spec.md +2 -2
  31. package/.cursor/commands/oxe-update.md +2 -2
  32. package/.cursor/commands/oxe-validate-gaps.md +2 -2
  33. package/.cursor/commands/oxe-verify.md +5 -2
  34. package/.cursor/commands/oxe-workstream.md +2 -2
  35. package/.cursor/commands/oxe.md +2 -2
  36. package/.github/copilot-instructions.md +13 -13
  37. package/.github/prompts/oxe-ask.prompt.md +2 -2
  38. package/.github/prompts/oxe-capabilities.prompt.md +2 -2
  39. package/.github/prompts/oxe-checkpoint.prompt.md +2 -2
  40. package/.github/prompts/oxe-compact.prompt.md +2 -2
  41. package/.github/prompts/oxe-dashboard.prompt.md +2 -2
  42. package/.github/prompts/oxe-debug.prompt.md +2 -2
  43. package/.github/prompts/oxe-discuss.prompt.md +2 -2
  44. package/.github/prompts/oxe-execute.prompt.md +5 -2
  45. package/.github/prompts/oxe-forensics.prompt.md +2 -2
  46. package/.github/prompts/oxe-help.prompt.md +2 -2
  47. package/.github/prompts/oxe-loop.prompt.md +2 -2
  48. package/.github/prompts/oxe-milestone.prompt.md +2 -2
  49. package/.github/prompts/oxe-next.prompt.md +2 -2
  50. package/.github/prompts/oxe-obs.prompt.md +2 -2
  51. package/.github/prompts/oxe-plan-agent.prompt.md +2 -2
  52. package/.github/prompts/oxe-plan.prompt.md +2 -2
  53. package/.github/prompts/oxe-project.prompt.md +2 -2
  54. package/.github/prompts/oxe-quick.prompt.md +2 -2
  55. package/.github/prompts/oxe-research.prompt.md +2 -2
  56. package/.github/prompts/oxe-retro.prompt.md +2 -2
  57. package/.github/prompts/oxe-review-pr.prompt.md +2 -2
  58. package/.github/prompts/oxe-route.prompt.md +2 -2
  59. package/.github/prompts/oxe-scan.prompt.md +2 -2
  60. package/.github/prompts/oxe-security.prompt.md +2 -2
  61. package/.github/prompts/oxe-session.prompt.md +2 -2
  62. package/.github/prompts/oxe-ship.prompt.md +2 -2
  63. package/.github/prompts/oxe-skill.prompt.md +2 -2
  64. package/.github/prompts/oxe-spec.prompt.md +2 -2
  65. package/.github/prompts/oxe-ui-review.prompt.md +2 -2
  66. package/.github/prompts/oxe-ui-spec.prompt.md +2 -2
  67. package/.github/prompts/oxe-update.prompt.md +2 -2
  68. package/.github/prompts/oxe-validate-gaps.prompt.md +2 -2
  69. package/.github/prompts/oxe-verify.prompt.md +5 -2
  70. package/.github/prompts/oxe-workstream.prompt.md +2 -2
  71. package/.github/prompts/oxe.prompt.md +2 -2
  72. package/AGENTS.md +5 -3
  73. package/CHANGELOG.md +72 -10
  74. package/LICENSE +21 -674
  75. package/README.md +631 -535
  76. package/bin/banner.txt +6 -6
  77. package/bin/lib/oxe-agent-install.cjs +69 -69
  78. package/bin/lib/oxe-azure.cjs +1445 -1445
  79. package/bin/lib/oxe-context-engine.cjs +867 -867
  80. package/bin/lib/oxe-dashboard.cjs +76 -28
  81. package/bin/lib/oxe-operational.cjs +2144 -1340
  82. package/bin/lib/oxe-project-health.cjs +483 -1
  83. package/bin/lib/oxe-runtime-semantics.cjs +12 -0
  84. package/bin/oxe-cc.js +554 -152
  85. package/commands/oxe/ask.md +2 -2
  86. package/commands/oxe/capabilities.md +2 -2
  87. package/commands/oxe/checkpoint.md +2 -2
  88. package/commands/oxe/compact.md +2 -2
  89. package/commands/oxe/dashboard.md +2 -2
  90. package/commands/oxe/debug.md +2 -2
  91. package/commands/oxe/discuss.md +2 -2
  92. package/commands/oxe/execute.md +5 -2
  93. package/commands/oxe/forensics.md +2 -2
  94. package/commands/oxe/help.md +2 -2
  95. package/commands/oxe/loop.md +2 -2
  96. package/commands/oxe/milestone.md +2 -2
  97. package/commands/oxe/next.md +2 -2
  98. package/commands/oxe/obs.md +2 -2
  99. package/commands/oxe/oxe.md +2 -2
  100. package/commands/oxe/plan-agent.md +2 -2
  101. package/commands/oxe/plan.md +2 -2
  102. package/commands/oxe/project.md +2 -2
  103. package/commands/oxe/quick.md +2 -2
  104. package/commands/oxe/research.md +2 -2
  105. package/commands/oxe/retro.md +2 -2
  106. package/commands/oxe/review-pr.md +2 -2
  107. package/commands/oxe/route.md +2 -2
  108. package/commands/oxe/scan.md +2 -2
  109. package/commands/oxe/security.md +2 -2
  110. package/commands/oxe/session.md +2 -2
  111. package/commands/oxe/ship.md +2 -2
  112. package/commands/oxe/skill.md +2 -2
  113. package/commands/oxe/spec.md +2 -2
  114. package/commands/oxe/ui-review.md +2 -2
  115. package/commands/oxe/ui-spec.md +2 -2
  116. package/commands/oxe/update.md +2 -2
  117. package/commands/oxe/validate-gaps.md +2 -2
  118. package/commands/oxe/verify.md +5 -2
  119. package/commands/oxe/workstream.md +2 -2
  120. package/lib/runtime/delivery/branch-manager.d.ts +1 -0
  121. package/lib/runtime/delivery/branch-manager.js +7 -0
  122. package/lib/runtime/delivery/ci-checks.js +34 -1
  123. package/lib/runtime/delivery/delivery-records.d.ts +34 -0
  124. package/lib/runtime/delivery/delivery-records.js +48 -0
  125. package/lib/runtime/delivery/index.d.ts +1 -0
  126. package/lib/runtime/delivery/index.js +1 -0
  127. package/lib/runtime/delivery/promotion-pipeline.d.ts +26 -2
  128. package/lib/runtime/delivery/promotion-pipeline.js +111 -14
  129. package/lib/runtime/gate/gate-manager.d.ts +41 -0
  130. package/lib/runtime/gate/gate-manager.js +108 -1
  131. package/lib/runtime/index.d.ts +2 -2
  132. package/lib/runtime/index.js +3 -1
  133. package/lib/runtime/models/gate-decision.d.ts +4 -1
  134. package/lib/runtime/models/workspace.d.ts +3 -0
  135. package/lib/runtime/plugins/capability-adapter.d.ts +12 -0
  136. package/lib/runtime/plugins/capability-adapter.js +204 -0
  137. package/lib/runtime/plugins/capability-matrix.d.ts +5 -0
  138. package/lib/runtime/plugins/capability-matrix.js +48 -17
  139. package/lib/runtime/plugins/index.d.ts +1 -0
  140. package/lib/runtime/plugins/index.js +1 -0
  141. package/lib/runtime/plugins/plugin-abi.d.ts +2 -0
  142. package/lib/runtime/plugins/plugin-manifest.d.ts +1 -1
  143. package/lib/runtime/plugins/plugin-manifest.js +6 -2
  144. package/lib/runtime/plugins/plugin-registry.d.ts +46 -0
  145. package/lib/runtime/plugins/plugin-registry.js +79 -2
  146. package/lib/runtime/policy/policy-engine.d.ts +19 -0
  147. package/lib/runtime/policy/policy-engine.js +76 -4
  148. package/lib/runtime/projection/projection-engine.d.ts +9 -1
  149. package/lib/runtime/projection/projection-engine.js +73 -3
  150. package/lib/runtime/scheduler/multi-agent-coordinator.d.ts +43 -1
  151. package/lib/runtime/scheduler/multi-agent-coordinator.js +151 -39
  152. package/lib/runtime/scheduler/run-journal.d.ts +1 -1
  153. package/lib/runtime/scheduler/scheduler.d.ts +19 -1
  154. package/lib/runtime/scheduler/scheduler.js +258 -13
  155. package/lib/runtime/verification/verification-compiler.d.ts +43 -0
  156. package/lib/runtime/verification/verification-compiler.js +137 -0
  157. package/lib/runtime/verification/verification-manifest.d.ts +9 -0
  158. package/lib/runtime/verification/verification-manifest.js +56 -6
  159. package/lib/runtime/workspace/strategies/ephemeral-container.d.ts +1 -0
  160. package/lib/runtime/workspace/strategies/ephemeral-container.js +4 -0
  161. package/lib/runtime/workspace/strategies/git-worktree.d.ts +1 -0
  162. package/lib/runtime/workspace/strategies/git-worktree.js +2 -0
  163. package/lib/runtime/workspace/strategies/inplace.d.ts +1 -0
  164. package/lib/runtime/workspace/strategies/inplace.js +2 -0
  165. package/lib/runtime/workspace/workspace-manager.d.ts +2 -1
  166. package/lib/sdk/README.md +20 -8
  167. package/lib/sdk/index.cjs +33 -24
  168. package/lib/sdk/index.d.ts +149 -14
  169. package/oxe/templates/ACTIVE-RUN.template.json +32 -32
  170. package/oxe/templates/CAPABILITIES.template.md +7 -7
  171. package/oxe/templates/CAPABILITY.template.md +45 -45
  172. package/oxe/templates/CHECKPOINTS.template.md +7 -7
  173. package/oxe/templates/EXECUTION-RUNTIME.template.md +68 -68
  174. package/oxe/templates/HYPOTHESES.template.md +33 -33
  175. package/oxe/templates/LESSONS-METRICS.template.json +13 -13
  176. package/oxe/templates/NOTES.template.md +16 -16
  177. package/oxe/templates/PLAN-REVIEW.template.md +31 -31
  178. package/oxe/templates/SESSION.template.md +34 -34
  179. package/oxe/templates/SKILL.template.md +26 -26
  180. package/oxe/templates/STATE.md +55 -55
  181. package/oxe/templates/WORKFLOW_AUTHORING.md +18 -18
  182. package/oxe/workflows/ask.md +96 -96
  183. package/oxe/workflows/capabilities.md +25 -25
  184. package/oxe/workflows/dashboard.md +33 -33
  185. package/oxe/workflows/discuss.md +12 -12
  186. package/oxe/workflows/execute.md +14 -0
  187. package/oxe/workflows/help.md +352 -352
  188. package/oxe/workflows/next.md +22 -22
  189. package/oxe/workflows/oxe.md +6 -6
  190. package/oxe/workflows/plan-agent.md +9 -9
  191. package/oxe/workflows/plan.md +51 -20
  192. package/oxe/workflows/quick.md +10 -10
  193. package/oxe/workflows/references/reasoning-discovery.md +28 -28
  194. package/oxe/workflows/references/reasoning-execution.md +29 -29
  195. package/oxe/workflows/references/reasoning-planning.md +32 -32
  196. package/oxe/workflows/references/reasoning-review.md +29 -29
  197. package/oxe/workflows/references/reasoning-status.md +24 -24
  198. package/oxe/workflows/references/robustness-elevation.md +295 -295
  199. package/oxe/workflows/references/workflow-runtime-contracts.json +952 -930
  200. package/oxe/workflows/route.md +16 -16
  201. package/oxe/workflows/session.md +213 -213
  202. package/oxe/workflows/ship.md +142 -142
  203. package/oxe/workflows/skill.md +44 -44
  204. package/oxe/workflows/ui-review.md +36 -36
  205. package/oxe/workflows/verify-audit.md +73 -73
  206. package/oxe/workflows/verify.md +10 -0
  207. package/package.json +92 -92
  208. package/packages/runtime/package.json +16 -15
  209. package/packages/runtime/src/audit/audit-trail.ts +243 -243
  210. package/packages/runtime/src/audit/index.ts +2 -2
  211. package/packages/runtime/src/audit/policy-pack.ts +62 -62
  212. package/packages/runtime/src/compiler/graph-compiler.ts +245 -245
  213. package/packages/runtime/src/compiler/index.ts +1 -1
  214. package/packages/runtime/src/context/context-pack-builder.ts +259 -259
  215. package/packages/runtime/src/context/context-pack-store.ts +197 -197
  216. package/packages/runtime/src/context/context-profiles.ts +60 -60
  217. package/packages/runtime/src/context/index.ts +3 -3
  218. package/packages/runtime/src/decision/decision-engine.ts +174 -174
  219. package/packages/runtime/src/decision/decision-memo.ts +211 -211
  220. package/packages/runtime/src/decision/index.ts +2 -2
  221. package/packages/runtime/src/delivery/branch-manager.ts +91 -84
  222. package/packages/runtime/src/delivery/ci-checks.ts +285 -252
  223. package/packages/runtime/src/delivery/delivery-records.ts +75 -0
  224. package/packages/runtime/src/delivery/index.ts +5 -4
  225. package/packages/runtime/src/delivery/pr-manager.ts +112 -112
  226. package/packages/runtime/src/delivery/promotion-pipeline.ts +334 -180
  227. package/packages/runtime/src/events/bus.ts +92 -92
  228. package/packages/runtime/src/events/catalog.ts +29 -29
  229. package/packages/runtime/src/events/envelope.ts +14 -14
  230. package/packages/runtime/src/events/index.ts +3 -3
  231. package/packages/runtime/src/evidence/evidence-store.ts +130 -130
  232. package/packages/runtime/src/evidence/index.ts +1 -1
  233. package/packages/runtime/src/gate/gate-manager.ts +289 -137
  234. package/packages/runtime/src/gate/index.ts +1 -1
  235. package/packages/runtime/src/index.ts +41 -37
  236. package/packages/runtime/src/models/attempt.ts +19 -19
  237. package/packages/runtime/src/models/evidence.ts +21 -21
  238. package/packages/runtime/src/models/gate-decision.ts +25 -21
  239. package/packages/runtime/src/models/index.ts +8 -8
  240. package/packages/runtime/src/models/run.ts +24 -24
  241. package/packages/runtime/src/models/session.ts +11 -11
  242. package/packages/runtime/src/models/verification-result.ts +10 -10
  243. package/packages/runtime/src/models/work-item.ts +25 -25
  244. package/packages/runtime/src/models/workspace.ts +31 -28
  245. package/packages/runtime/src/plugins/capability-adapter.ts +206 -0
  246. package/packages/runtime/src/plugins/capability-matrix.ts +126 -83
  247. package/packages/runtime/src/plugins/index.ts +5 -4
  248. package/packages/runtime/src/plugins/plugin-abi.ts +97 -95
  249. package/packages/runtime/src/plugins/plugin-manifest.ts +118 -113
  250. package/packages/runtime/src/plugins/plugin-registry.ts +232 -124
  251. package/packages/runtime/src/policy/index.ts +1 -1
  252. package/packages/runtime/src/policy/policy-engine.ts +330 -244
  253. package/packages/runtime/src/projection/index.ts +1 -1
  254. package/packages/runtime/src/projection/projection-engine.ts +328 -249
  255. package/packages/runtime/src/reducers/debug-reducer.ts +36 -36
  256. package/packages/runtime/src/reducers/index.ts +2 -2
  257. package/packages/runtime/src/reducers/run-state-reducer.ts +269 -269
  258. package/packages/runtime/src/scheduler/agent-registry.ts +132 -132
  259. package/packages/runtime/src/scheduler/agent-roles.ts +109 -109
  260. package/packages/runtime/src/scheduler/index.ts +4 -4
  261. package/packages/runtime/src/scheduler/multi-agent-coordinator.ts +521 -333
  262. package/packages/runtime/src/scheduler/run-journal.ts +62 -62
  263. package/packages/runtime/src/scheduler/scheduler.ts +722 -441
  264. package/packages/runtime/src/verification/index.ts +2 -2
  265. package/packages/runtime/src/verification/verification-compiler.ts +436 -225
  266. package/packages/runtime/src/verification/verification-manifest.ts +252 -192
  267. package/packages/runtime/src/workspace/index.ts +5 -5
  268. package/packages/runtime/src/workspace/strategies/ephemeral-container.ts +126 -121
  269. package/packages/runtime/src/workspace/strategies/git-worktree.ts +79 -77
  270. package/packages/runtime/src/workspace/strategies/inplace.ts +38 -35
  271. package/packages/runtime/src/workspace/workspace-manager.ts +16 -15
  272. package/packages/runtime/tsconfig.json +17 -17
  273. package/vscode-extension/.vscodeignore +7 -7
  274. package/vscode-extension/LICENSE +21 -0
  275. package/vscode-extension/oxe-agents-1.0.0.vsix +0 -0
  276. package/vscode-extension/oxe-agents-1.4.0.vsix +0 -0
  277. package/vscode-extension/package.json +184 -184
  278. package/vscode-extension/src/extension.js +310 -310
  279. package/vscode-extension/src/shared/contextLoader.js +137 -137
  280. package/vscode-extension/src/shared/contractBuilder.js +159 -159
  281. package/vscode-extension/src/shared/stateReader.js +101 -101
@@ -1,930 +1,952 @@
1
- {
2
- "contract_version": "2.0.0",
3
- "mode_references": {
4
- "discovery": "oxe/workflows/references/reasoning-discovery.md",
5
- "planning": "oxe/workflows/references/reasoning-planning.md",
6
- "execution": "oxe/workflows/references/reasoning-execution.md",
7
- "review": "oxe/workflows/references/reasoning-review.md",
8
- "status": "oxe/workflows/references/reasoning-status.md"
9
- },
10
- "mode_guidance": {
11
- "discovery": [
12
- "Explorar o repositório e os artefatos antes de perguntar.",
13
- "Separar fatos confirmados, inferências e lacunas.",
14
- "Perguntar apenas ambiguidades que mudem a decisão ou o artefato final."
15
- ],
16
- "planning": [
17
- "Fechar interfaces, validação, riscos, rollback e assumptions relevantes.",
18
- "Não deixar decisões importantes para quem implementar depois.",
19
- "Explicitar confiança e condição objetiva para replanejar."
20
- ],
21
- "execution": [
22
- "Fazer reconhecimento curto antes de editar ou executar mutações.",
23
- "Trabalhar no menor write set viável e validar após cada fatia relevante.",
24
- "Parar e explicitar o bloqueio quando houver hipótese crítica não verificada."
25
- ],
26
- "review": [
27
- "Apresentar findings primeiro, ordenados por severidade e evidência.",
28
- "Separar bug, risco, regressão e lacuna de teste.",
29
- "Se não houver findings, declarar isso explicitamente e listar riscos residuais."
30
- ],
31
- "status": [
32
- "Responder com leitura curta e orientada a decisão.",
33
- "Dar uma recomendação única e justificar o motivo.",
34
- "Explicitar a confiança quando o estado estiver incompleto ou ambíguo."
35
- ]
36
- },
37
- "mode_defaults": {
38
- "discovery": {
39
- "question_policy": "explore_first",
40
- "output_contract": "situational",
41
- "tool_profile": "read_heavy",
42
- "confidence_policy": "explicit",
43
- "output_sections": [
44
- "Fatos",
45
- "Inferências",
46
- "Lacunas",
47
- "Próximo passo"
48
- ],
49
- "freshness_policy": {
50
- "pack_max_age_hours": 12,
51
- "artifact_max_age_hours": 168
52
- },
53
- "fallback_policy": "read_direct_with_warning",
54
- "blocking_conditions": [
55
- "missing:state"
56
- ]
57
- },
58
- "planning": {
59
- "question_policy": "ask_high_impact_only",
60
- "output_contract": "plan",
61
- "tool_profile": "mixed",
62
- "confidence_policy": "rubric",
63
- "output_sections": [
64
- "Objetivo",
65
- "Plano",
66
- "Validação",
67
- "Riscos",
68
- "Assumptions",
69
- "Confiança"
70
- ],
71
- "freshness_policy": {
72
- "pack_max_age_hours": 8,
73
- "artifact_max_age_hours": 120
74
- },
75
- "fallback_policy": "read_direct_with_warning",
76
- "blocking_conditions": [
77
- "missing:state",
78
- "missing:spec"
79
- ]
80
- },
81
- "execution": {
82
- "question_policy": "ask_high_impact_only",
83
- "output_contract": "execution",
84
- "tool_profile": "write_bounded",
85
- "confidence_policy": "explicit",
86
- "output_sections": [
87
- "Contexto lido",
88
- "Alvo da mudança",
89
- "Validação executada",
90
- "Resultado",
91
- "Próximo passo"
92
- ],
93
- "freshness_policy": {
94
- "pack_max_age_hours": 4,
95
- "artifact_max_age_hours": 72
96
- },
97
- "fallback_policy": "read_direct_with_warning",
98
- "blocking_conditions": [
99
- "missing:state",
100
- "missing:plan"
101
- ]
102
- },
103
- "review": {
104
- "question_policy": "none",
105
- "output_contract": "findings",
106
- "tool_profile": "review_heavy",
107
- "confidence_policy": "explicit",
108
- "output_sections": [
109
- "Findings",
110
- "Perguntas abertas",
111
- "Riscos residuais",
112
- "Resumo"
113
- ],
114
- "freshness_policy": {
115
- "pack_max_age_hours": 6,
116
- "artifact_max_age_hours": 120
117
- },
118
- "fallback_policy": "read_direct_with_warning",
119
- "blocking_conditions": [
120
- "missing:state"
121
- ]
122
- },
123
- "status": {
124
- "question_policy": "none",
125
- "output_contract": "routing",
126
- "tool_profile": "read_heavy",
127
- "confidence_policy": "explicit",
128
- "output_sections": [
129
- "Leitura atual",
130
- "Recomendação",
131
- "Motivo",
132
- "Confiança"
133
- ],
134
- "freshness_policy": {
135
- "pack_max_age_hours": 6,
136
- "artifact_max_age_hours": 168
137
- },
138
- "fallback_policy": "read_direct_with_warning",
139
- "blocking_conditions": [
140
- "missing:state"
141
- ]
142
- }
143
- },
144
- "workflows": {
145
- "ask": {
146
- "reasoning_mode": "discovery",
147
- "required_artifacts": [
148
- "state"
149
- ],
150
- "optional_artifacts": [
151
- "session_manifest",
152
- "spec",
153
- "plan",
154
- "quick",
155
- "runtime",
156
- "checkpoints",
157
- "verify",
158
- "summary",
159
- "investigations_index",
160
- "project_summary",
161
- "session_summary",
162
- "phase_summary",
163
- "codebase_overview",
164
- "codebase_stack",
165
- "global_lessons",
166
- "sessions_index",
167
- "azure_inventory"
168
- ],
169
- "context_tiers": {
170
- "minimal": [
171
- "state",
172
- "session_summary",
173
- "phase_summary"
174
- ],
175
- "standard": [
176
- "state",
177
- "session_summary",
178
- "phase_summary",
179
- "spec",
180
- "plan",
181
- "quick",
182
- "runtime",
183
- "checkpoints",
184
- "verify",
185
- "summary"
186
- ],
187
- "full": [
188
- "state",
189
- "session_manifest",
190
- "spec",
191
- "plan",
192
- "quick",
193
- "runtime",
194
- "checkpoints",
195
- "verify",
196
- "summary",
197
- "investigations_index",
198
- "project_summary",
199
- "session_summary",
200
- "phase_summary",
201
- "codebase_overview",
202
- "codebase_stack",
203
- "global_lessons",
204
- "sessions_index",
205
- "azure_inventory"
206
- ]
207
- },
208
- "extraction_intent": "status_read"
209
- },
210
- "capabilities": {
211
- "reasoning_mode": "execution",
212
- "tool_profile": "mixed",
213
- "required_artifacts": [
214
- "state",
215
- "capabilities_index"
216
- ],
217
- "optional_artifacts": [
218
- "project_summary",
219
- "session_summary",
220
- "runtime",
221
- "active_run"
222
- ],
223
- "extraction_intent": "execution_input"
224
- },
225
- "checkpoint": {
226
- "reasoning_mode": "execution",
227
- "required_artifacts": [
228
- "state",
229
- "checkpoints"
230
- ],
231
- "optional_artifacts": [
232
- "runtime",
233
- "active_run",
234
- "session_manifest",
235
- "phase_summary"
236
- ],
237
- "extraction_intent": "execution_input"
238
- },
239
- "compact": {
240
- "reasoning_mode": "discovery",
241
- "output_contract": "execution",
242
- "tool_profile": "mixed",
243
- "required_artifacts": [
244
- "state",
245
- "codebase_overview",
246
- "codebase_structure",
247
- "codebase_stack"
248
- ],
249
- "optional_artifacts": [
250
- "codebase_testing",
251
- "codebase_integrations",
252
- "codebase_concerns",
253
- "project_summary"
254
- ],
255
- "extraction_intent": "status_read"
256
- },
257
- "dashboard": {
258
- "reasoning_mode": "status",
259
- "output_contract": "situational",
260
- "required_artifacts": [
261
- "state",
262
- "phase_summary",
263
- "project_summary"
264
- ],
265
- "optional_artifacts": [
266
- "session_summary",
267
- "plan",
268
- "runtime",
269
- "verify",
270
- "active_run",
271
- "events",
272
- "context_pack_dashboard"
273
- ],
274
- "extraction_intent": "critical_check"
275
- },
276
- "debug": {
277
- "reasoning_mode": "execution",
278
- "required_artifacts": [
279
- "state",
280
- "plan",
281
- "runtime"
282
- ],
283
- "optional_artifacts": [
284
- "verify",
285
- "events",
286
- "active_run",
287
- "project_summary",
288
- "session_summary",
289
- "phase_summary"
290
- ],
291
- "extraction_intent": "execution_input"
292
- },
293
- "discuss": {
294
- "reasoning_mode": "discovery",
295
- "required_artifacts": [
296
- "state"
297
- ],
298
- "optional_artifacts": [
299
- "discuss",
300
- "spec",
301
- "project_summary",
302
- "session_summary",
303
- "phase_summary",
304
- "investigations_index",
305
- "codebase_overview"
306
- ],
307
- "extraction_intent": "status_read"
308
- },
309
- "execute": {
310
- "reasoning_mode": "execution",
311
- "required_artifacts": [
312
- "state",
313
- "runtime",
314
- "checkpoints"
315
- ],
316
- "optional_artifacts": [
317
- "plan",
318
- "quick",
319
- "active_run",
320
- "events",
321
- "verify",
322
- "summary",
323
- "session_summary",
324
- "phase_summary",
325
- "project_summary",
326
- "capabilities_index",
327
- "azure_inventory"
328
- ],
329
- "context_tiers": {
330
- "minimal": [
331
- "state",
332
- "runtime",
333
- "checkpoints",
334
- "plan",
335
- "quick",
336
- "phase_summary"
337
- ],
338
- "standard": [
339
- "state",
340
- "runtime",
341
- "checkpoints",
342
- "plan",
343
- "quick",
344
- "phase_summary",
345
- "session_summary",
346
- "active_run",
347
- "events",
348
- "verify",
349
- "summary"
350
- ],
351
- "full": [
352
- "state",
353
- "runtime",
354
- "checkpoints",
355
- "plan",
356
- "quick",
357
- "active_run",
358
- "events",
359
- "verify",
360
- "summary",
361
- "session_summary",
362
- "phase_summary",
363
- "project_summary",
364
- "capabilities_index",
365
- "azure_inventory"
366
- ]
367
- },
368
- "blocking_conditions": [
369
- "missing:state",
370
- "missing:plan_or_quick"
371
- ],
372
- "extraction_intent": "execution_input"
373
- },
374
- "forensics": {
375
- "reasoning_mode": "execution",
376
- "required_artifacts": [
377
- "state",
378
- "runtime",
379
- "events"
380
- ],
381
- "optional_artifacts": [
382
- "plan",
383
- "verify",
384
- "summary",
385
- "active_run",
386
- "session_summary",
387
- "phase_summary",
388
- "project_summary"
389
- ],
390
- "extraction_intent": "execution_input"
391
- },
392
- "help": {
393
- "reasoning_mode": "status",
394
- "required_artifacts": [
395
- "state"
396
- ],
397
- "optional_artifacts": [
398
- "phase_summary",
399
- "project_summary",
400
- "session_summary",
401
- "plan",
402
- "runtime"
403
- ],
404
- "extraction_intent": "critical_check"
405
- },
406
- "loop": {
407
- "reasoning_mode": "execution",
408
- "required_artifacts": [
409
- "state",
410
- "plan",
411
- "runtime",
412
- "active_run"
413
- ],
414
- "optional_artifacts": [
415
- "events",
416
- "checkpoints",
417
- "verify",
418
- "phase_summary",
419
- "session_summary"
420
- ],
421
- "extraction_intent": "execution_input"
422
- },
423
- "milestone": {
424
- "reasoning_mode": "planning",
425
- "output_contract": "execution",
426
- "required_artifacts": [
427
- "state"
428
- ],
429
- "optional_artifacts": [
430
- "project_summary",
431
- "global_lessons",
432
- "session_summary",
433
- "phase_summary"
434
- ],
435
- "extraction_intent": "planning_input"
436
- },
437
- "next": {
438
- "reasoning_mode": "status",
439
- "required_artifacts": [
440
- "state",
441
- "phase_summary"
442
- ],
443
- "optional_artifacts": [
444
- "project_summary",
445
- "session_summary",
446
- "plan",
447
- "runtime",
448
- "verify"
449
- ],
450
- "extraction_intent": "critical_check"
451
- },
452
- "obs": {
453
- "reasoning_mode": "execution",
454
- "required_artifacts": [
455
- "state"
456
- ],
457
- "optional_artifacts": [
458
- "project_summary",
459
- "session_summary",
460
- "phase_summary",
461
- "plan",
462
- "runtime"
463
- ],
464
- "extraction_intent": "execution_input"
465
- },
466
- "oxe": {
467
- "reasoning_mode": "status",
468
- "required_artifacts": [
469
- "state"
470
- ],
471
- "optional_artifacts": [
472
- "phase_summary",
473
- "project_summary",
474
- "session_summary",
475
- "plan",
476
- "runtime"
477
- ],
478
- "extraction_intent": "critical_check"
479
- },
480
- "plan-agent": {
481
- "reasoning_mode": "planning",
482
- "required_artifacts": [
483
- "state",
484
- "spec"
485
- ],
486
- "optional_artifacts": [
487
- "discuss",
488
- "plan_agents",
489
- "investigations_index",
490
- "project_summary",
491
- "session_summary",
492
- "phase_summary",
493
- "capabilities_index"
494
- ],
495
- "extraction_intent": "planning_input"
496
- },
497
- "plan": {
498
- "reasoning_mode": "planning",
499
- "required_artifacts": [
500
- "state",
501
- "spec"
502
- ],
503
- "optional_artifacts": [
504
- "discuss",
505
- "investigations_index",
506
- "project_summary",
507
- "session_summary",
508
- "phase_summary",
509
- "global_lessons",
510
- "capabilities_index",
511
- "azure_inventory",
512
- "checkpoints",
513
- "calibration"
514
- ],
515
- "context_tiers": {
516
- "minimal": [
517
- "state",
518
- "spec",
519
- "session_summary",
520
- "phase_summary"
521
- ],
522
- "standard": [
523
- "state",
524
- "spec",
525
- "session_summary",
526
- "phase_summary",
527
- "discuss",
528
- "investigations_index",
529
- "project_summary",
530
- "global_lessons",
531
- "capabilities_index",
532
- "checkpoints"
533
- ],
534
- "full": [
535
- "state",
536
- "spec",
537
- "discuss",
538
- "investigations_index",
539
- "project_summary",
540
- "session_summary",
541
- "phase_summary",
542
- "global_lessons",
543
- "capabilities_index",
544
- "azure_inventory",
545
- "checkpoints",
546
- "calibration"
547
- ]
548
- },
549
- "extraction_intent": "planning_input"
550
- },
551
- "project": {
552
- "reasoning_mode": "planning",
553
- "output_contract": "routing",
554
- "required_artifacts": [
555
- "state",
556
- "project_summary"
557
- ],
558
- "optional_artifacts": [
559
- "session_summary",
560
- "phase_summary",
561
- "global_lessons"
562
- ],
563
- "extraction_intent": "planning_input"
564
- },
565
- "quick": {
566
- "reasoning_mode": "planning",
567
- "required_artifacts": [
568
- "state",
569
- "spec"
570
- ],
571
- "optional_artifacts": [
572
- "plan",
573
- "project_summary",
574
- "session_summary",
575
- "phase_summary",
576
- "capabilities_index"
577
- ],
578
- "extraction_intent": "planning_input"
579
- },
580
- "research": {
581
- "reasoning_mode": "discovery",
582
- "required_artifacts": [
583
- "state"
584
- ],
585
- "optional_artifacts": [
586
- "investigations_index",
587
- "spec",
588
- "plan",
589
- "project_summary",
590
- "session_summary",
591
- "phase_summary",
592
- "codebase_overview",
593
- "codebase_integrations",
594
- "azure_inventory"
595
- ],
596
- "extraction_intent": "status_read"
597
- },
598
- "retro": {
599
- "reasoning_mode": "review",
600
- "required_artifacts": [
601
- "state",
602
- "verify"
603
- ],
604
- "optional_artifacts": [
605
- "summary",
606
- "global_lessons",
607
- "project_summary",
608
- "session_summary",
609
- "phase_summary",
610
- "lessons_metrics",
611
- "spec"
612
- ],
613
- "extraction_intent": "verification",
614
- "quality_contract_aware": true
615
- },
616
- "review-pr": {
617
- "reasoning_mode": "review",
618
- "required_artifacts": [
619
- "state",
620
- "plan"
621
- ],
622
- "optional_artifacts": [
623
- "verify",
624
- "summary",
625
- "phase_summary",
626
- "session_summary",
627
- "project_summary",
628
- "codebase_testing",
629
- "codebase_concerns"
630
- ],
631
- "extraction_intent": "verification"
632
- },
633
- "route": {
634
- "reasoning_mode": "status",
635
- "required_artifacts": [
636
- "state",
637
- "phase_summary"
638
- ],
639
- "optional_artifacts": [
640
- "project_summary",
641
- "session_summary",
642
- "plan",
643
- "runtime",
644
- "verify"
645
- ],
646
- "extraction_intent": "critical_check"
647
- },
648
- "scan": {
649
- "reasoning_mode": "discovery",
650
- "required_artifacts": [
651
- "state"
652
- ],
653
- "optional_artifacts": [
654
- "codebase_overview",
655
- "codebase_stack",
656
- "codebase_structure",
657
- "codebase_testing",
658
- "codebase_integrations",
659
- "codebase_concerns",
660
- "project_summary"
661
- ],
662
- "extraction_intent": "status_read"
663
- },
664
- "security": {
665
- "reasoning_mode": "review",
666
- "required_artifacts": [
667
- "state"
668
- ],
669
- "optional_artifacts": [
670
- "plan",
671
- "verify",
672
- "codebase_stack",
673
- "codebase_integrations",
674
- "codebase_concerns",
675
- "project_summary",
676
- "session_summary"
677
- ],
678
- "extraction_intent": "verification"
679
- },
680
- "session": {
681
- "reasoning_mode": "execution",
682
- "required_artifacts": [
683
- "state",
684
- "sessions_index"
685
- ],
686
- "optional_artifacts": [
687
- "session_manifest",
688
- "project_summary",
689
- "phase_summary"
690
- ],
691
- "extraction_intent": "execution_input"
692
- },
693
- "ship": {
694
- "reasoning_mode": "execution",
695
- "required_artifacts": [
696
- "state"
697
- ],
698
- "optional_artifacts": [
699
- "spec",
700
- "quick",
701
- "plan",
702
- "verify",
703
- "summary",
704
- "runtime",
705
- "active_run",
706
- "phase_summary",
707
- "session_summary",
708
- "project_summary"
709
- ],
710
- "blocking_conditions": [
711
- "missing:verify_without_override",
712
- "missing:tracked_changes"
713
- ],
714
- "extraction_intent": "execution_input"
715
- },
716
- "skill": {
717
- "reasoning_mode": "execution",
718
- "required_artifacts": [
719
- "state"
720
- ],
721
- "optional_artifacts": [
722
- "capabilities_index",
723
- "project_summary",
724
- "session_summary",
725
- "phase_summary"
726
- ],
727
- "extraction_intent": "execution_input"
728
- },
729
- "spec": {
730
- "reasoning_mode": "discovery",
731
- "required_artifacts": [
732
- "state"
733
- ],
734
- "optional_artifacts": [
735
- "discuss",
736
- "spec",
737
- "investigations_index",
738
- "project_summary",
739
- "session_summary",
740
- "phase_summary",
741
- "codebase_overview",
742
- "codebase_integrations",
743
- "global_lessons",
744
- "azure_inventory",
745
- "lessons_metrics"
746
- ],
747
- "extraction_intent": "planning_input",
748
- "quality_contract_aware": true
749
- },
750
- "ui-review": {
751
- "reasoning_mode": "review",
752
- "required_artifacts": [
753
- "state",
754
- "spec",
755
- "verify"
756
- ],
757
- "optional_artifacts": [
758
- "plan",
759
- "summary",
760
- "project_summary",
761
- "session_summary",
762
- "phase_summary"
763
- ],
764
- "extraction_intent": "verification"
765
- },
766
- "ui-spec": {
767
- "reasoning_mode": "planning",
768
- "required_artifacts": [
769
- "state",
770
- "spec"
771
- ],
772
- "optional_artifacts": [
773
- "plan",
774
- "project_summary",
775
- "session_summary",
776
- "phase_summary"
777
- ],
778
- "extraction_intent": "planning_input"
779
- },
780
- "update": {
781
- "reasoning_mode": "execution",
782
- "required_artifacts": [
783
- "state",
784
- "project_summary"
785
- ],
786
- "optional_artifacts": [
787
- "runtime_semantics_manifest",
788
- "copilot_manifest",
789
- "phase_summary"
790
- ],
791
- "extraction_intent": "execution_input"
792
- },
793
- "validate-gaps": {
794
- "reasoning_mode": "review",
795
- "required_artifacts": [
796
- "state",
797
- "plan",
798
- "verify"
799
- ],
800
- "optional_artifacts": [
801
- "summary",
802
- "codebase_testing",
803
- "project_summary",
804
- "phase_summary"
805
- ],
806
- "extraction_intent": "verification"
807
- },
808
- "verify-audit": {
809
- "reasoning_mode": "review",
810
- "question_policy": "none",
811
- "output_contract": "findings",
812
- "tool_profile": "review_heavy",
813
- "confidence_policy": "explicit",
814
- "required_artifacts": [
815
- "state",
816
- "spec",
817
- "verify"
818
- ],
819
- "optional_artifacts": [
820
- "session_summary",
821
- "phase_summary"
822
- ],
823
- "extraction_intent": "verification",
824
- "auditor_excluded": [
825
- "plan",
826
- "runtime",
827
- "active_run",
828
- "events"
829
- ]
830
- },
831
- "verify": {
832
- "reasoning_mode": "review",
833
- "required_artifacts": [
834
- "state",
835
- "plan",
836
- "runtime",
837
- "verify"
838
- ],
839
- "optional_artifacts": [
840
- "quick",
841
- "active_run",
842
- "events",
843
- "summary",
844
- "investigations_index",
845
- "project_summary",
846
- "session_summary",
847
- "phase_summary",
848
- "codebase_testing",
849
- "checkpoints",
850
- "azure_inventory",
851
- "calibration"
852
- ],
853
- "context_tiers": {
854
- "minimal": [
855
- "state",
856
- "plan",
857
- "runtime",
858
- "verify",
859
- "phase_summary"
860
- ],
861
- "standard": [
862
- "state",
863
- "plan",
864
- "runtime",
865
- "verify",
866
- "phase_summary",
867
- "session_summary",
868
- "active_run",
869
- "events",
870
- "summary",
871
- "checkpoints"
872
- ],
873
- "full": [
874
- "state",
875
- "plan",
876
- "runtime",
877
- "verify",
878
- "quick",
879
- "active_run",
880
- "events",
881
- "summary",
882
- "investigations_index",
883
- "project_summary",
884
- "session_summary",
885
- "phase_summary",
886
- "codebase_testing",
887
- "checkpoints",
888
- "azure_inventory",
889
- "calibration"
890
- ]
891
- },
892
- "extraction_intent": "verification",
893
- "auditor_artifacts": [
894
- "state",
895
- "spec",
896
- "verify"
897
- ],
898
- "auditor_excluded": [
899
- "runtime",
900
- "plan"
901
- ]
902
- },
903
- "workflow-authoring": {
904
- "reasoning_mode": "review",
905
- "required_artifacts": [
906
- "state"
907
- ],
908
- "optional_artifacts": [
909
- "spec",
910
- "plan",
911
- "project_summary",
912
- "codebase_overview",
913
- "codebase_stack"
914
- ],
915
- "extraction_intent": "verification"
916
- },
917
- "workstream": {
918
- "reasoning_mode": "execution",
919
- "required_artifacts": [
920
- "state"
921
- ],
922
- "optional_artifacts": [
923
- "project_summary",
924
- "session_summary",
925
- "phase_summary"
926
- ],
927
- "extraction_intent": "execution_input"
928
- }
929
- }
930
- }
1
+ {
2
+ "contract_version": "2.0.0",
3
+ "mode_references": {
4
+ "discovery": "oxe/workflows/references/reasoning-discovery.md",
5
+ "planning": "oxe/workflows/references/reasoning-planning.md",
6
+ "execution": "oxe/workflows/references/reasoning-execution.md",
7
+ "review": "oxe/workflows/references/reasoning-review.md",
8
+ "status": "oxe/workflows/references/reasoning-status.md"
9
+ },
10
+ "mode_guidance": {
11
+ "discovery": [
12
+ "Explorar o repositório e os artefatos antes de perguntar.",
13
+ "Separar fatos confirmados, inferências e lacunas.",
14
+ "Perguntar apenas ambiguidades que mudem a decisão ou o artefato final."
15
+ ],
16
+ "planning": [
17
+ "Fechar interfaces, validação, riscos, rollback e assumptions relevantes.",
18
+ "Não deixar decisões importantes para quem implementar depois.",
19
+ "Explicitar confiança e condição objetiva para replanejar."
20
+ ],
21
+ "execution": [
22
+ "Fazer reconhecimento curto antes de editar ou executar mutações.",
23
+ "Trabalhar no menor write set viável e validar após cada fatia relevante.",
24
+ "Parar e explicitar o bloqueio quando houver hipótese crítica não verificada."
25
+ ],
26
+ "review": [
27
+ "Apresentar findings primeiro, ordenados por severidade e evidência.",
28
+ "Separar bug, risco, regressão e lacuna de teste.",
29
+ "Se não houver findings, declarar isso explicitamente e listar riscos residuais."
30
+ ],
31
+ "status": [
32
+ "Responder com leitura curta e orientada a decisão.",
33
+ "Dar uma recomendação única e justificar o motivo.",
34
+ "Explicitar a confiança quando o estado estiver incompleto ou ambíguo."
35
+ ]
36
+ },
37
+ "mode_defaults": {
38
+ "discovery": {
39
+ "question_policy": "explore_first",
40
+ "output_contract": "situational",
41
+ "tool_profile": "read_heavy",
42
+ "confidence_policy": "explicit",
43
+ "output_sections": [
44
+ "Fatos",
45
+ "Inferências",
46
+ "Lacunas",
47
+ "Próximo passo"
48
+ ],
49
+ "freshness_policy": {
50
+ "pack_max_age_hours": 12,
51
+ "artifact_max_age_hours": 168
52
+ },
53
+ "fallback_policy": "read_direct_with_warning",
54
+ "blocking_conditions": [
55
+ "missing:state"
56
+ ]
57
+ },
58
+ "planning": {
59
+ "question_policy": "ask_high_impact_only",
60
+ "output_contract": "plan",
61
+ "tool_profile": "mixed",
62
+ "confidence_policy": "rubric",
63
+ "output_sections": [
64
+ "Objetivo",
65
+ "Plano",
66
+ "Validação",
67
+ "Riscos",
68
+ "Assumptions",
69
+ "Confiança"
70
+ ],
71
+ "freshness_policy": {
72
+ "pack_max_age_hours": 8,
73
+ "artifact_max_age_hours": 120
74
+ },
75
+ "fallback_policy": "read_direct_with_warning",
76
+ "blocking_conditions": [
77
+ "missing:state",
78
+ "missing:spec"
79
+ ]
80
+ },
81
+ "execution": {
82
+ "question_policy": "ask_high_impact_only",
83
+ "output_contract": "execution",
84
+ "tool_profile": "write_bounded",
85
+ "confidence_policy": "explicit",
86
+ "output_sections": [
87
+ "Contexto lido",
88
+ "Alvo da mudança",
89
+ "Validação executada",
90
+ "Resultado",
91
+ "Próximo passo"
92
+ ],
93
+ "freshness_policy": {
94
+ "pack_max_age_hours": 4,
95
+ "artifact_max_age_hours": 72
96
+ },
97
+ "fallback_policy": "read_direct_with_warning",
98
+ "blocking_conditions": [
99
+ "missing:state",
100
+ "missing:plan"
101
+ ]
102
+ },
103
+ "review": {
104
+ "question_policy": "none",
105
+ "output_contract": "findings",
106
+ "tool_profile": "review_heavy",
107
+ "confidence_policy": "explicit",
108
+ "output_sections": [
109
+ "Findings",
110
+ "Perguntas abertas",
111
+ "Riscos residuais",
112
+ "Resumo"
113
+ ],
114
+ "freshness_policy": {
115
+ "pack_max_age_hours": 6,
116
+ "artifact_max_age_hours": 120
117
+ },
118
+ "fallback_policy": "read_direct_with_warning",
119
+ "blocking_conditions": [
120
+ "missing:state"
121
+ ]
122
+ },
123
+ "status": {
124
+ "question_policy": "none",
125
+ "output_contract": "routing",
126
+ "tool_profile": "read_heavy",
127
+ "confidence_policy": "explicit",
128
+ "output_sections": [
129
+ "Leitura atual",
130
+ "Recomendação",
131
+ "Motivo",
132
+ "Confiança"
133
+ ],
134
+ "freshness_policy": {
135
+ "pack_max_age_hours": 6,
136
+ "artifact_max_age_hours": 168
137
+ },
138
+ "fallback_policy": "read_direct_with_warning",
139
+ "blocking_conditions": [
140
+ "missing:state"
141
+ ]
142
+ }
143
+ },
144
+ "workflows": {
145
+ "ask": {
146
+ "reasoning_mode": "discovery",
147
+ "required_artifacts": [
148
+ "state"
149
+ ],
150
+ "optional_artifacts": [
151
+ "session_manifest",
152
+ "spec",
153
+ "plan",
154
+ "quick",
155
+ "runtime",
156
+ "checkpoints",
157
+ "verify",
158
+ "summary",
159
+ "investigations_index",
160
+ "project_summary",
161
+ "session_summary",
162
+ "phase_summary",
163
+ "codebase_overview",
164
+ "codebase_stack",
165
+ "global_lessons",
166
+ "sessions_index",
167
+ "azure_inventory"
168
+ ],
169
+ "context_tiers": {
170
+ "minimal": [
171
+ "state",
172
+ "session_summary",
173
+ "phase_summary"
174
+ ],
175
+ "standard": [
176
+ "state",
177
+ "session_summary",
178
+ "phase_summary",
179
+ "spec",
180
+ "plan",
181
+ "quick",
182
+ "runtime",
183
+ "checkpoints",
184
+ "verify",
185
+ "summary"
186
+ ],
187
+ "full": [
188
+ "state",
189
+ "session_manifest",
190
+ "spec",
191
+ "plan",
192
+ "quick",
193
+ "runtime",
194
+ "checkpoints",
195
+ "verify",
196
+ "summary",
197
+ "investigations_index",
198
+ "project_summary",
199
+ "session_summary",
200
+ "phase_summary",
201
+ "codebase_overview",
202
+ "codebase_stack",
203
+ "global_lessons",
204
+ "sessions_index",
205
+ "azure_inventory"
206
+ ]
207
+ },
208
+ "extraction_intent": "status_read"
209
+ },
210
+ "capabilities": {
211
+ "reasoning_mode": "execution",
212
+ "tool_profile": "mixed",
213
+ "required_artifacts": [
214
+ "state",
215
+ "capabilities_index"
216
+ ],
217
+ "optional_artifacts": [
218
+ "project_summary",
219
+ "session_summary",
220
+ "runtime",
221
+ "active_run"
222
+ ],
223
+ "extraction_intent": "execution_input"
224
+ },
225
+ "checkpoint": {
226
+ "reasoning_mode": "execution",
227
+ "required_artifacts": [
228
+ "state",
229
+ "checkpoints"
230
+ ],
231
+ "optional_artifacts": [
232
+ "runtime",
233
+ "active_run",
234
+ "session_manifest",
235
+ "phase_summary"
236
+ ],
237
+ "extraction_intent": "execution_input"
238
+ },
239
+ "compact": {
240
+ "reasoning_mode": "discovery",
241
+ "output_contract": "execution",
242
+ "tool_profile": "mixed",
243
+ "required_artifacts": [
244
+ "state",
245
+ "codebase_overview",
246
+ "codebase_structure",
247
+ "codebase_stack"
248
+ ],
249
+ "optional_artifacts": [
250
+ "codebase_testing",
251
+ "codebase_integrations",
252
+ "codebase_concerns",
253
+ "project_summary"
254
+ ],
255
+ "extraction_intent": "status_read"
256
+ },
257
+ "dashboard": {
258
+ "reasoning_mode": "status",
259
+ "output_contract": "situational",
260
+ "required_artifacts": [
261
+ "state",
262
+ "phase_summary",
263
+ "project_summary"
264
+ ],
265
+ "optional_artifacts": [
266
+ "session_summary",
267
+ "plan",
268
+ "runtime",
269
+ "verify",
270
+ "active_run",
271
+ "events",
272
+ "context_pack_dashboard"
273
+ ],
274
+ "extraction_intent": "critical_check"
275
+ },
276
+ "debug": {
277
+ "reasoning_mode": "execution",
278
+ "required_artifacts": [
279
+ "state",
280
+ "plan",
281
+ "runtime"
282
+ ],
283
+ "optional_artifacts": [
284
+ "verify",
285
+ "events",
286
+ "active_run",
287
+ "project_summary",
288
+ "session_summary",
289
+ "phase_summary"
290
+ ],
291
+ "extraction_intent": "execution_input"
292
+ },
293
+ "discuss": {
294
+ "reasoning_mode": "discovery",
295
+ "required_artifacts": [
296
+ "state"
297
+ ],
298
+ "optional_artifacts": [
299
+ "discuss",
300
+ "spec",
301
+ "project_summary",
302
+ "session_summary",
303
+ "phase_summary",
304
+ "investigations_index",
305
+ "codebase_overview"
306
+ ],
307
+ "extraction_intent": "status_read"
308
+ },
309
+ "execute": {
310
+ "reasoning_mode": "execution",
311
+ "runtime_default_commands": [
312
+ "oxe-cc runtime compile --dir <projeto>",
313
+ "oxe-cc runtime project --dir <projeto>"
314
+ ],
315
+ "runtime_primary_artifacts": [
316
+ "ACTIVE-RUN.json",
317
+ ".oxe/runs/<run_id>.json",
318
+ "compiled_graph",
319
+ "canonical_state"
320
+ ],
321
+ "runtime_fallback_note": "Se o runtime não estiver compilado ou falhar por indisponibilidade do pacote, declarar fallback explícito para o fluxo legado antes de mutar.",
322
+ "required_artifacts": [
323
+ "state",
324
+ "runtime",
325
+ "checkpoints"
326
+ ],
327
+ "optional_artifacts": [
328
+ "plan",
329
+ "quick",
330
+ "active_run",
331
+ "events",
332
+ "verify",
333
+ "summary",
334
+ "session_summary",
335
+ "phase_summary",
336
+ "project_summary",
337
+ "capabilities_index",
338
+ "azure_inventory"
339
+ ],
340
+ "context_tiers": {
341
+ "minimal": [
342
+ "state",
343
+ "runtime",
344
+ "checkpoints",
345
+ "plan",
346
+ "quick",
347
+ "phase_summary"
348
+ ],
349
+ "standard": [
350
+ "state",
351
+ "runtime",
352
+ "checkpoints",
353
+ "plan",
354
+ "quick",
355
+ "phase_summary",
356
+ "session_summary",
357
+ "active_run",
358
+ "events",
359
+ "verify",
360
+ "summary"
361
+ ],
362
+ "full": [
363
+ "state",
364
+ "runtime",
365
+ "checkpoints",
366
+ "plan",
367
+ "quick",
368
+ "active_run",
369
+ "events",
370
+ "verify",
371
+ "summary",
372
+ "session_summary",
373
+ "phase_summary",
374
+ "project_summary",
375
+ "capabilities_index",
376
+ "azure_inventory"
377
+ ]
378
+ },
379
+ "blocking_conditions": [
380
+ "missing:state",
381
+ "missing:plan_or_quick"
382
+ ],
383
+ "extraction_intent": "execution_input"
384
+ },
385
+ "forensics": {
386
+ "reasoning_mode": "execution",
387
+ "required_artifacts": [
388
+ "state",
389
+ "runtime",
390
+ "events"
391
+ ],
392
+ "optional_artifacts": [
393
+ "plan",
394
+ "verify",
395
+ "summary",
396
+ "active_run",
397
+ "session_summary",
398
+ "phase_summary",
399
+ "project_summary"
400
+ ],
401
+ "extraction_intent": "execution_input"
402
+ },
403
+ "help": {
404
+ "reasoning_mode": "status",
405
+ "required_artifacts": [
406
+ "state"
407
+ ],
408
+ "optional_artifacts": [
409
+ "phase_summary",
410
+ "project_summary",
411
+ "session_summary",
412
+ "plan",
413
+ "runtime"
414
+ ],
415
+ "extraction_intent": "critical_check"
416
+ },
417
+ "loop": {
418
+ "reasoning_mode": "execution",
419
+ "required_artifacts": [
420
+ "state",
421
+ "plan",
422
+ "runtime",
423
+ "active_run"
424
+ ],
425
+ "optional_artifacts": [
426
+ "events",
427
+ "checkpoints",
428
+ "verify",
429
+ "phase_summary",
430
+ "session_summary"
431
+ ],
432
+ "extraction_intent": "execution_input"
433
+ },
434
+ "milestone": {
435
+ "reasoning_mode": "planning",
436
+ "output_contract": "execution",
437
+ "required_artifacts": [
438
+ "state"
439
+ ],
440
+ "optional_artifacts": [
441
+ "project_summary",
442
+ "global_lessons",
443
+ "session_summary",
444
+ "phase_summary"
445
+ ],
446
+ "extraction_intent": "planning_input"
447
+ },
448
+ "next": {
449
+ "reasoning_mode": "status",
450
+ "required_artifacts": [
451
+ "state",
452
+ "phase_summary"
453
+ ],
454
+ "optional_artifacts": [
455
+ "project_summary",
456
+ "session_summary",
457
+ "plan",
458
+ "runtime",
459
+ "verify"
460
+ ],
461
+ "extraction_intent": "critical_check"
462
+ },
463
+ "obs": {
464
+ "reasoning_mode": "execution",
465
+ "required_artifacts": [
466
+ "state"
467
+ ],
468
+ "optional_artifacts": [
469
+ "project_summary",
470
+ "session_summary",
471
+ "phase_summary",
472
+ "plan",
473
+ "runtime"
474
+ ],
475
+ "extraction_intent": "execution_input"
476
+ },
477
+ "oxe": {
478
+ "reasoning_mode": "status",
479
+ "required_artifacts": [
480
+ "state"
481
+ ],
482
+ "optional_artifacts": [
483
+ "phase_summary",
484
+ "project_summary",
485
+ "session_summary",
486
+ "plan",
487
+ "runtime"
488
+ ],
489
+ "extraction_intent": "critical_check"
490
+ },
491
+ "plan-agent": {
492
+ "reasoning_mode": "planning",
493
+ "required_artifacts": [
494
+ "state",
495
+ "spec"
496
+ ],
497
+ "optional_artifacts": [
498
+ "discuss",
499
+ "plan_agents",
500
+ "investigations_index",
501
+ "project_summary",
502
+ "session_summary",
503
+ "phase_summary",
504
+ "capabilities_index"
505
+ ],
506
+ "extraction_intent": "planning_input"
507
+ },
508
+ "plan": {
509
+ "reasoning_mode": "planning",
510
+ "required_artifacts": [
511
+ "state",
512
+ "spec"
513
+ ],
514
+ "optional_artifacts": [
515
+ "discuss",
516
+ "investigations_index",
517
+ "project_summary",
518
+ "session_summary",
519
+ "phase_summary",
520
+ "global_lessons",
521
+ "capabilities_index",
522
+ "azure_inventory",
523
+ "checkpoints",
524
+ "calibration"
525
+ ],
526
+ "context_tiers": {
527
+ "minimal": [
528
+ "state",
529
+ "spec",
530
+ "session_summary",
531
+ "phase_summary"
532
+ ],
533
+ "standard": [
534
+ "state",
535
+ "spec",
536
+ "session_summary",
537
+ "phase_summary",
538
+ "discuss",
539
+ "investigations_index",
540
+ "project_summary",
541
+ "global_lessons",
542
+ "capabilities_index",
543
+ "checkpoints"
544
+ ],
545
+ "full": [
546
+ "state",
547
+ "spec",
548
+ "discuss",
549
+ "investigations_index",
550
+ "project_summary",
551
+ "session_summary",
552
+ "phase_summary",
553
+ "global_lessons",
554
+ "capabilities_index",
555
+ "azure_inventory",
556
+ "checkpoints",
557
+ "calibration"
558
+ ]
559
+ },
560
+ "extraction_intent": "planning_input"
561
+ },
562
+ "project": {
563
+ "reasoning_mode": "planning",
564
+ "output_contract": "routing",
565
+ "required_artifacts": [
566
+ "state",
567
+ "project_summary"
568
+ ],
569
+ "optional_artifacts": [
570
+ "session_summary",
571
+ "phase_summary",
572
+ "global_lessons"
573
+ ],
574
+ "extraction_intent": "planning_input"
575
+ },
576
+ "quick": {
577
+ "reasoning_mode": "planning",
578
+ "required_artifacts": [
579
+ "state",
580
+ "spec"
581
+ ],
582
+ "optional_artifacts": [
583
+ "plan",
584
+ "project_summary",
585
+ "session_summary",
586
+ "phase_summary",
587
+ "capabilities_index"
588
+ ],
589
+ "extraction_intent": "planning_input"
590
+ },
591
+ "research": {
592
+ "reasoning_mode": "discovery",
593
+ "required_artifacts": [
594
+ "state"
595
+ ],
596
+ "optional_artifacts": [
597
+ "investigations_index",
598
+ "spec",
599
+ "plan",
600
+ "project_summary",
601
+ "session_summary",
602
+ "phase_summary",
603
+ "codebase_overview",
604
+ "codebase_integrations",
605
+ "azure_inventory"
606
+ ],
607
+ "extraction_intent": "status_read"
608
+ },
609
+ "retro": {
610
+ "reasoning_mode": "review",
611
+ "required_artifacts": [
612
+ "state",
613
+ "verify"
614
+ ],
615
+ "optional_artifacts": [
616
+ "summary",
617
+ "global_lessons",
618
+ "project_summary",
619
+ "session_summary",
620
+ "phase_summary",
621
+ "lessons_metrics",
622
+ "spec"
623
+ ],
624
+ "extraction_intent": "verification",
625
+ "quality_contract_aware": true
626
+ },
627
+ "review-pr": {
628
+ "reasoning_mode": "review",
629
+ "required_artifacts": [
630
+ "state",
631
+ "plan"
632
+ ],
633
+ "optional_artifacts": [
634
+ "verify",
635
+ "summary",
636
+ "phase_summary",
637
+ "session_summary",
638
+ "project_summary",
639
+ "codebase_testing",
640
+ "codebase_concerns"
641
+ ],
642
+ "extraction_intent": "verification"
643
+ },
644
+ "route": {
645
+ "reasoning_mode": "status",
646
+ "required_artifacts": [
647
+ "state",
648
+ "phase_summary"
649
+ ],
650
+ "optional_artifacts": [
651
+ "project_summary",
652
+ "session_summary",
653
+ "plan",
654
+ "runtime",
655
+ "verify"
656
+ ],
657
+ "extraction_intent": "critical_check"
658
+ },
659
+ "scan": {
660
+ "reasoning_mode": "discovery",
661
+ "required_artifacts": [
662
+ "state"
663
+ ],
664
+ "optional_artifacts": [
665
+ "codebase_overview",
666
+ "codebase_stack",
667
+ "codebase_structure",
668
+ "codebase_testing",
669
+ "codebase_integrations",
670
+ "codebase_concerns",
671
+ "project_summary"
672
+ ],
673
+ "extraction_intent": "status_read"
674
+ },
675
+ "security": {
676
+ "reasoning_mode": "review",
677
+ "required_artifacts": [
678
+ "state"
679
+ ],
680
+ "optional_artifacts": [
681
+ "plan",
682
+ "verify",
683
+ "codebase_stack",
684
+ "codebase_integrations",
685
+ "codebase_concerns",
686
+ "project_summary",
687
+ "session_summary"
688
+ ],
689
+ "extraction_intent": "verification"
690
+ },
691
+ "session": {
692
+ "reasoning_mode": "execution",
693
+ "required_artifacts": [
694
+ "state",
695
+ "sessions_index"
696
+ ],
697
+ "optional_artifacts": [
698
+ "session_manifest",
699
+ "project_summary",
700
+ "phase_summary"
701
+ ],
702
+ "extraction_intent": "execution_input"
703
+ },
704
+ "ship": {
705
+ "reasoning_mode": "execution",
706
+ "required_artifacts": [
707
+ "state"
708
+ ],
709
+ "optional_artifacts": [
710
+ "spec",
711
+ "quick",
712
+ "plan",
713
+ "verify",
714
+ "summary",
715
+ "runtime",
716
+ "active_run",
717
+ "phase_summary",
718
+ "session_summary",
719
+ "project_summary"
720
+ ],
721
+ "blocking_conditions": [
722
+ "missing:verify_without_override",
723
+ "missing:tracked_changes"
724
+ ],
725
+ "extraction_intent": "execution_input"
726
+ },
727
+ "skill": {
728
+ "reasoning_mode": "execution",
729
+ "required_artifacts": [
730
+ "state"
731
+ ],
732
+ "optional_artifacts": [
733
+ "capabilities_index",
734
+ "project_summary",
735
+ "session_summary",
736
+ "phase_summary"
737
+ ],
738
+ "extraction_intent": "execution_input"
739
+ },
740
+ "spec": {
741
+ "reasoning_mode": "discovery",
742
+ "required_artifacts": [
743
+ "state"
744
+ ],
745
+ "optional_artifacts": [
746
+ "discuss",
747
+ "spec",
748
+ "investigations_index",
749
+ "project_summary",
750
+ "session_summary",
751
+ "phase_summary",
752
+ "codebase_overview",
753
+ "codebase_integrations",
754
+ "global_lessons",
755
+ "azure_inventory",
756
+ "lessons_metrics"
757
+ ],
758
+ "extraction_intent": "planning_input",
759
+ "quality_contract_aware": true
760
+ },
761
+ "ui-review": {
762
+ "reasoning_mode": "review",
763
+ "required_artifacts": [
764
+ "state",
765
+ "spec",
766
+ "verify"
767
+ ],
768
+ "optional_artifacts": [
769
+ "plan",
770
+ "summary",
771
+ "project_summary",
772
+ "session_summary",
773
+ "phase_summary"
774
+ ],
775
+ "extraction_intent": "verification"
776
+ },
777
+ "ui-spec": {
778
+ "reasoning_mode": "planning",
779
+ "required_artifacts": [
780
+ "state",
781
+ "spec"
782
+ ],
783
+ "optional_artifacts": [
784
+ "plan",
785
+ "project_summary",
786
+ "session_summary",
787
+ "phase_summary"
788
+ ],
789
+ "extraction_intent": "planning_input"
790
+ },
791
+ "update": {
792
+ "reasoning_mode": "execution",
793
+ "required_artifacts": [
794
+ "state",
795
+ "project_summary"
796
+ ],
797
+ "optional_artifacts": [
798
+ "runtime_semantics_manifest",
799
+ "copilot_manifest",
800
+ "phase_summary"
801
+ ],
802
+ "extraction_intent": "execution_input"
803
+ },
804
+ "validate-gaps": {
805
+ "reasoning_mode": "review",
806
+ "required_artifacts": [
807
+ "state",
808
+ "plan",
809
+ "verify"
810
+ ],
811
+ "optional_artifacts": [
812
+ "summary",
813
+ "codebase_testing",
814
+ "project_summary",
815
+ "phase_summary"
816
+ ],
817
+ "extraction_intent": "verification"
818
+ },
819
+ "verify-audit": {
820
+ "reasoning_mode": "review",
821
+ "question_policy": "none",
822
+ "output_contract": "findings",
823
+ "tool_profile": "review_heavy",
824
+ "confidence_policy": "explicit",
825
+ "required_artifacts": [
826
+ "state",
827
+ "spec",
828
+ "verify"
829
+ ],
830
+ "optional_artifacts": [
831
+ "session_summary",
832
+ "phase_summary"
833
+ ],
834
+ "extraction_intent": "verification",
835
+ "auditor_excluded": [
836
+ "plan",
837
+ "runtime",
838
+ "active_run",
839
+ "events"
840
+ ]
841
+ },
842
+ "verify": {
843
+ "reasoning_mode": "review",
844
+ "runtime_default_commands": [
845
+ "oxe-cc runtime verify --dir <projeto>",
846
+ "oxe-cc runtime project --dir <projeto>"
847
+ ],
848
+ "runtime_primary_artifacts": [
849
+ ".oxe/runs/<run_id>/verification-manifest.json",
850
+ ".oxe/runs/<run_id>/residual-risk-ledger.json",
851
+ ".oxe/runs/<run_id>/evidence-coverage.json",
852
+ "VERIFY.md projetado"
853
+ ],
854
+ "runtime_fallback_note": "Se runtime verify não estiver disponível, declarar fallback explícito para a verificação manual; se retornar partial, usar os gaps explícitos como backlog da revisão.",
855
+ "required_artifacts": [
856
+ "state",
857
+ "plan",
858
+ "runtime",
859
+ "verify"
860
+ ],
861
+ "optional_artifacts": [
862
+ "quick",
863
+ "active_run",
864
+ "events",
865
+ "summary",
866
+ "investigations_index",
867
+ "project_summary",
868
+ "session_summary",
869
+ "phase_summary",
870
+ "codebase_testing",
871
+ "checkpoints",
872
+ "azure_inventory",
873
+ "calibration"
874
+ ],
875
+ "context_tiers": {
876
+ "minimal": [
877
+ "state",
878
+ "plan",
879
+ "runtime",
880
+ "verify",
881
+ "phase_summary"
882
+ ],
883
+ "standard": [
884
+ "state",
885
+ "plan",
886
+ "runtime",
887
+ "verify",
888
+ "phase_summary",
889
+ "session_summary",
890
+ "active_run",
891
+ "events",
892
+ "summary",
893
+ "checkpoints"
894
+ ],
895
+ "full": [
896
+ "state",
897
+ "plan",
898
+ "runtime",
899
+ "verify",
900
+ "quick",
901
+ "active_run",
902
+ "events",
903
+ "summary",
904
+ "investigations_index",
905
+ "project_summary",
906
+ "session_summary",
907
+ "phase_summary",
908
+ "codebase_testing",
909
+ "checkpoints",
910
+ "azure_inventory",
911
+ "calibration"
912
+ ]
913
+ },
914
+ "extraction_intent": "verification",
915
+ "auditor_artifacts": [
916
+ "state",
917
+ "spec",
918
+ "verify"
919
+ ],
920
+ "auditor_excluded": [
921
+ "runtime",
922
+ "plan"
923
+ ]
924
+ },
925
+ "workflow-authoring": {
926
+ "reasoning_mode": "review",
927
+ "required_artifacts": [
928
+ "state"
929
+ ],
930
+ "optional_artifacts": [
931
+ "spec",
932
+ "plan",
933
+ "project_summary",
934
+ "codebase_overview",
935
+ "codebase_stack"
936
+ ],
937
+ "extraction_intent": "verification"
938
+ },
939
+ "workstream": {
940
+ "reasoning_mode": "execution",
941
+ "required_artifacts": [
942
+ "state"
943
+ ],
944
+ "optional_artifacts": [
945
+ "project_summary",
946
+ "session_summary",
947
+ "phase_summary"
948
+ ],
949
+ "extraction_intent": "execution_input"
950
+ }
951
+ }
952
+ }