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,193 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "zob.orchestration-profile.v1",
|
|
3
|
+
"name": "adaptive-chief-vision",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"description": "Adaptive workflow runtime profile: Chief Vision root orchestrates planning, engineering, guidance docs, temp-agent creation, and validation without coding directly.",
|
|
6
|
+
"goalPolicy": "strict",
|
|
7
|
+
"modelPolicy": {
|
|
8
|
+
"classes": {
|
|
9
|
+
"cheap_scout": {
|
|
10
|
+
"description": "Fast low-risk exploration",
|
|
11
|
+
"defaultModel": "provider/cheap-fast",
|
|
12
|
+
"thinking": "low",
|
|
13
|
+
"downgradeAllowed": true
|
|
14
|
+
},
|
|
15
|
+
"balanced_worker": {
|
|
16
|
+
"description": "Standard implementation and QA",
|
|
17
|
+
"defaultModel": "provider/balanced",
|
|
18
|
+
"thinking": "medium",
|
|
19
|
+
"downgradeAllowed": true
|
|
20
|
+
},
|
|
21
|
+
"strong_reasoning": {
|
|
22
|
+
"description": "Chief Vision, planning, architecture, temp-agent creation",
|
|
23
|
+
"defaultModel": "provider/strong-reasoning",
|
|
24
|
+
"thinking": "high",
|
|
25
|
+
"downgradeAllowed": false
|
|
26
|
+
},
|
|
27
|
+
"strong_oracle": {
|
|
28
|
+
"description": "Critical validation and security/oracle review",
|
|
29
|
+
"defaultModel": "provider/strong-oracle",
|
|
30
|
+
"thinking": "high",
|
|
31
|
+
"downgradeAllowed": false
|
|
32
|
+
},
|
|
33
|
+
"high_context": {
|
|
34
|
+
"description": "Documentation/guidance synthesis and large context packs",
|
|
35
|
+
"defaultModel": "provider/high-context",
|
|
36
|
+
"thinking": "high",
|
|
37
|
+
"downgradeAllowed": false
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"orchestrator": {
|
|
42
|
+
"id": "chief-vision-root",
|
|
43
|
+
"roleType": "orchestrator",
|
|
44
|
+
"agent": "chief-vision",
|
|
45
|
+
"modelClass": "strong_reasoning",
|
|
46
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
47
|
+
"outputContract": "plan.v1",
|
|
48
|
+
"rules": [
|
|
49
|
+
"Do not code directly",
|
|
50
|
+
"Coordinate via TODO graph and parent-owned delegation",
|
|
51
|
+
"Require prompt/model/scale/documentation policies",
|
|
52
|
+
"Never mark complete without oracle evidence and no_ship=false"
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
"roles": [
|
|
56
|
+
{
|
|
57
|
+
"id": "planning-lead",
|
|
58
|
+
"roleType": "lead",
|
|
59
|
+
"agent": "planner",
|
|
60
|
+
"modelClass": "strong_reasoning",
|
|
61
|
+
"canDelegateTo": ["explore-worker", "doc-steward-worker", "temp-agent-creator-worker"],
|
|
62
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
63
|
+
"outputContract": "lead-plan.v1"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"id": "engineering-lead",
|
|
67
|
+
"roleType": "lead",
|
|
68
|
+
"agent": "planner",
|
|
69
|
+
"modelClass": "strong_reasoning",
|
|
70
|
+
"canDelegateTo": ["implementer-worker", "qa-worker"],
|
|
71
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
72
|
+
"outputContract": "lead-plan.v1"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"id": "validation-lead",
|
|
76
|
+
"roleType": "lead",
|
|
77
|
+
"agent": "oracle-merge",
|
|
78
|
+
"modelClass": "strong_oracle",
|
|
79
|
+
"canDelegateTo": ["oracle-worker", "security-worker"],
|
|
80
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
81
|
+
"outputContract": "lead-plan.v1"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"id": "explore-worker",
|
|
85
|
+
"roleType": "worker",
|
|
86
|
+
"leadId": "planning-lead",
|
|
87
|
+
"agent": "explore",
|
|
88
|
+
"modelClass": "cheap_scout",
|
|
89
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
90
|
+
"outputContract": "explore.v1"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"id": "doc-steward-worker",
|
|
94
|
+
"roleType": "worker",
|
|
95
|
+
"leadId": "planning-lead",
|
|
96
|
+
"agent": "doc-steward",
|
|
97
|
+
"modelClass": "high_context",
|
|
98
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
99
|
+
"outputContract": "guidance-steward.v1"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"id": "temp-agent-creator-worker",
|
|
103
|
+
"roleType": "worker",
|
|
104
|
+
"leadId": "planning-lead",
|
|
105
|
+
"agent": "temp-agent-creator",
|
|
106
|
+
"modelClass": "strong_reasoning",
|
|
107
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
108
|
+
"outputContract": "temp-agent-card.v1"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"id": "implementer-worker",
|
|
112
|
+
"roleType": "worker",
|
|
113
|
+
"leadId": "engineering-lead",
|
|
114
|
+
"agent": "implementer",
|
|
115
|
+
"modelClass": "balanced_worker",
|
|
116
|
+
"requiredTools": ["read", "grep", "find", "ls", "edit"],
|
|
117
|
+
"allowedPaths": [".pi/extensions/", ".pi/agents/", ".pi/prompts/", ".pi/output-contracts/", ".pi/orchestrations/", ".pi/rules/", "docs/", "scripts/", "package.json"],
|
|
118
|
+
"forbiddenPaths": [".env", ".git/", "node_modules/", "dist/", "build/"],
|
|
119
|
+
"outputContract": "implement.v1"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"id": "qa-worker",
|
|
123
|
+
"roleType": "worker",
|
|
124
|
+
"leadId": "engineering-lead",
|
|
125
|
+
"agent": "qa",
|
|
126
|
+
"modelClass": "balanced_worker",
|
|
127
|
+
"requiredTools": ["read", "grep", "find", "ls", "bash"],
|
|
128
|
+
"outputContract": "qa.v1"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"id": "oracle-worker",
|
|
132
|
+
"roleType": "worker",
|
|
133
|
+
"leadId": "validation-lead",
|
|
134
|
+
"agent": "oracle",
|
|
135
|
+
"modelClass": "strong_oracle",
|
|
136
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
137
|
+
"outputContract": "oracle.v1"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"id": "security-worker",
|
|
141
|
+
"roleType": "worker",
|
|
142
|
+
"leadId": "validation-lead",
|
|
143
|
+
"agent": "oracle",
|
|
144
|
+
"modelClass": "strong_oracle",
|
|
145
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
146
|
+
"outputContract": "oracle.v1",
|
|
147
|
+
"rules": ["Review secrets exposure", "Review path policy", "Return no_ship=true on critical risk"]
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
"edges": [
|
|
151
|
+
["chief-vision-root", "planning-lead"],
|
|
152
|
+
["chief-vision-root", "engineering-lead"],
|
|
153
|
+
["chief-vision-root", "validation-lead"],
|
|
154
|
+
["planning-lead", "explore-worker"],
|
|
155
|
+
["planning-lead", "doc-steward-worker"],
|
|
156
|
+
["planning-lead", "temp-agent-creator-worker"],
|
|
157
|
+
["explore-worker", "planning-lead"],
|
|
158
|
+
["doc-steward-worker", "planning-lead"],
|
|
159
|
+
["temp-agent-creator-worker", "planning-lead"],
|
|
160
|
+
["engineering-lead", "implementer-worker"],
|
|
161
|
+
["engineering-lead", "qa-worker"],
|
|
162
|
+
["implementer-worker", "engineering-lead"],
|
|
163
|
+
["qa-worker", "engineering-lead"],
|
|
164
|
+
["validation-lead", "oracle-worker"],
|
|
165
|
+
["validation-lead", "security-worker"],
|
|
166
|
+
["oracle-worker", "validation-lead"],
|
|
167
|
+
["security-worker", "validation-lead"],
|
|
168
|
+
["planning-lead", "chief-vision-root"],
|
|
169
|
+
["engineering-lead", "chief-vision-root"],
|
|
170
|
+
["validation-lead", "chief-vision-root"]
|
|
171
|
+
],
|
|
172
|
+
"phases": [
|
|
173
|
+
{ "id": "goal-intake", "type": "goal_gate", "required": true },
|
|
174
|
+
{ "id": "policy-bootstrap", "type": "adaptive_policy", "run": ["chief-vision-root"], "required": true },
|
|
175
|
+
{ "id": "lead-planning", "type": "parallel_leads", "run": ["planning-lead", "engineering-lead", "validation-lead"], "requiresOutputContract": "lead-plan.v1" },
|
|
176
|
+
{ "id": "guidance-and-temp-agent-review", "type": "proposal_only", "run": ["doc-steward-worker", "temp-agent-creator-worker"] },
|
|
177
|
+
{ "id": "worker-execution", "type": "from_lead_plans", "requiresOutputContract": "lead-plan.v1" },
|
|
178
|
+
{ "id": "oracle-merge", "type": "validation", "run": ["validation-lead"], "noShipOnFail": true },
|
|
179
|
+
{ "id": "final-report", "type": "final_report", "run": ["chief-vision-root"] }
|
|
180
|
+
],
|
|
181
|
+
"finalReportRole": "chief-vision-root",
|
|
182
|
+
"completionGate": {
|
|
183
|
+
"requiresEvidence": true,
|
|
184
|
+
"requiresOracle": true,
|
|
185
|
+
"requiresDocumentationPolicy": true,
|
|
186
|
+
"requiresModelPolicy": true,
|
|
187
|
+
"requiresScalePolicy": true,
|
|
188
|
+
"requiresPromptStackHashes": true,
|
|
189
|
+
"noShipOnFail": true,
|
|
190
|
+
"promptBodiesStored": false,
|
|
191
|
+
"outputBodiesStored": false
|
|
192
|
+
}
|
|
193
|
+
}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "zob.orchestration-profile.v1",
|
|
3
|
+
"name": "ceo-feature-build",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"description": "Example advanced profile: CEO-style coordinator delegates to planning, engineering, and validation leads. CEO is a profile role, not a hardcoded runtime requirement.",
|
|
6
|
+
"goalPolicy": "strict",
|
|
7
|
+
"modelPolicy": {
|
|
8
|
+
"classes": {
|
|
9
|
+
"cheap_scout": {
|
|
10
|
+
"description": "Fast low-risk exploration",
|
|
11
|
+
"defaultModel": "provider/cheap-fast",
|
|
12
|
+
"thinking": "low",
|
|
13
|
+
"downgradeAllowed": true
|
|
14
|
+
},
|
|
15
|
+
"balanced_worker": {
|
|
16
|
+
"description": "Standard execution and QA",
|
|
17
|
+
"defaultModel": "provider/balanced",
|
|
18
|
+
"thinking": "medium",
|
|
19
|
+
"downgradeAllowed": true
|
|
20
|
+
},
|
|
21
|
+
"strong_reasoning": {
|
|
22
|
+
"description": "Planning and architecture",
|
|
23
|
+
"defaultModel": "provider/strong-reasoning",
|
|
24
|
+
"thinking": "high",
|
|
25
|
+
"downgradeAllowed": false
|
|
26
|
+
},
|
|
27
|
+
"strong_oracle": {
|
|
28
|
+
"description": "Critical validation and security",
|
|
29
|
+
"defaultModel": "provider/strong-oracle",
|
|
30
|
+
"thinking": "high",
|
|
31
|
+
"downgradeAllowed": false
|
|
32
|
+
},
|
|
33
|
+
"local_offline": {
|
|
34
|
+
"description": "Local/offline fallback for non-critical tasks",
|
|
35
|
+
"defaultModel": "local/model",
|
|
36
|
+
"thinking": "low",
|
|
37
|
+
"downgradeAllowed": true
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"orchestrator": {
|
|
42
|
+
"id": "ceo-orchestrator",
|
|
43
|
+
"roleType": "orchestrator",
|
|
44
|
+
"agent": "planner",
|
|
45
|
+
"modelClass": "strong_reasoning",
|
|
46
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
47
|
+
"outputContract": "plan.v1",
|
|
48
|
+
"rules": [
|
|
49
|
+
"Do not code directly",
|
|
50
|
+
"Delegate through leads",
|
|
51
|
+
"Preserve original user ask",
|
|
52
|
+
"Never mark complete without oracle evidence"
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
"roles": [
|
|
56
|
+
{
|
|
57
|
+
"id": "planning-lead",
|
|
58
|
+
"roleType": "lead",
|
|
59
|
+
"agent": "planner",
|
|
60
|
+
"modelClass": "strong_reasoning",
|
|
61
|
+
"canDelegateTo": ["explore-worker", "research-worker"],
|
|
62
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
63
|
+
"outputContract": "lead-plan.v1"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"id": "explore-worker",
|
|
67
|
+
"roleType": "worker",
|
|
68
|
+
"leadId": "planning-lead",
|
|
69
|
+
"agent": "explore",
|
|
70
|
+
"modelClass": "cheap_scout",
|
|
71
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
72
|
+
"outputContract": "explore.v1"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"id": "research-worker",
|
|
76
|
+
"roleType": "worker",
|
|
77
|
+
"leadId": "planning-lead",
|
|
78
|
+
"agent": "librarian",
|
|
79
|
+
"modelClass": "balanced_worker",
|
|
80
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
81
|
+
"outputContract": "research.v1"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"id": "engineering-lead",
|
|
85
|
+
"roleType": "lead",
|
|
86
|
+
"agent": "planner",
|
|
87
|
+
"modelClass": "strong_reasoning",
|
|
88
|
+
"canDelegateTo": ["implementer-worker", "qa-worker"],
|
|
89
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
90
|
+
"outputContract": "lead-plan.v1"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"id": "implementer-worker",
|
|
94
|
+
"roleType": "worker",
|
|
95
|
+
"leadId": "engineering-lead",
|
|
96
|
+
"agent": "implementer",
|
|
97
|
+
"modelClass": "balanced_worker",
|
|
98
|
+
"requiredTools": ["read", "grep", "find", "ls", "edit"],
|
|
99
|
+
"allowedPaths": ["src/", "tests/", ".pi/extensions/", ".pi/agents/", ".pi/prompts/", ".pi/output-contracts/", ".pi/chains/", "docs/", "scripts/"],
|
|
100
|
+
"forbiddenPaths": [".env", ".git/", "node_modules/", "dist/", "build/"],
|
|
101
|
+
"outputContract": "implement.v1"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"id": "qa-worker",
|
|
105
|
+
"roleType": "worker",
|
|
106
|
+
"leadId": "engineering-lead",
|
|
107
|
+
"agent": "qa",
|
|
108
|
+
"modelClass": "balanced_worker",
|
|
109
|
+
"requiredTools": ["read", "grep", "find", "ls", "bash"],
|
|
110
|
+
"outputContract": "qa.v1"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"id": "validation-lead",
|
|
114
|
+
"roleType": "lead",
|
|
115
|
+
"agent": "oracle-merge",
|
|
116
|
+
"modelClass": "strong_oracle",
|
|
117
|
+
"canDelegateTo": ["oracle-worker", "security-worker"],
|
|
118
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
119
|
+
"outputContract": "lead-plan.v1"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"id": "oracle-worker",
|
|
123
|
+
"roleType": "worker",
|
|
124
|
+
"leadId": "validation-lead",
|
|
125
|
+
"agent": "oracle",
|
|
126
|
+
"modelClass": "strong_oracle",
|
|
127
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
128
|
+
"outputContract": "oracle.v1"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"id": "security-worker",
|
|
132
|
+
"roleType": "worker",
|
|
133
|
+
"leadId": "validation-lead",
|
|
134
|
+
"agent": "oracle",
|
|
135
|
+
"modelClass": "strong_oracle",
|
|
136
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
137
|
+
"outputContract": "oracle.v1",
|
|
138
|
+
"rules": [
|
|
139
|
+
"Review secrets exposure",
|
|
140
|
+
"Review destructive operations",
|
|
141
|
+
"Review path policy",
|
|
142
|
+
"Return no_ship=true on critical risk"
|
|
143
|
+
]
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
"edges": [
|
|
147
|
+
["ceo-orchestrator", "planning-lead"],
|
|
148
|
+
["ceo-orchestrator", "engineering-lead"],
|
|
149
|
+
["ceo-orchestrator", "validation-lead"],
|
|
150
|
+
["planning-lead", "explore-worker"],
|
|
151
|
+
["planning-lead", "research-worker"],
|
|
152
|
+
["explore-worker", "planning-lead"],
|
|
153
|
+
["research-worker", "planning-lead"],
|
|
154
|
+
["engineering-lead", "implementer-worker"],
|
|
155
|
+
["engineering-lead", "qa-worker"],
|
|
156
|
+
["implementer-worker", "engineering-lead"],
|
|
157
|
+
["qa-worker", "engineering-lead"],
|
|
158
|
+
["validation-lead", "oracle-worker"],
|
|
159
|
+
["validation-lead", "security-worker"],
|
|
160
|
+
["oracle-worker", "validation-lead"],
|
|
161
|
+
["security-worker", "validation-lead"],
|
|
162
|
+
["planning-lead", "ceo-orchestrator"],
|
|
163
|
+
["engineering-lead", "ceo-orchestrator"],
|
|
164
|
+
["validation-lead", "ceo-orchestrator"]
|
|
165
|
+
],
|
|
166
|
+
"phases": [
|
|
167
|
+
{ "id": "goal-intake", "type": "goal_gate", "required": true },
|
|
168
|
+
{ "id": "lead-planning", "type": "parallel_leads", "run": ["planning-lead", "engineering-lead", "validation-lead"] },
|
|
169
|
+
{ "id": "worker-execution", "type": "from_lead_plans", "requiresOutputContract": "lead-plan.v1" },
|
|
170
|
+
{ "id": "lead-synthesis", "type": "lead_synthesis", "run": ["planning-lead", "engineering-lead", "validation-lead"] },
|
|
171
|
+
{ "id": "oracle-merge", "type": "validation", "run": ["validation-lead"], "noShipOnFail": true },
|
|
172
|
+
{ "id": "final-report", "type": "final_report", "run": ["ceo-orchestrator"] }
|
|
173
|
+
],
|
|
174
|
+
"finalReportRole": "ceo-orchestrator",
|
|
175
|
+
"completionGate": {
|
|
176
|
+
"requiresEvidence": true,
|
|
177
|
+
"requiresOracle": true,
|
|
178
|
+
"noShipOnFail": true,
|
|
179
|
+
"promptBodiesStored": false,
|
|
180
|
+
"outputBodiesStored": false
|
|
181
|
+
}
|
|
182
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "zob.orchestration-profile.v1",
|
|
3
|
+
"name": "readonly-dynamic-smoke",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"description": "Minimal read-only profile for proving live lead-plan extraction followed by gated dynamic worker dispatch.",
|
|
6
|
+
"goalPolicy": "strict",
|
|
7
|
+
"modelPolicy": {
|
|
8
|
+
"classes": {
|
|
9
|
+
"cheap_scout": {
|
|
10
|
+
"description": "Fast low-risk read-only exploration",
|
|
11
|
+
"defaultModel": "provider/cheap-fast",
|
|
12
|
+
"thinking": "low",
|
|
13
|
+
"downgradeAllowed": true
|
|
14
|
+
},
|
|
15
|
+
"strong_reasoning": {
|
|
16
|
+
"description": "Structured read-only lead planning",
|
|
17
|
+
"defaultModel": "provider/strong-reasoning",
|
|
18
|
+
"thinking": "high",
|
|
19
|
+
"downgradeAllowed": false
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"orchestrator": {
|
|
24
|
+
"id": "readonly-orchestrator",
|
|
25
|
+
"roleType": "orchestrator",
|
|
26
|
+
"agent": "planner",
|
|
27
|
+
"modelClass": "strong_reasoning",
|
|
28
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
29
|
+
"outputContract": "plan.v1",
|
|
30
|
+
"rules": [
|
|
31
|
+
"Read-only proof only",
|
|
32
|
+
"Delegate through the lead",
|
|
33
|
+
"Never mark complete without verifier evidence"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
"roles": [
|
|
37
|
+
{
|
|
38
|
+
"id": "readonly-lead",
|
|
39
|
+
"roleType": "lead",
|
|
40
|
+
"agent": "planner",
|
|
41
|
+
"modelClass": "strong_reasoning",
|
|
42
|
+
"canDelegateTo": ["readonly-explore-worker"],
|
|
43
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
44
|
+
"outputContract": "lead-plan.v1"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"id": "readonly-explore-worker",
|
|
48
|
+
"roleType": "worker",
|
|
49
|
+
"leadId": "readonly-lead",
|
|
50
|
+
"agent": "explore",
|
|
51
|
+
"modelClass": "cheap_scout",
|
|
52
|
+
"requiredTools": ["read", "grep", "find", "ls"],
|
|
53
|
+
"outputContract": "explore.v1"
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"edges": [
|
|
57
|
+
["readonly-orchestrator", "readonly-lead"],
|
|
58
|
+
["readonly-lead", "readonly-explore-worker"],
|
|
59
|
+
["readonly-explore-worker", "readonly-lead"],
|
|
60
|
+
["readonly-lead", "readonly-orchestrator"]
|
|
61
|
+
],
|
|
62
|
+
"phases": [
|
|
63
|
+
{ "id": "lead-planning", "type": "parallel_leads", "run": ["readonly-lead"], "requiresOutputContract": "lead-plan.v1" },
|
|
64
|
+
{ "id": "worker-execution", "type": "from_lead_plans", "requiresOutputContract": "lead-plan.v1" },
|
|
65
|
+
{ "id": "final-report", "type": "final_report", "run": ["readonly-orchestrator"] }
|
|
66
|
+
],
|
|
67
|
+
"finalReportRole": "readonly-orchestrator",
|
|
68
|
+
"completionGate": {
|
|
69
|
+
"requiresEvidence": true,
|
|
70
|
+
"requiresOracle": true,
|
|
71
|
+
"noShipOnFail": true,
|
|
72
|
+
"promptBodiesStored": false,
|
|
73
|
+
"outputBodiesStored": false
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "agent-event.v1",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"description": "Typed parent-visible agent event with hash-only body/output refs, evidence, and no direct TODO mutation.",
|
|
5
|
+
"required": [
|
|
6
|
+
{ "name": "deliverable_delivered", "type": "section_or_marker" },
|
|
7
|
+
{ "name": "evidence", "type": "section_or_marker" },
|
|
8
|
+
{ "name": "risks_blockers", "type": "section_or_marker" },
|
|
9
|
+
{ "name": "compliance", "type": "section_or_marker" },
|
|
10
|
+
{ "name": "schema", "type": "section_or_marker" },
|
|
11
|
+
{ "name": "kind", "type": "section_or_marker" },
|
|
12
|
+
{ "name": "body_hash", "type": "section_or_marker" },
|
|
13
|
+
{ "name": "parent_visible", "type": "section_or_marker" },
|
|
14
|
+
{ "name": "parent_owned_actions", "type": "section_or_marker" },
|
|
15
|
+
{ "name": "no_direct_todo_mutation", "type": "section_or_marker" },
|
|
16
|
+
{ "name": "body_free", "type": "section_or_marker" }
|
|
17
|
+
],
|
|
18
|
+
"final_marker": "deliverable_delivered: yes/no or <deliverable_delivered>yes|no</deliverable_delivered>"
|
|
19
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "base.v1",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"description": "Base ZOB delegated output contract.",
|
|
5
|
+
"required": [
|
|
6
|
+
{
|
|
7
|
+
"name": "deliverable_delivered",
|
|
8
|
+
"type": "section_or_marker"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"name": "evidence",
|
|
12
|
+
"type": "section_or_marker"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "risks_blockers",
|
|
16
|
+
"type": "section_or_marker"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "compliance",
|
|
20
|
+
"type": "section_or_marker"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"final_marker": "deliverable_delivered: yes/no or <deliverable_delivered>yes|no</deliverable_delivered>"
|
|
24
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "brain-lookup.v1",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"description": "Context/GBrain P0 lookup result with explicit scope, brain/source ids, citations, freshness, confidence, and no body storage.",
|
|
5
|
+
"required": [
|
|
6
|
+
{ "name": "deliverable_delivered", "type": "section_or_marker" },
|
|
7
|
+
{ "name": "evidence", "type": "section_or_marker" },
|
|
8
|
+
{ "name": "risks_blockers", "type": "section_or_marker" },
|
|
9
|
+
{ "name": "compliance", "type": "section_or_marker" },
|
|
10
|
+
{ "name": "context_scope", "type": "section_or_marker" },
|
|
11
|
+
{ "name": "brain_id", "type": "section_or_marker" },
|
|
12
|
+
{ "name": "source_id", "type": "section_or_marker" },
|
|
13
|
+
{ "name": "citations", "type": "section_or_marker" },
|
|
14
|
+
{ "name": "facts_or_patterns", "type": "section_or_marker" },
|
|
15
|
+
{ "name": "gaps", "type": "section_or_marker" },
|
|
16
|
+
{ "name": "freshness", "type": "section_or_marker" },
|
|
17
|
+
{ "name": "confidence", "type": "section_or_marker" },
|
|
18
|
+
{ "name": "no_body_storage", "type": "section_or_marker" }
|
|
19
|
+
],
|
|
20
|
+
"final_marker": "deliverable_delivered: yes/no or <deliverable_delivered>yes|no</deliverable_delivered>"
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "clarification.v1",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"description": "Clarification gate output with score, verdict, questions, assumptions, and allow_plan decision.",
|
|
5
|
+
"required": [
|
|
6
|
+
{ "name": "deliverable_delivered", "type": "section_or_marker" },
|
|
7
|
+
{ "name": "evidence", "type": "section_or_marker" },
|
|
8
|
+
{ "name": "risks_blockers", "type": "section_or_marker" },
|
|
9
|
+
{ "name": "compliance", "type": "section_or_marker" },
|
|
10
|
+
{ "name": "clarity_score", "type": "section_or_marker" },
|
|
11
|
+
{ "name": "verdict", "type": "section_or_marker" },
|
|
12
|
+
{ "name": "allow_plan", "type": "section_or_marker" },
|
|
13
|
+
{ "name": "ambiguities", "type": "section_or_marker" },
|
|
14
|
+
{ "name": "questions", "type": "section_or_marker" },
|
|
15
|
+
{ "name": "assumptions", "type": "section_or_marker" },
|
|
16
|
+
{ "name": "refined_spec", "type": "section_or_marker" },
|
|
17
|
+
{ "name": "minimum_to_plan", "type": "section_or_marker" },
|
|
18
|
+
{ "name": "acceptance_criteria", "type": "section_or_marker" }
|
|
19
|
+
],
|
|
20
|
+
"final_marker": "deliverable_delivered: yes/no or <deliverable_delivered>yes|no</deliverable_delivered>"
|
|
21
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "context-pack.v1",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"description": "Bounded Context/GBrain P0 context pack with source locks, citations, loading rules, agent profile map, and no body storage.",
|
|
5
|
+
"required": [
|
|
6
|
+
{ "name": "deliverable_delivered", "type": "section_or_marker" },
|
|
7
|
+
{ "name": "evidence", "type": "section_or_marker" },
|
|
8
|
+
{ "name": "risks_blockers", "type": "section_or_marker" },
|
|
9
|
+
{ "name": "compliance", "type": "section_or_marker" },
|
|
10
|
+
{ "name": "pack_id", "type": "section_or_marker" },
|
|
11
|
+
{ "name": "context_scope", "type": "section_or_marker" },
|
|
12
|
+
{ "name": "source_locks", "type": "section_or_marker" },
|
|
13
|
+
{ "name": "loading_rules", "type": "section_or_marker" },
|
|
14
|
+
{ "name": "agent_profile_map", "type": "section_or_marker" },
|
|
15
|
+
{ "name": "citations", "type": "section_or_marker" },
|
|
16
|
+
{ "name": "budget_limits", "type": "section_or_marker" },
|
|
17
|
+
{ "name": "no_body_storage", "type": "section_or_marker" }
|
|
18
|
+
],
|
|
19
|
+
"final_marker": "deliverable_delivered: yes/no or <deliverable_delivered>yes|no</deliverable_delivered>"
|
|
20
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "context-request.v1",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"description": "Governed parent-owned bounded context request. Proposal only; no corpus/backend write or child dispatch.",
|
|
5
|
+
"required": [
|
|
6
|
+
{ "name": "deliverable_delivered", "type": "section_or_marker" },
|
|
7
|
+
{ "name": "evidence", "type": "section_or_marker" },
|
|
8
|
+
{ "name": "risks_blockers", "type": "section_or_marker" },
|
|
9
|
+
{ "name": "compliance", "type": "section_or_marker" },
|
|
10
|
+
{ "name": "request_type", "type": "literal", "value": "CONTEXT_REQUEST.v1" },
|
|
11
|
+
{ "name": "request_id", "type": "field" },
|
|
12
|
+
{ "name": "requested_by", "type": "field" },
|
|
13
|
+
{ "name": "requested_action", "type": "field" },
|
|
14
|
+
{ "name": "body_hash", "type": "sha256" },
|
|
15
|
+
{ "name": "context_scope_id", "type": "field" },
|
|
16
|
+
{ "name": "risk_level", "type": "enum", "values": ["low", "medium", "high"] },
|
|
17
|
+
{ "name": "no_ship", "type": "field" },
|
|
18
|
+
{ "name": "final_marker", "type": "literal" }
|
|
19
|
+
],
|
|
20
|
+
"final_marker": "FINAL_MARKER: CONTEXT_REQUEST_END"
|
|
21
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "context-steward.v1",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"description": "Context Steward P0 output with cited context hints, source gaps, stale/missing context warnings, and writeback candidates only.",
|
|
5
|
+
"required": [
|
|
6
|
+
{ "name": "deliverable_delivered", "type": "section_or_marker" },
|
|
7
|
+
{ "name": "evidence", "type": "section_or_marker" },
|
|
8
|
+
{ "name": "risks_blockers", "type": "section_or_marker" },
|
|
9
|
+
{ "name": "compliance", "type": "section_or_marker" },
|
|
10
|
+
{ "name": "context_scope", "type": "section_or_marker" },
|
|
11
|
+
{ "name": "context_hints", "type": "section_or_marker" },
|
|
12
|
+
{ "name": "citations", "type": "section_or_marker" },
|
|
13
|
+
{ "name": "source_gaps", "type": "section_or_marker" },
|
|
14
|
+
{ "name": "writeback_candidates", "type": "section_or_marker" },
|
|
15
|
+
{ "name": "parent_owned", "type": "section_or_marker" },
|
|
16
|
+
{ "name": "no_plan_mutation", "type": "section_or_marker" }
|
|
17
|
+
],
|
|
18
|
+
"final_marker": "deliverable_delivered: yes/no or <deliverable_delivered>yes|no</deliverable_delivered>"
|
|
19
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "context-writeback-proposal.v1",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"description": "Context/GBrain P0 learning writeback proposal. Proposal only; no auto-promotion or GBrain write.",
|
|
5
|
+
"required": [
|
|
6
|
+
{ "name": "deliverable_delivered", "type": "section_or_marker" },
|
|
7
|
+
{ "name": "evidence", "type": "section_or_marker" },
|
|
8
|
+
{ "name": "risks_blockers", "type": "section_or_marker" },
|
|
9
|
+
{ "name": "compliance", "type": "section_or_marker" },
|
|
10
|
+
{ "name": "observed_problem", "type": "section_or_marker" },
|
|
11
|
+
{ "name": "new_pattern", "type": "section_or_marker" },
|
|
12
|
+
{ "name": "evidence_refs", "type": "section_or_marker" },
|
|
13
|
+
{ "name": "recommended_artifact", "type": "section_or_marker" },
|
|
14
|
+
{ "name": "promotion_requires", "type": "section_or_marker" },
|
|
15
|
+
{ "name": "auto_promote", "type": "section_or_marker" }
|
|
16
|
+
],
|
|
17
|
+
"final_marker": "deliverable_delivered: yes/no or <deliverable_delivered>yes|no</deliverable_delivered>"
|
|
18
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "delegation-request.v1",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"description": "Governed parent-owned delegation request. Proposal only; no child direct dispatch or parent TODO mutation.",
|
|
5
|
+
"required": [
|
|
6
|
+
{ "name": "deliverable_delivered", "type": "section_or_marker" },
|
|
7
|
+
{ "name": "evidence", "type": "section_or_marker" },
|
|
8
|
+
{ "name": "risks_blockers", "type": "section_or_marker" },
|
|
9
|
+
{ "name": "compliance", "type": "section_or_marker" },
|
|
10
|
+
{ "name": "request_type", "type": "literal", "value": "DELEGATION_REQUEST.v1" },
|
|
11
|
+
{ "name": "request_id", "type": "field" },
|
|
12
|
+
{ "name": "requested_by", "type": "field" },
|
|
13
|
+
{ "name": "requested_action", "type": "field" },
|
|
14
|
+
{ "name": "body_hash", "type": "sha256" },
|
|
15
|
+
{ "name": "agent", "type": "field" },
|
|
16
|
+
{ "name": "risk_level", "type": "enum", "values": ["low", "medium", "high"] },
|
|
17
|
+
{ "name": "no_ship", "type": "field" },
|
|
18
|
+
{ "name": "final_marker", "type": "literal" }
|
|
19
|
+
],
|
|
20
|
+
"final_marker": "FINAL_MARKER: DELEGATION_REQUEST_END"
|
|
21
|
+
}
|