@voybio/ace-swarm 0.1.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 (334) hide show
  1. package/CHANGELOG.md +109 -0
  2. package/LICENSE +186 -0
  3. package/README.md +229 -0
  4. package/assets/.agents/ACE/ACE-Init/AGENTS.md +210 -0
  5. package/assets/.agents/ACE/ACE-Init/instructions.md +118 -0
  6. package/assets/.agents/ACE/ACE_coders/AGENTS.md +154 -0
  7. package/assets/.agents/ACE/ACE_coders/INSTRUCTIONS.md +216 -0
  8. package/assets/.agents/ACE/AGENT_REGISTRY.md +70 -0
  9. package/assets/.agents/ACE/AGENT_REGISTRY_7.md +9 -0
  10. package/assets/.agents/ACE/DIRECTIVE_KERNEL.md +234 -0
  11. package/assets/.agents/ACE/UI/AGENTS.md +115 -0
  12. package/assets/.agents/ACE/UI/instructions.md +178 -0
  13. package/assets/.agents/ACE/VOS/ACE_VOS_MISSING_INFO_MATRIX.md +42 -0
  14. package/assets/.agents/ACE/VOS/AGENTS.md +72 -0
  15. package/assets/.agents/ACE/VOS/instructions.md +211 -0
  16. package/assets/.agents/ACE/agent-astgrep/AGENTS.md +123 -0
  17. package/assets/.agents/ACE/agent-astgrep/instructions.md +91 -0
  18. package/assets/.agents/ACE/agent-builder/AGENTS.md +172 -0
  19. package/assets/.agents/ACE/agent-builder/instructions.md +137 -0
  20. package/assets/.agents/ACE/agent-docs/AGENTS.md +159 -0
  21. package/assets/.agents/ACE/agent-docs/instructions.md +133 -0
  22. package/assets/.agents/ACE/agent-eval/AGENTS.md +46 -0
  23. package/assets/.agents/ACE/agent-eval/instructions.md +56 -0
  24. package/assets/.agents/ACE/agent-memory/AGENTS.md +49 -0
  25. package/assets/.agents/ACE/agent-memory/instructions.md +50 -0
  26. package/assets/.agents/ACE/agent-observability/AGENTS.md +46 -0
  27. package/assets/.agents/ACE/agent-observability/instructions.md +50 -0
  28. package/assets/.agents/ACE/agent-ops/AGENTS.md +201 -0
  29. package/assets/.agents/ACE/agent-ops/instructions.md +136 -0
  30. package/assets/.agents/ACE/agent-qa/AGENTS.md +189 -0
  31. package/assets/.agents/ACE/agent-qa/instructions.md +121 -0
  32. package/assets/.agents/ACE/agent-release/AGENTS.md +48 -0
  33. package/assets/.agents/ACE/agent-release/instructions.md +49 -0
  34. package/assets/.agents/ACE/agent-research/AGENTS.md +160 -0
  35. package/assets/.agents/ACE/agent-research/instructions.md +118 -0
  36. package/assets/.agents/ACE/agent-security/AGENTS.md +48 -0
  37. package/assets/.agents/ACE/agent-security/instructions.md +50 -0
  38. package/assets/.agents/ACE/agent-skeptic/AGENTS.md +178 -0
  39. package/assets/.agents/ACE/agent-skeptic/instructions.md +196 -0
  40. package/assets/.agents/ACE/agent-spec/AGENTS.md +169 -0
  41. package/assets/.agents/ACE/agent-spec/instructions.md +116 -0
  42. package/assets/.agents/ACE/orchestrator/AGENTS.md +365 -0
  43. package/assets/.agents/ACE/orchestrator/instructions.md +231 -0
  44. package/assets/.agents/skills/ace-orchestrator/SKILL.md +63 -0
  45. package/assets/.agents/skills/ace-orchestrator/references/engineering-bootstrap-playbook.md +360 -0
  46. package/assets/.agents/skills/astgrep-index/SKILL.md +58 -0
  47. package/assets/.agents/skills/codemunch/SKILL.md +65 -0
  48. package/assets/.agents/skills/codemunch/references/ast-driven-protocol.md +543 -0
  49. package/assets/.agents/skills/codesnipe/SKILL.md +64 -0
  50. package/assets/.agents/skills/codesnipe/references/dual-codebase-playbook.md +671 -0
  51. package/assets/.agents/skills/eval-harness/SKILL.md +203 -0
  52. package/assets/.agents/skills/handoff-lint/SKILL.md +164 -0
  53. package/assets/.agents/skills/incident-commander/SKILL.md +174 -0
  54. package/assets/.agents/skills/landing-review-watcher/SKILL.md +68 -0
  55. package/assets/.agents/skills/memory-curator/SKILL.md +179 -0
  56. package/assets/.agents/skills/problem-triage/SKILL.md +57 -0
  57. package/assets/.agents/skills/problem-triage/agents/openai.yaml +3 -0
  58. package/assets/.agents/skills/release-sentry/SKILL.md +189 -0
  59. package/assets/.agents/skills/risk-quant/SKILL.md +190 -0
  60. package/assets/.agents/skills/schema-forge/SKILL.md +174 -0
  61. package/assets/.agents/skills/skill-auditor/SKILL.md +52 -0
  62. package/assets/.agents/skills/state-auditor/SKILL.md +182 -0
  63. package/assets/.github/hooks/ace-copilot.json +68 -0
  64. package/assets/agent-state/ACE_WORKFLOW.md +131 -0
  65. package/assets/agent-state/ARTIFACT_MANIFEST.json +5 -0
  66. package/assets/agent-state/AST_GREP_COMMANDS.md +121 -0
  67. package/assets/agent-state/AST_GREP_INDEX.json +13 -0
  68. package/assets/agent-state/AST_GREP_INDEX.md +15 -0
  69. package/assets/agent-state/DECISIONS.md +7 -0
  70. package/assets/agent-state/EVIDENCE_LOG.md +7 -0
  71. package/assets/agent-state/HANDOFF.json +24 -0
  72. package/assets/agent-state/INTERFACE_REGISTRY.md +75 -0
  73. package/assets/agent-state/MODULES/gates/gate-autonomy.json +7 -0
  74. package/assets/agent-state/MODULES/gates/gate-completeness.json +7 -0
  75. package/assets/agent-state/MODULES/gates/gate-correctness.json +7 -0
  76. package/assets/agent-state/MODULES/gates/gate-evaluation.json +7 -0
  77. package/assets/agent-state/MODULES/gates/gate-operability.json +7 -0
  78. package/assets/agent-state/MODULES/gates/gate-security.json +7 -0
  79. package/assets/agent-state/MODULES/gates/gate-typescript-public-surface.json +7 -0
  80. package/assets/agent-state/MODULES/registry.json +41 -0
  81. package/assets/agent-state/MODULES/roles/capability-astgrep.json +49 -0
  82. package/assets/agent-state/MODULES/roles/capability-build.json +39 -0
  83. package/assets/agent-state/MODULES/roles/capability-docs.json +38 -0
  84. package/assets/agent-state/MODULES/roles/capability-eval.json +20 -0
  85. package/assets/agent-state/MODULES/roles/capability-memory.json +20 -0
  86. package/assets/agent-state/MODULES/roles/capability-observability.json +20 -0
  87. package/assets/agent-state/MODULES/roles/capability-ops.json +45 -0
  88. package/assets/agent-state/MODULES/roles/capability-qa.json +40 -0
  89. package/assets/agent-state/MODULES/roles/capability-release.json +21 -0
  90. package/assets/agent-state/MODULES/roles/capability-research.json +44 -0
  91. package/assets/agent-state/MODULES/roles/capability-security.json +21 -0
  92. package/assets/agent-state/MODULES/roles/capability-skeptic.json +48 -0
  93. package/assets/agent-state/MODULES/roles/capability-spec.json +42 -0
  94. package/assets/agent-state/MODULES/schemas/ACE_RUNTIME_PROFILE.schema.json +289 -0
  95. package/assets/agent-state/MODULES/schemas/ARTIFACT_MANIFEST.schema.json +185 -0
  96. package/assets/agent-state/MODULES/schemas/HANDOFF.agent-state.schema.json +124 -0
  97. package/assets/agent-state/MODULES/schemas/HANDOFF.schema.json +55 -0
  98. package/assets/agent-state/MODULES/schemas/RUNTIME_EXECUTOR_SESSION_REGISTRY.schema.json +290 -0
  99. package/assets/agent-state/MODULES/schemas/RUNTIME_TOOL_SPEC_REGISTRY.schema.json +144 -0
  100. package/assets/agent-state/MODULES/schemas/STATUS_EVENT.schema.json +84 -0
  101. package/assets/agent-state/MODULES/schemas/SWARM_HANDOFF.schema.json +138 -0
  102. package/assets/agent-state/MODULES/schemas/TRACKER_SNAPSHOT.schema.json +134 -0
  103. package/assets/agent-state/MODULES/schemas/VERICIFY_BRIDGE_SNAPSHOT.schema.json +157 -0
  104. package/assets/agent-state/MODULES/schemas/VERICIFY_PROCESS_POST_LOG.schema.json +93 -0
  105. package/assets/agent-state/MODULES/schemas/WORKSPACE_SESSION_REGISTRY.schema.json +133 -0
  106. package/assets/agent-state/PROVENANCE_LOG.md +28 -0
  107. package/assets/agent-state/QUALITY_GATES.md +15 -0
  108. package/assets/agent-state/RISKS.md +8 -0
  109. package/assets/agent-state/SCOPE.md +20 -0
  110. package/assets/agent-state/SKILL_CATALOG.md +48 -0
  111. package/assets/agent-state/STATUS.md +8 -0
  112. package/assets/agent-state/STATUS_EVENTS.ndjson +1 -0
  113. package/assets/agent-state/TASK.md +18 -0
  114. package/assets/agent-state/TEAL_CONFIG.md +117 -0
  115. package/assets/agent-state/handoff-registry.json +5 -0
  116. package/assets/agent-state/index-fingerprints.json +7 -0
  117. package/assets/agent-state/index.json +32 -0
  118. package/assets/agent-state/run-ledger.json +5 -0
  119. package/assets/agent-state/runtime-executor-sessions.json +5 -0
  120. package/assets/agent-state/runtime-tool-specs.json +5 -0
  121. package/assets/agent-state/runtime-workspaces.json +5 -0
  122. package/assets/agent-state/todo-state.json +7 -0
  123. package/assets/agent-state/tracker-snapshot.json +7 -0
  124. package/assets/agent-state/vericify/ace-bridge.json +60 -0
  125. package/assets/agent-state/vericify/process-posts.json +5 -0
  126. package/assets/instructions/ACE.instructions.md +187 -0
  127. package/assets/instructions/ACE_Coder.instructions.md +146 -0
  128. package/assets/instructions/ACE_UI.instructions.md +178 -0
  129. package/assets/instructions/ACE_VOS.instructions.md +211 -0
  130. package/assets/scripts/ace-hook-dispatch.mjs +538 -0
  131. package/assets/scripts/bootstrap-workspace.sh +27 -0
  132. package/assets/scripts/copilot-hook-dispatch.mjs +3 -0
  133. package/assets/scripts/eval-harness.sh +68 -0
  134. package/assets/scripts/render-mcp-configs.sh +396 -0
  135. package/assets/tasks/README.md +48 -0
  136. package/assets/tasks/SWARM_HANDOFF.example.json +53 -0
  137. package/assets/tasks/SWARM_HANDOFF.example_ui_to_coders.json +55 -0
  138. package/assets/tasks/SWARM_HANDOFF.example_vos_to_ui.json +55 -0
  139. package/assets/tasks/SWARM_HANDOFF.template.json +52 -0
  140. package/assets/tasks/cli_work_split.md +22 -0
  141. package/assets/tasks/lessons.md +17 -0
  142. package/assets/tasks/role_tasks.md +206 -0
  143. package/assets/tasks/todo.md +23 -0
  144. package/dist/ace-autonomy.d.ts +137 -0
  145. package/dist/ace-autonomy.js +472 -0
  146. package/dist/ace-context.d.ts +29 -0
  147. package/dist/ace-context.js +240 -0
  148. package/dist/ace-internal-tools.d.ts +8 -0
  149. package/dist/ace-internal-tools.js +76 -0
  150. package/dist/ace-server-instructions.d.ts +12 -0
  151. package/dist/ace-server-instructions.js +324 -0
  152. package/dist/agent-runtime/role-adapters.d.ts +29 -0
  153. package/dist/agent-runtime/role-adapters.js +573 -0
  154. package/dist/astgrep-index.d.ts +24 -0
  155. package/dist/astgrep-index.js +476 -0
  156. package/dist/cli.d.ts +3 -0
  157. package/dist/cli.js +591 -0
  158. package/dist/git-ops.d.ts +53 -0
  159. package/dist/git-ops.js +238 -0
  160. package/dist/handoff-registry.d.ts +71 -0
  161. package/dist/handoff-registry.js +422 -0
  162. package/dist/helpers.d.ts +126 -0
  163. package/dist/helpers.js +1687 -0
  164. package/dist/index-store.d.ts +51 -0
  165. package/dist/index-store.js +328 -0
  166. package/dist/index.d.ts +3 -0
  167. package/dist/index.js +7 -0
  168. package/dist/internal-tool-runtime.d.ts +21 -0
  169. package/dist/internal-tool-runtime.js +136 -0
  170. package/dist/job-scheduler.d.ts +175 -0
  171. package/dist/job-scheduler.js +1217 -0
  172. package/dist/kanban.d.ts +27 -0
  173. package/dist/kanban.js +339 -0
  174. package/dist/local-model-runtime.d.ts +40 -0
  175. package/dist/local-model-runtime.js +174 -0
  176. package/dist/model-bridge.d.ts +54 -0
  177. package/dist/model-bridge.js +587 -0
  178. package/dist/orchestrator-supervisor.d.ts +100 -0
  179. package/dist/orchestrator-supervisor.js +399 -0
  180. package/dist/problem-triage.d.ts +23 -0
  181. package/dist/problem-triage.js +448 -0
  182. package/dist/prompts.d.ts +7 -0
  183. package/dist/prompts.js +628 -0
  184. package/dist/public-surface.d.ts +30 -0
  185. package/dist/public-surface.js +316 -0
  186. package/dist/resources.d.ts +7 -0
  187. package/dist/resources.js +545 -0
  188. package/dist/run-ledger.d.ts +36 -0
  189. package/dist/run-ledger.js +257 -0
  190. package/dist/runtime-command.d.ts +18 -0
  191. package/dist/runtime-command.js +76 -0
  192. package/dist/runtime-executor.d.ts +104 -0
  193. package/dist/runtime-executor.js +985 -0
  194. package/dist/runtime-profile.d.ts +116 -0
  195. package/dist/runtime-profile.js +532 -0
  196. package/dist/runtime-tool-specs.d.ts +68 -0
  197. package/dist/runtime-tool-specs.js +527 -0
  198. package/dist/safe-edit.d.ts +52 -0
  199. package/dist/safe-edit.js +255 -0
  200. package/dist/schemas.d.ts +44 -0
  201. package/dist/schemas.js +830 -0
  202. package/dist/semantic-cache.d.ts +147 -0
  203. package/dist/semantic-cache.js +552 -0
  204. package/dist/semantic-hash.d.ts +83 -0
  205. package/dist/semantic-hash.js +346 -0
  206. package/dist/server.d.ts +10 -0
  207. package/dist/server.js +46 -0
  208. package/dist/shared.d.ts +136 -0
  209. package/dist/shared.js +269 -0
  210. package/dist/skill-auditor.d.ts +26 -0
  211. package/dist/skill-auditor.js +184 -0
  212. package/dist/skill-catalog.d.ts +60 -0
  213. package/dist/skill-catalog.js +305 -0
  214. package/dist/status-events.d.ts +40 -0
  215. package/dist/status-events.js +269 -0
  216. package/dist/store/ace-packed-store.d.ts +69 -0
  217. package/dist/store/ace-packed-store.js +434 -0
  218. package/dist/store/bootstrap-store.d.ts +46 -0
  219. package/dist/store/bootstrap-store.js +242 -0
  220. package/dist/store/catalog-builder.d.ts +21 -0
  221. package/dist/store/catalog-builder.js +68 -0
  222. package/dist/store/importer.d.ts +19 -0
  223. package/dist/store/importer.js +157 -0
  224. package/dist/store/knowledge-bake.d.ts +59 -0
  225. package/dist/store/knowledge-bake.js +339 -0
  226. package/dist/store/materializers/hook-context-materializer.d.ts +25 -0
  227. package/dist/store/materializers/hook-context-materializer.js +100 -0
  228. package/dist/store/materializers/host-file-materializer.d.ts +37 -0
  229. package/dist/store/materializers/host-file-materializer.js +271 -0
  230. package/dist/store/materializers/todo-syncer.d.ts +30 -0
  231. package/dist/store/materializers/todo-syncer.js +140 -0
  232. package/dist/store/materializers/vericify-projector.d.ts +38 -0
  233. package/dist/store/materializers/vericify-projector.js +239 -0
  234. package/dist/store/repositories/discovery-repository.d.ts +24 -0
  235. package/dist/store/repositories/discovery-repository.js +58 -0
  236. package/dist/store/repositories/handoff-repository.d.ts +31 -0
  237. package/dist/store/repositories/handoff-repository.js +67 -0
  238. package/dist/store/repositories/ledger-repository.d.ts +26 -0
  239. package/dist/store/repositories/ledger-repository.js +49 -0
  240. package/dist/store/repositories/runtime-kv-repository.d.ts +16 -0
  241. package/dist/store/repositories/runtime-kv-repository.js +36 -0
  242. package/dist/store/repositories/scheduler-repository.d.ts +50 -0
  243. package/dist/store/repositories/scheduler-repository.js +123 -0
  244. package/dist/store/repositories/session-repository.d.ts +33 -0
  245. package/dist/store/repositories/session-repository.js +82 -0
  246. package/dist/store/repositories/todo-repository.d.ts +31 -0
  247. package/dist/store/repositories/todo-repository.js +77 -0
  248. package/dist/store/repositories/tracker-repository.d.ts +25 -0
  249. package/dist/store/repositories/tracker-repository.js +43 -0
  250. package/dist/store/repositories/vericify-repository.d.ts +32 -0
  251. package/dist/store/repositories/vericify-repository.js +58 -0
  252. package/dist/store/skills-install.d.ts +28 -0
  253. package/dist/store/skills-install.js +86 -0
  254. package/dist/store/state-reader.d.ts +49 -0
  255. package/dist/store/state-reader.js +111 -0
  256. package/dist/store/store-artifacts.d.ts +12 -0
  257. package/dist/store/store-artifacts.js +138 -0
  258. package/dist/store/store-snapshot.d.ts +19 -0
  259. package/dist/store/store-snapshot.js +140 -0
  260. package/dist/store/topology-bake.d.ts +15 -0
  261. package/dist/store/topology-bake.js +215 -0
  262. package/dist/store/types.d.ts +155 -0
  263. package/dist/store/types.js +35 -0
  264. package/dist/store/workspace-snapshot.d.ts +26 -0
  265. package/dist/store/workspace-snapshot.js +107 -0
  266. package/dist/store/write-queue.d.ts +7 -0
  267. package/dist/store/write-queue.js +26 -0
  268. package/dist/todo-state.d.ts +41 -0
  269. package/dist/todo-state.js +399 -0
  270. package/dist/tools-agent.d.ts +7 -0
  271. package/dist/tools-agent.js +1542 -0
  272. package/dist/tools-discovery.d.ts +6 -0
  273. package/dist/tools-discovery.js +178 -0
  274. package/dist/tools-drift.d.ts +13 -0
  275. package/dist/tools-drift.js +357 -0
  276. package/dist/tools-files.d.ts +6 -0
  277. package/dist/tools-files.js +679 -0
  278. package/dist/tools-framework.d.ts +7 -0
  279. package/dist/tools-framework.js +1414 -0
  280. package/dist/tools-git.d.ts +6 -0
  281. package/dist/tools-git.js +183 -0
  282. package/dist/tools-handoff.d.ts +32 -0
  283. package/dist/tools-handoff.js +489 -0
  284. package/dist/tools-lifecycle.d.ts +6 -0
  285. package/dist/tools-lifecycle.js +205 -0
  286. package/dist/tools-memory.d.ts +6 -0
  287. package/dist/tools-memory.js +260 -0
  288. package/dist/tools-scheduler.d.ts +6 -0
  289. package/dist/tools-scheduler.js +228 -0
  290. package/dist/tools-skills.d.ts +3 -0
  291. package/dist/tools-skills.js +104 -0
  292. package/dist/tools-todo.d.ts +6 -0
  293. package/dist/tools-todo.js +154 -0
  294. package/dist/tools.d.ts +9 -0
  295. package/dist/tools.js +33 -0
  296. package/dist/tracker-adapters.d.ts +74 -0
  297. package/dist/tracker-adapters.js +776 -0
  298. package/dist/tracker-sync.d.ts +10 -0
  299. package/dist/tracker-sync.js +84 -0
  300. package/dist/tui/agent-runner.d.ts +137 -0
  301. package/dist/tui/agent-runner.js +466 -0
  302. package/dist/tui/agent-worker.d.ts +10 -0
  303. package/dist/tui/agent-worker.js +347 -0
  304. package/dist/tui/chat.d.ts +84 -0
  305. package/dist/tui/chat.js +368 -0
  306. package/dist/tui/commands.d.ts +57 -0
  307. package/dist/tui/commands.js +432 -0
  308. package/dist/tui/dashboard.d.ts +24 -0
  309. package/dist/tui/dashboard.js +110 -0
  310. package/dist/tui/index.d.ts +114 -0
  311. package/dist/tui/index.js +1059 -0
  312. package/dist/tui/input.d.ts +49 -0
  313. package/dist/tui/input.js +336 -0
  314. package/dist/tui/layout.d.ts +116 -0
  315. package/dist/tui/layout.js +367 -0
  316. package/dist/tui/ollama.d.ts +116 -0
  317. package/dist/tui/ollama.js +192 -0
  318. package/dist/tui/openai-compatible.d.ts +63 -0
  319. package/dist/tui/openai-compatible.js +370 -0
  320. package/dist/tui/provider-discovery.d.ts +59 -0
  321. package/dist/tui/provider-discovery.js +530 -0
  322. package/dist/tui/renderer.d.ts +166 -0
  323. package/dist/tui/renderer.js +304 -0
  324. package/dist/tui/tabs.d.ts +70 -0
  325. package/dist/tui/tabs.js +208 -0
  326. package/dist/tui/telemetry.d.ts +56 -0
  327. package/dist/tui/telemetry.js +106 -0
  328. package/dist/vericify-bridge.d.ts +146 -0
  329. package/dist/vericify-bridge.js +571 -0
  330. package/dist/vericify-context.d.ts +10 -0
  331. package/dist/vericify-context.js +72 -0
  332. package/dist/workspace-manager.d.ts +107 -0
  333. package/dist/workspace-manager.js +636 -0
  334. package/package.json +83 -0
