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,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "zob.project-dna-golden-suite.v1",
|
|
3
|
+
"suite_id": "project-dna-5of5-agentic-smoke",
|
|
4
|
+
"description": "Golden cases for the repo-local ProjectDNA factory smoke. They verify agents-first controls, query stewarding, source-safe scans, quarantine sample posture, and oracle benchmark readiness.",
|
|
5
|
+
"source_id": "project-dna-factory",
|
|
6
|
+
"raw_queries_persisted": false,
|
|
7
|
+
"knowledge_backend_write_enabled": false,
|
|
8
|
+
"promotion_policy": "proposal_only",
|
|
9
|
+
"minimum_score": 5,
|
|
10
|
+
"cases": [
|
|
11
|
+
{
|
|
12
|
+
"id": "agentic-control-plane",
|
|
13
|
+
"intent_id": "project_dna.agentic_control_plane",
|
|
14
|
+
"query": "agents first project dna factory scripts as tools validation gates",
|
|
15
|
+
"required_citation_includes": ["factory.json", "README.md"],
|
|
16
|
+
"required_files_to_read_first": ["factory.json", "README.md"],
|
|
17
|
+
"expected_patterns": ["project_dna.agentic_control_plane"],
|
|
18
|
+
"required_safety": ["bounded_context_only", "citation_required", "no_knowledge_backend_write", "proposal_only"],
|
|
19
|
+
"score_threshold": 5
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"id": "manifest-compute-capture-policy",
|
|
23
|
+
"intent_id": "project_dna.source_safe_proposal_only",
|
|
24
|
+
"query": "manifest compute profile capture mode source mutation backend write policy",
|
|
25
|
+
"required_citation_includes": ["example-project-dna-manifest-v2.json", "schemas/manifest-v2.schema.json"],
|
|
26
|
+
"required_files_to_read_first": ["example-project-dna-manifest-v2.json", "schemas/manifest-v2.schema.json"],
|
|
27
|
+
"expected_patterns": ["project_dna.source_safe_proposal_only"],
|
|
28
|
+
"required_safety": ["bounded_context_only", "citation_required", "no_knowledge_backend_write", "proposal_only"],
|
|
29
|
+
"score_threshold": 5
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"id": "context-pack-bounded-citations",
|
|
33
|
+
"intent_id": "project_dna.query_steward_rewrite",
|
|
34
|
+
"query": "context pack schema bounded citations loading rules query steward",
|
|
35
|
+
"required_citation_includes": ["schemas/context-pack.schema.json", "README.md"],
|
|
36
|
+
"required_files_to_read_first": ["schemas/context-pack.schema.json"],
|
|
37
|
+
"expected_patterns": ["project_dna.query_steward_rewrite"],
|
|
38
|
+
"required_safety": ["bounded_context_only", "citation_required", "no_knowledge_backend_write", "proposal_only"],
|
|
39
|
+
"score_threshold": 5
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"id": "ontology-golden-benchmark",
|
|
43
|
+
"intent_id": "project_dna.golden_case_benchmark",
|
|
44
|
+
"query": "ontology golden cases benchmark oracle 5 of 5 project dna",
|
|
45
|
+
"required_citation_includes": ["pi-agentic-ontology.json", "golden-cases-smoke.json"],
|
|
46
|
+
"required_files_to_read_first": ["pi-agentic-ontology.json", "golden-cases-smoke.json"],
|
|
47
|
+
"expected_patterns": ["project_dna.ontology_curation", "project_dna.golden_case_benchmark"],
|
|
48
|
+
"required_safety": ["bounded_context_only", "citation_required", "no_knowledge_backend_write", "proposal_only"],
|
|
49
|
+
"score_threshold": 5
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"id": "sample-quarantine-pi-like",
|
|
53
|
+
"intent_id": "project_dna.sample_quarantine_pi_like",
|
|
54
|
+
"query": "quarantine sample pi-like extension skill agent test no source copy",
|
|
55
|
+
"required_citation_includes": ["README.md", "factory.json"],
|
|
56
|
+
"required_files_to_read_first": ["README.md", "factory.json"],
|
|
57
|
+
"expected_patterns": ["project_dna.sample_quarantine_pi_like"],
|
|
58
|
+
"required_safety": ["bounded_context_only", "citation_required", "no_knowledge_backend_write", "proposal_only"],
|
|
59
|
+
"score_threshold": 5
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "zob.project-dna-ontology.v1",
|
|
3
|
+
"ontology_id": "pi-agentic-project-dna",
|
|
4
|
+
"description": "Controlled ProjectDNA ontology for agents-first Pi/ZOB harness retrieval. Static concepts are navigation hints; scan artifacts remain source of truth.",
|
|
5
|
+
"source_safe": true,
|
|
6
|
+
"raw_bodies_stored": false,
|
|
7
|
+
"knowledge_backend_write_enabled": false,
|
|
8
|
+
"promotion_policy": "proposal_only",
|
|
9
|
+
"concepts": [
|
|
10
|
+
{
|
|
11
|
+
"id": "project_dna.agentic_control_plane",
|
|
12
|
+
"kind": "workflow",
|
|
13
|
+
"aliases": ["agentic", "agents-first", "orchestrator", "parent-owned", "scripts-as-tools"],
|
|
14
|
+
"expected_file_hints": ["factory.json", "README.md", "project-dna.md", "SKILL.md"],
|
|
15
|
+
"expected_artifact_roles": ["agent", "prompt", "skill", "factory"],
|
|
16
|
+
"minimum_citation_roles": ["source", "doc"]
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"id": "project_dna.ontology_curation",
|
|
20
|
+
"kind": "pattern",
|
|
21
|
+
"aliases": ["ontology", "concept", "pattern", "graph", "edge", "node"],
|
|
22
|
+
"expected_file_hints": ["ontology", "code-knowledge-graph", "architecture-map", "symbol-map"],
|
|
23
|
+
"expected_artifact_roles": ["schema", "scan", "graph"],
|
|
24
|
+
"minimum_citation_roles": ["source", "schema"]
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"id": "project_dna.query_steward_rewrite",
|
|
28
|
+
"kind": "retrieval",
|
|
29
|
+
"aliases": ["query", "rewrite", "intent", "expanded", "bounded context", "retrieval"],
|
|
30
|
+
"expected_file_hints": ["query-context.mjs", "query-steward", "context-pack"],
|
|
31
|
+
"expected_artifact_roles": ["script", "context-pack", "query-result"],
|
|
32
|
+
"minimum_citation_roles": ["source", "query"]
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"id": "project_dna.golden_case_benchmark",
|
|
36
|
+
"kind": "benchmark",
|
|
37
|
+
"aliases": ["golden", "benchmark", "score", "5/5", "oracle", "evaluation"],
|
|
38
|
+
"expected_file_hints": ["golden-cases", "bench-smoke.mjs", "oracle-review-smoke.mjs"],
|
|
39
|
+
"expected_artifact_roles": ["golden-case", "benchmark", "oracle"],
|
|
40
|
+
"minimum_citation_roles": ["benchmark", "oracle"]
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"id": "project_dna.sample_quarantine_pi_like",
|
|
44
|
+
"kind": "sample",
|
|
45
|
+
"aliases": ["sample", "quarantine", "new project", "pi-like", "extension", "skill", "agent", "test"],
|
|
46
|
+
"expected_file_hints": ["generate-sample.mjs", "sample-spec.json", "quarantine", "package.json", "README.md"],
|
|
47
|
+
"expected_artifact_roles": ["sample", "test", "config"],
|
|
48
|
+
"minimum_citation_roles": ["sample", "validation"]
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"id": "project_dna.source_safe_proposal_only",
|
|
52
|
+
"kind": "safety",
|
|
53
|
+
"aliases": ["read-only", "source safe", "proposal-only", "no backend write", "no promotion", "secret"],
|
|
54
|
+
"expected_file_hints": ["scan-summary.json", "project-dna-sample-summary.json", "oracle", "validation"],
|
|
55
|
+
"expected_artifact_roles": ["safety", "validation", "oracle"],
|
|
56
|
+
"minimum_citation_roles": ["validation", "oracle"]
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"edge_types": [
|
|
60
|
+
"contains",
|
|
61
|
+
"imports",
|
|
62
|
+
"implements_pattern",
|
|
63
|
+
"demonstrates_pattern",
|
|
64
|
+
"tested_by",
|
|
65
|
+
"documented_by",
|
|
66
|
+
"validated_by",
|
|
67
|
+
"cited_by"
|
|
68
|
+
],
|
|
69
|
+
"citation_policy": {
|
|
70
|
+
"citation_required": true,
|
|
71
|
+
"prefer_symbol_ranges": true,
|
|
72
|
+
"broad_citation_max_ratio": 0.5,
|
|
73
|
+
"raw_body_storage_allowed": false
|
|
74
|
+
},
|
|
75
|
+
"agent_lanes": [
|
|
76
|
+
"project-dna-safety-preflight",
|
|
77
|
+
"repo-scout",
|
|
78
|
+
"project-dna-ontology-steward",
|
|
79
|
+
"architecture-cartographer",
|
|
80
|
+
"pattern-miner",
|
|
81
|
+
"symbol-range-curator",
|
|
82
|
+
"project-dna-test-linker",
|
|
83
|
+
"project-dna-query-steward",
|
|
84
|
+
"sample-architect",
|
|
85
|
+
"project-dna-golden-evaluator",
|
|
86
|
+
"project-dna-oracle"
|
|
87
|
+
]
|
|
88
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"factory": "project-dna",
|
|
3
|
+
"description": "Pilot manifest for ProjectDNA scaffold review across the plan, skill, prompt, and factory definition. Requires successful smoke plus oracle review before execution beyond plan_only.",
|
|
4
|
+
"items": [
|
|
5
|
+
{
|
|
6
|
+
"id": "project-dna-plan",
|
|
7
|
+
"path": "docs/ZOB_PROJECT_DNA_CODE_KNOWLEDGE_GRAPH_PLAN.md",
|
|
8
|
+
"metadata": { "source": "local-plan-doc" }
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"id": "project-dna-skill",
|
|
12
|
+
"path": ".pi/skills/zob-project-dna/SKILL.md",
|
|
13
|
+
"metadata": { "source": "skill" }
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"id": "project-dna-prompt",
|
|
17
|
+
"path": ".pi/prompts/project-dna.md",
|
|
18
|
+
"metadata": { "source": "prompt-template" }
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"id": "project-dna-factory",
|
|
22
|
+
"path": ".pi/factories/project-dna/factory.json",
|
|
23
|
+
"metadata": { "source": "factory-definition" }
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"expectedArtifacts": [
|
|
27
|
+
"project-dna-summary.json",
|
|
28
|
+
"project-dna-context-pack.json",
|
|
29
|
+
"project-dna-readiness.json",
|
|
30
|
+
"project-dna-capsules.md"
|
|
31
|
+
]
|
|
32
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://zob.local/project-dna/benchmark-suite.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": ["schema", "scan_dir", "status", "cases", "metrics", "gates"],
|
|
6
|
+
"properties": {
|
|
7
|
+
"schema": { "const": "zob.project-dna-benchmark-smoke.v1" },
|
|
8
|
+
"benchmark_kind": { "type": "string" },
|
|
9
|
+
"scan_dir": { "type": "string" },
|
|
10
|
+
"status": { "enum": ["passed", "failed"] },
|
|
11
|
+
"cases": { "type": "array", "items": { "type": "object" } },
|
|
12
|
+
"metrics": { "type": "object" },
|
|
13
|
+
"gates": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": ["deterministic_only", "llm_judge_used", "source_project_modified", "knowledge_backend_write_enabled", "promotion_allowed", "human_approval_required"],
|
|
16
|
+
"properties": {
|
|
17
|
+
"deterministic_only": { "const": true },
|
|
18
|
+
"llm_judge_used": { "const": false },
|
|
19
|
+
"source_project_modified": { "const": false },
|
|
20
|
+
"knowledge_backend_write_enabled": { "const": false },
|
|
21
|
+
"promotion_allowed": { "const": false },
|
|
22
|
+
"human_approval_required": { "const": true }
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"additionalProperties": true
|
|
27
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://zob.local/schemas/code-knowledge-graph.v1.json",
|
|
4
|
+
"title": "ProjectDNA Code Knowledge Graph",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schema", "source_id", "nodes", "edges", "citation_required", "promotion"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema": { "const": "zob.code-knowledge-graph.v1" },
|
|
10
|
+
"source_id": { "type": "string" },
|
|
11
|
+
"sample_id": { "type": "string" },
|
|
12
|
+
"nodes": {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"items": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"additionalProperties": true,
|
|
17
|
+
"required": ["id", "type", "label"],
|
|
18
|
+
"properties": {
|
|
19
|
+
"id": { "type": "string" },
|
|
20
|
+
"type": {
|
|
21
|
+
"enum": [
|
|
22
|
+
"Project",
|
|
23
|
+
"SourceProject",
|
|
24
|
+
"SampleProject",
|
|
25
|
+
"File",
|
|
26
|
+
"Directory",
|
|
27
|
+
"Module",
|
|
28
|
+
"Symbol",
|
|
29
|
+
"Dependency",
|
|
30
|
+
"Tool",
|
|
31
|
+
"Route",
|
|
32
|
+
"Service",
|
|
33
|
+
"Queue",
|
|
34
|
+
"Worker",
|
|
35
|
+
"DatabaseModel",
|
|
36
|
+
"Config",
|
|
37
|
+
"Test",
|
|
38
|
+
"Pattern",
|
|
39
|
+
"AntiPattern",
|
|
40
|
+
"Capsule",
|
|
41
|
+
"ValidationCommand"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
"label": { "type": "string" },
|
|
45
|
+
"path": { "type": "string" },
|
|
46
|
+
"confidence": { "enum": ["low", "medium", "high"] }
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"edges": {
|
|
51
|
+
"type": "array",
|
|
52
|
+
"items": {
|
|
53
|
+
"type": "object",
|
|
54
|
+
"additionalProperties": true,
|
|
55
|
+
"required": ["from", "to", "type", "citations"],
|
|
56
|
+
"properties": {
|
|
57
|
+
"from": { "type": "string" },
|
|
58
|
+
"to": { "type": "string" },
|
|
59
|
+
"type": {
|
|
60
|
+
"enum": [
|
|
61
|
+
"contains",
|
|
62
|
+
"imports",
|
|
63
|
+
"exports",
|
|
64
|
+
"calls",
|
|
65
|
+
"called_by",
|
|
66
|
+
"configured_by",
|
|
67
|
+
"tested_by",
|
|
68
|
+
"implements_pattern",
|
|
69
|
+
"demonstrates_pattern",
|
|
70
|
+
"source_equivalent_of",
|
|
71
|
+
"sample_equivalent_of",
|
|
72
|
+
"uses_dependency",
|
|
73
|
+
"uses_tool",
|
|
74
|
+
"exposes_route",
|
|
75
|
+
"handles_queue",
|
|
76
|
+
"runs_worker",
|
|
77
|
+
"validates_with",
|
|
78
|
+
"cited_by"
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
"citations": { "type": "array", "items": { "type": "string", "minLength": 1 }, "minItems": 1 }
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"citation_required": { "const": true },
|
|
86
|
+
"promotion": {
|
|
87
|
+
"type": "object",
|
|
88
|
+
"additionalProperties": false,
|
|
89
|
+
"required": ["writeback_policy", "oracle_required"],
|
|
90
|
+
"properties": {
|
|
91
|
+
"writeback_policy": { "enum": ["proposal_only", "manual_approval_only"] },
|
|
92
|
+
"oracle_required": { "const": true },
|
|
93
|
+
"human_approval_required": { "type": "boolean" }
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://zob.local/schemas/project-dna-context-pack.v1.json",
|
|
4
|
+
"title": "ProjectDNA Context Pack",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schema", "query_hash", "answer", "citations", "files_to_read_first", "rules", "gaps", "loading_rules"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema": { "const": "zob.project-dna-context-pack.v1" },
|
|
10
|
+
"query_hash": { "type": "string", "pattern": "^[a-fA-F0-9]{64}$" },
|
|
11
|
+
"query_stored": { "const": false },
|
|
12
|
+
"answer": { "type": "string" },
|
|
13
|
+
"citations": { "type": "array", "items": { "type": "string", "minLength": 1 }, "minItems": 1 },
|
|
14
|
+
"files_to_read_first": {
|
|
15
|
+
"type": "array",
|
|
16
|
+
"items": {
|
|
17
|
+
"type": "object",
|
|
18
|
+
"additionalProperties": false,
|
|
19
|
+
"required": ["path", "reason", "citations"],
|
|
20
|
+
"properties": {
|
|
21
|
+
"path": { "type": "string" },
|
|
22
|
+
"line_range": { "type": "string" },
|
|
23
|
+
"reason": { "type": "string" },
|
|
24
|
+
"citations": { "type": "array", "items": { "type": "string" }, "minItems": 1 }
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"rules": { "type": "array", "items": { "type": "string" } },
|
|
29
|
+
"gaps": { "type": "array", "items": { "type": "string" } },
|
|
30
|
+
"max_context_tokens": { "type": "integer", "minimum": 1, "maximum": 8000 },
|
|
31
|
+
"loading_rules": {
|
|
32
|
+
"type": "object",
|
|
33
|
+
"additionalProperties": false,
|
|
34
|
+
"required": ["bounded_context_only", "citation_required", "agent_loads_entire_project"],
|
|
35
|
+
"properties": {
|
|
36
|
+
"bounded_context_only": { "const": true },
|
|
37
|
+
"citation_required": { "const": true },
|
|
38
|
+
"agent_loads_entire_project": { "const": false },
|
|
39
|
+
"writeback_policy": { "enum": ["proposal_only", "manual_approval_only"] }
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://zob.local/project-dna/golden-case.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": ["schema", "suite_id", "source_id", "cases", "raw_queries_persisted", "knowledge_backend_write_enabled", "promotion_policy"],
|
|
6
|
+
"properties": {
|
|
7
|
+
"schema": { "const": "zob.project-dna-golden-suite.v1" },
|
|
8
|
+
"suite_id": { "type": "string", "pattern": "^[A-Za-z0-9._-]+$" },
|
|
9
|
+
"description": { "type": "string" },
|
|
10
|
+
"source_id": { "type": "string" },
|
|
11
|
+
"raw_queries_persisted": { "const": false },
|
|
12
|
+
"knowledge_backend_write_enabled": { "const": false },
|
|
13
|
+
"promotion_policy": { "const": "proposal_only" },
|
|
14
|
+
"minimum_score": { "type": "number", "minimum": 0, "maximum": 5 },
|
|
15
|
+
"cases": {
|
|
16
|
+
"type": "array",
|
|
17
|
+
"minItems": 1,
|
|
18
|
+
"items": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"required": ["id", "intent_id", "query", "required_citation_includes", "required_files_to_read_first", "required_safety", "score_threshold"],
|
|
21
|
+
"properties": {
|
|
22
|
+
"id": { "type": "string", "pattern": "^[a-z0-9._-]+$" },
|
|
23
|
+
"intent_id": { "type": "string" },
|
|
24
|
+
"query": { "type": "string", "minLength": 1 },
|
|
25
|
+
"required_citation_includes": { "type": "array", "items": { "type": "string" } },
|
|
26
|
+
"required_files_to_read_first": { "type": "array", "items": { "type": "string" } },
|
|
27
|
+
"expected_patterns": { "type": "array", "items": { "type": "string" } },
|
|
28
|
+
"required_safety": { "type": "array", "items": { "type": "string" } },
|
|
29
|
+
"score_threshold": { "type": "number", "minimum": 0, "maximum": 5 }
|
|
30
|
+
},
|
|
31
|
+
"additionalProperties": true
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"additionalProperties": true
|
|
36
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://zob.local/schemas/project-dna-manifest.v2.json",
|
|
4
|
+
"title": "ProjectDNA Manifest v2",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"schema",
|
|
9
|
+
"run_id",
|
|
10
|
+
"user_note",
|
|
11
|
+
"capture_goal",
|
|
12
|
+
"requested_compute_profile",
|
|
13
|
+
"capture_mode_policy",
|
|
14
|
+
"source_project",
|
|
15
|
+
"read_policy",
|
|
16
|
+
"sample_project",
|
|
17
|
+
"promotion"
|
|
18
|
+
],
|
|
19
|
+
"properties": {
|
|
20
|
+
"schema": { "const": "zob.project-dna-manifest.v2" },
|
|
21
|
+
"run_id": { "type": "string", "pattern": "^[A-Za-z0-9._-]+$" },
|
|
22
|
+
"user_note": { "type": "string", "minLength": 1, "maxLength": 1000 },
|
|
23
|
+
"capture_goal": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"additionalProperties": false,
|
|
26
|
+
"required": ["source_id", "objective", "bounded_context_only", "citation_required"],
|
|
27
|
+
"properties": {
|
|
28
|
+
"source_id": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$" },
|
|
29
|
+
"objective": { "type": "string", "minLength": 1, "maxLength": 1000 },
|
|
30
|
+
"bounded_context_only": { "const": true },
|
|
31
|
+
"citation_required": { "const": true },
|
|
32
|
+
"allowed_artifact_level": { "enum": ["metadata_only", "cited_facts_only"] }
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"requested_compute_profile": { "enum": ["auto", "low", "medium", "high", "xhigh", "max"] },
|
|
36
|
+
"compute_caps": {
|
|
37
|
+
"type": "object",
|
|
38
|
+
"additionalProperties": false,
|
|
39
|
+
"properties": {
|
|
40
|
+
"maxAgents": { "type": "number", "minimum": 1, "maximum": 30 },
|
|
41
|
+
"maxDelegationDepth": { "type": "number", "minimum": 0, "maximum": 4 },
|
|
42
|
+
"maxParallel": { "type": "number", "minimum": 1, "maximum": 8 },
|
|
43
|
+
"maxIterations": { "type": "number", "minimum": 1, "maximum": 5 },
|
|
44
|
+
"maxDurationMs": { "type": "number", "minimum": 1 },
|
|
45
|
+
"maxCostUsd": { "type": "number", "minimum": 0 },
|
|
46
|
+
"maxContextTokens": { "type": "number", "minimum": 1 },
|
|
47
|
+
"strictBudgetRequired": { "const": true },
|
|
48
|
+
"oracleRequired": { "const": true }
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"capture_mode_policy": {
|
|
52
|
+
"type": "object",
|
|
53
|
+
"additionalProperties": false,
|
|
54
|
+
"required": [
|
|
55
|
+
"mode",
|
|
56
|
+
"semantic_mode",
|
|
57
|
+
"metadata_only",
|
|
58
|
+
"parent_owned_dispatch",
|
|
59
|
+
"child_direct_dispatch_allowed",
|
|
60
|
+
"network_access_allowed",
|
|
61
|
+
"source_mutation_allowed",
|
|
62
|
+
"knowledge_backend_write_allowed"
|
|
63
|
+
],
|
|
64
|
+
"properties": {
|
|
65
|
+
"mode": { "enum": ["plan_only", "read_only_scan", "metadata_workflow"] },
|
|
66
|
+
"semantic_mode": { "enum": ["full_capture", "architecture_only", "targeted_capture", "sample_first", "context_only"] },
|
|
67
|
+
"targeted_domains": {
|
|
68
|
+
"type": "array",
|
|
69
|
+
"items": { "enum": ["architecture", "api", "services", "database", "queues", "workers", "tests", "config", "ui", "agentic_assets", "docs"] },
|
|
70
|
+
"uniqueItems": true
|
|
71
|
+
},
|
|
72
|
+
"large_repo_fallback": { "enum": ["architecture_only", "targeted_capture", "sample_first", "context_only"] },
|
|
73
|
+
"metadata_only": { "const": true },
|
|
74
|
+
"parent_owned_dispatch": { "const": true },
|
|
75
|
+
"child_direct_dispatch_allowed": { "const": false },
|
|
76
|
+
"network_access_allowed": { "const": false },
|
|
77
|
+
"source_mutation_allowed": { "const": false },
|
|
78
|
+
"knowledge_backend_write_allowed": { "const": false },
|
|
79
|
+
"durable_promotion_allowed": { "const": false }
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"source_project": {
|
|
83
|
+
"type": "object",
|
|
84
|
+
"additionalProperties": false,
|
|
85
|
+
"required": ["source_id", "path"],
|
|
86
|
+
"properties": {
|
|
87
|
+
"source_id": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$" },
|
|
88
|
+
"path": { "type": "string", "minLength": 1 },
|
|
89
|
+
"description": { "type": "string", "maxLength": 1000 }
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"read_policy": {
|
|
93
|
+
"type": "object",
|
|
94
|
+
"additionalProperties": false,
|
|
95
|
+
"required": ["allowed_paths", "forbidden_patterns", "forbid_secret_like_paths", "max_file_bytes", "external_project_scan_allowed"],
|
|
96
|
+
"properties": {
|
|
97
|
+
"allowed_paths": { "type": "array", "items": { "type": "string", "minLength": 1 }, "minItems": 1 },
|
|
98
|
+
"forbidden_patterns": { "type": "array", "items": { "type": "string", "minLength": 1 }, "minItems": 1 },
|
|
99
|
+
"forbid_secret_like_paths": { "const": true },
|
|
100
|
+
"max_file_bytes": { "type": "number", "minimum": 1, "maximum": 1048576 },
|
|
101
|
+
"external_project_scan_allowed": { "const": false }
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"sample_project": {
|
|
105
|
+
"type": "object",
|
|
106
|
+
"additionalProperties": false,
|
|
107
|
+
"required": ["name", "neutral_domain", "generation_policy", "copy_policy", "quarantine_required"],
|
|
108
|
+
"properties": {
|
|
109
|
+
"name": { "type": "string", "pattern": "^[A-Za-z0-9._-]+$" },
|
|
110
|
+
"neutral_domain": { "type": "string", "minLength": 1 },
|
|
111
|
+
"generation_policy": { "enum": ["plan_only", "quarantine_only"] },
|
|
112
|
+
"copy_policy": { "enum": ["structure_and_patterns_only", "no_copy_plan_only"] },
|
|
113
|
+
"quarantine_required": { "const": true }
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"promotion": {
|
|
117
|
+
"type": "object",
|
|
118
|
+
"additionalProperties": false,
|
|
119
|
+
"required": ["writeback_policy", "requires_oracle_pass", "requires_human_approval", "durable_promotion_allowed"],
|
|
120
|
+
"properties": {
|
|
121
|
+
"writeback_policy": { "const": "proposal_only" },
|
|
122
|
+
"requires_oracle_pass": { "const": true },
|
|
123
|
+
"requires_human_approval": { "const": true },
|
|
124
|
+
"durable_promotion_allowed": { "const": false }
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://zob.local/schemas/project-dna-manifest.v1.json",
|
|
4
|
+
"title": "ProjectDNA Manifest",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schema", "source_project", "sample_project", "read_policy", "promotion"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema": { "const": "zob.project-dna-manifest.v1" },
|
|
10
|
+
"run_id": { "type": "string", "pattern": "^[A-Za-z0-9._-]+$" },
|
|
11
|
+
"compute_profile": { "enum": ["auto", "low", "medium", "high", "xhigh", "max"], "default": "auto" },
|
|
12
|
+
"compute_caps": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"additionalProperties": false,
|
|
15
|
+
"properties": {
|
|
16
|
+
"maxAgents": { "type": "number", "minimum": 1, "maximum": 30 },
|
|
17
|
+
"maxDelegationDepth": { "type": "number", "minimum": 0, "maximum": 4 },
|
|
18
|
+
"maxParallel": { "type": "number", "minimum": 1, "maximum": 8 },
|
|
19
|
+
"maxIterations": { "type": "number", "minimum": 1, "maximum": 5 },
|
|
20
|
+
"maxDurationMs": { "type": "number", "minimum": 1 },
|
|
21
|
+
"maxCostUsd": { "type": "number", "minimum": 0 },
|
|
22
|
+
"maxContextTokens": { "type": "number", "minimum": 1 },
|
|
23
|
+
"strictBudgetRequired": { "type": "boolean" },
|
|
24
|
+
"oracleRequired": { "type": "boolean" }
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"source_project": {
|
|
28
|
+
"type": "object",
|
|
29
|
+
"additionalProperties": false,
|
|
30
|
+
"required": ["source_id", "path"],
|
|
31
|
+
"properties": {
|
|
32
|
+
"source_id": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$" },
|
|
33
|
+
"path": { "type": "string", "minLength": 1 },
|
|
34
|
+
"owner": { "type": "string" },
|
|
35
|
+
"description": { "type": "string" }
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"sample_project": {
|
|
39
|
+
"type": "object",
|
|
40
|
+
"additionalProperties": false,
|
|
41
|
+
"required": ["name", "neutral_domain", "copy_policy"],
|
|
42
|
+
"properties": {
|
|
43
|
+
"name": { "type": "string", "pattern": "^[A-Za-z0-9._-]+$" },
|
|
44
|
+
"neutral_domain": { "type": "string", "minLength": 1 },
|
|
45
|
+
"target_stack_policy": { "enum": ["preserve_detected_stack", "explicit_stack", "plan_only"] },
|
|
46
|
+
"copy_policy": { "enum": ["structure_and_patterns_only", "no_copy_plan_only"] }
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"read_policy": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"additionalProperties": false,
|
|
52
|
+
"required": ["allowed_paths", "forbidden_patterns"],
|
|
53
|
+
"properties": {
|
|
54
|
+
"allowed_paths": { "type": "array", "items": { "type": "string", "minLength": 1 }, "minItems": 1 },
|
|
55
|
+
"forbidden_patterns": { "type": "array", "items": { "type": "string", "minLength": 1 }, "minItems": 1 }
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"validation": {
|
|
59
|
+
"type": "object",
|
|
60
|
+
"additionalProperties": false,
|
|
61
|
+
"properties": {
|
|
62
|
+
"commands": { "type": "array", "items": { "type": "string" } },
|
|
63
|
+
"allow_command_substitution": { "type": "boolean", "default": false }
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"promotion": {
|
|
67
|
+
"type": "object",
|
|
68
|
+
"additionalProperties": false,
|
|
69
|
+
"required": ["writeback_policy"],
|
|
70
|
+
"properties": {
|
|
71
|
+
"requires_oracle_pass": { "type": "boolean", "default": true },
|
|
72
|
+
"requires_human_approval": { "type": "boolean", "default": true },
|
|
73
|
+
"writeback_policy": { "enum": ["proposal_only", "manual_approval_only"] }
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://zob.local/project-dna/ontology.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": ["schema", "ontology_id", "concepts", "edge_types", "citation_policy", "source_safe", "knowledge_backend_write_enabled", "promotion_policy"],
|
|
6
|
+
"properties": {
|
|
7
|
+
"schema": { "const": "zob.project-dna-ontology.v1" },
|
|
8
|
+
"ontology_id": { "type": "string", "pattern": "^[A-Za-z0-9._-]+$" },
|
|
9
|
+
"description": { "type": "string" },
|
|
10
|
+
"source_safe": { "const": true },
|
|
11
|
+
"raw_bodies_stored": { "const": false },
|
|
12
|
+
"knowledge_backend_write_enabled": { "const": false },
|
|
13
|
+
"promotion_policy": { "const": "proposal_only" },
|
|
14
|
+
"concepts": {
|
|
15
|
+
"type": "array",
|
|
16
|
+
"minItems": 1,
|
|
17
|
+
"items": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"required": ["id", "kind", "aliases", "expected_file_hints", "expected_artifact_roles", "minimum_citation_roles"],
|
|
20
|
+
"properties": {
|
|
21
|
+
"id": { "type": "string", "pattern": "^[a-z0-9_.-]+$" },
|
|
22
|
+
"kind": { "type": "string" },
|
|
23
|
+
"aliases": { "type": "array", "items": { "type": "string" } },
|
|
24
|
+
"expected_file_hints": { "type": "array", "items": { "type": "string" } },
|
|
25
|
+
"expected_artifact_roles": { "type": "array", "items": { "type": "string" } },
|
|
26
|
+
"minimum_citation_roles": { "type": "array", "items": { "type": "string" } }
|
|
27
|
+
},
|
|
28
|
+
"additionalProperties": true
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"edge_types": { "type": "array", "minItems": 1, "items": { "type": "string" } },
|
|
32
|
+
"citation_policy": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"required": ["citation_required", "prefer_symbol_ranges", "raw_body_storage_allowed"],
|
|
35
|
+
"properties": {
|
|
36
|
+
"citation_required": { "const": true },
|
|
37
|
+
"prefer_symbol_ranges": { "const": true },
|
|
38
|
+
"broad_citation_max_ratio": { "type": "number", "minimum": 0, "maximum": 1 },
|
|
39
|
+
"raw_body_storage_allowed": { "const": false }
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"agent_lanes": { "type": "array", "items": { "type": "string" } }
|
|
43
|
+
},
|
|
44
|
+
"additionalProperties": true
|
|
45
|
+
}
|