@tea-agent/loop-agent 0.3.0 → 0.4.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 +135 -133
- package/CHANGELOG.md +88 -63
- package/README.md +171 -168
- package/bin/agent-worker.js +22 -0
- package/bin/loop-agent.js +21 -21
- package/dist/commands/init.js +457 -457
- package/dist/commands/loop-benchmark.js +11 -11
- package/dist/commands/pi-reuse-benchmark.js +16 -16
- package/dist/executors/cursor-executor.js +1 -1
- package/dist/executors/dag-pi-executor.js +8 -1
- package/dist/task/runtime.js +27 -27
- package/dist/worker/cli.js +119 -0
- package/dist/worker/loop-agent/command-result.js +1 -0
- package/dist/worker/loop-agent/loop-agent-client.js +105 -0
- package/dist/worker/loop-agent/parse-json.js +14 -0
- package/dist/worker/materialize/harness-task-materializer.js +157 -0
- package/dist/worker/pool/failure-routing.js +98 -0
- package/dist/worker/pool/run-store.js +117 -0
- package/dist/worker/pool/types.js +1 -0
- package/dist/worker/preflight.js +108 -0
- package/dist/worker/profile-mapping.js +76 -0
- package/dist/worker/progress-reporter.js +81 -0
- package/dist/worker/report/morning-report.js +69 -0
- package/dist/worker/repos/repo-resolver.js +23 -0
- package/dist/worker/run-task/run-task.js +359 -0
- package/dist/worker/runner/run-ready.js +216 -0
- package/dist/worker/task-graph/acceptance-schema.js +25 -0
- package/dist/worker/task-graph/ready-queue.js +23 -0
- package/dist/worker/task-graph/task-graph-schema.js +28 -0
- package/dist/worker/task-graph/types.js +1 -0
- package/dist/worker/task-graph/validate.js +188 -0
- package/dist/worker/task-spec/complexity-mapping.js +8 -0
- package/dist/worker/task-spec/schema.js +116 -0
- package/dist/worker/task-spec/types.js +1 -0
- package/dist/worker/task-spec/validate.js +352 -0
- package/dist/workflows/dag/canvas-observer.js +275 -275
- package/docs/README.md +65 -61
- package/docs/agent-dag-recovery-playbook.md +184 -184
- package/docs/agent-dag-runner.md +42 -42
- package/docs/architecture/runtime-boundaries.md +147 -147
- package/docs/cursor-executor-usage.md +25 -25
- package/docs/decisions/README.md +3 -3
- package/docs/design/README.md +36 -36
- package/docs/development-principles.md +73 -71
- package/docs/dynamic-workflow-dag-engine-roadmap.md +1749 -1749
- package/docs/exec-plans/README.md +6 -6
- package/docs/exec-plans/active/README.md +7 -7
- package/docs/exec-plans/completed/README.md +19 -11
- package/docs/feature-workflow.md +186 -186
- package/docs/harness-methodology-debugging.md +153 -153
- package/docs/harness-methodology-tdd.md +130 -130
- package/docs/harness-methodology-verification.md +27 -27
- package/docs/loop-agent-harness.md +42 -42
- package/docs/production-readiness.md +96 -96
- package/docs/progress/README.md +3 -3
- package/docs/reports/README.md +5 -5
- package/docs/skills/README.md +6 -6
- package/docs/skills/vetted-skill-registry.md +22 -22
- package/docs/templates/adr.md +60 -60
- package/docs/templates/agent-dag-authority-surface-audit.prompt.md +94 -94
- package/docs/templates/agent-dag-decision-envelope.schema.json +213 -213
- package/docs/templates/agent-dag-decision-gate-dogfood-report.md +117 -117
- package/docs/templates/agent-dag-decision-gate.prompt.md +246 -246
- package/docs/templates/agent-dag-process-supervisor.prompt.md +98 -98
- package/docs/templates/agent-dag-report.schema.json +454 -454
- package/docs/templates/agent-dag-review-verdict.prompt.md +68 -68
- package/docs/templates/agent-dag.base.json +195 -195
- package/docs/templates/agent-dag.final-verification.json +190 -190
- package/docs/templates/agent-dag.schema.json +316 -316
- package/docs/templates/agent-dag.supervised-implementation.json +500 -500
- package/docs/templates/exec-plan.md +64 -64
- package/docs/templates/feature-spec.md +53 -53
- package/docs/templates/hybrid-dag.json +193 -193
- package/docs/templates/production-readiness-checklist.md +57 -57
- package/docs/templates/progress-log.md +17 -17
- package/docs/templates/project-start-checklist.md +9 -9
- package/docs/templates/qa-report.md +48 -48
- package/docs/templates/sprint-contract.md +29 -29
- package/docs/verification-matrix.md +41 -41
- package/examples/decision-gate-agent-dag.json +123 -123
- package/examples/example-dag.json +51 -51
- package/examples/hybrid-loop-agent-dag.json +194 -194
- package/harness.json +89 -89
- package/package.json +60 -58
- package/skills/ai-engineering-context/SKILL.md +48 -48
- package/skills/code-review-core/SKILL.md +20 -20
- package/skills/codebase-scout/SKILL.md +19 -19
- package/skills/loop-agent/SKILL.md +147 -145
- package/skills/loop-agent/references/README.md +67 -67
- package/skills/loop-agent/references/command-reference.md +368 -340
- package/skills/loop-agent/references/harness-policy.md +259 -258
- package/skills/loop-agent/references/hybrid-dag.md +216 -216
- package/skills/loop-agent/references/learned/README.md +21 -21
- package/skills/loop-agent/references/long-running-loop.md +59 -59
- package/skills/loop-agent/references/model-routing.md +36 -36
- package/skills/loop-agent/references/multi-worktree.md +54 -54
- package/skills/loop-agent/references/one-shot-runs.md +85 -85
- package/skills/loop-agent/references/orchestrator-and-interventions.md +169 -169
- package/skills/loop-agent/references/pi-prompt.md +23 -23
- package/skills/loop-agent/references/pi-subagent-assisted-mode.md +81 -81
- package/skills/loop-agent/references/post-implementation-and-patterns.md +44 -44
- package/skills/loop-agent/references/task-workflow.md +84 -84
- package/skills/loop-agent/references/verification-and-failure-handling.md +128 -128
- package/skills/requesting-code-review/SKILL.md +101 -101
- package/skills/requesting-code-review/code-reviewer.md +168 -168
- package/skills/systematic-debugging/CREATION-LOG.md +119 -119
- package/skills/systematic-debugging/SKILL.md +296 -296
- package/skills/systematic-debugging/condition-based-waiting-example.ts +158 -158
- package/skills/systematic-debugging/condition-based-waiting.md +115 -115
- package/skills/systematic-debugging/defense-in-depth.md +122 -122
- package/skills/systematic-debugging/find-polluter.sh +63 -63
- package/skills/systematic-debugging/root-cause-tracing.md +169 -169
- package/skills/systematic-debugging/test-academic.md +14 -14
- package/skills/systematic-debugging/test-pressure-1.md +58 -58
- package/skills/systematic-debugging/test-pressure-2.md +68 -68
- package/skills/systematic-debugging/test-pressure-3.md +69 -69
- package/skills/test-driven-development/SKILL.md +20 -20
- package/skills/verification-before-completion/SKILL.md +154 -154
- package/skills/webapp-testing/SKILL.md +19 -19
package/harness.json
CHANGED
|
@@ -1,94 +1,94 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 1,
|
|
3
|
-
"project": "loop-agent",
|
|
4
|
-
"governanceRoot": "docs",
|
|
5
|
-
"workflowPolicy": {
|
|
6
|
-
"defaultImplementationWorkflow": "agent-dag",
|
|
7
|
-
"dag": {
|
|
8
|
-
"defaultEntry": "dag run-task",
|
|
9
|
-
"profileRouting": {
|
|
10
|
-
"minimal": "standard-dag",
|
|
11
|
-
"standard": "standard-dag",
|
|
12
|
-
"reviewed": "review-gated-dag",
|
|
13
|
-
"supervised": "supervised-implementation"
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"humanGatePolicy": {
|
|
17
|
-
"defaultMode": "record-only",
|
|
18
|
-
"pauseOn": [
|
|
19
|
-
"requirement-ambiguity",
|
|
20
|
-
"architecture-or-public-contract-risk",
|
|
21
|
-
"credential-cost-or-deployment-risk",
|
|
22
|
-
"repeated-gate-failure",
|
|
23
|
-
"high-or-critical-decision-risk"
|
|
24
|
-
]
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
"entrypoints": {
|
|
28
|
-
"readme": "README.md",
|
|
29
|
-
"agents": "AGENTS.md",
|
|
30
|
-
"governanceIndex": "docs/README.md",
|
|
31
|
-
"principles": "docs/development-principles.md",
|
|
32
|
-
"workflow": "docs/feature-workflow.md",
|
|
33
|
-
"verificationMatrix": "docs/verification-matrix.md",
|
|
34
|
-
"loopAgentHarness": "docs/loop-agent-harness.md",
|
|
35
|
-
"cursorExecutorUsage": "docs/cursor-executor-usage.md"
|
|
36
|
-
},
|
|
37
|
-
"artifacts": {
|
|
38
|
-
"templatesDir": "docs/templates",
|
|
39
|
-
"execPlansDir": "docs/exec-plans",
|
|
40
|
-
"progressDir": "docs/progress",
|
|
41
|
-
"reportsDir": "docs/reports",
|
|
42
|
-
"decisionsDir": "docs/decisions"
|
|
43
|
-
},
|
|
44
|
-
"scripts": {
|
|
45
|
-
"checkRepo": "scripts/check-repo.sh",
|
|
46
|
-
"checkStructure": "scripts/check-engineering-structure.sh",
|
|
47
|
-
"checkDocIndex": "scripts/check-doc-index.sh",
|
|
48
|
-
"checkDocLinks": "scripts/check-doc-links.sh",
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"project": "loop-agent",
|
|
4
|
+
"governanceRoot": "docs",
|
|
5
|
+
"workflowPolicy": {
|
|
6
|
+
"defaultImplementationWorkflow": "agent-dag",
|
|
7
|
+
"dag": {
|
|
8
|
+
"defaultEntry": "dag run-task",
|
|
9
|
+
"profileRouting": {
|
|
10
|
+
"minimal": "standard-dag",
|
|
11
|
+
"standard": "standard-dag",
|
|
12
|
+
"reviewed": "review-gated-dag",
|
|
13
|
+
"supervised": "supervised-implementation"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"humanGatePolicy": {
|
|
17
|
+
"defaultMode": "record-only",
|
|
18
|
+
"pauseOn": [
|
|
19
|
+
"requirement-ambiguity",
|
|
20
|
+
"architecture-or-public-contract-risk",
|
|
21
|
+
"credential-cost-or-deployment-risk",
|
|
22
|
+
"repeated-gate-failure",
|
|
23
|
+
"high-or-critical-decision-risk"
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"entrypoints": {
|
|
28
|
+
"readme": "README.md",
|
|
29
|
+
"agents": "AGENTS.md",
|
|
30
|
+
"governanceIndex": "docs/README.md",
|
|
31
|
+
"principles": "docs/development-principles.md",
|
|
32
|
+
"workflow": "docs/feature-workflow.md",
|
|
33
|
+
"verificationMatrix": "docs/verification-matrix.md",
|
|
34
|
+
"loopAgentHarness": "docs/loop-agent-harness.md",
|
|
35
|
+
"cursorExecutorUsage": "docs/cursor-executor-usage.md"
|
|
36
|
+
},
|
|
37
|
+
"artifacts": {
|
|
38
|
+
"templatesDir": "docs/templates",
|
|
39
|
+
"execPlansDir": "docs/exec-plans",
|
|
40
|
+
"progressDir": "docs/progress",
|
|
41
|
+
"reportsDir": "docs/reports",
|
|
42
|
+
"decisionsDir": "docs/decisions"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"checkRepo": "scripts/check-repo.sh",
|
|
46
|
+
"checkStructure": "scripts/check-engineering-structure.sh",
|
|
47
|
+
"checkDocIndex": "scripts/check-doc-index.sh",
|
|
48
|
+
"checkDocLinks": "scripts/check-doc-links.sh",
|
|
49
49
|
"checkHarnessRuntimeClean": "scripts/check-harness-runtime-clean.sh",
|
|
50
50
|
"checkInitEvolutionNeeded": "scripts/check-init-evolution-needed.sh",
|
|
51
51
|
"checkInitSurface": "scripts/check-init-surface.sh",
|
|
52
52
|
"ci": "scripts/ci.sh"
|
|
53
53
|
},
|
|
54
|
-
"models": {
|
|
55
|
-
"analyze": {
|
|
56
|
-
"provider": "wizard-local",
|
|
57
|
-
"model": "gpt-5.3-codex-spark",
|
|
58
|
-
"timeoutMs": 1800000
|
|
59
|
-
},
|
|
60
|
-
"plan": {
|
|
61
|
-
"provider": "wizard-local",
|
|
62
|
-
"model": "gpt-5.3-codex-spark",
|
|
63
|
-
"timeoutMs": 1800000
|
|
64
|
-
},
|
|
65
|
-
"implement": {
|
|
66
|
-
"provider": "wizard-local",
|
|
67
|
-
"model": "gpt-5.3-codex-spark",
|
|
68
|
-
"timeoutMs": 1800000
|
|
69
|
-
},
|
|
70
|
-
"verify": {
|
|
71
|
-
"provider": "wizard-local",
|
|
72
|
-
"model": "gpt-5.3-codex-spark",
|
|
73
|
-
"timeoutMs": 1800000
|
|
74
|
-
},
|
|
75
|
-
"retrospective": {
|
|
76
|
-
"provider": "wizard-local",
|
|
77
|
-
"model": "gpt-5.3-codex-spark",
|
|
78
|
-
"timeoutMs": 1800000
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
"executors": {
|
|
82
|
-
"pi": {
|
|
83
|
-
"description": "Pi planning, review, diagnosis, and bounded writing when DAG toolProfile=write",
|
|
84
|
-
"defaultModel": "gpt-5.3-codex-spark",
|
|
85
|
-
"requiresApiKey": ""
|
|
86
|
-
},
|
|
87
|
-
"cursor": {
|
|
88
|
-
"description": "Cursor via @cursor/sdk (default model: account default)",
|
|
89
|
-
"enabled": false,
|
|
90
|
-
"defaultModel": "default",
|
|
91
|
-
"requiresApiKey": "CURSOR_API_KEY"
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
54
|
+
"models": {
|
|
55
|
+
"analyze": {
|
|
56
|
+
"provider": "wizard-local",
|
|
57
|
+
"model": "gpt-5.3-codex-spark",
|
|
58
|
+
"timeoutMs": 1800000
|
|
59
|
+
},
|
|
60
|
+
"plan": {
|
|
61
|
+
"provider": "wizard-local",
|
|
62
|
+
"model": "gpt-5.3-codex-spark",
|
|
63
|
+
"timeoutMs": 1800000
|
|
64
|
+
},
|
|
65
|
+
"implement": {
|
|
66
|
+
"provider": "wizard-local",
|
|
67
|
+
"model": "gpt-5.3-codex-spark",
|
|
68
|
+
"timeoutMs": 1800000
|
|
69
|
+
},
|
|
70
|
+
"verify": {
|
|
71
|
+
"provider": "wizard-local",
|
|
72
|
+
"model": "gpt-5.3-codex-spark",
|
|
73
|
+
"timeoutMs": 1800000
|
|
74
|
+
},
|
|
75
|
+
"retrospective": {
|
|
76
|
+
"provider": "wizard-local",
|
|
77
|
+
"model": "gpt-5.3-codex-spark",
|
|
78
|
+
"timeoutMs": 1800000
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"executors": {
|
|
82
|
+
"pi": {
|
|
83
|
+
"description": "Pi planning, review, diagnosis, and bounded writing when DAG toolProfile=write",
|
|
84
|
+
"defaultModel": "gpt-5.3-codex-spark",
|
|
85
|
+
"requiresApiKey": ""
|
|
86
|
+
},
|
|
87
|
+
"cursor": {
|
|
88
|
+
"description": "Cursor via @cursor/sdk (default model: account default)",
|
|
89
|
+
"enabled": false,
|
|
90
|
+
"defaultModel": "default",
|
|
91
|
+
"requiresApiKey": "CURSOR_API_KEY"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
package/package.json
CHANGED
|
@@ -1,64 +1,66 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@tea-agent/loop-agent",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"bin": {
|
|
6
|
-
"loop-agent": "bin/loop-agent.js"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"docs
|
|
14
|
-
"docs/
|
|
15
|
-
"docs/
|
|
16
|
-
"docs/
|
|
17
|
-
"docs/exec-plans/
|
|
1
|
+
{
|
|
2
|
+
"name": "@tea-agent/loop-agent",
|
|
3
|
+
"version": "0.4.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"bin": {
|
|
6
|
+
"loop-agent": "bin/loop-agent.js",
|
|
7
|
+
"agent-worker": "bin/agent-worker.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"AGENTS.md",
|
|
11
|
+
"bin/",
|
|
12
|
+
"dist/",
|
|
13
|
+
"docs/*.md",
|
|
14
|
+
"docs/architecture/runtime-boundaries.md",
|
|
15
|
+
"docs/decisions/README.md",
|
|
16
|
+
"docs/design/README.md",
|
|
17
|
+
"docs/exec-plans/README.md",
|
|
18
|
+
"docs/exec-plans/active/README.md",
|
|
18
19
|
"docs/exec-plans/completed/README.md",
|
|
19
20
|
"docs/init-surface.manifest.json",
|
|
20
21
|
"docs/progress/README.md",
|
|
21
22
|
"docs/reports/README.md",
|
|
22
23
|
"docs/skills/",
|
|
23
24
|
"docs/templates/",
|
|
24
|
-
"examples/",
|
|
25
|
-
"harness.json",
|
|
26
|
-
"skills/",
|
|
27
|
-
"README.md",
|
|
28
|
-
"CHANGELOG.md"
|
|
29
|
-
],
|
|
30
|
-
"publishConfig": {
|
|
31
|
-
"access": "public"
|
|
32
|
-
},
|
|
33
|
-
"scripts": {
|
|
34
|
-
"dev": "node --import tsx/esm src/cli.ts",
|
|
35
|
-
"cursor": "node --import tsx/esm src/cli.ts cursor-prompt",
|
|
36
|
-
"pi-prompt": "node --import tsx/esm src/cli.ts pi-prompt",
|
|
37
|
-
"clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
|
|
38
|
-
"build": "npm run clean && tsc -p tsconfig.build.json",
|
|
39
|
-
"prepack": "npm run build",
|
|
40
|
-
"prepublishOnly": "npm run typecheck && npm test && npm run build",
|
|
41
|
-
"lint": "tsc --noEmit",
|
|
42
|
-
"typecheck": "tsc --noEmit",
|
|
43
|
-
"test": "vitest run",
|
|
44
|
-
"docs:dev": "npm --prefix website start",
|
|
45
|
-
"docs:build": "npm --prefix website run build",
|
|
46
|
-
"docs:serve": "npm --prefix website run serve",
|
|
47
|
-
"smoke:stale-serial": "tsx scripts/smoke-stale-plan-serial.ts"
|
|
48
|
-
},
|
|
49
|
-
"dependencies": {
|
|
50
|
-
"commander": "^12.1.0",
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
"@
|
|
56
|
-
"@earendil-works/pi-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
|
|
64
|
-
}
|
|
25
|
+
"examples/",
|
|
26
|
+
"harness.json",
|
|
27
|
+
"skills/",
|
|
28
|
+
"README.md",
|
|
29
|
+
"CHANGELOG.md"
|
|
30
|
+
],
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"access": "public"
|
|
33
|
+
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"dev": "node --import tsx/esm src/cli.ts",
|
|
36
|
+
"cursor": "node --import tsx/esm src/cli.ts cursor-prompt",
|
|
37
|
+
"pi-prompt": "node --import tsx/esm src/cli.ts pi-prompt",
|
|
38
|
+
"clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
|
|
39
|
+
"build": "npm run clean && tsc -p tsconfig.build.json",
|
|
40
|
+
"prepack": "npm run build",
|
|
41
|
+
"prepublishOnly": "npm run typecheck && npm test && npm run build",
|
|
42
|
+
"lint": "tsc --noEmit",
|
|
43
|
+
"typecheck": "tsc --noEmit",
|
|
44
|
+
"test": "vitest run",
|
|
45
|
+
"docs:dev": "npm --prefix website start",
|
|
46
|
+
"docs:build": "npm --prefix website run build",
|
|
47
|
+
"docs:serve": "npm --prefix website run serve",
|
|
48
|
+
"smoke:stale-serial": "tsx scripts/smoke-stale-plan-serial.ts"
|
|
49
|
+
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"commander": "^12.1.0",
|
|
52
|
+
"yaml": "^2.9.0",
|
|
53
|
+
"zod": "^3.25.76"
|
|
54
|
+
},
|
|
55
|
+
"optionalDependencies": {
|
|
56
|
+
"@cursor/sdk": "^1.0.7",
|
|
57
|
+
"@earendil-works/pi-coding-agent": "*",
|
|
58
|
+
"@earendil-works/pi-ai": "*"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"tsx": "^4.20.6",
|
|
62
|
+
"typescript": "^5.9.3",
|
|
63
|
+
"vitest": "^3.2.4",
|
|
64
|
+
"@types/node": "^24.6.0"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: ai-engineering-context
|
|
3
|
-
description: 当 AI coding agent 启动 loop-agent 工作、准备 DAG 或 Loop context、委派 role-specific 节点,或决定 requirements、facts、evidence、handoff notes 应落何处时使用。
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# AI Engineering Context
|
|
7
|
-
|
|
8
|
-
Context 是工程 artifact,不是 chat 残留。须显式保留 requirements、role 边界、write authority、evidence 与 handoff facts。
|
|
9
|
-
|
|
10
|
-
## When to Use
|
|
11
|
-
|
|
12
|
-
在启动 task、DAG、workflow 或 Loop round;准备 role prompt;委派给 Cursor/Pi/shell/static executor;或处理 stale plan、冲突 requirements、缺失 evidence 时使用。
|
|
13
|
-
|
|
14
|
-
不要用于 private platform paths、personal memory、Google Drive 规则,或替代 task skills。
|
|
15
|
-
|
|
16
|
-
## Context Priority
|
|
17
|
-
|
|
18
|
-
按以下顺序优先采信 facts:最新 user instruction;task source/contract;DAG/Loop artifacts;docs/plans/ADRs;code/tests;chat history 仅作 hint。
|
|
19
|
-
|
|
20
|
-
若 sources 冲突,停止并点明冲突。
|
|
21
|
-
|
|
22
|
-
## Role Boundaries
|
|
23
|
-
|
|
24
|
-
- Planner:contract、DAG shape、write boundary、verification plan;不做 implementation edits。
|
|
25
|
-
- Scout:code/test/doc/artifact facts;不写 repo。
|
|
26
|
-
- Implementer:在 writeSet 内做 bounded changes;不扩大 scope 或宣称完成。
|
|
27
|
-
- Reviewer:bugs、regressions、missing tests、risk;除非被指派,否则不重写。
|
|
28
|
-
- Verifier:command evidence、reproduction、failure category;model judgment 不是 proof。
|
|
29
|
-
- Supervisor:gates、escalation、repair scope;不绕过 write-guard 或 human-gate。
|
|
30
|
-
- Closeout:evidence、risks、next steps;不隐藏 failures。
|
|
31
|
-
|
|
32
|
-
## Prompt Contract
|
|
33
|
-
|
|
34
|
-
每个 delegated node prompt 应包含:objective、task id、role、executor、allowed paths、forbidden paths、writeSet、upstream artifact refs、concise excerpts、output contract、expected evidence、non-goals、stop conditions。
|
|
35
|
-
|
|
36
|
-
read-only node 只能在 node output 返回 findings。不得在 repo 中创建 scratch files。
|
|
37
|
-
|
|
38
|
-
## Persistence Rules
|
|
39
|
-
|
|
40
|
-
Requirements 与 constraints 写入 task `source/`。Execution state 与 node artifacts 写入 `.harness/`。Durable plans、reports、decisions 写入 `docs/`。可复用 process guidance 写入 `skills/`。Chat 仅 transient。
|
|
41
|
-
|
|
42
|
-
## Failure Handling
|
|
43
|
-
|
|
44
|
-
- Missing context:运行 scout 或读取 durable source。
|
|
45
|
-
- Ambiguous requirement:implementation 前更新 contract。
|
|
46
|
-
- Verification failure:改 code 前先 diagnose cause。
|
|
47
|
-
- Missing skill instructions:视为 context defect;不要假设 hidden behavior。
|
|
48
|
-
- Missing fresh verification:不要 close out。
|
|
1
|
+
---
|
|
2
|
+
name: ai-engineering-context
|
|
3
|
+
description: 当 AI coding agent 启动 loop-agent 工作、准备 DAG 或 Loop context、委派 role-specific 节点,或决定 requirements、facts、evidence、handoff notes 应落何处时使用。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# AI Engineering Context
|
|
7
|
+
|
|
8
|
+
Context 是工程 artifact,不是 chat 残留。须显式保留 requirements、role 边界、write authority、evidence 与 handoff facts。
|
|
9
|
+
|
|
10
|
+
## When to Use
|
|
11
|
+
|
|
12
|
+
在启动 task、DAG、workflow 或 Loop round;准备 role prompt;委派给 Cursor/Pi/shell/static executor;或处理 stale plan、冲突 requirements、缺失 evidence 时使用。
|
|
13
|
+
|
|
14
|
+
不要用于 private platform paths、personal memory、Google Drive 规则,或替代 task skills。
|
|
15
|
+
|
|
16
|
+
## Context Priority
|
|
17
|
+
|
|
18
|
+
按以下顺序优先采信 facts:最新 user instruction;task source/contract;DAG/Loop artifacts;docs/plans/ADRs;code/tests;chat history 仅作 hint。
|
|
19
|
+
|
|
20
|
+
若 sources 冲突,停止并点明冲突。
|
|
21
|
+
|
|
22
|
+
## Role Boundaries
|
|
23
|
+
|
|
24
|
+
- Planner:contract、DAG shape、write boundary、verification plan;不做 implementation edits。
|
|
25
|
+
- Scout:code/test/doc/artifact facts;不写 repo。
|
|
26
|
+
- Implementer:在 writeSet 内做 bounded changes;不扩大 scope 或宣称完成。
|
|
27
|
+
- Reviewer:bugs、regressions、missing tests、risk;除非被指派,否则不重写。
|
|
28
|
+
- Verifier:command evidence、reproduction、failure category;model judgment 不是 proof。
|
|
29
|
+
- Supervisor:gates、escalation、repair scope;不绕过 write-guard 或 human-gate。
|
|
30
|
+
- Closeout:evidence、risks、next steps;不隐藏 failures。
|
|
31
|
+
|
|
32
|
+
## Prompt Contract
|
|
33
|
+
|
|
34
|
+
每个 delegated node prompt 应包含:objective、task id、role、executor、allowed paths、forbidden paths、writeSet、upstream artifact refs、concise excerpts、output contract、expected evidence、non-goals、stop conditions。
|
|
35
|
+
|
|
36
|
+
read-only node 只能在 node output 返回 findings。不得在 repo 中创建 scratch files。
|
|
37
|
+
|
|
38
|
+
## Persistence Rules
|
|
39
|
+
|
|
40
|
+
Requirements 与 constraints 写入 task `source/`。Execution state 与 node artifacts 写入 `.harness/`。Durable plans、reports、decisions 写入 `docs/`。可复用 process guidance 写入 `skills/`。Chat 仅 transient。
|
|
41
|
+
|
|
42
|
+
## Failure Handling
|
|
43
|
+
|
|
44
|
+
- Missing context:运行 scout 或读取 durable source。
|
|
45
|
+
- Ambiguous requirement:implementation 前更新 contract。
|
|
46
|
+
- Verification failure:改 code 前先 diagnose cause。
|
|
47
|
+
- Missing skill instructions:视为 context defect;不要假设 hidden behavior。
|
|
48
|
+
- Missing fresh verification:不要 close out。
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: code-review-core
|
|
3
|
-
description: 用于只读 code review 节点,产出带文件与行号引用的优先级 findings。
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Code Review Core
|
|
7
|
-
|
|
8
|
-
本 skill 用于 reviewer 节点。
|
|
9
|
-
|
|
10
|
-
## Review 重点
|
|
11
|
-
|
|
12
|
-
- 优先关注 correctness、行为回归、security、数据丢失与缺失验证。
|
|
13
|
-
- findings 须 grounded 在具体文件与行号。
|
|
14
|
-
- 区分 blocking findings 与次要 maintainability 备注。
|
|
15
|
-
- 检查测试是否证明变更行为,文档是否与面向用户的变更一致。
|
|
16
|
-
- 若无 findings,明确说明,并指出 residual test gap(如有)。
|
|
17
|
-
|
|
18
|
-
## Output
|
|
19
|
-
|
|
20
|
-
按 severity 排序列出 findings。仅当无 blocking findings 时,才写 `VERDICT: pass`。
|
|
1
|
+
---
|
|
2
|
+
name: code-review-core
|
|
3
|
+
description: 用于只读 code review 节点,产出带文件与行号引用的优先级 findings。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Code Review Core
|
|
7
|
+
|
|
8
|
+
本 skill 用于 reviewer 节点。
|
|
9
|
+
|
|
10
|
+
## Review 重点
|
|
11
|
+
|
|
12
|
+
- 优先关注 correctness、行为回归、security、数据丢失与缺失验证。
|
|
13
|
+
- findings 须 grounded 在具体文件与行号。
|
|
14
|
+
- 区分 blocking findings 与次要 maintainability 备注。
|
|
15
|
+
- 检查测试是否证明变更行为,文档是否与面向用户的变更一致。
|
|
16
|
+
- 若无 findings,明确说明,并指出 residual test gap(如有)。
|
|
17
|
+
|
|
18
|
+
## Output
|
|
19
|
+
|
|
20
|
+
按 severity 排序列出 findings。仅当无 blocking findings 时,才写 `VERDICT: pass`。
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: codebase-scout
|
|
3
|
-
description: 用于只读 scout 节点,在实现前定位现有代码、测试、文档与集成点。
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Codebase Scout
|
|
7
|
-
|
|
8
|
-
本 skill 用于 scout 节点。
|
|
9
|
-
|
|
10
|
-
## 规则
|
|
11
|
-
|
|
12
|
-
- 从 repo 指令、task source 与邻近测试入手。
|
|
13
|
-
- 可用时优先 CodeGraph;否则用 `rg` 与聚焦文件阅读。
|
|
14
|
-
- 在提议新抽象前,识别现有 helper 与 ownership 边界。
|
|
15
|
-
- 只返回事实,不做编辑。
|
|
16
|
-
|
|
17
|
-
## Output
|
|
18
|
-
|
|
19
|
-
列出相关文件、现有模式、风险,以及实现所需的最小 write surface。
|
|
1
|
+
---
|
|
2
|
+
name: codebase-scout
|
|
3
|
+
description: 用于只读 scout 节点,在实现前定位现有代码、测试、文档与集成点。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Codebase Scout
|
|
7
|
+
|
|
8
|
+
本 skill 用于 scout 节点。
|
|
9
|
+
|
|
10
|
+
## 规则
|
|
11
|
+
|
|
12
|
+
- 从 repo 指令、task source 与邻近测试入手。
|
|
13
|
+
- 可用时优先 CodeGraph;否则用 `rg` 与聚焦文件阅读。
|
|
14
|
+
- 在提议新抽象前,识别现有 helper 与 ownership 边界。
|
|
15
|
+
- 只返回事实,不做编辑。
|
|
16
|
+
|
|
17
|
+
## Output
|
|
18
|
+
|
|
19
|
+
列出相关文件、现有模式、风险,以及实现所需的最小 write surface。
|