@@ -0,0 +1,138 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "ace://schemas/swarm-handoff/1.0.0",
4
+ "title": "ACE Swarm Handoff",
5
+ "type": "object",
6
+ "required": [
7
+ "handoff_id",
8
+ "timestamp_utc",
9
+ "router",
10
+ "task",
11
+ "context",
12
+ "acceptance_criteria",
13
+ "verification",
14
+ "return_payload_contract"
15
+ ],
16
+ "additionalProperties": false,
17
+ "properties": {
18
+ "handoff_id": {
19
+ "type": "string",
20
+ "minLength": 1
21
+ },
22
+ "timestamp_utc": {
23
+ "type": "string",
24
+ "format": "date-time"
25
+ },
26
+ "router": {
27
+ "type": "object",
28
+ "required": [
29
+ "from",
30
+ "via",
31
+ "to"
32
+ ],
33
+ "additionalProperties": false,
34
+ "properties": {
35
+ "from": {"type": "string", "minLength": 1},
36
+ "via": {"type": "string", "minLength": 1},
37
+ "to": {"type": "string", "minLength": 1}
38
+ }
39
+ },
40
+ "task": {
41
+ "type": "object",
42
+ "required": [
43
+ "title",
44
+ "type",
45
+ "priority",
46
+ "owner",
47
+ "depends_on",
48
+ "scope"
49
+ ],
50
+ "additionalProperties": false,
51
+ "properties": {
52
+ "title": {"type": "string", "minLength": 1},
53
+ "type": {"type": "string", "enum": ["venture", "ux", "engineering", "mixed"]},
54
+ "priority": {"type": "string", "enum": ["P0", "P1", "P2"]},
55
+ "owner": {"type": "string", "minLength": 1},
56
+ "depends_on": {"type": "array", "items": {"type": "string"}},
57
+ "scope": {"type": "string", "minLength": 1}
58
+ }
59
+ },
60
+ "context": {
61
+ "type": "object",
62
+ "required": [
63
+ "business_requirement",
64
+ "design_constraint",
65
+ "engineering_constraint",
66
+ "directive"
67
+ ],
68
+ "additionalProperties": false,
69
+ "properties": {
70
+ "business_requirement": {"type": "string"},
71
+ "design_constraint": {"type": "string"},
72
+ "engineering_constraint": {"type": "string"},
73
+ "directive": {"type": "string", "minLength": 1}
74
+ }
75
+ },
76
+ "acceptance_criteria": {
77
+ "type": "array",
78
+ "minItems": 1,
79
+ "items": {"type": "string", "minLength": 1}
80
+ },
81
+ "deliverables": {
82
+ "type": "array",
83
+ "items": {"type": "string"}
84
+ },
85
+ "verification": {
86
+ "type": "object",
87
+ "required": [
88
+ "required_evidence",
89
+ "review_check",
90
+ "status"
91
+ ],
92
+ "additionalProperties": false,
93
+ "properties": {
94
+ "required_evidence": {
95
+ "type": "array",
96
+ "minItems": 1,
97
+ "items": {"type": "string", "minLength": 1}
98
+ },
99
+ "review_check": {"type": "string", "minLength": 1},
100
+ "status": {"type": "string", "enum": ["pending", "in_progress", "pass", "fail"]}
101
+ }
102
+ },
103
+ "risks": {
104
+ "type": "array",
105
+ "items": {"type": "string"}
106
+ },
107
+ "open_questions": {
108
+ "type": "array",
109
+ "items": {"type": "string"}
110
+ },
111
+ "lessons_hook": {
112
+ "type": "object",
113
+ "required": [
114
+ "on_correction_update",
115
+ "rule_format"
116
+ ],
117
+ "additionalProperties": false,
118
+ "properties": {
119
+ "on_correction_update": {"type": "string", "minLength": 1},
120
+ "rule_format": {"type": "string", "minLength": 1}
121
+ }
122
+ },
123
+ "return_payload_contract": {
124
+ "type": "object",
125
+ "required": [
126
+ "must_include"
127
+ ],
128
+ "additionalProperties": false,
129
+ "properties": {
130
+ "must_include": {
131
+ "type": "array",
132
+ "minItems": 1,
133
+ "items": {"type": "string", "minLength": 1}
134
+ }
135
+ }
136
+ }
137
+ }
138
+ }
@@ -0,0 +1,134 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "ace://schemas/tracker-snapshot/1.0.0",
4
+ "title": "ACE Tracker Snapshot",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "version",
9
+ "adapter_kind",
10
+ "updated_at",
11
+ "items",
12
+ "comments"
13
+ ],
14
+ "properties": {
15
+ "version": {
16
+ "type": "integer",
17
+ "const": 1
18
+ },
19
+ "adapter_kind": {
20
+ "type": "string",
21
+ "enum": [
22
+ "none",
23
+ "memory",
24
+ "external"
25
+ ]
26
+ },
27
+ "updated_at": {
28
+ "type": "string",
29
+ "format": "date-time"
30
+ },
31
+ "items": {
32
+ "type": "array",
33
+ "items": {
34
+ "$ref": "#/$defs/item"
35
+ }
36
+ },
37
+ "comments": {
38
+ "type": "array",
39
+ "items": {
40
+ "$ref": "#/$defs/comment"
41
+ }
42
+ }
43
+ },
44
+ "$defs": {
45
+ "item": {
46
+ "type": "object",
47
+ "additionalProperties": false,
48
+ "required": [
49
+ "item_id",
50
+ "title",
51
+ "state",
52
+ "labels",
53
+ "updated_at",
54
+ "metadata"
55
+ ],
56
+ "properties": {
57
+ "item_id": {
58
+ "type": "string",
59
+ "minLength": 1
60
+ },
61
+ "external_id": {
62
+ "type": "string"
63
+ },
64
+ "title": {
65
+ "type": "string",
66
+ "minLength": 1
67
+ },
68
+ "body": {
69
+ "type": "string"
70
+ },
71
+ "state": {
72
+ "type": "string",
73
+ "minLength": 1
74
+ },
75
+ "labels": {
76
+ "type": "array",
77
+ "items": {
78
+ "type": "string"
79
+ }
80
+ },
81
+ "assignee": {
82
+ "type": "string"
83
+ },
84
+ "url": {
85
+ "type": "string"
86
+ },
87
+ "updated_at": {
88
+ "type": "string",
89
+ "format": "date-time"
90
+ },
91
+ "metadata": {
92
+ "type": "object"
93
+ }
94
+ }
95
+ },
96
+ "comment": {
97
+ "type": "object",
98
+ "additionalProperties": false,
99
+ "required": [
100
+ "comment_id",
101
+ "item_id",
102
+ "body",
103
+ "author",
104
+ "created_at",
105
+ "metadata"
106
+ ],
107
+ "properties": {
108
+ "comment_id": {
109
+ "type": "string",
110
+ "minLength": 1
111
+ },
112
+ "item_id": {
113
+ "type": "string",
114
+ "minLength": 1
115
+ },
116
+ "body": {
117
+ "type": "string",
118
+ "minLength": 1
119
+ },
120
+ "author": {
121
+ "type": "string",
122
+ "minLength": 1
123
+ },
124
+ "created_at": {
125
+ "type": "string",
126
+ "format": "date-time"
127
+ },
128
+ "metadata": {
129
+ "type": "object"
130
+ }
131
+ }
132
+ }
133
+ }
134
+ }
@@ -0,0 +1,157 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "ace://schemas/vericify-bridge-snapshot/1.0.0",
4
+ "title": "Vericify Bridge Snapshot",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "version",
9
+ "generated_at",
10
+ "bridge_enabled",
11
+ "workspace_root",
12
+ "runtime_profile_path",
13
+ "bridge_path",
14
+ "process_post_path",
15
+ "sources",
16
+ "active_run_refs"
17
+ ],
18
+ "properties": {
19
+ "version": {
20
+ "type": "integer",
21
+ "const": 1
22
+ },
23
+ "generated_at": {
24
+ "type": "string",
25
+ "format": "date-time"
26
+ },
27
+ "bridge_enabled": {
28
+ "type": "boolean"
29
+ },
30
+ "workspace_root": {
31
+ "type": "string",
32
+ "minLength": 1
33
+ },
34
+ "runtime_profile_path": {
35
+ "type": "string",
36
+ "minLength": 1
37
+ },
38
+ "bridge_path": {
39
+ "type": "string",
40
+ "minLength": 1
41
+ },
42
+ "process_post_path": {
43
+ "type": "string",
44
+ "minLength": 1
45
+ },
46
+ "sources": {
47
+ "type": "object",
48
+ "additionalProperties": false,
49
+ "required": [
50
+ "handoff_registry",
51
+ "todo_state",
52
+ "run_ledger",
53
+ "status_events",
54
+ "runtime_workspaces",
55
+ "runtime_executor_sessions",
56
+ "tracker_snapshot",
57
+ "process_posts"
58
+ ],
59
+ "properties": {
60
+ "handoff_registry": { "$ref": "#/$defs/SourceState" },
61
+ "todo_state": { "$ref": "#/$defs/SourceState" },
62
+ "run_ledger": { "$ref": "#/$defs/SourceState" },
63
+ "status_events": { "$ref": "#/$defs/SourceState" },
64
+ "runtime_workspaces": { "$ref": "#/$defs/SourceState" },
65
+ "runtime_executor_sessions": { "$ref": "#/$defs/SourceState" },
66
+ "tracker_snapshot": { "$ref": "#/$defs/SourceState" },
67
+ "process_posts": { "$ref": "#/$defs/SourceState" }
68
+ }
69
+ },
70
+ "active_run_refs": {
71
+ "type": "array",
72
+ "items": { "$ref": "#/$defs/ActiveRunRef" }
73
+ }
74
+ },
75
+ "$defs": {
76
+ "SourceState": {
77
+ "type": "object",
78
+ "additionalProperties": false,
79
+ "required": [
80
+ "path",
81
+ "exists",
82
+ "record_count",
83
+ "summary"
84
+ ],
85
+ "properties": {
86
+ "path": {
87
+ "type": "string",
88
+ "minLength": 1
89
+ },
90
+ "exists": {
91
+ "type": "boolean"
92
+ },
93
+ "updated_at": {
94
+ "type": "string",
95
+ "format": "date-time"
96
+ },
97
+ "record_count": {
98
+ "type": "integer",
99
+ "minimum": 0
100
+ },
101
+ "summary": {
102
+ "type": "string",
103
+ "minLength": 1
104
+ }
105
+ }
106
+ },
107
+ "ActiveRunRef": {
108
+ "type": "object",
109
+ "additionalProperties": false,
110
+ "required": [
111
+ "run_id",
112
+ "branch_id",
113
+ "lane_id",
114
+ "session_id",
115
+ "status",
116
+ "workspace_path",
117
+ "updated_at"
118
+ ],
119
+ "properties": {
120
+ "run_id": {
121
+ "type": "string",
122
+ "minLength": 1
123
+ },
124
+ "branch_id": {
125
+ "type": "string",
126
+ "minLength": 1
127
+ },
128
+ "lane_id": {
129
+ "type": "string",
130
+ "minLength": 1
131
+ },
132
+ "session_id": {
133
+ "type": "string",
134
+ "minLength": 1
135
+ },
136
+ "status": {
137
+ "type": "string",
138
+ "minLength": 1
139
+ },
140
+ "objective_id": {
141
+ "type": "string"
142
+ },
143
+ "tracker_item_id": {
144
+ "type": "string"
145
+ },
146
+ "workspace_path": {
147
+ "type": "string",
148
+ "minLength": 1
149
+ },
150
+ "updated_at": {
151
+ "type": "string",
152
+ "format": "date-time"
153
+ }
154
+ }
155
+ }
156
+ }
157
+ }
@@ -0,0 +1,93 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "ace://schemas/vericify-process-post-log/1.0.0",
4
+ "title": "Vericify Process Post Log",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "version",
9
+ "updated_at",
10
+ "posts"
11
+ ],
12
+ "properties": {
13
+ "version": {
14
+ "type": "integer",
15
+ "const": 1
16
+ },
17
+ "updated_at": {
18
+ "type": "string",
19
+ "format": "date-time"
20
+ },
21
+ "posts": {
22
+ "type": "array",
23
+ "items": {
24
+ "type": "object",
25
+ "additionalProperties": false,
26
+ "required": [
27
+ "process_post_id",
28
+ "run_id",
29
+ "agent_id",
30
+ "kind",
31
+ "summary",
32
+ "timestamp",
33
+ "tool_refs",
34
+ "evidence_refs"
35
+ ],
36
+ "properties": {
37
+ "process_post_id": {
38
+ "type": "string",
39
+ "minLength": 1
40
+ },
41
+ "run_id": {
42
+ "type": "string",
43
+ "minLength": 1
44
+ },
45
+ "branch_id": {
46
+ "type": "string"
47
+ },
48
+ "lane_id": {
49
+ "type": "string"
50
+ },
51
+ "agent_id": {
52
+ "type": "string",
53
+ "minLength": 1
54
+ },
55
+ "kind": {
56
+ "type": "string",
57
+ "enum": [
58
+ "intent",
59
+ "progress",
60
+ "blocker",
61
+ "handoff_note",
62
+ "stale_ack",
63
+ "completion"
64
+ ]
65
+ },
66
+ "summary": {
67
+ "type": "string",
68
+ "minLength": 1
69
+ },
70
+ "tool_refs": {
71
+ "type": "array",
72
+ "items": {
73
+ "type": "string"
74
+ }
75
+ },
76
+ "evidence_refs": {
77
+ "type": "array",
78
+ "items": {
79
+ "type": "string"
80
+ }
81
+ },
82
+ "checkpoint_ref": {
83
+ "type": "string"
84
+ },
85
+ "timestamp": {
86
+ "type": "string",
87
+ "format": "date-time"
88
+ }
89
+ }
90
+ }
91
+ }
92
+ }
93
+ }
@@ -0,0 +1,133 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "ace://schemas/workspace-session-registry/1.0.0",
4
+ "title": "ACE Workspace Session Registry",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "version",
9
+ "updated_at",
10
+ "sessions"
11
+ ],
12
+ "properties": {
13
+ "version": {
14
+ "type": "integer",
15
+ "const": 1
16
+ },
17
+ "updated_at": {
18
+ "type": "string",
19
+ "format": "date-time"
20
+ },
21
+ "sessions": {
22
+ "type": "array",
23
+ "items": {
24
+ "type": "object",
25
+ "additionalProperties": false,
26
+ "required": [
27
+ "session_id",
28
+ "workspace_path",
29
+ "root_path",
30
+ "status",
31
+ "source",
32
+ "created_at",
33
+ "updated_at",
34
+ "hooks"
35
+ ],
36
+ "properties": {
37
+ "session_id": {
38
+ "type": "string",
39
+ "minLength": 1
40
+ },
41
+ "workspace_path": {
42
+ "type": "string",
43
+ "minLength": 1
44
+ },
45
+ "root_path": {
46
+ "type": "string",
47
+ "minLength": 1
48
+ },
49
+ "status": {
50
+ "type": "string",
51
+ "enum": [
52
+ "active",
53
+ "archived",
54
+ "removed",
55
+ "failed"
56
+ ]
57
+ },
58
+ "source": {
59
+ "type": "string",
60
+ "enum": [
61
+ "manual",
62
+ "executor",
63
+ "test"
64
+ ]
65
+ },
66
+ "objective_id": {
67
+ "type": "string"
68
+ },
69
+ "tracker_item_id": {
70
+ "type": "string"
71
+ },
72
+ "last_error": {
73
+ "type": "string"
74
+ },
75
+ "created_at": {
76
+ "type": "string",
77
+ "format": "date-time"
78
+ },
79
+ "updated_at": {
80
+ "type": "string",
81
+ "format": "date-time"
82
+ },
83
+ "hooks": {
84
+ "type": "object",
85
+ "additionalProperties": false,
86
+ "required": [
87
+ "after_create",
88
+ "before_run",
89
+ "after_run",
90
+ "before_remove"
91
+ ],
92
+ "properties": {
93
+ "after_create": {
94
+ "$ref": "#/$defs/hook_state"
95
+ },
96
+ "before_run": {
97
+ "$ref": "#/$defs/hook_state"
98
+ },
99
+ "after_run": {
100
+ "$ref": "#/$defs/hook_state"
101
+ },
102
+ "before_remove": {
103
+ "$ref": "#/$defs/hook_state"
104
+ }
105
+ }
106
+ }
107
+ }
108
+ }
109
+ }
110
+ },
111
+ "$defs": {
112
+ "hook_state": {
113
+ "type": "object",
114
+ "additionalProperties": false,
115
+ "required": [
116
+ "status"
117
+ ],
118
+ "properties": {
119
+ "status": {
120
+ "type": "string",
121
+ "enum": [
122
+ "not_run",
123
+ "ok",
124
+ "failed"
125
+ ]
126
+ },
127
+ "detail": {
128
+ "type": "string"
129
+ }
130
+ }
131
+ }
132
+ }
133
+ }
@@ -0,0 +1,28 @@
1
+ # PROVENANCE LOG
2
+
3
+ Append-only artifact provenance ledger. Every produced artifact must be recorded
4
+ here and in `agent-state/ARTIFACT_MANIFEST.json`.
5
+
6
+ ## Required Fields
7
+
8
+ - artifact_id
9
+ - artifact_path
10
+ - producer_module
11
+ - spec_version
12
+ - req_ids
13
+ - checksum
14
+ - confidence_level
15
+ - evidence_ref
16
+ - timestamp
17
+
18
+ ## Entry Template
19
+
20
+ ### <timestamp> — <artifact_id>
21
+ - artifact_path:
22
+ - producer_module:
23
+ - spec_version:
24
+ - req_ids:
25
+ - checksum:
26
+ - confidence_level:
27
+ - evidence_ref:
28
+ - timestamp:
@@ -0,0 +1,15 @@
1
+ # QUALITY GATES
2
+
3
+ ## gate-completeness
4
+
5
+ - Invariant: required artifacts exist and are non-empty.
6
+ - Pass condition: all required files are present with required sections.
7
+ - Fail condition: any missing required artifact or empty required section.
8
+ - Evidence: file list + section checks in `EVIDENCE_LOG.md`.
9
+
10
+ ## gate-correctness
11
+
12
+ - Invariant: behavior satisfies spec acceptance criteria.
13
+ - Pass condition: mapped tests pass and no unresolved critical failures.
14
+ - Fail condition: failing mapped test, unresolved regression, or invalid provenance.
15
+ - Evidence: test output and verification report pointers.