zob-harness 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 (356) hide show
  1. package/.pi/adapters/registry.json +103 -0
  2. package/.pi/agents/architecture-cartographer.md +53 -0
  3. package/.pi/agents/chief-vision.md +39 -0
  4. package/.pi/agents/clarifier.md +58 -0
  5. package/.pi/agents/context-steward.md +52 -0
  6. package/.pi/agents/doc-steward.md +34 -0
  7. package/.pi/agents/explore.md +49 -0
  8. package/.pi/agents/factory.md +41 -0
  9. package/.pi/agents/implementer.md +44 -0
  10. package/.pi/agents/librarian.md +32 -0
  11. package/.pi/agents/oracle-merge.md +50 -0
  12. package/.pi/agents/oracle.md +55 -0
  13. package/.pi/agents/pattern-miner.md +53 -0
  14. package/.pi/agents/planner.md +39 -0
  15. package/.pi/agents/project-dna-golden-evaluator.md +32 -0
  16. package/.pi/agents/project-dna-ontology-steward.md +30 -0
  17. package/.pi/agents/project-dna-oracle.md +56 -0
  18. package/.pi/agents/project-dna-orchestrator.md +60 -0
  19. package/.pi/agents/project-dna-query-steward.md +38 -0
  20. package/.pi/agents/project-dna-safety-preflight.md +54 -0
  21. package/.pi/agents/project-dna-test-linker.md +27 -0
  22. package/.pi/agents/qa.md +38 -0
  23. package/.pi/agents/refactor-cartographer.md +28 -0
  24. package/.pi/agents/refactor-mover.md +31 -0
  25. package/.pi/agents/refactor-oracle.md +49 -0
  26. package/.pi/agents/repo-scout.md +60 -0
  27. package/.pi/agents/sample-architect.md +48 -0
  28. package/.pi/agents/specifier.md +57 -0
  29. package/.pi/agents/symbol-range-curator.md +41 -0
  30. package/.pi/agents/synthesis.md +52 -0
  31. package/.pi/agents/temp-agent-creator.md +35 -0
  32. package/.pi/autonomy-policy.json +67 -0
  33. package/.pi/budget-policy.json +54 -0
  34. package/.pi/capabilities/zob-public-runtime-capabilities.json +1700 -0
  35. package/.pi/chains/explore-plan-oracle.json +78 -0
  36. package/.pi/chains/explore-spec-clarify-plan-oracle.json +64 -0
  37. package/.pi/chains/explore-spec-plan-oracle.json +53 -0
  38. package/.pi/chains/spec-clarify-plan-oracle.json +53 -0
  39. package/.pi/chains/spec-factory-oracle.json +42 -0
  40. package/.pi/chains/spec-plan-oracle.json +42 -0
  41. package/.pi/compute-profiles/defaults.json +19 -0
  42. package/.pi/compute-profiles/overrides.json +13 -0
  43. package/.pi/compute-profiles/risk-rules.json +16 -0
  44. package/.pi/daemon-policy.json +80 -0
  45. package/.pi/damage-control-rules.json +45 -0
  46. package/.pi/extensions/zob-child-safety/index.ts +212 -0
  47. package/.pi/extensions/zob-harness/AGENTS.md +28 -0
  48. package/.pi/extensions/zob-harness/index.ts +391 -0
  49. package/.pi/extensions/zob-harness/src/AGENTS.md +25 -0
  50. package/.pi/extensions/zob-harness/src/agents.ts +82 -0
  51. package/.pi/extensions/zob-harness/src/autonomous-runtime.ts +2912 -0
  52. package/.pi/extensions/zob-harness/src/autonomy-readiness.ts +778 -0
  53. package/.pi/extensions/zob-harness/src/budget-policy.ts +308 -0
  54. package/.pi/extensions/zob-harness/src/capabilities.ts +249 -0
  55. package/.pi/extensions/zob-harness/src/child-runner.ts +249 -0
  56. package/.pi/extensions/zob-harness/src/chronicle.ts +262 -0
  57. package/.pi/extensions/zob-harness/src/compute-profile.ts +602 -0
  58. package/.pi/extensions/zob-harness/src/compute-workflow-shape.ts +168 -0
  59. package/.pi/extensions/zob-harness/src/coms-v2/AGENTS.md +16 -0
  60. package/.pi/extensions/zob-harness/src/coms-v2/envelope.ts +121 -0
  61. package/.pi/extensions/zob-harness/src/coms-v2/identity.ts +53 -0
  62. package/.pi/extensions/zob-harness/src/coms-v2/ledger-bridge.ts +67 -0
  63. package/.pi/extensions/zob-harness/src/coms-v2/local-transport.ts +147 -0
  64. package/.pi/extensions/zob-harness/src/coms-v2/pending-replies.ts +80 -0
  65. package/.pi/extensions/zob-harness/src/coms-v2/policy.ts +125 -0
  66. package/.pi/extensions/zob-harness/src/coms-v2/presence.ts +55 -0
  67. package/.pi/extensions/zob-harness/src/coms-v2/registry.ts +113 -0
  68. package/.pi/extensions/zob-harness/src/coms-v2/response-capture.ts +50 -0
  69. package/.pi/extensions/zob-harness/src/coms-v2/transcript-capture.ts +164 -0
  70. package/.pi/extensions/zob-harness/src/coms-v2/types.ts +149 -0
  71. package/.pi/extensions/zob-harness/src/coms-v2/zpeer-profile.ts +140 -0
  72. package/.pi/extensions/zob-harness/src/coms-v2/zpeer.ts +452 -0
  73. package/.pi/extensions/zob-harness/src/constants.ts +108 -0
  74. package/.pi/extensions/zob-harness/src/context-gbrain.ts +465 -0
  75. package/.pi/extensions/zob-harness/src/daemon-policy.ts +223 -0
  76. package/.pi/extensions/zob-harness/src/daemon-readiness.ts +134 -0
  77. package/.pi/extensions/zob-harness/src/daemon-runtime.ts +393 -0
  78. package/.pi/extensions/zob-harness/src/factory/AGENTS.md +24 -0
  79. package/.pi/extensions/zob-harness/src/factory/agentic-plan.ts +65 -0
  80. package/.pi/extensions/zob-harness/src/factory/quarantine.ts +319 -0
  81. package/.pi/extensions/zob-harness/src/factory/run.ts +520 -0
  82. package/.pi/extensions/zob-harness/src/factory/validation.ts +454 -0
  83. package/.pi/extensions/zob-harness/src/factory-selector.ts +318 -0
  84. package/.pi/extensions/zob-harness/src/full-autonomy-test.ts +226 -0
  85. package/.pi/extensions/zob-harness/src/git-ops.ts +868 -0
  86. package/.pi/extensions/zob-harness/src/goal-room.ts +178 -0
  87. package/.pi/extensions/zob-harness/src/goal-runtime.ts +1569 -0
  88. package/.pi/extensions/zob-harness/src/goal-todo-imports.ts +111 -0
  89. package/.pi/extensions/zob-harness/src/goal-todo-types.ts +231 -0
  90. package/.pi/extensions/zob-harness/src/goal-todos.ts +1410 -0
  91. package/.pi/extensions/zob-harness/src/goal.ts +152 -0
  92. package/.pi/extensions/zob-harness/src/governed-requests.ts +436 -0
  93. package/.pi/extensions/zob-harness/src/interactive-autonomy.ts +595 -0
  94. package/.pi/extensions/zob-harness/src/launch-apply.ts +313 -0
  95. package/.pi/extensions/zob-harness/src/merge-queue.ts +290 -0
  96. package/.pi/extensions/zob-harness/src/mission-control.ts +573 -0
  97. package/.pi/extensions/zob-harness/src/model-availability.ts +52 -0
  98. package/.pi/extensions/zob-harness/src/model-routing.ts +429 -0
  99. package/.pi/extensions/zob-harness/src/orchestration/AGENTS.md +23 -0
  100. package/.pi/extensions/zob-harness/src/orchestration/adaptive-delegation.ts +547 -0
  101. package/.pi/extensions/zob-harness/src/orchestration/adaptive-workflow.ts +585 -0
  102. package/.pi/extensions/zob-harness/src/orchestration/lead-plan.ts +192 -0
  103. package/.pi/extensions/zob-harness/src/orchestration/plan.ts +168 -0
  104. package/.pi/extensions/zob-harness/src/orchestration/room.ts +346 -0
  105. package/.pi/extensions/zob-harness/src/orchestration/run.ts +134 -0
  106. package/.pi/extensions/zob-harness/src/orchestration/supervised-readonly.ts +1147 -0
  107. package/.pi/extensions/zob-harness/src/orchestration/widget-readers.ts +132 -0
  108. package/.pi/extensions/zob-harness/src/output-contracts.ts +656 -0
  109. package/.pi/extensions/zob-harness/src/project-dna.ts +533 -0
  110. package/.pi/extensions/zob-harness/src/promotion/AGENTS.md +24 -0
  111. package/.pi/extensions/zob-harness/src/promotion/candidate.ts +336 -0
  112. package/.pi/extensions/zob-harness/src/promotion/coms.ts +127 -0
  113. package/.pi/extensions/zob-harness/src/promotion/documentation.ts +142 -0
  114. package/.pi/extensions/zob-harness/src/promotion/factory.ts +107 -0
  115. package/.pi/extensions/zob-harness/src/promotion/ledger.ts +2 -0
  116. package/.pi/extensions/zob-harness/src/promotion/temp-agent.ts +151 -0
  117. package/.pi/extensions/zob-harness/src/promotion/types.ts +149 -0
  118. package/.pi/extensions/zob-harness/src/promotion/validate.ts +6 -0
  119. package/.pi/extensions/zob-harness/src/promotion/write-lane.ts +162 -0
  120. package/.pi/extensions/zob-harness/src/prompt-packs.ts +239 -0
  121. package/.pi/extensions/zob-harness/src/queue.ts +386 -0
  122. package/.pi/extensions/zob-harness/src/rules.ts +225 -0
  123. package/.pi/extensions/zob-harness/src/runtime/AGENTS.md +26 -0
  124. package/.pi/extensions/zob-harness/src/runtime/adaptive-zmode.ts +116 -0
  125. package/.pi/extensions/zob-harness/src/runtime/auto-compaction.ts +715 -0
  126. package/.pi/extensions/zob-harness/src/runtime/commands.ts +1315 -0
  127. package/.pi/extensions/zob-harness/src/runtime/compaction-policy.ts +516 -0
  128. package/.pi/extensions/zob-harness/src/runtime/delegation-click-markers.ts +141 -0
  129. package/.pi/extensions/zob-harness/src/runtime/delegation-feed.ts +415 -0
  130. package/.pi/extensions/zob-harness/src/runtime/delegation-markdown.ts +97 -0
  131. package/.pi/extensions/zob-harness/src/runtime/delegation-monitor.ts +553 -0
  132. package/.pi/extensions/zob-harness/src/runtime/delegation-mouse.ts +205 -0
  133. package/.pi/extensions/zob-harness/src/runtime/delegation-overlay.ts +434 -0
  134. package/.pi/extensions/zob-harness/src/runtime/events.ts +736 -0
  135. package/.pi/extensions/zob-harness/src/runtime/goal-todo-overlay.ts +214 -0
  136. package/.pi/extensions/zob-harness/src/runtime/mode-intent.ts +144 -0
  137. package/.pi/extensions/zob-harness/src/runtime/plan-capture.ts +270 -0
  138. package/.pi/extensions/zob-harness/src/runtime/state.ts +403 -0
  139. package/.pi/extensions/zob-harness/src/runtime/tools-autonomous.ts +117 -0
  140. package/.pi/extensions/zob-harness/src/runtime/tools-compute.ts +136 -0
  141. package/.pi/extensions/zob-harness/src/runtime/tools-coms.ts +365 -0
  142. package/.pi/extensions/zob-harness/src/runtime/tools-context.ts +70 -0
  143. package/.pi/extensions/zob-harness/src/runtime/tools-delegation.ts +1854 -0
  144. package/.pi/extensions/zob-harness/src/runtime/tools-factory.ts +810 -0
  145. package/.pi/extensions/zob-harness/src/runtime/tools-goal-room.ts +46 -0
  146. package/.pi/extensions/zob-harness/src/runtime/tools-governed-requests.ts +38 -0
  147. package/.pi/extensions/zob-harness/src/runtime/tools-merge-queue.ts +61 -0
  148. package/.pi/extensions/zob-harness/src/runtime/tools-mission-control.ts +77 -0
  149. package/.pi/extensions/zob-harness/src/runtime/tools-orchestration.ts +106 -0
  150. package/.pi/extensions/zob-harness/src/runtime/tools-project-dna.ts +123 -0
  151. package/.pi/extensions/zob-harness/src/runtime/tools-worker-pool.ts +93 -0
  152. package/.pi/extensions/zob-harness/src/runtime/tools-workspace-claims.ts +62 -0
  153. package/.pi/extensions/zob-harness/src/runtime/tools-zcommit.ts +147 -0
  154. package/.pi/extensions/zob-harness/src/runtime/widget.ts +353 -0
  155. package/.pi/extensions/zob-harness/src/runtime/zobHarness.ts +60 -0
  156. package/.pi/extensions/zob-harness/src/safety.ts +338 -0
  157. package/.pi/extensions/zob-harness/src/sandbox.ts +1508 -0
  158. package/.pi/extensions/zob-harness/src/schemas-project-dna.ts +47 -0
  159. package/.pi/extensions/zob-harness/src/schemas.ts +695 -0
  160. package/.pi/extensions/zob-harness/src/telemetry.ts +373 -0
  161. package/.pi/extensions/zob-harness/src/topology/AGENTS.md +22 -0
  162. package/.pi/extensions/zob-harness/src/topology/chains.ts +236 -0
  163. package/.pi/extensions/zob-harness/src/topology/coms.ts +211 -0
  164. package/.pi/extensions/zob-harness/src/topology/orchestration-profiles.ts +204 -0
  165. package/.pi/extensions/zob-harness/src/topology/teams.ts +113 -0
  166. package/.pi/extensions/zob-harness/src/types/core.ts +47 -0
  167. package/.pi/extensions/zob-harness/src/types.ts +939 -0
  168. package/.pi/extensions/zob-harness/src/utils/AGENTS.md +22 -0
  169. package/.pi/extensions/zob-harness/src/utils/formatting.ts +34 -0
  170. package/.pi/extensions/zob-harness/src/utils/hashing.ts +11 -0
  171. package/.pi/extensions/zob-harness/src/utils/json.ts +28 -0
  172. package/.pi/extensions/zob-harness/src/utils/paths.ts +54 -0
  173. package/.pi/extensions/zob-harness/src/utils/records.ts +25 -0
  174. package/.pi/extensions/zob-harness/src/utils/resources.ts +38 -0
  175. package/.pi/extensions/zob-harness/src/worker-pool.ts +672 -0
  176. package/.pi/extensions/zob-harness/src/workspace-claims.ts +297 -0
  177. package/.pi/extensions/zob-switch/index.ts +180 -0
  178. package/.pi/factories/budget-preflight-dry-run/batch-manifest.json +59 -0
  179. package/.pi/factories/budget-preflight-dry-run/factory.json +94 -0
  180. package/.pi/factories/budget-preflight-dry-run/pilot-manifest.json +50 -0
  181. package/.pi/factories/budget-preflight-dry-run/smoke-manifest.json +43 -0
  182. package/.pi/factories/code-review-matrix/batch-manifest.json +61 -0
  183. package/.pi/factories/code-review-matrix/factory.json +163 -0
  184. package/.pi/factories/code-review-matrix/pilot-manifest.json +41 -0
  185. package/.pi/factories/code-review-matrix/smoke-manifest.json +35 -0
  186. package/.pi/factories/factory-forge/batch-manifest.json +56 -0
  187. package/.pi/factories/factory-forge/factory.json +84 -0
  188. package/.pi/factories/factory-forge/pilot-manifest.json +32 -0
  189. package/.pi/factories/factory-forge/smoke-manifest.json +19 -0
  190. package/.pi/factories/opencode-pattern-canonizer/batch-manifest.json +54 -0
  191. package/.pi/factories/opencode-pattern-canonizer/factory.json +86 -0
  192. package/.pi/factories/opencode-pattern-canonizer/pilot-manifest.json +39 -0
  193. package/.pi/factories/opencode-pattern-canonizer/smoke-manifest.json +26 -0
  194. package/.pi/factories/project-dna/README.md +182 -0
  195. package/.pi/factories/project-dna/batch-manifest.json +37 -0
  196. package/.pi/factories/project-dna/example-project-dna-manifest-v2.json +80 -0
  197. package/.pi/factories/project-dna/example-project-dna-manifest.json +58 -0
  198. package/.pi/factories/project-dna/factory.json +131 -0
  199. package/.pi/factories/project-dna/golden-cases-smoke.json +62 -0
  200. package/.pi/factories/project-dna/pi-agentic-ontology.json +88 -0
  201. package/.pi/factories/project-dna/pilot-manifest.json +32 -0
  202. package/.pi/factories/project-dna/schemas/benchmark-suite.schema.json +27 -0
  203. package/.pi/factories/project-dna/schemas/code-knowledge-graph.schema.json +97 -0
  204. package/.pi/factories/project-dna/schemas/context-pack.schema.json +43 -0
  205. package/.pi/factories/project-dna/schemas/golden-case.schema.json +36 -0
  206. package/.pi/factories/project-dna/schemas/manifest-v2.schema.json +128 -0
  207. package/.pi/factories/project-dna/schemas/manifest.schema.json +77 -0
  208. package/.pi/factories/project-dna/schemas/ontology.schema.json +45 -0
  209. package/.pi/factories/project-dna/schemas/project-fingerprint.schema.json +28 -0
  210. package/.pi/factories/project-dna/schemas/query-steward-report.schema.json +52 -0
  211. package/.pi/factories/project-dna/smoke-manifest.json +27 -0
  212. package/.pi/factories/roadmap-smoke-lots/batch-manifest.json +49 -0
  213. package/.pi/factories/roadmap-smoke-lots/factory.json +89 -0
  214. package/.pi/factories/roadmap-smoke-lots/pilot-manifest.json +50 -0
  215. package/.pi/factories/roadmap-smoke-lots/smoke-manifest.json +35 -0
  216. package/.pi/git-policy.json +120 -0
  217. package/.pi/mission-control/zob_coms_transport.json +64 -0
  218. package/.pi/model-catalog.example.json +345 -0
  219. package/.pi/model-economy.example.json +196 -0
  220. package/.pi/model-routing.json +86 -0
  221. package/.pi/orchestrations/adaptive-chief-vision.json +193 -0
  222. package/.pi/orchestrations/ceo-feature-build.json +182 -0
  223. package/.pi/orchestrations/readonly-dynamic-smoke.json +75 -0
  224. package/.pi/output-contracts/agent-event.v1.json +19 -0
  225. package/.pi/output-contracts/base.v1.json +24 -0
  226. package/.pi/output-contracts/brain-lookup.v1.json +21 -0
  227. package/.pi/output-contracts/clarification.v1.json +21 -0
  228. package/.pi/output-contracts/context-pack.v1.json +20 -0
  229. package/.pi/output-contracts/context-request.v1.json +21 -0
  230. package/.pi/output-contracts/context-steward.v1.json +19 -0
  231. package/.pi/output-contracts/context-writeback-proposal.v1.json +18 -0
  232. package/.pi/output-contracts/delegation-request.v1.json +21 -0
  233. package/.pi/output-contracts/explore.v1.json +52 -0
  234. package/.pi/output-contracts/factory.v1.json +48 -0
  235. package/.pi/output-contracts/guidance-steward.v1.json +18 -0
  236. package/.pi/output-contracts/implement.v1.json +40 -0
  237. package/.pi/output-contracts/launch-authorization.v1.json +21 -0
  238. package/.pi/output-contracts/lead-plan.v1.json +22 -0
  239. package/.pi/output-contracts/mission-readiness.v1.json +20 -0
  240. package/.pi/output-contracts/oracle-merge.v1.json +44 -0
  241. package/.pi/output-contracts/oracle-request.v1.json +20 -0
  242. package/.pi/output-contracts/oracle.v1.json +44 -0
  243. package/.pi/output-contracts/orchestration-profile.v1.json +22 -0
  244. package/.pi/output-contracts/plan.v1.json +48 -0
  245. package/.pi/output-contracts/prompt-pack.v1.json +20 -0
  246. package/.pi/output-contracts/qa.v1.json +40 -0
  247. package/.pi/output-contracts/research.v1.json +36 -0
  248. package/.pi/output-contracts/spec.v1.json +22 -0
  249. package/.pi/output-contracts/synthesis.v1.json +44 -0
  250. package/.pi/output-contracts/temp-agent-card.v1.json +23 -0
  251. package/.pi/output-contracts/todo-child-result.v1.json +20 -0
  252. package/.pi/output-contracts/todo-child-result.v2.json +22 -0
  253. package/.pi/output-contracts/todo-claim-validation.v1.json +22 -0
  254. package/.pi/output-contracts/todo-split-request.v1.json +20 -0
  255. package/.pi/prompts/adaptive-workflow.md +63 -0
  256. package/.pi/prompts/autonomous-runtime.md +15 -0
  257. package/.pi/prompts/benchmark-contender.md +15 -0
  258. package/.pi/prompts/benchmark-judge.md +19 -0
  259. package/.pi/prompts/clarify-spec.md +20 -0
  260. package/.pi/prompts/compute-plan.md +36 -0
  261. package/.pi/prompts/compute-preview.md +42 -0
  262. package/.pi/prompts/contract.md +29 -0
  263. package/.pi/prompts/explore.md +13 -0
  264. package/.pi/prompts/factory-run.md +36 -0
  265. package/.pi/prompts/factory.md +20 -0
  266. package/.pi/prompts/implement.md +27 -0
  267. package/.pi/prompts/model-catalog.md +68 -0
  268. package/.pi/prompts/model-economy.md +64 -0
  269. package/.pi/prompts/oracle-merge.md +18 -0
  270. package/.pi/prompts/oracle.md +13 -0
  271. package/.pi/prompts/orchestrator.md +48 -0
  272. package/.pi/prompts/parallel-review.md +21 -0
  273. package/.pi/prompts/plan.md +21 -0
  274. package/.pi/prompts/project-dna.md +90 -0
  275. package/.pi/prompts/refactor-oracle.md +23 -0
  276. package/.pi/prompts/refactor-slice.md +24 -0
  277. package/.pi/prompts/research.md +20 -0
  278. package/.pi/prompts/spec.md +19 -0
  279. package/.pi/prompts/synthesis.md +18 -0
  280. package/.pi/rules/always.md +38 -0
  281. package/.pi/rules/docs.md +32 -0
  282. package/.pi/rules/factory.md +44 -0
  283. package/.pi/rules/oracle.md +34 -0
  284. package/.pi/rules/orchestration.md +44 -0
  285. package/.pi/rules/project.md +34 -0
  286. package/.pi/rules/prompts.md +43 -0
  287. package/.pi/rules/runtime.md +43 -0
  288. package/.pi/rules/sandbox.md +43 -0
  289. package/.pi/settings.json +28 -0
  290. package/.pi/skills/zob-agentic-access/SKILL.md +20 -0
  291. package/.pi/skills/zob-autonomous-runtime/SKILL.md +41 -0
  292. package/.pi/skills/zob-commit/SKILL.md +79 -0
  293. package/.pi/skills/zob-compaction-policy/SKILL.md +92 -0
  294. package/.pi/skills/zob-compute-profile/SKILL.md +108 -0
  295. package/.pi/skills/zob-coms-safety/SKILL.md +54 -0
  296. package/.pi/skills/zob-coms-v2-live/SKILL.md +47 -0
  297. package/.pi/skills/zob-delegation-routing/SKILL.md +82 -0
  298. package/.pi/skills/zob-factory/SKILL.md +28 -0
  299. package/.pi/skills/zob-goal-todo-tree/SKILL.md +279 -0
  300. package/.pi/skills/zob-harness/SKILL.md +68 -0
  301. package/.pi/skills/zob-mission-control-coms/SKILL.md +39 -0
  302. package/.pi/skills/zob-oracle/SKILL.md +21 -0
  303. package/.pi/skills/zob-owner-pool-drill-writer/SKILL.md +244 -0
  304. package/.pi/skills/zob-owner-pool-launcher/SKILL.md +261 -0
  305. package/.pi/skills/zob-project-dna/SKILL.md +275 -0
  306. package/.pi/skills/zob-sandbox/SKILL.md +29 -0
  307. package/.pi/skills/zob-spec/SKILL.md +25 -0
  308. package/.pi/skills/zob-split-refactor/SKILL.md +39 -0
  309. package/.pi/skills/zob-tool-router/SKILL.md +104 -0
  310. package/.pi/teams/zob-core.json +122 -0
  311. package/AGENTS.md +89 -0
  312. package/CONTRIBUTING.md +56 -0
  313. package/LICENSE +21 -0
  314. package/README.md +360 -0
  315. package/SECURITY.md +35 -0
  316. package/SOURCE_INDEX.md +46 -0
  317. package/package.json +135 -0
  318. package/scripts/README.md +57 -0
  319. package/scripts/autonomy/mission-readiness-secret-smoke.mjs +90 -0
  320. package/scripts/compute-profile/plan-workflow.mjs +85 -0
  321. package/scripts/compute-profile/preview.mjs +242 -0
  322. package/scripts/compute-profile/regression-smoke.mjs +38 -0
  323. package/scripts/compute-profile/summarize.mjs +72 -0
  324. package/scripts/compute-profile/validate-policy.mjs +50 -0
  325. package/scripts/compute-profile/validate-preview.mjs +95 -0
  326. package/scripts/compute-profile/validate-workflow.mjs +58 -0
  327. package/scripts/git-ops/commit-policy-smoke.mjs +221 -0
  328. package/scripts/goal-todo/child-goal-ref-smoke.mjs +252 -0
  329. package/scripts/harness-switch/static-smoke.mjs +43 -0
  330. package/scripts/model-catalog/validate-economy.mjs +223 -0
  331. package/scripts/model-catalog/validate.mjs +199 -0
  332. package/scripts/package-surface/validate-script-refs.mjs +190 -0
  333. package/scripts/path-policy/validate-smoke.mjs +103 -0
  334. package/scripts/project-dna/bench-smoke.mjs +217 -0
  335. package/scripts/project-dna/build-capsules.mjs +207 -0
  336. package/scripts/project-dna/build-sample-spec.mjs +140 -0
  337. package/scripts/project-dna/emit-golden-cases.mjs +75 -0
  338. package/scripts/project-dna/emit-ontology.mjs +75 -0
  339. package/scripts/project-dna/generate-sample.mjs +302 -0
  340. package/scripts/project-dna/oracle-review-smoke.mjs +157 -0
  341. package/scripts/project-dna/plan-workflow.mjs +289 -0
  342. package/scripts/project-dna/query-context.mjs +276 -0
  343. package/scripts/project-dna/query-steward.mjs +149 -0
  344. package/scripts/project-dna/scan.mjs +553 -0
  345. package/scripts/project-dna/validate-5of5.mjs +159 -0
  346. package/scripts/project-dna/validate-golden-cases.mjs +78 -0
  347. package/scripts/project-dna/validate-ontology.mjs +97 -0
  348. package/scripts/project-dna/validate-sample-project.mjs +105 -0
  349. package/scripts/project-dna/validate-scaffold.mjs +383 -0
  350. package/scripts/project-dna/validate-scan-artifacts.mjs +187 -0
  351. package/scripts/project-dna/validate-workflow.mjs +166 -0
  352. package/scripts/start-pi.sh +4 -0
  353. package/scripts/worker-pool/static-smoke.mjs +54 -0
  354. package/scripts/zpeer-local-e2e-smoke.mjs +395 -0
  355. package/scripts/zpeer-static-smoke.mjs +129 -0
  356. package/tsconfig.json +12 -0
