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,104 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: zob-tool-router
|
|
3
|
+
description: Use before non-trivial work, uncertain tool selection, orchestration, delegation, context lookup, factory work, autonomous-runtime claims, or evidence-gated completion.
|
|
4
|
+
---
|
|
5
|
+
# ZOB Tool Router Skill
|
|
6
|
+
|
|
7
|
+
## Purpose
|
|
8
|
+
|
|
9
|
+
This skill is the compact playbook for deciding which ZOB tool families, modes, and domain skills to use. It is not a runtime dispatcher and not a reason to use every tool. Use it to choose the smallest sufficient tool set, then follow each selected tool family's own safety gates.
|
|
10
|
+
|
|
11
|
+
## When to use
|
|
12
|
+
|
|
13
|
+
Use this skill when any of these are true:
|
|
14
|
+
|
|
15
|
+
- the user ask is non-trivial, multi-step, or evidence-gated;
|
|
16
|
+
- the right mode/tool family is ambiguous;
|
|
17
|
+
- the work may need delegation, orchestration, factory design, context retrieval, ProjectDNA, coms, workspace/merge coordination, autonomous-runtime evidence, or oracle review;
|
|
18
|
+
- you are about to claim completion for broad or risky work.
|
|
19
|
+
|
|
20
|
+
Do not use this skill for a small factual answer when no tools are needed.
|
|
21
|
+
|
|
22
|
+
## Core principles
|
|
23
|
+
|
|
24
|
+
1. Do not use every tool. Use the smallest sufficient set.
|
|
25
|
+
2. The registry is the source of truth for available tool families, mode allowlists, skill refs, docs, and no-ship notes: `.pi/capabilities/zob-public-runtime-capabilities.json`.
|
|
26
|
+
3. This router selects families and domain skills; it does not bypass mode, approval, sandbox, budget, evidence, or oracle gates.
|
|
27
|
+
4. If a family is applicable, either use it, delegate it, or explicitly skip it with a reason.
|
|
28
|
+
5. Prefer evidence-backed progress over autonomy claims.
|
|
29
|
+
|
|
30
|
+
## Routing loop
|
|
31
|
+
|
|
32
|
+
1. Classify the request:
|
|
33
|
+
- trivial answer;
|
|
34
|
+
- bounded code/doc edit;
|
|
35
|
+
- multi-step goal;
|
|
36
|
+
- multi-agent orchestration;
|
|
37
|
+
- factory/repeated workflow;
|
|
38
|
+
- context/reference lookup;
|
|
39
|
+
- validation/oracle;
|
|
40
|
+
- autonomous-runtime claim.
|
|
41
|
+
2. Identify applicable tool families from the table below.
|
|
42
|
+
3. Load specialized skills for selected families when their behavior matters.
|
|
43
|
+
4. Pick the smallest safe next action: answer directly, inspect, plan, implement, delegate, orchestrate, validate, block, or ask the user.
|
|
44
|
+
5. Attach evidence to TODOs or final reports when work is broad, delegated, or completion-gated.
|
|
45
|
+
6. If a human-decision blocker is already recorded (score >=90, no `nextAgent`, paused goal, visible blocker), report it once, do not repeat/redispatch, and wait for explicit `/goal resume` or `resume_goal`.
|
|
46
|
+
7. Escalate to oracle when no-ship, final completion, security, autonomous, sandbox, or promotion risk is involved.
|
|
47
|
+
|
|
48
|
+
## Tool family routing table
|
|
49
|
+
|
|
50
|
+
| Family | Use when | Tools / skills to consider |
|
|
51
|
+
| --- | --- | --- |
|
|
52
|
+
| goal/TODO | Long-running, multi-step, delegated, factory, or evidence-gated work | `create_goal`, `add_goal_todos`, `get_goal_todos`, `resolve_goal_todo`; skill `zob-goal-todo-tree` |
|
|
53
|
+
| delegation | Specialist review, parallel discovery, implementation handoff, independent QA, or uncertain broad work | `zob_delegation_catalog`, `delegate_task`, `delegate_agent`; skill `zob-delegation-routing` |
|
|
54
|
+
| orchestration | Lead/Worker lanes, Chief Vision coordination, parent-owned dispatch, multi-agent workgraph | `/zmode orchestrator`, `orchestrate_run`, `chain_run`, goal/TODO tools |
|
|
55
|
+
| compute | Complexity, budget, model class, max profile, or multi-agent sizing matters | `zob_compute_preview`, `zob_compute_resolve_profile`, `zob_compute_plan_workflow`, `zob_compute_validate_profile`; skill `zob-compute-profile` |
|
|
56
|
+
| context / ProjectDNA | Need bounded repo/reference context, scan artifacts, cited context packs, or writeback proposals | `zob_context_validate_scope`, `zob_context_readiness`, `zob_project_dna_query`, `zob_project_dna_federated_query`, `zob_project_dna_readiness`; skill `zob-project-dna` |
|
|
57
|
+
| factory | Repeated workflow, smoke/pilot/batch gates, manifests, checkpoints, sentinels | `factory_run`, factory quarantine tools, autonomous factory read-only smokes; skill `zob-factory` |
|
|
58
|
+
| coms / goal-room | Parent-visible coordination, live required-local handoff, blockers, TODO claims, status refs | `zob_goal_room_*`, `zob_coms_*`; skills `zob-coms-v2-live`, `zob-coms-safety` |
|
|
59
|
+
| workspace / merge queue | Parallel write intent, sandbox diff review, parent-owned manual apply decisions | `zob_workspace_claim`, `zob_workspace_release`, `zob_merge_candidate_submit`, `zob_merge_queue_decide`; skill `zob-sandbox` |
|
|
60
|
+
| worker-pool | Parent-owned same-type/read-only or write-by-owner pool planning, path ownership/read-across coordination, owner requests/decisions | `zob_worker_pool_plan`, `zob_worker_pool_status`, `zob_worker_pool_owner_request`, `zob_worker_pool_owner_decision`; skills `zob-harness`, `zob-delegation-routing`, `zob-coms-safety` |
|
|
61
|
+
| autonomous runtime | Dry-run, readonly smoke, validation evidence, or any autonomy readiness claim | `zob_autonomous_*`; skill `zob-autonomous-runtime` |
|
|
62
|
+
| Mission Control | Dashboard snapshots, readiness, pause/resume/replan/request-oracle proposals | `zob_mission_control_*`, `zob_coms_readiness`; skill `zob-mission-control-coms` |
|
|
63
|
+
| oracle | Final readiness, no-ship, safety/security, release, sandbox apply, or autonomous enablement | oracle agent/review, `propose_goal_completion`, `record_goal_oracle`; skill `zob-oracle` |
|
|
64
|
+
|
|
65
|
+
## Anti-over-orchestration rules
|
|
66
|
+
|
|
67
|
+
- Do not create a runtime goal for a simple question or tiny one-shot answer.
|
|
68
|
+
- Do not delegate if direct answer or local inspection is enough.
|
|
69
|
+
- Do not run compute profiling for a small obvious edit.
|
|
70
|
+
- Do not use coms/goal-room when no other agent/run is involved.
|
|
71
|
+
- Do not invoke factory tooling unless the workflow is repeatable or explicitly factory-shaped.
|
|
72
|
+
- Do not treat dry-run, readonly smoke, plan-only orchestration, or mocked dispatch as final autonomous production readiness.
|
|
73
|
+
- Do not use workspace/merge queue for single-agent non-overlapping edits unless sandbox governance is required.
|
|
74
|
+
- Do not bypass oracle when completion, no-ship, sandbox promotion, autonomous enablement, or security risk is in scope.
|
|
75
|
+
|
|
76
|
+
## Routing verdict format
|
|
77
|
+
|
|
78
|
+
For non-trivial or ambiguous work, produce a compact internal or visible verdict before the first substantive action when useful:
|
|
79
|
+
|
|
80
|
+
```text
|
|
81
|
+
TOOL ROUTING VERDICT
|
|
82
|
+
- complexity: trivial | small | non-trivial | high-risk
|
|
83
|
+
- selected mode: explore | plan | implement | oracle | factory | orchestrator
|
|
84
|
+
- applicable families:
|
|
85
|
+
- goal/TODO: use | delegate | skip — reason
|
|
86
|
+
- delegation: use | delegate | skip — reason
|
|
87
|
+
- orchestration: use | delegate | skip — reason
|
|
88
|
+
- compute: use | delegate | skip — reason
|
|
89
|
+
- context/ProjectDNA: use | delegate | skip — reason
|
|
90
|
+
- factory: use | delegate | skip — reason
|
|
91
|
+
- coms/goal-room: use | delegate | skip — reason
|
|
92
|
+
- workspace/merge: use | delegate | skip — reason
|
|
93
|
+
- worker-pool: use | delegate | skip — reason
|
|
94
|
+
- autonomous: use | delegate | skip — reason
|
|
95
|
+
- oracle: use | delegate | skip — reason
|
|
96
|
+
- selected skills:
|
|
97
|
+
- smallest sufficient next action:
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Keep the verdict short. For routine small work, summarize only the selected next action instead of printing the full matrix.
|
|
101
|
+
|
|
102
|
+
## Completion reminder
|
|
103
|
+
|
|
104
|
+
Before claiming broad work complete, verify evidence, required TODO closure, validation commands, and oracle/no-ship requirements. If evidence is missing, continue, block, or ask the user instead of claiming success.
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "zob-core",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Default ZOB supervised Orchestrator -> Lead -> Worker topology. Parent Pi keeps preflight, dispatch, output gates, and ledger ownership.",
|
|
5
|
+
"orchestrator": {
|
|
6
|
+
"id": "zob-orchestrator",
|
|
7
|
+
"agent": "planner",
|
|
8
|
+
"description": "Parent-owned orchestrator that expands goals into lead and worker contracts without executing them in plan_only mode.",
|
|
9
|
+
"requiredTools": [
|
|
10
|
+
"read",
|
|
11
|
+
"grep",
|
|
12
|
+
"find",
|
|
13
|
+
"ls"
|
|
14
|
+
],
|
|
15
|
+
"outputContract": "plan.v1",
|
|
16
|
+
"responsibilities": [
|
|
17
|
+
"Preserve ORIGINAL_USER_ASK and active goal.",
|
|
18
|
+
"Perform preflight before any child dispatch.",
|
|
19
|
+
"Keep parent-owned ledger and completion gates."
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"leads": [
|
|
23
|
+
{
|
|
24
|
+
"id": "discovery-lead",
|
|
25
|
+
"agent": "planner",
|
|
26
|
+
"description": "Plans discovery lanes and proposes bounded worker contracts.",
|
|
27
|
+
"requiredTools": [
|
|
28
|
+
"read",
|
|
29
|
+
"grep",
|
|
30
|
+
"find",
|
|
31
|
+
"ls"
|
|
32
|
+
],
|
|
33
|
+
"outputContract": "plan.v1",
|
|
34
|
+
"workerIds": [
|
|
35
|
+
"explore-worker",
|
|
36
|
+
"research-worker"
|
|
37
|
+
],
|
|
38
|
+
"responsibilities": [
|
|
39
|
+
"Split the goal into read-only discovery tasks.",
|
|
40
|
+
"Identify missing evidence before implementation."
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"id": "verification-lead",
|
|
45
|
+
"agent": "oracle-merge",
|
|
46
|
+
"description": "Plans QA/oracle lanes and no-ship validation criteria.",
|
|
47
|
+
"requiredTools": [
|
|
48
|
+
"read",
|
|
49
|
+
"grep",
|
|
50
|
+
"find",
|
|
51
|
+
"ls"
|
|
52
|
+
],
|
|
53
|
+
"outputContract": "oracle-merge.v1",
|
|
54
|
+
"workerIds": [
|
|
55
|
+
"qa-worker",
|
|
56
|
+
"oracle-worker"
|
|
57
|
+
],
|
|
58
|
+
"responsibilities": [
|
|
59
|
+
"Define PASS/FAIL/WARN validation lanes.",
|
|
60
|
+
"Protect no-ship decisions when evidence is insufficient."
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"workers": [
|
|
65
|
+
{
|
|
66
|
+
"id": "explore-worker",
|
|
67
|
+
"leadId": "discovery-lead",
|
|
68
|
+
"agent": "explore",
|
|
69
|
+
"description": "Read-only mapper for relevant files, APIs, and gaps.",
|
|
70
|
+
"requiredTools": [
|
|
71
|
+
"read",
|
|
72
|
+
"grep",
|
|
73
|
+
"find",
|
|
74
|
+
"ls"
|
|
75
|
+
],
|
|
76
|
+
"outputContract": "explore.v1",
|
|
77
|
+
"taskTemplate": "Explore the repo for goal: {goal}. Return files, answer, gaps, next_steps, evidence, risks/blockers, compliance, and deliverable_delivered. Run id: {run.id}."
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"id": "research-worker",
|
|
81
|
+
"leadId": "discovery-lead",
|
|
82
|
+
"agent": "librarian",
|
|
83
|
+
"description": "Researches local/official context and labels uncertainty.",
|
|
84
|
+
"requiredTools": [
|
|
85
|
+
"read",
|
|
86
|
+
"grep",
|
|
87
|
+
"find",
|
|
88
|
+
"ls"
|
|
89
|
+
],
|
|
90
|
+
"outputContract": "research.v1",
|
|
91
|
+
"taskTemplate": "Research local and provided context for goal: {goal}. Prefer official/local sources; state unknowns and safer wording. Run id: {run.id}."
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"id": "qa-worker",
|
|
95
|
+
"leadId": "verification-lead",
|
|
96
|
+
"agent": "qa",
|
|
97
|
+
"description": "Plans or performs targeted verification when explicitly dispatched later.",
|
|
98
|
+
"requiredTools": [
|
|
99
|
+
"read",
|
|
100
|
+
"grep",
|
|
101
|
+
"find",
|
|
102
|
+
"ls"
|
|
103
|
+
],
|
|
104
|
+
"outputContract": "qa.v1",
|
|
105
|
+
"taskTemplate": "Plan targeted QA evidence for goal: {goal}. Identify smallest safe commands and sentinel/artifact checks. Run id: {run.id}."
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"id": "oracle-worker",
|
|
109
|
+
"leadId": "verification-lead",
|
|
110
|
+
"agent": "oracle",
|
|
111
|
+
"description": "Defines skeptical review lane and blocking evidence requirements.",
|
|
112
|
+
"requiredTools": [
|
|
113
|
+
"read",
|
|
114
|
+
"grep",
|
|
115
|
+
"find",
|
|
116
|
+
"ls"
|
|
117
|
+
],
|
|
118
|
+
"outputContract": "oracle.v1",
|
|
119
|
+
"taskTemplate": "Review acceptance and no-ship criteria for goal: {goal}. Return PASS/FAIL/WARN criteria, evidence needs, blockers, and compliance. Run id: {run.id}."
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
}
|
package/AGENTS.md
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# ZOB Harness v1 — Project Instructions
|
|
2
|
+
|
|
3
|
+
This repo is a project-local Pi harness, not an application product. Optimize for agentic engineering: reusable workflows, specialist delegation, safety gates, and verified outputs.
|
|
4
|
+
|
|
5
|
+
## Operating loop
|
|
6
|
+
|
|
7
|
+
For non-trivial work use: Explore -> Plan -> Implement -> Oracle.
|
|
8
|
+
|
|
9
|
+
1. Restate the task, allowed tools, MUST DO, MUST NOT, and expected outcome before tool use.
|
|
10
|
+
2. Gather live context before editing. Do not rely on filename guesses or stale memory.
|
|
11
|
+
3. Prefer small, reversible changes. Use `edit` for existing files and avoid broad rewrites.
|
|
12
|
+
4. Verify with concrete evidence before claiming success.
|
|
13
|
+
5. Finish with: result, evidence, risks/blockers, compliance line.
|
|
14
|
+
|
|
15
|
+
## Delegation contract
|
|
16
|
+
|
|
17
|
+
Use this six-part contract for specialist agents:
|
|
18
|
+
|
|
19
|
+
```text
|
|
20
|
+
1. TASK: [atomic goal]
|
|
21
|
+
2. EXPECTED OUTCOME: [observable deliverable/verdict]
|
|
22
|
+
3. REQUIRED TOOLS: [allowed tools only]
|
|
23
|
+
4. MUST DO: [positive constraints]
|
|
24
|
+
5. MUST NOT DO: [hard stops]
|
|
25
|
+
6. CONTEXT: [paths, prior evidence, downstream use]
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Safety
|
|
29
|
+
|
|
30
|
+
- Never read or write secrets (`.env`, keys, `~/.ssh`, `~/.aws`). Ask the user if a value is required.
|
|
31
|
+
- Never run destructive commands (`rm -rf`, `git reset --hard`, `git clean`, broad process kills) without explicit user approval.
|
|
32
|
+
- Never commit unless explicitly asked or governed autocommit is explicitly policy-authorized for the current task.
|
|
33
|
+
- Commit/push/tag operations must go through governed `/zcommit` or the agent-executable `zob_zcommit_run` tool when the user explicitly asks the agent to commit/push; direct `git commit`, `git push`, `git tag`, force push, `git add .`, and `git add -A` are blocked.
|
|
34
|
+
- Avoid touching generated/vendor folders: `node_modules`, `dist`, `build`.
|
|
35
|
+
|
|
36
|
+
## Pi harness specifics
|
|
37
|
+
|
|
38
|
+
- Runtime capability registry: `.pi/capabilities/zob-public-runtime-capabilities.json` is the first stop for public tool/command family, mode, skill, doc, and no-ship routing.
|
|
39
|
+
- Extension: `.pi/extensions/zob-harness/index.ts`
|
|
40
|
+
- Specialist agents: `.pi/agents/*.md`
|
|
41
|
+
- Prompt templates: `.pi/prompts/*.md`
|
|
42
|
+
- Synthesis agents: `.pi/agents/synthesis.md`, `.pi/agents/oracle-merge.md`
|
|
43
|
+
- Damage rules: `.pi/damage-control-rules.json`
|
|
44
|
+
|
|
45
|
+
## Tool-family router
|
|
46
|
+
|
|
47
|
+
Use the registry plus the domain skill instead of copying tool docs into prompts:
|
|
48
|
+
|
|
49
|
+
- Delegation/catalog: `zob_delegation_catalog`, `delegate_agent`, `delegate_task` -> `.pi/skills/zob-delegation-routing/SKILL.md` and `.pi/skills/zob-harness/SKILL.md`; call the catalog before first delegation when agent/contract/tool routing is uncertain, normally omit `delegate_task.output_contract` and `delegate_task.required_tools`, and never invent contract IDs or agent tools.
|
|
50
|
+
- Live coms: `zob_coms_*` -> `.pi/skills/zob-coms-v2-live/SKILL.md` and `.pi/skills/zob-coms-safety/SKILL.md`; required-local delivery must be live, never append-only success.
|
|
51
|
+
- Mission Control: `zob_mission_control_*` / readiness -> `.pi/skills/zob-mission-control-coms/SKILL.md`; command writes are proposals only.
|
|
52
|
+
- Context: `zob_context_*` -> registry no-ship notes plus `.pi/skills/zob-harness/SKILL.md` / `.pi/skills/zob-spec/SKILL.md` as applicable.
|
|
53
|
+
- Compute profile / effort routing: `zob_compute_*`, `npm run preview:compute-profile:project-dna-smoke`, `npm run validate:compute-profile:project-dna-smoke` -> `.pi/skills/zob-compute-profile/SKILL.md`; preview/resolve/report tools are metadata-only and never bypass safety, budget, oracle, sandbox, or parent-owned dispatch gates.
|
|
54
|
+
- Autonomy: `zob_autonomous_*` -> `.pi/skills/zob-autonomous-runtime/SKILL.md`; dry-run/readonly smoke/validation are supervised evidence only, not global autonomy completion.
|
|
55
|
+
- Factory quarantine/run: `factory_quarantine_*`, `factory_run` -> `.pi/skills/zob-factory/SKILL.md` and `.pi/skills/zob-sandbox/SKILL.md`.
|
|
56
|
+
- Goal TODOs: `/goal`, `/todo`, `*_goal_todo*` -> `.pi/skills/zob-goal-todo-tree/SKILL.md`.
|
|
57
|
+
- ProjectDNA/code knowledge graph: `/project-dna`, `zob_project_dna_*`, `.pi/factories/project-dna/*`, `npm run validate:project-dna`, `npm run smoke:project-dna-scan`, `npm run validate:project-dna-scan:smoke`, `npm run build:project-dna-capsules:smoke`, `npm run build:project-dna-sample-spec:smoke`, `npm run generate:project-dna-sample:smoke`, `npm run validate:project-dna-sample:smoke`, `npm run query:project-dna:smoke`, `npm run bench:project-dna:smoke`, `npm run oracle:project-dna:smoke` -> `.pi/skills/zob-project-dna/SKILL.md`; keep reference projects read-only, outputs quarantined/proposal-only, and never run external knowledge-backend import/sync/embed/write without explicit approval.
|
|
58
|
+
|
|
59
|
+
Useful commands inside Pi:
|
|
60
|
+
|
|
61
|
+
- `/zmode` — switch mode (`explore`, `plan`, `implement`, `oracle`, `factory`)
|
|
62
|
+
- `/zcommit` / `zob_zcommit_run` — governed commit workflow (`status`/`plan`, `commit`, `push`, `commit_and_push`, `autocommit on|off`, `autopush on|off`); no aliases, defaults off, load `.pi/skills/zob-commit/SKILL.md` and `.pi/git-policy.json`; use `zob_zcommit_run` when the user explicitly asks the agent to commit/push
|
|
63
|
+
- `/contract` — insert the six-part delegation template
|
|
64
|
+
- `/agents` — list specialist agents
|
|
65
|
+
- `/goal_gate` — set active goal/scope anchor
|
|
66
|
+
- `/compute` / `/effort` — preview and resolve compute profile (`auto`, `low`, `medium`, `high`, `xhigh`, `max`) for a target path/task without child dispatch
|
|
67
|
+
- `delegate_task` tool — strict single-task child Pi delegation with preflight/gates
|
|
68
|
+
- `delegate_agent` tool — single, parallel, or chain child Pi agents
|
|
69
|
+
- `factory_run` tool — deterministic manifest/checkpoint/sentinel software factory runner
|
|
70
|
+
- `/project-dna` — query/audit ProjectDNA scan artifacts or start the ProjectDNA workflow for code-first reference-project context
|
|
71
|
+
- `zob_project_dna_query` / `zob_project_dna_federated_query` — return bounded cited context from existing scan artifacts without external scans/backend writes
|
|
72
|
+
- `npm run preview:compute-profile:project-dna-smoke` — write metadata-only compute preview/resolution artifacts for the safe ProjectDNA smoke target
|
|
73
|
+
- `npm run validate:compute-profile:project-dna-smoke` — validate compute preview/resolution safety posture and profile fields
|
|
74
|
+
- `npm run plan:compute-workflow:project-dna-smoke` — build metadata-only workflow-shape lanes from the resolved compute profile
|
|
75
|
+
- `npm run validate:compute-workflow:project-dna-smoke` — validate workflow-shape parent-owned/no-dispatch posture
|
|
76
|
+
- `npm run validate:compute-profile-policy` — validate repository compute profile defaults/overrides/risk rules
|
|
77
|
+
- `npm run smoke:compute-profile-regression` — verify profile caps/gates across low/medium/high/xhigh/max
|
|
78
|
+
- `npm run snapshot:compute-profile:project-dna-smoke` — write body-free Mission Control-compatible compute summary metadata
|
|
79
|
+
- `npm run validate:project-dna` — validate the ProjectDNA scaffold without scanning external projects
|
|
80
|
+
- `npm run smoke:project-dna-scan` — run a bounded read-only ProjectDNA scanner smoke against `.pi/factories/project-dna`
|
|
81
|
+
- `npm run validate:project-dna-scan:smoke` — validate ProjectDNA scan artifacts, line refs, and no-write posture
|
|
82
|
+
- `npm run build:project-dna-capsules:smoke` — build pointer capsules from ProjectDNA scanner smoke metadata only
|
|
83
|
+
- `npm run build:project-dna-sample-spec:smoke` — build a neutral sample-project spec without generating code
|
|
84
|
+
- `npm run generate:project-dna-sample:smoke` — generate a dependency-free ProjectDNA sample under reports quarantine
|
|
85
|
+
- `npm run validate:project-dna-sample:smoke` — validate the quarantine sample with local Node checks/tests
|
|
86
|
+
- `npm run query:project-dna:smoke` — build a bounded cited ProjectDNA query result from scan metadata
|
|
87
|
+
- `npm run bench:project-dna:smoke` — run deterministic ProjectDNA retrieval/sample smoke benchmark
|
|
88
|
+
- `npm run oracle:project-dna:smoke` — write structural oracle review for ProjectDNA smoke artifacts
|
|
89
|
+
- `npm run smoke:harness` — non-destructive P0/P1/P2 gate/policy smoke tests
|
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Contributing to ZOB Harness
|
|
2
|
+
|
|
3
|
+
Thanks for helping improve ZOB Harness.
|
|
4
|
+
|
|
5
|
+
This project is a safety-first Pi harness. Contributions should preserve the operating model: explicit contracts, bounded changes, validation evidence, and no hidden side effects.
|
|
6
|
+
|
|
7
|
+
## Development setup
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install
|
|
11
|
+
npm run check -- --pretty false
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
For a quick map of the tracked source surface, read `SOURCE_INDEX.md`. For validation/script ownership, read `scripts/README.md`.
|
|
16
|
+
|
|
17
|
+
Start the harness locally:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
npm run pi
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Contribution rules
|
|
24
|
+
|
|
25
|
+
- Keep changes small and reversible.
|
|
26
|
+
- Do not read or commit secrets, `.env` files, private keys, SSH/AWS material, or local credentials.
|
|
27
|
+
- Do not commit generated runtime artifacts from `reports/`, `.pi/sessions/`, `.pi/tmp/`, `.pi/logs/`, or local ledgers.
|
|
28
|
+
- Do not use direct `git commit`, `git push`, `git tag`, force push, `git add .`, or `git add -A` from agent workflows; use governed `/zcommit` only when explicitly requested or policy-authorized.
|
|
29
|
+
- Preserve public tool names, command names, output contract ids, sentinel names, artifact paths, and safety defaults unless the change explicitly targets those surfaces.
|
|
30
|
+
- For refactors, prefer split-only moves and prove no behavior drift.
|
|
31
|
+
- Include validation commands and results in the pull request.
|
|
32
|
+
|
|
33
|
+
## Recommended workflow
|
|
34
|
+
|
|
35
|
+
1. Explore the current behavior.
|
|
36
|
+
2. Plan the smallest safe change.
|
|
37
|
+
3. Implement only the bounded slice.
|
|
38
|
+
4. Run validation.
|
|
39
|
+
5. If a commit is authorized, load `.pi/skills/zob-commit/SKILL.md` and `.pi/git-policy.json`, run `/zcommit status` then `/zcommit plan`, and commit only owned files with a Conventional Commit message.
|
|
40
|
+
6. Document evidence and remaining risks.
|
|
41
|
+
|
|
42
|
+
Minimum validation before opening a PR:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
npm run check -- --pretty false
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
For runtime, safety, delegation, factory, or output-contract changes, also run the relevant smoke/audit script when possible.
|
|
49
|
+
|
|
50
|
+
## Pull request checklist
|
|
51
|
+
|
|
52
|
+
- [ ] The change is scoped and explained.
|
|
53
|
+
- [ ] No generated reports, sessions, logs, private benchmark data, or local-only docs were committed.
|
|
54
|
+
- [ ] No secrets or credentials were read or committed.
|
|
55
|
+
- [ ] Validation commands and results are included.
|
|
56
|
+
- [ ] Any no-ship risk or incomplete evidence is called out clearly.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 ZOB Harness contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|