@hunter-harness/workflow-harness 0.4.0 → 0.4.1
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/harness/bundles/general/claude-code/.harness-build.json +1 -1
- package/harness/bundles/general/claude-code/harness-archive/SKILL.md +1 -1
- package/harness/bundles/general/claude-code/harness-codebase-map/SKILL.md +1 -1
- package/harness/bundles/general/claude-code/harness-execute/SKILL.md +1 -1
- package/harness/bundles/general/claude-code/harness-knowledge-ingest/SKILL.md +1 -1
- package/harness/bundles/general/claude-code/harness-knowledge-query/SKILL.md +1 -1
- package/harness/bundles/general/claude-code/harness-plan/SKILL.md +1 -1
- package/harness/bundles/general/claude-code/harness-pull/SKILL.md +1 -1
- package/harness/bundles/general/claude-code/harness-push/SKILL.md +1 -1
- package/harness/bundles/general/claude-code/harness-review/SKILL.md +1 -1
- package/harness/bundles/general/claude-code/harness-run/SKILL.md +1 -1
- package/harness/bundles/general/claude-code/harness-submit/SKILL.md +1 -1
- package/harness/bundles/general/claude-code/harness-sync/SKILL.md +1 -1
- package/harness/bundles/general/claude-code/harness-test/SKILL.md +1 -1
- package/harness/bundles/general/claude-code/scripts/harness_archive.py +29 -6
- package/harness/bundles/general/claude-code/scripts/harness_deploy.py +1 -1
- package/harness/bundles/general/claude-code/scripts/harness_knowledge_candidates.py +398 -0
- package/harness/bundles/general/codebuddy/.harness-build.json +1 -1
- package/harness/bundles/general/codebuddy/harness-archive/SKILL.md +1 -1
- package/harness/bundles/general/codebuddy/harness-codebase-map/SKILL.md +1 -1
- package/harness/bundles/general/codebuddy/harness-execute/SKILL.md +1 -1
- package/harness/bundles/general/codebuddy/harness-knowledge-ingest/SKILL.md +1 -1
- package/harness/bundles/general/codebuddy/harness-knowledge-query/SKILL.md +1 -1
- package/harness/bundles/general/codebuddy/harness-plan/SKILL.md +1 -1
- package/harness/bundles/general/codebuddy/harness-pull/SKILL.md +1 -1
- package/harness/bundles/general/codebuddy/harness-push/SKILL.md +1 -1
- package/harness/bundles/general/codebuddy/harness-review/SKILL.md +1 -1
- package/harness/bundles/general/codebuddy/harness-run/SKILL.md +1 -1
- package/harness/bundles/general/codebuddy/harness-submit/SKILL.md +1 -1
- package/harness/bundles/general/codebuddy/harness-sync/SKILL.md +1 -1
- package/harness/bundles/general/codebuddy/harness-test/SKILL.md +1 -1
- package/harness/bundles/general/codebuddy/scripts/harness_archive.py +29 -6
- package/harness/bundles/general/codebuddy/scripts/harness_deploy.py +1 -1
- package/harness/bundles/general/codebuddy/scripts/harness_knowledge_candidates.py +398 -0
- package/harness/bundles/general/codex/.harness-build.json +1 -1
- package/harness/bundles/general/codex/harness-archive/SKILL.md +1 -1
- package/harness/bundles/general/codex/harness-codebase-map/SKILL.md +1 -1
- package/harness/bundles/general/codex/harness-execute/SKILL.md +1 -1
- package/harness/bundles/general/codex/harness-knowledge-ingest/SKILL.md +1 -1
- package/harness/bundles/general/codex/harness-knowledge-query/SKILL.md +1 -1
- package/harness/bundles/general/codex/harness-plan/SKILL.md +1 -1
- package/harness/bundles/general/codex/harness-pull/SKILL.md +1 -1
- package/harness/bundles/general/codex/harness-push/SKILL.md +1 -1
- package/harness/bundles/general/codex/harness-review/SKILL.md +1 -1
- package/harness/bundles/general/codex/harness-run/SKILL.md +1 -1
- package/harness/bundles/general/codex/harness-submit/SKILL.md +1 -1
- package/harness/bundles/general/codex/harness-sync/SKILL.md +1 -1
- package/harness/bundles/general/codex/harness-test/SKILL.md +1 -1
- package/harness/bundles/general/codex/scripts/harness_archive.py +29 -6
- package/harness/bundles/general/codex/scripts/harness_deploy.py +1 -1
- package/harness/bundles/general/codex/scripts/harness_knowledge_candidates.py +398 -0
- package/harness/bundles/general/cursor/.harness-build.json +1 -1
- package/harness/bundles/general/cursor/harness-archive/SKILL.md +1 -1
- package/harness/bundles/general/cursor/harness-codebase-map/SKILL.md +1 -1
- package/harness/bundles/general/cursor/harness-execute/SKILL.md +1 -1
- package/harness/bundles/general/cursor/harness-knowledge-ingest/SKILL.md +1 -1
- package/harness/bundles/general/cursor/harness-knowledge-query/SKILL.md +1 -1
- package/harness/bundles/general/cursor/harness-plan/SKILL.md +1 -1
- package/harness/bundles/general/cursor/harness-pull/SKILL.md +1 -1
- package/harness/bundles/general/cursor/harness-push/SKILL.md +1 -1
- package/harness/bundles/general/cursor/harness-review/SKILL.md +1 -1
- package/harness/bundles/general/cursor/harness-run/SKILL.md +1 -1
- package/harness/bundles/general/cursor/harness-submit/SKILL.md +1 -1
- package/harness/bundles/general/cursor/harness-sync/SKILL.md +1 -1
- package/harness/bundles/general/cursor/harness-test/SKILL.md +1 -1
- package/harness/bundles/general/cursor/scripts/harness_archive.py +29 -6
- package/harness/bundles/general/cursor/scripts/harness_deploy.py +1 -1
- package/harness/bundles/general/cursor/scripts/harness_knowledge_candidates.py +398 -0
- package/harness/bundles/general/pi/.harness-build.json +6 -0
- package/harness/bundles/general/pi/CONTEXT.md +98 -0
- package/harness/bundles/general/pi/README.md +478 -0
- package/harness/bundles/general/pi/contracts/build-profile-v3.schema.json +302 -0
- package/harness/bundles/general/pi/contracts/ci-metrics.schema.json +36 -0
- package/harness/bundles/general/pi/contracts/doctor-capability.schema.json +43 -0
- package/harness/bundles/general/pi/contracts/external-platform-observation.schema.json +62 -0
- package/harness/bundles/general/pi/contracts/fixtures/managed-execution.json +341 -0
- package/harness/bundles/general/pi/contracts/process-identity.schema.json +132 -0
- package/harness/bundles/general/pi/contracts/run-session.schema.json +142 -0
- package/harness/bundles/general/pi/contracts/service-retirement-receipt.schema.json +85 -0
- package/harness/bundles/general/pi/contracts/service-session.schema.json +147 -0
- package/harness/bundles/general/pi/contracts/workflow-policy.json +574 -0
- package/harness/bundles/general/pi/harness-archive/SKILL.md +322 -0
- package/harness/bundles/general/pi/harness-archive/checklist.md +71 -0
- package/harness/bundles/general/pi/harness-archive/reference.md +150 -0
- package/harness/bundles/general/pi/harness-archive/scripts/gen-manifest.ps1 +31 -0
- package/harness/bundles/general/pi/harness-archive/templates/summary-data-template.json +218 -0
- package/harness/bundles/general/pi/harness-codebase-map/SKILL.md +116 -0
- package/harness/bundles/general/pi/harness-codebase-map/checklist.md +126 -0
- package/harness/bundles/general/pi/harness-codebase-map/reference.md +364 -0
- package/harness/bundles/general/pi/harness-codebase-map/templates/ARCHITECTURE.md +57 -0
- package/harness/bundles/general/pi/harness-codebase-map/templates/CONCERNS.md +49 -0
- package/harness/bundles/general/pi/harness-codebase-map/templates/CONVENTIONS.md +57 -0
- package/harness/bundles/general/pi/harness-codebase-map/templates/INTEGRATIONS.md +52 -0
- package/harness/bundles/general/pi/harness-codebase-map/templates/STACK.md +55 -0
- package/harness/bundles/general/pi/harness-codebase-map/templates/STRUCTURE.md +69 -0
- package/harness/bundles/general/pi/harness-codebase-map/templates/TESTING.md +64 -0
- package/harness/bundles/general/pi/harness-codebase-map/templates/map-manifest.schema.json +73 -0
- package/harness/bundles/general/pi/harness-codebase-map/templates/map-summary.md +64 -0
- package/harness/bundles/general/pi/harness-execute/SKILL.md +170 -0
- package/harness/bundles/general/pi/harness-knowledge-ingest/SKILL.md +103 -0
- package/harness/bundles/general/pi/harness-knowledge-query/SKILL.md +97 -0
- package/harness/bundles/general/pi/harness-plan/SKILL.md +158 -0
- package/harness/bundles/general/pi/harness-plan/checklist.md +243 -0
- package/harness/bundles/general/pi/harness-plan/protocols.md +133 -0
- package/harness/bundles/general/pi/harness-plan/reference.md +468 -0
- package/harness/bundles/general/pi/harness-pull/SKILL.md +55 -0
- package/harness/bundles/general/pi/harness-push/SKILL.md +83 -0
- package/harness/bundles/general/pi/harness-review/SKILL.md +175 -0
- package/harness/bundles/general/pi/harness-review/checklist.md +124 -0
- package/harness/bundles/general/pi/harness-review/protocols.md +69 -0
- package/harness/bundles/general/pi/harness-review/reference.md +114 -0
- package/harness/bundles/general/pi/harness-run/SKILL.md +188 -0
- package/harness/bundles/general/pi/harness-run/checklist.md +279 -0
- package/harness/bundles/general/pi/harness-run/protocols.md +141 -0
- package/harness/bundles/general/pi/harness-run/reference.md +886 -0
- package/harness/bundles/general/pi/harness-submit/SKILL.md +182 -0
- package/harness/bundles/general/pi/harness-submit/checklist.md +452 -0
- package/harness/bundles/general/pi/harness-submit/reference.md +152 -0
- package/harness/bundles/general/pi/harness-sync/SKILL.md +72 -0
- package/harness/bundles/general/pi/harness-sync/reference.md +176 -0
- package/harness/bundles/general/pi/harness-test/SKILL.md +250 -0
- package/harness/bundles/general/pi/harness-test/checklist.md +359 -0
- package/harness/bundles/general/pi/harness-test/pitfalls-java.md +14 -0
- package/harness/bundles/general/pi/harness-test/pitfalls.md +307 -0
- package/harness/bundles/general/pi/harness-test/reference.md +880 -0
- package/harness/bundles/general/pi/harness-test/scripts/runtime-helpers.mjs +216 -0
- package/harness/bundles/general/pi/protocols/archive-report-protocol.md +196 -0
- package/harness/bundles/general/pi/protocols/ci-layering-protocol.md +22 -0
- package/harness/bundles/general/pi/protocols/evidence-based-reporting-protocol.md +134 -0
- package/harness/bundles/general/pi/protocols/execution-session-protocol.md +52 -0
- package/harness/bundles/general/pi/protocols/external-platform-protocol.md +27 -0
- package/harness/bundles/general/pi/protocols/ledger-protocol.md +365 -0
- package/harness/bundles/general/pi/protocols/memory-closeout-protocol.md +21 -0
- package/harness/bundles/general/pi/protocols/model-routing-protocol.md +22 -0
- package/harness/bundles/general/pi/protocols/powershell-protocol.md +238 -0
- package/harness/bundles/general/pi/protocols/registry-governance-protocol.md +31 -0
- package/harness/bundles/general/pi/protocols/report-pipeline-protocol.md +172 -0
- package/harness/bundles/general/pi/protocols/sensitive-info-protocol.md +110 -0
- package/harness/bundles/general/pi/protocols/state-layout-protocol.md +209 -0
- package/harness/bundles/general/pi/protocols/submit-protocol.md +78 -0
- package/harness/bundles/general/pi/protocols/verification-graph-protocol.md +32 -0
- package/harness/bundles/general/pi/scripts/harness_adoption_metrics.py +391 -0
- package/harness/bundles/general/pi/scripts/harness_apidoc.py +53 -0
- package/harness/bundles/general/pi/scripts/harness_archive.py +11345 -0
- package/harness/bundles/general/pi/scripts/harness_change.py +1626 -0
- package/harness/bundles/general/pi/scripts/harness_check_gate.py +113 -0
- package/harness/bundles/general/pi/scripts/harness_context.py +1774 -0
- package/harness/bundles/general/pi/scripts/harness_deploy.py +968 -0
- package/harness/bundles/general/pi/scripts/harness_efficiency.py +443 -0
- package/harness/bundles/general/pi/scripts/harness_environment.py +1690 -0
- package/harness/bundles/general/pi/scripts/harness_events.py +2234 -0
- package/harness/bundles/general/pi/scripts/harness_events_sync.py +1425 -0
- package/harness/bundles/general/pi/scripts/harness_execution_contracts.py +596 -0
- package/harness/bundles/general/pi/scripts/harness_fixback.py +1975 -0
- package/harness/bundles/general/pi/scripts/harness_gate.py +3816 -0
- package/harness/bundles/general/pi/scripts/harness_headless.py +37 -0
- package/harness/bundles/general/pi/scripts/harness_integration.py +2564 -0
- package/harness/bundles/general/pi/scripts/harness_knowledge_candidates.py +796 -0
- package/harness/bundles/general/pi/scripts/harness_ledger.py +3556 -0
- package/harness/bundles/general/pi/scripts/harness_migration_head.py +220 -0
- package/harness/bundles/general/pi/scripts/harness_orchestration.py +344 -0
- package/harness/bundles/general/pi/scripts/harness_paths.py +676 -0
- package/harness/bundles/general/pi/scripts/harness_phase.py +1726 -0
- package/harness/bundles/general/pi/scripts/harness_plan_aggregate.py +249 -0
- package/harness/bundles/general/pi/scripts/harness_plan_finalize.py +1016 -0
- package/harness/bundles/general/pi/scripts/harness_preflight.py +650 -0
- package/harness/bundles/general/pi/scripts/harness_process.py +1065 -0
- package/harness/bundles/general/pi/scripts/harness_profile.py +1817 -0
- package/harness/bundles/general/pi/scripts/harness_report_model.py +442 -0
- package/harness/bundles/general/pi/scripts/harness_retry.py +175 -0
- package/harness/bundles/general/pi/scripts/harness_review.py +631 -0
- package/harness/bundles/general/pi/scripts/harness_runtime.py +2243 -0
- package/harness/bundles/general/pi/scripts/harness_service.py +3355 -0
- package/harness/bundles/general/pi/scripts/harness_state.py +365 -0
- package/harness/bundles/general/pi/scripts/harness_sync.py +407 -0
- package/harness/bundles/general/pi/scripts/harness_test_cleanup.py +175 -0
- package/harness/bundles/general/pi/scripts/harness_test_guard.py +1899 -0
- package/harness/bundles/general/pi/scripts/harness_test_runner.py +1586 -0
- package/harness/bundles/general/pi/scripts/harness_verification.py +593 -0
- package/harness/bundles/general/pi/scripts/harness_workflow_policy.py +266 -0
- package/harness/bundles/java/claude-code/.harness-build.json +1 -1
- package/harness/bundles/java/claude-code/harness-apidoc/SKILL.md +1 -1
- package/harness/bundles/java/claude-code/harness-archive/SKILL.md +1 -1
- package/harness/bundles/java/claude-code/harness-codebase-map/SKILL.md +1 -1
- package/harness/bundles/java/claude-code/harness-execute/SKILL.md +1 -1
- package/harness/bundles/java/claude-code/harness-knowledge-ingest/SKILL.md +1 -1
- package/harness/bundles/java/claude-code/harness-knowledge-query/SKILL.md +1 -1
- package/harness/bundles/java/claude-code/harness-package/SKILL.md +1 -1
- package/harness/bundles/java/claude-code/harness-plan/SKILL.md +1 -1
- package/harness/bundles/java/claude-code/harness-pull/SKILL.md +1 -1
- package/harness/bundles/java/claude-code/harness-push/SKILL.md +1 -1
- package/harness/bundles/java/claude-code/harness-review/SKILL.md +1 -1
- package/harness/bundles/java/claude-code/harness-run/SKILL.md +1 -1
- package/harness/bundles/java/claude-code/harness-submit/SKILL.md +1 -1
- package/harness/bundles/java/claude-code/harness-sync/SKILL.md +1 -1
- package/harness/bundles/java/claude-code/harness-test/SKILL.md +1 -1
- package/harness/bundles/java/claude-code/scripts/harness_archive.py +29 -6
- package/harness/bundles/java/claude-code/scripts/harness_deploy.py +1 -1
- package/harness/bundles/java/claude-code/scripts/harness_knowledge_candidates.py +398 -0
- package/harness/bundles/java/codebuddy/.harness-build.json +1 -1
- package/harness/bundles/java/codebuddy/harness-apidoc/SKILL.md +1 -1
- package/harness/bundles/java/codebuddy/harness-archive/SKILL.md +1 -1
- package/harness/bundles/java/codebuddy/harness-codebase-map/SKILL.md +1 -1
- package/harness/bundles/java/codebuddy/harness-execute/SKILL.md +1 -1
- package/harness/bundles/java/codebuddy/harness-knowledge-ingest/SKILL.md +1 -1
- package/harness/bundles/java/codebuddy/harness-knowledge-query/SKILL.md +1 -1
- package/harness/bundles/java/codebuddy/harness-package/SKILL.md +1 -1
- package/harness/bundles/java/codebuddy/harness-plan/SKILL.md +1 -1
- package/harness/bundles/java/codebuddy/harness-pull/SKILL.md +1 -1
- package/harness/bundles/java/codebuddy/harness-push/SKILL.md +1 -1
- package/harness/bundles/java/codebuddy/harness-review/SKILL.md +1 -1
- package/harness/bundles/java/codebuddy/harness-run/SKILL.md +1 -1
- package/harness/bundles/java/codebuddy/harness-submit/SKILL.md +1 -1
- package/harness/bundles/java/codebuddy/harness-sync/SKILL.md +1 -1
- package/harness/bundles/java/codebuddy/harness-test/SKILL.md +1 -1
- package/harness/bundles/java/codebuddy/scripts/harness_archive.py +29 -6
- package/harness/bundles/java/codebuddy/scripts/harness_deploy.py +1 -1
- package/harness/bundles/java/codebuddy/scripts/harness_knowledge_candidates.py +398 -0
- package/harness/bundles/java/codex/.harness-build.json +1 -1
- package/harness/bundles/java/codex/harness-apidoc/SKILL.md +1 -1
- package/harness/bundles/java/codex/harness-archive/SKILL.md +1 -1
- package/harness/bundles/java/codex/harness-codebase-map/SKILL.md +1 -1
- package/harness/bundles/java/codex/harness-execute/SKILL.md +1 -1
- package/harness/bundles/java/codex/harness-knowledge-ingest/SKILL.md +1 -1
- package/harness/bundles/java/codex/harness-knowledge-query/SKILL.md +1 -1
- package/harness/bundles/java/codex/harness-package/SKILL.md +1 -1
- package/harness/bundles/java/codex/harness-plan/SKILL.md +1 -1
- package/harness/bundles/java/codex/harness-pull/SKILL.md +1 -1
- package/harness/bundles/java/codex/harness-push/SKILL.md +1 -1
- package/harness/bundles/java/codex/harness-review/SKILL.md +1 -1
- package/harness/bundles/java/codex/harness-run/SKILL.md +1 -1
- package/harness/bundles/java/codex/harness-submit/SKILL.md +1 -1
- package/harness/bundles/java/codex/harness-sync/SKILL.md +1 -1
- package/harness/bundles/java/codex/harness-test/SKILL.md +1 -1
- package/harness/bundles/java/codex/scripts/harness_archive.py +29 -6
- package/harness/bundles/java/codex/scripts/harness_deploy.py +1 -1
- package/harness/bundles/java/codex/scripts/harness_knowledge_candidates.py +398 -0
- package/harness/bundles/java/cursor/.harness-build.json +1 -1
- package/harness/bundles/java/cursor/harness-apidoc/SKILL.md +1 -1
- package/harness/bundles/java/cursor/harness-archive/SKILL.md +1 -1
- package/harness/bundles/java/cursor/harness-codebase-map/SKILL.md +1 -1
- package/harness/bundles/java/cursor/harness-execute/SKILL.md +1 -1
- package/harness/bundles/java/cursor/harness-knowledge-ingest/SKILL.md +1 -1
- package/harness/bundles/java/cursor/harness-knowledge-query/SKILL.md +1 -1
- package/harness/bundles/java/cursor/harness-package/SKILL.md +1 -1
- package/harness/bundles/java/cursor/harness-plan/SKILL.md +1 -1
- package/harness/bundles/java/cursor/harness-pull/SKILL.md +1 -1
- package/harness/bundles/java/cursor/harness-push/SKILL.md +1 -1
- package/harness/bundles/java/cursor/harness-review/SKILL.md +1 -1
- package/harness/bundles/java/cursor/harness-run/SKILL.md +1 -1
- package/harness/bundles/java/cursor/harness-submit/SKILL.md +1 -1
- package/harness/bundles/java/cursor/harness-sync/SKILL.md +1 -1
- package/harness/bundles/java/cursor/harness-test/SKILL.md +1 -1
- package/harness/bundles/java/cursor/scripts/harness_archive.py +29 -6
- package/harness/bundles/java/cursor/scripts/harness_deploy.py +1 -1
- package/harness/bundles/java/cursor/scripts/harness_knowledge_candidates.py +398 -0
- package/harness/bundles/java/pi/.harness-build.json +6 -0
- package/harness/bundles/java/pi/CONTEXT.md +98 -0
- package/harness/bundles/java/pi/README.md +478 -0
- package/harness/bundles/java/pi/contracts/build-profile-v3.schema.json +302 -0
- package/harness/bundles/java/pi/contracts/ci-metrics.schema.json +36 -0
- package/harness/bundles/java/pi/contracts/doctor-capability.schema.json +43 -0
- package/harness/bundles/java/pi/contracts/external-platform-observation.schema.json +62 -0
- package/harness/bundles/java/pi/contracts/fixtures/managed-execution.json +341 -0
- package/harness/bundles/java/pi/contracts/process-identity.schema.json +132 -0
- package/harness/bundles/java/pi/contracts/run-session.schema.json +142 -0
- package/harness/bundles/java/pi/contracts/service-retirement-receipt.schema.json +85 -0
- package/harness/bundles/java/pi/contracts/service-session.schema.json +147 -0
- package/harness/bundles/java/pi/contracts/workflow-policy.json +574 -0
- package/harness/bundles/java/pi/harness-apidoc/SKILL.md +97 -0
- package/harness/bundles/java/pi/harness-apidoc/checklist.md +142 -0
- package/harness/bundles/java/pi/harness-apidoc/reference.md +233 -0
- package/harness/bundles/java/pi/harness-archive/SKILL.md +322 -0
- package/harness/bundles/java/pi/harness-archive/checklist.md +71 -0
- package/harness/bundles/java/pi/harness-archive/reference.md +150 -0
- package/harness/bundles/java/pi/harness-archive/scripts/gen-manifest.ps1 +31 -0
- package/harness/bundles/java/pi/harness-archive/templates/summary-data-template.json +218 -0
- package/harness/bundles/java/pi/harness-codebase-map/SKILL.md +116 -0
- package/harness/bundles/java/pi/harness-codebase-map/checklist.md +126 -0
- package/harness/bundles/java/pi/harness-codebase-map/reference.md +364 -0
- package/harness/bundles/java/pi/harness-codebase-map/templates/ARCHITECTURE.md +57 -0
- package/harness/bundles/java/pi/harness-codebase-map/templates/CONCERNS.md +49 -0
- package/harness/bundles/java/pi/harness-codebase-map/templates/CONVENTIONS.md +57 -0
- package/harness/bundles/java/pi/harness-codebase-map/templates/INTEGRATIONS.md +52 -0
- package/harness/bundles/java/pi/harness-codebase-map/templates/STACK.md +55 -0
- package/harness/bundles/java/pi/harness-codebase-map/templates/STRUCTURE.md +69 -0
- package/harness/bundles/java/pi/harness-codebase-map/templates/TESTING.md +64 -0
- package/harness/bundles/java/pi/harness-codebase-map/templates/map-manifest.schema.json +73 -0
- package/harness/bundles/java/pi/harness-codebase-map/templates/map-summary.md +64 -0
- package/harness/bundles/java/pi/harness-execute/SKILL.md +170 -0
- package/harness/bundles/java/pi/harness-knowledge-ingest/SKILL.md +103 -0
- package/harness/bundles/java/pi/harness-knowledge-query/SKILL.md +97 -0
- package/harness/bundles/java/pi/harness-package/SKILL.md +94 -0
- package/harness/bundles/java/pi/harness-package/checklist.md +322 -0
- package/harness/bundles/java/pi/harness-package/reference.md +210 -0
- package/harness/bundles/java/pi/harness-plan/SKILL.md +158 -0
- package/harness/bundles/java/pi/harness-plan/checklist.md +243 -0
- package/harness/bundles/java/pi/harness-plan/protocols.md +133 -0
- package/harness/bundles/java/pi/harness-plan/reference.md +468 -0
- package/harness/bundles/java/pi/harness-pull/SKILL.md +55 -0
- package/harness/bundles/java/pi/harness-push/SKILL.md +83 -0
- package/harness/bundles/java/pi/harness-review/SKILL.md +175 -0
- package/harness/bundles/java/pi/harness-review/checklist.md +124 -0
- package/harness/bundles/java/pi/harness-review/protocols.md +69 -0
- package/harness/bundles/java/pi/harness-review/reference.md +114 -0
- package/harness/bundles/java/pi/harness-run/SKILL.md +206 -0
- package/harness/bundles/java/pi/harness-run/checklist.md +252 -0
- package/harness/bundles/java/pi/harness-run/protocols.md +141 -0
- package/harness/bundles/java/pi/harness-run/reference.md +820 -0
- package/harness/bundles/java/pi/harness-submit/SKILL.md +189 -0
- package/harness/bundles/java/pi/harness-submit/checklist.md +452 -0
- package/harness/bundles/java/pi/harness-submit/reference.md +152 -0
- package/harness/bundles/java/pi/harness-sync/SKILL.md +72 -0
- package/harness/bundles/java/pi/harness-sync/reference.md +176 -0
- package/harness/bundles/java/pi/harness-test/SKILL.md +264 -0
- package/harness/bundles/java/pi/harness-test/checklist.md +320 -0
- package/harness/bundles/java/pi/harness-test/pitfalls-java.md +16 -0
- package/harness/bundles/java/pi/harness-test/pitfalls.md +307 -0
- package/harness/bundles/java/pi/harness-test/reference.md +792 -0
- package/harness/bundles/java/pi/harness-test/scripts/runtime-helpers.mjs +216 -0
- package/harness/bundles/java/pi/protocols/archive-report-protocol.md +196 -0
- package/harness/bundles/java/pi/protocols/ci-layering-protocol.md +22 -0
- package/harness/bundles/java/pi/protocols/evidence-based-reporting-protocol.md +134 -0
- package/harness/bundles/java/pi/protocols/execution-session-protocol.md +52 -0
- package/harness/bundles/java/pi/protocols/external-platform-protocol.md +27 -0
- package/harness/bundles/java/pi/protocols/ledger-protocol.md +365 -0
- package/harness/bundles/java/pi/protocols/memory-closeout-protocol.md +21 -0
- package/harness/bundles/java/pi/protocols/model-routing-protocol.md +22 -0
- package/harness/bundles/java/pi/protocols/powershell-protocol.md +238 -0
- package/harness/bundles/java/pi/protocols/registry-governance-protocol.md +31 -0
- package/harness/bundles/java/pi/protocols/report-pipeline-protocol.md +172 -0
- package/harness/bundles/java/pi/protocols/sensitive-info-protocol.md +110 -0
- package/harness/bundles/java/pi/protocols/state-layout-protocol.md +209 -0
- package/harness/bundles/java/pi/protocols/submit-protocol.md +78 -0
- package/harness/bundles/java/pi/protocols/verification-graph-protocol.md +32 -0
- package/harness/bundles/java/pi/scripts/harness_adoption_metrics.py +391 -0
- package/harness/bundles/java/pi/scripts/harness_apidoc.py +53 -0
- package/harness/bundles/java/pi/scripts/harness_archive.py +11345 -0
- package/harness/bundles/java/pi/scripts/harness_change.py +1626 -0
- package/harness/bundles/java/pi/scripts/harness_check_gate.py +113 -0
- package/harness/bundles/java/pi/scripts/harness_context.py +1774 -0
- package/harness/bundles/java/pi/scripts/harness_deploy.py +968 -0
- package/harness/bundles/java/pi/scripts/harness_efficiency.py +443 -0
- package/harness/bundles/java/pi/scripts/harness_environment.py +1690 -0
- package/harness/bundles/java/pi/scripts/harness_events.py +2234 -0
- package/harness/bundles/java/pi/scripts/harness_events_sync.py +1425 -0
- package/harness/bundles/java/pi/scripts/harness_execution_contracts.py +596 -0
- package/harness/bundles/java/pi/scripts/harness_fixback.py +1975 -0
- package/harness/bundles/java/pi/scripts/harness_gate.py +3816 -0
- package/harness/bundles/java/pi/scripts/harness_headless.py +37 -0
- package/harness/bundles/java/pi/scripts/harness_integration.py +2564 -0
- package/harness/bundles/java/pi/scripts/harness_knowledge_candidates.py +796 -0
- package/harness/bundles/java/pi/scripts/harness_ledger.py +3556 -0
- package/harness/bundles/java/pi/scripts/harness_migration_head.py +220 -0
- package/harness/bundles/java/pi/scripts/harness_orchestration.py +344 -0
- package/harness/bundles/java/pi/scripts/harness_paths.py +676 -0
- package/harness/bundles/java/pi/scripts/harness_phase.py +1726 -0
- package/harness/bundles/java/pi/scripts/harness_plan_aggregate.py +249 -0
- package/harness/bundles/java/pi/scripts/harness_plan_finalize.py +1016 -0
- package/harness/bundles/java/pi/scripts/harness_preflight.py +650 -0
- package/harness/bundles/java/pi/scripts/harness_process.py +1065 -0
- package/harness/bundles/java/pi/scripts/harness_profile.py +1817 -0
- package/harness/bundles/java/pi/scripts/harness_report_model.py +442 -0
- package/harness/bundles/java/pi/scripts/harness_retry.py +175 -0
- package/harness/bundles/java/pi/scripts/harness_review.py +631 -0
- package/harness/bundles/java/pi/scripts/harness_runtime.py +2243 -0
- package/harness/bundles/java/pi/scripts/harness_service.py +3355 -0
- package/harness/bundles/java/pi/scripts/harness_state.py +365 -0
- package/harness/bundles/java/pi/scripts/harness_sync.py +407 -0
- package/harness/bundles/java/pi/scripts/harness_test_cleanup.py +175 -0
- package/harness/bundles/java/pi/scripts/harness_test_guard.py +1899 -0
- package/harness/bundles/java/pi/scripts/harness_test_runner.py +1586 -0
- package/harness/bundles/java/pi/scripts/harness_verification.py +593 -0
- package/harness/bundles/java/pi/scripts/harness_workflow_policy.py +266 -0
- package/harness/manifests/general/claude-code.json +17 -17
- package/harness/manifests/general/codebuddy.json +17 -17
- package/harness/manifests/general/codex.json +17 -17
- package/harness/manifests/general/cursor.json +17 -17
- package/harness/manifests/general/pi.json +475 -0
- package/harness/manifests/java/claude-code.json +19 -19
- package/harness/manifests/java/codebuddy.json +19 -19
- package/harness/manifests/java/codex.json +19 -19
- package/harness/manifests/java/cursor.json +19 -19
- package/harness/manifests/java/pi.json +499 -0
- package/hunter-workflow-family.json +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""Strict loader for harness/contracts/workflow-policy.json.
|
|
3
|
+
|
|
4
|
+
Unknown fields at any depth fail validation. Python 3.10+, stdlib only.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
|
|
9
|
+
import json
|
|
10
|
+
from pathlib import Path
|
|
11
|
+
from typing import Any
|
|
12
|
+
|
|
13
|
+
POLICY_REL = Path("harness") / "contracts" / "workflow-policy.json"
|
|
14
|
+
|
|
15
|
+
TOP_LEVEL_KEYS = frozenset(
|
|
16
|
+
{
|
|
17
|
+
"schemaVersion",
|
|
18
|
+
"testExecution",
|
|
19
|
+
"riskTiers",
|
|
20
|
+
"skills",
|
|
21
|
+
"requiredArtifacts",
|
|
22
|
+
"requiredValidations",
|
|
23
|
+
"validationPhases",
|
|
24
|
+
"capabilityGates",
|
|
25
|
+
"conditionalStages",
|
|
26
|
+
"interactionWhitelist",
|
|
27
|
+
"checkpointRules",
|
|
28
|
+
}
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
RISK_TIER_KEYS = frozenset(
|
|
32
|
+
{
|
|
33
|
+
"description",
|
|
34
|
+
"defaultPhases",
|
|
35
|
+
"requiredValidations",
|
|
36
|
+
"conditionalStages",
|
|
37
|
+
"upgradeTriggers",
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
SKILL_KEYS = frozenset(
|
|
42
|
+
{
|
|
43
|
+
"phase",
|
|
44
|
+
"inputs",
|
|
45
|
+
"artifacts",
|
|
46
|
+
"events",
|
|
47
|
+
"allowedInteractions",
|
|
48
|
+
"capabilities",
|
|
49
|
+
"profiles",
|
|
50
|
+
}
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
CONDITIONAL_STAGE_KEYS = frozenset({"tiers", "signals"})
|
|
54
|
+
CAPABILITY_GATE_KEYS = frozenset(
|
|
55
|
+
{"signals", "requiredStages", "requiredValidations"}
|
|
56
|
+
)
|
|
57
|
+
CHECKPOINT_RULE_KEYS = frozenset(
|
|
58
|
+
{
|
|
59
|
+
"afterTasks",
|
|
60
|
+
"beforeTasks",
|
|
61
|
+
"blocking",
|
|
62
|
+
"requiredReport",
|
|
63
|
+
"reviewerTool",
|
|
64
|
+
}
|
|
65
|
+
)
|
|
66
|
+
TEST_EXECUTION_KEYS = frozenset(
|
|
67
|
+
{
|
|
68
|
+
"runner",
|
|
69
|
+
"defaultProfile",
|
|
70
|
+
"maxWorkers",
|
|
71
|
+
"singleInstance",
|
|
72
|
+
"processTreeCleanup",
|
|
73
|
+
"detachedProcessPreflight",
|
|
74
|
+
"confirmationFlag",
|
|
75
|
+
"confirmationRequiredProfiles",
|
|
76
|
+
"resourceIntensiveModules",
|
|
77
|
+
"profiles",
|
|
78
|
+
}
|
|
79
|
+
)
|
|
80
|
+
TEST_EXECUTION_PROFILE_KEYS = frozenset(
|
|
81
|
+
{
|
|
82
|
+
"description",
|
|
83
|
+
"includesResourceIntensive",
|
|
84
|
+
"moduleTimeoutSeconds",
|
|
85
|
+
}
|
|
86
|
+
)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
class PolicyValidationError(ValueError):
|
|
90
|
+
"""Raised when workflow-policy.json contains unknown or invalid fields."""
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
def _reject_unknown(data: dict[str, Any], allowed: frozenset[str], path: str) -> None:
|
|
94
|
+
unknown = sorted(set(data) - allowed)
|
|
95
|
+
if unknown:
|
|
96
|
+
raise PolicyValidationError(
|
|
97
|
+
f"unknown field(s) at {path}: {', '.join(unknown)}"
|
|
98
|
+
)
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
def _require_type(value: Any, expected: type | tuple[type, ...], path: str) -> None:
|
|
102
|
+
if not isinstance(value, expected):
|
|
103
|
+
names = (
|
|
104
|
+
expected.__name__
|
|
105
|
+
if isinstance(expected, type)
|
|
106
|
+
else "|".join(t.__name__ for t in expected)
|
|
107
|
+
)
|
|
108
|
+
raise PolicyValidationError(f"{path} must be {names}, got {type(value).__name__}")
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
def validate_policy(data: Any) -> dict[str, Any]:
|
|
112
|
+
if not isinstance(data, dict):
|
|
113
|
+
raise PolicyValidationError("workflow policy root must be an object")
|
|
114
|
+
_reject_unknown(data, TOP_LEVEL_KEYS, "root")
|
|
115
|
+
_require_type(data.get("schemaVersion"), int, "schemaVersion")
|
|
116
|
+
if data["schemaVersion"] != 1:
|
|
117
|
+
raise PolicyValidationError("unsupported schemaVersion")
|
|
118
|
+
|
|
119
|
+
test_execution = data["testExecution"]
|
|
120
|
+
_require_type(test_execution, dict, "testExecution")
|
|
121
|
+
_reject_unknown(test_execution, TEST_EXECUTION_KEYS, "testExecution")
|
|
122
|
+
for key in ("runner", "defaultProfile", "confirmationFlag"):
|
|
123
|
+
_require_type(test_execution[key], str, f"testExecution.{key}")
|
|
124
|
+
max_workers = test_execution["maxWorkers"]
|
|
125
|
+
_require_type(max_workers, int, "testExecution.maxWorkers")
|
|
126
|
+
if isinstance(max_workers, bool) or max_workers < 1 or max_workers > 2:
|
|
127
|
+
raise PolicyValidationError("testExecution.maxWorkers must be 1 or 2")
|
|
128
|
+
for key in (
|
|
129
|
+
"singleInstance",
|
|
130
|
+
"processTreeCleanup",
|
|
131
|
+
"detachedProcessPreflight",
|
|
132
|
+
):
|
|
133
|
+
_require_type(test_execution[key], bool, f"testExecution.{key}")
|
|
134
|
+
if not test_execution[key]:
|
|
135
|
+
raise PolicyValidationError(f"testExecution.{key} must be true")
|
|
136
|
+
for key in ("confirmationRequiredProfiles", "resourceIntensiveModules"):
|
|
137
|
+
values = test_execution[key]
|
|
138
|
+
_require_type(values, list, f"testExecution.{key}")
|
|
139
|
+
if any(not isinstance(item, str) or not item for item in values):
|
|
140
|
+
raise PolicyValidationError(
|
|
141
|
+
f"testExecution.{key} must contain non-empty strings"
|
|
142
|
+
)
|
|
143
|
+
|
|
144
|
+
execution_profiles = test_execution["profiles"]
|
|
145
|
+
_require_type(execution_profiles, dict, "testExecution.profiles")
|
|
146
|
+
required_profile_names = {"safe", "system", "full"}
|
|
147
|
+
if set(execution_profiles) != required_profile_names:
|
|
148
|
+
raise PolicyValidationError(
|
|
149
|
+
"testExecution.profiles must define exactly safe, system, and full"
|
|
150
|
+
)
|
|
151
|
+
if test_execution["defaultProfile"] != "safe":
|
|
152
|
+
raise PolicyValidationError("testExecution.defaultProfile must be safe")
|
|
153
|
+
confirmation_profiles = set(test_execution["confirmationRequiredProfiles"])
|
|
154
|
+
if not {"system", "full"}.issubset(confirmation_profiles):
|
|
155
|
+
raise PolicyValidationError(
|
|
156
|
+
"testExecution confirmation must cover system and full"
|
|
157
|
+
)
|
|
158
|
+
for profile_name, profile in execution_profiles.items():
|
|
159
|
+
path = f"testExecution.profiles.{profile_name}"
|
|
160
|
+
_require_type(profile, dict, path)
|
|
161
|
+
_reject_unknown(profile, TEST_EXECUTION_PROFILE_KEYS, path)
|
|
162
|
+
_require_type(profile["description"], str, f"{path}.description")
|
|
163
|
+
_require_type(
|
|
164
|
+
profile["includesResourceIntensive"],
|
|
165
|
+
bool,
|
|
166
|
+
f"{path}.includesResourceIntensive",
|
|
167
|
+
)
|
|
168
|
+
timeout = profile["moduleTimeoutSeconds"]
|
|
169
|
+
_require_type(timeout, int, f"{path}.moduleTimeoutSeconds")
|
|
170
|
+
if isinstance(timeout, bool) or timeout <= 0:
|
|
171
|
+
raise PolicyValidationError(
|
|
172
|
+
f"{path}.moduleTimeoutSeconds must be a positive integer"
|
|
173
|
+
)
|
|
174
|
+
if execution_profiles["safe"]["includesResourceIntensive"]:
|
|
175
|
+
raise PolicyValidationError(
|
|
176
|
+
"testExecution.profiles.safe must exclude resource-intensive tests"
|
|
177
|
+
)
|
|
178
|
+
for profile_name in ("system", "full"):
|
|
179
|
+
if not execution_profiles[profile_name]["includesResourceIntensive"]:
|
|
180
|
+
raise PolicyValidationError(
|
|
181
|
+
f"testExecution.profiles.{profile_name} must include resource-intensive tests"
|
|
182
|
+
)
|
|
183
|
+
|
|
184
|
+
risk_tiers = data["riskTiers"]
|
|
185
|
+
_require_type(risk_tiers, dict, "riskTiers")
|
|
186
|
+
for tier_name, tier in risk_tiers.items():
|
|
187
|
+
path = f"riskTiers.{tier_name}"
|
|
188
|
+
_require_type(tier, dict, path)
|
|
189
|
+
_reject_unknown(tier, RISK_TIER_KEYS, path)
|
|
190
|
+
_require_type(tier["description"], str, f"{path}.description")
|
|
191
|
+
_require_type(tier["defaultPhases"], list, f"{path}.defaultPhases")
|
|
192
|
+
_require_type(tier["requiredValidations"], list, f"{path}.requiredValidations")
|
|
193
|
+
_require_type(tier["conditionalStages"], list, f"{path}.conditionalStages")
|
|
194
|
+
_require_type(tier["upgradeTriggers"], list, f"{path}.upgradeTriggers")
|
|
195
|
+
|
|
196
|
+
skills = data["skills"]
|
|
197
|
+
_require_type(skills, dict, "skills")
|
|
198
|
+
for skill_name, skill in skills.items():
|
|
199
|
+
path = f"skills.{skill_name}"
|
|
200
|
+
_require_type(skill, dict, path)
|
|
201
|
+
_reject_unknown(skill, SKILL_KEYS, path)
|
|
202
|
+
_require_type(skill["phase"], str, f"{path}.phase")
|
|
203
|
+
for key in ("inputs", "artifacts", "events", "allowedInteractions", "capabilities"):
|
|
204
|
+
_require_type(skill[key], list, f"{path}.{key}")
|
|
205
|
+
profiles = skill.get("profiles", ["general", "java"])
|
|
206
|
+
_require_type(profiles, list, f"{path}.profiles")
|
|
207
|
+
if not profiles or any(item not in {"general", "java"} for item in profiles):
|
|
208
|
+
raise PolicyValidationError(f"{path}.profiles must contain general and/or java")
|
|
209
|
+
|
|
210
|
+
for section in ("requiredArtifacts", "requiredValidations"):
|
|
211
|
+
section_data = data[section]
|
|
212
|
+
_require_type(section_data, dict, section)
|
|
213
|
+
for phase, items in section_data.items():
|
|
214
|
+
_require_type(items, list, f"{section}.{phase}")
|
|
215
|
+
|
|
216
|
+
validation_phases = data["validationPhases"]
|
|
217
|
+
_require_type(validation_phases, dict, "validationPhases")
|
|
218
|
+
for verification, phase in validation_phases.items():
|
|
219
|
+
_require_type(phase, str, f"validationPhases.{verification}")
|
|
220
|
+
|
|
221
|
+
capability_gates = data["capabilityGates"]
|
|
222
|
+
_require_type(capability_gates, dict, "capabilityGates")
|
|
223
|
+
for capability, gate in capability_gates.items():
|
|
224
|
+
path = f"capabilityGates.{capability}"
|
|
225
|
+
_require_type(gate, dict, path)
|
|
226
|
+
_reject_unknown(gate, CAPABILITY_GATE_KEYS, path)
|
|
227
|
+
for key in CAPABILITY_GATE_KEYS:
|
|
228
|
+
_require_type(gate[key], list, f"{path}.{key}")
|
|
229
|
+
|
|
230
|
+
conditional = data["conditionalStages"]
|
|
231
|
+
_require_type(conditional, dict, "conditionalStages")
|
|
232
|
+
for stage_name, stage in conditional.items():
|
|
233
|
+
path = f"conditionalStages.{stage_name}"
|
|
234
|
+
_require_type(stage, dict, path)
|
|
235
|
+
_reject_unknown(stage, CONDITIONAL_STAGE_KEYS, path)
|
|
236
|
+
_require_type(stage["tiers"], list, f"{path}.tiers")
|
|
237
|
+
_require_type(stage["signals"], list, f"{path}.signals")
|
|
238
|
+
|
|
239
|
+
interaction = data["interactionWhitelist"]
|
|
240
|
+
_require_type(interaction, dict, "interactionWhitelist")
|
|
241
|
+
for key, items in interaction.items():
|
|
242
|
+
_require_type(items, list, f"interactionWhitelist.{key}")
|
|
243
|
+
|
|
244
|
+
checkpoints = data["checkpointRules"]
|
|
245
|
+
_require_type(checkpoints, dict, "checkpointRules")
|
|
246
|
+
for checkpoint_id, rule in checkpoints.items():
|
|
247
|
+
path = f"checkpointRules.{checkpoint_id}"
|
|
248
|
+
_require_type(rule, dict, path)
|
|
249
|
+
_reject_unknown(rule, CHECKPOINT_RULE_KEYS, path)
|
|
250
|
+
_require_type(rule["afterTasks"], list, f"{path}.afterTasks")
|
|
251
|
+
_require_type(rule["beforeTasks"], list, f"{path}.beforeTasks")
|
|
252
|
+
_require_type(rule["blocking"], bool, f"{path}.blocking")
|
|
253
|
+
|
|
254
|
+
return data
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
def policy_path_for_repo(repo_root: Path) -> Path:
|
|
258
|
+
return repo_root / POLICY_REL
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
def load_policy(repo_root: Path) -> dict[str, Any]:
|
|
262
|
+
path = policy_path_for_repo(repo_root)
|
|
263
|
+
if not path.is_file():
|
|
264
|
+
raise FileNotFoundError(f"workflow policy missing: {path}")
|
|
265
|
+
data = json.loads(path.read_text(encoding="utf-8-sig"))
|
|
266
|
+
return validate_policy(data)
|
|
@@ -21,7 +21,7 @@ disallowed-tools:
|
|
|
21
21
|
- Bash(awk *)
|
|
22
22
|
- Bash(curl *)
|
|
23
23
|
---
|
|
24
|
-
<!-- generated by harness_deploy.py; core=
|
|
24
|
+
<!-- generated by harness_deploy.py; core=45b278c44cd66b19; overlay=java; agent=claude-code; do not edit -->
|
|
25
25
|
# harness-apidoc — 前端接口文档(Java overlay)
|
|
26
26
|
|
|
27
27
|
## Purpose
|
|
@@ -21,7 +21,7 @@ disallowed-tools:
|
|
|
21
21
|
- Bash(awk *)
|
|
22
22
|
- Bash(curl *)
|
|
23
23
|
---
|
|
24
|
-
<!-- generated by harness_deploy.py; core=
|
|
24
|
+
<!-- generated by harness_deploy.py; core=45b278c44cd66b19; overlay=java; agent=claude-code; do not edit -->
|
|
25
25
|
# harness-archive — 变更归档
|
|
26
26
|
|
|
27
27
|
## Purpose
|
|
@@ -20,7 +20,7 @@ disallowed-tools:
|
|
|
20
20
|
- Bash(awk *)
|
|
21
21
|
- Bash(curl *)
|
|
22
22
|
---
|
|
23
|
-
<!-- generated by harness_deploy.py; core=
|
|
23
|
+
<!-- generated by harness_deploy.py; core=45b278c44cd66b19; overlay=java; agent=claude-code; do not edit -->
|
|
24
24
|
# harness-codebase-map — 代码库地图
|
|
25
25
|
|
|
26
26
|
## Purpose
|
|
@@ -23,7 +23,7 @@ disallowed-tools:
|
|
|
23
23
|
- Bash(node *)
|
|
24
24
|
- Bash(codegraph *)
|
|
25
25
|
---
|
|
26
|
-
<!-- generated by harness_deploy.py; core=
|
|
26
|
+
<!-- generated by harness_deploy.py; core=45b278c44cd66b19; overlay=java; agent=claude-code; do not edit -->
|
|
27
27
|
# harness-execute — 执行(编码 + 验证)
|
|
28
28
|
|
|
29
29
|
> 2026-08 阶段合并:原 `run`(编码)与 `test`(验证)合并为单一 `execute` 阶段。
|
|
@@ -8,7 +8,7 @@ disallowed-tools:
|
|
|
8
8
|
- Bash(git *)
|
|
9
9
|
- Bash(curl *)
|
|
10
10
|
---
|
|
11
|
-
<!-- generated by harness_deploy.py; core=
|
|
11
|
+
<!-- generated by harness_deploy.py; core=45b278c44cd66b19; overlay=java; agent=claude-code; do not edit -->
|
|
12
12
|
# harness-knowledge-ingest
|
|
13
13
|
|
|
14
14
|
知识 ingest 完全由 Hunter Platform 负责。归档完成时,客户端生成一个确定性 ZIP;
|
|
@@ -8,7 +8,7 @@ disallowed-tools:
|
|
|
8
8
|
- Bash(git *)
|
|
9
9
|
- Bash(curl *)
|
|
10
10
|
---
|
|
11
|
-
<!-- generated by harness_deploy.py; core=
|
|
11
|
+
<!-- generated by harness_deploy.py; core=45b278c44cd66b19; overlay=java; agent=claude-code; do not edit -->
|
|
12
12
|
# harness-knowledge-query
|
|
13
13
|
|
|
14
14
|
项目知识以 Hunter Platform 的服务端索引为唯一真源。客户端只提交查询并消费结果:
|
|
@@ -21,7 +21,7 @@ disallowed-tools:
|
|
|
21
21
|
- Bash(awk *)
|
|
22
22
|
- Bash(curl *)
|
|
23
23
|
---
|
|
24
|
-
<!-- generated by harness_deploy.py; core=
|
|
24
|
+
<!-- generated by harness_deploy.py; core=45b278c44cd66b19; overlay=java; agent=claude-code; do not edit -->
|
|
25
25
|
# harness-package — 增量模块打包(Java overlay)
|
|
26
26
|
|
|
27
27
|
## Purpose
|
|
@@ -21,7 +21,7 @@ disallowed-tools:
|
|
|
21
21
|
- Bash(awk *)
|
|
22
22
|
- Bash(curl *)
|
|
23
23
|
---
|
|
24
|
-
<!-- generated by harness_deploy.py; core=
|
|
24
|
+
<!-- generated by harness_deploy.py; core=45b278c44cd66b19; overlay=java; agent=claude-code; do not edit -->
|
|
25
25
|
# harness-plan — 需求规划
|
|
26
26
|
|
|
27
27
|
## Purpose
|
|
@@ -21,7 +21,7 @@ disallowed-tools:
|
|
|
21
21
|
- Bash(awk *)
|
|
22
22
|
- Bash(curl *)
|
|
23
23
|
---
|
|
24
|
-
<!-- generated by harness_deploy.py; core=
|
|
24
|
+
<!-- generated by harness_deploy.py; core=45b278c44cd66b19; overlay=java; agent=claude-code; do not edit -->
|
|
25
25
|
# harness-pull — 从 Hunter Platform 下拉与恢复
|
|
26
26
|
|
|
27
27
|
## Purpose
|
|
@@ -21,7 +21,7 @@ disallowed-tools:
|
|
|
21
21
|
- Bash(awk *)
|
|
22
22
|
- Bash(curl *)
|
|
23
23
|
---
|
|
24
|
-
<!-- generated by harness_deploy.py; core=
|
|
24
|
+
<!-- generated by harness_deploy.py; core=45b278c44cd66b19; overlay=java; agent=claude-code; do not edit -->
|
|
25
25
|
# harness-push — 上传到 Hunter Platform
|
|
26
26
|
|
|
27
27
|
## Purpose
|
|
@@ -22,7 +22,7 @@ disallowed-tools:
|
|
|
22
22
|
- Bash(curl *)
|
|
23
23
|
- Bash(codegraph *)
|
|
24
24
|
---
|
|
25
|
-
<!-- generated by harness_deploy.py; core=
|
|
25
|
+
<!-- generated by harness_deploy.py; core=45b278c44cd66b19; overlay=java; agent=claude-code; do not edit -->
|
|
26
26
|
# harness-review — 代码审查
|
|
27
27
|
|
|
28
28
|
## Purpose
|
|
@@ -22,7 +22,7 @@ disallowed-tools:
|
|
|
22
22
|
- Bash(curl *)
|
|
23
23
|
- Bash(codegraph *)
|
|
24
24
|
---
|
|
25
|
-
<!-- generated by harness_deploy.py; core=
|
|
25
|
+
<!-- generated by harness_deploy.py; core=45b278c44cd66b19; overlay=java; agent=claude-code; do not edit -->
|
|
26
26
|
# harness-run — 需求编码
|
|
27
27
|
|
|
28
28
|
> **2026-08 阶段合并**:原 `run`(编码)与 `test`(验证)合并为单一 `execute` 阶段,
|
|
@@ -21,7 +21,7 @@ disallowed-tools:
|
|
|
21
21
|
- Bash(awk *)
|
|
22
22
|
- Bash(curl *)
|
|
23
23
|
---
|
|
24
|
-
<!-- generated by harness_deploy.py; core=
|
|
24
|
+
<!-- generated by harness_deploy.py; core=45b278c44cd66b19; overlay=java; agent=claude-code; do not edit -->
|
|
25
25
|
# harness-submit — 最终提交(含 worktree 合并)
|
|
26
26
|
|
|
27
27
|
## Purpose
|
|
@@ -19,7 +19,7 @@ disallowed-tools:
|
|
|
19
19
|
- Bash(awk *)
|
|
20
20
|
- Bash(curl *)
|
|
21
21
|
---
|
|
22
|
-
<!-- generated by harness_deploy.py; core=
|
|
22
|
+
<!-- generated by harness_deploy.py; core=45b278c44cd66b19; overlay=java; agent=claude-code; do not edit -->
|
|
23
23
|
# harness-sync
|
|
24
24
|
|
|
25
25
|
## Purpose
|
|
@@ -23,7 +23,7 @@ disallowed-tools:
|
|
|
23
23
|
- Bash(node *)
|
|
24
24
|
- Bash(codegraph *)
|
|
25
25
|
---
|
|
26
|
-
<!-- generated by harness_deploy.py; core=
|
|
26
|
+
<!-- generated by harness_deploy.py; core=45b278c44cd66b19; overlay=java; agent=claude-code; do not edit -->
|
|
27
27
|
# harness-test — 测试执行
|
|
28
28
|
|
|
29
29
|
> **2026-08 阶段合并**:原 `run`(编码)与 `test`(验证)合并为单一 `execute` 阶段,
|
|
@@ -4574,22 +4574,45 @@ def write_archive_meta(work_dir: Path, summary: dict[str, Any]) -> Path:
|
|
|
4574
4574
|
|
|
4575
4575
|
|
|
4576
4576
|
def write_knowledge_candidates(work_dir: Path, summary: dict[str, Any]) -> Path:
|
|
4577
|
-
"""Generate candidates/knowledge.json from summary-data
|
|
4577
|
+
"""Generate candidates/knowledge.json from summary-data + plans/*.md.
|
|
4578
4578
|
|
|
4579
4579
|
Mirrors write_archive_meta: derived from the same summary, written before the
|
|
4580
4580
|
after-manifest so its bytes are covered. The archive directory name is the
|
|
4581
4581
|
archive id, matching write_archive_meta's `archive-id` field.
|
|
4582
|
+
|
|
4583
|
+
Sources (in merge order):
|
|
4584
|
+
1. Summary 三源 (reviewFindings / knownRisks / decisions)
|
|
4585
|
+
2. Plans/*.md (design Requirements / Risks / Invariants, plan Tasks, test Scenarios)
|
|
4586
|
+
|
|
4587
|
+
Duplicates are deduplicated by candidate_id (summary 三源优先)。
|
|
4582
4588
|
"""
|
|
4583
4589
|
archive_id = work_dir.name
|
|
4590
|
+
change_key = str(summary.get("changeName") or archive_id)
|
|
4591
|
+
producer_version = SCHEMA_VERSION
|
|
4592
|
+
created_at = now_iso()
|
|
4593
|
+
|
|
4584
4594
|
candidates = hkc.build_knowledge_candidates(
|
|
4585
4595
|
summary,
|
|
4586
|
-
change_key=
|
|
4596
|
+
change_key=change_key,
|
|
4587
4597
|
archive_id=archive_id,
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
producer_version=SCHEMA_VERSION,
|
|
4591
|
-
created_at=now_iso(),
|
|
4598
|
+
producer_version=producer_version,
|
|
4599
|
+
created_at=created_at,
|
|
4592
4600
|
)
|
|
4601
|
+
|
|
4602
|
+
# Merge plan-derived candidates (soft-fail: empty plans still produce a valid output).
|
|
4603
|
+
plan_candidates = hkc.build_plan_candidates(
|
|
4604
|
+
work_dir,
|
|
4605
|
+
change_key=change_key,
|
|
4606
|
+
archive_id=archive_id,
|
|
4607
|
+
producer_version=producer_version,
|
|
4608
|
+
created_at=created_at,
|
|
4609
|
+
)
|
|
4610
|
+
existing_ids = {c["candidate_id"] for c in candidates}
|
|
4611
|
+
for candidate in plan_candidates:
|
|
4612
|
+
if candidate["candidate_id"] not in existing_ids:
|
|
4613
|
+
existing_ids.add(candidate["candidate_id"])
|
|
4614
|
+
candidates.append(candidate)
|
|
4615
|
+
|
|
4593
4616
|
out = work_dir / "candidates" / "knowledge.json"
|
|
4594
4617
|
out.parent.mkdir(parents=True, exist_ok=True)
|
|
4595
4618
|
out.write_text(
|
|
@@ -70,7 +70,7 @@ SKIP_DIR_NAMES = {
|
|
|
70
70
|
".git",
|
|
71
71
|
}
|
|
72
72
|
SKIP_TOP_NAMES = {"harness-merge", "harness-report"}
|
|
73
|
-
HARNESS_AGENTS = ("claude-code", "codex", "cursor", "codebuddy")
|
|
73
|
+
HARNESS_AGENTS = ("claude-code", "codex", "cursor", "codebuddy", "pi")
|
|
74
74
|
AGENTS_WITH_CUSTOM_AGENTS = frozenset({"claude-code", "codebuddy"})
|
|
75
75
|
|
|
76
76
|
|