@@ -0,0 +1,41 @@
1
+ ---
2
+ name: zob-autonomous-runtime
3
+ description: Use when running or reviewing zob_autonomous_* runtime tools, autonomous smoke/validation gates, or no-ship/global autonomy claims.
4
+ ---
5
+ # ZOB Autonomous Runtime Skill
6
+
7
+ ## When to use
8
+
9
+ Use this skill before using or documenting `zob_autonomous_*` tools:
10
+ - `zob_autonomous_dry_run`
11
+ - `zob_autonomous_readonly_smoke`
12
+ - `zob_autonomous_validate_smoke`
13
+ - `zob_autonomous_validate_run`
14
+
15
+ ## Tool routing
16
+
17
+ - Start with the capability registry: `.pi/capabilities/zob-public-runtime-capabilities.json`.
18
+ - Use `zob-factory` for manifests, checkpoints, reports, and factory execution posture.
19
+ - Use `zob-sandbox` for any write-capable or quarantine workflow design.
20
+ - Use `zob-oracle` for validation, no-ship decisions, and final evidence review.
21
+
22
+ ## Gates and meanings
23
+
24
+ - `zob_autonomous_dry_run`: factory-mode planning/report metadata only; no live/global routing and no production writes.
25
+ - `zob_autonomous_readonly_smoke`: factory-mode readonly smoke of reports/artifacts; no child dispatch, daemon, production writes, or global autonomy claim.
26
+ - `zob_autonomous_validate_smoke`: readonly validation of smoke artifacts.
27
+ - `zob_autonomous_validate_run`: readonly validation of run artifacts.
28
+
29
+ ## MUST DO
30
+
31
+ - Treat all autonomy as supervised unless an explicit, later oracle-approved gate says otherwise.
32
+ - Keep dry-run, readonly smoke, validation, and final E2E evidence separate in reports.
33
+ - Require final E2E proof plus oracle PASS/no_ship=false before claiming an autonomous path is complete.
34
+ - Preserve metadata/hash-only posture; never store raw prompt or output bodies in artifacts.
35
+ - Record blockers for missing sentinel/report/validation evidence instead of inferring success.
36
+
37
+ ## MUST NOT
38
+
39
+ - Do not claim global autonomy is complete from dry-run or readonly smoke results.
40
+ - Do not route production writes, daemon behavior, network/browser/API access, or child-agent dispatch through these tools unless the registry and a task-specific gate explicitly allow it.
41
+ - Do not bypass factory quarantine, sandbox, or oracle gates.
@@ -0,0 +1,79 @@
1
+ ---
2
+ name: zob-commit
3
+ description: Use when planning, reviewing, or executing governed ZOB commit/autocommit/autopush behavior through explicit /zcommit commands or the agent-executable zob_zcommit_run tool.
4
+ ---
5
+ # ZOB Commit Skill
6
+
7
+ ## Purpose
8
+
9
+ This skill defines the easy governed commit workflow for ZOB agents. The `/zcommit` runtime command and `zob_zcommit_run` tool prioritize quick, beautiful Conventional Commits over strict per-session ownership tracking: when the user explicitly asks for commit/push, the assistant should use `zob_zcommit_run` instead of asking the user to paste slash commands. Direct git commit/push/tag remains forbidden.
10
+
11
+ Baseline safety remains: do not commit, tag, or push unless the user explicitly asks or `/zcommit autocommit on` / `/zcommit autopush on` authorizes it for the current repo/session scope.
12
+
13
+ ## Allowed command surface
14
+
15
+ Use only these explicit commands/tools. Do not invent aliases, shortcuts, shell fallbacks, or alternate command names.
16
+
17
+ - `/zcommit status [paths/globs...]`
18
+ - `/zcommit plan [paths/globs...]`
19
+ - `/zcommit adopt <paths...>`
20
+ - `/zcommit commit [paths/globs...]`
21
+ - `/zcommit push`
22
+ - `/zcommit autocommit on`
23
+ - `/zcommit autocommit off`
24
+ - `/zcommit autopush on`
25
+ - `/zcommit autopush off`
26
+ - `zob_zcommit_run` tool with `action=plan|commit|push|commit_and_push`
27
+
28
+ ## Hard stops
29
+
30
+ - Do not run direct `git commit`, `git push`, `git tag`, force push, `git add .`, or `git add -A`.
31
+ - Do not commit secrets, credentials, generated runtime artifacts, local ledgers, sessions, logs, temporary files, vendor folders, or build outputs.
32
+ - Do not use `/zcommit adopt` for root/global/broad directory/wildcard adoption; it is an advanced metadata-only ownership hint and should not be needed in normal easy mode.
33
+ - Do not treat autocommit or autopush as enabled unless the corresponding `/zcommit ... on` toggle is active for the current repo/session scope.
34
+ - Do not push if autopush is off, the work is no-ship, the target branch/remote is not allowed, or the last commit was not created by `/zcommit commit`.
35
+
36
+ ## Governed workflow
37
+
38
+ 1. Load `.pi/git-policy.json` and this skill before any governed commit/push work.
39
+ 2. If the user asks the assistant to commit and/or push, call `zob_zcommit_run`; do not answer with instructions for the user to run `/zcommit` manually.
40
+ 3. Run `/zcommit status [paths/globs...]` or `/zcommit plan [paths/globs...]` when the human wants an interactive command, or `zob_zcommit_run action=plan` when the agent needs a plan without staging.
41
+ 4. Normal easy mode does not require `/zcommit adopt`: `/zcommit plan` and `zob_zcommit_run` select all dirty workspace files that pass forbidden-path filtering. When you need “only these session files”, use `zob_zcommit_run scope=session_modified`, or pass explicit repo-relative files, directories, or globs directly to `/zcommit plan` and `/zcommit commit`.
42
+ 5. Optionally run `/zcommit adopt <paths...>` only as an advanced metadata hint for strict/legacy flows; it remains metadata-only and does not stage.
43
+ 6. `/zcommit plan [paths/globs...]` / `zob_zcommit_run action=plan` produces:
44
+ - safe workspace dirty files selected for commit, optionally limited by the pathspecs;
45
+ - forbidden paths excluded from commit;
46
+ - advisory validation command/status;
47
+ - Conventional Commit type/scope/subject/body plan;
48
+ - push target if and only if push is requested or authorized.
49
+ 7. `/zcommit commit [paths/globs...]` and `zob_zcommit_run action=commit|commit_and_push` stage only the selected safe paths with `git add -- <paths>`, never `git add .` or `git add -A`, then create the Conventional Commit. Advisory validation failures are recorded in the commit body instead of blocking easy-mode commit.
50
+ 8. Run `/zcommit push` or `zob_zcommit_run action=push|commit_and_push` when push is explicitly requested, the branch/remote are allowed, the commit was created by the zcommit engine, HEAD still equals that commit, and there are no no-ship blockers. Push is not blocked by advisory validation by default.
51
+
52
+ ## Commit message standard
53
+
54
+ Use Conventional Commits:
55
+
56
+ ```text
57
+ <type>(<scope>): <imperative summary>
58
+
59
+ <body with validation evidence and risk notes when useful>
60
+ ```
61
+
62
+ Allowed default types: `feat`, `fix`, `docs`, `test`, `refactor`, `chore`, `ci`, `build`, `perf`, `revert`.
63
+
64
+ Examples:
65
+
66
+ - `docs(commit): add governed zcommit policy`
67
+ - `fix(coms): preserve live delivery guard`
68
+
69
+ ## Autocommit/autopush defaults
70
+
71
+ - `autocommit` defaults to `off`.
72
+ - `autopush` defaults to `off`.
73
+ - Turning autocommit on with `/zcommit autocommit on` authorizes the assistant to create an easy Conventional Commit automatically at assistant message end when safe workspace changes exist.
74
+ - Turning autopush on with `/zcommit autopush on` remains separate and requires autocommit to be on first.
75
+ - Autopush never implies force push, tag creation, or bypassing branch/remote/no-ship gates.
76
+
77
+ ## Easy workspace file rule
78
+
79
+ A governed easy commit may include all dirty workspace files that pass forbidden-path filtering, or a narrower explicit subset when pathspecs are passed to `/zcommit plan` / `/zcommit commit`. Pathspecs can be repo-relative files, directories, or globs such as `.pi/skills/zob-*/SKILL.md`. The policy should exclude secrets, credentials, generated/runtime ledgers, sessions, logs, temporary files, vendor folders, and build outputs. `/zcommit commit` still stages explicit selected paths only; it never stages the entire workspace through `git add .` or `git add -A`.
@@ -0,0 +1,92 @@
1
+ ---
2
+ name: zob-compaction-policy
3
+ description: Use when reviewing, designing, triggering, or recovering from ZOB/Pi context compaction, branch summaries, long-goal continuation, or post-compaction skill/context reloads.
4
+ ---
5
+ # ZOB Compaction Policy Skill
6
+
7
+ ## When to use
8
+
9
+ Use this skill when:
10
+
11
+ - context usage is high or compaction happened recently;
12
+ - a runtime `/goal` continuation is near context limits;
13
+ - `/tree` branch summarization may lose important ZOB state;
14
+ - the agent must resume work from a compacted summary;
15
+ - changing compaction hooks, context summaries, prompt stacks, or session continuity behavior.
16
+
17
+ Canonical policy doc: `docs/ZOB_COMPACTION_POLICY.md`.
18
+
19
+ ## Core rule
20
+
21
+ A ZOB compaction summary is a **continuity index**, not the source of truth. Preserve refs, decisions, state, evidence, blockers, and next actions; reload detailed skills/docs/files by path when needed.
22
+
23
+ ## Source-of-truth hierarchy
24
+
25
+ 1. Persisted ZOB state and ledgers.
26
+ 2. Repo files and cited artifacts.
27
+ 3. Compaction or branch summary.
28
+ 4. Model memory from before compaction.
29
+
30
+ Prefer `get_goal`, `get_goal_todos`, safe file reads, reports, and validation artifacts over assumptions from memory.
31
+
32
+ ## Mandatory preservation checklist
33
+
34
+ When creating or reviewing a compaction summary, ensure it captures:
35
+
36
+ - original user ask, constraints, non-goals, success criteria;
37
+ - active ZOB mode and role boundary;
38
+ - runtime goal id/objective/status/oracle/no-ship state;
39
+ - TODO graph summary, active/open/blocked/delegated/claim-returned TODOs, evidence refs, validation commands, next TODO;
40
+ - current work thread: current slice, last action, next exact action, what not to redo;
41
+ - critical skill/prompt/doc/source/report refs to reload;
42
+ - key decisions and rationale;
43
+ - files read/modified and why they matter, without full bodies;
44
+ - delegation run ids, agents, statuses, gate result, no-ship/evidence summary;
45
+ - validations and artifact refs;
46
+ - blockers and hard/review/effective no-ship;
47
+ - reload rules;
48
+ - body policy: refs/hashes only for persisted metadata.
49
+
50
+ ## Budget policy
51
+
52
+ - Target: 3k-5k tokens.
53
+ - Hard cap: 8k tokens.
54
+ - Small tasks: 1k-2k tokens.
55
+ - If over budget, shrink resolved details, verbose subagent summaries, superseded validations, and long file lists before touching blockers/no-ship/TODO/next action.
56
+
57
+ ## Refs-not-bodies policy
58
+
59
+ Do not paste full skills, prompts, file bodies, raw subagent outputs, raw diffs, raw tool outputs, secrets, or credentials. Keep refs and reload rules instead.
60
+
61
+ Examples:
62
+
63
+ ```text
64
+ critical_skill_refs:
65
+ - .pi/skills/zob-tool-router/SKILL.md
66
+ - .pi/skills/zob-goal-todo-tree/SKILL.md
67
+ - .pi/skills/zob-compaction-policy/SKILL.md
68
+
69
+ reload_rules:
70
+ - Re-read the relevant skill before applying detailed behavior.
71
+ - Re-read changed files before editing after compaction.
72
+ ```
73
+
74
+ ## Post-compaction behavior
75
+
76
+ After compaction:
77
+
78
+ 1. Trust persisted state and artifacts over summary prose.
79
+ 2. Re-read critical skills/docs/files before detailed changes.
80
+ 3. Re-check active goal/TODO state before completing or delegating.
81
+ 4. Re-run or inspect validation evidence before claiming success.
82
+ 5. If blockers/no-ship were compacted, resolve them explicitly before completion.
83
+
84
+ ## No-ship conditions
85
+
86
+ Treat these as blockers:
87
+
88
+ - compaction summary lost active goal/TODO/blocker state;
89
+ - raw prompt/output/diff bodies are stored in ZOB compaction details or ledgers;
90
+ - post-compaction completion relies only on summary memory;
91
+ - critical skill/doc refs are missing for a long-running or delegated task;
92
+ - no-ship or oracle status is unknown but completion is attempted.
@@ -0,0 +1,108 @@
1
+ ---
2
+ name: zob-compute-profile
3
+ description: "Use when selecting, previewing, validating, or implementing ZOB compute/effort profiles: auto, low, medium, high, xhigh, max."
4
+ ---
5
+ # ZOB Compute Profile Skill
6
+
7
+ ## Purpose
8
+
9
+ Compute profiles control how much workflow effort ZOB spends on a task. They are hard policy/cap inputs, not vague encouragement to “try harder”.
10
+
11
+ Canonical plan:
12
+
13
+ - `docs/ZOB_COMPUTE_PROFILE_ROUTING_PLAN.md`
14
+
15
+ ## Profiles
16
+
17
+ ```text
18
+ auto → preview then resolve to low/medium/high/xhigh/max
19
+ low → single-agent or deterministic fast path
20
+ medium → small supervised workflow
21
+ high → multi-lane workflow with validation/oracle
22
+ xhigh → extra-high expert workflow with richer benchmarks and adversarial review
23
+ max → maximum bounded supervised workflow; requires strict budget/human gates
24
+ ```
25
+
26
+ ## TODO/delegation behavior by profile
27
+
28
+ - `low`: single-agent/best-effort. Do not spend extra turns on recursive split or background child orchestration; return incomplete/blocked if the box is too small.
29
+ - `medium`: small supervised workflow. A child may suggest a split in final output, but live/background escalation is not the default.
30
+ - `high`: multi-lane parent-owned workflow. Use active-session background delegation when useful, and let TODO-linked children return `TODO_SPLIT_REQUEST.v1` early when the TODO is too broad for their context.
31
+ - `xhigh`: same as high with deeper bounded decomposition and stronger validation/oracle.
32
+ - `max`: same as xhigh, but strict budget/human/oracle gates are mandatory before scale-up.
33
+
34
+ Even at high/xhigh/max, child agents must not directly spawn children or mutate parent TODO state; they request split/replan and the parent applies it.
35
+
36
+ ## Required behavior
37
+
38
+ Before using compute to justify more work:
39
+
40
+ 1. Run or inspect a compute preview when `requested_profile=auto`.
41
+ 2. Resolve to an effective profile and hard caps.
42
+ 3. Keep child dispatch parent-owned; child direct dispatch remains forbidden.
43
+ 4. Keep safety, budget, path, and sandbox gates stronger than profile preference.
44
+ 5. Persist only metadata/hash-safe artifacts; do not persist raw task/prompt/output bodies.
45
+ 6. Treat `max` as approval-gated; do not auto-select it silently.
46
+
47
+ ## Native surfaces
48
+
49
+ - Slash commands:
50
+ - `/compute`
51
+ - `/effort`
52
+ - Runtime tools:
53
+ - `zob_compute_preview`
54
+ - `zob_compute_resolve_profile`
55
+ - `zob_compute_plan_workflow`
56
+ - `zob_compute_validate_profile`
57
+ - `zob_compute_write_profile_reports`
58
+ - Deterministic scripts:
59
+ - `npm run preview:compute-profile:project-dna-smoke`
60
+ - `npm run validate:compute-profile:project-dna-smoke`
61
+ - `npm run plan:compute-workflow:project-dna-smoke`
62
+ - `npm run validate:compute-workflow:project-dna-smoke`
63
+ - `npm run snapshot:compute-profile:project-dna-smoke`
64
+ - `npm run smoke:compute-profile-regression`
65
+ - Policy files:
66
+ - `.pi/compute-profiles/defaults.json`
67
+ - `.pi/compute-profiles/overrides.json`
68
+ - `.pi/compute-profiles/risk-rules.json`
69
+ - `npm run validate:compute-profile-policy`
70
+ - Plan/doc:
71
+ - `docs/ZOB_COMPUTE_PROFILE_ROUTING_PLAN.md`
72
+
73
+ ## No-ship rules
74
+
75
+ Block profile readiness if any occur:
76
+
77
+ - requested/effective profile mismatch is unexplained;
78
+ - caps are missing for a live or agentic workflow;
79
+ - child agents exceed `maxAgents`, `maxParallel`, or depth caps;
80
+ - strict budget is required but absent;
81
+ - oracle is required but missing;
82
+ - `max` is used without human/scale approval;
83
+ - profile is used to bypass secrets/path/sandbox/write policy;
84
+ - compute artifacts contain raw body/prompt/output/content/diff/patch text;
85
+ - telemetry or validation evidence is missing.
86
+
87
+ ## ProjectDNA mapping
88
+
89
+ ProjectDNA should use compute profile as stage selection metadata:
90
+
91
+ ```text
92
+ low → scan + scan validation
93
+ medium → scan + validation + capsules + sample spec + one query
94
+ high → medium + quarantine sample + sample validation + benchmark + oracle
95
+ xhigh → high + specialist lanes + richer query suite + adversarial review
96
+ max → xhigh + multi-reference/symbol/callgraph/promotion packet gates
97
+ ```
98
+
99
+ Reference projects remain read-only, generated sample output remains quarantine/proposal-only, and external knowledge-backend import/sync/embed/write remains disabled unless explicitly approved.
100
+
101
+ ## Final response shape
102
+
103
+ ```text
104
+ <result>effective profile/caps or implemented surface</result>
105
+ <evidence>artifact paths and validation commands</evidence>
106
+ <risks_blockers>remaining gaps/no-ship risks</risks_blockers>
107
+ <compliance>profile did not bypass safety/budget/oracle gates</compliance>
108
+ ```
@@ -0,0 +1,54 @@
1
+ ---
2
+ name: zob-coms-safety
3
+ description: Use when reviewing or modifying ZOB communication, ledgers, Mission Control coms, or live transport safety gates.
4
+ ---
5
+ # ZOB Coms Safety Skill
6
+
7
+ ## Safety invariants
8
+
9
+ ZOB coms live transport may be transient, but ZOB audit must stay metadata-only.
10
+
11
+ ## MUST DO
12
+
13
+ - Preserve `.pi/coms/messages.jsonl` and `.pi/coms/status.jsonl` as canonical hash-only ledgers.
14
+ - Keep `bodyStored=false` for persisted coms records.
15
+ - Use `taskHash`, `outputHash`, `artifactRefs`, `sessionHash`, and `endpointHash` instead of raw content.
16
+ - Validate topology before any live or ledger send.
17
+ - Keep Orchestrator -> Lead, Lead -> Worker, Worker -> Lead as the normal topology for direct role-to-role messages.
18
+ - Allow Shared Goal Room messages only when they are parent-visible, typed, metadata/hash-only, and not hidden worker-to-worker free chat.
19
+ - Treat governed requests (`DELEGATION_REQUEST.v1`, `ORACLE_REQUEST.v1`, `CONTEXT_REQUEST.v1`, `OWNER_CHANGE_REQUEST.v1`) as proposals only: parent/governor decides; extraction must not dispatch, mutate TODO state, apply owner changes, or store raw bodies.
20
+ - Treat stale/offline as blockers, not completion evidence.
21
+ - Keep Mission Control commands proposal-only and parent-owned.
22
+ - Run body-free checks before claiming PASS.
23
+
24
+ ## MUST NOT
25
+
26
+ - No raw `body`, `task`, `prompt`, `output`, `content`, `message`, `text`, `rationale`, `diff`, or `patch` keys in persisted ZOB ledgers or Mission Control artifacts.
27
+ - No hidden worker-to-worker free chat; use typed parent-visible Goal Room messages instead.
28
+ - No direct worker writes from Mission Control.
29
+ - No network transport without bearer token/locality/TLS policy.
30
+ - No silent fallback from required live delivery to append-only success.
31
+ - No token/secret logging.
32
+
33
+ ## Goal Room and owner-pool safety
34
+
35
+ For parallel owner micro-worker pools:
36
+
37
+ - Goal Room is canonical for parent-visible coordination, decisions, owner requests, and evidence refs.
38
+ - ZPeer is transient/live assist only; use it for immediate local questions, then summarize decisions as typed Goal Room metadata when they affect scope, ownership, or merge readiness.
39
+ - Enforce read-across/write-by-owner: workers may read sibling outputs and owner summaries, but only the assigned owner writes its owned paths/leaf. Non-owners send `OWNER_CHANGE_REQUEST.v1`/governed request metadata and wait for owner/parent decision.
40
+ - For `--no-extensions` children, use final-output `OWNER_CHANGE_REQUEST.v1` blocks with `requested_by`, `owner_worker`, `requested_paths`, `body_hash`, `change_hash`, `reason_hash`, optional `validation_plan_hash`, safe refs, and `FINAL_MARKER: OWNER_CHANGE_REQUEST_END`; parent extraction appends Goal Room metadata only.
41
+ - Owner decisions are parent-visible and typed: approve, deny, defer, split, or escalate-to-parent/oracle. Approval is not an apply/merge.
42
+ - Peer writes, hidden free chat, stale/offline success, direct main-workspace writes, missing validation, or missing oracle on risky merge readiness are no-ship blockers.
43
+
44
+ ## No-ship triggers
45
+
46
+ No-ship if:
47
+ - `.pi/coms` contains raw prompt/output/body-like fields;
48
+ - live send succeeds while receiver is absent/stale/offline;
49
+ - await treats timeout/stale/offline as success;
50
+ - hidden worker-to-worker free chat works outside a typed parent-visible Goal Room;
51
+ - a non-owner writes owned paths instead of sending an owner request;
52
+ - a worker applies or merges directly into the main workspace;
53
+ - network starts without explicit auth/locality policy;
54
+ - `zob_coms_readiness` fails.
@@ -0,0 +1,47 @@
1
+ ---
2
+ name: zob-coms-v2-live
3
+ description: Use when an active ZOB handoff, live peer question, required-local coms delivery, or orchestration message is needed.
4
+ ---
5
+ # ZOB Coms v2 Live Skill
6
+
7
+ ## When to use
8
+
9
+ Use this skill when:
10
+ - sending active handoffs between ZOB roles;
11
+ - awaiting a live peer response;
12
+ - diagnosing live peer presence, stale, or offline state;
13
+ - working on `zob_coms` v2 runtime, registry, heartbeat, local transport, or response capture.
14
+
15
+ ## MUST DO
16
+
17
+ - Use the canonical `zob_coms_*` tools; do not invent a parallel API.
18
+ - Treat `zob_coms_send` as live-first when policy mode is `required_local` or `required_network`.
19
+ - Include `transientBody` only for live transport delivery; it must never be stored in `.pi/coms`.
20
+ - Use `taskHash`, `outputHash`, and `artifactRefs` for durable evidence.
21
+ - Treat missing ACK, stale peer, offline peer, timeout, or transport error as blocker evidence.
22
+ - For parallel owner pools, treat Goal Room as canonical for owner requests/decisions; ZPeer is optional transient live assist only.
23
+ - For children launched without harness extensions, owner-change coordination is via final-output `OWNER_CHANGE_REQUEST.v1` blocks extracted by the parent, not direct child Goal Room/ZPeer writes.
24
+ - When a live answer changes ownership, scope, conflict, or merge readiness, mirror only typed hash/body-free metadata to Goal Room.
25
+ - Let the runtime capture normal inbound responses when handling live prompts.
26
+ - Prefer `zob_coms_get` / `zob_coms_await` with the `msgId` returned by your own send.
27
+
28
+ ## MUST NOT
29
+
30
+ - Do not store raw prompt/task/output/body/content/text/rationale/diff/patch in `.pi/coms`.
31
+ - Do not use `zob_coms_send` to create worker-to-worker free chat.
32
+ - Do not use ZPeer to bypass parent-owned owner arbitration, TODO split, sandbox, merge, or oracle gates.
33
+ - Do not mark `queued`, `planned`, stale, or offline as completion.
34
+ - Do not create ping-pong loops; answer the inbound live prompt normally.
35
+ - Do not bypass topology guards.
36
+ - Do not enable network transport without explicit auth/locality policy.
37
+
38
+ ## Expected pattern
39
+
40
+ ```text
41
+ zob_coms_send
42
+ -> topology guard
43
+ -> live peer lookup/heartbeat
44
+ -> live ACK or blocker
45
+ -> hash-only ledger mirror
46
+ -> await response or terminal error
47
+ ```
@@ -0,0 +1,82 @@
1
+ ---
2
+ name: zob-delegation-routing
3
+ description: Use before delegating to ZOB specialist agents, choosing delegate_agent/delegate_task, selecting an agent, or deciding whether to set output_contract.
4
+ ---
5
+ # ZOB Delegation Routing Skill
6
+
7
+ ## When to use
8
+
9
+ Use this skill whenever you are about to call `delegate_agent` or `delegate_task`, especially the first delegation in a turn or when agent/contract routing is uncertain.
10
+
11
+ ## Mandatory routing check
12
+
13
+ 1. If you are not certain which agent or output contract to use, call `zob_delegation_catalog` first.
14
+ 2. Choose the agent by the deliverable you need.
15
+ 3. Model routing is advisory unless current runtime availability/authentication is proven: normally omit `delegate_task.model` and `delegate_agent.model` so the child uses the parent/session default. A configured, desired, catalogued, or class-mapped model is not evidence that the provider is currently available/authenticated. Set an explicit `model` override only when you have current runtime proof that the concrete model/provider is usable for this session, or when the user explicitly accepts that risk. If proof is missing, omit `model`; never let a catalog preference create a launch-blocking unavailable-provider override. Never downgrade oracle/security work to a weak or unverified default.
16
+ 4. Normally omit `delegate_task.output_contract`; the harness infers the correct contract from the selected agent.
17
+ 5. Normally omit `delegate_task.required_tools`; the harness infers the selected agent's declared tools.
18
+ 6. Never invent output contract IDs or add tools not shown for the chosen agent in `zob_delegation_catalog`.
19
+ 7. Treat preflight as a safety net, not as the first source of routing information.
20
+
21
+ ## Common agent routing
22
+
23
+ - Need read-only facts, file mapping, gaps, or context: use `explore` (`explore.v1`).
24
+ - Need an implementation plan, TDD ladder, stop conditions, or handoff: use `planner` (`plan.v1`).
25
+ - Need bounded source edits: use `implementer` (`implement.v1`) with scoped `allowed_paths`.
26
+ - Need skeptical review, audit verdict, `PASS/WARN/FAIL`, blockers, or `no_ship`: use `oracle` (`oracle.v1`).
27
+ - Need verification/reproduction evidence: use `qa` (`qa.v1`).
28
+ - Need sourced reusable research/context: use `librarian` (`research.v1`).
29
+ - Need spec from a fuzzy request: use `specifier` (`spec.v1`).
30
+ - Need clarification before planning: use `clarifier` (`clarification.v1`).
31
+ - Need factory design: use `factory` (`factory.v1`).
32
+
33
+ ## Output contract rules
34
+
35
+ - `delegate_agent` always infers the output contract from the agent.
36
+ - `delegate_task` infers the output contract from the agent when `output_contract` is omitted.
37
+ - Set `output_contract` only for an intentional, exact override with a known valid ID.
38
+ - There is no default `audit.v1`; audit/review work should usually route to `oracle` with `oracle.v1`.
39
+ - There is no `implementation_report.v1`; implementation reports use `implement.v1`.
40
+
41
+ ## Tool routing rules
42
+
43
+ - **Write-enabled `delegate_task` hard rule:** when effective tools include `edit` or `write` (either inferred from the agent or supplied via `required_tools`), always set top-level `original_user_ask` to the original human request. Putting the user ask inside `context` or the task text is not enough for the strict write preflight gate.
44
+ - `delegate_task` structured JSON fields should use canonical snake_case. Safe aliases are normalized only when non-conflicting; conflicting canonical/alias values are blocked with no child launched.
45
+
46
+ | Canonical `delegate_task` field | Accepted safe aliases |
47
+ | --- | --- |
48
+ | `expected_outcome` | `expectedOutcome` |
49
+ | `required_tools` | `requiredTools` |
50
+ | `must_do` | `mustDo` |
51
+ | `must_not_do` | `mustNotDo`, `must_not`, `mustNot` |
52
+ | `original_user_ask` | `originalUserAsk` |
53
+ | `allowed_paths` | `allowedPaths` |
54
+ | `forbidden_paths` | `forbiddenPaths` |
55
+ | `output_contract` | `outputContract` |
56
+ | `run_in_background` | `runInBackground` |
57
+ | `child_goal` | `childGoal` |
58
+ | `load_skills` | `loadSkills` (still reserved/non-empty values are gated) |
59
+
60
+ - `delegate_task` infers `required_tools` from the selected agent when omitted.
61
+ - Omit `delegate_task.model`/`delegate_agent.model` by default. Explicit model overrides are exceptional and require current availability/auth proof for the concrete provider/model; desired/configured/catalogued models are preferences only, not availability. Fallback is to omit `model` and use the parent/session default.
62
+ - Set `required_tools` only to narrow the agent's tools, not to add tools.
63
+ - Do not request `bash` for `planner`; planner is read-only with `read`, `grep`, `find`, and `ls`.
64
+ - If a task truly needs `bash`, choose an agent whose catalog entry allows `bash`, or keep the work in the parent if appropriate.
65
+
66
+ ## Safety reminders
67
+
68
+ - For write/edit tools, set top-level `original_user_ask`, non-empty repo-relative-only `allowed_paths`, and safe `forbidden_paths`.
69
+ - `allowed_paths` are capability grants and must never be absolute, home-relative (`~`), traversal (`..`), broad roots (`.`), or contain NUL. If external context is needed, first create/cite a repo-local snapshot or `context_ref` under `reports/...` and pass that repo-relative ref.
70
+ - `forbidden_paths` are deny-only patterns; they may be repo-local, absolute, or home-relative when specific and safe, but broad roots remain rejected.
71
+ - Preserve the six-part contract: TASK / EXPECTED OUTCOME / REQUIRED TOOLS / MUST DO / MUST NOT DO / CONTEXT.
72
+ - Do not ask child agents to mark parent goals or TODOs complete directly; children return evidence/claims for parent review.
73
+ - For TODO-linked delegation, refresh with `get_goal_todos` first and use `child_goal.todo_id=<canonical-active-todo-id>` only when that id is freshly verified. If only the visible path is known, set `child_goal.todo_path=<visible-todo-path>`; do not fabricate shorthand ids. The parent runtime can resolve unique active paths/shorthands to canonical ids, and blocks stale refs with active-id hints.
74
+ - Safe auto-open/delegation is for runtime-delegatable TODOs (`planned`, `ready`, `in_progress`, `needs_review`) only when no active child/run owns the leaf. Recover delegated/recovery TODOs only when no active child/run owns the leaf; otherwise block/review instead of redelegating.
75
+ - Split-before-parallel: no same-leaf parallel write workers. If a TODO needs multiple agents or is too broad, parent splits it into subtodos first and dispatches one bounded owner per leaf.
76
+ - For parallel owner micro-worker pools, parents may use `zob_worker_pool_plan`/`zob_worker_pool_status` to record body-free assignment metadata before launch, but those tools do not dispatch children. Each actual child launch still goes through parent-owned `delegate_task`/`delegate_agent` with explicit owned/write paths, optional read-across refs, repo-relative `allowed_paths`, safe `forbidden_paths`, and TODO linkage.
77
+ - Read-across permits inspection and evidence synthesis only; it never grants write permission.
78
+ - Non-owner changes require a typed parent-visible owner request (`zob_worker_pool_owner_request`, `OWNER_CHANGE_REQUEST.v1`, or governed request) with requested path, reason/evidence hashes or refs, risk, and validation plan. Children without harness extensions may emit an `OWNER_CHANGE_REQUEST.v1` final-output block for parent-side `zob_governed_request_extract`; they must not call Goal Room/ZPeer directly. The owner/parent may approve, deny, defer, split, or escalate via `zob_worker_pool_owner_decision`/Goal Room; approval is not merge/apply and does not launch children.
79
+ - Goal Room is the canonical coordination surface for owner requests/decisions. ZPeer may be used for transient local clarification only and must not become hidden worker-to-worker free chat.
80
+ - Children must not dispatch children, mutate parent TODOs, apply split decisions, or write outside their owned paths.
81
+ - For TODO-linked high/xhigh/max work, children that discover the assigned TODO is too broad or needs deeper XDEF decomposition should return `TODO_SPLIT_REQUEST.v1` or a metadata-only split request; the parent validates and applies `split_goal_todo`.
82
+ - `delegate_task(run_in_background=true)` is active-session only: it returns a run id immediately, can be inspected with `get_delegation_run`, and can be waited on with bounded `await_delegation_run`; it does not start an always-on daemon.
@@ -0,0 +1,28 @@
1
+ ---
2
+ name: zob-factory
3
+ description: Use when designing or running repeatable software factories with manifests, checkpoints, validators, sentinels, smoke/pilot/batch gates.
4
+ ---
5
+ # ZOB Factory Skill
6
+
7
+ ## When to use
8
+
9
+ Use when the task is repeated, batchable, or should become a reusable system rather than a one-off feature.
10
+
11
+ ## Workflow
12
+
13
+ 1. Spec first: define input manifest, outputs, validators, and no-ship rules.
14
+ 2. Factory design: deterministic scaffolding first, LLM enrichment second.
15
+ 3. Smoke: one item only.
16
+ 4. Oracle: require validation evidence before pilot/batch.
17
+ 5. Pilot: 10 items max with bounded concurrency.
18
+ 6. Batch: only after pilot sentinel and oracle gate.
19
+
20
+ ## Required artifacts
21
+
22
+ - `manifest.json`
23
+ - `agentic-plan.json`
24
+ - `checkpoints/`
25
+ - `outputs/`
26
+ - `validation.json`
27
+ - phase sentinel (`SMOKE_PASSED.sentinel`, `PILOT_PASSED.sentinel`, or `BATCH_PASSED.sentinel`)
28
+ - `DONE.sentinel` only after validation passes