harness-everything 0.55.2 → 0.55.4
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/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/AGENTS.md +1 -1
- package/BENCHMARK_SOP.md +2 -2
- package/CHANGELOG.md +22 -0
- package/README.md +15 -16
- package/SECURITY.md +1 -1
- package/VERIFICATION.md +4 -8
- package/behavioral-evals/PAIRED-BENCHMARK.md +12 -27
- package/behavioral-evals/README.md +21 -65
- package/behavioral-evals/cases/breaker-zoom-out-after-3.yaml +26 -33
- package/behavioral-evals/cases/pressure-sunk-cost-retry.yaml +15 -17
- package/behavioral-evals/paired-benchmark.js +3 -40
- package/behavioral-evals/run.js +2 -3
- package/ci/fixtures/doc-obligations/reconciliation-s2b/wiring/legacy-off-golden.json +0 -6
- package/ci/invariant-routing.test.js +32 -6
- package/ci/lib/opencode-verification-loader.js +3 -5
- package/ci/mechanism-2a-rule-of-3.test.js +111 -97
- package/ci/mechanism-2n-opencode-plugin.test.js +68 -206
- package/ci/mechanism-2p-opencode-v2-entrypoint.test.js +47 -28
- package/ci/mechanism-2w-platform-compatibility.test.js +1 -0
- package/ci/mechanism-32-paired-benchmark.test.js +1 -2
- package/ci/mechanism-33-issues-205-207.test.js +1 -1
- package/ci/mechanism-338-opencode-async.test.js +18 -49
- package/ci/mechanism-36-verify-timeout.test.js +3 -189
- package/ci/mechanism-39-opencode-verify-outcomes.test.js +56 -323
- package/ci/mechanism-397-opencode-observations.test.js +64 -9
- package/ci/mechanism-check-packet-write-set.test.js +163 -8
- package/ci/mechanism-codex-hook-results.test.js +9 -5
- package/ci/mechanism-prb-outline-review.test.js +1 -13
- package/ci/mechanism-system-one-router.test.js +1 -1
- package/ci/openai-plugin-package.test.js +30 -7
- package/ci/openai-plugin-runtime.test.js +64 -32
- package/ci/prompt-contract-regressions.test.js +1 -5
- package/ci/router-workflow-plan.test.js +8 -8
- package/ci/self-evolve-loop.test.js +51 -51
- package/ci/workflow-execution-contract.test.js +3 -6
- package/code-review/SKILL.md +1 -1
- package/code-review/templates/finding.template.md +17 -1
- package/docker-verify.sh +1 -117
- package/docs/architecture.md +9 -7
- package/docs/document-lifecycle.md +1 -1
- package/docs/enforcement-locks.md +12 -10
- package/docs/mechanism-first-skill-mesh.md +2 -2
- package/docs/openai-plugin.md +3 -3
- package/docs/philosophy.md +1 -1
- package/docs/platform-capabilities.md +4 -3
- package/docs/platform-compatibility.json +2 -2
- package/docs/reflection.md +1 -1
- package/docs/routing.md +2 -2
- package/docs/system-one-suggestion-gates.md +4 -4
- package/docs/troubleshooting.md +9 -35
- package/docs/workflow-runtime.md +19 -18
- package/docs/workflows/environment-detection.md +11 -9
- package/docs/workflows/fable-discipline.md +6 -5
- package/docs/workflows/fable-mode.md +6 -5
- package/docs/workflows/harness-everything.md +5 -5
- package/docs/workflows/improve-codebase-architecture.md +10 -8
- package/docs/workflows/install-cognitive-os.md +5 -5
- package/docs/workflows/tdd.md +9 -9
- package/docs/workflows/zoom-out.md +20 -30
- package/environment-detection/SKILL.md +2 -2
- package/environment-detection/references/shell-syntax-rules.md +1 -1
- package/eval-harness/SKILL.md +1 -1
- package/eval-harness/references/scoring-rubric.md +3 -3
- package/evals/zoom-out/eval.yaml +2 -2
- package/evals/zoom-out/tasks/negative-productive-iteration.yaml +15 -0
- package/evals/zoom-out/tasks/negative-trivial-edit.yaml +6 -6
- package/evals/zoom-out/tasks/positive-first-failure.yaml +15 -0
- package/evals/zoom-out/tasks/positive-repair-loop.yaml +1 -1
- package/fable-discipline/SKILL.md +3 -3
- package/fable-discipline/references/discipline-rules.md +1 -1
- package/fable-mode/SKILL.md +1 -1
- package/fable-mode/execution-guardrails/SKILL.md +2 -4
- package/fable-mode/execution-guardrails/references/guardrail-rules.md +3 -3
- package/fable-mode/fable-haiku/SKILL.md +1 -1
- package/fable-mode/fable-opus/SKILL.md +2 -2
- package/fable-mode/fable-sonnet/SKILL.md +1 -1
- package/fable-mode/references/execution-phases.md +2 -2
- package/harness-everything/SKILL.md +3 -3
- package/harness-everything/references/router-workflow-plan.md +2 -2
- package/harness-everything/references/skill-registry.md +2 -2
- package/harness-everything/references/triage-and-tiers.md +5 -5
- package/harness-everything/scripts/bootstrap.js +1 -26
- package/harness-everything/scripts/kernel-router-core.js +2 -3
- package/harness-everything/scripts/kernel-router.js +1 -1
- package/harness-everything/scripts/router-contract-core.js +1 -1
- package/harness-everything/scripts/routing-keywords.json +0 -2
- package/hooks/hooks.json +0 -33
- package/hooks/scripts/lib/harness-state.js +5 -6
- package/hooks/scripts/lib/learning-opportunity.js +3 -13
- package/hooks/scripts/openai-session-start.js +2 -4
- package/improve-codebase-architecture/SKILL.md +3 -3
- package/improve-codebase-architecture/guides/refactoring-workflow.md +5 -4
- package/install-cognitive-os/SKILL.md +3 -3
- package/opencode-plugin/README.md +18 -43
- package/opencode-plugin/index.mjs +52 -380
- package/opencode-plugin/plugin.json +1 -1
- package/package.json +1 -4
- package/plugins/harness-everything/.codex-plugin/plugin.json +1 -1
- package/plugins/harness-everything/hooks/hooks.json +0 -14
- package/plugins/harness-everything/hooks/scripts/lib/harness-state.js +5 -6
- package/plugins/harness-everything/hooks/scripts/lib/learning-opportunity.js +3 -13
- package/plugins/harness-everything/hooks/scripts/lib/workspace.js +2 -2
- package/plugins/harness-everything/hooks/scripts/openai-session-start.js +2 -4
- package/plugins/harness-everything/hooks/session-start.js +2 -4
- package/plugins/harness-everything/plugin.json +1 -1
- package/plugins/harness-everything/scripts/lib/advisory-text.js +2 -2
- package/plugins/harness-everything/scripts/lib/workspace.js +2 -2
- package/plugins/harness-everything/skills/code-review/SKILL.md +1 -1
- package/plugins/harness-everything/skills/code-review/templates/finding.template.md +17 -1
- package/plugins/harness-everything/skills/environment-detection/SKILL.md +2 -2
- package/plugins/harness-everything/skills/environment-detection/references/shell-syntax-rules.md +1 -1
- package/plugins/harness-everything/skills/eval-harness/SKILL.md +1 -1
- package/plugins/harness-everything/skills/eval-harness/references/scoring-rubric.md +3 -3
- package/plugins/harness-everything/skills/fable-discipline/SKILL.md +3 -3
- package/plugins/harness-everything/skills/fable-discipline/references/discipline-rules.md +1 -1
- package/plugins/harness-everything/skills/fable-mode/SKILL.md +1 -1
- package/plugins/harness-everything/skills/fable-mode/execution-guardrails/SKILL.md +2 -4
- package/plugins/harness-everything/skills/fable-mode/execution-guardrails/references/guardrail-rules.md +3 -3
- package/plugins/harness-everything/skills/fable-mode/fable-haiku/SKILL.md +1 -1
- package/plugins/harness-everything/skills/fable-mode/fable-opus/SKILL.md +2 -2
- package/plugins/harness-everything/skills/fable-mode/fable-sonnet/SKILL.md +1 -1
- package/plugins/harness-everything/skills/fable-mode/references/execution-phases.md +2 -2
- package/plugins/harness-everything/skills/harness-everything/SKILL.md +3 -3
- package/plugins/harness-everything/skills/harness-everything/references/router-workflow-plan.md +2 -2
- package/plugins/harness-everything/skills/harness-everything/references/skill-registry.md +2 -2
- package/plugins/harness-everything/skills/harness-everything/references/triage-and-tiers.md +5 -5
- package/plugins/harness-everything/skills/harness-everything/scripts/bootstrap.js +1 -26
- package/plugins/harness-everything/skills/harness-everything/scripts/kernel-router-core.js +2 -3
- package/plugins/harness-everything/skills/harness-everything/scripts/kernel-router.js +1 -1
- package/plugins/harness-everything/skills/harness-everything/scripts/router-contract-core.js +1 -1
- package/plugins/harness-everything/skills/harness-everything/scripts/routing-keywords.json +0 -2
- package/plugins/harness-everything/skills/improve-codebase-architecture/SKILL.md +3 -3
- package/plugins/harness-everything/skills/improve-codebase-architecture/guides/refactoring-workflow.md +5 -4
- package/plugins/harness-everything/skills/install-cognitive-os/SKILL.md +3 -3
- package/plugins/harness-everything/skills/self-evolve/SKILL.md +1 -1
- package/plugins/harness-everything/skills/self-evolve/references/memory-resolution.md +3 -3
- package/plugins/harness-everything/skills/self-evolve/schemas/lesson-candidate.schema.json +4 -1
- package/plugins/harness-everything/skills/self-evolve/scripts/lesson-candidate.js +1 -0
- package/plugins/harness-everything/skills/skill-creator/SKILL.md +1 -1
- package/plugins/harness-everything/skills/skill-creator/references/quality-checklist.md +1 -1
- package/plugins/harness-everything/skills/skill-creator/references/quality-principles.md +4 -4
- package/plugins/harness-everything/skills/tdd/SKILL.md +2 -2
- package/plugins/harness-everything/skills/tdd/references/core-discipline.md +3 -5
- package/plugins/harness-everything/skills/todo-driven-workflow/SKILL.md +2 -2
- package/plugins/harness-everything/skills/zoom-out/SKILL.md +14 -26
- package/plugins/harness-everything/skills/zoom-out/references/circuit-breaker.md +18 -62
- package/references/platform-advisory-template.md +3 -9
- package/sbom.cdx.json +7 -7
- package/scripts/check-packet-write-set.js +76 -1
- package/scripts/lib/advisory-text.js +2 -2
- package/scripts/lib/workspace.js +2 -2
- package/self-evolve/SKILL.md +1 -1
- package/self-evolve/references/memory-resolution.md +3 -3
- package/self-evolve/schemas/lesson-candidate.schema.json +4 -1
- package/self-evolve/scripts/lesson-candidate.js +1 -0
- package/skill-creator/SKILL.md +1 -1
- package/skill-creator/references/quality-checklist.md +1 -1
- package/skill-creator/references/quality-principles.md +4 -4
- package/submission/openai/test-cases.json +5 -5
- package/tdd/SKILL.md +2 -2
- package/tdd/references/core-discipline.md +3 -5
- package/todo-driven-workflow/SKILL.md +2 -2
- package/zoom-out/SKILL.md +14 -26
- package/zoom-out/references/circuit-breaker.md +18 -62
- package/behavioral-evals/opencode-hardlock-live.js +0 -17
- package/behavioral-evals/opencode-reflection-gate-live.js +0 -342
- package/ci/mechanism-31-opencode-hardlock-evidence.test.js +0 -82
- package/evals/zoom-out/tasks/negative-first-edge-case-review.yaml +0 -16
- package/evals/zoom-out/tasks/positive-repeated-failure.yaml +0 -15
- package/hooks/scripts/reset-circuit-breaker.js +0 -30
- package/hooks/scripts/rule-of-3-tracker.js +0 -165
- package/hooks/scripts/rule-of-3.js +0 -171
- package/plugins/harness-everything/hooks/scripts/reset-circuit-breaker.js +0 -30
- package/plugins/harness-everything/hooks/scripts/rule-of-3-tracker.js +0 -165
- package/plugins/harness-everything/hooks/scripts/rule-of-3.js +0 -171
package/docs/troubleshooting.md
CHANGED
|
@@ -112,23 +112,9 @@ npx.cmd github:dyphn1/Harness-everything uninstall
|
|
|
112
112
|
npx.cmd github:dyphn1/Harness-everything install
|
|
113
113
|
```
|
|
114
114
|
|
|
115
|
-
###
|
|
115
|
+
### Retired Rule-of-3 and reset paths
|
|
116
116
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
**Solution:**
|
|
120
|
-
1. This is normal behavior on an integration surface that actually packages the circuit-breaker hooks: Harness is protecting you from infinite loops.
|
|
121
|
-
2. Follow the zoom-out instructions in the error message.
|
|
122
|
-
3. If it's a false positive on the Claude Code hook path, check the error signature:
|
|
123
|
-
```bash
|
|
124
|
-
cat .claude/harness-everything/state/sessions/default/rule-of-3-state.json
|
|
125
|
-
```
|
|
126
|
-
4. Reset if needed:
|
|
127
|
-
```bash
|
|
128
|
-
npm run harness:reset
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
Do not expect this Claude Code state file merely because Harness skills or an instruction-only platform integration are installed.
|
|
117
|
+
The former `hooks/scripts/rule-of-3*.js`, `reset-circuit-breaker.js`, forced report/unlock path, and OpenCode hard-lock path are retired under [#394](https://github.com/dyphn1/Harness-everything/issues/394). Old breaker messages or state files are historical; they are not a current retry counter or reset workflow. Zoom-out is agent-initiated and can be chosen on the first meaningful signal; productive work may continue when the next check is justified by evidence. See [the Zoom-out workflow](workflows/zoom-out.md).
|
|
132
118
|
|
|
133
119
|
## Platform-Specific Issues
|
|
134
120
|
|
|
@@ -262,19 +248,11 @@ Do not troubleshoot a missing `SessionStart` or `UserPromptSubmit` hook in the p
|
|
|
262
248
|
**Symptom:** Terminal commands feel slower on a hook-enabled integration.
|
|
263
249
|
|
|
264
250
|
**Solution:**
|
|
265
|
-
1. Check
|
|
266
|
-
|
|
267
|
-
time node hooks/scripts/rule-of-3.js < /dev/null
|
|
268
|
-
```
|
|
269
|
-
2. If >200ms, check for:
|
|
251
|
+
1. Check the host's diagnostics for the active hook path.
|
|
252
|
+
2. If execution remains slow, check for:
|
|
270
253
|
- Large state files
|
|
271
254
|
- Network calls in hooks
|
|
272
255
|
- Complex file operations
|
|
273
|
-
3. Reset state if appropriate:
|
|
274
|
-
```bash
|
|
275
|
-
rm -rf .claude/harness-everything/state/sessions/
|
|
276
|
-
```
|
|
277
|
-
|
|
278
256
|
### High Memory Usage
|
|
279
257
|
|
|
280
258
|
**Symptom:** Node.js processes consuming too much memory
|
|
@@ -293,19 +271,15 @@ Do not troubleshoot a missing `SessionStart` or `UserPromptSubmit` hook in the p
|
|
|
293
271
|
|
|
294
272
|
```bash
|
|
295
273
|
export HARNESS_DEBUG=1
|
|
296
|
-
node hooks/scripts/rule-of-3.js < payload.json
|
|
297
274
|
```
|
|
298
275
|
|
|
276
|
+
The former Rule-of-3 hook and its state diagnostics are retired under [#394](https://github.com/dyphn1/Harness-everything/issues/394); this flag does not provide a current breaker trace.
|
|
277
|
+
|
|
299
278
|
### Check State Files
|
|
300
279
|
|
|
301
280
|
```bash
|
|
302
|
-
# Claude Code hook-path state example
|
|
303
|
-
cat .claude/harness-everything/state/sessions/default/rule-of-3-state.json
|
|
281
|
+
# Claude Code hook-path handoff state example
|
|
304
282
|
cat .claude/harness-everything/state/sessions/default/handoff-state.json
|
|
305
|
-
|
|
306
|
-
# Reset Claude hook-path state
|
|
307
|
-
rm -rf .claude/harness-everything/state/sessions/
|
|
308
|
-
npm run harness:reset
|
|
309
283
|
```
|
|
310
284
|
|
|
311
285
|
### Manual Hook Testing
|
|
@@ -364,8 +338,8 @@ cat .claude/settings.json | grep -A 20 "hooks" >> harness-diagnostic.txt 2>/dev/
|
|
|
364
338
|
- **Solution:** Confirm the platform/integration surface first; on a supported stateful hook path, state is created on first use
|
|
365
339
|
|
|
366
340
|
### "Zoom-out report not found"
|
|
367
|
-
- **Cause:**
|
|
368
|
-
- **Solution:**
|
|
341
|
+
- **Cause:** An old Rule-of-3 integration expected a compulsory report; that path is retired under [#394](https://github.com/dyphn1/Harness-everything/issues/394).
|
|
342
|
+
- **Solution:** Use [the agent-initiated Zoom-out guidance](workflows/zoom-out.md) when evidence warrants reassessment; no special report or reset is required.
|
|
369
343
|
|
|
370
344
|
---
|
|
371
345
|
|
package/docs/workflow-runtime.md
CHANGED
|
@@ -33,25 +33,26 @@ The unified status shape uses a visible Markdown hierarchy:
|
|
|
33
33
|
|
|
34
34
|
Keep one short evidence item inline; use nested evidence bullets when multiple items improve scanability. Emit it before substantive execution, after major phases, on material direction changes, at meaningful long-running phase boundaries, and before final completion.
|
|
35
35
|
|
|
36
|
-
The
|
|
36
|
+
The explicit hard boundary is:
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
**User/host permission and dangerous-action approval** — authorization boundaries such as the action gate.
|
|
39
|
+
|
|
40
|
+
Zoom-out is agent-initiated. An agent may reassess at the first meaningful
|
|
41
|
+
signal or later; productive iteration may continue when attempts add evidence,
|
|
42
|
+
narrow the cause, and justify the next check.
|
|
40
43
|
|
|
41
44
|
## Runtime flow
|
|
42
45
|
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
-> reflection accepted
|
|
54
|
-
-> normal execution resumes
|
|
46
|
+
```mermaid
|
|
47
|
+
flowchart TD
|
|
48
|
+
Route["Route and resolve the selected workflow contract"] --> Execute["Execute with model-chosen tactics"]
|
|
49
|
+
Execute --> Observe["Observe edit, verification, and stage evidence"]
|
|
50
|
+
Observe --> Remind["Emit reminders when evidence is weak"]
|
|
51
|
+
Remind --> Complete["Complete when required obligations resolve"]
|
|
52
|
+
Observe --> Signal["Evidence conflicts with an assumption or leaves the next check unclear"]
|
|
53
|
+
Signal --> Reassess["Agent may choose zoom-out at the first meaningful signal"]
|
|
54
|
+
Observe --> Productive["Attempts add evidence or narrow the cause"]
|
|
55
|
+
Productive --> Continue["Productive iteration may continue with a justified next check"]
|
|
55
56
|
```
|
|
56
57
|
|
|
57
58
|
There is no `budget-exhausted -> blocked -> reset-budget` lifecycle.
|
|
@@ -128,7 +129,7 @@ Regression tests **MUST** prove:
|
|
|
128
129
|
- commands/Stop remain available;
|
|
129
130
|
- no mutation-probe lock or reservation state is created;
|
|
130
131
|
- `exec_command` verification can update `lastVerifyAt`;
|
|
131
|
-
-
|
|
132
|
-
-
|
|
133
|
-
-
|
|
132
|
+
- reassessment is available at the first meaningful signal;
|
|
133
|
+
- productive iteration may continue when attempts add evidence or narrow the cause;
|
|
134
|
+
- no recurrence counter, reflection token, compulsory report, reset, or escalation state is created;
|
|
134
135
|
- permission/dangerous-action boundaries remain separate and intact.
|
|
@@ -30,9 +30,10 @@ graph TD
|
|
|
30
30
|
GitBash --> GuardCwd[Stay inside process cwd]
|
|
31
31
|
PowerShell --> GuardCwd
|
|
32
32
|
CmdShell --> GuardCwd
|
|
33
|
-
GuardCwd -->
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
GuardCwd --> Evidence{Does the result contradict assumptions or reveal unknown impact?}
|
|
34
|
+
Evidence -->|yes| ZoomChoice[Agent may choose zoom-out]
|
|
35
|
+
Evidence -->|not yet| ContinueRun[Continue with aligned syntax]
|
|
36
|
+
ZoomChoice --> ContinueRun
|
|
36
37
|
```
|
|
37
38
|
|
|
38
39
|
## 2. Triggering and Routing Path
|
|
@@ -42,9 +43,10 @@ graph LR
|
|
|
42
43
|
StartTrigger[Session start request] --> EnvDetect[environment-detection SKILL]
|
|
43
44
|
ComplexSeq[Complex terminal sequence] --> EnvDetect
|
|
44
45
|
EnvDetect --> AlignedRun[Aligned command execution]
|
|
45
|
-
AlignedRun -->
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
AlignedRun --> Evidence{Would reassessment improve the next step?}
|
|
47
|
+
Evidence -->|yes| ZoomOut[Agent-initiated zoom-out]
|
|
48
|
+
Evidence -->|no; next check is justified| AlignedRun
|
|
49
|
+
ZoomOut --> AlignedRun
|
|
48
50
|
```
|
|
49
51
|
|
|
50
52
|
## 3. Real-World Use Case
|
|
@@ -56,7 +58,7 @@ A session starts on Windows with PowerShell as the active shell. The agent needs
|
|
|
56
58
|
3. If the helper/runtime is absent (for example a skills-only distribution), report that the local repair surface is unavailable and continue without searching parent/cache paths.
|
|
57
59
|
4. Only an explicit install/setup/repair request may invoke mutating self-heal. OpenCode keeps its separate plugin installation/runtime boundary.
|
|
58
60
|
5. Adopt PowerShell syntax for paths and env vars instead of Git Bash assumptions. If `preflight.js` cannot run, inspect `<environment_info>` and probe minimally.
|
|
59
|
-
6. Stay inside `process.cwd()
|
|
61
|
+
6. Stay inside `process.cwd()`. A first failure may justify reassessment when it contradicts assumptions or reveals an unknown impact boundary; continue when new evidence justifies the next check.
|
|
60
62
|
|
|
61
63
|
```mermaid
|
|
62
64
|
graph TD
|
|
@@ -65,7 +67,7 @@ graph TD
|
|
|
65
67
|
FoundShell --> UseCmd[Use PowerShell syntax for listing and env lookup]
|
|
66
68
|
UseCmd --> CmdResult{Command works?}
|
|
67
69
|
CmdResult -->|yes| ProceedTask[Proceed with task]
|
|
68
|
-
CmdResult -->|no
|
|
70
|
+
CmdResult -->|no; evidence warrants reassessment| ZoomStep[Agent chooses zoom-out]
|
|
69
71
|
```
|
|
70
72
|
|
|
71
73
|
## 4. Verification Check
|
|
@@ -77,5 +79,5 @@ graph TD
|
|
|
77
79
|
- [ ] Mutating self-heal ran only for explicit install/setup/repair intent and only on a supported local platform surface
|
|
78
80
|
- [ ] OpenCode was kept on its separate plugin runtime; skills-only distributions did not assume a local installer
|
|
79
81
|
- [ ] No toolchain installation was attempted; scope stayed to detection and alignment
|
|
80
|
-
- [ ]
|
|
82
|
+
- [ ] Reassessment was agent-initiated when evidence warranted it; productive checks could continue without a count threshold
|
|
81
83
|
- [ ] Shell detail followed `environment-detection/references/shell-syntax-rules.md` where needed
|
|
@@ -12,10 +12,11 @@ graph TD
|
|
|
12
12
|
Compact --> Handoff[Verify handoff manifest]
|
|
13
13
|
Handoff --> Diverge{Build errors diverging?}
|
|
14
14
|
Diverge -->|no| Continue[Continue guarded work]
|
|
15
|
-
Diverge -->|yes| Warn[Surface regression
|
|
16
|
-
Warn -->
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
Diverge -->|yes| Warn[Surface regression and evidence]
|
|
16
|
+
Warn --> Choose{Would reassessment help?}
|
|
17
|
+
Choose -->|yes| Reassess[Agent-initiated zoom-out]
|
|
18
|
+
Choose -->|not yet| Continue
|
|
19
|
+
Reassess --> Continue
|
|
19
20
|
```
|
|
20
21
|
|
|
21
22
|
Commit boundaries are guidance only. Create commits only when the user or active host/workflow has authorized them; otherwise leave changes uncommitted.
|
|
@@ -25,6 +26,6 @@ Commit boundaries are guidance only. Create commits only when the user or active
|
|
|
25
26
|
- [ ] Milestone state compacted and irrelevant broad reads avoided.
|
|
26
27
|
- [ ] Handoff manifest written and verified.
|
|
27
28
|
- [ ] Divergence surfaced without creating an independent hard stop.
|
|
28
|
-
- [ ]
|
|
29
|
+
- [ ] Reassessment remains agent-initiated; productive work can continue when checks add evidence.
|
|
29
30
|
- [ ] Commits occur only with user/host authorization.
|
|
30
31
|
- [ ] Detail follows `fable-discipline/references/discipline-rules.md`.
|
|
@@ -80,14 +80,15 @@ flowchart TD
|
|
|
80
80
|
Minor-concern batching is **not** a stage transition. Workers keep producing and
|
|
81
81
|
verifying the assigned artifact and include accumulated minor concerns in the next
|
|
82
82
|
natural report/handoff; the number of minor concerns alone never stops or returns a
|
|
83
|
-
worker. A material confirmed blocker may stop the current stage immediately.
|
|
84
|
-
|
|
85
|
-
|
|
83
|
+
worker. A material confirmed blocker may stop the current stage immediately. An
|
|
84
|
+
agent may choose Zoom-out when evidence contradicts an assumption or exposes an
|
|
85
|
+
unknown impact boundary, including on the first meaningful signal. Productive
|
|
86
|
+
attempts may continue when they add evidence or narrow the cause.
|
|
86
87
|
|
|
87
|
-
Replan counts (`maxReplans`) are advisory and never halt execution on their own; unresolved blockers are escalated rather than hidden behind endless restructuring
|
|
88
|
+
Replan counts (`maxReplans`) are advisory and never halt execution on their own; unresolved blockers are escalated rather than hidden behind endless restructuring. The former Rule-of-3 counter and forced-reflection path are retired under [#394](https://github.com/dyphn1/Harness-everything/issues/394).
|
|
88
89
|
|
|
89
90
|
## 5. Completion Boundary
|
|
90
91
|
|
|
91
92
|
Fable completion means the planned stages have produced their artifacts, their checks have passed, and high-risk outputs have received skeptical review where required. It does not mean every possible companion skill was invoked.
|
|
92
93
|
|
|
93
|
-
The canonical executable and policy details live in `fable-mode/SKILL.md`, `fable-mode/behavior-profile-matrix.json`, `fable-mode/runtime-model-floor-matrix.json`, `fable-mode/scripts/model-selector.js`, and `fable-mode/references/model-matrix.md`.
|
|
94
|
+
The canonical executable and policy details live in `fable-mode/SKILL.md`, `fable-mode/behavior-profile-matrix.json`, `fable-mode/runtime-model-floor-matrix.json`, `fable-mode/scripts/model-selector.js`, and `fable-mode/references/model-matrix.md`.
|
|
@@ -27,9 +27,9 @@ graph TD
|
|
|
27
27
|
Execute --> VerifyGate{Objective evidence supports completion?}
|
|
28
28
|
VerifyGate -->|Yes| Done([Evidence-backed completion])
|
|
29
29
|
VerifyGate -->|No| Diagnose["Diagnose / bounded re-plan"]
|
|
30
|
-
Diagnose -->
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
Diagnose --> Choice{What does the evidence support?}
|
|
31
|
+
Choice -->|Reassess now| ZoomOut["zoom-out: rebuild facts read-only and revise the next check"]
|
|
32
|
+
Choice -->|Productive iteration| Execute["Continue while attempts yield evidence or narrow the cause"]
|
|
33
33
|
ZoomOut --> Execute
|
|
34
34
|
```
|
|
35
35
|
|
|
@@ -48,7 +48,7 @@ graph LR
|
|
|
48
48
|
Router -->|Large / Multi-source / Multi-session| Ch3["Fable stages expose bindings only when dependencies pass"]
|
|
49
49
|
Router -->|Architecture / Plan review| Ch4["Bind domain skills/references only to their consuming step"]
|
|
50
50
|
|
|
51
|
-
Ch1 --> Invariants["Invariants: route-before-execution, verify-before-claim,
|
|
51
|
+
Ch1 --> Invariants["Invariants: route-before-execution, verify-before-claim, loop-awareness, resolve-active-required-bindings, resolve-selected-workflow"]
|
|
52
52
|
Ch2 --> Invariants
|
|
53
53
|
Ch3 --> Invariants
|
|
54
54
|
Ch4 --> Invariants
|
|
@@ -94,4 +94,4 @@ To ensure that the `harness-everything` skill is operating in strict compliance
|
|
|
94
94
|
- [ ] **Bind knowledge by step**: required/optional skills and references are declared per ordered requirement; only active paths are loaded/disclosed.
|
|
95
95
|
- [ ] **Resolve selected workflow**: the selected topology executed to resolution; escape only for uncovered scope with evidence.
|
|
96
96
|
- [ ] **Verify before claim**: objective evidence (tests, checks, quoted tool output) supports completion.
|
|
97
|
-
- [ ] **
|
|
97
|
+
- [ ] **Loop awareness**: an agent may use `zoom-out` at the first meaningful signal, while productive iterations may continue at any attempt.
|
|
@@ -17,9 +17,10 @@ graph TD
|
|
|
17
17
|
SafetyNet -->|No| CharTests["Write Characterization Tests first via tdd"]
|
|
18
18
|
SafetyNet -->|Yes| Extract["Extract incrementally via tdd; verify tests after each change"]
|
|
19
19
|
CharTests --> Extract
|
|
20
|
-
Extract --> ErrorCheck{"
|
|
21
|
-
ErrorCheck -->|Yes|
|
|
22
|
-
ErrorCheck -->|No| DoneState["
|
|
20
|
+
Extract --> ErrorCheck{"Does evidence undermine an assumption or reveal unknown impact?"}
|
|
21
|
+
ErrorCheck -->|Yes; reassessment helps| Reassess["Agent-initiated zoom-out; revise next check"]
|
|
22
|
+
ErrorCheck -->|No; next check is justified| DoneState["Continue incremental refactoring"]
|
|
23
|
+
Reassess --> Extract
|
|
23
24
|
```
|
|
24
25
|
|
|
25
26
|
## 2. Triggering and Routing Path
|
|
@@ -28,7 +29,7 @@ graph TD
|
|
|
28
29
|
graph LR
|
|
29
30
|
TechDebt["Trigger: refactor architecture or split object or apply SRP or tech debt"] --> ICA["improve-codebase-architecture / SKILL.md"]
|
|
30
31
|
ICA --> TDD["tdd: Characterization Tests first, then incremental extraction"]
|
|
31
|
-
ICA --> ZoomOut["zoom-out:
|
|
32
|
+
ICA --> ZoomOut["zoom-out: agent-initiated when evidence warrants reassessment"]
|
|
32
33
|
ICA --> SelfEvolve["self-evolve: record traps"]
|
|
33
34
|
```
|
|
34
35
|
|
|
@@ -40,9 +41,10 @@ graph TD
|
|
|
40
41
|
ScanInterfaces --> SRPProposal["Propose split into focused units plus seam abstractions"]
|
|
41
42
|
SRPProposal --> CharNet["Add Characterization Tests for untested legacy paths"]
|
|
42
43
|
CharNet --> Incremental["Incremental extraction with test check after each step"]
|
|
43
|
-
Incremental -->
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
Incremental --> ReassessGate{"Would reassessment improve the next step?"}
|
|
45
|
+
ReassessGate -->|Yes| RollbackZoom["Revisit assumptions; rollback only if needed for safety"]
|
|
46
|
+
ReassessGate -->|No; tests narrow the cause| ModularDone["Continue with safety net"]
|
|
47
|
+
RollbackZoom --> Incremental
|
|
46
48
|
```
|
|
47
49
|
|
|
48
50
|
Concrete example: a 600-line utility module is scanned for interfaces and ADR constraints, proposed for splitting into single-purpose units, guarded by Characterization Tests, then extracted step by step with verification after each change.
|
|
@@ -56,5 +58,5 @@ Deep detail: `improve-codebase-architecture/references/README.md`.
|
|
|
56
58
|
- [ ] Deepening and SRP proposal with object splitting and seam abstraction presented and approved before code changes
|
|
57
59
|
- [ ] `tdd` launched; Characterization Tests added first when legacy code lacks tests
|
|
58
60
|
- [ ] Extraction done incrementally with tests verified after each change
|
|
59
|
-
- [ ]
|
|
61
|
+
- [ ] Zoom-out was optional and agent-initiated when evidence warranted it; productive steps could continue as tests narrowed the cause
|
|
60
62
|
- [ ] Not used for features, bugfixes, or style-only cleanups with no structure change
|
|
@@ -16,9 +16,9 @@ graph TD
|
|
|
16
16
|
Discover --> Think["Think: establish intent, scope, and failure modes"]
|
|
17
17
|
Think --> Try["Try: make the smallest useful change and gather evidence"]
|
|
18
18
|
Try --> Summarize["Summarize: ground conclusions in tool output"]
|
|
19
|
-
Summarize -->
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
Summarize --> Reassess{Would reassessment improve the next step?}
|
|
20
|
+
Reassess -->|Yes; agent chooses| ZoomOut["Review assumptions, acceptance, and evidence"]
|
|
21
|
+
Reassess -->|No; next check is justified| Record["Record: persist milestones only when evidence supports them"]
|
|
22
22
|
ZoomOut --> Think
|
|
23
23
|
Record --> End([Evidence-grounded work, no fixed domain sequence])
|
|
24
24
|
```
|
|
@@ -34,7 +34,7 @@ graph LR
|
|
|
34
34
|
Trigger["Explain policy / Apply loop manually / Debug cognitive behavior"] --> Skill["install-cognitive-os / SKILL.md"]
|
|
35
35
|
Skill -->|No kernel context| Manual["Run Discover → Think → Try → Summarize → Record explicitly"]
|
|
36
36
|
Skill -->|Kernel present| Policy["Treat as policy reference; domain skill proceeds directly"]
|
|
37
|
-
Manual --> Gates["
|
|
37
|
+
Manual --> Gates["Guidance: evidence before claims; agent-initiated reassessment when evidence warrants"]
|
|
38
38
|
Policy --> Gates
|
|
39
39
|
|
|
40
40
|
style Skill fill:#d35400,stroke:#e67e22,stroke-width:2px,color:#ffffff
|
|
@@ -63,5 +63,5 @@ To ensure that the `install-cognitive-os` skill is operating in strict complianc
|
|
|
63
63
|
|
|
64
64
|
- [ ] **Policy, not installation**: no hook deployment, file copying, or config mutation claimed as this skill's effect.
|
|
65
65
|
- [ ] **Full five-step loop**: Discover → Think → Try → Summarize → Record applied in order, not the truncated four-step variant.
|
|
66
|
-
- [ ] **Evidence gates honored**: completion claims need evidence;
|
|
66
|
+
- [ ] **Evidence gates honored**: completion claims need evidence; an agent may choose `zoom-out` when evidence warrants reassessment, while productive work may continue.
|
|
67
67
|
- [ ] **No prerequisite fabrication**: domain skills (`tdd`, `security-review`, `repo-docs`) proceed without selecting this skill first.
|
package/docs/workflows/tdd.md
CHANGED
|
@@ -25,10 +25,11 @@ graph TD
|
|
|
25
25
|
RunGreen --> AssertGreen["Assert: Present terminal logs as evidence (Law 4)"]
|
|
26
26
|
AssertGreen --> VerifyGreen{Gate: verify-gate.js}
|
|
27
27
|
|
|
28
|
-
VerifyGreen -->|Exit 1
|
|
29
|
-
DebugCode
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
VerifyGreen -->|Exit 1| DebugCode["Read evidence; fix or choose to reassess"]
|
|
29
|
+
DebugCode -->|next check is justified| RunGreen
|
|
30
|
+
DebugCode -->|assumption is contradicted or impact is unknown| ZoomOut["Agent-initiated zoom-out"]
|
|
31
|
+
ZoomOut --> ReadFacts["Review goal, acceptance, and evidence"]
|
|
32
|
+
ReadFacts --> RunGreen
|
|
32
33
|
|
|
33
34
|
VerifyGreen -->|Exit 0: Green| Refactor["Refactor: Optimize & audit Code-Doc Alignment (Law 6)"]
|
|
34
35
|
|
|
@@ -61,8 +62,7 @@ flowchart TD
|
|
|
61
62
|
|
|
62
63
|
## Recovery state
|
|
63
64
|
|
|
64
|
-
The
|
|
65
|
-
the work into `zoom-out`, where the assumptions are rebuilt before retrying.
|
|
65
|
+
The former Rule-of-3 counter and forced-reflection path are retired under [#394](https://github.com/dyphn1/Harness-everything/issues/394). The agent may choose Zoom-out whenever evidence contradicts an assumption or reveals an unknown impact boundary, including on the first failure. When each attempt adds evidence or narrows the cause, the next justified TDD check may continue without a count or report requirement.
|
|
66
66
|
|
|
67
67
|
```mermaid
|
|
68
68
|
stateDiagram-v2
|
|
@@ -70,9 +70,9 @@ stateDiagram-v2
|
|
|
70
70
|
Red --> GreenAttempt
|
|
71
71
|
GreenAttempt --> Green: tests pass
|
|
72
72
|
GreenAttempt --> Retry: tests fail
|
|
73
|
-
Retry --> GreenAttempt:
|
|
74
|
-
Retry --> ZoomOut:
|
|
75
|
-
ZoomOut --> Red:
|
|
73
|
+
Retry --> GreenAttempt: next check justified by new evidence
|
|
74
|
+
Retry --> ZoomOut: agent chooses reassessment
|
|
75
|
+
ZoomOut --> Red: revised hypothesis
|
|
76
76
|
Green --> Refactor
|
|
77
77
|
Refactor --> [*]
|
|
78
78
|
```
|
|
@@ -1,26 +1,22 @@
|
|
|
1
1
|
# Workflow: Zoom Out
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> Agent-initiated reassessment when evidence contradicts an assumption or reveals an unknown impact boundary. A first failure may be enough; productive work can continue when attempts add evidence or narrow the cause.
|
|
4
4
|
|
|
5
5
|
Source of truth: `zoom-out/SKILL.md`.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Zoom-out is voluntary. An agent may choose it on the first meaningful signal or an explicit loop/rethink request, and may continue productive iteration when the next check is justified by new evidence. The former `rule-of-3*.js` counter, `reset-circuit-breaker.js`, forced report/unlock path, and OpenCode hard-lock path are retired under [#394](https://github.com/dyphn1/Harness-everything/issues/394). No counter, lock, reflection token, compulsory report, reset, or automatic escalation is part of this procedure. A short fact-check note can help organize reassessment, but no special artifact is required.
|
|
8
8
|
|
|
9
9
|
## 1. Skill Behavior Workflow
|
|
10
10
|
|
|
11
11
|
```mermaid
|
|
12
12
|
graph TD
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
Again -->|yes| Cycle[Another Zoom-Out Cycle]
|
|
21
|
-
Cycle --> Evolve[Record Insight With self-evolve]
|
|
22
|
-
Again -->|no| Done([Report Complete])
|
|
23
|
-
Escalate --> Done
|
|
13
|
+
Signal[Evidence contradicts assumptions or exposes unknown impact] --> Choose{Would reassessment help now?}
|
|
14
|
+
Request[Explicit loop/rethink request] --> Reassess[Agent chooses to zoom out]
|
|
15
|
+
Choose -->|yes| Reassess
|
|
16
|
+
Choose -->|not yet| Continue[Continue justified work]
|
|
17
|
+
Productive[Attempt adds evidence or narrows cause] --> Continue
|
|
18
|
+
Reassess --> ReadOnly[Review goal, acceptance, files, configuration, and evidence]
|
|
19
|
+
ReadOnly --> Next[Choose a justified next check]
|
|
24
20
|
```
|
|
25
21
|
|
|
26
22
|
## 2. Triggering and Routing Path
|
|
@@ -30,33 +26,27 @@ graph TD
|
|
|
30
26
|
LoopReq[Stuck In Loop Request] --> Skill[zoom-out SKILL]
|
|
31
27
|
SameErr[Same Error Keeps Failing] --> Skill
|
|
32
28
|
Rethink[Rethink Assumptions Request] --> Skill
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
Evidence[First meaningful signal or explicit request] --> Skill
|
|
30
|
+
Productive[Productive iteration] --> Continue[Continue with justified next check]
|
|
35
31
|
SingleFail[Routine Single Failure] --> DirectFix[Fix Directly]
|
|
36
32
|
Greenfield[Greenfield Planning No Failures] --> Fable[fable-mode SKILL]
|
|
37
|
-
Skill -->
|
|
33
|
+
Skill --> EvidenceReview[Review evidence and choose a justified next check]
|
|
38
34
|
```
|
|
39
35
|
|
|
40
36
|
## 3. Real-World Use Case
|
|
41
37
|
|
|
42
38
|
```mermaid
|
|
43
39
|
graph TD
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
Write --> Choice{Untried Path Exists?}
|
|
48
|
-
Choice -->|yes| Resume2[RESUME On Untried Path]
|
|
49
|
-
Choice -->|no| Esc2[ESCALATE With Options]
|
|
50
|
-
Resume2 -->|three more matching failures| Cycle2[Another Zoom-Out Cycle Then self-evolve]
|
|
40
|
+
Signal2[Evidence changes assumptions or impact boundary] --> Reassess2[Agent reviews goal, acceptance, and evidence]
|
|
41
|
+
Reassess2 --> Next2[Select a justified next check]
|
|
42
|
+
Productive2[Attempts produce evidence or narrow cause] --> Continue2[Continue iteration]
|
|
51
43
|
```
|
|
52
44
|
|
|
53
|
-
|
|
45
|
+
Optional note template: `zoom-out/templates/zoom-out-report.template.md`. The former enforcement hook is retired under [#394](https://github.com/dyphn1/Harness-everything/issues/394). The linked [`zoom-out/references/circuit-breaker.md`](../../zoom-out/references/circuit-breaker.md) describes the retired mechanism and is historical reference material.
|
|
54
46
|
|
|
55
47
|
## 4. Verification Check
|
|
56
48
|
|
|
57
|
-
- [ ]
|
|
58
|
-
- [ ]
|
|
59
|
-
- [ ]
|
|
60
|
-
- [ ]
|
|
61
|
-
- [ ] A later three-failure cycle ran another zoom-out; `npm run harness:reset` was used only as an optional manual clear, with the insight recorded via `self-evolve`
|
|
62
|
-
- [ ] Routine single-failure debugging and greenfield planning without failures were not routed here
|
|
49
|
+
- [ ] The agent chose whether reassessment would improve the next step; it may start on the first meaningful signal
|
|
50
|
+
- [ ] When reassessing, the goal, acceptance, files, configuration, and evidence were checked before choosing the next step
|
|
51
|
+
- [ ] Productive iteration continued when attempts added evidence or narrowed the cause
|
|
52
|
+
- [ ] No failure counter, lock, reflection token, compulsory report, reset, or automatic escalation was assumed
|
|
@@ -4,7 +4,7 @@ description: Use at session start (Discover phase) to detect and align with the
|
|
|
4
4
|
license: Apache-2.0
|
|
5
5
|
metadata:
|
|
6
6
|
author: Miya Daniel
|
|
7
|
-
version: 0.
|
|
7
|
+
version: 0.55.4
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# Environment Detection & Shell Alignment
|
|
@@ -27,7 +27,7 @@ Boundary: stay inside `process.cwd()`. Detection never writes integrations or se
|
|
|
27
27
|
1. Run `node "<this-skill-dir>/scripts/preflight.js"`; detect OS, shell, CLIs.
|
|
28
28
|
2. Where supported, audit read-only: `node "<this-skill-dir>/../harness-everything/scripts/self-heal.js" --check`. If unavailable, report and continue.
|
|
29
29
|
3. Only explicit install/setup/repair intent may omit `--check`. Repair covers Claude, Codex, Copilot, Cursor, Continue, Hermes. OpenCode has its own plugin runtime; skills-only surfaces may lack repair.
|
|
30
|
-
4. Adopt shell syntax: Git Bash → `/`, `$VAR`, Unix commands; PowerShell → `$env:VAR`, cmdlets; CMD → `\`, `%VAR%`, Windows commands.
|
|
30
|
+
4. Adopt shell syntax: Git Bash → `/`, `$VAR`, Unix commands; PowerShell → `$env:VAR`, cmdlets; CMD → `\`, `%VAR%`, Windows commands. An agent may choose zoom-out at the first meaningful signal; productive iteration may continue while attempts add evidence.
|
|
31
31
|
|
|
32
32
|
Deep dive: <this-skill-dir>/references/shell-syntax-rules.md
|
|
33
33
|
|
|
@@ -73,4 +73,4 @@ Toolchain self-heal: the harness itself is part of the environment. Audit whethe
|
|
|
73
73
|
|
|
74
74
|
## Verification & reflection
|
|
75
75
|
|
|
76
|
-
If any shell command fails, do not blindly retry the exact same command. Stop and ask yourself: "Did I use the wrong syntax for this terminal? Is this a Git Bash vs. PowerShell syntax issue?" If
|
|
76
|
+
If any shell command fails, do not blindly retry the exact same command. Stop and ask yourself: "Did I use the wrong syntax for this terminal? Is this a Git Bash vs. PowerShell syntax issue?" If a command failure changes the diagnosis or the next check is unclear, the agent may choose `zoom-out` immediately. Continue when the next attempt is evidence-based; no retry count triggers a circuit breaker.
|
package/eval-harness/SKILL.md
CHANGED
|
@@ -46,9 +46,9 @@ Score based on the following four dimensions (out of 10 points each):
|
|
|
46
46
|
- 0 points: Over-engineered, writing lengthy plans or repeatedly reading irrelevant files for a simple task.
|
|
47
47
|
|
|
48
48
|
### C. Anti-loop & Focus
|
|
49
|
-
- 10 points:
|
|
50
|
-
- 5 points:
|
|
51
|
-
- 0 points:
|
|
49
|
+
- 10 points: Chose a fresh diagnosis when evidence undermined an assumption, then grounded the next action in observed results; or continued productively while attempts narrowed the cause.
|
|
50
|
+
- 5 points: Noticed changed evidence but did not clearly connect it to the next check.
|
|
51
|
+
- 0 points: Repeated an approach without new evidence or treated a failure count as a mandatory stop.
|
|
52
52
|
|
|
53
53
|
### D. Environment & Tool Awareness
|
|
54
54
|
- 10 points: Accurately detected OS, terminal shell (e.g., Git Bash vs PowerShell), and available tools in the `[Discover]` phase before acting. No syntax errors caused by wrong shell assumptions.
|
package/evals/zoom-out/eval.yaml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
name: zoom-out-eval
|
|
2
|
-
description:
|
|
2
|
+
description: Agent-initiated reassessment eval for the zoom-out skill.
|
|
3
3
|
skill: zoom-out
|
|
4
4
|
version: "1.0"
|
|
5
5
|
config:
|
|
@@ -12,7 +12,7 @@ metrics:
|
|
|
12
12
|
- name: task_completion
|
|
13
13
|
weight: 0.7
|
|
14
14
|
threshold: 0.8
|
|
15
|
-
description: Did
|
|
15
|
+
description: Did the agent choose reassessment when evidence warranted it and continue during productive iteration?
|
|
16
16
|
- name: efficiency
|
|
17
17
|
weight: 0.3
|
|
18
18
|
threshold: 0.7
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
id: negative-productive-iteration-001
|
|
2
|
+
name: Continue when each iteration narrows the cause
|
|
3
|
+
description: "An agent may continue while attempts yield useful evidence and the next step is justified."
|
|
4
|
+
tags:
|
|
5
|
+
- negative-trigger
|
|
6
|
+
inputs:
|
|
7
|
+
prompt: "The first test run failed because sort returned undefined. Adding the missing return changed the failure: the result now contains 1 and 2 but misses 3, and the output shows the loop reads one element past the input. This narrows the remaining cause to the loop bounds. Continue with the smallest justified check and fix; there is no need for a report just because work has taken several attempts."
|
|
8
|
+
expected:
|
|
9
|
+
should_trigger: false
|
|
10
|
+
graders:
|
|
11
|
+
- type: text
|
|
12
|
+
name: contains-keywords
|
|
13
|
+
config:
|
|
14
|
+
contains:
|
|
15
|
+
- "continue"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
id: negative-trivial-
|
|
2
|
-
name:
|
|
3
|
-
description: Routine
|
|
1
|
+
id: negative-greenfield-trivial-001
|
|
2
|
+
name: Greenfield planning and a clear edit need no reassessment
|
|
3
|
+
description: Routine debugging with a clear next check or greenfield planning does not need voluntary reassessment.
|
|
4
4
|
tags:
|
|
5
5
|
- negative-trigger
|
|
6
6
|
inputs:
|
|
7
|
-
prompt: "
|
|
7
|
+
prompt: "Start a small greenfield project with a hello-world function, then fix the clear typo in README.md line 3 from 'recieve' to 'receive'. No test has failed, the requirements are clear, and there is no unknown impact boundary."
|
|
8
8
|
expected:
|
|
9
9
|
should_trigger: false
|
|
10
10
|
graders:
|
|
@@ -12,5 +12,5 @@ graders:
|
|
|
12
12
|
name: not-contains-keywords
|
|
13
13
|
config:
|
|
14
14
|
contains:
|
|
15
|
-
- "
|
|
16
|
-
- "reflection report"
|
|
15
|
+
- "mandatory zoom-out"
|
|
16
|
+
- "required reflection report"
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
id: positive-first-failure-001
|
|
2
|
+
name: First meaningful failure can prompt reassessment
|
|
3
|
+
description: "Agent-initiated reassessment when evidence contradicts assumptions, exposes an unknown boundary, or a path stops producing useful information. Use for voluntary diagnosis of stalled or changing work. DO NOT USE FOR: routine debugging when the next check is clear, or greenfield planning."
|
|
4
|
+
tags:
|
|
5
|
+
- positive-trigger
|
|
6
|
+
inputs:
|
|
7
|
+
prompt: "I feel stuck after this first test failure: normalizeProfile mutates a profile that callers may share. This contradicts my assumption that callers pass disposable objects. I want to rethink my assumptions and voluntarily zoom out now: compare the acceptance clause, observed evidence, call sites, and a revised check before choosing the smallest fix. A written report is not required."
|
|
8
|
+
expected:
|
|
9
|
+
should_trigger: true
|
|
10
|
+
graders:
|
|
11
|
+
- type: text
|
|
12
|
+
name: contains-keywords
|
|
13
|
+
config:
|
|
14
|
+
contains:
|
|
15
|
+
- "reassess"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
id: positive-repair-loop-001
|
|
2
2
|
name: Successful review commands still expose a repair loop
|
|
3
|
-
description: "
|
|
3
|
+
description: "Agent-initiated reassessment when evidence contradicts assumptions, exposes an unknown boundary, or a path stops producing useful information. Use for voluntary diagnosis of stalled or changing work. DO NOT USE FOR: routine debugging when the next check is clear, or greenfield planning."
|
|
4
4
|
tags:
|
|
5
5
|
- positive-trigger
|
|
6
6
|
inputs:
|