harness-everything 0.55.3 → 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 (170) 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 +13 -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 +26 -5
  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 +6 -7
  28. package/ci/mechanism-codex-hook-results.test.js +9 -5
  29. package/ci/mechanism-prb-outline-review.test.js +1 -13
  30. package/ci/mechanism-system-one-router.test.js +1 -1
  31. package/ci/openai-plugin-package.test.js +30 -7
  32. package/ci/openai-plugin-runtime.test.js +64 -32
  33. package/ci/prompt-contract-regressions.test.js +1 -5
  34. package/ci/self-evolve-loop.test.js +51 -51
  35. package/ci/workflow-execution-contract.test.js +3 -6
  36. package/docker-verify.sh +1 -117
  37. package/docs/architecture.md +9 -7
  38. package/docs/document-lifecycle.md +1 -1
  39. package/docs/enforcement-locks.md +12 -10
  40. package/docs/mechanism-first-skill-mesh.md +2 -2
  41. package/docs/openai-plugin.md +3 -3
  42. package/docs/philosophy.md +1 -1
  43. package/docs/platform-capabilities.md +2 -2
  44. package/docs/platform-compatibility.json +2 -2
  45. package/docs/reflection.md +1 -1
  46. package/docs/routing.md +2 -2
  47. package/docs/system-one-suggestion-gates.md +4 -4
  48. package/docs/troubleshooting.md +9 -35
  49. package/docs/workflow-runtime.md +19 -18
  50. package/docs/workflows/environment-detection.md +11 -9
  51. package/docs/workflows/fable-discipline.md +6 -5
  52. package/docs/workflows/fable-mode.md +6 -5
  53. package/docs/workflows/harness-everything.md +5 -5
  54. package/docs/workflows/improve-codebase-architecture.md +10 -8
  55. package/docs/workflows/install-cognitive-os.md +5 -5
  56. package/docs/workflows/tdd.md +9 -9
  57. package/docs/workflows/zoom-out.md +20 -30
  58. package/environment-detection/SKILL.md +2 -2
  59. package/environment-detection/references/shell-syntax-rules.md +1 -1
  60. package/eval-harness/SKILL.md +1 -1
  61. package/eval-harness/references/scoring-rubric.md +3 -3
  62. package/evals/zoom-out/eval.yaml +2 -2
  63. package/evals/zoom-out/tasks/negative-productive-iteration.yaml +15 -0
  64. package/evals/zoom-out/tasks/negative-trivial-edit.yaml +6 -6
  65. package/evals/zoom-out/tasks/positive-first-failure.yaml +15 -0
  66. package/evals/zoom-out/tasks/positive-repair-loop.yaml +1 -1
  67. package/fable-discipline/SKILL.md +3 -3
  68. package/fable-discipline/references/discipline-rules.md +1 -1
  69. package/fable-mode/SKILL.md +1 -1
  70. package/fable-mode/execution-guardrails/SKILL.md +2 -4
  71. package/fable-mode/execution-guardrails/references/guardrail-rules.md +3 -3
  72. package/fable-mode/fable-haiku/SKILL.md +1 -1
  73. package/fable-mode/fable-opus/SKILL.md +2 -2
  74. package/fable-mode/fable-sonnet/SKILL.md +1 -1
  75. package/fable-mode/references/execution-phases.md +2 -2
  76. package/harness-everything/SKILL.md +3 -3
  77. package/harness-everything/references/router-workflow-plan.md +2 -2
  78. package/harness-everything/references/skill-registry.md +2 -2
  79. package/harness-everything/references/triage-and-tiers.md +5 -5
  80. package/harness-everything/scripts/bootstrap.js +1 -26
  81. package/harness-everything/scripts/kernel-router-core.js +2 -3
  82. package/harness-everything/scripts/kernel-router.js +1 -1
  83. package/harness-everything/scripts/router-contract-core.js +1 -1
  84. package/harness-everything/scripts/routing-keywords.json +0 -2
  85. package/hooks/hooks.json +0 -33
  86. package/hooks/scripts/lib/harness-state.js +5 -6
  87. package/hooks/scripts/lib/learning-opportunity.js +3 -13
  88. package/hooks/scripts/openai-session-start.js +2 -4
  89. package/improve-codebase-architecture/SKILL.md +3 -3
  90. package/improve-codebase-architecture/guides/refactoring-workflow.md +5 -4
  91. package/install-cognitive-os/SKILL.md +3 -3
  92. package/opencode-plugin/README.md +12 -43
  93. package/opencode-plugin/index.mjs +21 -368
  94. package/opencode-plugin/plugin.json +1 -1
  95. package/package.json +1 -4
  96. package/plugins/harness-everything/.codex-plugin/plugin.json +1 -1
  97. package/plugins/harness-everything/hooks/hooks.json +0 -14
  98. package/plugins/harness-everything/hooks/scripts/lib/harness-state.js +5 -6
  99. package/plugins/harness-everything/hooks/scripts/lib/learning-opportunity.js +3 -13
  100. package/plugins/harness-everything/hooks/scripts/lib/workspace.js +2 -2
  101. package/plugins/harness-everything/hooks/scripts/openai-session-start.js +2 -4
  102. package/plugins/harness-everything/hooks/session-start.js +2 -4
  103. package/plugins/harness-everything/plugin.json +1 -1
  104. package/plugins/harness-everything/scripts/lib/advisory-text.js +2 -2
  105. package/plugins/harness-everything/scripts/lib/workspace.js +2 -2
  106. package/plugins/harness-everything/skills/environment-detection/SKILL.md +2 -2
  107. package/plugins/harness-everything/skills/environment-detection/references/shell-syntax-rules.md +1 -1
  108. package/plugins/harness-everything/skills/eval-harness/SKILL.md +1 -1
  109. package/plugins/harness-everything/skills/eval-harness/references/scoring-rubric.md +3 -3
  110. package/plugins/harness-everything/skills/fable-discipline/SKILL.md +3 -3
  111. package/plugins/harness-everything/skills/fable-discipline/references/discipline-rules.md +1 -1
  112. package/plugins/harness-everything/skills/fable-mode/SKILL.md +1 -1
  113. package/plugins/harness-everything/skills/fable-mode/execution-guardrails/SKILL.md +2 -4
  114. package/plugins/harness-everything/skills/fable-mode/execution-guardrails/references/guardrail-rules.md +3 -3
  115. package/plugins/harness-everything/skills/fable-mode/fable-haiku/SKILL.md +1 -1
  116. package/plugins/harness-everything/skills/fable-mode/fable-opus/SKILL.md +2 -2
  117. package/plugins/harness-everything/skills/fable-mode/fable-sonnet/SKILL.md +1 -1
  118. package/plugins/harness-everything/skills/fable-mode/references/execution-phases.md +2 -2
  119. package/plugins/harness-everything/skills/harness-everything/SKILL.md +3 -3
  120. package/plugins/harness-everything/skills/harness-everything/references/router-workflow-plan.md +2 -2
  121. package/plugins/harness-everything/skills/harness-everything/references/skill-registry.md +2 -2
  122. package/plugins/harness-everything/skills/harness-everything/references/triage-and-tiers.md +5 -5
  123. package/plugins/harness-everything/skills/harness-everything/scripts/bootstrap.js +1 -26
  124. package/plugins/harness-everything/skills/harness-everything/scripts/kernel-router-core.js +2 -3
  125. package/plugins/harness-everything/skills/harness-everything/scripts/kernel-router.js +1 -1
  126. package/plugins/harness-everything/skills/harness-everything/scripts/router-contract-core.js +1 -1
  127. package/plugins/harness-everything/skills/harness-everything/scripts/routing-keywords.json +0 -2
  128. package/plugins/harness-everything/skills/improve-codebase-architecture/SKILL.md +3 -3
  129. package/plugins/harness-everything/skills/improve-codebase-architecture/guides/refactoring-workflow.md +5 -4
  130. package/plugins/harness-everything/skills/install-cognitive-os/SKILL.md +3 -3
  131. package/plugins/harness-everything/skills/self-evolve/SKILL.md +1 -1
  132. package/plugins/harness-everything/skills/self-evolve/references/memory-resolution.md +3 -3
  133. package/plugins/harness-everything/skills/self-evolve/schemas/lesson-candidate.schema.json +4 -1
  134. package/plugins/harness-everything/skills/self-evolve/scripts/lesson-candidate.js +1 -0
  135. package/plugins/harness-everything/skills/skill-creator/SKILL.md +1 -1
  136. package/plugins/harness-everything/skills/skill-creator/references/quality-checklist.md +1 -1
  137. package/plugins/harness-everything/skills/skill-creator/references/quality-principles.md +4 -4
  138. package/plugins/harness-everything/skills/tdd/SKILL.md +2 -2
  139. package/plugins/harness-everything/skills/tdd/references/core-discipline.md +3 -5
  140. package/plugins/harness-everything/skills/todo-driven-workflow/SKILL.md +2 -2
  141. package/plugins/harness-everything/skills/zoom-out/SKILL.md +14 -26
  142. package/plugins/harness-everything/skills/zoom-out/references/circuit-breaker.md +18 -62
  143. package/references/platform-advisory-template.md +3 -9
  144. package/sbom.cdx.json +7 -7
  145. package/scripts/lib/advisory-text.js +2 -2
  146. package/scripts/lib/workspace.js +2 -2
  147. package/self-evolve/SKILL.md +1 -1
  148. package/self-evolve/references/memory-resolution.md +3 -3
  149. package/self-evolve/schemas/lesson-candidate.schema.json +4 -1
  150. package/self-evolve/scripts/lesson-candidate.js +1 -0
  151. package/skill-creator/SKILL.md +1 -1
  152. package/skill-creator/references/quality-checklist.md +1 -1
  153. package/skill-creator/references/quality-principles.md +4 -4
  154. package/submission/openai/test-cases.json +5 -5
  155. package/tdd/SKILL.md +2 -2
  156. package/tdd/references/core-discipline.md +3 -5
  157. package/todo-driven-workflow/SKILL.md +2 -2
  158. package/zoom-out/SKILL.md +14 -26
  159. package/zoom-out/references/circuit-breaker.md +18 -62
  160. package/behavioral-evals/opencode-hardlock-live.js +0 -17
  161. package/behavioral-evals/opencode-reflection-gate-live.js +0 -342
  162. package/ci/mechanism-31-opencode-hardlock-evidence.test.js +0 -82
  163. package/evals/zoom-out/tasks/negative-first-edge-case-review.yaml +0 -16
  164. package/evals/zoom-out/tasks/positive-repeated-failure.yaml +0 -15
  165. package/hooks/scripts/reset-circuit-breaker.js +0 -30
  166. package/hooks/scripts/rule-of-3-tracker.js +0 -165
  167. package/hooks/scripts/rule-of-3.js +0 -171
  168. package/plugins/harness-everything/hooks/scripts/reset-circuit-breaker.js +0 -30
  169. package/plugins/harness-everything/hooks/scripts/rule-of-3-tracker.js +0 -165
  170. package/plugins/harness-everything/hooks/scripts/rule-of-3.js +0 -171
