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,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "explore-plan-oracle",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Read-only contract-first chain: explore the requested scope, plan the smallest implementation slice, then oracle-review the plan.",
|
|
5
|
+
"readOnly": true,
|
|
6
|
+
"defaultExecution": "plan_only",
|
|
7
|
+
"steps": [
|
|
8
|
+
{
|
|
9
|
+
"id": "explore",
|
|
10
|
+
"agent": "explore",
|
|
11
|
+
"task": "Explore the repository context for goal: {goal}. Identify relevant files, current behavior, gaps, and evidence only; do not edit or run write-capable commands.",
|
|
12
|
+
"expectedOutcome": "Evidence-backed exploration summary for {goal}",
|
|
13
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
14
|
+
"outputContract": "explore.v1",
|
|
15
|
+
"mustDo": [
|
|
16
|
+
"Stay read-only",
|
|
17
|
+
"Cite exact files and observed evidence",
|
|
18
|
+
"Identify gaps and next bounded step",
|
|
19
|
+
"Do not execute child agents"
|
|
20
|
+
],
|
|
21
|
+
"mustNotDo": [
|
|
22
|
+
"No edits",
|
|
23
|
+
"No writes",
|
|
24
|
+
"No bash",
|
|
25
|
+
"No secrets or .env reads",
|
|
26
|
+
"No commits",
|
|
27
|
+
"No daemon or network execution"
|
|
28
|
+
],
|
|
29
|
+
"context": "Chain {chain}, step {step_id}; original ask: {original_user_ask}; previous steps: {previous_step_ids}"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"id": "plan",
|
|
33
|
+
"agent": "planner",
|
|
34
|
+
"task": "Plan the smallest safe implementation slice for goal: {goal}, using prior chain evidence from steps: {previous_step_ids}. Produce a TDD/verification sequence and stop conditions only.",
|
|
35
|
+
"expectedOutcome": "Bounded implementation plan with validation ladder and risks",
|
|
36
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
37
|
+
"outputContract": "plan.v1",
|
|
38
|
+
"mustDo": [
|
|
39
|
+
"Stay plan-only and read-only",
|
|
40
|
+
"Consume prior exploration evidence before re-reading",
|
|
41
|
+
"Keep the slice bounded",
|
|
42
|
+
"Name exact files likely to change and validation commands"
|
|
43
|
+
],
|
|
44
|
+
"mustNotDo": [
|
|
45
|
+
"No edits",
|
|
46
|
+
"No writes",
|
|
47
|
+
"No bash",
|
|
48
|
+
"No secrets or .env reads",
|
|
49
|
+
"No commits",
|
|
50
|
+
"No live child execution"
|
|
51
|
+
],
|
|
52
|
+
"context": "Chain {chain}, step {step_id}; original ask: {original_user_ask}; previous steps: {previous_step_ids}"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"id": "oracle",
|
|
56
|
+
"agent": "oracle",
|
|
57
|
+
"task": "Review the chain plan for goal: {goal}. Verify whether the proposed scope, safety constraints, evidence, and validation are sufficient. Return PASS/FAIL/WARN without editing.",
|
|
58
|
+
"expectedOutcome": "Oracle verdict on whether the read-only plan is sufficient to implement safely",
|
|
59
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
60
|
+
"outputContract": "oracle.v1",
|
|
61
|
+
"mustDo": [
|
|
62
|
+
"Stay read-only",
|
|
63
|
+
"Check acceptance criteria against evidence",
|
|
64
|
+
"Flag missing validation or unsafe scope",
|
|
65
|
+
"Return a clear PASS/FAIL/WARN verdict"
|
|
66
|
+
],
|
|
67
|
+
"mustNotDo": [
|
|
68
|
+
"No edits",
|
|
69
|
+
"No writes",
|
|
70
|
+
"No bash",
|
|
71
|
+
"No secrets or .env reads",
|
|
72
|
+
"No commits",
|
|
73
|
+
"No live child execution"
|
|
74
|
+
],
|
|
75
|
+
"context": "Chain {chain}, step {step_id}; original ask: {original_user_ask}; previous steps: {previous_step_ids}"
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "explore-spec-clarify-plan-oracle",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Read-only premium workflow with repo exploration and a clarification gate before planning.",
|
|
5
|
+
"readOnly": true,
|
|
6
|
+
"defaultExecution": "plan_only",
|
|
7
|
+
"steps": [
|
|
8
|
+
{
|
|
9
|
+
"id": "explore",
|
|
10
|
+
"agent": "explore",
|
|
11
|
+
"task": "Explore repository context for goal: {goal}. Identify relevant files, current behavior, gaps, and evidence only.",
|
|
12
|
+
"expectedOutcome": "Evidence-backed exploration summary for {goal}",
|
|
13
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
14
|
+
"outputContract": "explore.v1",
|
|
15
|
+
"mustDo": ["Stay read-only", "Cite exact files and evidence", "Identify gaps for the spec", "Do not execute child agents"],
|
|
16
|
+
"mustNotDo": ["No edits", "No writes", "No bash", "No secrets or .env reads", "No commits", "No live child execution"],
|
|
17
|
+
"context": "Chain {chain}, step {step_id}; original ask: {original_user_ask}; previous steps: {previous_step_ids}"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"id": "spec",
|
|
21
|
+
"agent": "specifier",
|
|
22
|
+
"task": "Convert the goal into a testable spec using prior exploration evidence from: {previous_step_ids}. Goal: {goal}.",
|
|
23
|
+
"expectedOutcome": "spec.v1 grounded in repo evidence",
|
|
24
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
25
|
+
"outputContract": "spec.v1",
|
|
26
|
+
"mustDo": ["Stay read-only", "Use prior exploration evidence", "Make acceptance criteria observable", "State assumptions and open questions"],
|
|
27
|
+
"mustNotDo": ["No edits", "No writes", "No bash", "No secrets or .env reads", "No commits", "No live child execution"],
|
|
28
|
+
"context": "Chain {chain}, step {step_id}; original ask: {original_user_ask}; previous steps: {previous_step_ids}"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"id": "clarify",
|
|
32
|
+
"agent": "clarifier",
|
|
33
|
+
"task": "Review the repo-grounded spec for goal: {goal}. Score clarity and decide if planning is allowed. If clarity_score < 70 or BLOCKED, return allow_plan=no.",
|
|
34
|
+
"expectedOutcome": "clarification.v1 with clarity gate decision",
|
|
35
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
36
|
+
"outputContract": "clarification.v1",
|
|
37
|
+
"mustDo": ["Stay read-only", "Score clarity 0-100", "Ask guided questions", "Block planning when acceptance criteria are not testable"],
|
|
38
|
+
"mustNotDo": ["No edits", "No writes", "No bash", "No secrets or .env reads", "No commits", "No live child execution"],
|
|
39
|
+
"context": "Chain {chain}, step {step_id}; original ask: {original_user_ask}; previous steps: {previous_step_ids}"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"id": "plan",
|
|
43
|
+
"agent": "planner",
|
|
44
|
+
"task": "Plan only if clarification allows planning for goal: {goal}. Use prior evidence from: {previous_step_ids}. State assumptions and stop if allow_plan=no.",
|
|
45
|
+
"expectedOutcome": "Bounded plan or explicit stop decision if clarification blocks planning",
|
|
46
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
47
|
+
"outputContract": "plan.v1",
|
|
48
|
+
"mustDo": ["Stay plan-only and read-only", "Consume prior exploration/spec/clarification", "Respect allow_plan gate", "Name validation commands"],
|
|
49
|
+
"mustNotDo": ["No edits", "No writes", "No bash", "No secrets or .env reads", "No commits", "No live child execution"],
|
|
50
|
+
"context": "Chain {chain}, step {step_id}; original ask: {original_user_ask}; previous steps: {previous_step_ids}"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"id": "oracle",
|
|
54
|
+
"agent": "oracle",
|
|
55
|
+
"task": "Review the clarified repo-grounded plan for goal: {goal}. Return PASS/FAIL/WARN and no_ship without editing.",
|
|
56
|
+
"expectedOutcome": "Oracle verdict on whether the clarified plan is safe",
|
|
57
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
58
|
+
"outputContract": "oracle.v1",
|
|
59
|
+
"mustDo": ["Stay read-only", "Check plan against spec and clarification", "Flag missing validation or unsafe scope", "Return clear PASS/FAIL/WARN"],
|
|
60
|
+
"mustNotDo": ["No edits", "No writes", "No bash", "No secrets or .env reads", "No commits", "No live child execution"],
|
|
61
|
+
"context": "Chain {chain}, step {step_id}; original ask: {original_user_ask}; previous steps: {previous_step_ids}"
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "explore-spec-plan-oracle",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Read-only premium workflow: explore repo evidence, write a spec, plan, then oracle-review.",
|
|
5
|
+
"readOnly": true,
|
|
6
|
+
"defaultExecution": "plan_only",
|
|
7
|
+
"steps": [
|
|
8
|
+
{
|
|
9
|
+
"id": "explore",
|
|
10
|
+
"agent": "explore",
|
|
11
|
+
"task": "Explore repository context for goal: {goal}. Identify relevant files, current behavior, gaps, and evidence only.",
|
|
12
|
+
"expectedOutcome": "Evidence-backed exploration summary for {goal}",
|
|
13
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
14
|
+
"outputContract": "explore.v1",
|
|
15
|
+
"mustDo": ["Stay read-only", "Cite exact files and evidence", "Identify gaps for the spec", "Do not execute child agents"],
|
|
16
|
+
"mustNotDo": ["No edits", "No writes", "No bash", "No secrets or .env reads", "No commits", "No live child execution"],
|
|
17
|
+
"context": "Chain {chain}, step {step_id}; original ask: {original_user_ask}; previous steps: {previous_step_ids}"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"id": "spec",
|
|
21
|
+
"agent": "specifier",
|
|
22
|
+
"task": "Convert the goal into a testable spec using prior exploration evidence from: {previous_step_ids}. Goal: {goal}.",
|
|
23
|
+
"expectedOutcome": "spec.v1 grounded in repo evidence",
|
|
24
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
25
|
+
"outputContract": "spec.v1",
|
|
26
|
+
"mustDo": ["Stay read-only", "Use prior exploration evidence", "Make acceptance criteria observable", "State assumptions and open questions"],
|
|
27
|
+
"mustNotDo": ["No edits", "No writes", "No bash", "No secrets or .env reads", "No commits", "No live child execution"],
|
|
28
|
+
"context": "Chain {chain}, step {step_id}; original ask: {original_user_ask}; previous steps: {previous_step_ids}"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"id": "plan",
|
|
32
|
+
"agent": "planner",
|
|
33
|
+
"task": "Plan the smallest safe implementation slice for goal: {goal}, using prior exploration and spec evidence from: {previous_step_ids}.",
|
|
34
|
+
"expectedOutcome": "Bounded implementation plan with validation ladder and risks",
|
|
35
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
36
|
+
"outputContract": "plan.v1",
|
|
37
|
+
"mustDo": ["Stay plan-only and read-only", "Consume prior evidence", "Keep the slice bounded", "Name validation commands"],
|
|
38
|
+
"mustNotDo": ["No edits", "No writes", "No bash", "No secrets or .env reads", "No commits", "No live child execution"],
|
|
39
|
+
"context": "Chain {chain}, step {step_id}; original ask: {original_user_ask}; previous steps: {previous_step_ids}"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"id": "oracle",
|
|
43
|
+
"agent": "oracle",
|
|
44
|
+
"task": "Review the evidence-backed spec/plan for goal: {goal}. Return PASS/FAIL/WARN and no_ship without editing.",
|
|
45
|
+
"expectedOutcome": "Oracle verdict on whether the plan is sufficiently grounded and safe",
|
|
46
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
47
|
+
"outputContract": "oracle.v1",
|
|
48
|
+
"mustDo": ["Stay read-only", "Check acceptance criteria against evidence", "Flag missing validation or unsafe scope", "Return clear PASS/FAIL/WARN"],
|
|
49
|
+
"mustNotDo": ["No edits", "No writes", "No bash", "No secrets or .env reads", "No commits", "No live child execution"],
|
|
50
|
+
"context": "Chain {chain}, step {step_id}; original ask: {original_user_ask}; previous steps: {previous_step_ids}"
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spec-clarify-plan-oracle",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Read-only product workflow with a clarification gate before planning.",
|
|
5
|
+
"readOnly": true,
|
|
6
|
+
"defaultExecution": "plan_only",
|
|
7
|
+
"steps": [
|
|
8
|
+
{
|
|
9
|
+
"id": "spec",
|
|
10
|
+
"agent": "specifier",
|
|
11
|
+
"task": "Convert goal into a testable spec for: {goal}. Preserve original ask: {original_user_ask}.",
|
|
12
|
+
"expectedOutcome": "spec.v1 with acceptance criteria and open questions",
|
|
13
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
14
|
+
"outputContract": "spec.v1",
|
|
15
|
+
"mustDo": ["Stay read-only", "Make acceptance criteria observable", "State assumptions and open questions", "Cite evidence consulted"],
|
|
16
|
+
"mustNotDo": ["No edits", "No writes", "No bash", "No secrets or .env reads", "No commits", "No live child execution"],
|
|
17
|
+
"context": "Chain {chain}, step {step_id}; original ask: {original_user_ask}; previous steps: {previous_step_ids}"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"id": "clarify",
|
|
21
|
+
"agent": "clarifier",
|
|
22
|
+
"task": "Review the prior spec for goal: {goal}. Score clarity and decide if planning is allowed. If clarity_score < 70 or BLOCKED, return allow_plan=no.",
|
|
23
|
+
"expectedOutcome": "clarification.v1 with clarity_score, verdict, allow_plan, questions, assumptions, and minimum_to_plan",
|
|
24
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
25
|
+
"outputContract": "clarification.v1",
|
|
26
|
+
"mustDo": ["Stay read-only", "Score clarity 0-100", "Ask guided questions", "Block planning when acceptance criteria are not testable"],
|
|
27
|
+
"mustNotDo": ["No edits", "No writes", "No bash", "No secrets or .env reads", "No commits", "No live child execution"],
|
|
28
|
+
"context": "Chain {chain}, step {step_id}; original ask: {original_user_ask}; previous steps: {previous_step_ids}"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"id": "plan",
|
|
32
|
+
"agent": "planner",
|
|
33
|
+
"task": "Plan only if clarification allows planning for goal: {goal}. Use prior spec/clarification evidence from: {previous_step_ids}. State assumptions and stop if allow_plan=no.",
|
|
34
|
+
"expectedOutcome": "Bounded plan or explicit stop decision if clarification blocks planning",
|
|
35
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
36
|
+
"outputContract": "plan.v1",
|
|
37
|
+
"mustDo": ["Stay plan-only and read-only", "Consume prior spec and clarification", "Respect allow_plan gate", "Name validation commands"],
|
|
38
|
+
"mustNotDo": ["No edits", "No writes", "No bash", "No secrets or .env reads", "No commits", "No live child execution"],
|
|
39
|
+
"context": "Chain {chain}, step {step_id}; original ask: {original_user_ask}; previous steps: {previous_step_ids}"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"id": "oracle",
|
|
43
|
+
"agent": "oracle",
|
|
44
|
+
"task": "Review the clarification-gated plan for goal: {goal}. Return PASS/FAIL/WARN and no_ship without editing.",
|
|
45
|
+
"expectedOutcome": "Oracle verdict on whether the clarified plan is safe",
|
|
46
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
47
|
+
"outputContract": "oracle.v1",
|
|
48
|
+
"mustDo": ["Stay read-only", "Check plan against spec and clarification", "Flag missing validation or unsafe scope", "Return clear PASS/FAIL/WARN"],
|
|
49
|
+
"mustNotDo": ["No edits", "No writes", "No bash", "No secrets or .env reads", "No commits", "No live child execution"],
|
|
50
|
+
"context": "Chain {chain}, step {step_id}; original ask: {original_user_ask}; previous steps: {previous_step_ids}"
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spec-factory-oracle",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Read-only factory-first planning chain: spec, factory design, then oracle review. Does not run factory_run.",
|
|
5
|
+
"readOnly": true,
|
|
6
|
+
"defaultExecution": "plan_only",
|
|
7
|
+
"steps": [
|
|
8
|
+
{
|
|
9
|
+
"id": "spec",
|
|
10
|
+
"agent": "specifier",
|
|
11
|
+
"task": "Convert goal into a factory-ready spec for repeated work: {goal}. Preserve original ask: {original_user_ask}.",
|
|
12
|
+
"expectedOutcome": "spec.v1 with factory-oriented acceptance criteria",
|
|
13
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
14
|
+
"outputContract": "spec.v1",
|
|
15
|
+
"mustDo": ["Stay read-only", "Identify repeated workflow", "Make acceptance criteria observable", "State assumptions and open questions"],
|
|
16
|
+
"mustNotDo": ["No edits", "No writes", "No bash", "No secrets or .env reads", "No commits", "No live child execution"],
|
|
17
|
+
"context": "Chain {chain}, step {step_id}; original ask: {original_user_ask}; previous steps: {previous_step_ids}"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"id": "factory-design",
|
|
21
|
+
"agent": "factory",
|
|
22
|
+
"task": "Design a reusable software factory for goal: {goal}, using the prior spec from: {previous_step_ids}. Do not execute factory_run; produce factory.v1 design only.",
|
|
23
|
+
"expectedOutcome": "factory.v1 with manifest, schema, validators, smoke/pilot, sentinel, and resume/checkpoint strategy",
|
|
24
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
25
|
+
"outputContract": "factory.v1",
|
|
26
|
+
"mustDo": ["Stay read-only", "Separate deterministic scaffolding from LLM enrichment", "Define validators and sentinels", "Start with smoke before pilot/batch"],
|
|
27
|
+
"mustNotDo": ["No edits", "No writes", "No bash", "No factory_run", "No secrets or .env reads", "No commits", "No live child execution"],
|
|
28
|
+
"context": "Chain {chain}, step {step_id}; original ask: {original_user_ask}; previous steps: {previous_step_ids}"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"id": "oracle",
|
|
32
|
+
"agent": "oracle",
|
|
33
|
+
"task": "Review the factory design for goal: {goal}. Verify validators, sentinels, checkpoint/resume, oracle gates, and safety. Return PASS/FAIL/WARN without editing.",
|
|
34
|
+
"expectedOutcome": "Oracle verdict on whether the factory design is safe to implement",
|
|
35
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
36
|
+
"outputContract": "oracle.v1",
|
|
37
|
+
"mustDo": ["Stay read-only", "Check validators and sentinels", "Flag missing oracle/pilot gates", "Return clear PASS/FAIL/WARN"],
|
|
38
|
+
"mustNotDo": ["No edits", "No writes", "No bash", "No factory_run", "No secrets or .env reads", "No commits", "No live child execution"],
|
|
39
|
+
"context": "Chain {chain}, step {step_id}; original ask: {original_user_ask}; previous steps: {previous_step_ids}"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spec-plan-oracle",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Read-only product workflow: write a testable spec, plan the smallest safe implementation slice, then oracle-review the plan.",
|
|
5
|
+
"readOnly": true,
|
|
6
|
+
"defaultExecution": "plan_only",
|
|
7
|
+
"steps": [
|
|
8
|
+
{
|
|
9
|
+
"id": "spec",
|
|
10
|
+
"agent": "specifier",
|
|
11
|
+
"task": "Convert goal into a testable spec for: {goal}. Preserve original ask: {original_user_ask}. Do not plan implementation beyond handoff criteria.",
|
|
12
|
+
"expectedOutcome": "spec.v1 with acceptance criteria and planner handoff",
|
|
13
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
14
|
+
"outputContract": "spec.v1",
|
|
15
|
+
"mustDo": ["Stay read-only", "Make acceptance criteria observable", "State assumptions and open questions", "Cite evidence consulted"],
|
|
16
|
+
"mustNotDo": ["No edits", "No writes", "No bash", "No secrets or .env reads", "No commits", "No live child execution"],
|
|
17
|
+
"context": "Chain {chain}, step {step_id}; original ask: {original_user_ask}; previous steps: {previous_step_ids}"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"id": "plan",
|
|
21
|
+
"agent": "planner",
|
|
22
|
+
"task": "Plan the smallest safe implementation slice for goal: {goal}, using the spec from previous steps: {previous_step_ids}. Produce validation ladder and stop conditions only.",
|
|
23
|
+
"expectedOutcome": "Bounded implementation plan with validation ladder and risks",
|
|
24
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
25
|
+
"outputContract": "plan.v1",
|
|
26
|
+
"mustDo": ["Stay plan-only and read-only", "Consume prior spec evidence", "Keep scope bounded", "Name validation commands"],
|
|
27
|
+
"mustNotDo": ["No edits", "No writes", "No bash", "No secrets or .env reads", "No commits", "No live child execution"],
|
|
28
|
+
"context": "Chain {chain}, step {step_id}; original ask: {original_user_ask}; previous steps: {previous_step_ids}"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"id": "oracle",
|
|
32
|
+
"agent": "oracle",
|
|
33
|
+
"task": "Review the spec-derived plan for goal: {goal}. Return PASS/FAIL/WARN and no_ship without editing.",
|
|
34
|
+
"expectedOutcome": "Oracle verdict on whether the plan is safe and sufficiently specified",
|
|
35
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
36
|
+
"outputContract": "oracle.v1",
|
|
37
|
+
"mustDo": ["Stay read-only", "Check plan against spec acceptance criteria", "Flag missing validation or unsafe scope", "Return clear PASS/FAIL/WARN"],
|
|
38
|
+
"mustNotDo": ["No edits", "No writes", "No bash", "No secrets or .env reads", "No commits", "No live child execution"],
|
|
39
|
+
"context": "Chain {chain}, step {step_id}; original ask: {original_user_ask}; previous steps: {previous_step_ids}"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "zob.compute-profile-defaults.v1",
|
|
3
|
+
"profiles": {
|
|
4
|
+
"low": { "maxAgents": 1, "maxDelegationDepth": 0, "maxParallel": 1, "maxIterations": 1, "maxDurationMs": 120000, "maxCostUsd": 0.25, "maxContextTokens": 3000, "strictBudgetRequired": false, "oracleRequired": false },
|
|
5
|
+
"medium": { "maxAgents": 4, "maxDelegationDepth": 1, "maxParallel": 2, "maxIterations": 2, "maxDurationMs": 300000, "maxCostUsd": 1, "maxContextTokens": 6000, "strictBudgetRequired": false, "oracleRequired": false },
|
|
6
|
+
"high": { "maxAgents": 10, "maxDelegationDepth": 2, "maxParallel": 4, "maxIterations": 3, "maxDurationMs": 600000, "maxCostUsd": 5, "maxContextTokens": 12000, "strictBudgetRequired": true, "oracleRequired": true },
|
|
7
|
+
"xhigh": { "maxAgents": 20, "maxDelegationDepth": 3, "maxParallel": 6, "maxIterations": 4, "maxDurationMs": 1200000, "maxCostUsd": 15, "maxContextTokens": 20000, "strictBudgetRequired": true, "oracleRequired": true },
|
|
8
|
+
"max": { "maxAgents": 30, "maxDelegationDepth": 4, "maxParallel": 8, "maxIterations": 5, "maxDurationMs": 3600000, "maxCostUsd": 50, "maxContextTokens": 32000, "strictBudgetRequired": true, "oracleRequired": true, "humanApprovalRequired": true }
|
|
9
|
+
},
|
|
10
|
+
"hardCaps": {
|
|
11
|
+
"maxAgents": 30,
|
|
12
|
+
"maxDelegationDepth": 4,
|
|
13
|
+
"maxParallel": 8,
|
|
14
|
+
"maxIterations": 5
|
|
15
|
+
},
|
|
16
|
+
"parentOwnedDispatch": true,
|
|
17
|
+
"childDirectDispatch": false,
|
|
18
|
+
"bodyStored": false
|
|
19
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "zob.compute-profile-overrides.v1",
|
|
3
|
+
"overridesEnabled": false,
|
|
4
|
+
"allowedOverrideCeilings": {
|
|
5
|
+
"maxAgents": 30,
|
|
6
|
+
"maxDelegationDepth": 4,
|
|
7
|
+
"maxParallel": 8,
|
|
8
|
+
"maxIterations": 5
|
|
9
|
+
},
|
|
10
|
+
"maxRequiresHumanApproval": true,
|
|
11
|
+
"xhighRequiresStrictBudget": true,
|
|
12
|
+
"bodyStored": false
|
|
13
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "zob.compute-profile-risk-rules.v1",
|
|
3
|
+
"secretPatterns": [".env", ".env.*", "*.pem", "*.key", "id_rsa", "id_ed25519", "credentials", "secrets"],
|
|
4
|
+
"generatedVendorPatterns": ["node_modules", "dist", "build", "coverage", ".next", ".nuxt", "out", "vendor", "generated"],
|
|
5
|
+
"networkRiskHints": ["network", "browser", "cloud"],
|
|
6
|
+
"writeRiskHints": ["write", "apply", "mutation", "durable", "promotion"],
|
|
7
|
+
"riskOverrides": {
|
|
8
|
+
"secretsTouched": "no_ship",
|
|
9
|
+
"maxWithoutHumanApproval": "no_ship",
|
|
10
|
+
"strictBudgetMissingForXhighOrMax": "no_ship",
|
|
11
|
+
"oracleMissingForHighOrAbove": "no_ship"
|
|
12
|
+
},
|
|
13
|
+
"parentOwnedDispatch": true,
|
|
14
|
+
"childDirectDispatch": false,
|
|
15
|
+
"bodyStored": false
|
|
16
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "zob.daemon-policy.v1",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"description": "Policy registry for future local daemon review. This policy allows only manual one-shot read-only queue ticks today and never starts an always-on daemon by itself.",
|
|
5
|
+
"mode": "manual_one_shot_readonly",
|
|
6
|
+
"daemonEnabled": false,
|
|
7
|
+
"alwaysOnDaemonEnabled": false,
|
|
8
|
+
"autoStartDaemon": false,
|
|
9
|
+
"continuousLoop": false,
|
|
10
|
+
"cronEnabled": false,
|
|
11
|
+
"maxWorkersDefault": 1,
|
|
12
|
+
"maxWorkersMax": 1,
|
|
13
|
+
"claimAtMostOneJobPerTick": true,
|
|
14
|
+
"allowedJobTypes": [
|
|
15
|
+
"docs_watch",
|
|
16
|
+
"repo_audit_readonly",
|
|
17
|
+
"todo_risk_report",
|
|
18
|
+
"session_analysis"
|
|
19
|
+
],
|
|
20
|
+
"disallowedAdapters": [
|
|
21
|
+
"write",
|
|
22
|
+
"edit",
|
|
23
|
+
"github",
|
|
24
|
+
"browser",
|
|
25
|
+
"cloud",
|
|
26
|
+
"web",
|
|
27
|
+
"deploy",
|
|
28
|
+
"publish"
|
|
29
|
+
],
|
|
30
|
+
"allowedStopConditions": [
|
|
31
|
+
"none",
|
|
32
|
+
"failed_preflight",
|
|
33
|
+
"incomplete_no_assistant_turn",
|
|
34
|
+
"incomplete_no_evidence",
|
|
35
|
+
"failed_validation",
|
|
36
|
+
"timeout",
|
|
37
|
+
"blocked",
|
|
38
|
+
"scope_violation",
|
|
39
|
+
"agentic_failed",
|
|
40
|
+
"oracle_fail",
|
|
41
|
+
"no_ship",
|
|
42
|
+
"fail_loop"
|
|
43
|
+
],
|
|
44
|
+
"requiredStopConditions": [
|
|
45
|
+
"failed_preflight",
|
|
46
|
+
"incomplete_no_assistant_turn",
|
|
47
|
+
"incomplete_no_evidence",
|
|
48
|
+
"failed_validation",
|
|
49
|
+
"scope_violation",
|
|
50
|
+
"timeout",
|
|
51
|
+
"blocked",
|
|
52
|
+
"agentic_failed",
|
|
53
|
+
"oracle_fail",
|
|
54
|
+
"no_ship",
|
|
55
|
+
"fail_loop"
|
|
56
|
+
],
|
|
57
|
+
"budgetEnforced": false,
|
|
58
|
+
"strictEnabled": false,
|
|
59
|
+
"wouldBlockDispatch": false,
|
|
60
|
+
"modelRouterUsed": false,
|
|
61
|
+
"routingApplied": false,
|
|
62
|
+
"childDispatchAllowed": false,
|
|
63
|
+
"liveChildExecution": false,
|
|
64
|
+
"networkAccessed": false,
|
|
65
|
+
"writeAdaptersEnabled": false,
|
|
66
|
+
"productionWritesPerformed": false,
|
|
67
|
+
"autoApply": false,
|
|
68
|
+
"noExecution": true,
|
|
69
|
+
"bodyStored": false,
|
|
70
|
+
"promptBodiesStored": false,
|
|
71
|
+
"outputBodiesStored": false,
|
|
72
|
+
"futureAlwaysOnPrerequisites": [
|
|
73
|
+
"strict budget enforcement integrated with dispatch blocking",
|
|
74
|
+
"live model routing integrated behind budget gates",
|
|
75
|
+
"arbitrary registered factory proof matrix completed with oracle review",
|
|
76
|
+
"sandbox production apply and rollback gates proven",
|
|
77
|
+
"stop-condition escalation policy proven",
|
|
78
|
+
"operator approval for daemon autostart and scheduling"
|
|
79
|
+
]
|
|
80
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"zeroAccessPaths": [
|
|
3
|
+
".env",
|
|
4
|
+
".env.*",
|
|
5
|
+
"~/.ssh",
|
|
6
|
+
"~/.aws",
|
|
7
|
+
"~/.gnupg",
|
|
8
|
+
"*.pem",
|
|
9
|
+
"*.key"
|
|
10
|
+
],
|
|
11
|
+
"readOnlyPaths": [
|
|
12
|
+
".git/",
|
|
13
|
+
"node_modules/",
|
|
14
|
+
"package-lock.json",
|
|
15
|
+
"pnpm-lock.yaml",
|
|
16
|
+
"bun.lock",
|
|
17
|
+
"dist/",
|
|
18
|
+
"build/"
|
|
19
|
+
],
|
|
20
|
+
"noDeletePaths": [
|
|
21
|
+
".git/",
|
|
22
|
+
"AGENTS.md",
|
|
23
|
+
"README.md",
|
|
24
|
+
".pi/agents/",
|
|
25
|
+
".pi/prompts/",
|
|
26
|
+
".pi/extensions/"
|
|
27
|
+
],
|
|
28
|
+
"bashToolPatterns": [
|
|
29
|
+
{ "pattern": "\\brm\\s+(-rf?|--recursive)", "reason": "recursive deletion" },
|
|
30
|
+
{ "pattern": "\\bgit\\s+reset\\s+--hard\\b", "reason": "destructive git reset" },
|
|
31
|
+
{ "pattern": "\\bgit\\s+clean\\s+-", "reason": "destructive git clean" },
|
|
32
|
+
{ "pattern": "\\bgit\\s+checkout\\s+\\.", "reason": "workspace-wide checkout" },
|
|
33
|
+
{ "pattern": "\\bgit\\s+add\\s+(-A|\\.)", "reason": "bulk staging hides unrelated agent work" },
|
|
34
|
+
{ "pattern": "\\bgit\\s+commit\\b", "reason": "direct git commit is blocked; use governed /zcommit commit only when authorized" },
|
|
35
|
+
{ "pattern": "\\bgit\\s+push\\b.*\\s(--force|-f|--force-with-lease)\\b", "reason": "force push is blocked by ZOB git policy" },
|
|
36
|
+
{ "pattern": "\\bgit\\s+push\\b", "reason": "direct git push is blocked; use governed /zcommit push only when authorized" },
|
|
37
|
+
{ "pattern": "\\bgit\\s+tag\\b", "reason": "direct git tag is blocked by ZOB git policy" },
|
|
38
|
+
{ "pattern": "\\bsudo\\b", "reason": "privileged command", "ask": true },
|
|
39
|
+
{ "pattern": "\\b(chmod|chown)\\b.*777", "reason": "unsafe permissions" },
|
|
40
|
+
{ "pattern": "DROP\\s+DATABASE|TRUNCATE\\s+TABLE", "reason": "destructive database operation" },
|
|
41
|
+
{ "pattern": "docker\\s+system\\s+prune", "reason": "destructive docker cleanup", "ask": true },
|
|
42
|
+
{ "pattern": "aws\\s+s3\\s+rm\\b.*--recursive", "reason": "recursive cloud deletion" },
|
|
43
|
+
{ "pattern": "\\bkillall\\b|\\bpkill\\b", "reason": "broad process kill", "ask": true }
|
|
44
|
+
]
|
|
45
|
+
}
|