coding-agent-harness 1.0.7 → 1.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/CHANGELOG.md +33 -0
- package/CONTRIBUTING.md +9 -5
- package/README.md +12 -2
- package/README.zh-CN.md +10 -2
- package/SKILL.md +14 -3
- package/dist/build-dist.mjs +32 -6
- package/dist/check-dist-observation.mjs +73 -28
- package/dist/check-harness.mjs +0 -1
- package/dist/check-import-graph.mjs +44 -27
- package/dist/check-lite-forbidden-surfaces.mjs +121 -0
- package/dist/check-no-ts-nocheck.mjs +88 -0
- package/dist/check-runtime-emit.mjs +10 -3
- package/dist/check-type-boundaries.mjs +67 -8
- package/dist/commands/dashboard-command.mjs +52 -14
- package/dist/commands/migration-command.mjs +18 -8
- package/dist/commands/module-command.mjs +142 -0
- package/dist/commands/preset-command.mjs +65 -4
- package/dist/commands/registry.mjs +483 -0
- package/dist/commands/task-command.mjs +111 -53
- package/dist/harness.mjs +6 -303
- package/dist/lib/capability-registry.mjs +229 -53
- package/dist/lib/check-module-parallel.mjs +1 -6
- package/dist/lib/check-profiles.mjs +39 -46
- package/dist/lib/check-task-contracts.mjs +6 -4
- package/dist/lib/command-registry.mjs +248 -0
- package/dist/lib/core-shared.mjs +78 -3
- package/dist/lib/dashboard-data.mjs +203 -22
- package/dist/lib/dashboard-workbench.mjs +245 -21
- package/dist/lib/dashboard-writer.mjs +4 -1
- package/dist/lib/git-status-summary.mjs +0 -1
- package/dist/lib/governance-index-generator.mjs +7 -5
- package/dist/lib/governance-sync.mjs +46 -121
- package/dist/lib/governance-table-boundary.mjs +1 -14
- package/dist/lib/harness-core.mjs +5 -1
- package/dist/lib/harness-paths.mjs +115 -1
- package/dist/lib/impact-classifier.mjs +420 -0
- package/dist/lib/lesson-maintenance.mjs +1 -2
- package/dist/lib/markdown-utils.mjs +50 -1
- package/dist/lib/migration-planner.mjs +31 -16
- package/dist/lib/migration-support.mjs +5 -4
- package/dist/lib/module-registry.mjs +296 -0
- package/dist/lib/preset-audit-contracts.mjs +24 -1
- package/dist/lib/preset-engine.mjs +68 -29
- package/dist/lib/preset-registry.mjs +374 -72
- package/dist/lib/preset-runner.mjs +560 -0
- package/dist/lib/review-confirm-git-gate.mjs +73 -19
- package/dist/lib/status-builder.mjs +23 -8
- package/dist/lib/structure-migration.mjs +6 -4
- package/dist/lib/subagent-authorization-audit.mjs +8 -2
- package/dist/lib/task-archive-eligibility.mjs +65 -0
- package/dist/lib/task-audit-metadata.mjs +25 -11
- package/dist/lib/task-audit-migration.mjs +21 -14
- package/dist/lib/task-discovery-contract.mjs +32 -0
- package/dist/lib/task-index.mjs +4 -2
- package/dist/lib/task-lesson-candidates.mjs +1 -2
- package/dist/lib/task-lesson-sedimentation.mjs +310 -9
- package/dist/lib/task-lifecycle/create-task-helpers.mjs +6 -3
- package/dist/lib/task-lifecycle/phase-sync.mjs +0 -1
- package/dist/lib/task-lifecycle/preset-interop.mjs +16 -0
- package/dist/lib/task-lifecycle/review-confirm.mjs +34 -2
- package/dist/lib/task-lifecycle/review-gates.mjs +12 -5
- package/dist/lib/task-lifecycle/review-submission.mjs +1 -2
- package/dist/lib/task-lifecycle/scaffold-provenance.mjs +0 -1
- package/dist/lib/task-lifecycle/template-files.mjs +2 -5
- package/dist/lib/task-lifecycle.mjs +117 -159
- package/dist/lib/task-metadata.mjs +10 -5
- package/dist/lib/task-preset-contract-drift.mjs +45 -0
- package/dist/lib/task-repository.mjs +192 -0
- package/dist/lib/task-review-model.mjs +38 -17
- package/dist/lib/task-scanner.mjs +75 -23
- package/dist/lib/task-template-materials.mjs +131 -0
- package/dist/lib/task-tombstone-commands.mjs +187 -18
- package/dist/lib/types/check-profiles.js +1 -0
- package/dist/lib/types/impact.js +1 -0
- package/dist/lib/types/preset.js +1 -0
- package/dist/lib/types/task-lifecycle.js +1 -0
- package/dist/lib/types/task-scanner.js +1 -0
- package/dist/postinstall.mjs +2 -2
- package/dist/run-built-tests.mjs +10 -3
- package/docs-release/README.md +2 -1
- package/docs-release/architecture/document-contract-kernel/README.md +150 -0
- package/docs-release/architecture/document-contract-kernel/products/full-skill-overlay.md +29 -0
- package/docs-release/architecture/document-contract-kernel/products/lite-forbidden-surfaces.txt +26 -0
- package/docs-release/architecture/document-contract-kernel/products/lite-skill-overlay.md +37 -0
- package/docs-release/architecture/overview.md +2 -2
- package/docs-release/architecture/overview.zh-CN.md +2 -2
- package/docs-release/architecture/system-explainer/01-system-overview.md +11 -7
- package/docs-release/architecture/system-explainer/02-module-dependency.md +4 -4
- package/docs-release/architecture/system-explainer/03-task-lifecycle.md +17 -12
- package/docs-release/architecture/system-explainer/05-data-flow.md +6 -6
- package/docs-release/architecture/system-explainer/06-preset-and-migration.md +2 -2
- package/docs-release/architecture/system-explainer/README.md +1 -1
- package/docs-release/architecture/system-explainer/en-US/01-system-overview.md +12 -8
- package/docs-release/architecture/system-explainer/en-US/02-module-dependency.md +5 -5
- package/docs-release/architecture/system-explainer/en-US/03-task-lifecycle.md +19 -11
- 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 +2 -2
- package/docs-release/architecture/system-explainer/en-US/README.md +1 -1
- package/docs-release/guides/agent-installation.en-US.md +4 -6
- package/docs-release/guides/agent-installation.md +11 -8
- package/docs-release/guides/contributing.md +10 -3
- package/docs-release/guides/contributing.zh-CN.md +10 -3
- package/docs-release/guides/legacy-migration-agent-prompt.md +1 -1
- package/docs-release/guides/legacy-migration-agent-prompt.zh-CN.md +1 -1
- package/docs-release/guides/migration-playbook.en-US.md +9 -6
- package/docs-release/guides/migration-playbook.md +9 -6
- package/docs-release/guides/preset-development.md +68 -2
- package/docs-release/guides/task-state-machine.en-US.md +8 -8
- package/docs-release/guides/task-state-machine.md +7 -7
- package/docs-release/guides/typescript-runtime-migration-closeout.md +17 -13
- package/package.json +19 -11
- package/postinstall.mjs +37 -0
- 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/release-closeout/checks/check-release-package.mjs +29 -0
- package/presets/release-closeout/preset.yaml +100 -0
- package/presets/release-closeout/scripts/generate-release-package.mjs +572 -0
- package/presets/release-closeout/templates/execution_strategy.append.md +7 -0
- package/presets/release-closeout/templates/findings.seed.md +5 -0
- package/presets/release-closeout/templates/review.seed.md +3 -0
- package/presets/release-closeout/templates/task_plan.append.md +24 -0
- package/presets/standard-task/preset.yaml +2 -2
- package/references/agents-md-pattern.md +23 -17
- package/references/lessons-governance.md +2 -2
- package/references/module-parallel-standard.md +3 -6
- package/references/pull-request-standard.md +2 -2
- package/references/ssot-governance.md +2 -2
- package/references/taskr-gap-analysis.md +3 -3
- package/run-dist.mjs +34 -0
- package/skills/preset-creator/SKILL.md +40 -8
- package/skills/preset-creator/references/complex-task-skeleton/brief.md +32 -8
- package/skills/preset-creator/references/preset-package-skeleton.md +15 -5
- package/skills/preset-creator/references/structure-aware-paths.md +112 -0
- package/templates/AGENTS.md.template +28 -26
- package/templates/architecture/README.md +2 -2
- package/templates/architecture/service-catalog.md +2 -2
- package/templates/architecture/services/service-template.md +1 -1
- package/templates/dashboard/assets/app-src/00-state.js +5 -1
- package/templates/dashboard/assets/app-src/10-router.js +7 -0
- package/templates/dashboard/assets/app-src/20-overview.js +8 -8
- package/templates/dashboard/assets/app-src/30-tasks.js +132 -40
- package/templates/dashboard/assets/app-src/32-task-swimlane.js +314 -0
- package/templates/dashboard/assets/app-src/35-task-detail.js +35 -5
- package/templates/dashboard/assets/app-src/40-modules.js +257 -41
- package/templates/dashboard/assets/app-src/45-review.js +127 -1
- package/templates/dashboard/assets/app-src/90-bindings.js +185 -2
- package/templates/dashboard/assets/app.css +928 -53
- package/templates/dashboard/assets/app.css.manifest.json +2 -0
- package/templates/dashboard/assets/app.js +1071 -98
- package/templates/dashboard/assets/app.manifest.json +1 -0
- package/templates/dashboard/assets/css-src/00-foundation.css +12 -6
- package/templates/dashboard/assets/css-src/10-panels-flow.css +2 -2
- package/templates/dashboard/assets/css-src/30-task-index.css +21 -13
- package/templates/dashboard/assets/css-src/31-archive.css +94 -0
- package/templates/dashboard/assets/css-src/32-task-swimlane.css +487 -0
- package/templates/dashboard/assets/css-src/35-review-workspace.css +78 -0
- package/templates/dashboard/assets/css-src/40-detail-modules-migration.css +191 -14
- package/templates/dashboard/assets/css-src/50-responsive-overrides.css +23 -0
- package/templates/dashboard/assets/i18n.js +166 -2
- package/templates/development/README.md +9 -9
- package/templates/development/cross-repo-debugging.md +3 -3
- package/templates/development/external-context/service-template.md +1 -1
- package/templates/development/external-source-packs/README.md +2 -2
- package/templates/integrations/README.md +4 -4
- package/templates/integrations/api-contract.md +1 -1
- package/templates/integrations/event-contract.md +1 -1
- package/templates/integrations/third-party/vendor-template.md +1 -1
- package/templates/integrations/webhook-contract.md +1 -1
- package/templates/ledger/Harness-Ledger.md +1 -1
- package/templates/modules/module_brief.md +50 -0
- package/templates/modules/module_plan.md +49 -0
- package/templates/modules/registry_view.md +9 -0
- package/templates/modules/session_prompt_pack.md +55 -0
- package/templates/planning/brief.md +32 -8
- package/templates/planning/module_brief.md +28 -3
- package/templates/planning/module_plan.md +26 -11
- package/templates/planning/module_session_prompt.md +11 -2
- package/templates/planning/optional/slices/_slice-template/brief.md +28 -0
- package/templates/planning/review.md +1 -1
- package/templates/planning/visual_map.md +1 -1
- package/templates/reference/docs-library-standard.md +7 -7
- package/templates/reference/execution-workflow-standard.md +13 -0
- package/templates/reference/external-source-intake-standard.md +10 -10
- package/templates/reference/pull-request-standard.md +2 -2
- package/templates/reference/repo-governance-standard.md +1 -1
- package/templates/reference/review-routing-standard.md +4 -0
- package/templates/ssot/Module-Registry.md +4 -38
- package/templates/walkthrough/walkthrough-template.md +1 -1
- package/templates-zh-CN/AGENTS.md.template +27 -25
- package/templates-zh-CN/CLAUDE.md.template +1 -1
- package/templates-zh-CN/architecture/README.md +2 -2
- 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 +9 -9
- package/templates-zh-CN/development/cross-repo-debugging.md +3 -3
- package/templates-zh-CN/development/external-context/service-template.md +1 -1
- package/templates-zh-CN/development/external-source-packs/README.md +2 -2
- package/templates-zh-CN/integrations/README.md +4 -4
- package/templates-zh-CN/integrations/api-contract.md +1 -1
- package/templates-zh-CN/integrations/event-contract.md +1 -1
- package/templates-zh-CN/integrations/third-party/vendor-template.md +1 -1
- package/templates-zh-CN/integrations/webhook-contract.md +1 -1
- 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/modules/module_brief.md +47 -0
- package/templates-zh-CN/modules/module_plan.md +48 -0
- package/templates-zh-CN/modules/registry_view.md +9 -0
- package/templates-zh-CN/modules/session_prompt_pack.md +50 -0
- package/templates-zh-CN/planning/INDEX.md +1 -0
- package/templates-zh-CN/planning/brief.md +26 -7
- package/templates-zh-CN/planning/module_brief.md +24 -2
- package/templates-zh-CN/planning/module_plan.md +35 -29
- package/templates-zh-CN/planning/module_session_prompt.md +15 -11
- package/templates-zh-CN/planning/optional/slices/_slice-template/brief.md +28 -11
- package/templates-zh-CN/planning/review.md +1 -1
- package/templates-zh-CN/reference/adversarial-review-standard.md +1 -1
- package/templates-zh-CN/reference/delivery-operating-model-standard.md +3 -3
- package/templates-zh-CN/reference/docs-library-standard.md +27 -27
- package/templates-zh-CN/reference/execution-workflow-standard.md +12 -2
- package/templates-zh-CN/reference/external-source-intake-standard.md +10 -10
- package/templates-zh-CN/reference/harness-ledger-standard.md +3 -3
- package/templates-zh-CN/reference/pull-request-standard.md +1 -1
- 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 +3 -0
- package/templates-zh-CN/reference/walkthrough-standard.md +2 -2
- 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 +2 -2
- package/templates-zh-CN/ssot/Module-Registry.md +5 -44
- package/templates-zh-CN/ssot/Regression-SSoT.md +2 -2
- package/templates-zh-CN/walkthrough/walkthrough-template.md +4 -4
|
@@ -1,43 +1,9 @@
|
|
|
1
1
|
# Module Registry
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Track module ownership, write scope, branch or worktree assignment, and coordinator sync state for parallel agent work.
|
|
6
|
-
|
|
7
|
-
## Status Legend
|
|
8
|
-
|
|
9
|
-
| Status | Meaning | Required Next Step |
|
|
10
|
-
| --- | --- | --- |
|
|
11
|
-
| unassigned | Module exists but has no active owner. | Assign owner before work starts. |
|
|
12
|
-
| reserved | Owner and scope are assigned. | Open worktree or begin planning. |
|
|
13
|
-
| active | Module work is in progress. | Keep branch, plan, and blockers current. |
|
|
14
|
-
| handoff | Worker has produced a reviewable result. | Coordinator reviews and integrates. |
|
|
15
|
-
| merged | Module changes are integrated. | Link merge evidence and close residuals. |
|
|
16
|
-
| blocked | Module cannot proceed. | Record blocker owner and unblock condition. |
|
|
17
|
-
| archived | Module assignment is historical. | Keep archive pointer if needed. |
|
|
3
|
+
Generated from `harness.yaml` `modules.items`. Do not edit this view directly.
|
|
18
4
|
|
|
19
5
|
## Active Modules
|
|
20
6
|
|
|
21
|
-
| ID |
|
|
22
|
-
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
|
|
23
|
-
|
|
|
24
|
-
|
|
25
|
-
## Shared-File Register
|
|
26
|
-
|
|
27
|
-
| File | Current Owner | Coordination Rule | Active Consumers | Last Sync |
|
|
28
|
-
| --- | --- | --- | --- | --- |
|
|
29
|
-
| path/to/shared-file | coordinator | only coordinator edits, workers propose patches | M-000, M-001 | YYYY-MM-DD |
|
|
30
|
-
|
|
31
|
-
## Routing Rules
|
|
32
|
-
|
|
33
|
-
1. Define module path scope before assigning a worker.
|
|
34
|
-
2. Workers must not edit outside their assigned scope without coordinator approval.
|
|
35
|
-
3. Shared files need an explicit owner and sync rule before parallel work starts.
|
|
36
|
-
4. Move a module to `handoff` only when the worker provides evidence, residuals, and integration notes.
|
|
37
|
-
5. The coordinator owns final merge, shared-file reconciliation, and Delivery SSoT updates.
|
|
38
|
-
|
|
39
|
-
## Archive Rules
|
|
40
|
-
|
|
41
|
-
- Keep active, blocked, and handoff rows visible until integration completes.
|
|
42
|
-
- Archive merged module rows after the delivery or release closeout is stable.
|
|
43
|
-
- Preserve branch, worktree, task plan, and handoff evidence in the archive row.
|
|
7
|
+
| ID | Key | Title | Prefix | Branch | Current Step | Status | Owner | Scope | Shared | Depends On | Plan | Brief | Updated |
|
|
8
|
+
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
|
|
9
|
+
| none | none | none | none | none | none | planned | none | none | none | none | none | none | none |
|
|
@@ -56,7 +56,7 @@ One sentence describing what changed and why it matters.
|
|
|
56
56
|
|
|
57
57
|
| Artifact | Link |
|
|
58
58
|
| --- | --- |
|
|
59
|
-
| Task plan |
|
|
59
|
+
| Task plan | {{paths.harnessRoot}}/planning/tasks/.../task_plan.md |
|
|
60
60
|
| Feature or Delivery SSoT | F-000 or D-000 |
|
|
61
61
|
| Harness Ledger | HL-YYYY-MM-DD-001 |
|
|
62
62
|
| Task-local closeout | walkthrough.md |
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# [项目名称]
|
|
2
2
|
|
|
3
3
|
这个文件是 Agent 进入本仓库时的工作入口。它只负责说明硬规则和阅读路由;
|
|
4
|
-
详细规范放在 `
|
|
4
|
+
详细规范放在 `{{paths.harnessRoot}}/governance/standards/`,不要把操作手册全部塞进这里。
|
|
5
5
|
|
|
6
6
|
## 项目概况
|
|
7
7
|
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
|
|
14
14
|
## 不可违反的规则
|
|
15
15
|
|
|
16
|
-
1. 遵守 `
|
|
16
|
+
1. 遵守 `{{paths.harnessRoot}}/governance/standards/engineering-standard.md` 中的架构边界。
|
|
17
17
|
2. 不提交密钥、令牌、私有接口、用户隐私数据或生产凭据。
|
|
18
|
-
3. 非平凡任务先用 Harness CLI 在 `
|
|
18
|
+
3. 非平凡任务先用 Harness CLI 在 `{{paths.harnessRoot}}/planning/tasks/` 下建立任务目录。
|
|
19
19
|
4. 声称完成前必须记录证据。
|
|
20
20
|
5. 保护无关工作区改动,不回滚任务范围外文件。
|
|
21
21
|
6. 已验证的、有意义的工作切片要主动提交。除非用户明确暂停提交、检查失败、dirty 归属不清,或安全边界导致无法形成干净提交,否则不要把已完成工作只留在未提交文件里;不能提交时,必须在 progress、handoff 或 closeout 中写明 no-commit reason、owner 和下一步。不要把无关 dirty 改动混入本任务提交。
|
|
@@ -27,23 +27,23 @@
|
|
|
27
27
|
|
|
28
28
|
| 任务类型 | 先读文件 |
|
|
29
29
|
| --- | --- |
|
|
30
|
-
| 架构、核心模块、跨模块改动 | `
|
|
31
|
-
| 系统地图、服务职责、外部系统关系 | `
|
|
32
|
-
| 本地开发、mock、stub、跨仓调试 | `
|
|
33
|
-
| API、event、webhook、SDK、第三方契约 | `
|
|
34
|
-
| 测试、冒烟、回归 | `
|
|
35
|
-
| 开发执行、提交、PR、发布 | `
|
|
36
|
-
| 创建或推进任务 | `
|
|
30
|
+
| 架构、核心模块、跨模块改动 | `{{paths.harnessRoot}}/governance/standards/engineering-standard.md` |
|
|
31
|
+
| 系统地图、服务职责、外部系统关系 | `{{paths.harnessRoot}}/context/architecture/README.md`、`{{paths.harnessRoot}}/context/architecture/service-catalog.md` |
|
|
32
|
+
| 本地开发、mock、stub、跨仓调试 | `{{paths.harnessRoot}}/context/development/README.md`、`{{paths.harnessRoot}}/context/development/codebase-map.md` |
|
|
33
|
+
| API、event、webhook、SDK、第三方契约 | `{{paths.harnessRoot}}/context/integrations/README.md` 和相关契约文件 |
|
|
34
|
+
| 测试、冒烟、回归 | `{{paths.harnessRoot}}/governance/standards/testing-standard.md`、`{{paths.harnessRoot}}/governance/regression/Regression-SSoT.md` |
|
|
35
|
+
| 开发执行、提交、PR、发布 | `{{paths.harnessRoot}}/governance/standards/execution-workflow-standard.md`、`{{paths.harnessRoot}}/governance/standards/repo-governance-standard.md`、`{{paths.harnessRoot}}/governance/standards/pull-request-standard.md`、`{{paths.harnessRoot}}/governance/standards/ci-cd-standard.md` |
|
|
36
|
+
| 创建或推进任务 | `{{paths.harnessRoot}}/planning/tasks/` 下的当前任务目录;如果本项目已配置 Harness CLI,使用 `harness new-task` / lifecycle 命令 |
|
|
37
37
|
| Brief、Execution Strategy、Visual Map | 当前任务的 `brief.md`、`execution_strategy.md`、`visual_map.md` |
|
|
38
38
|
| 长程任务 | 当前任务的 `long-running-task-contract.md`(如存在) |
|
|
39
|
-
| reviewer、subagent、对抗性审查 | 当前任务 `review.md`、`
|
|
40
|
-
| 多人协作、多仓交付、阶段性交付 | `
|
|
41
|
-
| 模块并行 | `
|
|
42
|
-
| 文档治理或 Harness 更新 | `
|
|
43
|
-
| 外部资料摄取 | `
|
|
44
|
-
| Regression SSoT 维护 | `
|
|
45
|
-
| 收口、walkthrough、Lessons | `
|
|
46
|
-
| Worktree、并行开发隔离 | `
|
|
39
|
+
| reviewer、subagent、对抗性审查 | 当前任务 `review.md`、`{{paths.harnessRoot}}/governance/standards/review-routing-standard.md` |
|
|
40
|
+
| 多人协作、多仓交付、阶段性交付 | `{{paths.harnessRoot}}/governance/standards/delivery-operating-model-standard.md`、`{{paths.harnessRoot}}/planning/Delivery-SSoT.md` |
|
|
41
|
+
| 模块并行 | `{{paths.harnessRoot}}/harness.yaml`、生成的 `{{paths.harnessRoot}}/planning/modules/Module-Registry.md`、模块 `brief.md` 和相关 `module_plan.md` |
|
|
42
|
+
| 文档治理或 Harness 更新 | `{{paths.harnessRoot}}/governance/standards/docs-library-standard.md`、`{{paths.harnessRoot}}/harness.yaml` |
|
|
43
|
+
| 外部资料摄取 | `{{paths.harnessRoot}}/governance/standards/external-source-intake-standard.md` |
|
|
44
|
+
| Regression SSoT 维护 | `{{paths.harnessRoot}}/governance/standards/regression-ssot-governance.md` |
|
|
45
|
+
| 收口、walkthrough、Lessons | `{{paths.harnessRoot}}/governance/standards/walkthrough-standard.md`、当前任务 `walkthrough.md`、当前任务 `lesson_candidates.md`、`{{paths.harnessRoot}}/governance/lessons/` |
|
|
46
|
+
| Worktree、并行开发隔离 | `{{paths.harnessRoot}}/governance/standards/worktree-standard.md` |
|
|
47
47
|
|
|
48
48
|
## 标准执行流程
|
|
49
49
|
|
|
@@ -69,17 +69,19 @@
|
|
|
69
69
|
- worker subagent 需要用户授权一次,并记录到 `execution_strategy.md`;之后只可在同一任务、同一范围、同一 worktree/branch 内复用。
|
|
70
70
|
- 共享 ledger、registry 和 SSoT 默认由 coordinator 维护,除非明确登记锁。
|
|
71
71
|
- worker 交接必须包含分支或 worktree、改动文件、检查、证据和残余风险。
|
|
72
|
+
- 模块注册以 `{{paths.harnessRoot}}/harness.yaml` 的 `modules.items` 为准。`Module-Registry.md` 是生成视图,不要把它当作手写事实源。
|
|
73
|
+
- 模块根目录默认只拥有 `brief.md` 和 `module_plan.md`。`execution_strategy.md`、`visual_map.md`、`review.md`、`walkthrough.md` 等执行合同属于具体任务目录,包括 `{{paths.harnessRoot}}/planning/modules/<key>/tasks/<task-id>/`。
|
|
72
74
|
|
|
73
75
|
## 单一事实源
|
|
74
76
|
|
|
75
|
-
- Harness Ledger:`
|
|
76
|
-
- Delivery SSoT:`
|
|
77
|
-
- Module Registry:`
|
|
78
|
-
- Regression SSoT:`
|
|
79
|
-
- Cadence Ledger:`
|
|
77
|
+
- Harness Ledger:`{{paths.harnessRoot}}/governance/generated/Harness-Ledger.md`(任务生命周期总账,由 CLI 生成)
|
|
78
|
+
- Delivery SSoT:`{{paths.harnessRoot}}/planning/Delivery-SSoT.md`
|
|
79
|
+
- Module Registry:`{{paths.harnessRoot}}/harness.yaml` 的 `modules.items`;生成视图在 `{{paths.harnessRoot}}/planning/modules/Module-Registry.md`
|
|
80
|
+
- Regression SSoT:`{{paths.harnessRoot}}/governance/regression/Regression-SSoT.md`
|
|
81
|
+
- Cadence Ledger:`{{paths.harnessRoot}}/governance/regression/Cadence-Ledger.md`
|
|
80
82
|
- Lesson Candidates:当前任务 `lesson_candidates.md`
|
|
81
|
-
- Lesson Detail Docs:`
|
|
82
|
-
- Generated Closeout Index:`
|
|
83
|
+
- Lesson Detail Docs:`{{paths.harnessRoot}}/governance/lessons/`
|
|
84
|
+
- Generated Closeout Index:`{{paths.harnessRoot}}/governance/generated/Closeout-Index.md`
|
|
83
85
|
|
|
84
86
|
## 本地命令
|
|
85
87
|
|
|
@@ -6,7 +6,7 @@ Claude Code 开始任何任务前应当:
|
|
|
6
6
|
|
|
7
7
|
1. 先读取 `AGENTS.md`。
|
|
8
8
|
2. 按 `AGENTS.md` 的任务阅读矩阵选择当前任务需要的文件。
|
|
9
|
-
3. 只加载必要的 `
|
|
9
|
+
3. 只加载必要的 `{{paths.harnessRoot}}/governance/standards/` 标准文件和任务目录上下文。
|
|
10
10
|
4. 把本文件视为 Claude Code 兼容入口,而不是第二份项目规范。
|
|
11
11
|
|
|
12
12
|
不要在这里复制项目规则。长期有效的项目指令应维护在 `AGENTS.md` 及其引用文档中,避免两套规则逐渐漂移。
|
|
@@ -24,8 +24,8 @@ Keep the English field names and file names because CLI checks rely on them.
|
|
|
24
24
|
## Boundary
|
|
25
25
|
|
|
26
26
|
- 系统结构、服务责任、归属关系、关键流程放这里。
|
|
27
|
-
- Payload、endpoint 参数、event schema、SDK 细节放 `
|
|
28
|
-
- 本地启动、mock、stub、跨仓调试经验放 `
|
|
27
|
+
- Payload、endpoint 参数、event schema、SDK 细节放 `{{paths.harnessRoot}}/context/integrations/`。
|
|
28
|
+
- 本地启动、mock、stub、跨仓调试经验放 `{{paths.harnessRoot}}/context/development/`。
|
|
29
29
|
|
|
30
30
|
## Structure Contract
|
|
31
31
|
|
|
@@ -12,6 +12,6 @@ Confidence: low
|
|
|
12
12
|
|
|
13
13
|
## Boundary Rule
|
|
14
14
|
|
|
15
|
-
这个目录只放服务责任、接口摘要和跳转链接。Payload、auth、error code、event schema 放 `
|
|
15
|
+
这个目录只放服务责任、接口摘要和跳转链接。Payload、auth、error code、event schema 放 `{{paths.harnessRoot}}/context/integrations/`。
|
|
16
16
|
|
|
17
|
-
一个服务或微服务只占一行。只要该服务影响本仓开发或判断,就补 `services/<service-key>.md`、`
|
|
17
|
+
一个服务或微服务只占一行。只要该服务影响本仓开发或判断,就补 `services/<service-key>.md`、`{{paths.harnessRoot}}/context/development/external-context/<service-key>.md` 和相关 `{{paths.harnessRoot}}/context/integrations/<contract>.md` 链接。
|
|
@@ -9,7 +9,7 @@ Confidence: low
|
|
|
9
9
|
|
|
10
10
|
| Catalog Row | Development Context | Source Pack | Integration Contracts | Last Verified | Confidence |
|
|
11
11
|
| --- | --- | --- | --- | --- | --- |
|
|
12
|
-
| `
|
|
12
|
+
| `{{paths.harnessRoot}}/context/architecture/service-catalog.md` | `{{paths.harnessRoot}}/context/development/external-context/<service-key>.md` | `{{paths.harnessRoot}}/context/development/external-source-packs/<source-key>/README.md` 或 N/A | `{{paths.harnessRoot}}/context/integrations/<contract>.md` | unknown | low |
|
|
13
13
|
|
|
14
14
|
## Responsibility
|
|
15
15
|
|
|
@@ -14,8 +14,8 @@ Keep the English field names and section headings because CLI checks rely on the
|
|
|
14
14
|
## Boundary
|
|
15
15
|
|
|
16
16
|
- 本地启动、代码地图、外部服务开发摘要、mock、stub、跨仓调试放这里。
|
|
17
|
-
- 长期系统结构放 `
|
|
18
|
-
- API、event、webhook 等具体契约放 `
|
|
17
|
+
- 长期系统结构放 `{{paths.harnessRoot}}/context/architecture/`。
|
|
18
|
+
- API、event、webhook 等具体契约放 `{{paths.harnessRoot}}/context/integrations/`。
|
|
19
19
|
|
|
20
20
|
## Structure Contract
|
|
21
21
|
|
|
@@ -32,21 +32,21 @@ Keep the English field names and section headings because CLI checks rely on the
|
|
|
32
32
|
|
|
33
33
|
如果本仓依赖多个微服务,不要把所有外部知识写进一个大文档。只要某个外部服务会影响本仓开发或测试,就创建:
|
|
34
34
|
|
|
35
|
-
- `
|
|
36
|
-
- `
|
|
37
|
-
- `
|
|
35
|
+
- `{{paths.harnessRoot}}/context/architecture/services/<service-key>.md`:该服务是什么、负责什么。
|
|
36
|
+
- `{{paths.harnessRoot}}/context/development/external-context/<service-key>.md`:本仓开发时如何 mock、stub、调试它。
|
|
37
|
+
- `{{paths.harnessRoot}}/context/integrations/<contract>.md`:具体 API/event/webhook 契约。
|
|
38
38
|
|
|
39
39
|
`context/development` 只放“开发时怎么处理这个外部服务”。不要在这里维护完整系统拓扑,也不要把 payload schema 塞进来。
|
|
40
40
|
|
|
41
41
|
## External Source Pack Rule
|
|
42
42
|
|
|
43
|
-
如果外部团队给了多份文档、截图、导出包、会议纪要或链接,不要直接塞进 `context/{architecture,development,integrations}`。先读 `
|
|
43
|
+
如果外部团队给了多份文档、截图、导出包、会议纪要或链接,不要直接塞进 `context/{architecture,development,integrations}`。先读 `{{paths.harnessRoot}}/governance/standards/external-source-intake-standard.md`,再决定是否创建 `external-source-packs/<source-key>/`。
|
|
44
44
|
|
|
45
45
|
`external-source-packs/` 只负责资料索引、摘要和投影状态。稳定结论必须回写到:
|
|
46
46
|
|
|
47
|
-
- `
|
|
48
|
-
- `
|
|
49
|
-
- `
|
|
47
|
+
- `{{paths.harnessRoot}}/context/architecture/services/<service-key>.md`
|
|
48
|
+
- `{{paths.harnessRoot}}/context/development/external-context/<service-key>.md`
|
|
49
|
+
- `{{paths.harnessRoot}}/context/integrations/<contract>.md`
|
|
50
50
|
|
|
51
51
|
## External Context Index
|
|
52
52
|
|
|
@@ -8,9 +8,9 @@ Confidence: low
|
|
|
8
8
|
## Debug Flow
|
|
9
9
|
|
|
10
10
|
1. 先定位失败的 interface 或 flow。
|
|
11
|
-
2. 读 `
|
|
12
|
-
3. 读对应的 `
|
|
13
|
-
4. 读 `
|
|
11
|
+
2. 读 `{{paths.harnessRoot}}/context/architecture/service-catalog.md`,确认归属和上下游服务。
|
|
12
|
+
3. 读对应的 `{{paths.harnessRoot}}/context/integrations/` 契约。
|
|
13
|
+
4. 读 `{{paths.harnessRoot}}/context/development/external-context/<service-key>.md`,使用其中的 mock、stub 和本地调试说明。
|
|
14
14
|
|
|
15
15
|
## Known Failure Modes
|
|
16
16
|
|
|
@@ -9,7 +9,7 @@ Confidence: low
|
|
|
9
9
|
|
|
10
10
|
| Service Profile | Source Pack | Integration Contracts | Last Verified | Confidence |
|
|
11
11
|
| --- | --- | --- | --- | --- |
|
|
12
|
-
| `
|
|
12
|
+
| `{{paths.harnessRoot}}/context/architecture/services/<service-key>.md` | `{{paths.harnessRoot}}/context/development/external-source-packs/<source-key>/README.md` 或 N/A | `{{paths.harnessRoot}}/context/integrations/<contract>.md` | unknown | low |
|
|
13
13
|
|
|
14
14
|
## Development Use
|
|
15
15
|
|
|
@@ -7,9 +7,9 @@ Confidence: low
|
|
|
7
7
|
|
|
8
8
|
## Purpose
|
|
9
9
|
|
|
10
|
-
这个目录只承载外部资料的摄取、索引和摘要。稳定事实必须投影到 `context/architecture`、`
|
|
10
|
+
这个目录只承载外部资料的摄取、索引和摘要。稳定事实必须投影到 `context/architecture`、`{{paths.harnessRoot}}/context/development/external-context` 或 `context/integrations` 后才算进入 Harness 执行上下文。
|
|
11
11
|
|
|
12
|
-
先读 `
|
|
12
|
+
先读 `{{paths.harnessRoot}}/governance/standards/external-source-intake-standard.md`,再新增资料包。
|
|
13
13
|
|
|
14
14
|
## Source Packs
|
|
15
15
|
|
|
@@ -13,8 +13,8 @@ Keep the English field names and section headings because CLI checks rely on the
|
|
|
13
13
|
|
|
14
14
|
## Boundary
|
|
15
15
|
|
|
16
|
-
- 服务拓扑和职责归属放 `
|
|
17
|
-
- 开发 mock 和调试说明放 `
|
|
16
|
+
- 服务拓扑和职责归属放 `{{paths.harnessRoot}}/context/architecture/`。
|
|
17
|
+
- 开发 mock 和调试说明放 `{{paths.harnessRoot}}/context/development/`。
|
|
18
18
|
- endpoint、payload、error、auth、event、webhook、SDK 契约放这里。
|
|
19
19
|
|
|
20
20
|
## Structure Contract
|
|
@@ -30,8 +30,8 @@ Keep the English field names and section headings because CLI checks rely on the
|
|
|
30
30
|
|
|
31
31
|
每个接口契约必须是独立文件,并链接回对应服务:
|
|
32
32
|
|
|
33
|
-
- 服务职责和上下游关系:`
|
|
34
|
-
- 本地 mock / stub / debug:`
|
|
33
|
+
- 服务职责和上下游关系:`{{paths.harnessRoot}}/context/architecture/service-catalog.md` 或 `services/<service-key>.md`
|
|
34
|
+
- 本地 mock / stub / debug:`{{paths.harnessRoot}}/context/development/external-context/<service-key>.md`
|
|
35
35
|
- 具体 payload、auth、error、contract test:本文件夹
|
|
36
36
|
|
|
37
37
|
不要在一个“接口说明”大文档里混写多个服务。多个微服务就维护多个契约文件;README 里的 Contract Index 负责让人和 Agent 快速定位。
|
|
@@ -13,7 +13,7 @@ API
|
|
|
13
13
|
|
|
14
14
|
| Service Profile | Development Context | Contract Index | Last Verified | Confidence |
|
|
15
15
|
| --- | --- | --- | --- | --- |
|
|
16
|
-
| `
|
|
16
|
+
| `{{paths.harnessRoot}}/context/architecture/services/<service-key>.md` | `{{paths.harnessRoot}}/context/development/external-context/<service-key>.md` | `{{paths.harnessRoot}}/context/integrations/README.md` | unknown | low |
|
|
17
17
|
|
|
18
18
|
## Auth
|
|
19
19
|
|
|
@@ -13,7 +13,7 @@ Event
|
|
|
13
13
|
|
|
14
14
|
| Service Profile | Development Context | Contract Index | Last Verified | Confidence |
|
|
15
15
|
| --- | --- | --- | --- | --- |
|
|
16
|
-
| `
|
|
16
|
+
| `{{paths.harnessRoot}}/context/architecture/services/<service-key>.md` | `{{paths.harnessRoot}}/context/development/external-context/<service-key>.md` | `{{paths.harnessRoot}}/context/integrations/README.md` | unknown | low |
|
|
17
17
|
|
|
18
18
|
## Topic / Channel
|
|
19
19
|
|
|
@@ -13,7 +13,7 @@ Third-party service
|
|
|
13
13
|
|
|
14
14
|
| Service Profile | Development Context | Contract Index | Last Verified | Confidence |
|
|
15
15
|
| --- | --- | --- | --- | --- |
|
|
16
|
-
| `
|
|
16
|
+
| `{{paths.harnessRoot}}/context/architecture/services/<vendor-key>.md` | `{{paths.harnessRoot}}/context/development/external-context/<vendor-key>.md` | `{{paths.harnessRoot}}/context/integrations/README.md` | unknown | low |
|
|
17
17
|
|
|
18
18
|
## Auth
|
|
19
19
|
|
|
@@ -13,7 +13,7 @@ Webhook
|
|
|
13
13
|
|
|
14
14
|
| Service Profile | Development Context | Contract Index | Last Verified | Confidence |
|
|
15
15
|
| --- | --- | --- | --- | --- |
|
|
16
|
-
| `
|
|
16
|
+
| `{{paths.harnessRoot}}/context/architecture/services/<service-key>.md` | `{{paths.harnessRoot}}/context/development/external-context/<service-key>.md` | `{{paths.harnessRoot}}/context/integrations/README.md` | unknown | low |
|
|
17
17
|
|
|
18
18
|
## Auth
|
|
19
19
|
|
|
@@ -12,7 +12,7 @@ Repo Governance / CI-CD 变化仍通过对应 reference 和任务证据路由。
|
|
|
12
12
|
|
|
13
13
|
| ID | Scope | Module | Task | State | Queues | Plan | Review | Lessons Check | Closeout | Residual | Updated |
|
|
14
14
|
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
|
|
15
|
-
| HL-YYYY-MM-DD-001 | task | none | 短任务标题 | planned | none |
|
|
15
|
+
| HL-YYYY-MM-DD-001 | task | none | 短任务标题 | planned | none | {{paths.harnessRoot}}/planning/tasks/.../task_plan.md | pending | pending | pending | none | YYYY-MM-DD |
|
|
16
16
|
|
|
17
17
|
## 字段规则
|
|
18
18
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
- **ID**: L-[YYYY-MM-DD-NNN]
|
|
6
6
|
- **日期**: YYYY-MM-DD
|
|
7
|
-
- **来源**: `
|
|
7
|
+
- **来源**: `{{paths.harnessRoot}}/planning/tasks/<task>/walkthrough.md`
|
|
8
8
|
- **类型**: arch-change / process-change
|
|
9
9
|
- **目标**: [受影响的模块、流程、reference、template 或 checker]
|
|
10
10
|
- **提出者**: [agent session / model / human]
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
- **ID**: L-[YYYY-MM-DD-NNN]
|
|
6
6
|
- **日期**: YYYY-MM-DD
|
|
7
|
-
- **来源**: `
|
|
7
|
+
- **来源**: `{{paths.harnessRoot}}/planning/tasks/<task>/walkthrough.md`
|
|
8
8
|
- **类型**: new-doc
|
|
9
|
-
- **建议路径**: `
|
|
9
|
+
- **建议路径**: `{{paths.harnessRoot}}/governance/standards/[建议文件名].md`
|
|
10
10
|
- **提出者**: [agent session / model / human]
|
|
11
11
|
|
|
12
12
|
## 背景
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
## 建议路径
|
|
25
25
|
|
|
26
|
-
`
|
|
26
|
+
`{{paths.harnessRoot}}/governance/standards/[建议文件名].md`
|
|
27
27
|
|
|
28
28
|
## 建议文档内容
|
|
29
29
|
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
- **ID**: L-[YYYY-MM-DD-NNN]
|
|
6
6
|
- **日期**: YYYY-MM-DD
|
|
7
|
-
- **来源**: `
|
|
7
|
+
- **来源**: `{{paths.harnessRoot}}/planning/tasks/<task>/walkthrough.md`
|
|
8
8
|
- **类型**: ref-change
|
|
9
|
-
- **目标**: `
|
|
9
|
+
- **目标**: `{{paths.harnessRoot}}/governance/standards/[目标文件].md`
|
|
10
10
|
- **提出者**: [agent session / model / human]
|
|
11
11
|
|
|
12
12
|
## 背景
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
- 当前是否有其他 pending 条目指向同一目标:是 / 否
|
|
43
43
|
- 如果有,涉及条目:L-[XXX]
|
|
44
44
|
- 本文档是否已考虑冲突:是 / 否
|
|
45
|
-
- 基于版本:当前正式 reference(`
|
|
45
|
+
- 基于版本:当前正式 reference(`{{paths.harnessRoot}}/governance/standards/[目标文件].md`)@ YYYY-MM-DD
|
|
46
46
|
|
|
47
47
|
## 完整副本
|
|
48
48
|
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
|
|
51
51
|
---
|
|
52
52
|
<!-- 完整副本开始 -->
|
|
53
|
-
<!-- 基于:
|
|
53
|
+
<!-- 基于: {{paths.harnessRoot}}/governance/standards/[目标文件].md @ YYYY-MM-DD -->
|
|
54
54
|
<!-- 本副本独立于其他 pending 改动 -->
|
|
55
55
|
|
|
56
56
|
[完整的修改后文档内容]
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# {{TASK_TITLE}} 模块
|
|
2
|
+
|
|
3
|
+
## 模块 Key
|
|
4
|
+
|
|
5
|
+
`{{TASK_ID}}`
|
|
6
|
+
|
|
7
|
+
## 创建日期
|
|
8
|
+
|
|
9
|
+
{{DATE}}
|
|
10
|
+
|
|
11
|
+
## 一句话结果
|
|
12
|
+
|
|
13
|
+
用一句话说明这个模块持续维护什么结果。
|
|
14
|
+
|
|
15
|
+
## 完成后能得到什么
|
|
16
|
+
|
|
17
|
+
用 100-300 字说明这个模块健康运行时,用户、项目、coordinator 或 worker agents
|
|
18
|
+
能得到什么。说明它能改善哪些决策、交付协调、验证或交接工作。聚焦模块带来的运行结果,
|
|
19
|
+
不要展开内部流程。
|
|
20
|
+
|
|
21
|
+
## 交付物
|
|
22
|
+
|
|
23
|
+
- 可见产物:
|
|
24
|
+
- 负责范围:
|
|
25
|
+
- 验证证据:
|
|
26
|
+
|
|
27
|
+
## 第一眼应该看什么
|
|
28
|
+
|
|
29
|
+
写明人打开模块后应该先读哪个 module plan、任务列表、证据或生成产物。
|
|
30
|
+
|
|
31
|
+
## 模块职责
|
|
32
|
+
|
|
33
|
+
说明这个模块负责什么,以及为什么需要独立管理。
|
|
34
|
+
|
|
35
|
+
## 边界
|
|
36
|
+
|
|
37
|
+
- 负责:本模块拥有的目录、服务或文档区域。
|
|
38
|
+
- 共享面:需要 coordinator 同步的文件。
|
|
39
|
+
- 不负责:相邻模块或未声明的全局文件。
|
|
40
|
+
|
|
41
|
+
## 完成判断
|
|
42
|
+
|
|
43
|
+
列出能证明这个模块 brief 仍然反映当前模块合同的条件。执行细节保留在 `module_plan.md`。
|
|
44
|
+
|
|
45
|
+
## 当前工作
|
|
46
|
+
|
|
47
|
+
列出当前模块任务,或指向 `module_plan.md`。
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# {{TASK_TITLE}} 模块计划
|
|
2
|
+
|
|
3
|
+
## 模块身份
|
|
4
|
+
|
|
5
|
+
- 模块 Key:`{{TASK_ID}}`
|
|
6
|
+
- 负责人:coordinator
|
|
7
|
+
- 分支:
|
|
8
|
+
- 写入范围:
|
|
9
|
+
- 共享面:
|
|
10
|
+
- 依赖模块:
|
|
11
|
+
|
|
12
|
+
## 边界
|
|
13
|
+
|
|
14
|
+
- 可以编辑:
|
|
15
|
+
- 禁止编辑:
|
|
16
|
+
- 外部依赖:
|
|
17
|
+
|
|
18
|
+
## 步骤
|
|
19
|
+
|
|
20
|
+
| 步骤 ID | 名称 | 状态 | 任务计划 | 依赖 |
|
|
21
|
+
| --- | --- | --- | --- | --- |
|
|
22
|
+
| MOD-01 | 定义模块运行合同 | planned | none | none |
|
|
23
|
+
|
|
24
|
+
## 活跃任务
|
|
25
|
+
|
|
26
|
+
| 任务 | 状态 | 负责人 | 证据 | 备注 |
|
|
27
|
+
| --- | --- | --- | --- | --- |
|
|
28
|
+
| none | planned | coordinator | none | 有模块任务后替换此行。 |
|
|
29
|
+
|
|
30
|
+
## 验证
|
|
31
|
+
|
|
32
|
+
| 检查 | 命令或证据 | 必需 |
|
|
33
|
+
| --- | --- | --- |
|
|
34
|
+
| 模块任务合同 | `harness check --profile target-project .` | yes |
|
|
35
|
+
|
|
36
|
+
## 交接
|
|
37
|
+
|
|
38
|
+
- 分支:
|
|
39
|
+
- Commit SHA:
|
|
40
|
+
- 检查:
|
|
41
|
+
- 变更文件:
|
|
42
|
+
- 残余风险:
|
|
43
|
+
- 需要 coordinator 同步:
|
|
44
|
+
|
|
45
|
+
## 模板边界
|
|
46
|
+
|
|
47
|
+
模块根目录默认只拥有 `brief.md` 和 `module_plan.md`。`execution_strategy.md`、
|
|
48
|
+
`visual_map.md`、`review.md`、`walkthrough.md` 等执行合同属于具体任务目录。
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Module Registry
|
|
2
|
+
|
|
3
|
+
由 `harness.yaml` 的 `modules.items` 生成。不要直接编辑这个视图。
|
|
4
|
+
|
|
5
|
+
## 活跃模块
|
|
6
|
+
|
|
7
|
+
| ID | Key | Title | Prefix | Branch | Current Step | Status | Owner | Scope | Shared | Depends On | Plan | Brief | Updated |
|
|
8
|
+
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
|
|
9
|
+
| none | none | none | none | none | none | planned | none | none | none | none | none | none | none |
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# 模块会话提示词包
|
|
2
|
+
|
|
3
|
+
coordinator 为已注册模块启动工作时使用这份全局提示词包。开始前用 `harness.yaml`、
|
|
4
|
+
生成的 `Module-Registry.md` 和模块 `module_plan.md` 中的真实信息替换占位内容。
|
|
5
|
+
|
|
6
|
+
## 上下文包
|
|
7
|
+
|
|
8
|
+
- 项目:[project]
|
|
9
|
+
- 模块 Key:[module]
|
|
10
|
+
- 任务目录:[path]
|
|
11
|
+
- 模块计划:[path]
|
|
12
|
+
- 分配的 worktree:[path]
|
|
13
|
+
- 分配的分支:[branch]
|
|
14
|
+
|
|
15
|
+
## 目标
|
|
16
|
+
|
|
17
|
+
[写一个具体的模块结果。]
|
|
18
|
+
|
|
19
|
+
## 写入范围
|
|
20
|
+
|
|
21
|
+
只允许编辑:
|
|
22
|
+
|
|
23
|
+
- [path]
|
|
24
|
+
|
|
25
|
+
除非 coordinator 明确分配范围,不要编辑共享 SSoT、coordinator 负责的集成文件或无关模块。
|
|
26
|
+
|
|
27
|
+
## 必需输出
|
|
28
|
+
|
|
29
|
+
- 分支名
|
|
30
|
+
- Commit SHA
|
|
31
|
+
- 变更文件
|
|
32
|
+
- 已运行检查及结果
|
|
33
|
+
- 残余风险
|
|
34
|
+
- 需要 coordinator 同步的事项
|
|
35
|
+
|
|
36
|
+
## 审查与状态规则
|
|
37
|
+
|
|
38
|
+
- 汇报时区分 `task.state`、`lifecycleState`、`reviewStatus` 和 `closeoutStatus`。
|
|
39
|
+
- `done` 只表示实现步骤完成;有 closeout 证据后才是 `closed`。
|
|
40
|
+
- 使用当前任务 `visual_map.md` 阶段表作为生命周期地图。切片结束时检查当前 gate phase;只有 `Actor` 为 `agent` 的 `Exit Command` 才由 Agent 执行。
|
|
41
|
+
- 需要审查时更新 `review.md`。人工审查完成必须通过本地 dashboard workbench,或由 coordinator 执行 `harness review-confirm`;存在开放 P0/P1/P2 finding 时不得确认。
|
|
42
|
+
|
|
43
|
+
## 共享同步规则
|
|
44
|
+
|
|
45
|
+
除非 coordinator 分配共享锁,worker 会话不得更新 Module Registry、Harness Ledger、
|
|
46
|
+
Closeout Index、Regression SSoT 或 Cadence Ledger。
|
|
47
|
+
|
|
48
|
+
## 暂停规则
|
|
49
|
+
|
|
50
|
+
如果请求需要超出已分配范围、处理无关 dirty 文件、做产品决策或改变共享合同,暂停并汇报。
|