hunter-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/LICENSE +21 -0
- package/README.md +17 -0
- package/dist/bin.js +3356 -0
- package/package.json +34 -0
- package/resources/bootstrap-ir/manifest.json +19 -0
- package/resources/bootstrap-ir/skills/harness-apidoc.yaml +24 -0
- package/resources/bootstrap-ir/skills/harness-archive.yaml +24 -0
- package/resources/bootstrap-ir/skills/harness-codebase-map.yaml +24 -0
- package/resources/bootstrap-ir/skills/harness-knowledge-ingest.yaml +24 -0
- package/resources/bootstrap-ir/skills/harness-package.yaml +24 -0
- package/resources/bootstrap-ir/skills/harness-plan.yaml +24 -0
- package/resources/bootstrap-ir/skills/harness-review.yaml +24 -0
- package/resources/bootstrap-ir/skills/harness-run.yaml +24 -0
- package/resources/bootstrap-ir/skills/harness-skill-optimizer.yaml +28 -0
- package/resources/bootstrap-ir/skills/harness-submit.yaml +24 -0
- package/resources/bootstrap-ir/skills/harness-sync.yaml +24 -0
- package/resources/bootstrap-ir/skills/harness-test.yaml +24 -0
- package/resources/bootstrap-ir/templates/claude-code-skill.md +12 -0
- package/resources/harness/general/.harness-build.json +5 -0
- package/resources/harness/general/CONTEXT.md +65 -0
- package/resources/harness/general/README.md +478 -0
- package/resources/harness/general/agents/harness-evaluator.md +96 -0
- package/resources/harness/general/agents/harness-explorer.md +72 -0
- package/resources/harness/general/agents/harness-reviewer.md +69 -0
- package/resources/harness/general/harness-archive/SKILL.md +215 -0
- package/resources/harness/general/harness-archive/checklist.md +52 -0
- package/resources/harness/general/harness-archive/reference.md +103 -0
- package/resources/harness/general/harness-archive/scripts/gen-manifest.ps1 +31 -0
- package/resources/harness/general/harness-archive/templates/render-summary.mjs +171 -0
- package/resources/harness/general/harness-archive/templates/summary-data-template.json +128 -0
- package/resources/harness/general/harness-codebase-map/SKILL.md +112 -0
- package/resources/harness/general/harness-codebase-map/checklist.md +126 -0
- package/resources/harness/general/harness-codebase-map/reference.md +364 -0
- package/resources/harness/general/harness-codebase-map/templates/ARCHITECTURE.md +57 -0
- package/resources/harness/general/harness-codebase-map/templates/CONCERNS.md +49 -0
- package/resources/harness/general/harness-codebase-map/templates/CONVENTIONS.md +57 -0
- package/resources/harness/general/harness-codebase-map/templates/INTEGRATIONS.md +52 -0
- package/resources/harness/general/harness-codebase-map/templates/STACK.md +55 -0
- package/resources/harness/general/harness-codebase-map/templates/STRUCTURE.md +69 -0
- package/resources/harness/general/harness-codebase-map/templates/TESTING.md +64 -0
- package/resources/harness/general/harness-codebase-map/templates/map-manifest.schema.json +73 -0
- package/resources/harness/general/harness-codebase-map/templates/map-summary.md +64 -0
- package/resources/harness/general/harness-knowledge-ingest/SKILL.md +246 -0
- package/resources/harness/general/harness-knowledge-ingest/design.md +842 -0
- package/resources/harness/general/harness-knowledge-ingest/evaluations/harness_knowledge_evaluation.xml +42 -0
- package/resources/harness/general/harness-knowledge-ingest/mcp-config.example.json +10 -0
- package/resources/harness/general/harness-knowledge-ingest/reference.md +309 -0
- package/resources/harness/general/harness-knowledge-ingest/scripts/harness_knowledge.py +4082 -0
- package/resources/harness/general/harness-knowledge-ingest/scripts/harness_knowledge_mcp.py +273 -0
- package/resources/harness/general/harness-knowledge-ingest/tests/fixtures/mcp-eval-project/.harness/archive/2026-01-10-ledger-reconciliation/reports/final/summary-data.json +43 -0
- package/resources/harness/general/harness-knowledge-ingest/tests/fixtures/mcp-eval-project/.harness/archive/2026-02-14-ledger-snapshot-followup/reports/final/summary-data.json +38 -0
- package/resources/harness/general/harness-knowledge-ingest/tests/fixtures/mcp-eval-project/.harness/archive/2026-03-05-webhook-contract/reports/final/summary-data.json +36 -0
- package/resources/harness/general/harness-knowledge-ingest/tests/fixtures/mcp-eval-project/.harness/project.yaml +1 -0
- package/resources/harness/general/harness-knowledge-ingest/tests/test_harness_knowledge.py +1792 -0
- package/resources/harness/general/harness-knowledge-query/SKILL.md +164 -0
- package/resources/harness/general/harness-plan/SKILL.md +127 -0
- package/resources/harness/general/harness-plan/checklist.md +243 -0
- package/resources/harness/general/harness-plan/protocols.md +124 -0
- package/resources/harness/general/harness-plan/reference.md +376 -0
- package/resources/harness/general/harness-review/SKILL.md +156 -0
- package/resources/harness/general/harness-review/checklist.md +124 -0
- package/resources/harness/general/harness-review/protocols.md +68 -0
- package/resources/harness/general/harness-review/reference.md +86 -0
- package/resources/harness/general/harness-run/SKILL.md +132 -0
- package/resources/harness/general/harness-run/checklist.md +259 -0
- package/resources/harness/general/harness-run/protocols.md +78 -0
- package/resources/harness/general/harness-run/reference.md +834 -0
- package/resources/harness/general/harness-submit/SKILL.md +159 -0
- package/resources/harness/general/harness-submit/checklist.md +407 -0
- package/resources/harness/general/harness-submit/reference.md +152 -0
- package/resources/harness/general/harness-sync/SKILL.md +82 -0
- package/resources/harness/general/harness-sync/reference.md +153 -0
- package/resources/harness/general/harness-test/SKILL.md +180 -0
- package/resources/harness/general/harness-test/checklist.md +319 -0
- package/resources/harness/general/harness-test/pitfalls.md +260 -0
- package/resources/harness/general/harness-test/reference.md +791 -0
- package/resources/harness/general/protocols/archive-report-protocol.md +175 -0
- package/resources/harness/general/protocols/evidence-based-reporting-protocol.md +134 -0
- package/resources/harness/general/protocols/ledger-protocol.md +270 -0
- package/resources/harness/general/protocols/powershell-protocol.md +181 -0
- package/resources/harness/general/protocols/report-pipeline-protocol.md +150 -0
- package/resources/harness/general/protocols/sensitive-info-protocol.md +92 -0
- package/resources/harness/general/protocols/state-layout-protocol.md +131 -0
- package/resources/harness/general/protocols/submit-protocol.md +78 -0
- package/resources/harness/general/scripts/harness_archive.py +2319 -0
- package/resources/harness/general/scripts/harness_deploy.py +613 -0
- package/resources/harness/general/scripts/harness_events.py +680 -0
- package/resources/harness/general/scripts/harness_ledger.py +671 -0
- package/resources/harness/general/scripts/harness_preflight.py +780 -0
- package/resources/harness/general/scripts/harness_service.py +1331 -0
- package/resources/harness/java/.harness-build.json +5 -0
- package/resources/harness/java/CONTEXT.md +65 -0
- package/resources/harness/java/README.md +478 -0
- package/resources/harness/java/agents/harness-evaluator.md +96 -0
- package/resources/harness/java/agents/harness-explorer.md +72 -0
- package/resources/harness/java/agents/harness-reviewer.md +69 -0
- package/resources/harness/java/harness-apidoc/SKILL.md +86 -0
- package/resources/harness/java/harness-apidoc/checklist.md +142 -0
- package/resources/harness/java/harness-apidoc/reference.md +233 -0
- package/resources/harness/java/harness-archive/SKILL.md +215 -0
- package/resources/harness/java/harness-archive/checklist.md +52 -0
- package/resources/harness/java/harness-archive/reference.md +103 -0
- package/resources/harness/java/harness-archive/scripts/gen-manifest.ps1 +31 -0
- package/resources/harness/java/harness-archive/templates/render-summary.mjs +171 -0
- package/resources/harness/java/harness-archive/templates/summary-data-template.json +128 -0
- package/resources/harness/java/harness-codebase-map/SKILL.md +112 -0
- package/resources/harness/java/harness-codebase-map/checklist.md +126 -0
- package/resources/harness/java/harness-codebase-map/reference.md +364 -0
- package/resources/harness/java/harness-codebase-map/templates/ARCHITECTURE.md +57 -0
- package/resources/harness/java/harness-codebase-map/templates/CONCERNS.md +49 -0
- package/resources/harness/java/harness-codebase-map/templates/CONVENTIONS.md +57 -0
- package/resources/harness/java/harness-codebase-map/templates/INTEGRATIONS.md +52 -0
- package/resources/harness/java/harness-codebase-map/templates/STACK.md +55 -0
- package/resources/harness/java/harness-codebase-map/templates/STRUCTURE.md +69 -0
- package/resources/harness/java/harness-codebase-map/templates/TESTING.md +64 -0
- package/resources/harness/java/harness-codebase-map/templates/map-manifest.schema.json +73 -0
- package/resources/harness/java/harness-codebase-map/templates/map-summary.md +64 -0
- package/resources/harness/java/harness-knowledge-ingest/SKILL.md +246 -0
- package/resources/harness/java/harness-knowledge-ingest/design.md +842 -0
- package/resources/harness/java/harness-knowledge-ingest/evaluations/harness_knowledge_evaluation.xml +42 -0
- package/resources/harness/java/harness-knowledge-ingest/mcp-config.example.json +10 -0
- package/resources/harness/java/harness-knowledge-ingest/reference.md +309 -0
- package/resources/harness/java/harness-knowledge-ingest/scripts/harness_knowledge.py +4082 -0
- package/resources/harness/java/harness-knowledge-ingest/scripts/harness_knowledge_mcp.py +273 -0
- package/resources/harness/java/harness-knowledge-ingest/tests/fixtures/mcp-eval-project/.harness/archive/2026-01-10-ledger-reconciliation/reports/final/summary-data.json +43 -0
- package/resources/harness/java/harness-knowledge-ingest/tests/fixtures/mcp-eval-project/.harness/archive/2026-02-14-ledger-snapshot-followup/reports/final/summary-data.json +38 -0
- package/resources/harness/java/harness-knowledge-ingest/tests/fixtures/mcp-eval-project/.harness/archive/2026-03-05-webhook-contract/reports/final/summary-data.json +36 -0
- package/resources/harness/java/harness-knowledge-ingest/tests/fixtures/mcp-eval-project/.harness/project.yaml +1 -0
- package/resources/harness/java/harness-knowledge-ingest/tests/test_harness_knowledge.py +1792 -0
- package/resources/harness/java/harness-knowledge-query/SKILL.md +164 -0
- package/resources/harness/java/harness-package/SKILL.md +87 -0
- package/resources/harness/java/harness-package/checklist.md +322 -0
- package/resources/harness/java/harness-package/reference.md +210 -0
- package/resources/harness/java/harness-plan/SKILL.md +127 -0
- package/resources/harness/java/harness-plan/checklist.md +243 -0
- package/resources/harness/java/harness-plan/protocols.md +124 -0
- package/resources/harness/java/harness-plan/reference.md +376 -0
- package/resources/harness/java/harness-review/SKILL.md +156 -0
- package/resources/harness/java/harness-review/checklist.md +124 -0
- package/resources/harness/java/harness-review/protocols.md +68 -0
- package/resources/harness/java/harness-review/reference.md +86 -0
- package/resources/harness/java/harness-run/SKILL.md +148 -0
- package/resources/harness/java/harness-run/checklist.md +250 -0
- package/resources/harness/java/harness-run/protocols.md +78 -0
- package/resources/harness/java/harness-run/reference.md +814 -0
- package/resources/harness/java/harness-submit/SKILL.md +166 -0
- package/resources/harness/java/harness-submit/checklist.md +407 -0
- package/resources/harness/java/harness-submit/reference.md +152 -0
- package/resources/harness/java/harness-sync/SKILL.md +82 -0
- package/resources/harness/java/harness-sync/reference.md +153 -0
- package/resources/harness/java/harness-test/SKILL.md +192 -0
- package/resources/harness/java/harness-test/checklist.md +317 -0
- package/resources/harness/java/harness-test/pitfalls-java.md +16 -0
- package/resources/harness/java/harness-test/pitfalls.md +260 -0
- package/resources/harness/java/harness-test/reference.md +788 -0
- package/resources/harness/java/protocols/archive-report-protocol.md +175 -0
- package/resources/harness/java/protocols/evidence-based-reporting-protocol.md +134 -0
- package/resources/harness/java/protocols/ledger-protocol.md +270 -0
- package/resources/harness/java/protocols/powershell-protocol.md +181 -0
- package/resources/harness/java/protocols/report-pipeline-protocol.md +150 -0
- package/resources/harness/java/protocols/sensitive-info-protocol.md +92 -0
- package/resources/harness/java/protocols/state-layout-protocol.md +131 -0
- package/resources/harness/java/protocols/submit-protocol.md +78 -0
- package/resources/harness/java/scripts/harness_archive.py +2319 -0
- package/resources/harness/java/scripts/harness_deploy.py +613 -0
- package/resources/harness/java/scripts/harness_events.py +680 -0
- package/resources/harness/java/scripts/harness_ledger.py +671 -0
- package/resources/harness/java/scripts/harness_preflight.py +780 -0
- package/resources/harness/java/scripts/harness_service.py +1331 -0
- package/resources/harness/manifests/general.json +296 -0
- package/resources/harness/manifests/java.json +324 -0
- package/resources/manifest.json +19 -0
- package/resources/skills/harness-apidoc/SKILL.md +50 -0
- package/resources/skills/harness-archive/SKILL.md +48 -0
- package/resources/skills/harness-codebase-map/SKILL.md +53 -0
- package/resources/skills/harness-knowledge-ingest/SKILL.md +48 -0
- package/resources/skills/harness-package/SKILL.md +48 -0
- package/resources/skills/harness-plan/SKILL.md +51 -0
- package/resources/skills/harness-review/SKILL.md +50 -0
- package/resources/skills/harness-run/SKILL.md +48 -0
- package/resources/skills/harness-skill-optimizer/SKILL.md +54 -0
- package/resources/skills/harness-submit/SKILL.md +47 -0
- package/resources/skills/harness-sync/SKILL.md +48 -0
- package/resources/skills/harness-test/SKILL.md +50 -0
package/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "hunter-harness",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Local-first, server-governed agent harness",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=24.0.0"
|
|
9
|
+
},
|
|
10
|
+
"bin": {
|
|
11
|
+
"hunter-harness": "./dist/bin.js"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist/bin.js",
|
|
15
|
+
"resources"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "tsc -p tsconfig.json && npm run bundle && npm run copy-resources",
|
|
19
|
+
"bundle": "esbuild src/bin.ts --bundle --platform=node --format=esm --target=node24 --external:commander --external:yaml --external:zod --outfile=dist/bin.js",
|
|
20
|
+
"copy-resources": "node scripts/copy-resources.mjs",
|
|
21
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
22
|
+
"prepack": "node ../../scripts/sync-harness.mjs && npm run build"
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"commander": "15.0.0",
|
|
26
|
+
"yaml": "2.9.0",
|
|
27
|
+
"zod": "4.4.3"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@hunter-harness/contracts": "*",
|
|
31
|
+
"@hunter-harness/core": "*",
|
|
32
|
+
"esbuild": "^0.25.12"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": 1,
|
|
3
|
+
"registry_version": "bootstrap-2026.06.20",
|
|
4
|
+
"compiler_version": "1.0.0",
|
|
5
|
+
"skills": [
|
|
6
|
+
"harness-sync",
|
|
7
|
+
"harness-plan",
|
|
8
|
+
"harness-run",
|
|
9
|
+
"harness-test",
|
|
10
|
+
"harness-review",
|
|
11
|
+
"harness-submit",
|
|
12
|
+
"harness-archive",
|
|
13
|
+
"harness-knowledge-ingest",
|
|
14
|
+
"harness-skill-optimizer",
|
|
15
|
+
"harness-codebase-map",
|
|
16
|
+
"harness-apidoc",
|
|
17
|
+
"harness-package"
|
|
18
|
+
]
|
|
19
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
name: harness-apidoc
|
|
2
|
+
kind: workflow
|
|
3
|
+
description: Analyze API changes and produce evidence-based documentation impact updates.
|
|
4
|
+
triggers: [update API documentation, inspect API compatibility]
|
|
5
|
+
inputs: [change_ref, api_contract]
|
|
6
|
+
outputs: [api_impact_report, documentation_updates]
|
|
7
|
+
forbidden_actions: [invent_api_behavior, hide_breaking_changes, publish_without_review]
|
|
8
|
+
required_context: [AGENTS.md, .harness/context-index.json, .harness/knowledge/api]
|
|
9
|
+
profiles:
|
|
10
|
+
general: { enabled: false }
|
|
11
|
+
java: { enabled: true }
|
|
12
|
+
adapters:
|
|
13
|
+
claude-code: { enabled: true }
|
|
14
|
+
codex: { enabled: true }
|
|
15
|
+
cursor: { enabled: true }
|
|
16
|
+
generic: { enabled: true }
|
|
17
|
+
mcp: { enabled: true }
|
|
18
|
+
version: 1.0.0
|
|
19
|
+
instructions:
|
|
20
|
+
- Compare implementation and declared API contracts.
|
|
21
|
+
- Classify compatibility and documentation impact.
|
|
22
|
+
- Update only evidence-supported documentation.
|
|
23
|
+
allowed_capabilities: [read, search, write_api_documentation, run_tests]
|
|
24
|
+
source_provenance: user-provided validated Java API documentation workflow adapted to Hunter Harness
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
name: harness-archive
|
|
2
|
+
kind: workflow
|
|
3
|
+
description: Archive completed change evidence and extract unpromoted candidate Knowledge.
|
|
4
|
+
triggers: [archive completed change, extract reusable knowledge]
|
|
5
|
+
inputs: [change_documents, verification_evidence]
|
|
6
|
+
outputs: [archive_summary, candidate_knowledge]
|
|
7
|
+
forbidden_actions: [auto_promote_candidate_knowledge, discard_evidence, expose_sensitive_data]
|
|
8
|
+
required_context: [AGENTS.md, .harness/context-index.json]
|
|
9
|
+
profiles:
|
|
10
|
+
general: { enabled: true }
|
|
11
|
+
java: { enabled: true }
|
|
12
|
+
adapters:
|
|
13
|
+
claude-code: { enabled: true }
|
|
14
|
+
codex: { enabled: true }
|
|
15
|
+
cursor: { enabled: true }
|
|
16
|
+
generic: { enabled: true }
|
|
17
|
+
mcp: { enabled: true }
|
|
18
|
+
version: 1.0.0
|
|
19
|
+
instructions:
|
|
20
|
+
- Preserve the final summary and execution evidence.
|
|
21
|
+
- Extract reusable facts into the candidate area with source references.
|
|
22
|
+
- Never promote candidates to active Knowledge automatically.
|
|
23
|
+
allowed_capabilities: [read, write_harness_archive, write_candidate_knowledge]
|
|
24
|
+
source_provenance: user-provided validated archive workflow adapted to Hunter Harness
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
name: harness-codebase-map
|
|
2
|
+
kind: workflow
|
|
3
|
+
description: Generate seven evidence-based codebase-map documents under the Harness workspace.
|
|
4
|
+
triggers: [map the codebase, refresh codebase map]
|
|
5
|
+
inputs: [project_root, optional_paths]
|
|
6
|
+
outputs: [stack_map, integration_map, architecture_map, structure_map, convention_map, testing_map, concern_map]
|
|
7
|
+
forbidden_actions: [copy_source_code_wholesale, manage_codegraph, automatic_execution_from_sync]
|
|
8
|
+
required_context: [AGENTS.md, .harness/context-index.json]
|
|
9
|
+
profiles:
|
|
10
|
+
general: { enabled: true }
|
|
11
|
+
java: { enabled: true }
|
|
12
|
+
adapters:
|
|
13
|
+
claude-code: { enabled: true }
|
|
14
|
+
codex: { enabled: true }
|
|
15
|
+
cursor: { enabled: true }
|
|
16
|
+
generic: { enabled: true }
|
|
17
|
+
mcp: { enabled: true }
|
|
18
|
+
version: 1.0.0
|
|
19
|
+
instructions:
|
|
20
|
+
- Analyze the requested scope using isolated mapper focuses.
|
|
21
|
+
- Write STACK, INTEGRATIONS, ARCHITECTURE, STRUCTURE, CONVENTIONS, TESTING, and CONCERNS.
|
|
22
|
+
- Record evidence, scan scope, time, and source revision without embedding source files.
|
|
23
|
+
allowed_capabilities: [read, search, write_codebase_map]
|
|
24
|
+
source_provenance: user-provided validated GSD map workflow and templates adapted to Hunter Harness
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
name: harness-knowledge-ingest
|
|
2
|
+
kind: governance
|
|
3
|
+
description: Validate, deduplicate, index, and propose project Knowledge without bypassing review.
|
|
4
|
+
triggers: [ingest knowledge, rebuild knowledge index]
|
|
5
|
+
inputs: [knowledge_entries, candidate_entries]
|
|
6
|
+
outputs: [knowledge_index, validation_report]
|
|
7
|
+
forbidden_actions: [auto_promote_candidate_knowledge, include_project_local_by_default, erase_conflicts]
|
|
8
|
+
required_context: [AGENTS.md, .harness/knowledge/index.json]
|
|
9
|
+
profiles:
|
|
10
|
+
general: { enabled: true }
|
|
11
|
+
java: { enabled: true }
|
|
12
|
+
adapters:
|
|
13
|
+
claude-code: { enabled: true }
|
|
14
|
+
codex: { enabled: true }
|
|
15
|
+
cursor: { enabled: true }
|
|
16
|
+
generic: { enabled: true }
|
|
17
|
+
mcp: { enabled: true }
|
|
18
|
+
version: 1.0.0
|
|
19
|
+
instructions:
|
|
20
|
+
- Validate frontmatter and lifecycle relationships.
|
|
21
|
+
- Detect duplicate IDs, duplicate content, and conflicting active facts.
|
|
22
|
+
- Keep project-local entries excluded unless explicitly selected.
|
|
23
|
+
allowed_capabilities: [read, search, write_knowledge_index, write_candidate_knowledge]
|
|
24
|
+
source_provenance: Hunter Harness Knowledge governance contract
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
name: harness-package
|
|
2
|
+
kind: workflow
|
|
3
|
+
description: Validate and prepare a reproducible project package without publishing it.
|
|
4
|
+
triggers: [prepare package, validate package output]
|
|
5
|
+
inputs: [project_root, build_configuration]
|
|
6
|
+
outputs: [package_report, package_artifacts]
|
|
7
|
+
forbidden_actions: [publish_artifact, expose_secrets, claim_unverified_build]
|
|
8
|
+
required_context: [AGENTS.md, .harness/context-index.json]
|
|
9
|
+
profiles:
|
|
10
|
+
general: { enabled: false }
|
|
11
|
+
java: { enabled: true }
|
|
12
|
+
adapters:
|
|
13
|
+
claude-code: { enabled: true }
|
|
14
|
+
codex: { enabled: true }
|
|
15
|
+
cursor: { enabled: true }
|
|
16
|
+
generic: { enabled: true }
|
|
17
|
+
mcp: { enabled: true }
|
|
18
|
+
version: 1.0.0
|
|
19
|
+
instructions:
|
|
20
|
+
- Validate the configured build and its required tests.
|
|
21
|
+
- Record exact artifact hashes and build evidence.
|
|
22
|
+
- Do not publish or upload package artifacts.
|
|
23
|
+
allowed_capabilities: [read, run_builds, run_tests, write_package_reports]
|
|
24
|
+
source_provenance: user-provided validated Java packaging workflow adapted to Hunter Harness
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
name: harness-plan
|
|
2
|
+
kind: workflow
|
|
3
|
+
description: Produce evidence-based designs, implementation plans, impact analysis, and test scenarios.
|
|
4
|
+
triggers: [plan a change, design an implementation]
|
|
5
|
+
inputs: [requirements, context_index]
|
|
6
|
+
outputs: [design, implementation_plan, test_scenarios]
|
|
7
|
+
forbidden_actions: [invent_evidence, expose_sensitive_data, automatic_source_control_write]
|
|
8
|
+
required_context: [AGENTS.md, .harness/context-index.json, .harness/knowledge/index.json]
|
|
9
|
+
profiles:
|
|
10
|
+
general: { enabled: true }
|
|
11
|
+
java: { enabled: true }
|
|
12
|
+
adapters:
|
|
13
|
+
claude-code: { enabled: true }
|
|
14
|
+
codex: { enabled: true }
|
|
15
|
+
cursor: { enabled: true }
|
|
16
|
+
generic: { enabled: true }
|
|
17
|
+
mcp: { enabled: true }
|
|
18
|
+
version: 1.0.0
|
|
19
|
+
instructions:
|
|
20
|
+
- Inspect relevant Knowledge and codebase-map evidence before proposing changes.
|
|
21
|
+
- Separate assumptions from verified facts.
|
|
22
|
+
- Define exact files, tests, risks, and rollback points.
|
|
23
|
+
allowed_capabilities: [read, search, write_change_documents]
|
|
24
|
+
source_provenance: user-provided validated planning workflow adapted to Hunter Harness
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
name: harness-review
|
|
2
|
+
kind: governance
|
|
3
|
+
description: Review changes across correctness, security, compatibility, tests, maintainability, and evidence.
|
|
4
|
+
triggers: [review a change, inspect implementation quality]
|
|
5
|
+
inputs: [change_ref, context_index]
|
|
6
|
+
outputs: [review_report, evidence_summary]
|
|
7
|
+
forbidden_actions: [invent_findings, claim_unverified_success, mutate_reviewed_code_without_request]
|
|
8
|
+
required_context: [AGENTS.md, .harness/context-index.json, .harness/knowledge/index.json]
|
|
9
|
+
profiles:
|
|
10
|
+
general: { enabled: true }
|
|
11
|
+
java: { enabled: true }
|
|
12
|
+
adapters:
|
|
13
|
+
claude-code: { enabled: true }
|
|
14
|
+
codex: { enabled: true }
|
|
15
|
+
cursor: { enabled: true }
|
|
16
|
+
generic: { enabled: true }
|
|
17
|
+
mcp: { enabled: true }
|
|
18
|
+
version: 1.0.0
|
|
19
|
+
instructions:
|
|
20
|
+
- Inspect the actual diff and relevant project evidence.
|
|
21
|
+
- Rank actionable findings by impact and cite precise locations.
|
|
22
|
+
- Distinguish verified defects from risks and questions.
|
|
23
|
+
allowed_capabilities: [read, search, run_tests, write_review_reports]
|
|
24
|
+
source_provenance: user-provided validated six-dimension review workflow adapted to Hunter Harness
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
name: harness-run
|
|
2
|
+
kind: workflow
|
|
3
|
+
description: Execute an approved implementation plan with test-first evidence and an execution log.
|
|
4
|
+
triggers: [implement the plan, run approved tasks]
|
|
5
|
+
inputs: [implementation_plan, test_scenarios]
|
|
6
|
+
outputs: [implementation_changes, execution_log]
|
|
7
|
+
forbidden_actions: [skip_red_green_verification, claim_unverified_success, automatic_source_control_write]
|
|
8
|
+
required_context: [AGENTS.md, .harness/context-index.json]
|
|
9
|
+
profiles:
|
|
10
|
+
general: { enabled: true }
|
|
11
|
+
java: { enabled: true }
|
|
12
|
+
adapters:
|
|
13
|
+
claude-code: { enabled: true }
|
|
14
|
+
codex: { enabled: true }
|
|
15
|
+
cursor: { enabled: true }
|
|
16
|
+
generic: { enabled: true }
|
|
17
|
+
mcp: { enabled: true }
|
|
18
|
+
version: 1.0.0
|
|
19
|
+
instructions:
|
|
20
|
+
- Execute one bounded task at a time.
|
|
21
|
+
- Record real command output and distinguish it from static inspection.
|
|
22
|
+
- Stop on unsafe or unexplained failures.
|
|
23
|
+
allowed_capabilities: [read, search, write_project_files, run_tests]
|
|
24
|
+
source_provenance: user-provided validated execution workflow adapted to Hunter Harness
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
name: harness-skill-optimizer
|
|
2
|
+
kind: migration
|
|
3
|
+
description: Create, optimize, and migrate platform-neutral Skill IR with adapter-safe outputs.
|
|
4
|
+
triggers: [create a skill, optimize a skill, migrate an agent skill]
|
|
5
|
+
inputs: [skill_source, target_profiles, target_adapters]
|
|
6
|
+
outputs: [skill_ir, validation_report, adapter_preview]
|
|
7
|
+
forbidden_actions: [publish_canonical_skill, automatic_proposal_push, broaden_capabilities, automatic_source_control_write]
|
|
8
|
+
required_context: [AGENTS.md, .harness/context-index.json]
|
|
9
|
+
profiles:
|
|
10
|
+
general: { enabled: true }
|
|
11
|
+
java: { enabled: true }
|
|
12
|
+
node: { enabled: true }
|
|
13
|
+
python: { enabled: true }
|
|
14
|
+
docs: { enabled: true }
|
|
15
|
+
personal-automation: { enabled: true }
|
|
16
|
+
adapters:
|
|
17
|
+
claude-code: { enabled: true }
|
|
18
|
+
codex: { enabled: true }
|
|
19
|
+
cursor: { enabled: true }
|
|
20
|
+
generic: { enabled: true }
|
|
21
|
+
mcp: { enabled: true }
|
|
22
|
+
version: 1.0.0
|
|
23
|
+
instructions:
|
|
24
|
+
- Convert source workflows and constraints into canonical Skill IR.
|
|
25
|
+
- Validate triggers, inputs, outputs, forbidden actions, and required context.
|
|
26
|
+
- Generate previews but never publish or push automatically.
|
|
27
|
+
allowed_capabilities: [read, search, write_skill_ir, validate_adapter_outputs]
|
|
28
|
+
source_provenance: user-provided validated skill optimizer adapted for cross-agent governance
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
name: harness-submit
|
|
2
|
+
kind: workflow
|
|
3
|
+
description: Prepare a submission summary, suggested message, and verification checklist without changing source control.
|
|
4
|
+
triggers: [prepare submission, summarize completed change]
|
|
5
|
+
inputs: [change_ref, verification_evidence]
|
|
6
|
+
outputs: [submission_summary, suggested_message, submission_checklist]
|
|
7
|
+
forbidden_actions: [source_control_write_without_explicit_confirmation, publish_without_review]
|
|
8
|
+
required_context: [AGENTS.md, .harness/context-index.json]
|
|
9
|
+
profiles:
|
|
10
|
+
general: { enabled: true }
|
|
11
|
+
java: { enabled: true }
|
|
12
|
+
adapters:
|
|
13
|
+
claude-code: { enabled: true }
|
|
14
|
+
codex: { enabled: true }
|
|
15
|
+
cursor: { enabled: true }
|
|
16
|
+
generic: { enabled: true }
|
|
17
|
+
mcp: { enabled: true }
|
|
18
|
+
version: 1.0.0
|
|
19
|
+
instructions:
|
|
20
|
+
- Summarize verified changes and remaining risks.
|
|
21
|
+
- Produce a suggested message and final checklist only.
|
|
22
|
+
- Require explicit user confirmation before any source-control mutation.
|
|
23
|
+
allowed_capabilities: [read, search, write_submission_documents]
|
|
24
|
+
source_provenance: user-provided validated submission workflow adapted to Hunter Harness
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
name: harness-sync
|
|
2
|
+
kind: workflow
|
|
3
|
+
description: Check Harness context, Knowledge indexes, managed blocks, rules, and codebase-map freshness.
|
|
4
|
+
triggers: [sync harness context, check project context]
|
|
5
|
+
inputs: [project_root, context_index]
|
|
6
|
+
outputs: [sync_report, refresh_recommendations]
|
|
7
|
+
forbidden_actions: [automatic_codebase_map_execution, manage_codegraph, install_external_tools]
|
|
8
|
+
required_context: [AGENTS.md, .harness/context-index.json]
|
|
9
|
+
profiles:
|
|
10
|
+
general: { enabled: true }
|
|
11
|
+
java: { enabled: true }
|
|
12
|
+
adapters:
|
|
13
|
+
claude-code: { enabled: true }
|
|
14
|
+
codex: { enabled: true }
|
|
15
|
+
cursor: { enabled: true }
|
|
16
|
+
generic: { enabled: true }
|
|
17
|
+
mcp: { enabled: true }
|
|
18
|
+
version: 1.0.0
|
|
19
|
+
instructions:
|
|
20
|
+
- Validate managed blocks and local Harness structure.
|
|
21
|
+
- Rebuild deterministic indexes when their sources changed.
|
|
22
|
+
- Recommend codebase-map refresh when stale, but wait for explicit user confirmation.
|
|
23
|
+
allowed_capabilities: [read, search, write_harness_metadata]
|
|
24
|
+
source_provenance: user-provided validated Java workflow adapted to Hunter Harness
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
name: harness-test
|
|
2
|
+
kind: workflow
|
|
3
|
+
description: Validate changes with real tests, explicit degradation reporting, and reproducible evidence.
|
|
4
|
+
triggers: [test the change, validate behavior]
|
|
5
|
+
inputs: [test_scenarios, change_ref]
|
|
6
|
+
outputs: [test_report, evidence_summary]
|
|
7
|
+
forbidden_actions: [claim_unrun_tests_pass, hide_test_failures, confuse_static_checks_with_tests]
|
|
8
|
+
required_context: [AGENTS.md, .harness/context-index.json, .harness/knowledge/pitfalls]
|
|
9
|
+
profiles:
|
|
10
|
+
general: { enabled: true }
|
|
11
|
+
java: { enabled: true }
|
|
12
|
+
adapters:
|
|
13
|
+
claude-code: { enabled: true }
|
|
14
|
+
codex: { enabled: true }
|
|
15
|
+
cursor: { enabled: true }
|
|
16
|
+
generic: { enabled: true }
|
|
17
|
+
mcp: { enabled: true }
|
|
18
|
+
version: 1.0.0
|
|
19
|
+
instructions:
|
|
20
|
+
- Derive test cases from requirements and changed behavior.
|
|
21
|
+
- Run the narrow test first, then the complete relevant suite.
|
|
22
|
+
- Report skipped infrastructure and degraded validation explicitly.
|
|
23
|
+
allowed_capabilities: [read, search, run_tests, write_test_reports]
|
|
24
|
+
source_provenance: user-provided validated test workflow and pitfalls adapted to Hunter Harness
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# Harness Skills
|
|
2
|
+
|
|
3
|
+
Harness Skills 是一组围绕本地变更治理的 agent 工作流。它把外部方法论吸收为原生协议,同时保持 `.harness/changes/<change-name>/` 作为变更过程的唯一真相源。
|
|
4
|
+
|
|
5
|
+
## Language
|
|
6
|
+
|
|
7
|
+
**原生协议**:
|
|
8
|
+
Harness skill 内部直接执行的流程约束,作为正式行为契约。原生协议可以吸收外部方法论,但不依赖外部 skill 是否安装。
|
|
9
|
+
_Avoid_: Adapter Mode, 外部 skill 调用
|
|
10
|
+
|
|
11
|
+
**外部方法论来源**:
|
|
12
|
+
为 harness 规则提供启发的外部 skill 或流程,例如 brainstorming、grill-me、writing-plans、test-driven-development、receiving-code-review。它们是设计来源,不是 harness 的运行时依赖。
|
|
13
|
+
_Avoid_: 外部依赖, 必需插件
|
|
14
|
+
|
|
15
|
+
**人工参考**:
|
|
16
|
+
不进入正式流程状态机、只供人或后续规则维护者对标的方法、草稿或外部技能。人工参考缺失不产生降级项;若被采用,应先转写为 harness 原生协议或正式产物。
|
|
17
|
+
_Avoid_: 运行时增强, 降级分支, 硬依赖
|
|
18
|
+
|
|
19
|
+
**变更簇**:
|
|
20
|
+
围绕同一业务行为或同一验证目标的一组任务。变更簇是 `/harness-run` 执行 RED→GREEN→REFACTOR 的基本单位。
|
|
21
|
+
_Avoid_: 小任务, 单步任务
|
|
22
|
+
|
|
23
|
+
**自适应执行参考**:
|
|
24
|
+
`implementation-detail.md` 的定位。它按变更复杂度提供足够执行上下文,简单变更保持简洁,高风险变更写清顺序、接口、数据、风险和测试策略。
|
|
25
|
+
_Avoid_: 超细步骤文档, 可选详细计划
|
|
26
|
+
|
|
27
|
+
**Fixback**:
|
|
28
|
+
由 review 阶段把 RED/YELLOW 问题转成的结构化修复反馈。Fixback 指向问题位置、推荐修复和验证方式,但默认不自动阻塞 submit。
|
|
29
|
+
_Avoid_: 修复任务清单, blocking review
|
|
30
|
+
|
|
31
|
+
**事件唯一源**:
|
|
32
|
+
`events.ndjson` 是变更执行过程的唯一实时记录位置,由 `harness_events.py append` 写入。`execution-log.md` 是它的自动渲染产物,禁止手工编辑。
|
|
33
|
+
_Avoid_: 日志双写, 手写执行日志
|
|
34
|
+
|
|
35
|
+
**归档终结(finalize)**:
|
|
36
|
+
`harness_archive.py finalize` 在单进程内完成 manifest、移动、collect、渲染、校验、比对、删除原目录的完整归档动作。取代旧的 collect/enrich/validate 三步编排;enrich 不再是有效概念。
|
|
37
|
+
_Avoid_: enrich, 多步归档编排
|
|
38
|
+
|
|
39
|
+
**知识裁决(judge)**:
|
|
40
|
+
归档收尾时对知识条目的处置流程:脚本规则先消化机械部分(去重、时间序 supersede、stale 重验),模型批量裁决剩余的真语义冲突与 promote,写入可回滚的 decision log。人工退出常规循环。
|
|
41
|
+
_Avoid_: 人工 promote 积压, candidate 待办
|
|
42
|
+
|
|
43
|
+
**构建档案(build-profile)**:
|
|
44
|
+
`.harness/config/build-profile.json`,项目级持久化的机读构建事实:可用命令模板、工具绝对路径、已知预存错误、服务启动模板。preflight 只做秒级校验,新坑由脚本回写。项目专属硬编码归此文件,不进 skill 文本。
|
|
45
|
+
_Avoid_: 每次重新探测, skill 内硬编码项目参数
|
|
46
|
+
|
|
47
|
+
**验证指纹(inputsHash)**:
|
|
48
|
+
一项验证(compile/install/unitTest/apiTest)所依赖源文件集合的内容哈希。指纹一致且证据完整才允许 🔁REUSED;无法证明即保守重跑。
|
|
49
|
+
_Avoid_: 仅凭 diffHash 复用, 无证据跳过
|
|
50
|
+
|
|
51
|
+
**服务会话**:
|
|
52
|
+
`runtime/service-session.json` 记录的 AI 启动服务生命周期。指纹匹配静默复用、不匹配自动重启、归档收尾统一停止;只有用户自启服务占端口才询问。
|
|
53
|
+
_Avoid_: 每轮测试后必杀服务
|
|
54
|
+
|
|
55
|
+
**交互白名单**:
|
|
56
|
+
每个 skill 显式声明的允许 AskUserQuestion 场景清单。白名单外一律取默认值并记 decision 事件。
|
|
57
|
+
_Avoid_: 逐决策点询问
|
|
58
|
+
|
|
59
|
+
**部署合成**:
|
|
60
|
+
`harness_deploy.py build` 把通用核心 + shared 片段 + overlay 合成为自包含 SKILL.md 后部署。Vault 源头 DRY,运行时单文件。
|
|
61
|
+
_Avoid_: 运行时跨文件拼规则, fork 维护
|
|
62
|
+
|
|
63
|
+
**Java overlay**:
|
|
64
|
+
`overlays/java/` 中只含"任何 Java 项目通用"的差异段落与独有 skill(apidoc/package)。项目专属值写目标项目的 build-profile。
|
|
65
|
+
_Avoid_: Java fork, UDP 硬编码进 overlay
|