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,21 @@
1
+ ---
2
+ description: Create a read-only implementation plan with TDD, validation, commits, and stop conditions
3
+ argument-hint: "<goal>"
4
+ ---
5
+ Switch to `/zmode plan` if not already there.
6
+
7
+ Plan this goal without editing files: $ARGUMENTS
8
+
9
+ Before detailed planning, apply `.pi/skills/zob-tool-router/SKILL.md` when the task is non-trivial or tool selection is ambiguous. Use the smallest sufficient tool set and state which major families are in/out when that affects the plan.
10
+
11
+ Output must include:
12
+ 1. Scope table: in / out / forbidden.
13
+ 2. Tool routing summary: selected mode, applicable families, selected skills, and intentionally skipped heavy families.
14
+ 3. Assumptions and open questions.
15
+ 4. Likely files: primary vs only-if-needed.
16
+ 5. TDD sequence with test names/assertions.
17
+ 6. Implementation steps by smallest safe slice.
18
+ 7. Validation ladder: minimum per slice vs full close.
19
+ 8. Atomic commit strategy. State: no commit unless explicitly requested.
20
+ 9. Risks and stop conditions, including: if a human-decision blocker is already recorded (score >=90, no `nextAgent`, paused goal, visible blocker), report once and wait for `/goal resume`/`resume_goal`; do not repeat the ask or redispatch.
21
+ 10. Handoff prompt for implementer using the six-part contract.
@@ -0,0 +1,90 @@
1
+ ---
2
+ description: Start a ProjectDNA code knowledge graph / neutral sample factory workflow from a trusted reference project folder
3
+ argument-hint: "<source_project_path or manifest>"
4
+ ---
5
+ Switch to `/zmode factory` if not already there.
6
+
7
+ Load `.pi/skills/zob-project-dna/SKILL.md` and keep `.pi/skills/zob-factory/SKILL.md`, `.pi/skills/zob-sandbox/SKILL.md`, `.pi/skills/zob-oracle/SKILL.md`, and `.pi/skills/zob-harness/SKILL.md` in scope.
8
+
9
+ Start ProjectDNA for: $ARGUMENTS
10
+
11
+ Treat ProjectDNA as agents-first: the agent owns intake, scope, capture goal, safety gates, validation, oracle, and promotion posture. Deterministic npm scripts and factory runs are tools for producing cited artifacts; they are not the primary control plane and must not be described as autonomous external-project scanning or backend writeback.
12
+
13
+ For a 5/5 agentic run, require these specialist gates before claiming success: Safety Preflight, Repo Scout, Ontology Steward, Query Steward, Pattern Miner, Symbol Range Curator, Test Linker, Sample Architect, Golden Evaluator, and ProjectDNA Oracle. Query Steward must rewrite transient questions into controlled ontology/golden-case intent without persisting raw query text. Golden Evaluator must pass all golden cases before Oracle PASS/no_ship=false.
14
+
15
+ Output:
16
+
17
+ 1. **Intake scope**
18
+ - source_project_path or manifest path
19
+ - source_id
20
+ - allowed_paths
21
+ - forbidden_patterns
22
+ - sample_domain
23
+ - capture_mode: execution posture: `plan_only`, `read_only_scan`, `sandbox_sample_generation`, or `runtime_query_existing_artifacts`
24
+ - semantic_capture_mode: knowledge posture: `full_capture`, `architecture_only`, `targeted_capture`, `sample_first`, or `context_only`
25
+ - capture_goal: bounded pattern/question to capture
26
+ - user_note: optional operator guidance; not evidence and not a citation
27
+ - compute profile: `auto`, `low`, `medium`, `high`, `xhigh`, or `max` (default `auto`)
28
+ - compute caps, if any
29
+ - execution mode: `plan_only`, `read_only_scan`, or `sandbox_sample_generation`
30
+ - promotion policy, default `proposal_only`
31
+
32
+ 2. **Safety preflight**
33
+ - Confirm no `.env`, keys, credentials, `node_modules`, `dist`, `build`, `.git`, or generated/vendor folders are read.
34
+ - Confirm the source project remains read-only.
35
+ - Confirm outputs stay under `reports/factory-runs/<run_id>/` or approved sandbox/quarantine.
36
+ - Confirm no external knowledge-backend import, sync, embed, or write is performed unless explicitly approved.
37
+
38
+ 3. **Compute preview and workflow plan**
39
+ - if compute profile is `auto`, run or recommend `npm run preview:compute-profile:project-dna-smoke` for the safe smoke target, or create a bounded real-run preview artifact for approved paths;
40
+ - validate preview/resolution with `npm run validate:compute-profile:project-dna-smoke` or the matching artifact validator;
41
+ - choose profile-specific stages: auto=metadata-only preview/resolve then apply resolved profile, low=scan+scan validation, medium=low+capsules/spec/one query, high=medium+quarantine sample/sample validation/benchmark/oracle, xhigh=high+specialist lanes/richer query/adversarial review, max=xhigh+multi-reference/symbol/callgraph/promotion packet with strict human/budget/oracle gates;
42
+ - deterministic scanner artifacts;
43
+ - Developer DNA synthesis artifacts;
44
+ - neutral sample generation path, if approved;
45
+ - code knowledge graph and capsule outputs;
46
+ - benchmark smoke query;
47
+ - validation and oracle gates.
48
+
49
+ 4. **Factory action**
50
+ - If only planning/scaffold validation is requested, run or recommend:
51
+ - `npm run validate:project-dna`
52
+ - `npm run preview:compute-profile:project-dna-smoke`
53
+ - `npm run validate:compute-profile:project-dna-smoke`
54
+ - `factory_run` with `.pi/factories/project-dna/smoke-manifest.json` in `plan_only` or deterministic smoke mode.
55
+ - If scanner smoke is requested, run `npm run smoke:project-dna-scan`; it scans only `.pi/factories/project-dna` and writes metadata under `reports/project-dna-scans/project-dna-factory-smoke/`.
56
+ - After scanner smoke, run `npm run validate:project-dna-scan:smoke` to verify artifacts, line-range citations, and no-write posture.
57
+ - If pointer capsules are requested after scanner smoke, run `npm run build:project-dna-capsules:smoke`; it reads scan metadata only.
58
+ - If neutral sample planning is requested, run `npm run build:project-dna-sample-spec:smoke`; it creates a spec only and does not generate code.
59
+ - If quarantine sample smoke is requested, run `npm run generate:project-dna-sample:smoke` then `npm run validate:project-dna-sample:smoke`; generation must stay under `reports/.../quarantine/`.
60
+ - If runtime-style context lookup is requested, prefer `zob_project_dna_query` against an existing `reports/project-dna-scans/...` directory; `npm run query:project-dna:smoke` remains the deterministic CLI smoke. Raw query text must be hashed/not persisted and output must be bounded/cited.
61
+ - For multi-source proposal-only context, use `zob_project_dna_federated_query`; it must preserve source isolation and never write a backend.
62
+ - For 5/5 agentic smoke, run `npm run emit:project-dna-ontology:smoke`, `npm run validate:project-dna-ontology:smoke`, `npm run emit:project-dna-golden-cases:smoke`, `npm run validate:project-dna-golden-cases:smoke`, and `npm run steward:project-dna-query:smoke` before benchmark/oracle.
63
+ - Before treating ProjectDNA smoke as ready, run `npm run bench:project-dna:smoke`, `npm run oracle:project-dna:smoke`, and `npm run validate:project-dna-5of5:smoke`; these do not grant durable promotion.
64
+ - If a real project path is requested, require explicit `allowed_paths` and produce a bounded manifest before scanning.
65
+ - Use `capture_mode` strictly: `plan_only` never scans source; `read_only_scan` reads only approved paths; `sandbox_sample_generation` writes only quarantine/sandbox outputs; `runtime_query_existing_artifacts` queries existing artifacts only.
66
+ - Use `semantic_capture_mode` for knowledge depth: `full_capture` for small complete references, `architecture_only` for huge repos or architecture notes, `targeted_capture` for named domains/features, `sample_first` for neutral sample priority, and `context_only` for lookup packs only.
67
+ - Use `capture_goal` to bound scanner/capsule/query priorities; treat `user_note` as operator intent only and never as source truth.
68
+
69
+ 5. **Context integration**
70
+ - Use `zob_context_validate_scope` before runtime context lookup when injecting context into another task.
71
+ - Use `zob_project_dna_readiness` to audit repo-local ProjectDNA readiness.
72
+ - Use `zob_project_dna_query` or `/project-dna query ...` for bounded cited pointers from existing scan artifacts.
73
+ - Use `zob_project_dna_writeback_proposal` only for hash-only local learning proposals; no durable promotion.
74
+ - Return bounded context packs only.
75
+ - Every ProjectDNA fact, pattern, and capsule must cite source/sample files.
76
+
77
+ 6. **No-ship checks**
78
+ - secrets or forbidden paths touched;
79
+ - source project modified;
80
+ - missing/invalid citations;
81
+ - sample validation failed;
82
+ - unapproved external knowledge-backend writes;
83
+ - oracle `no_ship=true`.
84
+
85
+ Final answer:
86
+ - changed/generated files or planned artifacts;
87
+ - validation commands/results;
88
+ - no-ship risks and next slice;
89
+ - compliance line;
90
+ - `deliverable_delivered: yes/no`.
@@ -0,0 +1,23 @@
1
+ ---
2
+ description: Run skeptical read-only equivalence review for a split-only refactor slice
3
+ argument-hint: "<slice or changed files>"
4
+ ---
5
+ Use `delegate_task` with agent `refactor-oracle` to review: $ARGUMENTS
6
+
7
+ Review contract:
8
+ 1. TASK: Skeptically verify that the split-only refactor slice preserves observable behavior.
9
+ 2. EXPECTED OUTCOME: PASS / FAIL / WARN with confidence, blockers, evidence, no_ship, and next steps.
10
+ 3. REQUIRED TOOLS: read, grep, find, ls, safe read-only bash.
11
+ 4. MUST DO:
12
+ - Check changed files and validation logs.
13
+ - Compare exports/registrations to baseline if provided.
14
+ - Verify `index.ts` status matches the phase contract.
15
+ - Search for forbidden `src/** -> index.ts` imports.
16
+ - Check NodeNext `.js` suffixes for relative runtime imports.
17
+ 5. MUST NOT DO:
18
+ - No patches, no commits, no formatting, no secret reads.
19
+ - Do not return PASS without concrete evidence.
20
+ 6. CONTEXT:
21
+ - Playbook: `docs/ZOB_HARNESS_INDEX_REFACTOR_PLAYBOOK.md`.
22
+ - Baseline artifacts: `.pi/tmp/refactor-baseline/`.
23
+ - Validation ladder: `npm run check -- --pretty false`, `npm run smoke:harness`, `npm run pi:check`, phase-specific gates.
@@ -0,0 +1,24 @@
1
+ ---
2
+ description: Build a six-part contract for one split-only ZOB harness refactor slice
3
+ argument-hint: "<target module or slice>"
4
+ ---
5
+ Use `delegate_task` with agent `refactor-mover` for this bounded slice: $ARGUMENTS
6
+
7
+ Contract template:
8
+ 1. TASK: Move exactly one bounded block from `.pi/extensions/zob-harness/index.ts` into the target sidecar module, or create the sidecar context for that module if no move is approved yet.
9
+ 2. EXPECTED OUTCOME: Split-only change with public exports preserved, `index.ts` entrypoint stable, NodeNext imports valid, and validation evidence captured.
10
+ 3. REQUIRED TOOLS: read, grep, find, ls, edit, write, safe bash for `npm run check -- --pretty false` and scoped smoke only.
11
+ 4. MUST DO:
12
+ - Read `docs/ZOB_HARNESS_INDEX_REFACTOR_PLAYBOOK.md` and the nearest local `AGENTS.md`.
13
+ - Preserve strings, messages, schemas, array order, sentinels, artifacts, defaults, and sync/async behavior.
14
+ - Use `.js` suffixes for relative runtime imports and `import type` for type-only imports.
15
+ - Run `npm run check -- --pretty false`; run `npm run smoke:harness` for domain/runtime slices.
16
+ 5. MUST NOT DO:
17
+ - Do not rewrite logic, optimize, rename public exports, or change registrations.
18
+ - Do not import from `index.ts` inside `src/**`.
19
+ - Do not switch to final barrel unless explicitly approved.
20
+ - Do not read secrets, touch generated/vendor folders, or commit.
21
+ 6. CONTEXT:
22
+ - Playbook: `docs/ZOB_HARNESS_INDEX_REFACTOR_PLAYBOOK.md`.
23
+ - Current entrypoint: `.pi/extensions/zob-harness/index.ts`.
24
+ - Baseline artifacts: `.pi/tmp/refactor-baseline/` when present.
@@ -0,0 +1,20 @@
1
+ ---
2
+ description: Delegate sourced external research to librarian with anti-overclaiming guardrails
3
+ argument-hint: "<topic>"
4
+ ---
5
+ Use `delegate_agent` with agent `librarian`.
6
+
7
+ 1. TASK: Research $ARGUMENTS for the current project decision.
8
+ 2. EXPECTED OUTCOME: Bottom-line recommendation, sourced facts, assumptions/unknowns, practical integration implications, safer wording if claims are uncertain.
9
+ 3. REQUIRED TOOLS: official docs/web/GitHub/local docs as available; no file edits.
10
+ 4. MUST DO: Prefer primary sources. Label assumptions. Provide fallback/vendor-agnostic wording when source evidence is weak.
11
+ 5. MUST NOT DO: Do not invent APIs, do not edit files, do not overclaim.
12
+ 6. CONTEXT: Current project is a Pi-based agent harness and software factory.
13
+
14
+ End with:
15
+ - evidence
16
+ - risks/blockers
17
+ - compliance
18
+ - sources_consulted
19
+ - constraints_respected
20
+ - deliverable_delivered: yes/no
@@ -0,0 +1,19 @@
1
+ # ZOB /spec
2
+
3
+ Use this prompt when a user asks for a product/feature/factory outcome and the next step should be a testable spec, not direct implementation.
4
+
5
+ ```text
6
+ 1. TASK: Convert the original user ask into a testable ZOB spec.
7
+ 2. EXPECTED OUTCOME: A spec.v1 output with objectives, non-goals, scope, constraints, acceptance criteria, risks, open questions, and planner handoff.
8
+ 3. REQUIRED TOOLS: read, grep, find, ls
9
+ 4. MUST DO:
10
+ - Stay read-only.
11
+ - Preserve ORIGINAL_USER_ASK.
12
+ - Make acceptance criteria observable.
13
+ - State assumptions and open questions explicitly.
14
+ - Include evidence consulted.
15
+ 5. MUST NOT DO:
16
+ - No edits, writes, commits, installs, browser/cloud actions, or secrets.
17
+ - Do not plan implementation before the spec is clear.
18
+ 6. CONTEXT: Use AGENTS.md and relevant docs/files only when needed. Output contract: spec.v1.
19
+ ```
@@ -0,0 +1,18 @@
1
+ ---
2
+ description: Merge parallel lane outputs into consensus, conflicts, missing evidence, and next action
3
+ argument-hint: "<parallel outputs or artifact>"
4
+ ---
5
+ Use `delegate_task` with agent `synthesis`.
6
+
7
+ 1. TASK: Merge these parallel lane outputs: $ARGUMENTS
8
+ 2. EXPECTED OUTCOME: consensus, conflicts, missing_evidence, recommended_next_action, tasks_to_rerun, evidence, risks_blockers, compliance, deliverable_delivered.
9
+ 3. REQUIRED TOOLS: read, grep, find, ls.
10
+ 4. MUST DO:
11
+ - Separate consensus from disagreement.
12
+ - Identify missing proof and incomplete lanes.
13
+ - Recommend one bounded next action.
14
+ 5. MUST NOT DO:
15
+ - No edits.
16
+ - No commits.
17
+ - No invented evidence.
18
+ 6. CONTEXT: Current ZOB flow uses synthesis as the barrier after parallel exploration/review lanes.
@@ -0,0 +1,38 @@
1
+ # ZOB Rule Pack: Always
2
+
3
+ ```json
4
+ {
5
+ "schema": "zob.rule-pack.v1",
6
+ "id": "always",
7
+ "description": "Non-negotiable safety, evidence, and completion rules for every ZOB task.",
8
+ "applies_to": {
9
+ "paths": ["**"],
10
+ "modes": ["explore", "plan", "implement", "oracle", "factory", "orchestrator"],
11
+ "profiles": ["project-maintainer", "runtime-maintainer", "factory-engineer", "orchestration-engineer", "prompt-ops", "docs-maintainer", "sandbox-engineer", "oracle-reviewer"]
12
+ },
13
+ "must_do": [
14
+ "Use contract-first, evidence-first, safety-first execution.",
15
+ "Gather live context before edits.",
16
+ "Preserve prompt/output body minimization in ledgers and telemetry.",
17
+ "Report validation evidence before claiming completion.",
18
+ "For authorized commit/push work, load .pi/skills/zob-commit/SKILL.md and .pi/git-policy.json, then use only governed /zcommit commands or zob_zcommit_run when the user explicitly asks the agent to commit/push."
19
+ ],
20
+ "must_not_do": [
21
+ "Do not read secrets such as .env, private keys, ~/.ssh, ~/.aws, *.pem, or *.key.",
22
+ "Do not run destructive commands such as rm -rf, git reset --hard, git clean, or broad process kills without explicit human approval.",
23
+ "Do not commit unless explicitly asked or governed autocommit is explicitly policy-authorized for the current task.",
24
+ "Do not run direct git commit, git push, git tag, force push, git add ., or git add -A; use governed /zcommit or zob_zcommit_run only when authorized.",
25
+ "Do not mark work complete without concrete evidence."
26
+ ],
27
+ "allowed_tools": [],
28
+ "required_validation": [],
29
+ "oracle_required": "conditional",
30
+ "no_ship_conditions": [
31
+ "secret access attempted",
32
+ "destructive command attempted without explicit approval",
33
+ "missing validation evidence",
34
+ "oracle no_ship=true"
35
+ ],
36
+ "enforcement": "block"
37
+ }
38
+ ```
@@ -0,0 +1,32 @@
1
+ # ZOB Rule Pack: Docs Maintainer
2
+
3
+ ```json
4
+ {
5
+ "schema": "zob.rule-pack.v1",
6
+ "id": "docs",
7
+ "description": "Rules for documentation updates and status notes.",
8
+ "applies_to": {
9
+ "paths": ["docs/**", "README.md", "AGENTS.md"],
10
+ "profiles": ["docs-maintainer"]
11
+ },
12
+ "must_do": [
13
+ "Use docs to reflect implemented behavior or durable decisions, not as a substitute for runtime gates.",
14
+ "Cite concrete files, commands, or artifacts when marking work done.",
15
+ "Keep status wording honest about supervised vs autonomous behavior."
16
+ ],
17
+ "must_not_do": [
18
+ "Do not claim 100% autonomy without live no-mock evidence and completion audit.",
19
+ "Do not mark planned work as implemented.",
20
+ "Do not hide blockers or no-ship risks."
21
+ ],
22
+ "allowed_tools": ["read", "bash", "edit", "write", "grep", "find", "ls"],
23
+ "required_validation": ["npm run check -- --pretty false"],
24
+ "oracle_required": "conditional",
25
+ "no_ship_conditions": [
26
+ "claim lacks evidence",
27
+ "docs contradict runtime behavior",
28
+ "completion status overclaims autonomy"
29
+ ],
30
+ "enforcement": "advisory"
31
+ }
32
+ ```
@@ -0,0 +1,44 @@
1
+ # ZOB Rule Pack: Factory Engineer
2
+
3
+ ```json
4
+ {
5
+ "schema": "zob.rule-pack.v1",
6
+ "id": "factory",
7
+ "description": "Rules for software-factory manifests, checkpoints, validators, sentinels, pilot/batch gates, and quarantine flows.",
8
+ "applies_to": {
9
+ "paths": [
10
+ ".pi/extensions/zob-harness/src/factory/**",
11
+ ".pi/factories/**",
12
+ "reports/factory-runs/**"
13
+ ],
14
+ "modes": ["factory"],
15
+ "profiles": ["factory-engineer"]
16
+ },
17
+ "must_do": [
18
+ "Start with smoke before pilot or batch.",
19
+ "Require validation.json before writing phase sentinels or DONE.sentinel.",
20
+ "Require persisted oracle review artifacts for pilot and future batch promotion gates.",
21
+ "Keep factory-forge outputs quarantined until explicit review and activation."
22
+ ],
23
+ "must_not_do": [
24
+ "Do not run pilot/batch without prerequisite sentinels and oracle review evidence.",
25
+ "Do not enable agentic pilot/batch until deterministic gates pass.",
26
+ "Do not auto-activate quarantined factories.",
27
+ "Do not start a daemon from factory runs."
28
+ ],
29
+ "allowed_tools": ["read", "bash", "edit", "write", "grep", "find", "ls", "factory_run"],
30
+ "required_validation": [
31
+ "npm run check -- --pretty false",
32
+ "npm run smoke:harness",
33
+ "factory_run smoke validation.json and sentinel checks"
34
+ ],
35
+ "oracle_required": true,
36
+ "no_ship_conditions": [
37
+ "missing validation.json",
38
+ "missing phase sentinel after passed validation",
39
+ "pilot or batch gate missing persisted oracle review",
40
+ "factory-forge activation without approval"
41
+ ],
42
+ "enforcement": "preflight_fail"
43
+ }
44
+ ```
@@ -0,0 +1,34 @@
1
+ # ZOB Rule Pack: Oracle Reviewer
2
+
3
+ ```json
4
+ {
5
+ "schema": "zob.rule-pack.v1",
6
+ "id": "oracle",
7
+ "description": "Rules for skeptical validation, no-ship decisions, security review, and final completion audits.",
8
+ "applies_to": {
9
+ "modes": ["oracle"],
10
+ "profiles": ["oracle-reviewer", "runtime-maintainer", "factory-engineer", "orchestration-engineer", "sandbox-engineer", "prompt-ops"]
11
+ },
12
+ "must_do": [
13
+ "Lead with PASS, WARN, or FAIL and confidence.",
14
+ "Verify claims against files, commands, logs, artifacts, or explicit missing evidence.",
15
+ "Set no_ship=true for critical unresolved blockers.",
16
+ "Separate blocking issues from non-blocking notes."
17
+ ],
18
+ "must_not_do": [
19
+ "Do not patch while acting as oracle.",
20
+ "Do not soften missing evidence into PASS.",
21
+ "Do not downgrade security/oracle requirements silently."
22
+ ],
23
+ "allowed_tools": ["read", "bash", "grep", "find", "ls"],
24
+ "required_validation": ["oracle PASS/WARN/FAIL report with evidence and no_ship decision"],
25
+ "oracle_required": false,
26
+ "no_ship_conditions": [
27
+ "oracle FAIL",
28
+ "no_ship=true",
29
+ "missing critical evidence",
30
+ "security blocker unresolved"
31
+ ],
32
+ "enforcement": "no_ship"
33
+ }
34
+ ```
@@ -0,0 +1,44 @@
1
+ # ZOB Rule Pack: Orchestration Engineer
2
+
3
+ ```json
4
+ {
5
+ "schema": "zob.rule-pack.v1",
6
+ "id": "orchestration",
7
+ "description": "Rules for teams, orchestration profiles, rooms, local coms, and supervised read-only dispatch.",
8
+ "applies_to": {
9
+ "paths": [
10
+ ".pi/extensions/zob-harness/src/orchestration/**",
11
+ ".pi/extensions/zob-harness/src/topology/**",
12
+ ".pi/teams/**",
13
+ ".pi/orchestrations/**"
14
+ ],
15
+ "profiles": ["orchestration-engineer"]
16
+ },
17
+ "must_do": [
18
+ "Keep parent-owned preflight and dispatch for lead/worker tasks.",
19
+ "Keep worker-spawns-worker disabled unless an explicit future policy gate allows it.",
20
+ "Use hash-only or redacted coms by default.",
21
+ "Write room/context-pack and evidence-index artifacts for orchestration runs."
22
+ ],
23
+ "must_not_do": [
24
+ "Do not build free-form peer chat before audited room/context-pack gates.",
25
+ "Do not enable networked coms in this harness stage.",
26
+ "Do not write DONE.sentinel for plan_only or incomplete supervised_readonly orchestration.",
27
+ "Do not persist plaintext prompt/task/output bodies in coms or room ledgers."
28
+ ],
29
+ "allowed_tools": ["read", "bash", "edit", "write", "grep", "find", "ls", "orchestrate_run", "zob_coms_send", "zob_coms_ack", "zob_coms_status", "zob_coms_reply", "zob_coms_list", "zob_coms_get", "zob_coms_await"],
30
+ "required_validation": [
31
+ "npm run check -- --pretty false",
32
+ "npm run smoke:harness",
33
+ "orchestration validation.json room/context-pack checks"
34
+ ],
35
+ "oracle_required": true,
36
+ "no_ship_conditions": [
37
+ "worker-to-worker edge accepted without policy",
38
+ "networked coms enabled",
39
+ "DONE.sentinel written without evidence and oracle gate",
40
+ "plaintext body persisted in coms or room"
41
+ ],
42
+ "enforcement": "preflight_fail"
43
+ }
44
+ ```
@@ -0,0 +1,34 @@
1
+ # ZOB Rule Pack: Project
2
+
3
+ ```json
4
+ {
5
+ "schema": "zob.rule-pack.v1",
6
+ "id": "project",
7
+ "description": "Project-local ZOB harness operating rules shared by all implementation slices.",
8
+ "applies_to": {
9
+ "paths": ["**"],
10
+ "modes": ["explore", "plan", "implement", "oracle", "factory", "orchestrator"],
11
+ "profiles": ["project-maintainer", "runtime-maintainer", "factory-engineer", "orchestration-engineer", "prompt-ops", "docs-maintainer", "sandbox-engineer", "oracle-reviewer"]
12
+ },
13
+ "must_do": [
14
+ "Prefer Explore -> Plan -> Implement -> Oracle for non-trivial work.",
15
+ "Use the six-part TASK / EXPECTED OUTCOME / REQUIRED TOOLS / MUST DO / MUST NOT DO / CONTEXT contract for delegated work.",
16
+ "Keep edits small, reversible, and scoped to the active goal.",
17
+ "Use existing ZOB agents, prompts, factories, chains, and output contracts before creating new ones."
18
+ ],
19
+ "must_not_do": [
20
+ "Do not touch node_modules, dist, build, or generated/vendor folders.",
21
+ "Do not store prompt bodies or output bodies in telemetry, coms, rooms, or rule resolution artifacts.",
22
+ "Do not treat planned orchestration as completed implementation work."
23
+ ],
24
+ "allowed_tools": [],
25
+ "required_validation": ["npm run check -- --pretty false"],
26
+ "oracle_required": "conditional",
27
+ "no_ship_conditions": [
28
+ "scope drift",
29
+ "public export drift without smoke coverage",
30
+ "missing risks/blockers/compliance summary"
31
+ ],
32
+ "enforcement": "warn"
33
+ }
34
+ ```
@@ -0,0 +1,43 @@
1
+ # ZOB Rule Pack: Prompt Ops
2
+
3
+ ```json
4
+ {
5
+ "schema": "zob.rule-pack.v1",
6
+ "id": "prompts",
7
+ "description": "Rules for ZOB agents, prompt templates, skills, chains, and output contracts.",
8
+ "applies_to": {
9
+ "paths": [
10
+ ".pi/agents/**",
11
+ ".pi/prompts/**",
12
+ ".pi/skills/**",
13
+ ".pi/output-contracts/**",
14
+ ".pi/chains/**"
15
+ ],
16
+ "profiles": ["prompt-ops"]
17
+ },
18
+ "must_do": [
19
+ "Keep agent roles focused and bounded by declared tools.",
20
+ "Require evidence, risks/blockers, compliance, and deliverable_delivered markers in durable agent outputs.",
21
+ "Prefer skills for specialized context instead of bloating global prompts.",
22
+ "Validate output-contract changes with smoke coverage."
23
+ ],
24
+ "must_not_do": [
25
+ "Do not grant write tools to read-only agents without an explicit scope and reason.",
26
+ "Do not weaken oracle/security output requirements.",
27
+ "Do not duplicate existing agents/prompts/factories without checking reuse."
28
+ ],
29
+ "allowed_tools": ["read", "bash", "edit", "write", "grep", "find", "ls"],
30
+ "required_validation": [
31
+ "npm run check -- --pretty false",
32
+ "npm run smoke:harness",
33
+ "output contract review"
34
+ ],
35
+ "oracle_required": true,
36
+ "no_ship_conditions": [
37
+ "agent missing output contract markers",
38
+ "oracle/security role downgraded silently",
39
+ "prompt encourages unsupported tools or scope drift"
40
+ ],
41
+ "enforcement": "warn"
42
+ }
43
+ ```
@@ -0,0 +1,43 @@
1
+ # ZOB Rule Pack: Runtime Maintainer
2
+
3
+ ```json
4
+ {
5
+ "schema": "zob.rule-pack.v1",
6
+ "id": "runtime",
7
+ "description": "Rules for Pi runtime registrations, commands, widgets, events, and public extension exports.",
8
+ "applies_to": {
9
+ "paths": [
10
+ ".pi/extensions/zob-harness/index.ts",
11
+ ".pi/extensions/zob-harness/src/runtime/**",
12
+ ".pi/extensions/zob-harness/src/schemas.ts",
13
+ ".pi/extensions/zob-harness/src/types.ts"
14
+ ],
15
+ "profiles": ["runtime-maintainer"]
16
+ },
17
+ "must_do": [
18
+ "Preserve the default export zobHarness(pi).",
19
+ "Preserve public exports consumed by scripts/harness-smoke.mjs.",
20
+ "Preserve registered tool and command names unless explicitly approved.",
21
+ "Keep runtime ledgers and widget summaries body-free."
22
+ ],
23
+ "must_not_do": [
24
+ "Do not change observable tool names, command names, event handlers, sentinels, or artifact names without smoke coverage.",
25
+ "Do not import from index.ts inside src/**.",
26
+ "Do not convert synchronous fs behavior to async during split-only or runtime maintenance slices."
27
+ ],
28
+ "allowed_tools": ["read", "bash", "edit", "write", "grep", "find", "ls"],
29
+ "required_validation": [
30
+ "npm run check -- --pretty false",
31
+ "npm run smoke:harness",
32
+ "npm run pi:check"
33
+ ],
34
+ "oracle_required": true,
35
+ "no_ship_conditions": [
36
+ "runtime registration drift",
37
+ "public export drift",
38
+ "missing smoke coverage for runtime behavior",
39
+ "prompt/output body persisted"
40
+ ],
41
+ "enforcement": "warn"
42
+ }
43
+ ```
@@ -0,0 +1,43 @@
1
+ # ZOB Rule Pack: Sandbox Engineer
2
+
3
+ ```json
4
+ {
5
+ "schema": "zob.rule-pack.v1",
6
+ "id": "sandbox",
7
+ "description": "Rules for write-capable agents, temp workspaces, diff gates, rollback metadata, and apply controls.",
8
+ "applies_to": {
9
+ "paths": [
10
+ ".pi/extensions/zob-harness/src/safety.ts",
11
+ ".pi/extensions/zob-harness/src/child-runner.ts",
12
+ "reports/sandbox-runs/**"
13
+ ],
14
+ "task_types": ["sandbox", "write autonomy", "diff gate", "rollback"],
15
+ "profiles": ["sandbox-engineer"]
16
+ },
17
+ "must_do": [
18
+ "Run write-capable autonomous work in a temp workspace or equivalent sandbox before applying to main workspace.",
19
+ "Produce diff artifacts and rollback metadata for write phases.",
20
+ "Require oracle review before applying generated changes.",
21
+ "Default autoApply to false."
22
+ ],
23
+ "must_not_do": [
24
+ "Do not auto-apply sandbox diffs without explicit approval.",
25
+ "Do not allow writes without allowed_paths and forbidden_paths.",
26
+ "Do not modify protected/generated/vendor paths without explicit approval."
27
+ ],
28
+ "allowed_tools": ["read", "bash", "edit", "write", "grep", "find", "ls"],
29
+ "required_validation": [
30
+ "npm run check -- --pretty false",
31
+ "npm run smoke:harness",
32
+ "diff artifact and rollback metadata checks"
33
+ ],
34
+ "oracle_required": true,
35
+ "no_ship_conditions": [
36
+ "autoApply=true without approval",
37
+ "missing diff artifact",
38
+ "missing rollback metadata",
39
+ "oracle review missing before apply"
40
+ ],
41
+ "enforcement": "human_approval"
42
+ }
43
+ ```
@@ -0,0 +1,28 @@
1
+ {
2
+ "sessionDir": ".pi/sessions",
3
+ "extensions": [
4
+ "extensions/zob-switch/index.ts",
5
+ "extensions/zob-harness/index.ts"
6
+ ],
7
+ "prompts": [
8
+ "prompts"
9
+ ],
10
+ "skills": [
11
+ "skills"
12
+ ],
13
+ "compaction": {
14
+ "enabled": true,
15
+ "reserveTokens": 32768,
16
+ "keepRecentTokens": 16000
17
+ },
18
+ "retry": {
19
+ "enabled": true,
20
+ "maxRetries": 3,
21
+ "baseDelayMs": 2000,
22
+ "provider": {
23
+ "maxRetryDelayMs": 60000
24
+ }
25
+ },
26
+ "steeringMode": "one-at-a-time",
27
+ "followUpMode": "one-at-a-time"
28
+ }
@@ -0,0 +1,20 @@
1
+ ---
2
+ name: zob-agentic-access
3
+ description: Use when adding or reviewing external adapters such as package metadata, GitHub, browser, cloud, or other APIs.
4
+ ---
5
+ # ZOB Agentic Access Skill
6
+
7
+ ## Activation ladder
8
+
9
+ 1. Local filesystem/git readonly.
10
+ 2. Package manager readonly.
11
+ 3. GitHub readonly.
12
+ 4. Browser only on explicit human request.
13
+ 5. Write adapters only after sandbox + oracle + approval.
14
+
15
+ ## Adapter rules
16
+
17
+ - Never read secrets or credentials.
18
+ - Write access requires explicit approval metadata.
19
+ - Browser/cloud/production actions are no-ship unless gated.
20
+ - Every adapter needs proposal -> smoke -> oracle -> manual activation.