coding-agent-harness 1.0.5 → 1.0.6
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/CONTRIBUTING.md +2 -2
- package/README.md +63 -3
- package/README.zh-CN.md +52 -3
- package/SKILL.md +43 -43
- package/dist/build-dist.mjs +189 -0
- package/dist/check-dist-observation.mjs +428 -0
- package/dist/check-harness.mjs +489 -0
- package/dist/check-import-graph.mjs +511 -0
- package/dist/check-runtime-emit.mjs +304 -0
- package/dist/check-type-boundaries.mjs +139 -0
- package/dist/commands/dashboard-command.mjs +80 -0
- package/dist/commands/migration-command.mjs +152 -0
- package/dist/commands/preset-command.mjs +91 -0
- package/dist/commands/task-command.mjs +324 -0
- package/dist/harness.mjs +304 -0
- package/dist/lib/capability-registry.mjs +643 -0
- package/dist/lib/check-module-parallel.mjs +227 -0
- package/dist/lib/check-profiles.mjs +414 -0
- package/dist/lib/check-task-contracts.mjs +54 -0
- package/dist/lib/core-shared.mjs +254 -0
- package/dist/lib/dashboard-data.mjs +608 -0
- package/dist/lib/dashboard-workbench.mjs +334 -0
- package/dist/lib/dashboard-writer.mjs +200 -0
- package/dist/lib/git-status-summary.mjs +45 -0
- package/dist/lib/governance-index-generator.mjs +236 -0
- package/dist/lib/governance-sync.mjs +617 -0
- package/dist/lib/governance-table-boundary.mjs +161 -0
- package/{scripts → dist}/lib/harness-core.mjs +2 -0
- package/dist/lib/harness-paths.mjs +338 -0
- package/dist/lib/lesson-maintenance.mjs +139 -0
- package/dist/lib/markdown-utils.mjs +193 -0
- package/dist/lib/migration-planner.mjs +439 -0
- package/dist/lib/migration-support.mjs +317 -0
- package/dist/lib/phase-kind.mjs +46 -0
- package/dist/lib/preset-audit-contracts.mjs +40 -0
- package/dist/lib/preset-engine.mjs +516 -0
- package/dist/lib/preset-registry.mjs +831 -0
- package/dist/lib/preset-resource-contracts.mjs +83 -0
- package/dist/lib/review-confirm-git-gate.mjs +244 -0
- package/dist/lib/status-builder.mjs +87 -0
- package/{scripts → dist}/lib/status-dashboard-renderer.mjs +44 -46
- package/dist/lib/structure-migration.mjs +404 -0
- package/dist/lib/subagent-authorization-audit.mjs +198 -0
- package/dist/lib/task-audit-metadata.mjs +376 -0
- package/dist/lib/task-audit-migration.mjs +355 -0
- package/dist/lib/task-completion-consistency.mjs +29 -0
- package/dist/lib/task-index.mjs +133 -0
- package/dist/lib/task-lesson-candidates.mjs +239 -0
- package/dist/lib/task-lesson-sedimentation.mjs +300 -0
- package/dist/lib/task-lifecycle/create-task-helpers.mjs +84 -0
- package/dist/lib/task-lifecycle/phase-sync.mjs +82 -0
- package/dist/lib/task-lifecycle/review-confirm.mjs +93 -0
- package/dist/lib/task-lifecycle/review-gates.mjs +62 -0
- package/dist/lib/task-lifecycle/review-submission.mjs +52 -0
- package/dist/lib/task-lifecycle/scaffold-provenance.mjs +54 -0
- package/dist/lib/task-lifecycle/template-files.mjs +52 -0
- package/dist/lib/task-lifecycle/text-utils.mjs +26 -0
- package/dist/lib/task-lifecycle.mjs +611 -0
- package/dist/lib/task-metadata.mjs +116 -0
- package/dist/lib/task-review-model.mjs +474 -0
- package/dist/lib/task-scanner.mjs +439 -0
- package/dist/lib/task-tombstone-commands.mjs +125 -0
- package/dist/postinstall.mjs +14 -0
- package/dist/run-built-tests.mjs +84 -0
- package/docs-release/README.md +1 -0
- package/docs-release/architecture/overview.md +12 -12
- package/docs-release/architecture/overview.zh-CN.md +12 -12
- package/docs-release/architecture/system-explainer/01-system-overview.md +15 -14
- package/docs-release/architecture/system-explainer/02-module-dependency.md +8 -8
- package/docs-release/architecture/system-explainer/03-task-lifecycle.md +3 -3
- package/docs-release/architecture/system-explainer/04-check-and-governance.md +9 -7
- package/docs-release/architecture/system-explainer/05-data-flow.md +5 -5
- package/docs-release/architecture/system-explainer/06-preset-and-migration.md +1 -4
- package/docs-release/architecture/system-explainer/en-US/01-system-overview.md +15 -14
- package/docs-release/architecture/system-explainer/en-US/02-module-dependency.md +8 -8
- package/docs-release/architecture/system-explainer/en-US/03-task-lifecycle.md +3 -3
- package/docs-release/architecture/system-explainer/en-US/04-check-and-governance.md +10 -8
- package/docs-release/architecture/system-explainer/en-US/05-data-flow.md +5 -5
- package/docs-release/architecture/system-explainer/en-US/06-preset-and-migration.md +1 -4
- package/docs-release/guides/agent-installation.en-US.md +14 -8
- package/docs-release/guides/agent-installation.md +14 -8
- package/docs-release/guides/contributing.md +3 -3
- package/docs-release/guides/contributing.zh-CN.md +3 -3
- package/docs-release/guides/document-audience-and-surfaces.en-US.md +10 -10
- package/docs-release/guides/document-audience-and-surfaces.md +10 -10
- package/docs-release/guides/legacy-migration-agent-prompt.md +25 -2
- package/docs-release/guides/legacy-migration-agent-prompt.zh-CN.md +25 -2
- package/docs-release/guides/migration-playbook.en-US.md +63 -1
- package/docs-release/guides/migration-playbook.md +59 -1
- package/docs-release/guides/parent-control-repository-pattern.en-US.md +25 -25
- package/docs-release/guides/parent-control-repository-pattern.md +25 -25
- package/docs-release/guides/preset-development.md +2 -2
- package/docs-release/guides/repository-operating-models.en-US.md +21 -21
- package/docs-release/guides/repository-operating-models.md +21 -21
- package/docs-release/guides/task-state-machine.en-US.md +5 -5
- package/docs-release/guides/task-state-machine.md +5 -5
- package/docs-release/guides/typescript-runtime-migration-closeout.md +96 -0
- package/examples/minimal-project/AGENTS.md +2 -2
- package/examples/minimal-project/coding-agent-harness/harness.yaml +14 -0
- package/examples/minimal-project/coding-agent-harness/planning/tasks/demo-task/progress.md +11 -0
- package/examples/minimal-project/{docs/09-PLANNING/TASKS → coding-agent-harness/planning/tasks}/demo-task/review.md +1 -1
- package/package.json +20 -12
- package/presets/legacy-migration/preset.yaml +5 -5
- package/presets/legacy-migration/templates/execution_strategy.append.md +1 -1
- package/presets/lesson-sedimentation/preset.yaml +3 -3
- package/presets/module/preset.yaml +2 -2
- package/presets/module/templates/execution_strategy.append.md +1 -1
- package/presets/module/templates/task_plan.append.md +3 -3
- package/presets/standard-task/preset.yaml +2 -2
- package/references/adversarial-review-standard.md +2 -2
- package/references/agents-md-pattern.md +14 -14
- package/references/cadence-ledger.md +1 -1
- package/references/ci-cd-standard.md +1 -1
- package/references/delivery-operating-model-standard.md +4 -4
- package/references/docs-directory-standard.md +65 -159
- package/references/external-source-intake-standard.md +10 -10
- package/references/harness-ledger.md +5 -5
- package/references/legacy-12-phase-bootstrap.md +2 -2
- package/references/lessons-governance.md +15 -15
- package/references/long-running-task-standard.md +6 -6
- package/references/module-parallel-standard.md +34 -34
- package/references/planning-loop.md +6 -6
- package/references/project-onboarding-audit.md +4 -4
- package/references/regression-system.md +2 -2
- package/references/repo-governance-standard.md +4 -4
- package/references/review-routing-standard.md +1 -1
- package/references/ssot-governance.md +19 -19
- package/references/taskr-gap-analysis.md +5 -5
- package/references/walkthrough-closeout.md +14 -14
- package/references/worktree-parallel.md +3 -3
- package/skills/preset-creator/references/complex-task-skeleton/task_plan.md +1 -1
- package/skills/preset-creator/references/preset-package-skeleton.md +5 -5
- package/templates/AGENTS.md.template +26 -26
- package/templates/architecture/README.md +4 -4
- package/templates/architecture/service-catalog.md +2 -2
- package/templates/architecture/services/service-template.md +1 -1
- package/templates/dashboard/assets/app-src/20-overview.js +11 -5
- package/templates/dashboard/assets/app-src/40-modules.js +1 -1
- package/templates/dashboard/assets/app.js +12 -6
- package/templates/dashboard/assets/i18n.js +4 -2
- package/templates/development/README.md +10 -10
- package/templates/development/cross-repo-debugging.md +3 -3
- package/templates/development/external-context/service-template.md +2 -2
- package/templates/development/external-source-packs/README.md +4 -4
- package/templates/integrations/README.md +4 -4
- package/templates/integrations/api-contract.md +2 -2
- package/templates/integrations/event-contract.md +2 -2
- package/templates/integrations/third-party/vendor-template.md +2 -2
- package/templates/integrations/webhook-contract.md +2 -2
- package/templates/ledger/Harness-Ledger.md +1 -1
- package/templates/planning/INDEX.md +1 -0
- package/templates/planning/module_session_prompt.md +1 -1
- package/templates/planning/task_plan.md +1 -1
- package/templates/planning/walkthrough.md +47 -0
- package/templates/reference/docs-library-standard.md +8 -8
- package/templates/reference/external-source-intake-standard.md +15 -15
- package/templates/reference/repo-governance-standard.md +1 -1
- package/templates/ssot/Module-Registry.md +1 -1
- package/templates/walkthrough/walkthrough-template.md +2 -2
- package/templates-zh-CN/AGENTS.md.template +26 -26
- package/templates-zh-CN/CLAUDE.md.template +1 -1
- package/templates-zh-CN/architecture/README.md +4 -4
- package/templates-zh-CN/architecture/service-catalog.md +2 -2
- package/templates-zh-CN/architecture/services/service-template.md +1 -1
- package/templates-zh-CN/development/README.md +10 -10
- package/templates-zh-CN/development/cross-repo-debugging.md +3 -3
- package/templates-zh-CN/development/external-context/service-template.md +2 -2
- package/templates-zh-CN/development/external-source-packs/README.md +4 -4
- package/templates-zh-CN/integrations/README.md +4 -4
- package/templates-zh-CN/integrations/api-contract.md +2 -2
- package/templates-zh-CN/integrations/event-contract.md +2 -2
- package/templates-zh-CN/integrations/third-party/vendor-template.md +2 -2
- package/templates-zh-CN/integrations/webhook-contract.md +2 -2
- package/templates-zh-CN/ledger/Harness-Ledger.md +1 -1
- package/templates-zh-CN/lessons/lesson-arch-process-change.md +1 -1
- package/templates-zh-CN/lessons/lesson-new-doc.md +3 -3
- package/templates-zh-CN/lessons/lesson-ref-change.md +4 -4
- package/templates-zh-CN/planning/module_session_prompt.md +11 -11
- package/templates-zh-CN/planning/walkthrough.md +47 -0
- package/templates-zh-CN/reference/adversarial-review-standard.md +2 -2
- package/templates-zh-CN/reference/delivery-operating-model-standard.md +3 -3
- package/templates-zh-CN/reference/docs-library-standard.md +28 -28
- package/templates-zh-CN/reference/execution-workflow-standard.md +1 -1
- package/templates-zh-CN/reference/external-source-intake-standard.md +16 -16
- package/templates-zh-CN/reference/harness-ledger-standard.md +6 -6
- package/templates-zh-CN/reference/regression-ssot-governance.md +2 -2
- package/templates-zh-CN/reference/repo-governance-standard.md +1 -1
- package/templates-zh-CN/reference/review-routing-standard.md +1 -1
- package/templates-zh-CN/reference/walkthrough-standard.md +7 -7
- package/templates-zh-CN/reference/worktree-standard.md +1 -1
- package/templates-zh-CN/regression/Cadence-Ledger.md +2 -2
- package/templates-zh-CN/ssot/Delivery-SSoT.md +3 -3
- package/templates-zh-CN/ssot/Module-Registry.md +3 -3
- package/templates-zh-CN/ssot/Regression-SSoT.md +2 -2
- package/templates-zh-CN/walkthrough/walkthrough-template.md +5 -5
- package/tsconfig.dist.json +16 -0
- package/tsconfig.json +25 -0
- package/tsconfig.runtime.json +24 -0
- package/examples/minimal-project/.harness-capabilities.json +0 -8
- package/examples/minimal-project/docs/09-PLANNING/TASKS/demo-task/progress.md +0 -11
- package/scripts/check-harness.mjs +0 -508
- package/scripts/commands/dashboard-command.mjs +0 -67
- package/scripts/commands/migration-command.mjs +0 -126
- package/scripts/commands/preset-command.mjs +0 -73
- package/scripts/commands/task-command.mjs +0 -328
- package/scripts/harness.mjs +0 -291
- package/scripts/lib/capability-registry.mjs +0 -587
- package/scripts/lib/check-module-parallel.mjs +0 -230
- package/scripts/lib/check-profiles.mjs +0 -372
- package/scripts/lib/check-task-contracts.mjs +0 -55
- package/scripts/lib/core-shared.mjs +0 -249
- package/scripts/lib/dashboard-data.mjs +0 -520
- package/scripts/lib/dashboard-workbench.mjs +0 -336
- package/scripts/lib/dashboard-writer.mjs +0 -202
- package/scripts/lib/git-status-summary.mjs +0 -46
- package/scripts/lib/governance-index-generator.mjs +0 -174
- package/scripts/lib/governance-sync.mjs +0 -611
- package/scripts/lib/governance-table-boundary.mjs +0 -175
- package/scripts/lib/lesson-maintenance.mjs +0 -152
- package/scripts/lib/markdown-utils.mjs +0 -191
- package/scripts/lib/migration-planner.mjs +0 -476
- package/scripts/lib/migration-support.mjs +0 -312
- package/scripts/lib/phase-kind.mjs +0 -50
- package/scripts/lib/preset-audit-contracts.mjs +0 -37
- package/scripts/lib/preset-engine.mjs +0 -494
- package/scripts/lib/preset-registry.mjs +0 -776
- package/scripts/lib/preset-resource-contracts.mjs +0 -83
- package/scripts/lib/review-confirm-git-gate.mjs +0 -248
- package/scripts/lib/status-builder.mjs +0 -88
- package/scripts/lib/subagent-authorization-audit.mjs +0 -196
- package/scripts/lib/task-audit-metadata.mjs +0 -385
- package/scripts/lib/task-audit-migration.mjs +0 -350
- package/scripts/lib/task-completion-consistency.mjs +0 -26
- package/scripts/lib/task-index.mjs +0 -93
- package/scripts/lib/task-lesson-candidates.mjs +0 -242
- package/scripts/lib/task-lesson-sedimentation.mjs +0 -326
- package/scripts/lib/task-lifecycle/create-task-helpers.mjs +0 -67
- package/scripts/lib/task-lifecycle/phase-sync.mjs +0 -88
- package/scripts/lib/task-lifecycle/review-confirm.mjs +0 -112
- package/scripts/lib/task-lifecycle/review-gates.mjs +0 -73
- package/scripts/lib/task-lifecycle/review-submission.mjs +0 -63
- package/scripts/lib/task-lifecycle/scaffold-provenance.mjs +0 -49
- package/scripts/lib/task-lifecycle/template-files.mjs +0 -53
- package/scripts/lib/task-lifecycle/text-utils.mjs +0 -24
- package/scripts/lib/task-lifecycle.mjs +0 -616
- package/scripts/lib/task-metadata.mjs +0 -118
- package/scripts/lib/task-review-model.mjs +0 -455
- package/scripts/lib/task-scanner.mjs +0 -503
- package/scripts/lib/task-tombstone-commands.mjs +0 -140
- package/scripts/postinstall.mjs +0 -14
- package/templates/walkthrough/Closeout-SSoT.md +0 -43
- package/templates-zh-CN/walkthrough/Closeout-SSoT.md +0 -42
- /package/examples/minimal-project/{docs → coding-agent-harness/governance/generated}/Harness-Ledger.md +0 -0
- /package/examples/minimal-project/{docs/09-PLANNING/TASKS → coding-agent-harness/planning/tasks}/demo-task/INDEX.md +0 -0
- /package/examples/minimal-project/{docs/09-PLANNING/TASKS → coding-agent-harness/planning/tasks}/demo-task/brief.md +0 -0
- /package/examples/minimal-project/{docs/09-PLANNING/TASKS → coding-agent-harness/planning/tasks}/demo-task/execution_strategy.md +0 -0
- /package/examples/minimal-project/{docs/09-PLANNING/TASKS → coding-agent-harness/planning/tasks}/demo-task/findings.md +0 -0
- /package/examples/minimal-project/{docs/09-PLANNING/TASKS → coding-agent-harness/planning/tasks}/demo-task/lesson_candidates.md +0 -0
- /package/examples/minimal-project/{docs/09-PLANNING/TASKS → coding-agent-harness/planning/tasks}/demo-task/task_plan.md +0 -0
- /package/examples/minimal-project/{docs/09-PLANNING/TASKS → coding-agent-harness/planning/tasks}/demo-task/visual_map.md +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "coding-agent-harness",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Document governance kernel for long-running coding agents.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -23,18 +23,23 @@
|
|
|
23
23
|
"url": "https://github.com/FairladyZ625/coding-agent-harness/issues"
|
|
24
24
|
},
|
|
25
25
|
"bin": {
|
|
26
|
-
"harness": "
|
|
26
|
+
"harness": "dist/harness.mjs"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
|
-
"check": "node
|
|
30
|
-
"check:private": "node
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
29
|
+
"check": "node dist/harness.mjs check --profile source-package .",
|
|
30
|
+
"check:private": "node dist/harness.mjs check --profile private-harness .harness-private",
|
|
31
|
+
"build:runtime": "node scripts/build-dist.mts",
|
|
32
|
+
"prepack": "node scripts/build-dist.mts --quiet",
|
|
33
|
+
"typecheck": "npm exec --yes --package typescript@5.9.3 -- tsc -p tsconfig.json",
|
|
34
|
+
"typecheck:guards": "node dist/check-type-boundaries.mjs",
|
|
35
|
+
"status": "node dist/harness.mjs status --json .",
|
|
36
|
+
"dashboard": "node dist/harness.mjs dashboard --out tmp/harness-dashboard.html examples/minimal-project",
|
|
37
|
+
"dashboard:folder": "node dist/harness.mjs dashboard --out-dir tmp/harness-dashboard examples/minimal-project",
|
|
34
38
|
"pack:dry-run": "npm pack --dry-run --json",
|
|
35
|
-
"postinstall": "node
|
|
36
|
-
"
|
|
37
|
-
"
|
|
39
|
+
"postinstall": "node dist/postinstall.mjs",
|
|
40
|
+
"observe:dist": "node dist/check-dist-observation.mjs --skip-pack --skip-install-smoke",
|
|
41
|
+
"smoke:dashboard": "node dist/run-built-tests.mjs --test tests/smoke-dashboard.mjs",
|
|
42
|
+
"test": "node dist/run-built-tests.mjs"
|
|
38
43
|
},
|
|
39
44
|
"files": [
|
|
40
45
|
"README.md",
|
|
@@ -43,6 +48,9 @@
|
|
|
43
48
|
"CONTRIBUTING.md",
|
|
44
49
|
"CHANGELOG.md",
|
|
45
50
|
"SKILL.md",
|
|
51
|
+
"tsconfig.json",
|
|
52
|
+
"tsconfig.dist.json",
|
|
53
|
+
"tsconfig.runtime.json",
|
|
46
54
|
"LICENSE",
|
|
47
55
|
"LICENSE-EXCEPTION.md",
|
|
48
56
|
"references/",
|
|
@@ -50,12 +58,12 @@
|
|
|
50
58
|
"presets/",
|
|
51
59
|
"templates/",
|
|
52
60
|
"templates-zh-CN/",
|
|
53
|
-
"
|
|
61
|
+
"dist/",
|
|
54
62
|
"docs-release/",
|
|
55
63
|
"examples/"
|
|
56
64
|
],
|
|
57
65
|
"engines": {
|
|
58
|
-
"node": ">=
|
|
66
|
+
"node": ">=24"
|
|
59
67
|
},
|
|
60
68
|
"license": "AGPL-3.0-or-later"
|
|
61
69
|
}
|
|
@@ -43,7 +43,7 @@ templateValues:
|
|
|
43
43
|
entrypoints:
|
|
44
44
|
newTask:
|
|
45
45
|
type: template
|
|
46
|
-
writes: [
|
|
46
|
+
writes: [coding-agent-harness/planning/tasks/**]
|
|
47
47
|
reads: [session.json]
|
|
48
48
|
audit: true
|
|
49
49
|
templates:
|
|
@@ -55,19 +55,19 @@ entrypoints:
|
|
|
55
55
|
plan:
|
|
56
56
|
type: script
|
|
57
57
|
command: scripts/plan-work-queue.mjs
|
|
58
|
-
writes: [
|
|
58
|
+
writes: [coding-agent-harness/planning/tasks/**]
|
|
59
59
|
reads: [docs/**, .git/**]
|
|
60
60
|
audit: true
|
|
61
61
|
scaffold:
|
|
62
62
|
type: script
|
|
63
63
|
command: scripts/scaffold-task-contracts.mjs
|
|
64
|
-
writes: [
|
|
64
|
+
writes: [coding-agent-harness/planning/tasks/**]
|
|
65
65
|
reads: [docs/**]
|
|
66
66
|
audit: true
|
|
67
67
|
check:
|
|
68
68
|
type: check
|
|
69
69
|
command: checks/preset-check.mjs
|
|
70
|
-
writes: [
|
|
70
|
+
writes: [coding-agent-harness/planning/tasks/**]
|
|
71
71
|
reads: [docs/**]
|
|
72
72
|
audit: true
|
|
73
73
|
workbench:
|
|
@@ -130,5 +130,5 @@ audit:
|
|
|
130
130
|
evidenceFiles: [preset-manifest.json, preset-audit.json, write-scope.json]
|
|
131
131
|
writeScopes:
|
|
132
132
|
taskArtifacts:
|
|
133
|
-
path:
|
|
133
|
+
path: coding-agent-harness/planning/tasks/**
|
|
134
134
|
access: write
|
|
@@ -15,4 +15,4 @@ Declare lanes before dispatching workers.
|
|
|
15
15
|
|
|
16
16
|
| Lane ID | Allowed globs | Forbidden globs | Shared file owner | Worktree / branch | Handoff path | Merge order | Verification command |
|
|
17
17
|
| --- | --- | --- | --- | --- | --- | --- | --- |
|
|
18
|
-
| coordinator |
|
|
18
|
+
| coordinator | coding-agent-harness/planning/tasks/** | AGENTS.md, CLAUDE.md, coding-agent-harness/governance/generated/Harness-Ledger.md until closeout | coordinator | current | progress.md | 1 | harness check --profile target-project . |
|
|
@@ -9,14 +9,14 @@ task:
|
|
|
9
9
|
entrypoints:
|
|
10
10
|
newTask:
|
|
11
11
|
type: template
|
|
12
|
-
writes: [
|
|
13
|
-
reads: [
|
|
12
|
+
writes: [coding-agent-harness/planning/tasks/**]
|
|
13
|
+
reads: [coding-agent-harness/planning/tasks/**/lesson_candidates.md]
|
|
14
14
|
audit: true
|
|
15
15
|
templates:
|
|
16
16
|
prompt: templates/prompt.md
|
|
17
17
|
writeScopes:
|
|
18
18
|
taskDocs:
|
|
19
|
-
path:
|
|
19
|
+
path: coding-agent-harness/planning/tasks/**
|
|
20
20
|
access: write
|
|
21
21
|
audit:
|
|
22
22
|
manifestRequired: true
|
|
@@ -8,7 +8,7 @@ task:
|
|
|
8
8
|
entrypoints:
|
|
9
9
|
newTask:
|
|
10
10
|
type: template
|
|
11
|
-
writes: [
|
|
11
|
+
writes: [coding-agent-harness/planning/**]
|
|
12
12
|
audit: true
|
|
13
13
|
templates:
|
|
14
14
|
taskPlanAppend: templates/task_plan.append.md
|
|
@@ -21,5 +21,5 @@ audit:
|
|
|
21
21
|
evidenceFiles: [preset-audit.json]
|
|
22
22
|
writeScopes:
|
|
23
23
|
planningDocs:
|
|
24
|
-
path:
|
|
24
|
+
path: coding-agent-harness/planning/**
|
|
25
25
|
access: write
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
| Field | Value |
|
|
4
4
|
| --- | --- |
|
|
5
5
|
| Module Key | {{moduleKey}} |
|
|
6
|
-
| Module Plan |
|
|
6
|
+
| Module Plan | coding-agent-harness/planning/modules/{{moduleKey}}/module_plan.md |
|
|
7
7
|
|
|
8
8
|
Keep shared module decisions in the module plan or module context files. Keep task-specific evidence in this task directory.
|
|
@@ -12,6 +12,6 @@ Read these module-level entry points before changing shared module behavior. Con
|
|
|
12
12
|
|
|
13
13
|
| Reference | Path | Why / When |
|
|
14
14
|
| --- | --- | --- |
|
|
15
|
-
| Module brief |
|
|
16
|
-
| Module plan |
|
|
17
|
-
| Module visual map |
|
|
15
|
+
| Module brief | coding-agent-harness/planning/modules/{{moduleKey}}/brief.md | Start here for the module purpose and current scope. |
|
|
16
|
+
| Module plan | coding-agent-harness/planning/modules/{{moduleKey}}/module_plan.md | Use this for module steps, active task links, and handoff state. |
|
|
17
|
+
| Module visual map | coding-agent-harness/planning/modules/{{moduleKey}}/visual_map.md | Inspect when the change affects module sequencing or dependencies. |
|
|
@@ -9,7 +9,7 @@ task:
|
|
|
9
9
|
entrypoints:
|
|
10
10
|
newTask:
|
|
11
11
|
type: template
|
|
12
|
-
writes: [
|
|
12
|
+
writes: [coding-agent-harness/planning/tasks/**]
|
|
13
13
|
audit: true
|
|
14
14
|
templates:
|
|
15
15
|
taskPlanAppend: templates/task_plan.append.md
|
|
@@ -27,5 +27,5 @@ audit:
|
|
|
27
27
|
evidenceFiles: [preset-audit.json]
|
|
28
28
|
writeScopes:
|
|
29
29
|
taskDocs:
|
|
30
|
-
path:
|
|
30
|
+
path: coding-agent-harness/planning/tasks/**
|
|
31
31
|
access: write
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
标准位置:
|
|
14
14
|
|
|
15
15
|
```text
|
|
16
|
-
|
|
16
|
+
coding-agent-harness/planning/tasks/<YYYY-MM-DD-任务名>/review.md
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
任务目录中的文件职责:
|
|
@@ -150,7 +150,7 @@ Review loop 的固定执行形态:
|
|
|
150
150
|
- `progress.md` 记录审查发生的时间和处理结果摘要
|
|
151
151
|
- `findings.md` 记录审查中产生的技术决策或研究发现
|
|
152
152
|
- `Regression-SSoT.md` 记录新增或调整的 regression surface
|
|
153
|
-
- `lesson_candidates.md` 和 `
|
|
153
|
+
- `lesson_candidates.md` 和 `coding-agent-harness/governance/lessons/*.md` 记录可复用的流程、架构或标准改进建议
|
|
154
154
|
- `walkthrough` 收口时引用 `review.md` 的 material finding 状态和 no-finding 结论
|
|
155
155
|
- `Harness Ledger` 记录本轮是否完成 review report
|
|
156
156
|
|
|
@@ -28,40 +28,40 @@ AGENTS.md 只包含两类内容:
|
|
|
28
28
|
## Task-Type Reading Matrix
|
|
29
29
|
|
|
30
30
|
- 架构 / adapter / runtime 相关任务:
|
|
31
|
-
先读
|
|
31
|
+
先读 coding-agent-harness/governance/standards/core-decoupling-standard.md
|
|
32
32
|
|
|
33
33
|
- 测试 / scenario / 冒烟:
|
|
34
|
-
先读
|
|
34
|
+
先读 coding-agent-harness/governance/standards/testing-standard.md
|
|
35
35
|
|
|
36
36
|
- 文档治理 / planning / walkthrough:
|
|
37
|
-
先读
|
|
37
|
+
先读 coding-agent-harness/governance/standards/docs-library-standard.md
|
|
38
38
|
|
|
39
39
|
- Harness Ledger / 上下文回写:
|
|
40
|
-
先读
|
|
40
|
+
先读 coding-agent-harness/governance/standards/harness-ledger-standard.md
|
|
41
41
|
|
|
42
42
|
- Walkthrough / Closeout / Lessons 收口:
|
|
43
|
-
先读
|
|
43
|
+
先读 coding-agent-harness/governance/standards/walkthrough-standard.md,然后读 coding-agent-harness/governance/generated/Closeout-Index.md、任务本地 lesson_candidates.md 和 coding-agent-harness/governance/lessons/
|
|
44
44
|
|
|
45
45
|
- 开发执行 / 回写流程:
|
|
46
|
-
先读
|
|
46
|
+
先读 coding-agent-harness/governance/standards/execution-workflow-standard.md
|
|
47
47
|
|
|
48
48
|
- Repo governance / PR / branch protection:
|
|
49
|
-
先读
|
|
49
|
+
先读 coding-agent-harness/governance/standards/repo-governance-standard.md
|
|
50
50
|
|
|
51
51
|
- CI/CD / required checks:
|
|
52
|
-
先读
|
|
52
|
+
先读 coding-agent-harness/governance/standards/ci-cd-standard.md
|
|
53
53
|
|
|
54
54
|
- 长程任务 / 连续执行 / 子代理审查:
|
|
55
|
-
先读
|
|
55
|
+
先读 coding-agent-harness/governance/standards/long-running-task-standard.md
|
|
56
56
|
|
|
57
57
|
- 对抗性 review / reviewer 报告:
|
|
58
|
-
先读
|
|
58
|
+
先读 coding-agent-harness/governance/standards/adversarial-review-standard.md
|
|
59
59
|
|
|
60
60
|
- Reviewer / subagent / 外部审查路由:
|
|
61
|
-
先读
|
|
61
|
+
先读 coding-agent-harness/governance/standards/review-routing-standard.md
|
|
62
62
|
|
|
63
63
|
- 前端 / UI 任务:
|
|
64
|
-
先读
|
|
64
|
+
先读 coding-agent-harness/governance/standards/frontend-standard.md
|
|
65
65
|
```
|
|
66
66
|
|
|
67
67
|
### 推荐结构
|
|
@@ -72,7 +72,7 @@ AGENTS.md 只包含两类内容:
|
|
|
72
72
|
├── CLAUDE.md ← 轻量 shim,指向 AGENTS.md
|
|
73
73
|
└── docs/
|
|
74
74
|
├── Harness-Ledger.md
|
|
75
|
-
└──
|
|
75
|
+
└── coding-agent-harness/governance/standards/
|
|
76
76
|
├── testing-standard.md
|
|
77
77
|
├── execution-workflow-standard.md
|
|
78
78
|
├── repo-governance-standard.md
|
|
@@ -107,7 +107,7 @@ CLAUDE.md 控制在 **10-50 行**。它只做 Claude Code 兼容入口,不应
|
|
|
107
107
|
## 生成 AGENTS.md + CLAUDE.md 的步骤
|
|
108
108
|
|
|
109
109
|
1. 确认项目的技术栈和主要模块
|
|
110
|
-
2. 确认 `
|
|
110
|
+
2. 确认 `coding-agent-harness/governance/standards/` 下有哪些标准文件
|
|
111
111
|
3. 用 `templates/AGENTS.md.template` 作为 AGENTS.md 起点
|
|
112
112
|
4. 填写项目信息区(项目名、技术栈、仓库结构)
|
|
113
113
|
5. 根据项目模块编写 Task-Type Reading Matrix
|
|
@@ -11,13 +11,13 @@ delivery operating model:谁负责拆分工作、几个仓库/团队并行、a
|
|
|
11
11
|
## 存放位置
|
|
12
12
|
|
|
13
13
|
```text
|
|
14
|
-
|
|
14
|
+
coding-agent-harness/governance/standards/delivery-operating-model-standard.md
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
如项目是多人或多仓交付,还应创建:
|
|
18
18
|
|
|
19
19
|
```text
|
|
20
|
-
|
|
20
|
+
coding-agent-harness/planning/Delivery-SSoT.md
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
## 必填字段
|
|
@@ -40,7 +40,7 @@ Define who breaks roadmap work into feature blocks:
|
|
|
40
40
|
|-------|-------|----------|------|
|
|
41
41
|
| Roadmap | [owner] | [SSoT / issue tracker] | [how priority is chosen] |
|
|
42
42
|
| Feature block | [owner] | `Delivery-SSoT.md` / generated Harness Ledger | [how blocks are bounded] |
|
|
43
|
-
| Task | [owner] | `
|
|
43
|
+
| Task | [owner] | `coding-agent-harness/planning/tasks/<task>/task_plan.md` | [who can start work] |
|
|
44
44
|
| Review | [owner] | `review.md` / PR review | [required reviewers] |
|
|
45
45
|
| Integration | [owner] | PR / release branch / integration branch | [merge order] |
|
|
46
46
|
|
|
@@ -97,7 +97,7 @@ Use when work passes through formal stages: requirements, design, implementation
|
|
|
97
97
|
|
|
98
98
|
- Stage entry/exit criteria must be explicit.
|
|
99
99
|
- Agents cannot skip design/review gates just because code is ready.
|
|
100
|
-
- Walkthrough and Closeout
|
|
100
|
+
- Walkthrough and Closeout Index map to stage closeout, not only feature closeout.
|
|
101
101
|
|
|
102
102
|
#### kanban-continuous
|
|
103
103
|
|
|
@@ -1,168 +1,74 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Harness Directory Standard
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## Purpose
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Define the v2 target-project Harness structure. Active Harness state lives under
|
|
6
|
+
`coding-agent-harness/`; old numbered document roots are legacy migration input
|
|
7
|
+
only and must be migrated with `harness migrate-structure --apply`.
|
|
6
8
|
|
|
7
|
-
##
|
|
8
|
-
|
|
9
|
-
```
|
|
10
|
-
docs/
|
|
11
|
-
├── Harness-Ledger.md ← CLI 生成的任务生命周期总账
|
|
12
|
-
├── 00-RAW-PRDS/ ← 原始需求文档、PRD、用户故事
|
|
13
|
-
│ └── _archive/ ← 本层历史文档归档(如该层会增长)
|
|
14
|
-
├── 01-GOVERNANCE/ ← 项目治理规则、决策记录、经验沉淀
|
|
15
|
-
│ ├── lessons/ ← promoted lesson 详情文档
|
|
16
|
-
│ └── _archive/ ← 已处理条目归档
|
|
17
|
-
├── 02-PRODUCT/ ← 产品设计、用户流程、功能规格
|
|
18
|
-
│ └── _archive/ ← 本层历史文档归档(如该层会增长)
|
|
19
|
-
├── 03-ARCHITECTURE/ ← 系统结构事实源:本仓架构、外部系统结构、服务地图、关键跨服务流、ADR
|
|
20
|
-
│ └── _archive/ ← 本层历史文档归档(如该层会增长)
|
|
21
|
-
├── 04-DEVELOPMENT/ ← 开发上下文输入包:本地开发、外部服务摘要、外部资料包、mock/stub、跨仓调试
|
|
22
|
-
│ └── _archive/ ← 本层历史文档归档(如该层会增长)
|
|
23
|
-
├── 05-TEST-QA/ ← 测试策略、Regression SSoT、Cadence Ledger
|
|
24
|
-
│ └── _archive/ ← 废弃 regression gate / 旧 evidence pack 归档
|
|
25
|
-
├── 06-INTEGRATIONS/ ← 接口合同层:API、event、webhook、SDK、第三方接入细节
|
|
26
|
-
│ └── _archive/ ← 本层历史文档归档(如该层会增长)
|
|
27
|
-
├── 07-OPERATIONS/ ← 部署、运维、监控、告警
|
|
28
|
-
│ └── _archive/ ← 本层历史文档归档(如该层会增长)
|
|
29
|
-
├── 08-SECURITY/ ← 安全策略、权限模型、审计日志
|
|
30
|
-
│ └── _archive/ ← 本层历史文档归档(如该层会增长)
|
|
31
|
-
├── 09-PLANNING/ ← 排期、任务计划
|
|
32
|
-
│ ├── TASKS/ ← 任务目录(每个任务一个子目录)
|
|
33
|
-
│ │ └── _task-template/ ← 任务模板
|
|
34
|
-
│ ├── MODULES/ ← 模块并行开发计划(启用时)
|
|
35
|
-
│ │ └── _archive/ ← 已完成 / 暂停过久模块归档
|
|
36
|
-
│ ├── _archive/ ← 历史任务、旧生命周期表明细、过期排期归档
|
|
37
|
-
│ ├── Delivery-SSoT.md ← 多人 / 多仓 / 传统流程下的交付排期和集成顺序
|
|
38
|
-
├── 10-WALKTHROUGH/ ← Walkthrough 收口记录与 Closeout SSoT
|
|
39
|
-
│ └── _archive/ ← 历史 walkthrough 批量归档(迁移 / 年度收束时)
|
|
40
|
-
├── 11-REFERENCE/ ← 标准文件(agent 按需加载)
|
|
41
|
-
│ └── _archive/ ← 旧版标准归档
|
|
42
|
-
└── 99-TMP/ ← 临时文件(定期清理)
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
## 裁剪规则
|
|
46
|
-
|
|
47
|
-
不是每个项目都需要全部目录。根据诊断结果裁剪:
|
|
48
|
-
|
|
49
|
-
| 目录 | 何时可省略 |
|
|
50
|
-
|------|-----------|
|
|
51
|
-
| 00-RAW-PRDS | 没有正式 PRD 流程的小项目 |
|
|
52
|
-
| 01-GOVERNANCE | 仅实验性 Lite 项目且明确不启用 Lessons / 归档时 |
|
|
53
|
-
| 02-PRODUCT | 纯技术项目(库、CLI 工具) |
|
|
54
|
-
| 06-INTEGRATIONS | 没有第三方集成 |
|
|
55
|
-
| 07-OPERATIONS | 没有部署需求(纯库) |
|
|
56
|
-
| 08-SECURITY | 没有安全敏感场景 |
|
|
57
|
-
| 99-TMP | 可选 |
|
|
58
|
-
|
|
59
|
-
以下目录是 harness 的核心,不可省略:
|
|
60
|
-
- 01-GOVERNANCE
|
|
61
|
-
- 03-ARCHITECTURE
|
|
62
|
-
- 05-TEST-QA
|
|
63
|
-
- 09-PLANNING(含 TASKS/)
|
|
64
|
-
- 10-WALKTHROUGH
|
|
65
|
-
- 11-REFERENCE
|
|
66
|
-
|
|
67
|
-
`docs/Harness-Ledger.md` 不是目录,但属于核心 harness 文件,不可省略。它是
|
|
68
|
-
`docs/` 根目录允许存在的全局控制文件;普通过程文件仍然不得放在根目录。
|
|
69
|
-
|
|
70
|
-
`docs/10-WALKTHROUGH/Closeout-SSoT.md` 是 closed task 的收口索引和硬门槛;
|
|
71
|
-
每个 closed Harness Ledger row 必须在这里登记 walkthrough 或受控 skip reason。
|
|
72
|
-
|
|
73
|
-
## 03 / 04 / 06 边界规则
|
|
74
|
-
|
|
75
|
-
这三个目录共同承载项目和外部系统知识,但职责不能重叠:
|
|
9
|
+
## Canonical Structure
|
|
76
10
|
|
|
77
11
|
```text
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
12
|
+
coding-agent-harness/
|
|
13
|
+
├── harness.yaml
|
|
14
|
+
├── context/
|
|
15
|
+
│ ├── architecture/
|
|
16
|
+
│ ├── development/
|
|
17
|
+
│ └── integrations/
|
|
18
|
+
├── planning/
|
|
19
|
+
│ ├── tasks/
|
|
20
|
+
│ │ └── <task-id>/
|
|
21
|
+
│ │ ├── INDEX.md
|
|
22
|
+
│ │ ├── task_plan.md
|
|
23
|
+
│ │ ├── progress.md
|
|
24
|
+
│ │ ├── review.md
|
|
25
|
+
│ │ ├── findings.md
|
|
26
|
+
│ │ ├── visual_map.md
|
|
27
|
+
│ │ ├── lesson_candidates.md
|
|
28
|
+
│ │ └── walkthrough.md
|
|
29
|
+
│ ├── modules/
|
|
30
|
+
│ │ ├── Module-Registry.md
|
|
31
|
+
│ │ └── <module-key>/
|
|
32
|
+
│ │ ├── module_plan.md
|
|
33
|
+
│ │ └── tasks/<task-id>/
|
|
34
|
+
│ └── Delivery-SSoT.md
|
|
35
|
+
└── governance/
|
|
36
|
+
├── generated/
|
|
37
|
+
│ ├── Harness-Ledger.md
|
|
38
|
+
│ └── Closeout-Index.md
|
|
39
|
+
├── regression/
|
|
40
|
+
├── standards/
|
|
41
|
+
├── lessons/
|
|
42
|
+
└── archive/
|
|
81
43
|
```
|
|
82
44
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
-
|
|
93
|
-
- `
|
|
94
|
-
- `
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
45
|
+
## Rules
|
|
46
|
+
|
|
47
|
+
- `harness.yaml` is the structure manifest and resolver source of truth.
|
|
48
|
+
- Root task packages live in `planning/tasks/<task-id>/`.
|
|
49
|
+
- Module task packages live in `planning/modules/<module-key>/tasks/<task-id>/`.
|
|
50
|
+
- `walkthrough.md` is task-local; global closeout state is generated into
|
|
51
|
+
`governance/generated/Closeout-Index.md`.
|
|
52
|
+
- `Harness-Ledger.md` is generated into `governance/generated/`; do not edit it
|
|
53
|
+
as a hand-written global table.
|
|
54
|
+
- Context docs are split by role:
|
|
55
|
+
- `context/architecture/`: system facts, ownership, service catalog, ADRs.
|
|
56
|
+
- `context/development/`: local setup, mocks, stubs, external source packs.
|
|
57
|
+
- `context/integrations/`: API, event, webhook, SDK, auth, payload contracts.
|
|
58
|
+
- Regression and cadence tables live in `governance/regression/`.
|
|
59
|
+
- Long-lived operating standards live in `governance/standards/`.
|
|
60
|
+
- Reusable lessons live in `governance/lessons/`.
|
|
61
|
+
- Historical migrated material belongs under `governance/archive/`.
|
|
62
|
+
|
|
63
|
+
## Migration Boundary
|
|
64
|
+
|
|
65
|
+
Legacy directories are not active runtime locations. The only normal command
|
|
66
|
+
that should read them is migration planning/application:
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
harness migrate-structure --plan /path/to/project
|
|
70
|
+
harness migrate-structure --apply /path/to/project
|
|
104
71
|
```
|
|
105
72
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
Checker 规则:
|
|
109
|
-
|
|
110
|
-
- 新增 `03/04/06` 文档必须声明 `Context Doc Type`。
|
|
111
|
-
- 结构事实必须有 `Source Evidence`、`Last Verified` 和 `Confidence`。
|
|
112
|
-
- `04-DEVELOPMENT/external-context/*.md` 必须包含 `Development Use`、`Do Not Assume`、`Mocks / Stubs`。
|
|
113
|
-
- `06-INTEGRATIONS/*.md` 必须包含 `Contract Type`、`Auth`、`Payload`、`Errors`、`Contract Tests`。
|
|
114
|
-
- 旧项目 safe-adoption 可先收到 warning;declared canonical 项目应修到 clean。
|
|
115
|
-
|
|
116
|
-
## 通用归档规则
|
|
117
|
-
|
|
118
|
-
归档是目录级基础设施,不是单张表的特例。任何会持续增长的目录都应该有同级
|
|
119
|
-
`_archive/` 目录;如果目录本身不会增长,可以暂不创建,但第一次归档前必须创建。
|
|
120
|
-
|
|
121
|
-
### 硬规则
|
|
122
|
-
|
|
123
|
-
- Active 文件只保存当前事实和最近需要操作的事实。
|
|
124
|
-
- 历史事实移入同级 `_archive/`,不要长期堆在 Active 表底部。
|
|
125
|
-
- 归档不改变原始 ID,不删除 task plan、walkthrough、SSoT 或 Ledger 的可追溯引用。
|
|
126
|
-
- 归档后 Active 文件必须留下归档索引或指针,说明历史在哪里。
|
|
127
|
-
- 归档文件必须按时间或范围命名:`<name>-archive-YYYY-QN.md`、`<name>-phase-1-11.md`、`YYYY-MM-DD-<name>.md`。
|
|
128
|
-
- 新增归档规则时,同步更新 `docs-library-standard.md` 和对应 checker。
|
|
129
|
-
|
|
130
|
-
### 推荐触发条件
|
|
131
|
-
|
|
132
|
-
| 对象 | 触发条件 | 归档位置 |
|
|
133
|
-
|------|----------|----------|
|
|
134
|
-
| Legacy Feature / Private Feature 生命周期表 | 迁移到 ledger-only 版本 | `09-PLANNING/_archive/` |
|
|
135
|
-
| Delivery SSoT | 集成 wave 结束或 completed/superseded blocks 超过 20 条 | `09-PLANNING/_archive/` |
|
|
136
|
-
| Module Registry / module_plan | 模块 completed 或 paused 超过 60 天 | `09-PLANNING/MODULES/_archive/<key>/` |
|
|
137
|
-
| Regression SSoT | gate 废弃或长期不再运行 | `05-TEST-QA/_archive/` |
|
|
138
|
-
| Lesson detail docs | merged/rejected/superseded 详情文档超过 20 条 | `01-GOVERNANCE/_archive/` |
|
|
139
|
-
| Harness Ledger | closed/superseded 超过 50 条 | `01-GOVERNANCE/_archive/` |
|
|
140
|
-
| Walkthrough | 年度/阶段迁移或目录过大 | `10-WALKTHROUGH/_archive/` |
|
|
141
|
-
|
|
142
|
-
## Reference 标准文件清单
|
|
143
|
-
|
|
144
|
-
`docs/11-REFERENCE/` 下的标准文件,按项目需要选择:
|
|
145
|
-
|
|
146
|
-
| 文件 | 职责 | 必需? |
|
|
147
|
-
|------|------|--------|
|
|
148
|
-
| testing-standard.md | 测试规范、框架选择、覆盖率要求 | 是 |
|
|
149
|
-
| execution-workflow-standard.md | 开发执行流程、commit 规范、PR 流程 | 是 |
|
|
150
|
-
| delivery-operating-model-standard.md | 工程组织形态、feature block 拆分、跨仓/团队协作模型 | 是 |
|
|
151
|
-
| repo-governance-standard.md | repo platform、branch protection、PR policy、required checks、worktree concurrency | 是 |
|
|
152
|
-
| pull-request-standard.md | PR 描述结构、中英双语要求、版本影响、验证、审查证据、残余风险和引用 | 是 |
|
|
153
|
-
| ci-cd-standard.md | CI/CD profile、workflow、required checks、release/CD residual | 是 |
|
|
154
|
-
| long-running-task-standard.md | 长程任务合同、连续执行权限、review loop、停止条件 | 是 |
|
|
155
|
-
| adversarial-review-standard.md | 对抗性 review 报告、finding 分级、no-finding 结论、residual 路由 | 是 |
|
|
156
|
-
| review-routing-standard.md | reviewer / subagent / external agent / human review 触发和路由规则 | 是 |
|
|
157
|
-
| docs-library-standard.md | 文档治理规范、命名规则、归档规则 | 是 |
|
|
158
|
-
| external-source-intake-standard.md | 外部资料摄取、过滤、摘要和投影规则 | 是 |
|
|
159
|
-
| harness-ledger-standard.md | Harness Ledger 写入规范、closeout 检查 | 是 |
|
|
160
|
-
| regression-ssot-governance.md | Regression SSoT 治理规范 | Standard+ |
|
|
161
|
-
| walkthrough-standard.md | Walkthrough 写作规范 | 是 |
|
|
162
|
-
| worktree-standard.md | Worktree 命名、分支、清理规范 | Standard+ |
|
|
163
|
-
| engineering-standard.md | 工程规范、代码风格、架构约束 | 推荐 |
|
|
164
|
-
| frontend-standard.md | 前端规范(如有前端) | 按需 |
|
|
165
|
-
| api-standard.md | API 设计规范(如有 API) | 按需 |
|
|
166
|
-
| security-standard.md | 安全规范(如有安全需求) | 按需 |
|
|
167
|
-
| deployment-standard.md | 部署规范(如有部署需求) | 按需 |
|
|
168
|
-
| debugging-playbook.md | 调试经验手册 | 推荐 |
|
|
73
|
+
After migration, `status`, `check`, `dashboard`, and task lifecycle commands
|
|
74
|
+
must use the v2 manifest paths above.
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
## 核心模型
|
|
8
8
|
|
|
9
9
|
```text
|
|
10
|
-
外部原始资料 -> source pack 索引 -> digest 摘要 ->
|
|
10
|
+
外部原始资料 -> source pack 索引 -> digest 摘要 -> context/{architecture,development,integrations} 执行投影
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
`
|
|
13
|
+
`coding-agent-harness/context/architecture`、`coding-agent-harness/context/development`、`coding-agent-harness/context/integrations` 不承载外部资料堆。它们只保存已经提炼、可验证、能指导当前仓库开发的事实。
|
|
14
14
|
|
|
15
15
|
## Diagnose / Decide 必问条件
|
|
16
16
|
|
|
@@ -32,15 +32,15 @@
|
|
|
32
32
|
|
|
33
33
|
| 场景 | 存储方式 |
|
|
34
34
|
| --- | --- |
|
|
35
|
-
| 只有 1-4 个稳定外部文档 | 不必建独立 source pack;在对应 `
|
|
36
|
-
| 外部资料超过 5 份、跨多个主题、或会持续增长 | 创建 `
|
|
35
|
+
| 只有 1-4 个稳定外部文档 | 不必建独立 source pack;在对应 `context/{architecture,development,integrations}` 的 `Source Evidence` 中链接 |
|
|
36
|
+
| 外部资料超过 5 份、跨多个主题、或会持续增长 | 创建 `coding-agent-harness/context/development/external-source-packs/<source-key>/` |
|
|
37
37
|
| 资料含敏感信息、密钥、客户数据或不能进仓 | 不复制原文;只记录外部路径、owner、访问条件和摘要 |
|
|
38
38
|
| 资料可入仓 | 可放 `raw/`,但必须经过 digest 后才能投影到执行文档 |
|
|
39
39
|
|
|
40
40
|
推荐结构:
|
|
41
41
|
|
|
42
42
|
```text
|
|
43
|
-
|
|
43
|
+
coding-agent-harness/context/development/external-source-packs/<source-key>/
|
|
44
44
|
├── README.md
|
|
45
45
|
├── digests/
|
|
46
46
|
├── raw/
|
|
@@ -53,7 +53,7 @@ docs/04-DEVELOPMENT/external-source-packs/<source-key>/
|
|
|
53
53
|
2. Classify:按 architecture、development、integration、security、operations、product、unknown 分类。
|
|
54
54
|
3. Sanitize:检查密钥、token、客户数据、隐私、内部账号和不可公开链接。
|
|
55
55
|
4. Digest:提炼事实、疑问、不安全假设和证据。
|
|
56
|
-
5. Project:把稳定事实投影到 `
|
|
56
|
+
5. Project:把稳定事实投影到 `context/{architecture,development,integrations}`。
|
|
57
57
|
6. Verify:尽可能用代码、接口测试、owner 确认或运行证据验证。
|
|
58
58
|
7. Residual:不能确认的内容留在 source pack 或 `Do Not Assume`,不进入执行事实。
|
|
59
59
|
|
|
@@ -61,14 +61,14 @@ docs/04-DEVELOPMENT/external-source-packs/<source-key>/
|
|
|
61
61
|
|
|
62
62
|
| 资料内容 | 投影位置 |
|
|
63
63
|
| --- | --- |
|
|
64
|
-
| 服务职责、上下游、owner、数据归属、系统拓扑 | `
|
|
65
|
-
| 本仓开发时如何 mock、stub、启动、联调、排查 | `
|
|
66
|
-
| endpoint、payload、auth、error、event、webhook、SDK、contract test | `
|
|
64
|
+
| 服务职责、上下游、owner、数据归属、系统拓扑 | `coding-agent-harness/context/architecture/service-catalog.md` 或 `services/<service-key>.md` |
|
|
65
|
+
| 本仓开发时如何 mock、stub、启动、联调、排查 | `coding-agent-harness/context/development/external-context/<service-key>.md` |
|
|
66
|
+
| endpoint、payload、auth、error、event、webhook、SDK、contract test | `coding-agent-harness/context/integrations/<contract>.md` |
|
|
67
67
|
| 未确认、来源冲突、过期或背景参考 | 留在 source pack README / digest |
|
|
68
68
|
|
|
69
69
|
## 禁止事项
|
|
70
70
|
|
|
71
|
-
- 不把几十份外部文档直接复制到 `
|
|
71
|
+
- 不把几十份外部文档直接复制到 `coding-agent-harness/context/architecture`、`coding-agent-harness/context/development` 或 `coding-agent-harness/context/integrations` 根目录。
|
|
72
72
|
- 不把 digest 当成已验证事实。
|
|
73
73
|
- 不在执行文档里保留大段原文、聊天流水或历史会议记录。
|
|
74
74
|
- 不把密钥、token、客户数据、个人隐私或不可公开资料提交进仓。
|