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,345 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "zob.model-catalog.v1",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"description": "Human-maintained advisory catalog for selecting concrete Pi models for ZOB child agents. Model identifiers should be Pi --model patterns, not provider credentials.",
|
|
5
|
+
"advisoryOnly": true,
|
|
6
|
+
"routingConfigRef": ".pi/model-routing.json",
|
|
7
|
+
"liveRoutingEnabled": false,
|
|
8
|
+
"modelRouterUsed": false,
|
|
9
|
+
"routingApplied": false,
|
|
10
|
+
"childDispatchAllowed": false,
|
|
11
|
+
"networkAccessed": false,
|
|
12
|
+
"bodyStored": false,
|
|
13
|
+
"promptBodiesStored": false,
|
|
14
|
+
"outputBodiesStored": false,
|
|
15
|
+
"selectionPolicy": {
|
|
16
|
+
"order": [
|
|
17
|
+
"explicit_user_model",
|
|
18
|
+
"agent_preference",
|
|
19
|
+
"model_class_default",
|
|
20
|
+
"parent_manual_choice"
|
|
21
|
+
],
|
|
22
|
+
"oracleSecurityDowngradePolicy": "blocked",
|
|
23
|
+
"unknownModelPolicy": "allowed_as_unverified_candidate_not_default",
|
|
24
|
+
"secretStoragePolicy": "forbidden"
|
|
25
|
+
},
|
|
26
|
+
"models": {
|
|
27
|
+
"openai-codex/gpt-5.5:xhigh": {
|
|
28
|
+
"label": "GPT-5.5 Codex xhigh fast",
|
|
29
|
+
"status": "preferred",
|
|
30
|
+
"resolutionStatus": "verified",
|
|
31
|
+
"classes": ["balanced_worker", "strong_reasoning", "strong_oracle", "high_context"],
|
|
32
|
+
"whyWeLikeIt": "Primary default Codex route for real coding work, implementation, complex reasoning, oracle review, and large refactors.",
|
|
33
|
+
"bestFor": ["default_coding", "implementation", "complex_implementation", "architecture", "large_refactor", "oracle_review", "high_context_review"],
|
|
34
|
+
"avoidFor": ["cheap_bulk_scouting", "free_tier_experiments"],
|
|
35
|
+
"costTier": "high",
|
|
36
|
+
"qualityTier": "strong",
|
|
37
|
+
"contextWindow": 272000,
|
|
38
|
+
"supportsReasoning": true,
|
|
39
|
+
"thinkingLevels": ["medium", "high", "xhigh"],
|
|
40
|
+
"defaultThinking": "xhigh",
|
|
41
|
+
"fastMode": {
|
|
42
|
+
"supported": true,
|
|
43
|
+
"preference": "prefer",
|
|
44
|
+
"optional": true,
|
|
45
|
+
"plugin": "codex-fast-mode",
|
|
46
|
+
"serviceTier": "priority"
|
|
47
|
+
},
|
|
48
|
+
"notes": ["User preference: use this model by default for real work and coding unless the user asks to change model/profile; prefer xhigh reasoning and Codex fast mode when available."],
|
|
49
|
+
"lastUpdated": "2026-05-31"
|
|
50
|
+
},
|
|
51
|
+
"openai-codex/gpt-5.5:high": {
|
|
52
|
+
"label": "GPT-5.5 Codex high fast",
|
|
53
|
+
"status": "fallback",
|
|
54
|
+
"resolutionStatus": "verified",
|
|
55
|
+
"classes": ["balanced_worker", "strong_reasoning", "strong_oracle"],
|
|
56
|
+
"whyWeLikeIt": "Cost-aware Codex variant for strong coding and reasoning when xhigh is not necessary.",
|
|
57
|
+
"bestFor": ["implementation", "planning", "code_review", "medium_complexity_reasoning"],
|
|
58
|
+
"avoidFor": ["cheap_bulk_scouting", "free_tier_experiments"],
|
|
59
|
+
"costTier": "high",
|
|
60
|
+
"qualityTier": "strong",
|
|
61
|
+
"contextWindow": 272000,
|
|
62
|
+
"supportsReasoning": true,
|
|
63
|
+
"thinkingLevels": ["high", "xhigh"],
|
|
64
|
+
"defaultThinking": "high",
|
|
65
|
+
"fastMode": {
|
|
66
|
+
"supported": true,
|
|
67
|
+
"preference": "prefer",
|
|
68
|
+
"optional": true,
|
|
69
|
+
"plugin": "codex-fast-mode",
|
|
70
|
+
"serviceTier": "priority"
|
|
71
|
+
},
|
|
72
|
+
"notes": ["Use when strong reasoning is useful but xhigh budget is excessive."],
|
|
73
|
+
"lastUpdated": "2026-05-31"
|
|
74
|
+
},
|
|
75
|
+
"openai-codex/gpt-5.5:medium": {
|
|
76
|
+
"label": "GPT-5.5 Codex medium fast",
|
|
77
|
+
"status": "fallback",
|
|
78
|
+
"resolutionStatus": "verified",
|
|
79
|
+
"classes": ["cheap_scout", "balanced_worker"],
|
|
80
|
+
"whyWeLikeIt": "Lower-reasoning Codex variant for budget-aware coding help, repo lookup, and lighter implementation tasks.",
|
|
81
|
+
"bestFor": ["simple_implementation", "repo_search", "targeted_code_navigation", "cost_aware_coding"],
|
|
82
|
+
"avoidFor": ["oracle_final_security", "high_risk_architecture"],
|
|
83
|
+
"costTier": "medium",
|
|
84
|
+
"qualityTier": "reliable",
|
|
85
|
+
"contextWindow": 272000,
|
|
86
|
+
"supportsReasoning": true,
|
|
87
|
+
"thinkingLevels": ["medium", "high", "xhigh"],
|
|
88
|
+
"defaultThinking": "medium",
|
|
89
|
+
"fastMode": {
|
|
90
|
+
"supported": true,
|
|
91
|
+
"preference": "prefer",
|
|
92
|
+
"optional": true,
|
|
93
|
+
"plugin": "codex-fast-mode",
|
|
94
|
+
"serviceTier": "priority"
|
|
95
|
+
},
|
|
96
|
+
"notes": ["Use for cheaper Codex runs where medium reasoning is enough."],
|
|
97
|
+
"lastUpdated": "2026-05-31"
|
|
98
|
+
},
|
|
99
|
+
"openrouter/moonshotai/kimi-k2.6:free": {
|
|
100
|
+
"label": "Kimi K2.6 free via OpenRouter",
|
|
101
|
+
"status": "fallback",
|
|
102
|
+
"resolutionStatus": "unverified",
|
|
103
|
+
"classes": ["cheap_scout", "balanced_worker"],
|
|
104
|
+
"whyWeLikeIt": "Interesting free model for small coding tasks, simple implementation help, and fast repository research.",
|
|
105
|
+
"bestFor": ["simple_coding", "small_implementation", "repo_search", "directory_research", "cheap_scouting"],
|
|
106
|
+
"avoidFor": ["oracle_final_security", "high_risk_architecture", "large_refactor"],
|
|
107
|
+
"costTier": "free",
|
|
108
|
+
"qualityTier": "reliable",
|
|
109
|
+
"supportsReasoning": false,
|
|
110
|
+
"fastMode": {
|
|
111
|
+
"supported": false,
|
|
112
|
+
"preference": "off",
|
|
113
|
+
"optional": true
|
|
114
|
+
},
|
|
115
|
+
"notes": ["User likes Kimi K2.6 for simple coding and repo/dir research; verify exact OpenRouter model pattern in Pi before relying on it."],
|
|
116
|
+
"lastUpdated": "2026-05-31"
|
|
117
|
+
},
|
|
118
|
+
"openrouter/google/gemma-4-31b-it:free": {
|
|
119
|
+
"label": "Gemma 4 31B IT free via OpenRouter",
|
|
120
|
+
"status": "candidate",
|
|
121
|
+
"resolutionStatus": "unverified",
|
|
122
|
+
"classes": ["cheap_scout"],
|
|
123
|
+
"whyWeLikeIt": "Free small-task model kept for experiments and tests, not production coding.",
|
|
124
|
+
"bestFor": ["model_smoke_tests", "non_code_experiments", "cheap_test_runs"],
|
|
125
|
+
"avoidFor": ["implementation", "production_code", "oracle_final_security", "high_risk_architecture"],
|
|
126
|
+
"costTier": "free",
|
|
127
|
+
"qualityTier": "experimental",
|
|
128
|
+
"supportsReasoning": false,
|
|
129
|
+
"fastMode": {
|
|
130
|
+
"supported": false,
|
|
131
|
+
"preference": "off",
|
|
132
|
+
"optional": true
|
|
133
|
+
},
|
|
134
|
+
"notes": ["User wants this for tests only, not code work."],
|
|
135
|
+
"lastUpdated": "2026-05-31"
|
|
136
|
+
},
|
|
137
|
+
"openrouter/nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free": {
|
|
138
|
+
"label": "Nemotron 3 Nano Omni reasoning free via OpenRouter",
|
|
139
|
+
"status": "candidate",
|
|
140
|
+
"resolutionStatus": "unverified",
|
|
141
|
+
"classes": ["cheap_scout"],
|
|
142
|
+
"whyWeLikeIt": "Free reasoning-flavored candidate for experiments and tests, not normal coding.",
|
|
143
|
+
"bestFor": ["model_smoke_tests", "reasoning_experiments", "cheap_test_runs"],
|
|
144
|
+
"avoidFor": ["implementation", "production_code", "oracle_final_security", "high_risk_architecture"],
|
|
145
|
+
"costTier": "free",
|
|
146
|
+
"qualityTier": "experimental",
|
|
147
|
+
"supportsReasoning": true,
|
|
148
|
+
"thinkingLevels": ["unknown"],
|
|
149
|
+
"fastMode": {
|
|
150
|
+
"supported": false,
|
|
151
|
+
"preference": "off",
|
|
152
|
+
"optional": true
|
|
153
|
+
},
|
|
154
|
+
"notes": ["User wants this for tests only; verify exact OpenRouter model pattern and reasoning controls in Pi."],
|
|
155
|
+
"lastUpdated": "2026-05-31"
|
|
156
|
+
},
|
|
157
|
+
"zai/glm-5.1": {
|
|
158
|
+
"label": "GLM 5.1 via ZAI",
|
|
159
|
+
"status": "candidate",
|
|
160
|
+
"resolutionStatus": "needs_user",
|
|
161
|
+
"classes": ["cheap_scout", "balanced_worker"],
|
|
162
|
+
"whyWeLikeIt": "Good Kimi-like option for simple coding and repo research, but perceived as a bit slower.",
|
|
163
|
+
"bestFor": ["simple_coding", "repo_search", "small_implementation", "cheap_scouting"],
|
|
164
|
+
"avoidFor": ["oracle_final_security", "high_risk_architecture", "large_refactor"],
|
|
165
|
+
"costTier": "unknown",
|
|
166
|
+
"qualityTier": "reliable",
|
|
167
|
+
"supportsReasoning": true,
|
|
168
|
+
"thinkingLevels": ["unknown"],
|
|
169
|
+
"fastMode": {
|
|
170
|
+
"supported": false,
|
|
171
|
+
"preference": "off",
|
|
172
|
+
"optional": true
|
|
173
|
+
},
|
|
174
|
+
"notes": ["Provider/model pattern needs confirmation against Pi's ZAI model list."],
|
|
175
|
+
"lastUpdated": "2026-05-31"
|
|
176
|
+
},
|
|
177
|
+
"zai/glm-5-turbo": {
|
|
178
|
+
"label": "GLM 5 Turbo via ZAI",
|
|
179
|
+
"status": "candidate",
|
|
180
|
+
"resolutionStatus": "needs_user",
|
|
181
|
+
"classes": ["cheap_scout"],
|
|
182
|
+
"whyWeLikeIt": "Fast ZAI option for very quick simple tasks and lookup-style work.",
|
|
183
|
+
"bestFor": ["fast_simple_tasks", "repo_search", "cheap_scouting", "quick_checks"],
|
|
184
|
+
"avoidFor": ["implementation_heavy", "oracle_final_security", "high_risk_architecture"],
|
|
185
|
+
"costTier": "unknown",
|
|
186
|
+
"qualityTier": "reliable",
|
|
187
|
+
"supportsReasoning": false,
|
|
188
|
+
"fastMode": {
|
|
189
|
+
"supported": false,
|
|
190
|
+
"preference": "off",
|
|
191
|
+
"optional": true
|
|
192
|
+
},
|
|
193
|
+
"notes": ["Provider/model pattern needs confirmation against Pi's ZAI model list."],
|
|
194
|
+
"lastUpdated": "2026-05-31"
|
|
195
|
+
},
|
|
196
|
+
"ollama-cloud/deepseek-v4-flash": {
|
|
197
|
+
"label": "DeepSeek V4 Flash via Ollama Cloud",
|
|
198
|
+
"status": "candidate",
|
|
199
|
+
"resolutionStatus": "needs_user",
|
|
200
|
+
"classes": ["cheap_scout", "high_context"],
|
|
201
|
+
"whyWeLikeIt": "Very fast simple-task model with reported 1M context, useful for large repo search and quick checks.",
|
|
202
|
+
"bestFor": ["very_simple_tasks", "fast_repo_search", "large_context_lookup", "cheap_scouting"],
|
|
203
|
+
"avoidFor": ["oracle_final_security", "high_risk_architecture", "complex_implementation"],
|
|
204
|
+
"costTier": "low",
|
|
205
|
+
"qualityTier": "reliable",
|
|
206
|
+
"contextWindow": 1000000,
|
|
207
|
+
"supportsReasoning": true,
|
|
208
|
+
"thinkingLevels": ["unknown"],
|
|
209
|
+
"fastMode": {
|
|
210
|
+
"supported": false,
|
|
211
|
+
"preference": "off",
|
|
212
|
+
"optional": true
|
|
213
|
+
},
|
|
214
|
+
"notes": ["User ranks this as very fast for simple tasks; provider/model pattern needs confirmation in Pi."],
|
|
215
|
+
"lastUpdated": "2026-05-31"
|
|
216
|
+
},
|
|
217
|
+
"ollama-cloud/deepseek-v4-pro": {
|
|
218
|
+
"label": "DeepSeek V4 Pro via Ollama Cloud",
|
|
219
|
+
"status": "candidate",
|
|
220
|
+
"resolutionStatus": "needs_user",
|
|
221
|
+
"classes": ["balanced_worker", "high_context"],
|
|
222
|
+
"whyWeLikeIt": "Kimi-like balanced worker with reported 1M context, useful when huge context matters.",
|
|
223
|
+
"bestFor": ["large_context_review", "simple_to_medium_implementation", "repo_wide_research", "context_heavy_synthesis"],
|
|
224
|
+
"avoidFor": ["oracle_final_security", "highest_risk_architecture"],
|
|
225
|
+
"costTier": "medium",
|
|
226
|
+
"qualityTier": "reliable",
|
|
227
|
+
"contextWindow": 1000000,
|
|
228
|
+
"supportsReasoning": true,
|
|
229
|
+
"thinkingLevels": ["unknown"],
|
|
230
|
+
"fastMode": {
|
|
231
|
+
"supported": false,
|
|
232
|
+
"preference": "off",
|
|
233
|
+
"optional": true
|
|
234
|
+
},
|
|
235
|
+
"notes": ["User sees this as close to Kimi K2.6 but with enormous context; provider/model pattern needs confirmation in Pi."],
|
|
236
|
+
"lastUpdated": "2026-05-31"
|
|
237
|
+
},
|
|
238
|
+
"ollama-cloud/minimax-m2.7": {
|
|
239
|
+
"label": "MiniMax M2.7 via Ollama Cloud",
|
|
240
|
+
"status": "candidate",
|
|
241
|
+
"resolutionStatus": "needs_user",
|
|
242
|
+
"classes": ["cheap_scout"],
|
|
243
|
+
"whyWeLikeIt": "Lower-tier fast research/scout option, below DeepSeek V4 Flash in preference.",
|
|
244
|
+
"bestFor": ["repo_search", "directory_research", "cheap_scouting", "quick_tests"],
|
|
245
|
+
"avoidFor": ["implementation_heavy", "oracle_final_security", "high_risk_architecture"],
|
|
246
|
+
"costTier": "low",
|
|
247
|
+
"qualityTier": "reliable",
|
|
248
|
+
"supportsReasoning": false,
|
|
249
|
+
"fastMode": {
|
|
250
|
+
"supported": false,
|
|
251
|
+
"preference": "off",
|
|
252
|
+
"optional": true
|
|
253
|
+
},
|
|
254
|
+
"notes": ["Use for research/scouting under DeepSeek V4 Flash; provider/model pattern needs confirmation in Pi."],
|
|
255
|
+
"lastUpdated": "2026-05-31"
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
"classDefaults": {
|
|
259
|
+
"cheap_scout": [
|
|
260
|
+
"openrouter/moonshotai/kimi-k2.6:free",
|
|
261
|
+
"ollama-cloud/deepseek-v4-flash",
|
|
262
|
+
"zai/glm-5-turbo",
|
|
263
|
+
"ollama-cloud/minimax-m2.7",
|
|
264
|
+
"openai-codex/gpt-5.5:medium",
|
|
265
|
+
"openrouter/google/gemma-4-31b-it:free",
|
|
266
|
+
"openrouter/nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free"
|
|
267
|
+
],
|
|
268
|
+
"balanced_worker": [
|
|
269
|
+
"openai-codex/gpt-5.5:xhigh",
|
|
270
|
+
"openai-codex/gpt-5.5:high",
|
|
271
|
+
"openai-codex/gpt-5.5:medium",
|
|
272
|
+
"openrouter/moonshotai/kimi-k2.6:free",
|
|
273
|
+
"ollama-cloud/deepseek-v4-pro",
|
|
274
|
+
"zai/glm-5.1"
|
|
275
|
+
],
|
|
276
|
+
"strong_reasoning": [
|
|
277
|
+
"openai-codex/gpt-5.5:xhigh",
|
|
278
|
+
"openai-codex/gpt-5.5:high"
|
|
279
|
+
],
|
|
280
|
+
"strong_oracle": [
|
|
281
|
+
"openai-codex/gpt-5.5:xhigh",
|
|
282
|
+
"openai-codex/gpt-5.5:high"
|
|
283
|
+
],
|
|
284
|
+
"high_context": [
|
|
285
|
+
"openai-codex/gpt-5.5:xhigh",
|
|
286
|
+
"ollama-cloud/deepseek-v4-pro",
|
|
287
|
+
"ollama-cloud/deepseek-v4-flash"
|
|
288
|
+
]
|
|
289
|
+
},
|
|
290
|
+
"agentPreferences": {
|
|
291
|
+
"explore": {
|
|
292
|
+
"preferred": [
|
|
293
|
+
"openrouter/moonshotai/kimi-k2.6:free",
|
|
294
|
+
"ollama-cloud/deepseek-v4-flash",
|
|
295
|
+
"zai/glm-5-turbo",
|
|
296
|
+
"ollama-cloud/minimax-m2.7"
|
|
297
|
+
],
|
|
298
|
+
"fallback": ["openai-codex/gpt-5.5:medium"],
|
|
299
|
+
"avoid": ["openrouter/google/gemma-4-31b-it:free", "openrouter/nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free"],
|
|
300
|
+
"notes": ["Prefer cheap/free fast repo research models before Codex for bounded scouting."]
|
|
301
|
+
},
|
|
302
|
+
"repo-scout": {
|
|
303
|
+
"preferred": [
|
|
304
|
+
"openrouter/moonshotai/kimi-k2.6:free",
|
|
305
|
+
"ollama-cloud/deepseek-v4-flash",
|
|
306
|
+
"ollama-cloud/minimax-m2.7"
|
|
307
|
+
],
|
|
308
|
+
"fallback": ["openai-codex/gpt-5.5:medium"],
|
|
309
|
+
"notes": ["Repo and directory research should use cheap fast scouts when safe."]
|
|
310
|
+
},
|
|
311
|
+
"implementer": {
|
|
312
|
+
"preferred": ["openai-codex/gpt-5.5:xhigh", "openai-codex/gpt-5.5:high"],
|
|
313
|
+
"fallback": ["openai-codex/gpt-5.5:medium", "openrouter/moonshotai/kimi-k2.6:free", "ollama-cloud/deepseek-v4-pro"],
|
|
314
|
+
"avoid": ["openrouter/google/gemma-4-31b-it:free", "openrouter/nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free"],
|
|
315
|
+
"notes": ["Use Codex first for real code edits; Kimi/DeepSeek are fallback for simpler implementation only."]
|
|
316
|
+
},
|
|
317
|
+
"qa": {
|
|
318
|
+
"preferred": ["openai-codex/gpt-5.5:medium", "openrouter/google/gemma-4-31b-it:free", "openrouter/nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free"],
|
|
319
|
+
"fallback": ["openrouter/moonshotai/kimi-k2.6:free"],
|
|
320
|
+
"avoid": [],
|
|
321
|
+
"notes": ["Free experimental models are acceptable for model tests and non-code QA experiments, not production code edits."]
|
|
322
|
+
},
|
|
323
|
+
"oracle": {
|
|
324
|
+
"preferred": ["openai-codex/gpt-5.5:xhigh"],
|
|
325
|
+
"fallback": ["openai-codex/gpt-5.5:high"],
|
|
326
|
+
"avoid": [
|
|
327
|
+
"openrouter/moonshotai/kimi-k2.6:free",
|
|
328
|
+
"openrouter/google/gemma-4-31b-it:free",
|
|
329
|
+
"openrouter/nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free",
|
|
330
|
+
"zai/glm-5.1",
|
|
331
|
+
"zai/glm-5-turbo",
|
|
332
|
+
"ollama-cloud/deepseek-v4-flash",
|
|
333
|
+
"ollama-cloud/deepseek-v4-pro",
|
|
334
|
+
"ollama-cloud/minimax-m2.7"
|
|
335
|
+
],
|
|
336
|
+
"notes": ["Oracle/no-ship review stays on strong Codex reasoning; do not downgrade to cheap/free candidates."]
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
"notes": [
|
|
340
|
+
"Default human preference: use openai-codex/gpt-5.5:xhigh for real coding/work unless the user asks for a different model or cheaper profile.",
|
|
341
|
+
"Use /model-catalog with natural language to add or update entries.",
|
|
342
|
+
"Keep API keys and provider secrets in Pi auth or the user-level Pi models config, never in this repo catalog.",
|
|
343
|
+
"First model in each classDefaults array is the preferred model for that class."
|
|
344
|
+
]
|
|
345
|
+
}
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "zob.model-economy-policy.v1",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"description": "Advisory policy that maps ZOB compute profiles to model classes, cost tiers, and quality gates before selecting concrete models from .pi/model-catalog.json.",
|
|
5
|
+
"advisoryOnly": true,
|
|
6
|
+
"computeProfileRef": ".pi/compute-profiles/defaults.json",
|
|
7
|
+
"modelRoutingRef": ".pi/model-routing.json",
|
|
8
|
+
"modelCatalogRef": ".pi/model-catalog.json",
|
|
9
|
+
"liveRoutingEnabled": false,
|
|
10
|
+
"modelRouterUsed": false,
|
|
11
|
+
"routingApplied": false,
|
|
12
|
+
"childDispatchAllowed": false,
|
|
13
|
+
"budgetEnforced": false,
|
|
14
|
+
"strictEnabled": false,
|
|
15
|
+
"networkAccessed": false,
|
|
16
|
+
"bodyStored": false,
|
|
17
|
+
"promptBodiesStored": false,
|
|
18
|
+
"outputBodiesStored": false,
|
|
19
|
+
"selectionOrder": [
|
|
20
|
+
"explicit_user_model",
|
|
21
|
+
"compute_profile_role_class",
|
|
22
|
+
"agent_preference",
|
|
23
|
+
"model_class_default",
|
|
24
|
+
"parent_manual_choice"
|
|
25
|
+
],
|
|
26
|
+
"concreteModelPreference": {
|
|
27
|
+
"defaultRealWorkModel": "openai-codex/gpt-5.5:xhigh",
|
|
28
|
+
"defaultRealWorkThinking": "xhigh",
|
|
29
|
+
"defaultRealWorkFastMode": "prefer",
|
|
30
|
+
"appliesTo": ["coding", "implementation", "architecture", "refactor", "oracle", "security", "serious_work"],
|
|
31
|
+
"cheapModelUseOnlyFor": ["explicit_low_profile", "repo_or_directory_research", "scouting", "model_tests", "simple_non_critical_tasks"],
|
|
32
|
+
"notes": [
|
|
33
|
+
"For real coding/work, route through classes whose catalog defaults prefer openai-codex/gpt-5.5:xhigh unless the user asks for a different model or explicit economy profile.",
|
|
34
|
+
"Cheap/free models are for exploration, repo/dir research, model tests, or explicitly simple non-critical work."
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
"downgradePolicy": {
|
|
38
|
+
"oracleSecurityDowngrade": "blocked",
|
|
39
|
+
"maxProfileUnverified": "blocked",
|
|
40
|
+
"unknownModelAsDefault": "blocked",
|
|
41
|
+
"missingClassDefault": "ask_or_fallback_to_parent_choice"
|
|
42
|
+
},
|
|
43
|
+
"roles": [
|
|
44
|
+
"root",
|
|
45
|
+
"orchestrator",
|
|
46
|
+
"lead",
|
|
47
|
+
"planner",
|
|
48
|
+
"scout",
|
|
49
|
+
"worker",
|
|
50
|
+
"implementer",
|
|
51
|
+
"qa",
|
|
52
|
+
"oracle",
|
|
53
|
+
"security",
|
|
54
|
+
"high_context"
|
|
55
|
+
],
|
|
56
|
+
"profiles": {
|
|
57
|
+
"low": {
|
|
58
|
+
"intent": "explicit_economy_only",
|
|
59
|
+
"preferCostTier": ["free", "low"],
|
|
60
|
+
"minimumQualityTier": "unknown",
|
|
61
|
+
"allowedStatuses": ["preferred", "fallback", "candidate"],
|
|
62
|
+
"allowUnverified": true,
|
|
63
|
+
"requireVerified": false,
|
|
64
|
+
"requireReliable": false,
|
|
65
|
+
"requireStrongQuality": false,
|
|
66
|
+
"roleClasses": {
|
|
67
|
+
"root": "balanced_worker",
|
|
68
|
+
"orchestrator": "balanced_worker",
|
|
69
|
+
"lead": "balanced_worker",
|
|
70
|
+
"planner": "balanced_worker",
|
|
71
|
+
"scout": "cheap_scout",
|
|
72
|
+
"worker": "cheap_scout",
|
|
73
|
+
"implementer": "balanced_worker",
|
|
74
|
+
"qa": "cheap_scout",
|
|
75
|
+
"oracle": "strong_oracle",
|
|
76
|
+
"security": "strong_reasoning",
|
|
77
|
+
"high_context": "high_context"
|
|
78
|
+
},
|
|
79
|
+
"notes": [
|
|
80
|
+
"Use cheap/free models only when the user explicitly asks for low/economy or the task is simple and non-critical.",
|
|
81
|
+
"Real implementation remains balanced_worker; do not use free/candidate models for critical code.",
|
|
82
|
+
"Oracle and security stay on strong classes; if no safe model exists, ask instead of downgrading."
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
"medium": {
|
|
86
|
+
"intent": "practical_default_real_work",
|
|
87
|
+
"preferCostTier": ["high", "medium", "low"],
|
|
88
|
+
"minimumQualityTier": "reliable",
|
|
89
|
+
"allowedStatuses": ["preferred", "fallback", "candidate"],
|
|
90
|
+
"allowUnverified": true,
|
|
91
|
+
"requireVerified": false,
|
|
92
|
+
"requireReliable": true,
|
|
93
|
+
"requireStrongQuality": false,
|
|
94
|
+
"roleClasses": {
|
|
95
|
+
"root": "strong_reasoning",
|
|
96
|
+
"orchestrator": "strong_reasoning",
|
|
97
|
+
"lead": "strong_reasoning",
|
|
98
|
+
"planner": "strong_reasoning",
|
|
99
|
+
"scout": "cheap_scout",
|
|
100
|
+
"worker": "balanced_worker",
|
|
101
|
+
"implementer": "balanced_worker",
|
|
102
|
+
"qa": "cheap_scout",
|
|
103
|
+
"oracle": "strong_oracle",
|
|
104
|
+
"security": "strong_reasoning",
|
|
105
|
+
"high_context": "high_context"
|
|
106
|
+
},
|
|
107
|
+
"notes": [
|
|
108
|
+
"Default practical profile: real coding should still prefer openai-codex/gpt-5.5:xhigh through balanced_worker or strong_reasoning catalog defaults.",
|
|
109
|
+
"Use stronger reasoning for coordination and planning.",
|
|
110
|
+
"Keep read-only scouts cheap and workers balanced."
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
"high": {
|
|
114
|
+
"intent": "quality_first",
|
|
115
|
+
"preferCostTier": ["medium", "high"],
|
|
116
|
+
"minimumQualityTier": "reliable",
|
|
117
|
+
"allowedStatuses": ["preferred", "fallback"],
|
|
118
|
+
"allowUnverified": false,
|
|
119
|
+
"requireVerified": true,
|
|
120
|
+
"requireReliable": true,
|
|
121
|
+
"requireStrongQuality": false,
|
|
122
|
+
"roleClasses": {
|
|
123
|
+
"root": "strong_reasoning",
|
|
124
|
+
"orchestrator": "strong_reasoning",
|
|
125
|
+
"lead": "strong_reasoning",
|
|
126
|
+
"planner": "strong_reasoning",
|
|
127
|
+
"scout": "cheap_scout",
|
|
128
|
+
"worker": "strong_reasoning",
|
|
129
|
+
"implementer": "strong_reasoning",
|
|
130
|
+
"qa": "balanced_worker",
|
|
131
|
+
"oracle": "strong_oracle",
|
|
132
|
+
"security": "strong_reasoning",
|
|
133
|
+
"high_context": "high_context"
|
|
134
|
+
},
|
|
135
|
+
"notes": [
|
|
136
|
+
"Prefer verified reliable models and use openai-codex/gpt-5.5:xhigh when available for workers/implementers.",
|
|
137
|
+
"Cheap models are allowed only for bounded read-only scouting."
|
|
138
|
+
]
|
|
139
|
+
},
|
|
140
|
+
"xhigh": {
|
|
141
|
+
"intent": "strong_models_for_most_lanes",
|
|
142
|
+
"preferCostTier": ["medium", "high"],
|
|
143
|
+
"minimumQualityTier": "strong",
|
|
144
|
+
"allowedStatuses": ["preferred", "fallback"],
|
|
145
|
+
"allowUnverified": false,
|
|
146
|
+
"requireVerified": true,
|
|
147
|
+
"requireReliable": true,
|
|
148
|
+
"requireStrongQuality": true,
|
|
149
|
+
"roleClasses": {
|
|
150
|
+
"root": "strong_reasoning",
|
|
151
|
+
"orchestrator": "strong_reasoning",
|
|
152
|
+
"lead": "strong_reasoning",
|
|
153
|
+
"planner": "strong_reasoning",
|
|
154
|
+
"scout": "strong_reasoning",
|
|
155
|
+
"worker": "strong_reasoning",
|
|
156
|
+
"implementer": "strong_reasoning",
|
|
157
|
+
"qa": "strong_reasoning",
|
|
158
|
+
"oracle": "strong_oracle",
|
|
159
|
+
"security": "strong_reasoning",
|
|
160
|
+
"high_context": "high_context"
|
|
161
|
+
},
|
|
162
|
+
"notes": [
|
|
163
|
+
"Strong classes for root/orchestrator/planner/lead/worker/implementer/qa/security; use openai-codex/gpt-5.5:xhigh primarily.",
|
|
164
|
+
"No candidate/free models by default."
|
|
165
|
+
]
|
|
166
|
+
},
|
|
167
|
+
"max": {
|
|
168
|
+
"intent": "best_available_verified_models",
|
|
169
|
+
"preferCostTier": ["high", "medium"],
|
|
170
|
+
"minimumQualityTier": "strong",
|
|
171
|
+
"allowedStatuses": ["preferred", "fallback"],
|
|
172
|
+
"allowUnverified": false,
|
|
173
|
+
"requireVerified": true,
|
|
174
|
+
"requireReliable": true,
|
|
175
|
+
"requireStrongQuality": true,
|
|
176
|
+
"roleClasses": {
|
|
177
|
+
"root": "strong_reasoning",
|
|
178
|
+
"orchestrator": "strong_reasoning",
|
|
179
|
+
"lead": "strong_reasoning",
|
|
180
|
+
"planner": "strong_reasoning",
|
|
181
|
+
"scout": "strong_reasoning",
|
|
182
|
+
"worker": "strong_reasoning",
|
|
183
|
+
"implementer": "strong_reasoning",
|
|
184
|
+
"qa": "strong_reasoning",
|
|
185
|
+
"oracle": "strong_oracle",
|
|
186
|
+
"security": "strong_reasoning",
|
|
187
|
+
"high_context": "high_context"
|
|
188
|
+
},
|
|
189
|
+
"notes": [
|
|
190
|
+
"Best available profile: use openai-codex/gpt-5.5:xhigh for real work unless instructed otherwise.",
|
|
191
|
+
"Use only verified strong-quality models for defaults.",
|
|
192
|
+
"If no verified strong model is configured, ask instead of silently using a weaker model."
|
|
193
|
+
]
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "zob.model-routing-config.v1",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"description": "Deterministic advisory model-class defaults for future live routing review. This registry never enables live routing by itself.",
|
|
5
|
+
"advisoryOnly": true,
|
|
6
|
+
"liveRoutingDispatchGateAvailable": true,
|
|
7
|
+
"liveRoutingRequiresExplicitInput": true,
|
|
8
|
+
"liveRoutingDefaultEnabled": false,
|
|
9
|
+
"liveRoutingEnabled": false,
|
|
10
|
+
"budgetEnforced": false,
|
|
11
|
+
"strictEnabled": false,
|
|
12
|
+
"modelRouterUsed": false,
|
|
13
|
+
"routingApplied": false,
|
|
14
|
+
"childDispatchAllowed": false,
|
|
15
|
+
"daemonStarted": false,
|
|
16
|
+
"networkAccessed": false,
|
|
17
|
+
"noExecution": true,
|
|
18
|
+
"bodyStored": false,
|
|
19
|
+
"promptBodiesStored": false,
|
|
20
|
+
"outputBodiesStored": false,
|
|
21
|
+
"modelClasses": {
|
|
22
|
+
"cheap_scout": {
|
|
23
|
+
"risk": "low",
|
|
24
|
+
"useFor": [
|
|
25
|
+
"read_only_inspection",
|
|
26
|
+
"reuse_scout",
|
|
27
|
+
"metadata_summary"
|
|
28
|
+
],
|
|
29
|
+
"maxContextTokens": 32000
|
|
30
|
+
},
|
|
31
|
+
"balanced_worker": {
|
|
32
|
+
"risk": "medium",
|
|
33
|
+
"useFor": [
|
|
34
|
+
"implementation_planning",
|
|
35
|
+
"factory_worker",
|
|
36
|
+
"synthesis"
|
|
37
|
+
],
|
|
38
|
+
"maxContextTokens": 96000
|
|
39
|
+
},
|
|
40
|
+
"strong_reasoning": {
|
|
41
|
+
"risk": "high",
|
|
42
|
+
"useFor": [
|
|
43
|
+
"security_review",
|
|
44
|
+
"architecture_decision",
|
|
45
|
+
"complex_plan"
|
|
46
|
+
],
|
|
47
|
+
"maxContextTokens": 96000
|
|
48
|
+
},
|
|
49
|
+
"strong_oracle": {
|
|
50
|
+
"risk": "high",
|
|
51
|
+
"useFor": [
|
|
52
|
+
"oracle_review",
|
|
53
|
+
"validation_gate",
|
|
54
|
+
"no_ship_decision"
|
|
55
|
+
],
|
|
56
|
+
"maxContextTokens": 96000
|
|
57
|
+
},
|
|
58
|
+
"high_context": {
|
|
59
|
+
"risk": "medium",
|
|
60
|
+
"useFor": [
|
|
61
|
+
"large_batch_synthesis",
|
|
62
|
+
"long_context_review"
|
|
63
|
+
],
|
|
64
|
+
"minContextTokens": 120000
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"defaults": {
|
|
68
|
+
"byMode": {
|
|
69
|
+
"explore": "cheap_scout",
|
|
70
|
+
"plan": "strong_reasoning",
|
|
71
|
+
"implement": "balanced_worker",
|
|
72
|
+
"oracle": "strong_oracle",
|
|
73
|
+
"factory": "balanced_worker",
|
|
74
|
+
"orchestrator": "strong_reasoning"
|
|
75
|
+
},
|
|
76
|
+
"highContextThresholdTokens": 120000,
|
|
77
|
+
"highContextModelClass": "high_context"
|
|
78
|
+
},
|
|
79
|
+
"futureLiveRoutingPrerequisites": [
|
|
80
|
+
"oracle PASS/no_ship=false for live routing integration",
|
|
81
|
+
"strict budget gate implemented and proven",
|
|
82
|
+
"registered smoke proof with current source fingerprint",
|
|
83
|
+
"human approval metadata",
|
|
84
|
+
"rollback and stop-condition evidence where writes are involved"
|
|
85
|
+
]
|
|
86
|
+
}
|