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.
Files changed (177) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/AGENTS.md +1 -1
  4. package/BENCHMARK_SOP.md +2 -2
  5. package/CHANGELOG.md +22 -0
  6. package/README.md +15 -16
  7. package/SECURITY.md +1 -1
  8. package/VERIFICATION.md +4 -8
  9. package/behavioral-evals/PAIRED-BENCHMARK.md +12 -27
  10. package/behavioral-evals/README.md +21 -65
  11. package/behavioral-evals/cases/breaker-zoom-out-after-3.yaml +26 -33
  12. package/behavioral-evals/cases/pressure-sunk-cost-retry.yaml +15 -17
  13. package/behavioral-evals/paired-benchmark.js +3 -40
  14. package/behavioral-evals/run.js +2 -3
  15. package/ci/fixtures/doc-obligations/reconciliation-s2b/wiring/legacy-off-golden.json +0 -6
  16. package/ci/invariant-routing.test.js +32 -6
  17. package/ci/lib/opencode-verification-loader.js +3 -5
  18. package/ci/mechanism-2a-rule-of-3.test.js +111 -97
  19. package/ci/mechanism-2n-opencode-plugin.test.js +68 -206
  20. package/ci/mechanism-2p-opencode-v2-entrypoint.test.js +47 -28
  21. package/ci/mechanism-2w-platform-compatibility.test.js +1 -0
  22. package/ci/mechanism-32-paired-benchmark.test.js +1 -2
  23. package/ci/mechanism-33-issues-205-207.test.js +1 -1
  24. package/ci/mechanism-338-opencode-async.test.js +18 -49
  25. package/ci/mechanism-36-verify-timeout.test.js +3 -189
  26. package/ci/mechanism-39-opencode-verify-outcomes.test.js +56 -323
  27. package/ci/mechanism-397-opencode-observations.test.js +64 -9
  28. package/ci/mechanism-check-packet-write-set.test.js +163 -8
  29. package/ci/mechanism-codex-hook-results.test.js +9 -5
  30. package/ci/mechanism-prb-outline-review.test.js +1 -13
  31. package/ci/mechanism-system-one-router.test.js +1 -1
  32. package/ci/openai-plugin-package.test.js +30 -7
  33. package/ci/openai-plugin-runtime.test.js +64 -32
  34. package/ci/prompt-contract-regressions.test.js +1 -5
  35. package/ci/router-workflow-plan.test.js +8 -8
  36. package/ci/self-evolve-loop.test.js +51 -51
  37. package/ci/workflow-execution-contract.test.js +3 -6
  38. package/code-review/SKILL.md +1 -1
  39. package/code-review/templates/finding.template.md +17 -1
  40. package/docker-verify.sh +1 -117
  41. package/docs/architecture.md +9 -7
  42. package/docs/document-lifecycle.md +1 -1
  43. package/docs/enforcement-locks.md +12 -10
  44. package/docs/mechanism-first-skill-mesh.md +2 -2
  45. package/docs/openai-plugin.md +3 -3
  46. package/docs/philosophy.md +1 -1
  47. package/docs/platform-capabilities.md +4 -3
  48. package/docs/platform-compatibility.json +2 -2
  49. package/docs/reflection.md +1 -1
  50. package/docs/routing.md +2 -2
  51. package/docs/system-one-suggestion-gates.md +4 -4
  52. package/docs/troubleshooting.md +9 -35
  53. package/docs/workflow-runtime.md +19 -18
  54. package/docs/workflows/environment-detection.md +11 -9
  55. package/docs/workflows/fable-discipline.md +6 -5
  56. package/docs/workflows/fable-mode.md +6 -5
  57. package/docs/workflows/harness-everything.md +5 -5
  58. package/docs/workflows/improve-codebase-architecture.md +10 -8
  59. package/docs/workflows/install-cognitive-os.md +5 -5
  60. package/docs/workflows/tdd.md +9 -9
  61. package/docs/workflows/zoom-out.md +20 -30
  62. package/environment-detection/SKILL.md +2 -2
  63. package/environment-detection/references/shell-syntax-rules.md +1 -1
  64. package/eval-harness/SKILL.md +1 -1
  65. package/eval-harness/references/scoring-rubric.md +3 -3
  66. package/evals/zoom-out/eval.yaml +2 -2
  67. package/evals/zoom-out/tasks/negative-productive-iteration.yaml +15 -0
  68. package/evals/zoom-out/tasks/negative-trivial-edit.yaml +6 -6
  69. package/evals/zoom-out/tasks/positive-first-failure.yaml +15 -0
  70. package/evals/zoom-out/tasks/positive-repair-loop.yaml +1 -1
  71. package/fable-discipline/SKILL.md +3 -3
  72. package/fable-discipline/references/discipline-rules.md +1 -1
  73. package/fable-mode/SKILL.md +1 -1
  74. package/fable-mode/execution-guardrails/SKILL.md +2 -4
  75. package/fable-mode/execution-guardrails/references/guardrail-rules.md +3 -3
  76. package/fable-mode/fable-haiku/SKILL.md +1 -1
  77. package/fable-mode/fable-opus/SKILL.md +2 -2
  78. package/fable-mode/fable-sonnet/SKILL.md +1 -1
  79. package/fable-mode/references/execution-phases.md +2 -2
  80. package/harness-everything/SKILL.md +3 -3
  81. package/harness-everything/references/router-workflow-plan.md +2 -2
  82. package/harness-everything/references/skill-registry.md +2 -2
  83. package/harness-everything/references/triage-and-tiers.md +5 -5
  84. package/harness-everything/scripts/bootstrap.js +1 -26
  85. package/harness-everything/scripts/kernel-router-core.js +2 -3
  86. package/harness-everything/scripts/kernel-router.js +1 -1
  87. package/harness-everything/scripts/router-contract-core.js +1 -1
  88. package/harness-everything/scripts/routing-keywords.json +0 -2
  89. package/hooks/hooks.json +0 -33
  90. package/hooks/scripts/lib/harness-state.js +5 -6
  91. package/hooks/scripts/lib/learning-opportunity.js +3 -13
  92. package/hooks/scripts/openai-session-start.js +2 -4
  93. package/improve-codebase-architecture/SKILL.md +3 -3
  94. package/improve-codebase-architecture/guides/refactoring-workflow.md +5 -4
  95. package/install-cognitive-os/SKILL.md +3 -3
  96. package/opencode-plugin/README.md +18 -43
  97. package/opencode-plugin/index.mjs +52 -380
  98. package/opencode-plugin/plugin.json +1 -1
  99. package/package.json +1 -4
  100. package/plugins/harness-everything/.codex-plugin/plugin.json +1 -1
  101. package/plugins/harness-everything/hooks/hooks.json +0 -14
  102. package/plugins/harness-everything/hooks/scripts/lib/harness-state.js +5 -6
  103. package/plugins/harness-everything/hooks/scripts/lib/learning-opportunity.js +3 -13
  104. package/plugins/harness-everything/hooks/scripts/lib/workspace.js +2 -2
  105. package/plugins/harness-everything/hooks/scripts/openai-session-start.js +2 -4
  106. package/plugins/harness-everything/hooks/session-start.js +2 -4
  107. package/plugins/harness-everything/plugin.json +1 -1
  108. package/plugins/harness-everything/scripts/lib/advisory-text.js +2 -2
  109. package/plugins/harness-everything/scripts/lib/workspace.js +2 -2
  110. package/plugins/harness-everything/skills/code-review/SKILL.md +1 -1
  111. package/plugins/harness-everything/skills/code-review/templates/finding.template.md +17 -1
  112. package/plugins/harness-everything/skills/environment-detection/SKILL.md +2 -2
  113. package/plugins/harness-everything/skills/environment-detection/references/shell-syntax-rules.md +1 -1
  114. package/plugins/harness-everything/skills/eval-harness/SKILL.md +1 -1
  115. package/plugins/harness-everything/skills/eval-harness/references/scoring-rubric.md +3 -3
  116. package/plugins/harness-everything/skills/fable-discipline/SKILL.md +3 -3
  117. package/plugins/harness-everything/skills/fable-discipline/references/discipline-rules.md +1 -1
  118. package/plugins/harness-everything/skills/fable-mode/SKILL.md +1 -1
  119. package/plugins/harness-everything/skills/fable-mode/execution-guardrails/SKILL.md +2 -4
  120. package/plugins/harness-everything/skills/fable-mode/execution-guardrails/references/guardrail-rules.md +3 -3
  121. package/plugins/harness-everything/skills/fable-mode/fable-haiku/SKILL.md +1 -1
  122. package/plugins/harness-everything/skills/fable-mode/fable-opus/SKILL.md +2 -2
  123. package/plugins/harness-everything/skills/fable-mode/fable-sonnet/SKILL.md +1 -1
  124. package/plugins/harness-everything/skills/fable-mode/references/execution-phases.md +2 -2
  125. package/plugins/harness-everything/skills/harness-everything/SKILL.md +3 -3
  126. package/plugins/harness-everything/skills/harness-everything/references/router-workflow-plan.md +2 -2
  127. package/plugins/harness-everything/skills/harness-everything/references/skill-registry.md +2 -2
  128. package/plugins/harness-everything/skills/harness-everything/references/triage-and-tiers.md +5 -5
  129. package/plugins/harness-everything/skills/harness-everything/scripts/bootstrap.js +1 -26
  130. package/plugins/harness-everything/skills/harness-everything/scripts/kernel-router-core.js +2 -3
  131. package/plugins/harness-everything/skills/harness-everything/scripts/kernel-router.js +1 -1
  132. package/plugins/harness-everything/skills/harness-everything/scripts/router-contract-core.js +1 -1
  133. package/plugins/harness-everything/skills/harness-everything/scripts/routing-keywords.json +0 -2
  134. package/plugins/harness-everything/skills/improve-codebase-architecture/SKILL.md +3 -3
  135. package/plugins/harness-everything/skills/improve-codebase-architecture/guides/refactoring-workflow.md +5 -4
  136. package/plugins/harness-everything/skills/install-cognitive-os/SKILL.md +3 -3
  137. package/plugins/harness-everything/skills/self-evolve/SKILL.md +1 -1
  138. package/plugins/harness-everything/skills/self-evolve/references/memory-resolution.md +3 -3
  139. package/plugins/harness-everything/skills/self-evolve/schemas/lesson-candidate.schema.json +4 -1
  140. package/plugins/harness-everything/skills/self-evolve/scripts/lesson-candidate.js +1 -0
  141. package/plugins/harness-everything/skills/skill-creator/SKILL.md +1 -1
  142. package/plugins/harness-everything/skills/skill-creator/references/quality-checklist.md +1 -1
  143. package/plugins/harness-everything/skills/skill-creator/references/quality-principles.md +4 -4
  144. package/plugins/harness-everything/skills/tdd/SKILL.md +2 -2
  145. package/plugins/harness-everything/skills/tdd/references/core-discipline.md +3 -5
  146. package/plugins/harness-everything/skills/todo-driven-workflow/SKILL.md +2 -2
  147. package/plugins/harness-everything/skills/zoom-out/SKILL.md +14 -26
  148. package/plugins/harness-everything/skills/zoom-out/references/circuit-breaker.md +18 -62
  149. package/references/platform-advisory-template.md +3 -9
  150. package/sbom.cdx.json +7 -7
  151. package/scripts/check-packet-write-set.js +76 -1
  152. package/scripts/lib/advisory-text.js +2 -2
  153. package/scripts/lib/workspace.js +2 -2
  154. package/self-evolve/SKILL.md +1 -1
  155. package/self-evolve/references/memory-resolution.md +3 -3
  156. package/self-evolve/schemas/lesson-candidate.schema.json +4 -1
  157. package/self-evolve/scripts/lesson-candidate.js +1 -0
  158. package/skill-creator/SKILL.md +1 -1
  159. package/skill-creator/references/quality-checklist.md +1 -1
  160. package/skill-creator/references/quality-principles.md +4 -4
  161. package/submission/openai/test-cases.json +5 -5
  162. package/tdd/SKILL.md +2 -2
  163. package/tdd/references/core-discipline.md +3 -5
  164. package/todo-driven-workflow/SKILL.md +2 -2
  165. package/zoom-out/SKILL.md +14 -26
  166. package/zoom-out/references/circuit-breaker.md +18 -62
  167. package/behavioral-evals/opencode-hardlock-live.js +0 -17
  168. package/behavioral-evals/opencode-reflection-gate-live.js +0 -342
  169. package/ci/mechanism-31-opencode-hardlock-evidence.test.js +0 -82
  170. package/evals/zoom-out/tasks/negative-first-edge-case-review.yaml +0 -16
  171. package/evals/zoom-out/tasks/positive-repeated-failure.yaml +0 -15
  172. package/hooks/scripts/reset-circuit-breaker.js +0 -30
  173. package/hooks/scripts/rule-of-3-tracker.js +0 -165
  174. package/hooks/scripts/rule-of-3.js +0 -171
  175. package/plugins/harness-everything/hooks/scripts/reset-circuit-breaker.js +0 -30
  176. package/plugins/harness-everything/hooks/scripts/rule-of-3-tracker.js +0 -165
  177. package/plugins/harness-everything/hooks/scripts/rule-of-3.js +0 -171