@@ -78,7 +78,7 @@ Relevant environment discovery is a conditional **MUST**: establish OS, shell, p
78
78
 
79
79
  ### 2. Guardrails — Lifecycle Boundaries
80
80
 
81
- Circuit breakers, action gates, workflow gates, scope guards, and completion gates protect specific transitions. They **SHOULD** remain narrow and evidence-driven. On integration surfaces that expose the required lifecycle/tool hooks, Harness can mechanically block supported violations; elsewhere the same contract is instruction-governed and must not be mislabeled hard enforcement.
81
+ Action gates, scope guards, and completion checks protect specific transitions. They **SHOULD** remain narrow and evidence-driven. Explicit user/host permission and safety boundaries can block supported operations; workflow and recovery guidance remains agent-directed. The former Rule-of-3 counter and forced-reflection path are retired under [#394](https://github.com/dyphn1/Harness-everything/issues/394).
82
82
 
83
83
  ### 3. Context Preservation — Progressive Disclosure
84
84
 
@@ -44,7 +44,7 @@ The workflow plan controller rejects present non-array required/optional binding
44
44
 
45
45
  The repository routing contract uses **step-scoped workflow selection**. Normalized keyword/domain signals help compose ordered requirements but never select or load document paths. Each step/stage declares its required and optional skill/reference bindings; only active bindings are disclosed, and required bindings resolve before the step/stage passes. Unknown or unavailable required bindings stay visible and unresolved; missing evidence produces reminders rather than a persistent workflow lock.
46
46
 
47
- This is a **repository/agent contract**, not an automatic upgrade to any platform row below. A hook can prove that the contract was injected and record an agent's binding disposition; neither proves that a live host actually loaded or followed the referenced content. Instruction-only surfaces can carry the same rule without mechanically enforcing it. Promoting behavior to live-host compliance requires retained host/session evidence under the #82 compatibility program. Claude and local OpenAI packages carry workflow entry/completion **reminders** plus separate Rule-of-3/permission boundaries, but this package/mechanism change does not upgrade `platform-compatibility.json` live-host status values. See [workflow runtime](workflow-runtime.md) for scope, worktree isolation, and failure behavior. OpenCode and instruction-only/public Skills-only surfaces do not acquire equivalent runtime gating. Shell inspection is not a filesystem sandbox; absent hooks, agent-writable state, and indirect script effects remain limits.
47
+ This is a **repository/agent contract**, not an automatic upgrade to any platform row below. A hook can prove that the contract was injected and record an agent's binding disposition; neither proves that a live host actually loaded or followed the referenced content. Instruction-only surfaces can carry the same rule without mechanically enforcing it. Promoting behavior to live-host compliance requires retained host/session evidence under the #82 compatibility program. Claude and local OpenAI packages carry workflow entry/completion **reminders** plus independent permission boundaries, but this package/mechanism change does not upgrade `platform-compatibility.json` live-host status values. See [workflow runtime](workflow-runtime.md) for scope, worktree isolation, and failure behavior. OpenCode and instruction-only/public Skills-only surfaces do not acquire equivalent runtime gating. Shell inspection is not a filesystem sandbox; absent hooks, agent-writable state, and indirect script effects remain limits.
48
48
 
49
49
  ### Action-gate mechanism vs. host semantic boundary
50
50
 
@@ -208,7 +208,7 @@ mechanism evidence only; no live-host hook-fire or mismatch-handling artifact
208
208
  exists. Retained
209
209
  evidence supports project-scope `.js` loading and edit/verification state on
210
210
  OpenCode 1.18.31 (macOS): [live-host evidence](../benchmarks/results/live-host/opencode-2026-09-16/README.md). The
211
- retained snapshot predates #190 and remains historical evidence only. Current OpenCode removes the permanent post-reflection hard lock; only the third-failure reflection boundary pauses edits. Reflection was operator-seeded, then agent-rewritten, so do not promote this into a behavioral-effectiveness claim. `.mjs` auto-discovery is broken on this host version (issue #127). npm-package installation and behavioral V2-hook fire remain unverified.
211
+ retained snapshot predates #190 and remains historical evidence only. The forced Rule-of-3 reflection gate has since been retired; current package and mechanism checks cover that retirement, but no post-retirement live-host run is preserved. The old reflection was operator-seeded, then agent-rewritten, so it proves no behavioral effect. `.mjs` auto-discovery is broken on this host version (issue #127). npm-package installation and behavioral V2-hook fire remain unverified.
212
212
 
213
213
  The plugin verification runner uses asynchronous child processes with a shared
214
214
  sequence budget and bounded streamed diagnostics. Deterministic mechanism
@@ -174,13 +174,13 @@
174
174
  "standaloneSkills": {"status": "Supported", "paths": {"project": [".opencode/skills", ".agents/skills", ".claude/skills"], "global": ["~/.config/opencode/skills", "~/.agents/skills", "~/.claude/skills"]}},
175
175
  "pluginSupport": {"status": "Partial", "paths": {"project": [".opencode/plugins"], "global": ["~/.config/opencode/plugins"]}, "notes": "Live verified scoped: project-scope install of the plugin copied under a .js filename loads on OpenCode 1.18.31 (macOS) and edit/verification state effects are retained (benchmarks/results/live-host/opencode-2026-09-16/README.md). The host discovery silently ignores .mjs install names (issue #127). Global scope and npm-package installation remain mechanism-only."},
176
176
  "bundledSkills": {"status": "Partial", "notes": "Harness provides a standalone enforcement module; it is not an OpenCode bundled-skill package."},
177
- "hooksLifecycle": {"status": "Partial", "notes": "Live-host evidence covers project-scope .js loading and edit/verification state (edit tracking, forced verification, breaker failure recording) on OpenCode 1.18.31 (macOS); hard lock is only an interactive observation with no retained blocked-tool trace and the final snapshot is post-reset (benchmarks/results/live-host/opencode-2026-09-16/README.md). Global scope, npm-package installation, and other host versions remain mechanism-tested."},
177
+ "hooksLifecycle": {"status": "Partial", "notes": "Historical live-host evidence covers project-scope .js loading and edit/verification state (including then-active breaker failure recording) on OpenCode 1.18.31 (macOS). That snapshot predates the Rule-of-3 retirement; current retirement coverage is package/mechanism evidence only, with no post-retirement live-host trace. Hard lock was only an interactive observation with no retained blocked-tool trace and the final snapshot is post-reset (benchmarks/results/live-host/opencode-2026-09-16/README.md). Global scope, npm-package installation, and other host versions remain mechanism-tested."},
178
178
  "projectScope": {"status": "Partial", "paths": {"skills": [".opencode/skills", ".agents/skills"], "plugins": [".opencode/plugins"]}, "notes": "Plugin loading at project scope and edit/verification state are live-verified via the retained host session artifact; standalone skill discovery remains path-contract verified."},
179
179
  "globalScope": {"status": "Mechanism verified", "paths": {"skills": ["~/.config/opencode/skills", "~/.agents/skills"], "plugins": ["~/.config/opencode/plugins"]}},
180
180
  "installUninstallSymmetry": {"status": "Unknown", "notes": "The adapter is manually copied; Harness does not own an OpenCode install/uninstall flow."},
181
181
  "assetsReferences": {"status": "Mechanism verified", "notes": "The adapter is self-contained and skill references are separately checked."},
182
182
  "updateSync": {"status": "Unknown", "notes": "No live OpenCode refresh or npm plugin update is preserved."},
183
- "liveHostVerification": {"status": "Partial", "evidence": "benchmarks/results/live-host/opencode-2026-09-16/README.md", "notes": "Retained evidence supports project-scope .js plugin loading and edit/verification state on OpenCode 1.18.31 (macOS), not durable hard enforcement: final snapshot is post-reset (hardLock: false), hard lock only an interactive observation with no retained blocked-tool trace, reflection operator-seeded, agent-controlled state deletion resets the breaker. Global scope, npm-package installation, and other host versions remain unverified."}
183
+ "liveHostVerification": {"status": "Partial", "evidence": "benchmarks/results/live-host/opencode-2026-09-16/README.md", "notes": "Retained historical evidence supports project-scope .js plugin loading and edit/verification state on OpenCode 1.18.31 (macOS), not durable hard enforcement: final snapshot is post-reset (hardLock: false), hard lock only an interactive observation with no retained blocked-tool trace, reflection was operator-seeded, and agent-controlled state deletion reset the former breaker. The snapshot predates the Rule-of-3 retirement and does not establish current post-retirement behavior; current coverage is package/mechanism evidence only, with no retained live-host trace. Global scope, npm-package installation, and other host versions remain unverified."}
184
184
  }
