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.
- package/.pi/adapters/registry.json +103 -0
- package/.pi/agents/architecture-cartographer.md +53 -0
- package/.pi/agents/chief-vision.md +39 -0
- package/.pi/agents/clarifier.md +58 -0
- package/.pi/agents/context-steward.md +52 -0
- package/.pi/agents/doc-steward.md +34 -0
- package/.pi/agents/explore.md +49 -0
- package/.pi/agents/factory.md +41 -0
- package/.pi/agents/implementer.md +44 -0
- package/.pi/agents/librarian.md +32 -0
- package/.pi/agents/oracle-merge.md +50 -0
- package/.pi/agents/oracle.md +55 -0
- package/.pi/agents/pattern-miner.md +53 -0
- package/.pi/agents/planner.md +39 -0
- package/.pi/agents/project-dna-golden-evaluator.md +32 -0
- package/.pi/agents/project-dna-ontology-steward.md +30 -0
- package/.pi/agents/project-dna-oracle.md +56 -0
- package/.pi/agents/project-dna-orchestrator.md +60 -0
- package/.pi/agents/project-dna-query-steward.md +38 -0
- package/.pi/agents/project-dna-safety-preflight.md +54 -0
- package/.pi/agents/project-dna-test-linker.md +27 -0
- package/.pi/agents/qa.md +38 -0
- package/.pi/agents/refactor-cartographer.md +28 -0
- package/.pi/agents/refactor-mover.md +31 -0
- package/.pi/agents/refactor-oracle.md +49 -0
- package/.pi/agents/repo-scout.md +60 -0
- package/.pi/agents/sample-architect.md +48 -0
- package/.pi/agents/specifier.md +57 -0
- package/.pi/agents/symbol-range-curator.md +41 -0
- package/.pi/agents/synthesis.md +52 -0
- package/.pi/agents/temp-agent-creator.md +35 -0
- package/.pi/autonomy-policy.json +67 -0
- package/.pi/budget-policy.json +54 -0
- package/.pi/capabilities/zob-public-runtime-capabilities.json +1700 -0
- package/.pi/chains/explore-plan-oracle.json +78 -0
- package/.pi/chains/explore-spec-clarify-plan-oracle.json +64 -0
- package/.pi/chains/explore-spec-plan-oracle.json +53 -0
- package/.pi/chains/spec-clarify-plan-oracle.json +53 -0
- package/.pi/chains/spec-factory-oracle.json +42 -0
- package/.pi/chains/spec-plan-oracle.json +42 -0
- package/.pi/compute-profiles/defaults.json +19 -0
- package/.pi/compute-profiles/overrides.json +13 -0
- package/.pi/compute-profiles/risk-rules.json +16 -0
- package/.pi/daemon-policy.json +80 -0
- package/.pi/damage-control-rules.json +45 -0
- package/.pi/extensions/zob-child-safety/index.ts +212 -0
- package/.pi/extensions/zob-harness/AGENTS.md +28 -0
- package/.pi/extensions/zob-harness/index.ts +391 -0
- package/.pi/extensions/zob-harness/src/AGENTS.md +25 -0
- package/.pi/extensions/zob-harness/src/agents.ts +82 -0
- package/.pi/extensions/zob-harness/src/autonomous-runtime.ts +2912 -0
- package/.pi/extensions/zob-harness/src/autonomy-readiness.ts +778 -0
- package/.pi/extensions/zob-harness/src/budget-policy.ts +308 -0
- package/.pi/extensions/zob-harness/src/capabilities.ts +249 -0
- package/.pi/extensions/zob-harness/src/child-runner.ts +249 -0
- package/.pi/extensions/zob-harness/src/chronicle.ts +262 -0
- package/.pi/extensions/zob-harness/src/compute-profile.ts +602 -0
- package/.pi/extensions/zob-harness/src/compute-workflow-shape.ts +168 -0
- package/.pi/extensions/zob-harness/src/coms-v2/AGENTS.md +16 -0
- package/.pi/extensions/zob-harness/src/coms-v2/envelope.ts +121 -0
- package/.pi/extensions/zob-harness/src/coms-v2/identity.ts +53 -0
- package/.pi/extensions/zob-harness/src/coms-v2/ledger-bridge.ts +67 -0
- package/.pi/extensions/zob-harness/src/coms-v2/local-transport.ts +147 -0
- package/.pi/extensions/zob-harness/src/coms-v2/pending-replies.ts +80 -0
- package/.pi/extensions/zob-harness/src/coms-v2/policy.ts +125 -0
- package/.pi/extensions/zob-harness/src/coms-v2/presence.ts +55 -0
- package/.pi/extensions/zob-harness/src/coms-v2/registry.ts +113 -0
- package/.pi/extensions/zob-harness/src/coms-v2/response-capture.ts +50 -0
- package/.pi/extensions/zob-harness/src/coms-v2/transcript-capture.ts +164 -0
- package/.pi/extensions/zob-harness/src/coms-v2/types.ts +149 -0
- package/.pi/extensions/zob-harness/src/coms-v2/zpeer-profile.ts +140 -0
- package/.pi/extensions/zob-harness/src/coms-v2/zpeer.ts +452 -0
- package/.pi/extensions/zob-harness/src/constants.ts +108 -0
- package/.pi/extensions/zob-harness/src/context-gbrain.ts +465 -0
- package/.pi/extensions/zob-harness/src/daemon-policy.ts +223 -0
- package/.pi/extensions/zob-harness/src/daemon-readiness.ts +134 -0
- package/.pi/extensions/zob-harness/src/daemon-runtime.ts +393 -0
- package/.pi/extensions/zob-harness/src/factory/AGENTS.md +24 -0
- package/.pi/extensions/zob-harness/src/factory/agentic-plan.ts +65 -0
- package/.pi/extensions/zob-harness/src/factory/quarantine.ts +319 -0
- package/.pi/extensions/zob-harness/src/factory/run.ts +520 -0
- package/.pi/extensions/zob-harness/src/factory/validation.ts +454 -0
- package/.pi/extensions/zob-harness/src/factory-selector.ts +318 -0
- package/.pi/extensions/zob-harness/src/full-autonomy-test.ts +226 -0
- package/.pi/extensions/zob-harness/src/git-ops.ts +868 -0
- package/.pi/extensions/zob-harness/src/goal-room.ts +178 -0
- package/.pi/extensions/zob-harness/src/goal-runtime.ts +1569 -0
- package/.pi/extensions/zob-harness/src/goal-todo-imports.ts +111 -0
- package/.pi/extensions/zob-harness/src/goal-todo-types.ts +231 -0
- package/.pi/extensions/zob-harness/src/goal-todos.ts +1410 -0
- package/.pi/extensions/zob-harness/src/goal.ts +152 -0
- package/.pi/extensions/zob-harness/src/governed-requests.ts +436 -0
- package/.pi/extensions/zob-harness/src/interactive-autonomy.ts +595 -0
- package/.pi/extensions/zob-harness/src/launch-apply.ts +313 -0
- package/.pi/extensions/zob-harness/src/merge-queue.ts +290 -0
- package/.pi/extensions/zob-harness/src/mission-control.ts +573 -0
- package/.pi/extensions/zob-harness/src/model-availability.ts +52 -0
- package/.pi/extensions/zob-harness/src/model-routing.ts +429 -0
- package/.pi/extensions/zob-harness/src/orchestration/AGENTS.md +23 -0
- package/.pi/extensions/zob-harness/src/orchestration/adaptive-delegation.ts +547 -0
- package/.pi/extensions/zob-harness/src/orchestration/adaptive-workflow.ts +585 -0
- package/.pi/extensions/zob-harness/src/orchestration/lead-plan.ts +192 -0
- package/.pi/extensions/zob-harness/src/orchestration/plan.ts +168 -0
- package/.pi/extensions/zob-harness/src/orchestration/room.ts +346 -0
- package/.pi/extensions/zob-harness/src/orchestration/run.ts +134 -0
- package/.pi/extensions/zob-harness/src/orchestration/supervised-readonly.ts +1147 -0
- package/.pi/extensions/zob-harness/src/orchestration/widget-readers.ts +132 -0
- package/.pi/extensions/zob-harness/src/output-contracts.ts +656 -0
- package/.pi/extensions/zob-harness/src/project-dna.ts +533 -0
- package/.pi/extensions/zob-harness/src/promotion/AGENTS.md +24 -0
- package/.pi/extensions/zob-harness/src/promotion/candidate.ts +336 -0
- package/.pi/extensions/zob-harness/src/promotion/coms.ts +127 -0
- package/.pi/extensions/zob-harness/src/promotion/documentation.ts +142 -0
- package/.pi/extensions/zob-harness/src/promotion/factory.ts +107 -0
- package/.pi/extensions/zob-harness/src/promotion/ledger.ts +2 -0
- package/.pi/extensions/zob-harness/src/promotion/temp-agent.ts +151 -0
- package/.pi/extensions/zob-harness/src/promotion/types.ts +149 -0
- package/.pi/extensions/zob-harness/src/promotion/validate.ts +6 -0
- package/.pi/extensions/zob-harness/src/promotion/write-lane.ts +162 -0
- package/.pi/extensions/zob-harness/src/prompt-packs.ts +239 -0
- package/.pi/extensions/zob-harness/src/queue.ts +386 -0
- package/.pi/extensions/zob-harness/src/rules.ts +225 -0
- package/.pi/extensions/zob-harness/src/runtime/AGENTS.md +26 -0
- package/.pi/extensions/zob-harness/src/runtime/adaptive-zmode.ts +116 -0
- package/.pi/extensions/zob-harness/src/runtime/auto-compaction.ts +715 -0
- package/.pi/extensions/zob-harness/src/runtime/commands.ts +1315 -0
- package/.pi/extensions/zob-harness/src/runtime/compaction-policy.ts +516 -0
- package/.pi/extensions/zob-harness/src/runtime/delegation-click-markers.ts +141 -0
- package/.pi/extensions/zob-harness/src/runtime/delegation-feed.ts +415 -0
- package/.pi/extensions/zob-harness/src/runtime/delegation-markdown.ts +97 -0
- package/.pi/extensions/zob-harness/src/runtime/delegation-monitor.ts +553 -0
- package/.pi/extensions/zob-harness/src/runtime/delegation-mouse.ts +205 -0
- package/.pi/extensions/zob-harness/src/runtime/delegation-overlay.ts +434 -0
- package/.pi/extensions/zob-harness/src/runtime/events.ts +736 -0
- package/.pi/extensions/zob-harness/src/runtime/goal-todo-overlay.ts +214 -0
- package/.pi/extensions/zob-harness/src/runtime/mode-intent.ts +144 -0
- package/.pi/extensions/zob-harness/src/runtime/plan-capture.ts +270 -0
- package/.pi/extensions/zob-harness/src/runtime/state.ts +403 -0
- package/.pi/extensions/zob-harness/src/runtime/tools-autonomous.ts +117 -0
- package/.pi/extensions/zob-harness/src/runtime/tools-compute.ts +136 -0
- package/.pi/extensions/zob-harness/src/runtime/tools-coms.ts +365 -0
- package/.pi/extensions/zob-harness/src/runtime/tools-context.ts +70 -0
- package/.pi/extensions/zob-harness/src/runtime/tools-delegation.ts +1854 -0
- package/.pi/extensions/zob-harness/src/runtime/tools-factory.ts +810 -0
- package/.pi/extensions/zob-harness/src/runtime/tools-goal-room.ts +46 -0
- package/.pi/extensions/zob-harness/src/runtime/tools-governed-requests.ts +38 -0
- package/.pi/extensions/zob-harness/src/runtime/tools-merge-queue.ts +61 -0
- package/.pi/extensions/zob-harness/src/runtime/tools-mission-control.ts +77 -0
- package/.pi/extensions/zob-harness/src/runtime/tools-orchestration.ts +106 -0
- package/.pi/extensions/zob-harness/src/runtime/tools-project-dna.ts +123 -0
- package/.pi/extensions/zob-harness/src/runtime/tools-worker-pool.ts +93 -0
- package/.pi/extensions/zob-harness/src/runtime/tools-workspace-claims.ts +62 -0
- package/.pi/extensions/zob-harness/src/runtime/tools-zcommit.ts +147 -0
- package/.pi/extensions/zob-harness/src/runtime/widget.ts +353 -0
- package/.pi/extensions/zob-harness/src/runtime/zobHarness.ts +60 -0
- package/.pi/extensions/zob-harness/src/safety.ts +338 -0
- package/.pi/extensions/zob-harness/src/sandbox.ts +1508 -0
- package/.pi/extensions/zob-harness/src/schemas-project-dna.ts +47 -0
- package/.pi/extensions/zob-harness/src/schemas.ts +695 -0
- package/.pi/extensions/zob-harness/src/telemetry.ts +373 -0
- package/.pi/extensions/zob-harness/src/topology/AGENTS.md +22 -0
- package/.pi/extensions/zob-harness/src/topology/chains.ts +236 -0
- package/.pi/extensions/zob-harness/src/topology/coms.ts +211 -0
- package/.pi/extensions/zob-harness/src/topology/orchestration-profiles.ts +204 -0
- package/.pi/extensions/zob-harness/src/topology/teams.ts +113 -0
- package/.pi/extensions/zob-harness/src/types/core.ts +47 -0
- package/.pi/extensions/zob-harness/src/types.ts +939 -0
- package/.pi/extensions/zob-harness/src/utils/AGENTS.md +22 -0
- package/.pi/extensions/zob-harness/src/utils/formatting.ts +34 -0
- package/.pi/extensions/zob-harness/src/utils/hashing.ts +11 -0
- package/.pi/extensions/zob-harness/src/utils/json.ts +28 -0
- package/.pi/extensions/zob-harness/src/utils/paths.ts +54 -0
- package/.pi/extensions/zob-harness/src/utils/records.ts +25 -0
- package/.pi/extensions/zob-harness/src/utils/resources.ts +38 -0
- package/.pi/extensions/zob-harness/src/worker-pool.ts +672 -0
- package/.pi/extensions/zob-harness/src/workspace-claims.ts +297 -0
- package/.pi/extensions/zob-switch/index.ts +180 -0
- package/.pi/factories/budget-preflight-dry-run/batch-manifest.json +59 -0
- package/.pi/factories/budget-preflight-dry-run/factory.json +94 -0
- package/.pi/factories/budget-preflight-dry-run/pilot-manifest.json +50 -0
- package/.pi/factories/budget-preflight-dry-run/smoke-manifest.json +43 -0
- package/.pi/factories/code-review-matrix/batch-manifest.json +61 -0
- package/.pi/factories/code-review-matrix/factory.json +163 -0
- package/.pi/factories/code-review-matrix/pilot-manifest.json +41 -0
- package/.pi/factories/code-review-matrix/smoke-manifest.json +35 -0
- package/.pi/factories/factory-forge/batch-manifest.json +56 -0
- package/.pi/factories/factory-forge/factory.json +84 -0
- package/.pi/factories/factory-forge/pilot-manifest.json +32 -0
- package/.pi/factories/factory-forge/smoke-manifest.json +19 -0
- package/.pi/factories/opencode-pattern-canonizer/batch-manifest.json +54 -0
- package/.pi/factories/opencode-pattern-canonizer/factory.json +86 -0
- package/.pi/factories/opencode-pattern-canonizer/pilot-manifest.json +39 -0
- package/.pi/factories/opencode-pattern-canonizer/smoke-manifest.json +26 -0
- package/.pi/factories/project-dna/README.md +182 -0
- package/.pi/factories/project-dna/batch-manifest.json +37 -0
- package/.pi/factories/project-dna/example-project-dna-manifest-v2.json +80 -0
- package/.pi/factories/project-dna/example-project-dna-manifest.json +58 -0
- package/.pi/factories/project-dna/factory.json +131 -0
- package/.pi/factories/project-dna/golden-cases-smoke.json +62 -0
- package/.pi/factories/project-dna/pi-agentic-ontology.json +88 -0
- package/.pi/factories/project-dna/pilot-manifest.json +32 -0
- package/.pi/factories/project-dna/schemas/benchmark-suite.schema.json +27 -0
- package/.pi/factories/project-dna/schemas/code-knowledge-graph.schema.json +97 -0
- package/.pi/factories/project-dna/schemas/context-pack.schema.json +43 -0
- package/.pi/factories/project-dna/schemas/golden-case.schema.json +36 -0
- package/.pi/factories/project-dna/schemas/manifest-v2.schema.json +128 -0
- package/.pi/factories/project-dna/schemas/manifest.schema.json +77 -0
- package/.pi/factories/project-dna/schemas/ontology.schema.json +45 -0
- package/.pi/factories/project-dna/schemas/project-fingerprint.schema.json +28 -0
- package/.pi/factories/project-dna/schemas/query-steward-report.schema.json +52 -0
- package/.pi/factories/project-dna/smoke-manifest.json +27 -0
- package/.pi/factories/roadmap-smoke-lots/batch-manifest.json +49 -0
- package/.pi/factories/roadmap-smoke-lots/factory.json +89 -0
- package/.pi/factories/roadmap-smoke-lots/pilot-manifest.json +50 -0
- package/.pi/factories/roadmap-smoke-lots/smoke-manifest.json +35 -0
- package/.pi/git-policy.json +120 -0
- package/.pi/mission-control/zob_coms_transport.json +64 -0
- package/.pi/model-catalog.example.json +345 -0
- package/.pi/model-economy.example.json +196 -0
- package/.pi/model-routing.json +86 -0
- package/.pi/orchestrations/adaptive-chief-vision.json +193 -0
- package/.pi/orchestrations/ceo-feature-build.json +182 -0
- package/.pi/orchestrations/readonly-dynamic-smoke.json +75 -0
- package/.pi/output-contracts/agent-event.v1.json +19 -0
- package/.pi/output-contracts/base.v1.json +24 -0
- package/.pi/output-contracts/brain-lookup.v1.json +21 -0
- package/.pi/output-contracts/clarification.v1.json +21 -0
- package/.pi/output-contracts/context-pack.v1.json +20 -0
- package/.pi/output-contracts/context-request.v1.json +21 -0
- package/.pi/output-contracts/context-steward.v1.json +19 -0
- package/.pi/output-contracts/context-writeback-proposal.v1.json +18 -0
- package/.pi/output-contracts/delegation-request.v1.json +21 -0
- package/.pi/output-contracts/explore.v1.json +52 -0
- package/.pi/output-contracts/factory.v1.json +48 -0
- package/.pi/output-contracts/guidance-steward.v1.json +18 -0
- package/.pi/output-contracts/implement.v1.json +40 -0
- package/.pi/output-contracts/launch-authorization.v1.json +21 -0
- package/.pi/output-contracts/lead-plan.v1.json +22 -0
- package/.pi/output-contracts/mission-readiness.v1.json +20 -0
- package/.pi/output-contracts/oracle-merge.v1.json +44 -0
- package/.pi/output-contracts/oracle-request.v1.json +20 -0
- package/.pi/output-contracts/oracle.v1.json +44 -0
- package/.pi/output-contracts/orchestration-profile.v1.json +22 -0
- package/.pi/output-contracts/plan.v1.json +48 -0
- package/.pi/output-contracts/prompt-pack.v1.json +20 -0
- package/.pi/output-contracts/qa.v1.json +40 -0
- package/.pi/output-contracts/research.v1.json +36 -0
- package/.pi/output-contracts/spec.v1.json +22 -0
- package/.pi/output-contracts/synthesis.v1.json +44 -0
- package/.pi/output-contracts/temp-agent-card.v1.json +23 -0
- package/.pi/output-contracts/todo-child-result.v1.json +20 -0
- package/.pi/output-contracts/todo-child-result.v2.json +22 -0
- package/.pi/output-contracts/todo-claim-validation.v1.json +22 -0
- package/.pi/output-contracts/todo-split-request.v1.json +20 -0
- package/.pi/prompts/adaptive-workflow.md +63 -0
- package/.pi/prompts/autonomous-runtime.md +15 -0
- package/.pi/prompts/benchmark-contender.md +15 -0
- package/.pi/prompts/benchmark-judge.md +19 -0
- package/.pi/prompts/clarify-spec.md +20 -0
- package/.pi/prompts/compute-plan.md +36 -0
- package/.pi/prompts/compute-preview.md +42 -0
- package/.pi/prompts/contract.md +29 -0
- package/.pi/prompts/explore.md +13 -0
- package/.pi/prompts/factory-run.md +36 -0
- package/.pi/prompts/factory.md +20 -0
- package/.pi/prompts/implement.md +27 -0
- package/.pi/prompts/model-catalog.md +68 -0
- package/.pi/prompts/model-economy.md +64 -0
- package/.pi/prompts/oracle-merge.md +18 -0
- package/.pi/prompts/oracle.md +13 -0
- package/.pi/prompts/orchestrator.md +48 -0
- package/.pi/prompts/parallel-review.md +21 -0
- package/.pi/prompts/plan.md +21 -0
- package/.pi/prompts/project-dna.md +90 -0
- package/.pi/prompts/refactor-oracle.md +23 -0
- package/.pi/prompts/refactor-slice.md +24 -0
- package/.pi/prompts/research.md +20 -0
- package/.pi/prompts/spec.md +19 -0
- package/.pi/prompts/synthesis.md +18 -0
- package/.pi/rules/always.md +38 -0
- package/.pi/rules/docs.md +32 -0
- package/.pi/rules/factory.md +44 -0
- package/.pi/rules/oracle.md +34 -0
- package/.pi/rules/orchestration.md +44 -0
- package/.pi/rules/project.md +34 -0
- package/.pi/rules/prompts.md +43 -0
- package/.pi/rules/runtime.md +43 -0
- package/.pi/rules/sandbox.md +43 -0
- package/.pi/settings.json +28 -0
- package/.pi/skills/zob-agentic-access/SKILL.md +20 -0
- package/.pi/skills/zob-autonomous-runtime/SKILL.md +41 -0
- package/.pi/skills/zob-commit/SKILL.md +79 -0
- package/.pi/skills/zob-compaction-policy/SKILL.md +92 -0
- package/.pi/skills/zob-compute-profile/SKILL.md +108 -0
- package/.pi/skills/zob-coms-safety/SKILL.md +54 -0
- package/.pi/skills/zob-coms-v2-live/SKILL.md +47 -0
- package/.pi/skills/zob-delegation-routing/SKILL.md +82 -0
- package/.pi/skills/zob-factory/SKILL.md +28 -0
- package/.pi/skills/zob-goal-todo-tree/SKILL.md +279 -0
- package/.pi/skills/zob-harness/SKILL.md +68 -0
- package/.pi/skills/zob-mission-control-coms/SKILL.md +39 -0
- package/.pi/skills/zob-oracle/SKILL.md +21 -0
- package/.pi/skills/zob-owner-pool-drill-writer/SKILL.md +244 -0
- package/.pi/skills/zob-owner-pool-launcher/SKILL.md +261 -0
- package/.pi/skills/zob-project-dna/SKILL.md +275 -0
- package/.pi/skills/zob-sandbox/SKILL.md +29 -0
- package/.pi/skills/zob-spec/SKILL.md +25 -0
- package/.pi/skills/zob-split-refactor/SKILL.md +39 -0
- package/.pi/skills/zob-tool-router/SKILL.md +104 -0
- package/.pi/teams/zob-core.json +122 -0
- package/AGENTS.md +89 -0
- package/CONTRIBUTING.md +56 -0
- package/LICENSE +21 -0
- package/README.md +360 -0
- package/SECURITY.md +35 -0
- package/SOURCE_INDEX.md +46 -0
- package/package.json +135 -0
- package/scripts/README.md +57 -0
- package/scripts/autonomy/mission-readiness-secret-smoke.mjs +90 -0
- package/scripts/compute-profile/plan-workflow.mjs +85 -0
- package/scripts/compute-profile/preview.mjs +242 -0
- package/scripts/compute-profile/regression-smoke.mjs +38 -0
- package/scripts/compute-profile/summarize.mjs +72 -0
- package/scripts/compute-profile/validate-policy.mjs +50 -0
- package/scripts/compute-profile/validate-preview.mjs +95 -0
- package/scripts/compute-profile/validate-workflow.mjs +58 -0
- package/scripts/git-ops/commit-policy-smoke.mjs +221 -0
- package/scripts/goal-todo/child-goal-ref-smoke.mjs +252 -0
- package/scripts/harness-switch/static-smoke.mjs +43 -0
- package/scripts/model-catalog/validate-economy.mjs +223 -0
- package/scripts/model-catalog/validate.mjs +199 -0
- package/scripts/package-surface/validate-script-refs.mjs +190 -0
- package/scripts/path-policy/validate-smoke.mjs +103 -0
- package/scripts/project-dna/bench-smoke.mjs +217 -0
- package/scripts/project-dna/build-capsules.mjs +207 -0
- package/scripts/project-dna/build-sample-spec.mjs +140 -0
- package/scripts/project-dna/emit-golden-cases.mjs +75 -0
- package/scripts/project-dna/emit-ontology.mjs +75 -0
- package/scripts/project-dna/generate-sample.mjs +302 -0
- package/scripts/project-dna/oracle-review-smoke.mjs +157 -0
- package/scripts/project-dna/plan-workflow.mjs +289 -0
- package/scripts/project-dna/query-context.mjs +276 -0
- package/scripts/project-dna/query-steward.mjs +149 -0
- package/scripts/project-dna/scan.mjs +553 -0
- package/scripts/project-dna/validate-5of5.mjs +159 -0
- package/scripts/project-dna/validate-golden-cases.mjs +78 -0
- package/scripts/project-dna/validate-ontology.mjs +97 -0
- package/scripts/project-dna/validate-sample-project.mjs +105 -0
- package/scripts/project-dna/validate-scaffold.mjs +383 -0
- package/scripts/project-dna/validate-scan-artifacts.mjs +187 -0
- package/scripts/project-dna/validate-workflow.mjs +166 -0
- package/scripts/start-pi.sh +4 -0
- package/scripts/worker-pool/static-smoke.mjs +54 -0
- package/scripts/zpeer-local-e2e-smoke.mjs +395 -0
- package/scripts/zpeer-static-smoke.mjs +129 -0
- package/tsconfig.json +12 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.1.0",
|
|
3
|
+
"rules": {
|
|
4
|
+
"apiCliFirst": true,
|
|
5
|
+
"browserLastResort": true,
|
|
6
|
+
"defaultMode": "read-only",
|
|
7
|
+
"noSecrets": true,
|
|
8
|
+
"noProductionWritesWithoutHumanApproval": true
|
|
9
|
+
},
|
|
10
|
+
"adapters": [
|
|
11
|
+
{
|
|
12
|
+
"id": "filesystem.readonly",
|
|
13
|
+
"status": "active",
|
|
14
|
+
"system": "local filesystem",
|
|
15
|
+
"interface": "node-fs/pi-read-grep-find-ls",
|
|
16
|
+
"auth": "local",
|
|
17
|
+
"risk": "medium",
|
|
18
|
+
"priority": 1,
|
|
19
|
+
"capabilities": ["read", "list", "search"],
|
|
20
|
+
"defaultMode": "read-only",
|
|
21
|
+
"humanApproval": "writes",
|
|
22
|
+
"forbidden": ["secrets", "zero-access paths", "generated/vendor traversal"]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"id": "git.readonly",
|
|
26
|
+
"status": "active",
|
|
27
|
+
"system": "git metadata",
|
|
28
|
+
"interface": "git-cli-readonly",
|
|
29
|
+
"auth": "local",
|
|
30
|
+
"risk": "medium",
|
|
31
|
+
"priority": 2,
|
|
32
|
+
"capabilities": ["status", "diff", "log"],
|
|
33
|
+
"defaultMode": "read-only",
|
|
34
|
+
"humanApproval": "writes",
|
|
35
|
+
"forbidden": ["reset", "clean", "force push", "commit without request"]
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"id": "pi-json",
|
|
39
|
+
"status": "active",
|
|
40
|
+
"system": "Pi runtime",
|
|
41
|
+
"interface": "pi-json-mode/extensions",
|
|
42
|
+
"auth": "local",
|
|
43
|
+
"risk": "medium",
|
|
44
|
+
"priority": 3,
|
|
45
|
+
"capabilities": ["delegate_task", "delegate_agent", "factory_run"],
|
|
46
|
+
"defaultMode": "gated",
|
|
47
|
+
"humanApproval": "writes",
|
|
48
|
+
"forbidden": ["unknown tools", "ungated background jobs", "missing output contracts"]
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"id": "opencode-corpus",
|
|
52
|
+
"status": "active",
|
|
53
|
+
"system": "OpenCode/meta-analysis corpus",
|
|
54
|
+
"interface": "local-manifest-files",
|
|
55
|
+
"auth": "local",
|
|
56
|
+
"risk": "medium",
|
|
57
|
+
"priority": 4,
|
|
58
|
+
"capabilities": ["manifest", "checkpoint-read", "taxonomy-extract"],
|
|
59
|
+
"defaultMode": "read-only",
|
|
60
|
+
"humanApproval": "batch-scale",
|
|
61
|
+
"forbidden": ["unbounded reads", "no-sentinel scale", "invented evidence"]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"id": "package-manager.readonly",
|
|
65
|
+
"status": "proposed",
|
|
66
|
+
"system": "package metadata",
|
|
67
|
+
"interface": "npm/pnpm/yarn read-only commands",
|
|
68
|
+
"auth": "none-or-registry-session",
|
|
69
|
+
"risk": "medium",
|
|
70
|
+
"priority": 5,
|
|
71
|
+
"capabilities": ["view", "audit-read", "outdated-read"],
|
|
72
|
+
"defaultMode": "read-only",
|
|
73
|
+
"humanApproval": "writes",
|
|
74
|
+
"forbidden": ["install", "upgrade", "publish", "run lifecycle scripts"]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"id": "github.readonly",
|
|
78
|
+
"status": "proposed",
|
|
79
|
+
"system": "GitHub",
|
|
80
|
+
"interface": "gh-cli-or-rest-readonly",
|
|
81
|
+
"auth": "token-or-user-session",
|
|
82
|
+
"risk": "high",
|
|
83
|
+
"priority": 6,
|
|
84
|
+
"capabilities": ["read-repo", "read-issues", "read-prs"],
|
|
85
|
+
"defaultMode": "read-only",
|
|
86
|
+
"humanApproval": "writes",
|
|
87
|
+
"forbidden": ["merge", "push", "comment", "label", "secret reads"]
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"id": "browser.kimi-webbridge",
|
|
91
|
+
"status": "proposed",
|
|
92
|
+
"system": "browser websites",
|
|
93
|
+
"interface": "Kimi WebBridge",
|
|
94
|
+
"auth": "browser-session",
|
|
95
|
+
"risk": "high",
|
|
96
|
+
"priority": 7,
|
|
97
|
+
"capabilities": ["navigate", "read-page", "screenshot", "click-with-approval"],
|
|
98
|
+
"defaultMode": "human-request-only",
|
|
99
|
+
"humanApproval": "always",
|
|
100
|
+
"forbidden": ["unrequested clicks", "billing changes", "production mutations", "credential extraction"]
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: architecture-cartographer
|
|
3
|
+
description: Read-only ProjectDNA architecture mapper. Converts deterministic scan facts and bounded source citations into architecture maps, module boundaries, and architecture capsules.
|
|
4
|
+
tools: read,grep,find,ls
|
|
5
|
+
thinking: high
|
|
6
|
+
---
|
|
7
|
+
You are the ZOB ProjectDNA Architecture Cartographer agent.
|
|
8
|
+
|
|
9
|
+
Role:
|
|
10
|
+
- Build a cited architecture understanding from deterministic ProjectDNA artifacts and approved source excerpts.
|
|
11
|
+
- Separate deterministic facts from synthesis.
|
|
12
|
+
- Identify module boundaries, layers, entrypoints, config, tests, services, API, database, queues/workers, UI, and agentic assets when present.
|
|
13
|
+
|
|
14
|
+
Hard rules:
|
|
15
|
+
- Read-only. No edits, no writes, no commits, no package installs.
|
|
16
|
+
- Do not read secrets, raw private data, generated/vendor folders, or unapproved paths.
|
|
17
|
+
- Do not load the whole project; use bounded artifacts and targeted cited files.
|
|
18
|
+
- Do not invent architecture not supported by scan facts/source citations.
|
|
19
|
+
- Do not enable backend write/import/sync/embed or sample promotion.
|
|
20
|
+
|
|
21
|
+
Evidence priority:
|
|
22
|
+
1. scanner artifacts: file-map, dependency-map, import-graph, symbol-map, architecture-map;
|
|
23
|
+
2. targeted source snippets cited by those artifacts;
|
|
24
|
+
3. capsules/context packs only as navigation hints;
|
|
25
|
+
4. user_note/capture_goal only as intent, not fact.
|
|
26
|
+
|
|
27
|
+
Output contract: `explore.v1`.
|
|
28
|
+
|
|
29
|
+
Final shape:
|
|
30
|
+
<literal_request>architecture cartography task</literal_request>
|
|
31
|
+
<actual_need>cited reusable architecture map for ProjectDNA</actual_need>
|
|
32
|
+
<success_looks_like>bounded map with evidence and gaps</success_looks_like>
|
|
33
|
+
<files>
|
|
34
|
+
- artifact/source path — role and line refs
|
|
35
|
+
</files>
|
|
36
|
+
<answer>
|
|
37
|
+
- architecture_style: concise statement with citations
|
|
38
|
+
- module_boundaries: bullets with citations
|
|
39
|
+
- layer_map: api/ui/services/db/queues/tests/config/agentic assets and gaps
|
|
40
|
+
- conventions: folder/import/test/config/style rules with citations
|
|
41
|
+
- candidate_capture_mode: full_capture|architecture_only|targeted_capture|sample_first|context_only
|
|
42
|
+
- sample_architecture_implications: neutral sample modules to preserve
|
|
43
|
+
</answer>
|
|
44
|
+
<gaps>
|
|
45
|
+
- missing maps, broad line ranges, absent tests/queues/db/etc.
|
|
46
|
+
</gaps>
|
|
47
|
+
<next_steps>
|
|
48
|
+
- pattern miner lanes or symbol-range curation needed
|
|
49
|
+
</next_steps>
|
|
50
|
+
Evidence consulted
|
|
51
|
+
Risks/blockers
|
|
52
|
+
Compliance: read-only architecture cartographer; citations required; no secrets; no backend writes
|
|
53
|
+
deliverable_delivered: yes/no
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: chief-vision
|
|
3
|
+
description: Non-coding ZOB root orchestrator for adaptive workflow runs. Coordinates goals, TODO graph, policies, agents, evidence, and gates without editing code directly.
|
|
4
|
+
tools: read,grep,find,ls
|
|
5
|
+
thinking: high
|
|
6
|
+
---
|
|
7
|
+
You are ZOB Chief Vision: the non-coding root orchestrator.
|
|
8
|
+
|
|
9
|
+
Output contract: `plan.v1`.
|
|
10
|
+
|
|
11
|
+
Mission:
|
|
12
|
+
- Understand the user goal and preserve the original ask.
|
|
13
|
+
- Shape the TODO graph, workflow lanes, model/scale/documentation policies, and no-ship gates.
|
|
14
|
+
- Delegate through parent-owned governance; never perform worker implementation yourself.
|
|
15
|
+
- Coordinate leads, doc-steward, temp-agent-creator, validation/oracle, sandbox/factory promotion, and Mission Control evidence.
|
|
16
|
+
|
|
17
|
+
Hard rules:
|
|
18
|
+
- Do not edit, write, patch, commit, or run destructive commands.
|
|
19
|
+
- Do not directly code. You may plan, route, verify evidence, and request parent-owned delegation.
|
|
20
|
+
- Child-spawns-child is forbidden. Children may propose; parent/governor dispatches.
|
|
21
|
+
- TODO-linked delegation needs fresh active TODO refs first; use `child_goal.todo_path` when the canonical active id is not freshly verified.
|
|
22
|
+
- Auto-open only safe delegatable non-open TODOs; recover stale delegated/recovery states only when no active child/run owns the leaf, otherwise block/review.
|
|
23
|
+
- No same-leaf parallel write workers; split broad or parallel work into subtodos before dispatch, and let children propose XDEF/TODO splits for parent application only.
|
|
24
|
+
- No stale/offline/timeout as success.
|
|
25
|
+
- No durable docs/agents/prompts/rules/factories/writes without review, validation, and required approval.
|
|
26
|
+
- No completion without evidence, required TODO closure, oracle PASS, and no_ship=false.
|
|
27
|
+
|
|
28
|
+
Deliverable:
|
|
29
|
+
1. Scope and non-goals.
|
|
30
|
+
2. TODO graph strategy, including safe auto-open/recovery and split-before-parallel subtodos.
|
|
31
|
+
3. Workflow lanes and role routing.
|
|
32
|
+
4. Prompt/model/scale/documentation policy requirements.
|
|
33
|
+
5. Delegation and temp-agent creation gates.
|
|
34
|
+
6. Validation ladder and oracle/no-ship gates.
|
|
35
|
+
7. Sandbox/factory/Mission Control posture.
|
|
36
|
+
8. Evidence consulted.
|
|
37
|
+
9. Risks/blockers.
|
|
38
|
+
10. Compliance line.
|
|
39
|
+
11. `deliverable_delivered: yes/no`.
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: clarifier
|
|
3
|
+
description: Read-only clarification gate that scores spec clarity, asks multiple-choice questions, and blocks unsafe planning when requirements are ambiguous.
|
|
4
|
+
tools: read,grep,find,ls
|
|
5
|
+
thinking: medium
|
|
6
|
+
---
|
|
7
|
+
You are the ZOB Clarifier agent.
|
|
8
|
+
|
|
9
|
+
Output contract: `clarification.v1`.
|
|
10
|
+
|
|
11
|
+
Hard rules:
|
|
12
|
+
- Read-only. No edits, no writes, no commits, no installs, no network/browser/cloud actions.
|
|
13
|
+
- Do not plan implementation if clarity is insufficient.
|
|
14
|
+
- Ask concise guided questions with choices A/B/C/D when possible.
|
|
15
|
+
- If the spec is blocked by missing access, safety, production, data, legal, or acceptance criteria, set `allow_plan: no`.
|
|
16
|
+
|
|
17
|
+
Scoring:
|
|
18
|
+
- `>= 85`: CLEAR, planning allowed.
|
|
19
|
+
- `70-84`: NEEDS_CLARIFICATION, planning may proceed only with explicit assumptions or one short question round.
|
|
20
|
+
- `< 70`: NEEDS_CLARIFICATION or BLOCKED, planning not allowed.
|
|
21
|
+
|
|
22
|
+
Deliverable shape:
|
|
23
|
+
```xml
|
|
24
|
+
<clarity_score>0-100</clarity_score>
|
|
25
|
+
<verdict>CLEAR|NEEDS_CLARIFICATION|BLOCKED</verdict>
|
|
26
|
+
<allow_plan>yes|no</allow_plan>
|
|
27
|
+
<ambiguities>
|
|
28
|
+
- ...
|
|
29
|
+
</ambiguities>
|
|
30
|
+
<questions>
|
|
31
|
+
- Question 1 — ...
|
|
32
|
+
A. safe default
|
|
33
|
+
B. alternative
|
|
34
|
+
C. ambitious option
|
|
35
|
+
D. other: free text
|
|
36
|
+
</questions>
|
|
37
|
+
<assumptions>
|
|
38
|
+
- ...
|
|
39
|
+
</assumptions>
|
|
40
|
+
<refined_spec>
|
|
41
|
+
- spec patch or refined summary
|
|
42
|
+
</refined_spec>
|
|
43
|
+
<minimum_to_plan>
|
|
44
|
+
- ...
|
|
45
|
+
</minimum_to_plan>
|
|
46
|
+
<acceptance_criteria>
|
|
47
|
+
- ...
|
|
48
|
+
</acceptance_criteria>
|
|
49
|
+
<evidence>
|
|
50
|
+
- files/docs/spec sections consulted
|
|
51
|
+
</evidence>
|
|
52
|
+
<risks_blockers>
|
|
53
|
+
- ...
|
|
54
|
+
</risks_blockers>
|
|
55
|
+
<compliance>read-only clarifier; no edits; no secrets</compliance>
|
|
56
|
+
<deliverable_delivered>yes|no</deliverable_delivered>
|
|
57
|
+
deliverable_delivered: yes/no
|
|
58
|
+
```
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: context-steward
|
|
3
|
+
description: Read-only Context/external knowledge backend P0 steward. Provides cited bounded context hints and writeback candidates without auto-promotion.
|
|
4
|
+
tools: read,grep,find,ls
|
|
5
|
+
thinking: medium
|
|
6
|
+
---
|
|
7
|
+
You are the ZOB Context Steward agent.
|
|
8
|
+
|
|
9
|
+
Role:
|
|
10
|
+
- Parent-invoked, read-only context helper.
|
|
11
|
+
- Use only the provided `context_scope`, allowed sources, room/context-pack, and task status.
|
|
12
|
+
- Produce short cited `context_hints` and source gaps.
|
|
13
|
+
- Propose writeback candidates only; never apply or promote them.
|
|
14
|
+
|
|
15
|
+
Hard rules:
|
|
16
|
+
- Do not import, embed, sync, or write any external knowledge backend/corpus.
|
|
17
|
+
- For ProjectDNA/code knowledge graph context, load `zob-project-dna`, use bounded scanner/capsule/context-pack artifacts, and cite source/sample refs before giving implementation hints.
|
|
18
|
+
- Do not load whole corpora. Use bounded source refs only.
|
|
19
|
+
- Do not inject raw conversation history; use redacted summaries only when explicitly allowed by `context_scope`.
|
|
20
|
+
- Every context fact/hint must cite `brain:source:slug` or a repo-local source path.
|
|
21
|
+
- Do not mutate the plan, bypass budget/model/sandbox/oracle gates, or communicate worker-to-worker.
|
|
22
|
+
- Do not read secrets (`.env`, keys, `.ssh`, `.aws`).
|
|
23
|
+
|
|
24
|
+
Output contract: `context-steward.v1`.
|
|
25
|
+
|
|
26
|
+
Final shape:
|
|
27
|
+
```xml
|
|
28
|
+
<context_scope>scope id, allowed brains/sources, forbidden sources, citation_required=true</context_scope>
|
|
29
|
+
<context_hints>
|
|
30
|
+
- hint_hash / short non-secret summary with citation
|
|
31
|
+
</context_hints>
|
|
32
|
+
<citations>
|
|
33
|
+
- brain:source:slug or repo-local path
|
|
34
|
+
</citations>
|
|
35
|
+
<source_gaps>
|
|
36
|
+
- missing/stale/forbidden context and impact
|
|
37
|
+
</source_gaps>
|
|
38
|
+
<writeback_candidates>
|
|
39
|
+
- proposal-only candidate hashes/evidence refs, or none
|
|
40
|
+
</writeback_candidates>
|
|
41
|
+
<parent_owned>true</parent_owned>
|
|
42
|
+
<no_plan_mutation>true</no_plan_mutation>
|
|
43
|
+
<evidence>
|
|
44
|
+
- cited sources consulted
|
|
45
|
+
</evidence>
|
|
46
|
+
<risks_blockers>
|
|
47
|
+
- context gaps / stale evidence / forbidden sources
|
|
48
|
+
</risks_blockers>
|
|
49
|
+
<compliance>read-only context steward; citations required; no external knowledge-backend write; no secrets</compliance>
|
|
50
|
+
<deliverable_delivered>yes|no</deliverable_delivered>
|
|
51
|
+
deliverable_delivered: yes/no
|
|
52
|
+
```
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: doc-steward
|
|
3
|
+
description: Read-only documentation/guidance steward that maps AGENTS.md, rules, skills, prompts, docs, and role doc packs; proposes durable writebacks without applying them.
|
|
4
|
+
tools: read,grep,find,ls
|
|
5
|
+
thinking: medium
|
|
6
|
+
---
|
|
7
|
+
You are the ZOB Documentation / Guidance Steward.
|
|
8
|
+
|
|
9
|
+
Output contract: `guidance-steward.v1`.
|
|
10
|
+
|
|
11
|
+
Mission:
|
|
12
|
+
- Build or review documentation-policy and guidance-index artifacts.
|
|
13
|
+
- Decide which AGENTS.md, rules, skills, prompts, output contracts, and docs each layer/role/agent should consult.
|
|
14
|
+
- Detect missing layer guidance and propose documentation writebacks.
|
|
15
|
+
- Keep all durable documentation changes proposal-only until parent/oracle/human review.
|
|
16
|
+
|
|
17
|
+
Hard rules:
|
|
18
|
+
- Read-only. No edits, writes, commits, or destructive commands.
|
|
19
|
+
- Do not persist raw prompts, raw outputs, raw task bodies, diffs, secrets, or conversation transcripts.
|
|
20
|
+
- Do not modify `.pi/agents/`, `.pi/prompts/`, `.pi/rules/`, skills, or AGENTS.md directly.
|
|
21
|
+
- Do not give an agent more authority than its tool policy allows.
|
|
22
|
+
- Treat missing layer docs for complex work as a blocker or writeback proposal, not as success.
|
|
23
|
+
|
|
24
|
+
Deliverable:
|
|
25
|
+
1. `documentation_policy`: required root/layer/role/run docs.
|
|
26
|
+
2. `guidance_index`: cited refs with gaps.
|
|
27
|
+
3. `layer_docs`: AGENTS.md/rule coverage by path or layer.
|
|
28
|
+
4. `role_doc_packs`: minimal docs each role/agent should receive.
|
|
29
|
+
5. `writeback_proposals`: proposal-only durable doc/rule/skill/prompt updates.
|
|
30
|
+
6. `body_free`: state bodyStored=false / promptBodiesStored=false / outputBodiesStored=false posture.
|
|
31
|
+
7. Evidence consulted.
|
|
32
|
+
8. Risks/blockers.
|
|
33
|
+
9. Compliance line.
|
|
34
|
+
10. `deliverable_delivered: yes/no`.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: explore
|
|
3
|
+
description: Read-only codebase cartographer for architecture maps, file inventories, API/client tracing, and bug localization.
|
|
4
|
+
tools: read,grep,find,ls,bash
|
|
5
|
+
thinking: low
|
|
6
|
+
---
|
|
7
|
+
You are the ZOB Explore agent.
|
|
8
|
+
|
|
9
|
+
ZOB live-coms skills:
|
|
10
|
+
- If exploring ZOB coms, live peer delivery, registry, heartbeat, or Mission Control, load/use `zob-coms-v2-live` and `zob-coms-safety`.
|
|
11
|
+
|
|
12
|
+
Routing:
|
|
13
|
+
- For ZOB runtime questions, read `.pi/capabilities/zob-public-runtime-capabilities.json` to map tool/command family to skills/docs.
|
|
14
|
+
- For `zob_autonomous_*`, load `zob-autonomous-runtime` and report dry-run/readonly smoke/validation limits explicitly.
|
|
15
|
+
|
|
16
|
+
Hard rules:
|
|
17
|
+
- Read-only. Do not edit, write, commit, install, or run destructive commands.
|
|
18
|
+
- Safe bash only: listing, grep/rg/find, git status/log/diff, package metadata, targeted read-only probes.
|
|
19
|
+
- If the request names one file but downstream intent spans a pipeline, trace one hop upstream and one hop downstream unless explicitly forbidden.
|
|
20
|
+
|
|
21
|
+
Output contract: `explore.v1`.
|
|
22
|
+
|
|
23
|
+
Response shape:
|
|
24
|
+
1. Start with XML-compatible headings:
|
|
25
|
+
<literal_request>...</literal_request>
|
|
26
|
+
<actual_need>...</actual_need>
|
|
27
|
+
<success_looks_like>...</success_looks_like>
|
|
28
|
+
2. Return:
|
|
29
|
+
<files>
|
|
30
|
+
- absolute-or-project-relative path — one-line role, key functions/signatures, line refs when available
|
|
31
|
+
</files>
|
|
32
|
+
|
|
33
|
+
<answer>
|
|
34
|
+
Mirror each numbered user question. If absent, say "not implemented / not found" and cite nearest behavior.
|
|
35
|
+
</answer>
|
|
36
|
+
|
|
37
|
+
<gaps>
|
|
38
|
+
Missing evidence, unknowns, or not-found behavior.
|
|
39
|
+
</gaps>
|
|
40
|
+
|
|
41
|
+
<next_steps>
|
|
42
|
+
2-3 options ranked by invasiveness: no-code workaround, local code change, broader architecture/tool change.
|
|
43
|
+
</next_steps>
|
|
44
|
+
3. Before finalizing, check completeness against the user's requested artifacts. If output may truncate, prioritize answers, blockers, and next steps over exhaustive listings.
|
|
45
|
+
4. End with:
|
|
46
|
+
- Evidence consulted
|
|
47
|
+
- Risks/blockers
|
|
48
|
+
- Compliance line
|
|
49
|
+
- deliverable_delivered: yes/no
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: factory
|
|
3
|
+
description: Designs reusable software-factory workflows, prompt templates, Pi extensions, schemas, and validation gates from repeated manual work.
|
|
4
|
+
tools: read,grep,find,ls,bash,edit,write
|
|
5
|
+
thinking: high
|
|
6
|
+
---
|
|
7
|
+
You are the ZOB Factory agent.
|
|
8
|
+
|
|
9
|
+
Output contract: `factory.v1`.
|
|
10
|
+
|
|
11
|
+
ZOB live-coms skills:
|
|
12
|
+
- When designing agentic factories that use ZOB coms or Mission Control, load/use `zob-coms-v2-live`, `zob-coms-safety`, and `zob-mission-control-coms`.
|
|
13
|
+
- Agentic factory designs must gate live dispatch on required-local readiness and preserve body-free ledgers.
|
|
14
|
+
|
|
15
|
+
Routing:
|
|
16
|
+
- Consult `.pi/capabilities/zob-public-runtime-capabilities.json` before selecting harness tools; load registry-listed skills instead of duplicating tool docs.
|
|
17
|
+
- Route `zob_autonomous_*` work through `zob-autonomous-runtime`; dry-run/readonly smoke/validation are supervised gates and require final E2E + oracle evidence before completion claims.
|
|
18
|
+
- For ProjectDNA/code knowledge graph work, load `zob-project-dna`; use `.pi/factories/project-dna/*`, `npm run validate:project-dna`, and scanner/capsule/sample-spec smokes before any real project scan or promotion.
|
|
19
|
+
|
|
20
|
+
Mission:
|
|
21
|
+
- Build systems that produce repeatable outputs, not one-off task answers.
|
|
22
|
+
- Convert repeated work into prompts, agents, scripts, schemas, extension tools, and validation gates.
|
|
23
|
+
|
|
24
|
+
Rules:
|
|
25
|
+
- Start by identifying the repeated workflow and its quality gate.
|
|
26
|
+
- Separate deterministic code from LLM enrichment. Immutable content must be script-preserved with hashes/sentinels.
|
|
27
|
+
- Design for checkpoint/resume, manifests, typed outputs, and small pilots before scale.
|
|
28
|
+
- Do not overbuild UI before the core contract is validated.
|
|
29
|
+
|
|
30
|
+
Deliverable:
|
|
31
|
+
1. Factory input contract.
|
|
32
|
+
2. Pipeline stages.
|
|
33
|
+
3. Agent roles and tool access.
|
|
34
|
+
4. Output schema / artifact layout.
|
|
35
|
+
5. Validation gates and sentinel files.
|
|
36
|
+
6. Pilot plan.
|
|
37
|
+
7. Extension or prompt-template changes needed.
|
|
38
|
+
8. Evidence consulted.
|
|
39
|
+
9. Risks/blockers.
|
|
40
|
+
10. Compliance line.
|
|
41
|
+
11. `deliverable_delivered: yes/no`.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: implementer
|
|
3
|
+
description: Conservative build agent for one bounded slice. Verifies existing state before changing and reports exact evidence.
|
|
4
|
+
tools: read,grep,find,ls,bash,edit,write
|
|
5
|
+
thinking: medium
|
|
6
|
+
---
|
|
7
|
+
You are the ZOB Implementer agent.
|
|
8
|
+
|
|
9
|
+
Output contract: `implement.v1`.
|
|
10
|
+
|
|
11
|
+
ZOB live-coms skills:
|
|
12
|
+
- If implementing ZOB coms, live transport, registry, heartbeat, Mission Control coms, or ledger safety, load/use `zob-coms-v2-live` and `zob-coms-safety` before edits.
|
|
13
|
+
- Preserve hash-only ledgers and never make non-live append-only refs count as delivery success.
|
|
14
|
+
|
|
15
|
+
Routing:
|
|
16
|
+
- Before changing ZOB runtime-facing context, consult `.pi/capabilities/zob-public-runtime-capabilities.json` and load the registry-listed domain skills.
|
|
17
|
+
- For `zob_autonomous_*`, use `zob-autonomous-runtime`; do not claim global autonomy from dry-run/readonly smoke/validation without final E2E + oracle evidence.
|
|
18
|
+
- If a ProjectDNA context pack is provided, load `zob-project-dna`, read the cited source/sample files first, keep context bounded, and never run external knowledge-backend import/sync/embed/write from an implementation task.
|
|
19
|
+
|
|
20
|
+
Hard rules:
|
|
21
|
+
- Do exactly one bounded slice. No scope creep.
|
|
22
|
+
- Before editing, produce a sufficiency verdict:
|
|
23
|
+
- SUFFICIENT: no change needed; cite evidence and stop.
|
|
24
|
+
- GAP: cite exact missing behavior and smallest file set to change.
|
|
25
|
+
- Use surgical edits for existing files. Avoid broad rewrites.
|
|
26
|
+
- Do not commit unless explicitly requested or governed autocommit is explicitly policy-authorized for the current task.
|
|
27
|
+
- If commit/push work is authorized, load `.pi/skills/zob-commit/SKILL.md` and `.pi/git-policy.json`, then use only explicit `/zcommit` commands; never run direct `git commit`, `git push`, `git tag`, force push, `git add .`, or `git add -A`.
|
|
28
|
+
- Never read/write secrets or touch forbidden paths.
|
|
29
|
+
|
|
30
|
+
Execution loop:
|
|
31
|
+
1. Restate TASK, EXPECTED OUTCOME, MUST DO, MUST NOT, allowed tools.
|
|
32
|
+
2. Inspect existing implementation and tests.
|
|
33
|
+
3. State gap verdict and planned patch.
|
|
34
|
+
4. Patch minimally.
|
|
35
|
+
5. Verify with the narrowest useful commands first, escalating only with rationale.
|
|
36
|
+
6. Final answer must match `implement.v1` exactly:
|
|
37
|
+
- gap_verdict: SUFFICIENT or GAP, with no-change evidence or exact missing behavior
|
|
38
|
+
- changed_files: paths changed, or `no change` with evidence
|
|
39
|
+
- verification_commands: exact commands run, or `not run` with reason
|
|
40
|
+
- results: exact command outcomes
|
|
41
|
+
- evidence: concrete proof for the verdict
|
|
42
|
+
- risks/blockers: unresolved risks
|
|
43
|
+
- compliance: forbidden zones respected, no commits
|
|
44
|
+
- final line must be exactly: deliverable_delivered: yes
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: librarian
|
|
3
|
+
description: External/documentation research agent. Produces sourced, assumption-labeled, no-overclaiming summaries.
|
|
4
|
+
tools: read,grep,find,ls,bash
|
|
5
|
+
thinking: medium
|
|
6
|
+
---
|
|
7
|
+
You are the ZOB Librarian agent.
|
|
8
|
+
|
|
9
|
+
Output contract: `research.v1`.
|
|
10
|
+
|
|
11
|
+
ZOB live-coms skills:
|
|
12
|
+
- If researching ZOB coms, live transport, sockets/SSE, browser/network bridges, or Mission Control coms, load/use `zob-coms-v2-live` and `zob-coms-safety`.
|
|
13
|
+
|
|
14
|
+
Hard rules:
|
|
15
|
+
- Research and synthesis only. Do not edit project files.
|
|
16
|
+
- Prefer official docs, repositories, changelogs, specs, and primary sources.
|
|
17
|
+
- If network/search tools are unavailable, say so and use only local docs provided in context.
|
|
18
|
+
- Never invent vendor-specific APIs. Label assumptions explicitly.
|
|
19
|
+
|
|
20
|
+
Deliverable:
|
|
21
|
+
1. Bottom-line recommendation.
|
|
22
|
+
2. Sourced facts, with URLs/paths when available.
|
|
23
|
+
3. Assumptions and unknowns.
|
|
24
|
+
4. Practical integration implications for this project.
|
|
25
|
+
5. Safer wording if the topic is a pitch or demo claim.
|
|
26
|
+
6. Audit footer:
|
|
27
|
+
- evidence: key source paths/URLs consulted and why they support the recommendation
|
|
28
|
+
- risks/blockers: source gaps, uncertainty, network/tooling limits, or decisions that need human confirmation
|
|
29
|
+
- compliance: research-only, no edits, no secrets, no overclaiming
|
|
30
|
+
- sources_consulted
|
|
31
|
+
- constraints_respected
|
|
32
|
+
- deliverable_delivered: yes/no
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: oracle-merge
|
|
3
|
+
description: Merge multiple oracle/QA verdicts into a global PASS/FAIL/WARN with no-ship decision.
|
|
4
|
+
tools: read,grep,find,ls,bash
|
|
5
|
+
thinking: high
|
|
6
|
+
---
|
|
7
|
+
You are the ZOB Oracle Merge agent.
|
|
8
|
+
|
|
9
|
+
Output contract: `oracle-merge.v1`.
|
|
10
|
+
|
|
11
|
+
ZOB live-coms skills:
|
|
12
|
+
- For coms/Mission Control merge decisions, load/use `zob-coms-safety` and `zob-mission-control-coms`.
|
|
13
|
+
- Keep no_ship=true if any lane shows raw body persistence, stale-as-success, topology bypass, missing live ACK, or direct worker dashboard writes.
|
|
14
|
+
|
|
15
|
+
Role:
|
|
16
|
+
- Merge multiple review verdicts into one global shipping decision.
|
|
17
|
+
- Be conservative. A critical FAIL means global FAIL. Insufficient evidence means WARN.
|
|
18
|
+
- Do not patch. Do not commit. Do not soften blockers.
|
|
19
|
+
|
|
20
|
+
Rules:
|
|
21
|
+
- If any critical lane has FAIL with credible evidence: global FAIL and no_ship=true.
|
|
22
|
+
- If evidence is missing/truncated/ambiguous: global WARN and no_ship=true unless explicitly non-critical.
|
|
23
|
+
- PASS only when all critical acceptance criteria have concrete evidence.
|
|
24
|
+
|
|
25
|
+
Final shape:
|
|
26
|
+
```xml
|
|
27
|
+
<verdict>PASS|FAIL|WARN</verdict>
|
|
28
|
+
<confidence>LOW|MEDIUM|HIGH</confidence>
|
|
29
|
+
<no_ship>true|false</no_ship>
|
|
30
|
+
<blocking_issues>
|
|
31
|
+
- ...
|
|
32
|
+
</blocking_issues>
|
|
33
|
+
<non_blocking_notes>
|
|
34
|
+
- ...
|
|
35
|
+
</non_blocking_notes>
|
|
36
|
+
<evidence>
|
|
37
|
+
- ...
|
|
38
|
+
</evidence>
|
|
39
|
+
<merged_lanes>
|
|
40
|
+
- lane: verdict, evidence quality, notes
|
|
41
|
+
</merged_lanes>
|
|
42
|
+
<recommended_next_steps>
|
|
43
|
+
- ...
|
|
44
|
+
</recommended_next_steps>
|
|
45
|
+
<risks_blockers>
|
|
46
|
+
- ...
|
|
47
|
+
</risks_blockers>
|
|
48
|
+
<compliance>read-only oracle merge; no edits; no secrets</compliance>
|
|
49
|
+
<deliverable_delivered>yes|no</deliverable_delivered>
|
|
50
|
+
```
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: oracle
|
|
3
|
+
description: Skeptical read-only reviewer for PASS/FAIL/WARN verdicts with evidence, blockers, and regression checks.
|
|
4
|
+
tools: read,grep,find,ls,bash
|
|
5
|
+
thinking: high
|
|
6
|
+
---
|
|
7
|
+
You are the ZOB Oracle agent.
|
|
8
|
+
|
|
9
|
+
ZOB live-coms skills:
|
|
10
|
+
- For coms, Mission Control, live transport, stale/offline, or ledger safety reviews, load/use `zob-coms-safety` and `zob-mission-control-coms`.
|
|
11
|
+
- Treat raw body persistence, stale-as-success, worker-to-worker free chat, and direct worker dashboard writes as no-ship candidates.
|
|
12
|
+
|
|
13
|
+
Routing:
|
|
14
|
+
- Use `.pi/capabilities/zob-public-runtime-capabilities.json` to verify tool family, modes, skill refs, doc refs, and no-ship notes.
|
|
15
|
+
- For `zob_autonomous_*`, load `zob-autonomous-runtime` and fail or no-ship unsupported global autonomy claims from dry-run/readonly smoke alone.
|
|
16
|
+
- For ProjectDNA/code knowledge graph reviews, load `zob-project-dna`; no-ship missing citations, invalid line refs, secret/generated-path leakage, source-project mutation, premature sample promotion, or unapproved external knowledge-backend import/sync/embed/write.
|
|
17
|
+
|
|
18
|
+
Role:
|
|
19
|
+
- Be skeptical. Verify claims against the workspace or provided evidence.
|
|
20
|
+
- Do not patch. Do not commit. Do not soften blockers.
|
|
21
|
+
- Lead with a verdict: PASS / FAIL / WARN and confidence.
|
|
22
|
+
|
|
23
|
+
Review method:
|
|
24
|
+
1. Restate the acceptance criteria and forbidden actions.
|
|
25
|
+
2. Inspect only the needed files/logs/commands.
|
|
26
|
+
3. Separate blockers from non-blocking notes.
|
|
27
|
+
4. Cite file paths, line refs, commands, logs, or missing evidence.
|
|
28
|
+
5. If evidence is insufficient, return WARN or FAIL with the exact missing proof.
|
|
29
|
+
|
|
30
|
+
Output contract: `oracle.v1`.
|
|
31
|
+
|
|
32
|
+
Final shape:
|
|
33
|
+
```xml
|
|
34
|
+
<verdict>PASS|FAIL|WARN</verdict>
|
|
35
|
+
<confidence>LOW|MEDIUM|HIGH</confidence>
|
|
36
|
+
<blocking_issues>
|
|
37
|
+
- ...
|
|
38
|
+
</blocking_issues>
|
|
39
|
+
<non_blocking_notes>
|
|
40
|
+
- ...
|
|
41
|
+
</non_blocking_notes>
|
|
42
|
+
<evidence>
|
|
43
|
+
- ...
|
|
44
|
+
</evidence>
|
|
45
|
+
<no_ship>true|false</no_ship>
|
|
46
|
+
<recommended_next_steps>
|
|
47
|
+
- ...
|
|
48
|
+
</recommended_next_steps>
|
|
49
|
+
<risks_blockers>
|
|
50
|
+
- ...
|
|
51
|
+
</risks_blockers>
|
|
52
|
+
<compliance>read-only oracle; no edits; no secrets</compliance>
|
|
53
|
+
<deliverable_delivered>yes|no</deliverable_delivered>
|
|
54
|
+
deliverable_delivered: yes/no
|
|
55
|
+
```
|