@@ -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
- ### Circuit Breaker Tripping Too Often
115
+ ### Retired Rule-of-3 and reset paths
116
116
 
117
- **Symptom:** `RULE OF 3 CIRCUIT BREAKER TRIGGERED!` frequently
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 Claude Code hook execution time where applicable:
266
- ```bash
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:** Circuit breaker tripped but no report written
368
- - **Solution:** Follow the zoom-out instructions in the error message
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
 
@@ -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 two intentionally separate hard boundaries are:
36
+ The explicit hard boundary is:
37
37
 
38
- 1. **Rule of 3** — the third matching failure pauses mutation until a zoom-out reflection is written;
39
- 2. **user/host permission and dangerous-action approval** — authorization boundaries such as the action gate.
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
- ```text
44
- route
45
- -> selected workflow semantic contract
46
- -> execute with model-chosen tactics
47
- -> observe edits / verification / stage evidence
48
- -> emit reminders when evidence is weak
49
- -> complete only when MUST obligations resolve
50
-
51
- same failure signature x3
52
- -> zoom-out reflection required
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
- - Rule of 3 trips exactly at three matching failures;
132
- - a valid reflection resets the cycle;
133
- - a later three-failure cycle requests another reflection rather than a permanent hard lock;
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 --> FailCount{Same command failed 3 times?}
34
- FailCount -->|yes| ZoomEsc[Trigger zoom-out]
35
- FailCount -->|no| ContinueRun[Continue with aligned syntax]
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 --> RepeatedFail{Three failures on same command?}
46
- RepeatedFail -->|yes| ZoomOut[zoom-out]
47
- RepeatedFail -->|no| AlignedRun
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()`; if the same aligned command still fails three times, trigger `zoom-out`.
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 after 3 tries| ZoomStep[Trigger zoom-out]
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
- - [ ] After three failures of the same command, execution stopped blind retry and triggered `zoom-out`
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 + recommend zoom-out]
16
- Warn --> Rule3{Rule-of-3 reached?}
17
- Rule3 -->|yes| Reflect[Mandatory reflection]
18
- Rule3 -->|no| Continue
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
- - [ ] Rule-of-3 remains the mandatory reflection owner.
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. Repeated
84
- matching execution failures use the separate Rule-of-3 path: zoom out, reflect, then
85
- `RESUME` on a new approach or `ESCALATE` when a real decision is required.
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, and three same-signature failures still trigger the mandatory Rule-of-3 `zoom-out`.
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 --> RetryCheck{Same-signature failure x3?}
31
- RetryCheck -->|No| Execute
32
- RetryCheck -->|Yes| ZoomOut["zoom-out: stop edits, rebuild facts read-only, report RESUME or ESCALATE"]
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, re-plan-after-x3, resolve-active-required-bindings, resolve-selected-workflow"]
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
- - [ ] **Re-plan on repetition**: after 3 same-signature failures, `zoom-out` reflection completed before resuming.
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{"Third same-signature failure?"}
21
- ErrorCheck -->|Yes| Rollback["Rollback plus zoom-out; record traps in self-evolve"]
22
- ErrorCheck -->|No| DoneState["Refactoring complete"]
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: invoked with rollback on the third same-signature failure"]
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 --> RollbackGate{"Third same-signature failure?"}
44
- RollbackGate -->|Yes| RollbackZoom["Rollback and zoom-out"]
45
- RollbackGate -->|No| ModularDone["SRP-compliant modules with safety net"]
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
- - [ ] On the third same-signature failure, changes rolled back with `zoom-out` and traps recorded in `self-evolve`
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 --> FailCheck{Same-signature failure x3?}
20
- FailCheck -->|Yes| ZoomOut["zoom-out: stop edits, rebuild facts, report RESUME or ESCALATE"]
21
- FailCheck -->|No| Record["Record: persist milestones only when evidence supports them"]
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["Gates: evidence before claims; re-plan after x3 same-signature failures"]
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; repeated same-signature failures require re-planning via `zoom-out`.
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.
@@ -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: Still Broken| DebugCode["Reflect: Read logs, fix code"]
29
- DebugCode --> RunGreen
30
- VerifyGreen -->|Exit 1: 3x Failures| CircuitBreaker["Trigger rule-of-3.js: ZOOM OUT"]
31
- CircuitBreaker --> DebugCode
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 circuit breaker limits repeated edits. A third failed GREEN attempt moves
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: attempts one or two
74
- Retry --> ZoomOut: attempt three
75
- ZoomOut --> Red: assumptions rebuilt
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
- > Reflect-first breaker after three failures: stop edits, rebuild the full picture with read-only tools, write a fact-check report, then resume or escalate.
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
- Contract summary from SKILL.md — Trigger: three same-signature failures or an explicit loop/rethink request. Output: fact-checked report ending in `RESUME` or `ESCALATE`. State: writes the session `zoom-out-report.md`; reset may clear breaker state. Gate: `hooks/scripts/rule-of-3.js` plus a valid report; a later three-failure cycle requests another reflection. USE FOR: "you are stuck in a loop", "the same error keeps failing", "rethink your assumptions". DO NOT USE FOR: routine single-failure debugging, greenfield planning without failures.
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
- Third[Third Same Signature Failure] --> Stop[Stop Edits No User Ask Yet]
14
- Stop --> ReadOnly[ReadOnly Restate Goal Check Files Config Logs]
15
- ReadOnly --> Fill[Fill zoom-out-report template]
16
- Fill --> Decide{RESUME or ESCALATE?}
17
- Decide -->|untried path| Resume[RESUME On Untried Path]
18
- Decide -->|genuine user decision| Escalate[ESCALATE With Options]
19
- Resume --> Again{Three More Matching Failures?}
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
- ThreeFail[Three Same Signature Failures] --> Breaker[hooks scripts rule-of-3 js]
34
- Breaker --> Skill
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 --> ReportGate[Valid Report RESUME or ESCALATE]
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
- Fail[Same Test Fails Three Times Same Signature] --> Halt[Stop Edits Rebuild Picture ReadOnly]
45
- Halt --> Inspect[Restate Goal Check Files Config Logs]
46
- Inspect --> Write[Fill templates zoom-out-report template md]
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
- Template: `zoom-out/templates/zoom-out-report.template.md`. Enforcement: `hooks/scripts/rule-of-3.js`. Deep dive: `zoom-out/references/circuit-breaker.md`.
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
- - [ ] After three same-signature failures, edits stopped and the same approach was not retried
58
- - [ ] Goal, files, configuration, and logs were rechecked with read-only tools before any resume
59
- - [ ] `templates/zoom-out-report.template.md` was filled and the session `zoom-out-report.md` ends in `RESUME` or `ESCALATE`
60
- - [ ] Resume targeted only an untried path; genuine user decisions were escalated with options
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.19.1
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. Three repeated failures → `zoom-out`.
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 you fail 3 times on the same command, trigger the `zoom-out` circuit breaker.
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.
@@ -4,7 +4,7 @@ description: Evaluate AI agent performance across correctness, token efficiency,
4
4
  license: Apache-2.0
5
5
  metadata:
6
6
  author: Miya Daniel
7
- version: 0.4.0
7
+ version: 0.55.4
8
8
  ---
9
9
 
10
10
  # Eval Harness
@@ -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: Decisively triggered `zoom-out` when hitting a bottleneck, rebuilt the full picture, and either self-recovered on a fresh diagnosis or escalated a genuine decision with options; did not hit a dead end or dump an "I'm stuck" on the human.
50
- - 5 points: Stopped after 3~5 attempts.
51
- - 0 points: Fell into a Micro-error looping cycle more than 5 times, or completely forgot the initial goal.
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.
@@ -1,5 +1,5 @@
1
1
  name: zoom-out-eval
2
- description: Trigger precision eval for the zoom-out circuit breaker skill.
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 zoom-out trigger on repeated-failure/stuck signals and stay off trivial tasks?
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-edit-001
2
- name: Trivial edit must not trigger reflection
3
- description: Routine single-failure debugging and greenfield planning without failures must not trip the circuit breaker.
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: "Fix the typo in README.md line 3: change 'recieve' to 'receive'."
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
- - "circuit breaker tripped"
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: "Reflect-first circuit breaker - after 3 failures, stop edits, rebuild the full picture with read-only tools, write a fact-check report, then resume or escalate. USE FOR: \"you are stuck in a loop\", \"the same error keeps failing\", \"rethink your assumptions\". DO NOT USE FOR: \"routine single-failure debugging\", \"greenfield planning without failures\"."
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: