@tea-agent/loop-agent 0.10.0 → 0.11.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/AGENTS.md +10 -2
- package/CHANGELOG.md +67 -25
- package/README.md +82 -11
- package/dist/application/dag/args.js +1 -12
- package/dist/application/dag/generate-task-dag.js +23 -2
- package/dist/application/dag/run-dag.js +1 -27
- package/dist/application/dag/validate-dag.js +2 -2
- package/dist/application/loop/run-action.js +0 -4
- package/dist/cli/command-definitions.js +44 -16
- package/dist/cli/program.js +40 -23
- package/dist/cli/update/notifier.js +117 -0
- package/dist/cli/update/npm-client.js +151 -0
- package/dist/cli/update/policy.js +58 -0
- package/dist/cli/update/state.js +68 -0
- package/dist/cli.js +33 -0
- package/dist/commands/cursor-prompt.js +42 -82
- package/dist/commands/dag-approve.js +36 -0
- package/dist/commands/delegate.js +75 -77
- package/dist/commands/doctor.js +0 -18
- package/dist/commands/init.js +476 -91
- package/dist/commands/instructions.js +7 -10
- package/dist/commands/loop.js +4 -20
- package/dist/commands/plan.js +50 -0
- package/dist/executors/config-core.js +0 -51
- package/dist/executors/dag-pi-executor.js +1 -1
- package/dist/executors/dag.js +0 -1
- package/dist/executors/index.js +0 -2
- package/dist/executors/model-routing.js +9 -9
- package/dist/executors/shell-executor.js +1 -1
- package/dist/governance/checks.js +6 -3
- package/dist/governance/exec-plans.js +545 -0
- package/dist/governance/manifest-types.js +24 -2
- package/dist/infrastructure/harness/loop-action-store.js +0 -3
- package/dist/records/harvest.js +2 -23
- package/dist/records/one-shot-runs.js +1 -1
- package/dist/shared/artifacts-core.js +24 -5
- package/dist/shared/output-truncation.js +37 -0
- package/dist/shared/package-metadata.js +353 -0
- package/dist/{executors/cursor-executor.js → sidecars/cursor-prompt/executor.js} +2 -42
- package/dist/sidecars/cursor-prompt/index.js +3 -0
- package/dist/sidecars/cursor-prompt/stream.js +121 -0
- package/dist/task/config-types.js +28 -12
- package/dist/task/delegate.js +9 -21
- package/dist/task/runtime.js +1 -2
- package/dist/worker/cli.js +29 -2
- package/dist/worker/delivery/final-verification.js +47 -11
- package/dist/worker/delivery/package.js +63 -10
- package/dist/worker/feature/run.js +60 -8
- package/dist/worker/loop-agent/loop-agent-client.js +329 -126
- package/dist/worker/observability/read-model.js +27 -1
- package/dist/worker/observe/static/app.js +326 -45
- package/dist/worker/observe/static/index.html +1 -1
- package/dist/worker/observe/static/styles.css +5 -4
- package/dist/worker/preflight.js +49 -1
- package/dist/worker/run-task/run-task.js +22 -12
- package/dist/worker/runner/run-ready.js +76 -12
- package/dist/worker/task-spec/schema.js +0 -1
- package/dist/workflows/dag/convergence/controller.js +1 -1
- package/dist/workflows/dag/executor-registry.js +0 -2
- package/dist/workflows/dag/init-hybrid.js +402 -25
- package/dist/workflows/dag/node-execution.js +61 -7
- package/dist/workflows/dag/runner.js +45 -17
- package/dist/workflows/dag/scheduler.js +7 -2
- package/dist/workflows/dag/sdd-embedded.js +128 -0
- package/dist/workflows/dag/skill-instructions.js +5 -4
- package/dist/workflows/dag/skill-snapshot.js +527 -0
- package/dist/workflows/dag/types.js +42 -9
- package/dist/workflows/dag/validate.js +5 -8
- package/dist/workflows/loop/actions/dag-action.js +0 -2
- package/dist/workflows/loop/actions/shared.js +1 -1
- package/dist/workflows/loop/actions.js +14 -31
- package/dist/workflows/loop/benchmark.js +1 -1
- package/dist/workflows/loop/index.js +1 -1
- package/dist/workflows/loop/policy/auto-policy.js +22 -14
- package/dist/workflows/loop/policy/path-patterns.js +13 -0
- package/docs/README.md +36 -33
- package/docs/agent-dag-recovery-playbook.md +1 -1
- package/docs/agent-dag-runner.md +2 -2
- package/docs/architecture/README.md +26 -0
- package/docs/architecture/dag-execution.md +134 -0
- package/docs/architecture/evolution.md +52 -0
- package/docs/architecture/facts-and-state.md +58 -0
- package/docs/architecture/runtime-boundaries.md +45 -17
- package/docs/architecture/system-overview.md +93 -0
- package/docs/architecture/worker-and-feature.md +81 -0
- package/docs/cursor-prompt-sidecar.md +36 -0
- package/docs/decisions/README.md +13 -1
- package/docs/design/README.md +42 -21
- package/docs/development-principles.md +2 -2
- package/docs/exec-plans/active/README.md +2 -2
- package/docs/exec-plans/completed/README.md +12 -0
- package/docs/feature-workflow.md +50 -4
- package/docs/harness-methodology-debugging.md +1 -1
- package/docs/harness-methodology-tdd.md +3 -3
- package/docs/init-surface.manifest.json +60 -25
- package/docs/loop-agent-harness.md +28 -4
- package/docs/progress/README.md +32 -1
- package/docs/reports/README.md +84 -18
- package/docs/skills/README.md +2 -1
- package/docs/skills/vetted-skill-registry.md +2 -1
- package/docs/templates/agent-dag-report.schema.json +6 -6
- package/docs/templates/agent-dag.base.json +0 -5
- package/docs/templates/agent-dag.final-verification.json +0 -5
- package/docs/templates/agent-dag.schema.json +1 -2
- package/docs/templates/agent-dag.supervised-implementation.json +1 -6
- package/docs/templates/frontend-design-contract.md +33 -0
- package/docs/templates/frontend-task-constraints.md +25 -0
- package/docs/templates/frontend-task-requirement.md +61 -0
- package/docs/templates/harness.schema.json +10 -12
- package/docs/templates/hybrid-dag.json +1 -6
- package/docs/templates/interactive-ui-round2-experiment.md +1 -1
- package/docs/templates/product-line/task.yaml +0 -1
- package/docs/templates/project-start-checklist.md +2 -2
- package/docs/templates/worker-dogfood-evidence.md +28 -0
- package/docs/templates/worker-dogfood-setup.md +20 -0
- package/docs/verification-matrix.md +10 -0
- package/examples/decision-gate-agent-dag.json +87 -33
- package/examples/example-dag.json +0 -5
- package/examples/hybrid-loop-agent-dag.json +0 -5
- package/harness.json +7 -15
- package/package.json +22 -46
- package/scripts/check-product-line-docs.sh +10 -7
- package/skills/agent-worker/SKILL.md +37 -0
- package/skills/agent-worker/references/agent-worker-operator.md +43 -0
- package/skills/frontend-design-review/SKILL.md +59 -0
- package/skills/frontend-design-review/references/review-checklist.md +37 -0
- package/skills/frontend-implementation/SKILL.md +51 -0
- package/skills/frontend-implementation/references/code-standards.md +34 -0
- package/skills/frontend-implementation/references/design-spec.md +46 -0
- package/skills/frontend-implementation/references/node-contracts.md +32 -0
- package/skills/frontend-review/SKILL.md +53 -0
- package/skills/frontend-review/references/review-findings.md +42 -0
- package/skills/frontend-verification/SKILL.md +40 -0
- package/skills/frontend-verification/references/verification-checklist.md +56 -0
- package/skills/grill-me/SKILL.md +10 -0
- package/skills/grill-with-docs/SKILL.md +88 -0
- package/skills/grill-with-docs/adr-format.md +47 -0
- package/skills/grill-with-docs/context-format.md +60 -0
- package/skills/loop-agent/SKILL.md +11 -9
- package/skills/loop-agent/references/command-reference.md +13 -15
- package/skills/loop-agent/references/docs-converge.md +126 -0
- package/skills/loop-agent/references/harness-policy.md +7 -7
- package/skills/loop-agent/references/hybrid-dag.md +15 -18
- package/skills/loop-agent/references/long-running-loop.md +4 -6
- package/skills/loop-agent/references/multi-worktree.md +6 -6
- package/skills/loop-agent/references/orchestrator-and-interventions.md +3 -3
- package/skills/loop-agent/references/pi-subagent-assisted-mode.md +14 -11
- package/skills/loop-agent/references/task-workflow.md +1 -1
- package/skills/using-git-worktrees/SKILL.md +215 -0
- package/dist/commands/cursor-worker.js +0 -43
- package/dist/cursor-worker-entry.js +0 -8
- package/dist/executors/cursor-artifacts.js +0 -33
- package/dist/executors/cursor-execution-log.js +0 -81
- package/dist/executors/cursor-executor-artifacts.js +0 -134
- package/dist/executors/cursor-run.js +0 -115
- package/dist/executors/cursor-tool.js +0 -94
- package/dist/executors/cursor-worker-client.js +0 -223
- package/dist/executors/cursor-worker-protocol.js +0 -18
- package/dist/executors/cursor-worker-server.js +0 -54
- package/dist/executors/cursor-worker.js +0 -3
- package/dist/executors/cursor.js +0 -6
- package/dist/executors/dag-cursor-executor.js +0 -87
- package/dist/workflows/loop/actions/cursor-fix.js +0 -191
- package/dist/workflows/loop/policy/cursor-fix-policy.js +0 -31
- package/docs/cursor-executor-usage.md +0 -25
- package/docs/dynamic-workflow-dag-engine-roadmap.md +0 -1749
|
@@ -125,6 +125,6 @@ npm test path/to/test.test.ts
|
|
|
125
125
|
|
|
126
126
|
## 参考
|
|
127
127
|
|
|
128
|
-
- Harness 工作流:`
|
|
129
|
-
- 验证矩阵:`
|
|
130
|
-
- Sprint Contract 模板:`
|
|
128
|
+
- Harness 工作流:`feature-workflow.md`
|
|
129
|
+
- 验证矩阵:`verification-matrix.md`
|
|
130
|
+
- Sprint Contract 模板:`templates/sprint-contract.md`
|
|
@@ -10,10 +10,20 @@
|
|
|
10
10
|
"docs/README.md",
|
|
11
11
|
"docs/init-surface.manifest.json",
|
|
12
12
|
"docs/architecture/runtime-boundaries.md",
|
|
13
|
+
"docs/architecture/README.md",
|
|
14
|
+
"docs/architecture/system-overview.md",
|
|
15
|
+
"docs/architecture/dag-execution.md",
|
|
16
|
+
"docs/architecture/worker-and-feature.md",
|
|
17
|
+
"docs/architecture/facts-and-state.md",
|
|
18
|
+
"docs/architecture/evolution.md",
|
|
13
19
|
"docs/skills/README.md",
|
|
14
20
|
"docs/skills/vetted-skill-registry.md",
|
|
15
21
|
"docs/templates/init-evolution-review.md",
|
|
22
|
+
"docs/templates/exec-plan.md",
|
|
16
23
|
"docs/templates/production-readiness-checklist.md",
|
|
24
|
+
"docs/templates/frontend-task-requirement.md",
|
|
25
|
+
"docs/templates/frontend-task-constraints.md",
|
|
26
|
+
"docs/templates/frontend-design-contract.md",
|
|
17
27
|
"docs/templates/worker-dogfood-setup.md",
|
|
18
28
|
"docs/templates/worker-dogfood-evidence.md",
|
|
19
29
|
"docs/templates/harness.schema.json",
|
|
@@ -32,8 +42,11 @@
|
|
|
32
42
|
"scripts/check-task-pool-root.sh",
|
|
33
43
|
"docs/templates/agent-dag.schema.json",
|
|
34
44
|
"examples/example-dag.json",
|
|
45
|
+
"skills/agent-worker/SKILL.md",
|
|
46
|
+
"skills/agent-worker/references/agent-worker-operator.md",
|
|
35
47
|
"skills/loop-agent/SKILL.md",
|
|
36
48
|
"skills/loop-agent/references/command-reference.md",
|
|
49
|
+
"skills/loop-agent/references/docs-converge.md",
|
|
37
50
|
"skills/ai-engineering-context/SKILL.md",
|
|
38
51
|
"skills/verification-before-completion/SKILL.md",
|
|
39
52
|
"skills/systematic-debugging/SKILL.md",
|
|
@@ -42,7 +55,17 @@
|
|
|
42
55
|
"skills/test-driven-development/SKILL.md",
|
|
43
56
|
"skills/code-review-core/SKILL.md",
|
|
44
57
|
"skills/init-capability-evolution/SKILL.md",
|
|
45
|
-
"skills/webapp-testing/SKILL.md"
|
|
58
|
+
"skills/webapp-testing/SKILL.md",
|
|
59
|
+
"skills/frontend-implementation/SKILL.md",
|
|
60
|
+
"skills/frontend-implementation/references/node-contracts.md",
|
|
61
|
+
"skills/frontend-implementation/references/design-spec.md",
|
|
62
|
+
"skills/frontend-implementation/references/code-standards.md",
|
|
63
|
+
"skills/frontend-design-review/SKILL.md",
|
|
64
|
+
"skills/frontend-design-review/references/review-checklist.md",
|
|
65
|
+
"skills/frontend-review/SKILL.md",
|
|
66
|
+
"skills/frontend-review/references/review-findings.md",
|
|
67
|
+
"skills/frontend-verification/SKILL.md",
|
|
68
|
+
"skills/frontend-verification/references/verification-checklist.md"
|
|
46
69
|
],
|
|
47
70
|
"initFullRequired": [
|
|
48
71
|
"README.md",
|
|
@@ -56,6 +79,9 @@
|
|
|
56
79
|
"docs/loop-agent-harness.md",
|
|
57
80
|
"docs/templates/init-evolution-review.md",
|
|
58
81
|
"docs/templates/production-readiness-checklist.md",
|
|
82
|
+
"docs/templates/frontend-task-requirement.md",
|
|
83
|
+
"docs/templates/frontend-task-constraints.md",
|
|
84
|
+
"docs/templates/frontend-design-contract.md",
|
|
59
85
|
"docs/templates/worker-dogfood-setup.md",
|
|
60
86
|
"docs/templates/worker-dogfood-evidence.md",
|
|
61
87
|
"docs/templates/harness.schema.json",
|
|
@@ -70,6 +96,7 @@
|
|
|
70
96
|
"docs/templates/product-line/task.yaml",
|
|
71
97
|
"docs/templates/product-line/closeout.yaml",
|
|
72
98
|
"docs/templates/product-line/links.md",
|
|
99
|
+
"scripts/check-skill-entry.sh",
|
|
73
100
|
"scripts/check-product-line-docs.sh",
|
|
74
101
|
"scripts/check-repo.sh",
|
|
75
102
|
"scripts/ci-governance.sh",
|
|
@@ -78,19 +105,11 @@
|
|
|
78
105
|
".harness/prompts/analyze.md",
|
|
79
106
|
".harness/tasks",
|
|
80
107
|
".harness/dag-runs/active",
|
|
81
|
-
"skills/
|
|
82
|
-
"skills/
|
|
83
|
-
"skills/ai-engineering-context/SKILL.md",
|
|
84
|
-
"skills/verification-before-completion/SKILL.md",
|
|
85
|
-
"skills/systematic-debugging/SKILL.md",
|
|
86
|
-
"skills/requesting-code-review/SKILL.md",
|
|
87
|
-
"skills/codebase-scout/SKILL.md",
|
|
88
|
-
"skills/test-driven-development/SKILL.md",
|
|
89
|
-
"skills/code-review-core/SKILL.md",
|
|
90
|
-
"skills/init-capability-evolution/SKILL.md",
|
|
91
|
-
"skills/webapp-testing/SKILL.md",
|
|
108
|
+
".agents/skills/agent-worker/SKILL.md",
|
|
109
|
+
".agents/skills/agent-worker/references/agent-worker-operator.md",
|
|
92
110
|
".agents/skills/loop-agent/SKILL.md",
|
|
93
111
|
".agents/skills/loop-agent/references/command-reference.md",
|
|
112
|
+
".agents/skills/loop-agent/references/docs-converge.md",
|
|
94
113
|
".agents/skills/ai-engineering-context/SKILL.md",
|
|
95
114
|
".agents/skills/verification-before-completion/SKILL.md",
|
|
96
115
|
".agents/skills/systematic-debugging/SKILL.md",
|
|
@@ -99,7 +118,17 @@
|
|
|
99
118
|
".agents/skills/test-driven-development/SKILL.md",
|
|
100
119
|
".agents/skills/code-review-core/SKILL.md",
|
|
101
120
|
".agents/skills/init-capability-evolution/SKILL.md",
|
|
102
|
-
".agents/skills/webapp-testing/SKILL.md"
|
|
121
|
+
".agents/skills/webapp-testing/SKILL.md",
|
|
122
|
+
".agents/skills/frontend-implementation/SKILL.md",
|
|
123
|
+
".agents/skills/frontend-implementation/references/node-contracts.md",
|
|
124
|
+
".agents/skills/frontend-implementation/references/design-spec.md",
|
|
125
|
+
".agents/skills/frontend-implementation/references/code-standards.md",
|
|
126
|
+
".agents/skills/frontend-design-review/SKILL.md",
|
|
127
|
+
".agents/skills/frontend-design-review/references/review-checklist.md",
|
|
128
|
+
".agents/skills/frontend-review/SKILL.md",
|
|
129
|
+
".agents/skills/frontend-review/references/review-findings.md",
|
|
130
|
+
".agents/skills/frontend-verification/SKILL.md",
|
|
131
|
+
".agents/skills/frontend-verification/references/verification-checklist.md"
|
|
103
132
|
],
|
|
104
133
|
"initSurface": {
|
|
105
134
|
"README.md": "managed-block",
|
|
@@ -113,6 +142,9 @@
|
|
|
113
142
|
"docs/loop-agent-harness.md": "generated",
|
|
114
143
|
"docs/templates/init-evolution-review.md": "copied",
|
|
115
144
|
"docs/templates/production-readiness-checklist.md": "copied",
|
|
145
|
+
"docs/templates/frontend-task-requirement.md": "copied",
|
|
146
|
+
"docs/templates/frontend-task-constraints.md": "copied",
|
|
147
|
+
"docs/templates/frontend-design-contract.md": "copied",
|
|
116
148
|
"docs/templates/worker-dogfood-setup.md": "copied",
|
|
117
149
|
"docs/templates/worker-dogfood-evidence.md": "copied",
|
|
118
150
|
"docs/templates/harness.schema.json": "copied",
|
|
@@ -127,6 +159,7 @@
|
|
|
127
159
|
"docs/templates/product-line/task.yaml": "copied",
|
|
128
160
|
"docs/templates/product-line/closeout.yaml": "copied",
|
|
129
161
|
"docs/templates/product-line/links.md": "copied",
|
|
162
|
+
"scripts/check-skill-entry.sh": "generated",
|
|
130
163
|
"scripts/check-product-line-docs.sh": "copied",
|
|
131
164
|
"scripts/check-repo.sh": "generated",
|
|
132
165
|
"scripts/ci-governance.sh": "generated",
|
|
@@ -136,19 +169,11 @@
|
|
|
136
169
|
".harness/tasks": "directory",
|
|
137
170
|
".harness/dag-runs/active": "directory",
|
|
138
171
|
".harness/init-surface.json": "state",
|
|
139
|
-
"skills/
|
|
140
|
-
"skills/
|
|
141
|
-
"skills/ai-engineering-context/SKILL.md": "copied",
|
|
142
|
-
"skills/verification-before-completion/SKILL.md": "copied",
|
|
143
|
-
"skills/systematic-debugging/SKILL.md": "copied",
|
|
144
|
-
"skills/requesting-code-review/SKILL.md": "copied",
|
|
145
|
-
"skills/codebase-scout/SKILL.md": "copied",
|
|
146
|
-
"skills/test-driven-development/SKILL.md": "copied",
|
|
147
|
-
"skills/code-review-core/SKILL.md": "copied",
|
|
148
|
-
"skills/init-capability-evolution/SKILL.md": "copied",
|
|
149
|
-
"skills/webapp-testing/SKILL.md": "copied",
|
|
172
|
+
".agents/skills/agent-worker/SKILL.md": "copied",
|
|
173
|
+
".agents/skills/agent-worker/references/agent-worker-operator.md": "copied",
|
|
150
174
|
".agents/skills/loop-agent/SKILL.md": "copied",
|
|
151
175
|
".agents/skills/loop-agent/references/command-reference.md": "copied",
|
|
176
|
+
".agents/skills/loop-agent/references/docs-converge.md": "copied",
|
|
152
177
|
".agents/skills/ai-engineering-context/SKILL.md": "copied",
|
|
153
178
|
".agents/skills/verification-before-completion/SKILL.md": "copied",
|
|
154
179
|
".agents/skills/systematic-debugging/SKILL.md": "copied",
|
|
@@ -157,7 +182,17 @@
|
|
|
157
182
|
".agents/skills/test-driven-development/SKILL.md": "copied",
|
|
158
183
|
".agents/skills/code-review-core/SKILL.md": "copied",
|
|
159
184
|
".agents/skills/init-capability-evolution/SKILL.md": "copied",
|
|
160
|
-
".agents/skills/webapp-testing/SKILL.md": "copied"
|
|
185
|
+
".agents/skills/webapp-testing/SKILL.md": "copied",
|
|
186
|
+
".agents/skills/frontend-implementation/SKILL.md": "copied",
|
|
187
|
+
".agents/skills/frontend-implementation/references/node-contracts.md": "copied",
|
|
188
|
+
".agents/skills/frontend-implementation/references/design-spec.md": "copied",
|
|
189
|
+
".agents/skills/frontend-implementation/references/code-standards.md": "copied",
|
|
190
|
+
".agents/skills/frontend-design-review/SKILL.md": "copied",
|
|
191
|
+
".agents/skills/frontend-design-review/references/review-checklist.md": "copied",
|
|
192
|
+
".agents/skills/frontend-review/SKILL.md": "copied",
|
|
193
|
+
".agents/skills/frontend-review/references/review-findings.md": "copied",
|
|
194
|
+
".agents/skills/frontend-verification/SKILL.md": "copied",
|
|
195
|
+
".agents/skills/frontend-verification/references/verification-checklist.md": "copied"
|
|
161
196
|
},
|
|
162
197
|
"packageExcluded": [
|
|
163
198
|
"docs/progress/20*.md",
|
|
@@ -10,20 +10,26 @@ loop-agent 提供结构化 agent 工作的本地 harness。
|
|
|
10
10
|
- `.harness/cache/` — 本地 runtime 缓存
|
|
11
11
|
- `.harness/live/` — 瞬态 live-session 文件
|
|
12
12
|
- `.harness/task-pool/` — `agent-worker` 的 Task Pool state、batch artifacts、failure handoffs 与 Observe events;它是 `.harness/` 内的独立 Worker runtime root,默认不提交
|
|
13
|
+
- `.harness/dag-runs/<lifecycle>/<run-id>/.runtime/skill-snapshot.json` — 该 run 实际使用的 resolved skill profile snapshot;由 state 中相对 ref 与原始 bytes SHA-256 锚定,随 lifecycle 目录整体迁移
|
|
13
14
|
|
|
14
15
|
## Skill 指令
|
|
15
16
|
|
|
16
17
|
- `skills/loop-agent/` — loop-agent 仓库自有的 skill 指令与参考资料
|
|
17
|
-
- `skills
|
|
18
|
+
- `skills/agent-worker/` — Feature Packet、TaskSpec、Task Pool、controller pinning、自举 candidate canary 与 Worker recovery 的可选 outer-loop operator skill;不是 DAG node skill
|
|
19
|
+
- `.agents/skills/<skill-name>/` — 目标项目 repo-local skill 副本;`skills/<skill-name>/` 仍是 loop-agent 源仓库和 npm 包内置回退路径
|
|
18
20
|
- 历史 `skill/` 不再是必需仓库路径;runtime 查找仅为 `loop-agent` 保留兼容 fallback
|
|
19
21
|
|
|
22
|
+
目标项目若在 `.agents/skills/` 中提供 `SDD-requirement-analysis`、`SDD-design-analysis`、`SDD-implementation-test-review`,hybrid DAG 生成器会按节点追加对应 skill。该增强只复用 repo-local 知识与方法:loop-agent 仍拥有流程与状态控制权,embedded-mode 约束禁止 SDD 状态推进、确认门禁和归档;初始化/扫描类 SDD skill 不会自动执行。未命中时不会改变默认 DAG。命中的节点 skill 继续由同一 resolved instruction 和 run-owned snapshot 机制冻结,没有第二套 loader 或旁路。
|
|
23
|
+
|
|
20
24
|
## Package 资产
|
|
21
25
|
|
|
22
|
-
npm 包包含运行与说明 harness 所需的静态能力资产:`bin/`、`dist/`、`skills
|
|
26
|
+
npm 包包含运行与说明 harness 所需的静态能力资产:`bin/`、`dist/`、`skills/`(包括 `loop-agent` 与 `agent-worker`)、顶层 `docs/*.md`、`docs/templates/`、`examples/`、`harness.json`、`AGENTS.md`、`README.md`、`CHANGELOG.md`。
|
|
23
27
|
|
|
24
28
|
生成或历史的 task facts 不是 package 资产。`docs/progress/`、`docs/reports/`、`docs/exec-plans/`、`docs/decisions/` 下现有文件属于目标仓库历史;包只携带这些目录的 README。
|
|
25
29
|
|
|
26
|
-
从 npm 安装 `loop-agent` 并在其他项目使用时,DAG skill
|
|
30
|
+
从 npm 安装 `loop-agent` 并在其他项目使用时,DAG skill 指令按配置、用户或目标项目 `.agents/skills/` 解析(若存在),再回退到包内 `skills/`。目标项目可添加本地 skills,但不必复制 loop-agent 源码历史或根 `skills/` 目录即可使用默认 DAG 工作流。
|
|
31
|
+
|
|
32
|
+
`scripts/self-host-canary.mjs` 是源码仓库维护脚本,不进入 npm package `files`;安装后的 package 不把它作为用户命令 surface。
|
|
27
33
|
|
|
28
34
|
## harness.json Schema
|
|
29
35
|
|
|
@@ -54,16 +60,21 @@ DAG 节点的模型由 `executorModels[executor][complexity]` 路由。新 run
|
|
|
54
60
|
|
|
55
61
|
DAG agent 节点的输出语言由 `harness.json.workflowPolicy.dag.outputLanguage` 控制,支持 `zh-CN` 和 `en`。未配置时默认 `zh-CN`;`dag run-task` 会把配置写入生成的 DagSpec,手写 DagSpec 缺少该字段时 prompt envelope 同样默认中文。语言规则只约束说明、分析、报告、总结和文档正文,不翻译代码、命令、路径、标识符、JSON 字段、VERDICT 行及其他精确协议字面量。
|
|
56
62
|
|
|
63
|
+
新 DAG run(包括 dry-run 与 init-only)会在首次 state write 前冻结所有初始 Pi task、dynamic map child template 与 loop body template 的 resolved skill profiles。profile id 包含 ordered skills、learned-pattern mode 和两个 instruction budgets;后续节点只从 snapshot 建 prompt。snapshot/hash/binding/profile 不一致时节点进入 `ERROR` / `skill-snapshot-integrity`,executor 不调用,也不回退实时 skill。旧 run 只有在 ref 与 artifact 都不存在时,才可在 resume 前创建 `legacy-resume-backfill`,且该 mode 只证明剩余节点被固定。
|
|
64
|
+
|
|
57
65
|
## Command Surface
|
|
58
66
|
|
|
59
67
|
- `new-task`、`status`、`inspect`、`doctor`
|
|
60
68
|
- `dag run-task`、`dag validate`、`run-dag`、`dag report`、`dag resume`、`dag reconcile-run`
|
|
69
|
+
- `plan list`、`plan create`、`plan complete`、`plan check`、`docs audit`、`docs archive`
|
|
61
70
|
- `delegate`、`harvest`、`promote-run`、`closeout`
|
|
62
71
|
- `loop init`、`loop run`、`loop status`、`loop closeout`
|
|
63
72
|
- `pi-prompt`、`cursor-prompt`
|
|
64
|
-
- `
|
|
73
|
+
- `handoff check`、`spine audit`、`knowledge curate`
|
|
65
74
|
- `agent-worker feature review|run|verify-final|delivery|closeout|approve-followup`、`agent-worker task validate|explain-profile|retry|draft-followup`、`agent-worker batch run-ready`、`agent-worker report morning|metrics`、`agent-worker observe serve|snapshot`
|
|
66
75
|
|
|
76
|
+
`dag run-task` 在生成 DAG 草稿前会运行与 `plan check` 同源的 exec-plan 索引校验;active plan 与 `docs/exec-plans/active/README.md` 索引不一致时立即失败,避免运行昂贵节点后才在末端 shell verify 发现。`plan create` 优先复用目标项目模板并回退到发布包内置 `docs/templates/exec-plan.md`,`plan create`/`plan complete` 的多文件写入均有回滚保护;`new-task` 不自动绑定 exec-plan。
|
|
77
|
+
|
|
67
78
|
## Feature Review
|
|
68
79
|
|
|
69
80
|
`agent-worker feature review --feature-dir <feature-dir> --repo <target-repo>` 是只读的 Feature 级决策入口。它复用 Feature Packet validation、task graph 和 `.harness/task-pool/` 事实,派生 `Draft`、`Ready`、`Running`、`NeedsAction`、`AwaitingQA`、`Deliverable`、`Closed`,同时展示 required AC 覆盖、阻塞、证据和唯一主行动。
|
|
@@ -72,6 +83,8 @@ DAG agent 节点的输出语言由 `harness.json.workflowPolicy.dag.outputLangua
|
|
|
72
83
|
|
|
73
84
|
`agent-worker feature run --feature-dir <feature-dir> --repo <target-repo>` 是薄编排入口:先执行 Feature validation 和一次目标仓库 preflight,再复用 `runReadyTasks()` 推进 Ready Task,最后刷新 morning report、`.harness/task-pool/observability/snapshot.json` 与 Feature review。`--dry-run` 只读取 Packet/Task Pool 并列出 Ready IDs、步骤和预期产物。默认无 Git 授权时单次最多执行一个 Ready 写任务;checkpoint 模式可按 `--limit` 串行推进,并在每个 Task 后建立 clean boundary。
|
|
74
85
|
|
|
86
|
+
写入型 Worker 命令可传 `--expected-controller-version` 与 `--expected-controller-fingerprint`。`LoopAgentClient` 先把请求的 bin/PATH/npm shim 解析成冻结的绝对 launch spec,再校验 package name/version、binary SHA-256 和 portable package fingerprint;expected gate 在 materialize、Task Pool `Running` 或目标仓库写入前完成。预检后的命令使用该 launch spec,不会因 PATH、symlink 或安装内容变化而静默切换 controller。
|
|
87
|
+
|
|
75
88
|
`agent-worker feature verify-final` 在 clean Delivery HEAD 上以已完成的 `qa-execute` TaskSpec 运行独立最终 DAG,跳过 promotion/task closeout,避免 repo write 或 HEAD 移动,并原子生成 canonical QA aggregate 与 HEAD-bound final verification。`agent-worker feature delivery` 从同一 Git transaction 和 Task Pool facts 生成带 hash 的 manifest、Acceptance Coverage 与稳定 `PR.md`,拒绝 dirty/wrong branch、历史或 trailer 漂移、缺失 run/QA/final verification 和 required AC 缺口。`agent-worker feature closeout` 默认只读预览 gates;显式 `--apply --owner` 才原子写回 Closeout,并在 stale facts、写入或 post-validation 失败时恢复原状态。
|
|
76
89
|
|
|
77
90
|
Morning report 顶部和 Observe 首页直接消费共享 Feature read model,固定从 Status、Next Action、Why、Evidence 开始。`agent-worker report metrics --month YYYY-MM` 写入 `.harness/task-pool/artifacts/metrics/monthly-YYYY-MM.json|md`,每项指标保留分母、样本量、窗口和 missingData。
|
|
@@ -80,6 +93,17 @@ Morning report 顶部和 Observe 首页直接消费共享 Feature read model,
|
|
|
80
93
|
|
|
81
94
|
业务 Task 失败不会跳过报告与最终 review,但命令返回 `needs-action` 和非零退出码;`noReadyReason` 用于区分 Closed、Deliverable、AwaitingQA、NeedsAction、dependency blocked 与 empty。
|
|
82
95
|
|
|
96
|
+
## Versioned Self-hosting Canary
|
|
97
|
+
|
|
98
|
+
源码仓库使用下面的 repo-maintainer 命令验证隔离 candidate package 的确定性接棒:
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
npm run self-host:canary -- --deterministic --output <evidence.json>
|
|
102
|
+
npm run self-host:canary -- --deterministic --tarball <candidate.tgz> --output <evidence.json>
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
canary 会记录 tarball SHA-256、slot containment、两个 bin identity、由维护脚本独立计算并与候选实现交叉核对的 package fingerprint、每个 required check、skill mirror hashes、Feature dry-run、static/shell DAG run/report 以及 PATH trap。所有子进程都有硬超时;它删除 `HARNESS_ALLOW_ACTIVE_DAG_RUNS`,并要求 trap 中没有 `loop-agent`、`agent-worker` 或 `pi` 调用。`--live` 当前明确失败;deterministic canary 不包含 Pi/model/provider/cost 证明。
|
|
106
|
+
|
|
83
107
|
## Follow-up 决策与批准
|
|
84
108
|
|
|
85
109
|
`agent-worker task draft-followup <task-id> --worker-run-id <id> --feature-dir <feature-dir> --repo <target-repo>` 从失败 run、TaskSpec 和 task graph 生成 `FU-<parent>-NN` 决策产物。ProductBug/TestBug/FlakyTest/DependencyFailure 生成可批准 TaskDraft;连续两次 EnvFailure 生成 `ENV-CHECK-*`,单次只建议 retry;SpecUnclear/ContractMismatch/RiskyChange/NeedsHuman/Unknown 生成人工行动卡。产物与 evidence/index 位于 `.harness/task-pool/artifacts/features/<feature-id>/follow-ups/`;生成过程受 Feature lock 和 dedupe key 保护,不写 Feature Packet、Ready state 或原失败事实。新 run 会 supersede 同 parent 的旧 unresolved 产物,但不会删除历史。
|
package/docs/progress/README.md
CHANGED
|
@@ -2,4 +2,35 @@
|
|
|
2
2
|
|
|
3
3
|
本目录存放应超越聊天上下文的简洁 handoff 日志。
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
**索引职责**:本文件维护本目录**全量文件列表**。`docs/README.md` 只链到本 README。
|
|
6
|
+
|
|
7
|
+
## 近期要点(导读)
|
|
8
|
+
|
|
9
|
+
- [`2026-07-14-init-canonical-layout-handoff.md`](2026-07-14-init-canonical-layout-handoff.md) — 目标项目初始化布局迁移到 `ai_workspace/loop-agent/` 与 `.agents/skills/` 的跨会话交接
|
|
10
|
+
- [`2026-07-14-self-update-notifier-implementation.md`](2026-07-14-self-update-notifier-implementation.md) — loop-agent CLI 自更新提醒实现、TDD 验证和 bounded DAG fallback 交接
|
|
11
|
+
- [`2026-07-14-docs-living-docs-calibration.md`](2026-07-14-docs-living-docs-calibration.md) — 活文档校准(Dynamic Workflow / 六个月 / ADR)
|
|
12
|
+
- [`2026-07-14-docs-governance-hygiene.md`](2026-07-14-docs-governance-hygiene.md) — 文档治理与双树/索引收敛
|
|
13
|
+
- [`2026-07-14-website-docs-ia-and-converge.md`](2026-07-14-website-docs-ia-and-converge.md) — Website 文档 IA 交接
|
|
14
|
+
- [`2026-07-13-sdd-embedded-skills.md`](2026-07-13-sdd-embedded-skills.md) — 目标项目 repo-local SDD skills 的可选 DAG 节点嵌入、验证与基线风险交接
|
|
15
|
+
- [`2026-07-13-dev-controller-001-implementation.md`](2026-07-13-dev-controller-001-implementation.md) — controller identity 实施
|
|
16
|
+
- [`2026-07-13-dev-snapshot-001-implementation.md`](2026-07-13-dev-snapshot-001-implementation.md) — skill snapshot 实施
|
|
17
|
+
- [`2026-07-13-dev-canary-001-implementation.md`](2026-07-13-dev-canary-001-implementation.md) — candidate canary 实施
|
|
18
|
+
|
|
19
|
+
## 全量列表(新→旧)
|
|
20
|
+
|
|
21
|
+
- [`2026-07-14-init-canonical-layout-handoff.md`](2026-07-14-init-canonical-layout-handoff.md)
|
|
22
|
+
- [`2026-07-14-self-update-notifier-implementation.md`](2026-07-14-self-update-notifier-implementation.md)
|
|
23
|
+
- [`2026-07-14-website-docs-ia-and-converge.md`](2026-07-14-website-docs-ia-and-converge.md)
|
|
24
|
+
- [`2026-07-14-docs-living-docs-calibration.md`](2026-07-14-docs-living-docs-calibration.md)
|
|
25
|
+
- [`2026-07-14-docs-governance-hygiene.md`](2026-07-14-docs-governance-hygiene.md)
|
|
26
|
+
- [`2026-07-13-sdd-embedded-skills.md`](2026-07-13-sdd-embedded-skills.md)
|
|
27
|
+
- [`2026-07-13-dev-snapshot-001-implementation.md`](2026-07-13-dev-snapshot-001-implementation.md)
|
|
28
|
+
- [`2026-07-13-dev-controller-001-implementation.md`](2026-07-13-dev-controller-001-implementation.md)
|
|
29
|
+
- [`2026-07-13-dev-canary-001-implementation.md`](2026-07-13-dev-canary-001-implementation.md)
|
|
30
|
+
- [`2026-07-12-pi-only-agent-runtime.md`](2026-07-12-pi-only-agent-runtime.md)
|
|
31
|
+
- [`2026-07-11-observe-dag-visualization.md`](2026-07-11-observe-dag-visualization.md)
|
|
32
|
+
- [`2026-07-11-m2-feature-delivery-loop.md`](2026-07-11-m2-feature-delivery-loop.md)
|
|
33
|
+
- [`2026-07-10-observe-ui-optimization.md`](2026-07-10-observe-ui-optimization.md)
|
|
34
|
+
- [`2026-07-04-dynamic-workflow-dag-engine.md`](2026-07-04-dynamic-workflow-dag-engine.md)
|
|
35
|
+
- [`2026-07-04-commander-cli-migration.md`](2026-07-04-commander-cli-migration.md)
|
|
36
|
+
- [`2026-07-02-loop-agent-subject-restructure.md`](2026-07-02-loop-agent-subject-restructure.md)
|
package/docs/reports/README.md
CHANGED
|
@@ -1,22 +1,88 @@
|
|
|
1
1
|
# 报告
|
|
2
2
|
|
|
3
|
-
本目录存放验证、审计、benchmark 与 closeout 报告。
|
|
3
|
+
本目录存放验证、审计、benchmark、init evolution 与 closeout 报告。
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
**索引职责**:本文件维护本目录**全量文件列表**。`docs/README.md` 只链到本 README,不再精选单篇 report。
|
|
6
|
+
|
|
7
|
+
查找约定:
|
|
8
|
+
|
|
9
|
+
- 按日期前缀浏览下方列表(新→旧)
|
|
10
|
+
- init surface 审查:文件名含 `init-evolution-review`
|
|
11
|
+
- 能力基线滚动分析:[`2026-07-02-repository-analysis.md`](2026-07-02-repository-analysis.md)(长文,非单次任务证据)
|
|
12
|
+
|
|
13
|
+
## 近期要点(导读,非权威全集)
|
|
14
|
+
|
|
15
|
+
- [`current-capability-summary.md`](current-capability-summary.md) — **活**能力摘要(新进展写这里 / CHANGELOG / 新 report)
|
|
16
|
+
- [`2026-07-15-init-canonical-layout-init-evolution-review.md`](2026-07-15-init-canonical-layout-init-evolution-review.md) — init canonical layout、旧布局安全迁移和废弃 harness 字段清理审查
|
|
17
|
+
- [`2026-07-14-self-update-notifier-implementation.md`](2026-07-14-self-update-notifier-implementation.md) — loop-agent CLI 自更新提醒实现、DAG 边界、TDD 与 init surface 非影响证据
|
|
18
|
+
- [`2026-07-14-docs-living-docs-calibration.md`](2026-07-14-docs-living-docs-calibration.md) — 活文档校准(Dynamic Workflow / 六个月 / analysis 冻结 / ADR)
|
|
19
|
+
- [`2026-07-14-docs-governance-hygiene.md`](2026-07-14-docs-governance-hygiene.md) — 文档治理扫描与索引/双树收敛
|
|
20
|
+
- [`2026-07-14-website-docs-ia-and-converge.md`](2026-07-14-website-docs-ia-and-converge.md) — Website IA 与 docs-converge 收口
|
|
21
|
+
- [`2026-07-13-sdd-embedded-skills.md`](2026-07-13-sdd-embedded-skills.md) — repo-local SDD skill 嵌入增强的 DAG、TDD、独立审查、验证和基线风险证据
|
|
22
|
+
- [`2026-07-13-versioned-self-hosting-bootstrap.md`](2026-07-13-versioned-self-hosting-bootstrap.md) — 版本化自举证据
|
|
23
|
+
- [`2026-07-12-m2-completion-audit.md`](2026-07-12-m2-completion-audit.md) — 第二月完成审计
|
|
24
|
+
- [`2026-07-02-repository-analysis.md`](2026-07-02-repository-analysis.md) — **已冻结**仓库能力基线快照(勿再当 CHANGELOG)
|
|
25
|
+
|
|
26
|
+
## 全量列表(新→旧)
|
|
27
|
+
|
|
28
|
+
- [`2026-07-15-init-canonical-layout-init-evolution-review.md`](2026-07-15-init-canonical-layout-init-evolution-review.md)
|
|
29
|
+
- [`dogfood-preflight-static-20260709090443.md`](dogfood-preflight-static-20260709090443.md)
|
|
30
|
+
- [`current-capability-summary.md`](current-capability-summary.md)
|
|
31
|
+
- [`2026-07-14-website-docs-ia-init-evolution-review.md`](2026-07-14-website-docs-ia-init-evolution-review.md)
|
|
32
|
+
- [`2026-07-14-website-docs-ia-and-converge.md`](2026-07-14-website-docs-ia-and-converge.md)
|
|
33
|
+
- [`2026-07-14-self-update-notifier-implementation.md`](2026-07-14-self-update-notifier-implementation.md)
|
|
34
|
+
- [`2026-07-14-docs-living-docs-calibration.md`](2026-07-14-docs-living-docs-calibration.md)
|
|
35
|
+
- [`2026-07-14-docs-governance-hygiene.md`](2026-07-14-docs-governance-hygiene.md)
|
|
36
|
+
- [`2026-07-13-versioned-self-hosting-init-evolution-review.md`](2026-07-13-versioned-self-hosting-init-evolution-review.md)
|
|
37
|
+
- [`2026-07-13-versioned-self-hosting-bootstrap.md`](2026-07-13-versioned-self-hosting-bootstrap.md)
|
|
38
|
+
- [`2026-07-13-test-environment-stability.md`](2026-07-13-test-environment-stability.md)
|
|
39
|
+
- [`2026-07-13-sdd-embedded-skills-init-evolution-review.md`](2026-07-13-sdd-embedded-skills-init-evolution-review.md)
|
|
40
|
+
- [`2026-07-13-sdd-embedded-skills.md`](2026-07-13-sdd-embedded-skills.md)
|
|
41
|
+
- [`2026-07-13-frontend-verification-command-safety-init-evolution-review.md`](2026-07-13-frontend-verification-command-safety-init-evolution-review.md)
|
|
42
|
+
- [`2026-07-13-frontend-skill-contracts-init-evolution-review.md`](2026-07-13-frontend-skill-contracts-init-evolution-review.md)
|
|
43
|
+
- [`2026-07-13-exec-plan-lifecycle-init-evolution-review.md`](2026-07-13-exec-plan-lifecycle-init-evolution-review.md)
|
|
44
|
+
- [`2026-07-13-exec-plan-lifecycle.md`](2026-07-13-exec-plan-lifecycle.md)
|
|
8
45
|
- [`2026-07-12-production-readiness-hardening.md`](2026-07-12-production-readiness-hardening.md)
|
|
9
|
-
- [`2026-07-
|
|
10
|
-
- [`2026-07-12-
|
|
11
|
-
- [`2026-07-12-
|
|
12
|
-
- [`2026-07-12-
|
|
13
|
-
- [`2026-07-12-m2-
|
|
14
|
-
- [`2026-07-12-m2-
|
|
15
|
-
- [`2026-07-12-m2-
|
|
16
|
-
- [`2026-07-
|
|
17
|
-
- [`2026-07-
|
|
18
|
-
- [`2026-07-
|
|
19
|
-
- [`2026-07-
|
|
20
|
-
- [`2026-07-
|
|
21
|
-
- [`2026-07-12-
|
|
22
|
-
- [`2026-07-
|
|
46
|
+
- [`2026-07-12-pi-only-agent-runtime-init-evolution-review.md`](2026-07-12-pi-only-agent-runtime-init-evolution-review.md)
|
|
47
|
+
- [`2026-07-12-observe-warm-console-redesign.md`](2026-07-12-observe-warm-console-redesign.md)
|
|
48
|
+
- [`2026-07-12-observe-dag-node-model.md`](2026-07-12-observe-dag-node-model.md)
|
|
49
|
+
- [`2026-07-12-observe-dag-node-model-init-evolution-review.md`](2026-07-12-observe-dag-node-model-init-evolution-review.md)
|
|
50
|
+
- [`2026-07-12-m2-completion-audit.md`](2026-07-12-m2-completion-audit.md)
|
|
51
|
+
- [`2026-07-12-m2-08-init-evolution-review.md`](2026-07-12-m2-08-init-evolution-review.md)
|
|
52
|
+
- [`2026-07-12-m2-08-dogfood-release-evidence.md`](2026-07-12-m2-08-dogfood-release-evidence.md)
|
|
53
|
+
- [`2026-07-12-m2-07-init-evolution-review.md`](2026-07-12-m2-07-init-evolution-review.md)
|
|
54
|
+
- [`2026-07-12-m2-06-init-evolution-review.md`](2026-07-12-m2-06-init-evolution-review.md)
|
|
55
|
+
- [`2026-07-12-m2-05-init-evolution-review.md`](2026-07-12-m2-05-init-evolution-review.md)
|
|
56
|
+
- [`2026-07-12-m2-04-init-evolution-review.md`](2026-07-12-m2-04-init-evolution-review.md)
|
|
57
|
+
- [`2026-07-12-m2-03-init-evolution-review.md`](2026-07-12-m2-03-init-evolution-review.md)
|
|
58
|
+
- [`2026-07-12-m2-02-init-evolution-review.md`](2026-07-12-m2-02-init-evolution-review.md)
|
|
59
|
+
- [`2026-07-12-init-evolution-strict-report-range.md`](2026-07-12-init-evolution-strict-report-range.md)
|
|
60
|
+
- [`2026-07-12-dag-state-reconciliation.md`](2026-07-12-dag-state-reconciliation.md)
|
|
61
|
+
- [`2026-07-12-dag-state-reconciliation-init-evolution-review.md`](2026-07-12-dag-state-reconciliation-init-evolution-review.md)
|
|
62
|
+
- [`2026-07-12-dag-output-language.md`](2026-07-12-dag-output-language.md)
|
|
63
|
+
- [`2026-07-12-dag-output-language-init-evolution-review.md`](2026-07-12-dag-output-language-init-evolution-review.md)
|
|
64
|
+
- [`2026-07-12-dag-liveness-recovery.md`](2026-07-12-dag-liveness-recovery.md)
|
|
65
|
+
- [`2026-07-12-dag-liveness-init-evolution-review.md`](2026-07-12-dag-liveness-init-evolution-review.md)
|
|
66
|
+
- [`2026-07-12-0.10.0-init-evolution-review.md`](2026-07-12-0.10.0-init-evolution-review.md)
|
|
67
|
+
- [`2026-07-11-task-pool-hard-cutover-init-evolution-review.md`](2026-07-11-task-pool-hard-cutover-init-evolution-review.md)
|
|
68
|
+
- [`2026-07-11-round3-worker-expansion.md`](2026-07-11-round3-worker-expansion.md)
|
|
69
|
+
- [`2026-07-11-round2-interactive-ui-experiment.md`](2026-07-11-round2-interactive-ui-experiment.md)
|
|
70
|
+
- [`2026-07-11-round2-init-evolution-review.md`](2026-07-11-round2-init-evolution-review.md)
|
|
71
|
+
- [`2026-07-11-observe-terminal-dag-kpi.md`](2026-07-11-observe-terminal-dag-kpi.md)
|
|
72
|
+
- [`2026-07-11-observe-dag-visualization.md`](2026-07-11-observe-dag-visualization.md)
|
|
73
|
+
- [`2026-07-11-m2-01-init-evolution-review.md`](2026-07-11-m2-01-init-evolution-review.md)
|
|
74
|
+
- [`2026-07-11-init-evolution-review.md`](2026-07-11-init-evolution-review.md)
|
|
75
|
+
- [`2026-07-11-commit-1d0f3b7-review.md`](2026-07-11-commit-1d0f3b7-review.md)
|
|
76
|
+
- [`2026-07-11-command-performance-followups.md`](2026-07-11-command-performance-followups.md)
|
|
77
|
+
- [`2026-07-11-command-performance-audit.md`](2026-07-11-command-performance-audit.md)
|
|
78
|
+
- [`2026-07-11-0.7.5-init-evolution-review.md`](2026-07-11-0.7.5-init-evolution-review.md)
|
|
79
|
+
- [`2026-07-10-session-events-dogfood.md`](2026-07-10-session-events-dogfood.md)
|
|
80
|
+
- [`2026-07-10-nightly-drill-round-1.md`](2026-07-10-nightly-drill-round-1.md)
|
|
81
|
+
- [`2026-07-10-nightly-drill-round-1-evidence.md`](2026-07-10-nightly-drill-round-1-evidence.md)
|
|
82
|
+
- [`2026-07-10-next-stage-dogfood-runs.md`](2026-07-10-next-stage-dogfood-runs.md)
|
|
83
|
+
- [`2026-07-10-init-evolution-review.md`](2026-07-10-init-evolution-review.md)
|
|
84
|
+
- [`2026-07-09-be-001-pi-real-run.md`](2026-07-09-be-001-pi-real-run.md)
|
|
85
|
+
- [`2026-07-05-website-docs-governance-multi-executor-dogfood.md`](2026-07-05-website-docs-governance-multi-executor-dogfood.md)
|
|
86
|
+
- [`2026-07-04-website-docs-dynamic-workflow-dogfood.md`](2026-07-04-website-docs-dynamic-workflow-dogfood.md)
|
|
87
|
+
- [`2026-07-02-repository-analysis.md`](2026-07-02-repository-analysis.md)
|
|
88
|
+
- [`2026-06-06-pi-sdk-runtime-reuse-benchmark.md`](2026-06-06-pi-sdk-runtime-reuse-benchmark.md)
|
package/docs/skills/README.md
CHANGED
|
@@ -3,4 +3,5 @@
|
|
|
3
3
|
This directory records repo-local skill wrappers and vetting notes used by Agent DAG role mapping.
|
|
4
4
|
|
|
5
5
|
- `vetted-skill-registry.md` — supported roles, source inspiration, risk notes, and default/optional usage.
|
|
6
|
-
|
|
6
|
+
- `../../skills/agent-worker/SKILL.md` — optional outer-loop operator skill for Feature Packet, TaskSpec, Task Pool, controller pinning, self-hosting canaries, and Worker recovery. Single DAG implementation or runtime repair stays with `loop-agent`; this skill is not a default DAG role skill.
|
|
7
|
+
- `../../scripts/check-skill-entry.sh` — validates both public skill entries, their required references, line budgets, and the `agent-worker` trigger vocabulary.
|
|
@@ -8,6 +8,7 @@ The entries below are local wrappers or existing local skills. They are not whol
|
|
|
8
8
|
|---|---|---|---|---|---|
|
|
9
9
|
| `ai-engineering-context` | local existing | `skills/ai-engineering-context/SKILL.md` | scout, default context | default/scout | Read-only engineering context; not a private platform memory skill. |
|
|
10
10
|
| `loop-agent` | local existing | `skills/loop-agent/SKILL.md` | planner, supervisor, closeout | planner/closeout | Long references may be resolved by strict audit with expanded budget; executor behavior unchanged. |
|
|
11
|
+
| `agent-worker` | local operator skill | `skills/agent-worker/SKILL.md` | outer-loop operator only | never a default DAG role | Routes Feature Packet, TaskSpec, Task Pool, controller pinning, self-hosting canary, and failure recovery. Must not launch recursively from DAG leaves or duplicate executor/kernel behavior. |
|
|
11
12
|
| `verification-before-completion` | local wrapper inspired by verification discipline | `skills/verification-before-completion/SKILL.md` | implementer, verifier, closeout | implementer/verifier/closeout | Requires shell evidence before completion claims. |
|
|
12
13
|
| `systematic-debugging` | local wrapper inspired by systematic debugging discipline | `skills/systematic-debugging/SKILL.md` | implementer, verifier | verifier | Advisory prompt guidance only; does not run tools by itself. |
|
|
13
14
|
| `requesting-code-review` | local existing | `skills/requesting-code-review/SKILL.md` | reviewer | reviewer | Review prompt guidance only. |
|
|
@@ -20,7 +21,7 @@ The entries below are local wrappers or existing local skills. They are not whol
|
|
|
20
21
|
## Vetting Rules
|
|
21
22
|
|
|
22
23
|
- Default role mappings may reference only repo-local skills that resolve cleanly under `dag validate --strict-skills`.
|
|
24
|
+
- `agent-worker` is explicitly outside default role mappings. Its trigger description must cover `agent-worker`, Feature Packet, TaskSpec, Task Pool, self-host/candidate and the `loop-agent` routing boundary; `scripts/check-skill-entry.sh` enforces this public entry contract.
|
|
23
25
|
- Optional/security/web skills remain task- or profile-specific until their tool, network, credential, and write behavior is reviewed.
|
|
24
26
|
- This registry records source inspiration, not license clearance for vendored third-party content. Vendoring requires a separate license/security review.
|
|
25
27
|
- `SKILL.md` is the entry point. References must be declared in frontmatter and stay within the skill directory.
|
|
26
|
-
|
|
@@ -328,7 +328,7 @@
|
|
|
328
328
|
"order": { "type": "integer", "minimum": 0 },
|
|
329
329
|
"executor": {
|
|
330
330
|
"type": "string",
|
|
331
|
-
"enum": ["
|
|
331
|
+
"enum": ["pi", "shell", "static"]
|
|
332
332
|
},
|
|
333
333
|
"model": { "type": "string" },
|
|
334
334
|
"status": {
|
|
@@ -400,11 +400,11 @@
|
|
|
400
400
|
"pending",
|
|
401
401
|
"running",
|
|
402
402
|
"finished",
|
|
403
|
-
"partial_failed",
|
|
404
|
-
"failed",
|
|
405
|
-
"paused",
|
|
406
|
-
"superseded",
|
|
407
|
-
"abandoned"
|
|
403
|
+
"partial_failed",
|
|
404
|
+
"failed",
|
|
405
|
+
"paused",
|
|
406
|
+
"superseded",
|
|
407
|
+
"abandoned"
|
|
408
408
|
]
|
|
409
409
|
},
|
|
410
410
|
"runDir": { "type": "string", "minLength": 1 },
|
|
@@ -59,7 +59,6 @@
|
|
|
59
59
|
"description": "Executor-owned model routing template keyed by executor then complexity. Do not use legacy top-level models or defaults.model.",
|
|
60
60
|
"additionalProperties": false,
|
|
61
61
|
"properties": {
|
|
62
|
-
"cursor": { "$ref": "#/$defs/complexityModelMap" },
|
|
63
62
|
"pi": { "$ref": "#/$defs/complexityModelMap" }
|
|
64
63
|
}
|
|
65
64
|
},
|
|
@@ -77,7 +76,7 @@
|
|
|
77
76
|
"enum": ["LOW", "MED", "HIGH"]
|
|
78
77
|
},
|
|
79
78
|
"executor": {
|
|
80
|
-
"enum": ["
|
|
79
|
+
"enum": ["pi", "shell", "static"]
|
|
81
80
|
},
|
|
82
81
|
"toolProfile": {
|
|
83
82
|
"enum": ["read-only", "write"]
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"globalConstraints": [
|
|
23
23
|
"Replace every REPLACE/WITH/... placeholder with concrete repo paths before execution; do not leave template placeholders in production DAG JSON.",
|
|
24
24
|
"Do not commit from DAG nodes; main session inspects and commits after Decision Gate approval.",
|
|
25
|
-
"Use only existing executors: pi, shell, static
|
|
25
|
+
"Use only existing executors: pi, shell, static. Cursor is available only through the explicit cursor-prompt sidecar, never as a DAG executor. Pi writer nodes must set toolProfile=write.",
|
|
26
26
|
"Read-only nodes must not write repository files, including root artifacts/**.",
|
|
27
27
|
"Exclusive writer nodes must stay within declared writeSet.",
|
|
28
28
|
"Do not implement automatic retry/resume or mutate historical completed facts.",
|
|
@@ -73,11 +73,6 @@
|
|
|
73
73
|
]
|
|
74
74
|
},
|
|
75
75
|
"executorModels": {
|
|
76
|
-
"cursor": {
|
|
77
|
-
"LOW": "composer-2.5",
|
|
78
|
-
"MED": "composer-2.5",
|
|
79
|
-
"HIGH": "gpt-5.5"
|
|
80
|
-
},
|
|
81
76
|
"pi": {
|
|
82
77
|
"LOW": "gpt-5.3-codex-spark",
|
|
83
78
|
"MED": "glm-5.2",
|