185
185
  },
186
186
  {
@@ -21,7 +21,7 @@ On a surface that packages those mechanisms:
21
21
  * **Handoff checkpoint:** a session checkpoint can record pending/failed state for later recovery.
22
22
  * **Session-start recovery:** a compatible session-start hook can surface that checkpoint back to the agent.
23
23
 
24
- This is a runtime integration feature, not a property of every Harness skill installation. The **Codex / local OpenAI plugin** packages the session/prompt hooks plus the supported-tool `state-persist.js` / circuit-breaker / `PostToolUse` runtime and stop/subagent adapters. That is mechanism-tested package coverage, not proof that a live host loaded every hook. The public OpenAI **Skills-only** artifact has no local `.codex-plugin` lifecycle hooks at all.
24
+ This is a runtime integration feature, not a property of every Harness skill installation. The **Codex / local OpenAI plugin** packages the session/prompt hooks plus the supported-tool `state-persist.js` / `PostToolUse` runtime and stop/subagent adapters. The former Rule-of-3 tracker, forced reflection, and reset path are retired under [#394](https://github.com/dyphn1/Harness-everything/issues/394). Package-level mechanism coverage does not prove that a live host loaded every hook. The public OpenAI **Skills-only** artifact has no local `.codex-plugin` lifecycle hooks at all.
25
25
 
26
26
  ---
27
27
 
package/docs/routing.md CHANGED
@@ -16,7 +16,7 @@ For software/project work, Harness establishes routing context and lightweight r
16
16
 
17
17
  1. **Route before execution** — establish scope/tier and the smallest justified topology.
18
18
  2. **Verify before claim** — completion requires objective evidence appropriate to the change.
19
- 3. **Re-plan after repeated failure** — after three same-signature failures, stop micro-retrying and use a fresh diagnosis / `zoom-out`.
19
+ 3. **Loop awareness** — reconsider assumptions or re-plan when evidence shows stagnation; numeric iteration values MAY guide but never hard-stop.
20
20
  4. **Bind knowledge by step** — compose ordered requirement steps and declare their required/optional skill or reference bindings before execution.
21
21
  5. **Resolve selected workflow** — satisfy the selected topology's required obligations before completion; tactics MAY adapt, but required lifecycle evidence cannot be silently skipped.
22
22
  6. **Surface status** — non-trivial work MUST keep the user informed through the single Harness Status format at required phase boundaries.
@@ -184,7 +184,7 @@ Keep semantic strength separate from runtime mechanics:
184
184
  - **mechanism:** which transitions a packaged hook/plugin can block, observe, or remind about;
185
185
  - **live evidence:** whether a real host actually loaded/fired that mechanism.
186
186
 
187
- A semantic MUST does not require a hard lock. Outside Rule-of-3 reflection and explicit permission/safety boundaries, lifecycle hooks stay fail-open/reminder-oriented.
187
+ A semantic MUST does not require a hard lock. Outside explicit permission/safety boundaries, lifecycle hooks stay fail-open/reminder-oriented.
188
188
 
189
189
  Instruction-only integrations receive the same semantic contract through instructions, but must not be labeled hard-enforced. Kernel emission alone does not prove model compliance. #82 owns host-specific retained evidence.
190
190
 
@@ -29,8 +29,8 @@ change follows this document (docs → RED → GREEN) in its own commit.
29
29
  not exact accuracy.
30
30
  3. **Deterministic controls stay outside learned scoring.** Tier structural
31
31
  floor, explicit workflow requests, action/security approval, scope and
32
- memory ownership and the Rule of 3 are unchanged. Abstention always falls
33
- back to the lexical path.
32
+ memory ownership are unchanged. Abstention always falls back to the
33
+ lexical path.
34
34
 
35
35
  ## Readout per stage
36
36
 
@@ -126,8 +126,8 @@ on `actionable` prompts.
126
126
  conversation context. Agent-written dispatch packets and worker instructions
127
127
  are ordinary prompts; their audience does not make them invalid. The small
128
128
  model judges the prompt text itself, without trying to recover missing
129
- context. Deterministic controls (action gates, scope and memory ownership,
130
- the Rule of 3) apply unchanged. The noise-gate experiment (#265)
129
+ context. Deterministic controls (action gates, scope and memory ownership)
130
+ apply unchanged. The noise-gate experiment (#265)
131
131
  showed that tier labels given to such prompts from session context were
132
132
  what kept a text-only model unsure.
133
133
 
@@ -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