harness-everything 0.55.3 → 0.56.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/AGENTS.md +1 -1
- package/BENCHMARK_SOP.md +2 -2
- package/CHANGELOG.md +26 -0
- package/README.md +15 -16
- package/SECURITY.md +1 -1
- package/VERIFICATION.md +4 -8
- package/behavioral-evals/PAIRED-BENCHMARK.md +12 -27
- package/behavioral-evals/README.md +21 -65
- package/behavioral-evals/cases/breaker-zoom-out-after-3.yaml +26 -33
- package/behavioral-evals/cases/pressure-sunk-cost-retry.yaml +15 -17
- package/behavioral-evals/paired-benchmark.js +3 -40
- package/behavioral-evals/run.js +2 -3
- package/ci/fixtures/468-dispatch/runner.js +144 -0
- package/ci/fixtures/doc-obligations/reconciliation-s2b/wiring/legacy-off-golden.json +0 -6
- package/ci/invariant-routing.test.js +26 -5
- package/ci/lib/opencode-verification-loader.js +3 -5
- package/ci/mechanism-2a-rule-of-3.test.js +111 -97
- package/ci/mechanism-2n-opencode-plugin.test.js +68 -206
- package/ci/mechanism-2p-opencode-v2-entrypoint.test.js +47 -28
- package/ci/mechanism-2w-platform-compatibility.test.js +1 -0
- package/ci/mechanism-32-paired-benchmark.test.js +1 -2
- package/ci/mechanism-33-issues-205-207.test.js +1 -1
- package/ci/mechanism-338-opencode-async.test.js +18 -49
- package/ci/mechanism-36-verify-timeout.test.js +3 -189
- package/ci/mechanism-39-opencode-verify-outcomes.test.js +56 -323
- package/ci/mechanism-397-opencode-observations.test.js +6 -7
- package/ci/mechanism-468-dispatch-cli.test.js +546 -0
- package/ci/mechanism-codex-hook-results.test.js +9 -5
- package/ci/mechanism-error-handling-map.test.js +14 -12
- package/ci/mechanism-prb-outline-review.test.js +1 -13
- package/ci/mechanism-system-one-router.test.js +1 -1
- package/ci/openai-plugin-package.test.js +30 -7
- package/ci/openai-plugin-runtime.test.js +64 -32
- package/ci/prompt-contract-regressions.test.js +1 -5
- package/ci/self-evolve-loop.test.js +51 -51
- package/ci/workflow-execution-contract.test.js +3 -6
- package/docker-verify.sh +1 -117
- package/docs/architecture.md +9 -7
- package/docs/document-lifecycle.md +1 -1
- package/docs/enforcement-locks.md +12 -10
- package/docs/error-handling/README.md +3 -3
- package/docs/error-handling/actions/c8-action-map.md +41 -0
- package/docs/error-handling/details/c8-dispatch-cli.md +75 -0
- package/docs/error-handling/nodes.yaml +5 -0
- package/docs/error-handling/registry.md +4 -1
- package/docs/mechanism-first-skill-mesh.md +2 -2
- package/docs/openai-plugin.md +3 -3
- package/docs/philosophy.md +1 -1
- package/docs/platform-capabilities.md +2 -2
- package/docs/platform-compatibility.json +2 -2
- package/docs/reflection.md +1 -1
- package/docs/routing.md +2 -2
- package/docs/system-one-suggestion-gates.md +4 -4
- package/docs/troubleshooting.md +9 -35
- package/docs/workflow-runtime.md +19 -18
- package/docs/workflows/environment-detection.md +11 -9
- package/docs/workflows/fable-discipline.md +6 -5
- package/docs/workflows/fable-mode.md +6 -5
- package/docs/workflows/harness-everything.md +5 -5
- package/docs/workflows/improve-codebase-architecture.md +10 -8
- package/docs/workflows/install-cognitive-os.md +5 -5
- package/docs/workflows/tdd.md +9 -9
- package/docs/workflows/zoom-out.md +20 -30
- package/environment-detection/SKILL.md +2 -2
- package/environment-detection/references/shell-syntax-rules.md +1 -1
- package/eval-harness/SKILL.md +1 -1
- package/eval-harness/references/scoring-rubric.md +3 -3
- package/evals/zoom-out/eval.yaml +2 -2
- package/evals/zoom-out/tasks/negative-productive-iteration.yaml +15 -0
- package/evals/zoom-out/tasks/negative-trivial-edit.yaml +6 -6
- package/evals/zoom-out/tasks/positive-first-failure.yaml +15 -0
- package/evals/zoom-out/tasks/positive-repair-loop.yaml +1 -1
- package/fable-discipline/SKILL.md +3 -3
- package/fable-discipline/references/discipline-rules.md +1 -1
- package/fable-mode/SKILL.md +1 -1
- package/fable-mode/execution-guardrails/SKILL.md +2 -4
- package/fable-mode/execution-guardrails/references/guardrail-rules.md +3 -3
- package/fable-mode/fable-haiku/SKILL.md +1 -1
- package/fable-mode/fable-opus/SKILL.md +2 -2
- package/fable-mode/fable-sonnet/SKILL.md +1 -1
- package/fable-mode/references/execution-phases.md +2 -2
- package/harness-everything/SKILL.md +3 -3
- package/harness-everything/references/router-workflow-plan.md +2 -2
- package/harness-everything/references/skill-registry.md +2 -2
- package/harness-everything/references/triage-and-tiers.md +5 -5
- package/harness-everything/scripts/bootstrap.js +1 -26
- package/harness-everything/scripts/kernel-router-core.js +2 -3
- package/harness-everything/scripts/kernel-router.js +1 -1
- package/harness-everything/scripts/router-contract-core.js +1 -1
- package/harness-everything/scripts/routing-keywords.json +0 -2
- package/hooks/hooks.json +0 -33
- package/hooks/scripts/lib/harness-state.js +5 -6
- package/hooks/scripts/lib/learning-opportunity.js +3 -13
- package/hooks/scripts/openai-session-start.js +2 -4
- package/improve-codebase-architecture/SKILL.md +3 -3
- package/improve-codebase-architecture/guides/refactoring-workflow.md +5 -4
- package/install-cognitive-os/SKILL.md +3 -3
- package/opencode-plugin/README.md +12 -43
- package/opencode-plugin/index.mjs +21 -368
- package/opencode-plugin/plugin.json +1 -1
- package/package.json +2 -4
- package/plugins/harness-everything/.codex-plugin/plugin.json +1 -1
- package/plugins/harness-everything/hooks/hooks.json +0 -14
- package/plugins/harness-everything/hooks/scripts/lib/harness-state.js +5 -6
- package/plugins/harness-everything/hooks/scripts/lib/learning-opportunity.js +3 -13
- package/plugins/harness-everything/hooks/scripts/lib/workspace.js +2 -2
- package/plugins/harness-everything/hooks/scripts/openai-session-start.js +2 -4
- package/plugins/harness-everything/hooks/session-start.js +2 -4
- package/plugins/harness-everything/plugin.json +1 -1
- package/plugins/harness-everything/scripts/lib/advisory-text.js +2 -2
- package/plugins/harness-everything/scripts/lib/workspace.js +2 -2
- package/plugins/harness-everything/skills/environment-detection/SKILL.md +2 -2
- package/plugins/harness-everything/skills/environment-detection/references/shell-syntax-rules.md +1 -1
- package/plugins/harness-everything/skills/eval-harness/SKILL.md +1 -1
- package/plugins/harness-everything/skills/eval-harness/references/scoring-rubric.md +3 -3
- package/plugins/harness-everything/skills/fable-discipline/SKILL.md +3 -3
- package/plugins/harness-everything/skills/fable-discipline/references/discipline-rules.md +1 -1
- package/plugins/harness-everything/skills/fable-mode/SKILL.md +1 -1
- package/plugins/harness-everything/skills/fable-mode/execution-guardrails/SKILL.md +2 -4
- package/plugins/harness-everything/skills/fable-mode/execution-guardrails/references/guardrail-rules.md +3 -3
- package/plugins/harness-everything/skills/fable-mode/fable-haiku/SKILL.md +1 -1
- package/plugins/harness-everything/skills/fable-mode/fable-opus/SKILL.md +2 -2
- package/plugins/harness-everything/skills/fable-mode/fable-sonnet/SKILL.md +1 -1
- package/plugins/harness-everything/skills/fable-mode/references/execution-phases.md +2 -2
- package/plugins/harness-everything/skills/harness-everything/SKILL.md +3 -3
- package/plugins/harness-everything/skills/harness-everything/references/router-workflow-plan.md +2 -2
- package/plugins/harness-everything/skills/harness-everything/references/skill-registry.md +2 -2
- package/plugins/harness-everything/skills/harness-everything/references/triage-and-tiers.md +5 -5
- package/plugins/harness-everything/skills/harness-everything/scripts/bootstrap.js +1 -26
- package/plugins/harness-everything/skills/harness-everything/scripts/kernel-router-core.js +2 -3
- package/plugins/harness-everything/skills/harness-everything/scripts/kernel-router.js +1 -1
- package/plugins/harness-everything/skills/harness-everything/scripts/router-contract-core.js +1 -1
- package/plugins/harness-everything/skills/harness-everything/scripts/routing-keywords.json +0 -2
- package/plugins/harness-everything/skills/improve-codebase-architecture/SKILL.md +3 -3
- package/plugins/harness-everything/skills/improve-codebase-architecture/guides/refactoring-workflow.md +5 -4
- package/plugins/harness-everything/skills/install-cognitive-os/SKILL.md +3 -3
- package/plugins/harness-everything/skills/self-evolve/SKILL.md +1 -1
- package/plugins/harness-everything/skills/self-evolve/references/memory-resolution.md +3 -3
- package/plugins/harness-everything/skills/self-evolve/schemas/lesson-candidate.schema.json +4 -1
- package/plugins/harness-everything/skills/self-evolve/scripts/lesson-candidate.js +1 -0
- package/plugins/harness-everything/skills/skill-creator/SKILL.md +1 -1
- package/plugins/harness-everything/skills/skill-creator/references/quality-checklist.md +1 -1
- package/plugins/harness-everything/skills/skill-creator/references/quality-principles.md +4 -4
- package/plugins/harness-everything/skills/tdd/SKILL.md +2 -2
- package/plugins/harness-everything/skills/tdd/references/core-discipline.md +3 -5
- package/plugins/harness-everything/skills/todo-driven-workflow/SKILL.md +2 -2
- package/plugins/harness-everything/skills/zoom-out/SKILL.md +14 -26
- package/plugins/harness-everything/skills/zoom-out/references/circuit-breaker.md +18 -62
- package/references/platform-advisory-template.md +3 -9
- package/sbom.cdx.json +7 -7
- package/scripts/dispatch.js +340 -0
- package/scripts/lib/advisory-text.js +2 -2
- package/scripts/lib/workspace.js +2 -2
- package/self-evolve/SKILL.md +1 -1
- package/self-evolve/references/memory-resolution.md +3 -3
- package/self-evolve/schemas/lesson-candidate.schema.json +4 -1
- package/self-evolve/scripts/lesson-candidate.js +1 -0
- package/skill-creator/SKILL.md +1 -1
- package/skill-creator/references/quality-checklist.md +1 -1
- package/skill-creator/references/quality-principles.md +4 -4
- package/submission/openai/test-cases.json +5 -5
- package/tdd/SKILL.md +2 -2
- package/tdd/references/core-discipline.md +3 -5
- package/todo-driven-workflow/SKILL.md +2 -2
- package/zoom-out/SKILL.md +14 -26
- package/zoom-out/references/circuit-breaker.md +18 -62
- package/behavioral-evals/opencode-hardlock-live.js +0 -17
- package/behavioral-evals/opencode-reflection-gate-live.js +0 -342
- package/ci/mechanism-31-opencode-hardlock-evidence.test.js +0 -82
- package/evals/zoom-out/tasks/negative-first-edge-case-review.yaml +0 -16
- package/evals/zoom-out/tasks/positive-repeated-failure.yaml +0 -15
- package/hooks/scripts/reset-circuit-breaker.js +0 -30
- package/hooks/scripts/rule-of-3-tracker.js +0 -165
- package/hooks/scripts/rule-of-3.js +0 -171
- package/plugins/harness-everything/hooks/scripts/reset-circuit-breaker.js +0 -30
- package/plugins/harness-everything/hooks/scripts/rule-of-3-tracker.js +0 -165
- package/plugins/harness-everything/hooks/scripts/rule-of-3.js +0 -171
|
@@ -30,9 +30,10 @@ graph TD
|
|
|
30
30
|
GitBash --> GuardCwd[Stay inside process cwd]
|
|
31
31
|
PowerShell --> GuardCwd
|
|
32
32
|
CmdShell --> GuardCwd
|
|
33
|
-
GuardCwd -->
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
GuardCwd --> Evidence{Does the result contradict assumptions or reveal unknown impact?}
|
|
34
|
+
Evidence -->|yes| ZoomChoice[Agent may choose zoom-out]
|
|
35
|
+
Evidence -->|not yet| ContinueRun[Continue with aligned syntax]
|
|
36
|
+
ZoomChoice --> ContinueRun
|
|
36
37
|
```
|
|
37
38
|
|
|
38
39
|
## 2. Triggering and Routing Path
|
|
@@ -42,9 +43,10 @@ graph LR
|
|
|
42
43
|
StartTrigger[Session start request] --> EnvDetect[environment-detection SKILL]
|
|
43
44
|
ComplexSeq[Complex terminal sequence] --> EnvDetect
|
|
44
45
|
EnvDetect --> AlignedRun[Aligned command execution]
|
|
45
|
-
AlignedRun -->
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
AlignedRun --> Evidence{Would reassessment improve the next step?}
|
|
47
|
+
Evidence -->|yes| ZoomOut[Agent-initiated zoom-out]
|
|
48
|
+
Evidence -->|no; next check is justified| AlignedRun
|
|
49
|
+
ZoomOut --> AlignedRun
|
|
48
50
|
```
|
|
49
51
|
|
|
50
52
|
## 3. Real-World Use Case
|
|
@@ -56,7 +58,7 @@ A session starts on Windows with PowerShell as the active shell. The agent needs
|
|
|
56
58
|
3. If the helper/runtime is absent (for example a skills-only distribution), report that the local repair surface is unavailable and continue without searching parent/cache paths.
|
|
57
59
|
4. Only an explicit install/setup/repair request may invoke mutating self-heal. OpenCode keeps its separate plugin installation/runtime boundary.
|
|
58
60
|
5. Adopt PowerShell syntax for paths and env vars instead of Git Bash assumptions. If `preflight.js` cannot run, inspect `<environment_info>` and probe minimally.
|
|
59
|
-
6. Stay inside `process.cwd()
|
|
61
|
+
6. Stay inside `process.cwd()`. A first failure may justify reassessment when it contradicts assumptions or reveals an unknown impact boundary; continue when new evidence justifies the next check.
|
|
60
62
|
|
|
61
63
|
```mermaid
|
|
62
64
|
graph TD
|
|
@@ -65,7 +67,7 @@ graph TD
|
|
|
65
67
|
FoundShell --> UseCmd[Use PowerShell syntax for listing and env lookup]
|
|
66
68
|
UseCmd --> CmdResult{Command works?}
|
|
67
69
|
CmdResult -->|yes| ProceedTask[Proceed with task]
|
|
68
|
-
CmdResult -->|no
|
|
70
|
+
CmdResult -->|no; evidence warrants reassessment| ZoomStep[Agent chooses zoom-out]
|
|
69
71
|
```
|
|
70
72
|
|
|
71
73
|
## 4. Verification Check
|
|
@@ -77,5 +79,5 @@ graph TD
|
|
|
77
79
|
- [ ] Mutating self-heal ran only for explicit install/setup/repair intent and only on a supported local platform surface
|
|
78
80
|
- [ ] OpenCode was kept on its separate plugin runtime; skills-only distributions did not assume a local installer
|
|
79
81
|
- [ ] No toolchain installation was attempted; scope stayed to detection and alignment
|
|
80
|
-
- [ ]
|
|
82
|
+
- [ ] Reassessment was agent-initiated when evidence warranted it; productive checks could continue without a count threshold
|
|
81
83
|
- [ ] Shell detail followed `environment-detection/references/shell-syntax-rules.md` where needed
|
|
@@ -12,10 +12,11 @@ graph TD
|
|
|
12
12
|
Compact --> Handoff[Verify handoff manifest]
|
|
13
13
|
Handoff --> Diverge{Build errors diverging?}
|
|
14
14
|
Diverge -->|no| Continue[Continue guarded work]
|
|
15
|
-
Diverge -->|yes| Warn[Surface regression
|
|
16
|
-
Warn -->
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
Diverge -->|yes| Warn[Surface regression and evidence]
|
|
16
|
+
Warn --> Choose{Would reassessment help?}
|
|
17
|
+
Choose -->|yes| Reassess[Agent-initiated zoom-out]
|
|
18
|
+
Choose -->|not yet| Continue
|
|
19
|
+
Reassess --> Continue
|
|
19
20
|
```
|
|
20
21
|
|
|
21
22
|
Commit boundaries are guidance only. Create commits only when the user or active host/workflow has authorized them; otherwise leave changes uncommitted.
|
|
@@ -25,6 +26,6 @@ Commit boundaries are guidance only. Create commits only when the user or active
|
|
|
25
26
|
- [ ] Milestone state compacted and irrelevant broad reads avoided.
|
|
26
27
|
- [ ] Handoff manifest written and verified.
|
|
27
28
|
- [ ] Divergence surfaced without creating an independent hard stop.
|
|
28
|
-
- [ ]
|
|
29
|
+
- [ ] Reassessment remains agent-initiated; productive work can continue when checks add evidence.
|
|
29
30
|
- [ ] Commits occur only with user/host authorization.
|
|
30
31
|
- [ ] Detail follows `fable-discipline/references/discipline-rules.md`.
|
|
@@ -80,14 +80,15 @@ flowchart TD
|
|
|
80
80
|
Minor-concern batching is **not** a stage transition. Workers keep producing and
|
|
81
81
|
verifying the assigned artifact and include accumulated minor concerns in the next
|
|
82
82
|
natural report/handoff; the number of minor concerns alone never stops or returns a
|
|
83
|
-
worker. A material confirmed blocker may stop the current stage immediately.
|
|
84
|
-
|
|
85
|
-
|
|
83
|
+
worker. A material confirmed blocker may stop the current stage immediately. An
|
|
84
|
+
agent may choose Zoom-out when evidence contradicts an assumption or exposes an
|
|
85
|
+
unknown impact boundary, including on the first meaningful signal. Productive
|
|
86
|
+
attempts may continue when they add evidence or narrow the cause.
|
|
86
87
|
|
|
87
|
-
Replan counts (`maxReplans`) are advisory and never halt execution on their own; unresolved blockers are escalated rather than hidden behind endless restructuring
|
|
88
|
+
Replan counts (`maxReplans`) are advisory and never halt execution on their own; unresolved blockers are escalated rather than hidden behind endless restructuring. The former Rule-of-3 counter and forced-reflection path are retired under [#394](https://github.com/dyphn1/Harness-everything/issues/394).
|
|
88
89
|
|
|
89
90
|
## 5. Completion Boundary
|
|
90
91
|
|
|
91
92
|
Fable completion means the planned stages have produced their artifacts, their checks have passed, and high-risk outputs have received skeptical review where required. It does not mean every possible companion skill was invoked.
|
|
92
93
|
|
|
93
|
-
The canonical executable and policy details live in `fable-mode/SKILL.md`, `fable-mode/behavior-profile-matrix.json`, `fable-mode/runtime-model-floor-matrix.json`, `fable-mode/scripts/model-selector.js`, and `fable-mode/references/model-matrix.md`.
|
|
94
|
+
The canonical executable and policy details live in `fable-mode/SKILL.md`, `fable-mode/behavior-profile-matrix.json`, `fable-mode/runtime-model-floor-matrix.json`, `fable-mode/scripts/model-selector.js`, and `fable-mode/references/model-matrix.md`.
|
|
@@ -27,9 +27,9 @@ graph TD
|
|
|
27
27
|
Execute --> VerifyGate{Objective evidence supports completion?}
|
|
28
28
|
VerifyGate -->|Yes| Done([Evidence-backed completion])
|
|
29
29
|
VerifyGate -->|No| Diagnose["Diagnose / bounded re-plan"]
|
|
30
|
-
Diagnose -->
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
Diagnose --> Choice{What does the evidence support?}
|
|
31
|
+
Choice -->|Reassess now| ZoomOut["zoom-out: rebuild facts read-only and revise the next check"]
|
|
32
|
+
Choice -->|Productive iteration| Execute["Continue while attempts yield evidence or narrow the cause"]
|
|
33
33
|
ZoomOut --> Execute
|
|
34
34
|
```
|
|
35
35
|
|
|
@@ -48,7 +48,7 @@ graph LR
|
|
|
48
48
|
Router -->|Large / Multi-source / Multi-session| Ch3["Fable stages expose bindings only when dependencies pass"]
|
|
49
49
|
Router -->|Architecture / Plan review| Ch4["Bind domain skills/references only to their consuming step"]
|
|
50
50
|
|
|
51
|
-
Ch1 --> Invariants["Invariants: route-before-execution, verify-before-claim,
|
|
51
|
+
Ch1 --> Invariants["Invariants: route-before-execution, verify-before-claim, loop-awareness, resolve-active-required-bindings, resolve-selected-workflow"]
|
|
52
52
|
Ch2 --> Invariants
|
|
53
53
|
Ch3 --> Invariants
|
|
54
54
|
Ch4 --> Invariants
|
|
@@ -94,4 +94,4 @@ To ensure that the `harness-everything` skill is operating in strict compliance
|
|
|
94
94
|
- [ ] **Bind knowledge by step**: required/optional skills and references are declared per ordered requirement; only active paths are loaded/disclosed.
|
|
95
95
|
- [ ] **Resolve selected workflow**: the selected topology executed to resolution; escape only for uncovered scope with evidence.
|
|
96
96
|
- [ ] **Verify before claim**: objective evidence (tests, checks, quoted tool output) supports completion.
|
|
97
|
-
- [ ] **
|
|
97
|
+
- [ ] **Loop awareness**: an agent may use `zoom-out` at the first meaningful signal, while productive iterations may continue at any attempt.
|
|
@@ -17,9 +17,10 @@ graph TD
|
|
|
17
17
|
SafetyNet -->|No| CharTests["Write Characterization Tests first via tdd"]
|
|
18
18
|
SafetyNet -->|Yes| Extract["Extract incrementally via tdd; verify tests after each change"]
|
|
19
19
|
CharTests --> Extract
|
|
20
|
-
Extract --> ErrorCheck{"
|
|
21
|
-
ErrorCheck -->|Yes|
|
|
22
|
-
ErrorCheck -->|No| DoneState["
|
|
20
|
+
Extract --> ErrorCheck{"Does evidence undermine an assumption or reveal unknown impact?"}
|
|
21
|
+
ErrorCheck -->|Yes; reassessment helps| Reassess["Agent-initiated zoom-out; revise next check"]
|
|
22
|
+
ErrorCheck -->|No; next check is justified| DoneState["Continue incremental refactoring"]
|
|
23
|
+
Reassess --> Extract
|
|
23
24
|
```
|
|
24
25
|
|
|
25
26
|
## 2. Triggering and Routing Path
|
|
@@ -28,7 +29,7 @@ graph TD
|
|
|
28
29
|
graph LR
|
|
29
30
|
TechDebt["Trigger: refactor architecture or split object or apply SRP or tech debt"] --> ICA["improve-codebase-architecture / SKILL.md"]
|
|
30
31
|
ICA --> TDD["tdd: Characterization Tests first, then incremental extraction"]
|
|
31
|
-
ICA --> ZoomOut["zoom-out:
|
|
32
|
+
ICA --> ZoomOut["zoom-out: agent-initiated when evidence warrants reassessment"]
|
|
32
33
|
ICA --> SelfEvolve["self-evolve: record traps"]
|
|
33
34
|
```
|
|
34
35
|
|
|
@@ -40,9 +41,10 @@ graph TD
|
|
|
40
41
|
ScanInterfaces --> SRPProposal["Propose split into focused units plus seam abstractions"]
|
|
41
42
|
SRPProposal --> CharNet["Add Characterization Tests for untested legacy paths"]
|
|
42
43
|
CharNet --> Incremental["Incremental extraction with test check after each step"]
|
|
43
|
-
Incremental -->
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
Incremental --> ReassessGate{"Would reassessment improve the next step?"}
|
|
45
|
+
ReassessGate -->|Yes| RollbackZoom["Revisit assumptions; rollback only if needed for safety"]
|
|
46
|
+
ReassessGate -->|No; tests narrow the cause| ModularDone["Continue with safety net"]
|
|
47
|
+
RollbackZoom --> Incremental
|
|
46
48
|
```
|
|
47
49
|
|
|
48
50
|
Concrete example: a 600-line utility module is scanned for interfaces and ADR constraints, proposed for splitting into single-purpose units, guarded by Characterization Tests, then extracted step by step with verification after each change.
|
|
@@ -56,5 +58,5 @@ Deep detail: `improve-codebase-architecture/references/README.md`.
|
|
|
56
58
|
- [ ] Deepening and SRP proposal with object splitting and seam abstraction presented and approved before code changes
|
|
57
59
|
- [ ] `tdd` launched; Characterization Tests added first when legacy code lacks tests
|
|
58
60
|
- [ ] Extraction done incrementally with tests verified after each change
|
|
59
|
-
- [ ]
|
|
61
|
+
- [ ] Zoom-out was optional and agent-initiated when evidence warranted it; productive steps could continue as tests narrowed the cause
|
|
60
62
|
- [ ] Not used for features, bugfixes, or style-only cleanups with no structure change
|
|
@@ -16,9 +16,9 @@ graph TD
|
|
|
16
16
|
Discover --> Think["Think: establish intent, scope, and failure modes"]
|
|
17
17
|
Think --> Try["Try: make the smallest useful change and gather evidence"]
|
|
18
18
|
Try --> Summarize["Summarize: ground conclusions in tool output"]
|
|
19
|
-
Summarize -->
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
Summarize --> Reassess{Would reassessment improve the next step?}
|
|
20
|
+
Reassess -->|Yes; agent chooses| ZoomOut["Review assumptions, acceptance, and evidence"]
|
|
21
|
+
Reassess -->|No; next check is justified| Record["Record: persist milestones only when evidence supports them"]
|
|
22
22
|
ZoomOut --> Think
|
|
23
23
|
Record --> End([Evidence-grounded work, no fixed domain sequence])
|
|
24
24
|
```
|
|
@@ -34,7 +34,7 @@ graph LR
|
|
|
34
34
|
Trigger["Explain policy / Apply loop manually / Debug cognitive behavior"] --> Skill["install-cognitive-os / SKILL.md"]
|
|
35
35
|
Skill -->|No kernel context| Manual["Run Discover → Think → Try → Summarize → Record explicitly"]
|
|
36
36
|
Skill -->|Kernel present| Policy["Treat as policy reference; domain skill proceeds directly"]
|
|
37
|
-
Manual --> Gates["
|
|
37
|
+
Manual --> Gates["Guidance: evidence before claims; agent-initiated reassessment when evidence warrants"]
|
|
38
38
|
Policy --> Gates
|
|
39
39
|
|
|
40
40
|
style Skill fill:#d35400,stroke:#e67e22,stroke-width:2px,color:#ffffff
|
|
@@ -63,5 +63,5 @@ To ensure that the `install-cognitive-os` skill is operating in strict complianc
|
|
|
63
63
|
|
|
64
64
|
- [ ] **Policy, not installation**: no hook deployment, file copying, or config mutation claimed as this skill's effect.
|
|
65
65
|
- [ ] **Full five-step loop**: Discover → Think → Try → Summarize → Record applied in order, not the truncated four-step variant.
|
|
66
|
-
- [ ] **Evidence gates honored**: completion claims need evidence;
|
|
66
|
+
- [ ] **Evidence gates honored**: completion claims need evidence; an agent may choose `zoom-out` when evidence warrants reassessment, while productive work may continue.
|
|
67
67
|
- [ ] **No prerequisite fabrication**: domain skills (`tdd`, `security-review`, `repo-docs`) proceed without selecting this skill first.
|
package/docs/workflows/tdd.md
CHANGED
|
@@ -25,10 +25,11 @@ graph TD
|
|
|
25
25
|
RunGreen --> AssertGreen["Assert: Present terminal logs as evidence (Law 4)"]
|
|
26
26
|
AssertGreen --> VerifyGreen{Gate: verify-gate.js}
|
|
27
27
|
|
|
28
|
-
VerifyGreen -->|Exit 1
|
|
29
|
-
DebugCode
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
VerifyGreen -->|Exit 1| DebugCode["Read evidence; fix or choose to reassess"]
|
|
29
|
+
DebugCode -->|next check is justified| RunGreen
|
|
30
|
+
DebugCode -->|assumption is contradicted or impact is unknown| ZoomOut["Agent-initiated zoom-out"]
|
|
31
|
+
ZoomOut --> ReadFacts["Review goal, acceptance, and evidence"]
|
|
32
|
+
ReadFacts --> RunGreen
|
|
32
33
|
|
|
33
34
|
VerifyGreen -->|Exit 0: Green| Refactor["Refactor: Optimize & audit Code-Doc Alignment (Law 6)"]
|
|
34
35
|
|
|
@@ -61,8 +62,7 @@ flowchart TD
|
|
|
61
62
|
|
|
62
63
|
## Recovery state
|
|
63
64
|
|
|
64
|
-
The
|
|
65
|
-
the work into `zoom-out`, where the assumptions are rebuilt before retrying.
|
|
65
|
+
The former Rule-of-3 counter and forced-reflection path are retired under [#394](https://github.com/dyphn1/Harness-everything/issues/394). The agent may choose Zoom-out whenever evidence contradicts an assumption or reveals an unknown impact boundary, including on the first failure. When each attempt adds evidence or narrows the cause, the next justified TDD check may continue without a count or report requirement.
|
|
66
66
|
|
|
67
67
|
```mermaid
|
|
68
68
|
stateDiagram-v2
|
|
@@ -70,9 +70,9 @@ stateDiagram-v2
|
|
|
70
70
|
Red --> GreenAttempt
|
|
71
71
|
GreenAttempt --> Green: tests pass
|
|
72
72
|
GreenAttempt --> Retry: tests fail
|
|
73
|
-
Retry --> GreenAttempt:
|
|
74
|
-
Retry --> ZoomOut:
|
|
75
|
-
ZoomOut --> Red:
|
|
73
|
+
Retry --> GreenAttempt: next check justified by new evidence
|
|
74
|
+
Retry --> ZoomOut: agent chooses reassessment
|
|
75
|
+
ZoomOut --> Red: revised hypothesis
|
|
76
76
|
Green --> Refactor
|
|
77
77
|
Refactor --> [*]
|
|
78
78
|
```
|
|
@@ -1,26 +1,22 @@
|
|
|
1
1
|
# Workflow: Zoom Out
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> Agent-initiated reassessment when evidence contradicts an assumption or reveals an unknown impact boundary. A first failure may be enough; productive work can continue when attempts add evidence or narrow the cause.
|
|
4
4
|
|
|
5
5
|
Source of truth: `zoom-out/SKILL.md`.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Zoom-out is voluntary. An agent may choose it on the first meaningful signal or an explicit loop/rethink request, and may continue productive iteration when the next check is justified by new evidence. The former `rule-of-3*.js` counter, `reset-circuit-breaker.js`, forced report/unlock path, and OpenCode hard-lock path are retired under [#394](https://github.com/dyphn1/Harness-everything/issues/394). No counter, lock, reflection token, compulsory report, reset, or automatic escalation is part of this procedure. A short fact-check note can help organize reassessment, but no special artifact is required.
|
|
8
8
|
|
|
9
9
|
## 1. Skill Behavior Workflow
|
|
10
10
|
|
|
11
11
|
```mermaid
|
|
12
12
|
graph TD
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
Again -->|yes| Cycle[Another Zoom-Out Cycle]
|
|
21
|
-
Cycle --> Evolve[Record Insight With self-evolve]
|
|
22
|
-
Again -->|no| Done([Report Complete])
|
|
23
|
-
Escalate --> Done
|
|
13
|
+
Signal[Evidence contradicts assumptions or exposes unknown impact] --> Choose{Would reassessment help now?}
|
|
14
|
+
Request[Explicit loop/rethink request] --> Reassess[Agent chooses to zoom out]
|
|
15
|
+
Choose -->|yes| Reassess
|
|
16
|
+
Choose -->|not yet| Continue[Continue justified work]
|
|
17
|
+
Productive[Attempt adds evidence or narrows cause] --> Continue
|
|
18
|
+
Reassess --> ReadOnly[Review goal, acceptance, files, configuration, and evidence]
|
|
19
|
+
ReadOnly --> Next[Choose a justified next check]
|
|
24
20
|
```
|
|
25
21
|
|
|
26
22
|
## 2. Triggering and Routing Path
|
|
@@ -30,33 +26,27 @@ graph TD
|
|
|
30
26
|
LoopReq[Stuck In Loop Request] --> Skill[zoom-out SKILL]
|
|
31
27
|
SameErr[Same Error Keeps Failing] --> Skill
|
|
32
28
|
Rethink[Rethink Assumptions Request] --> Skill
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
Evidence[First meaningful signal or explicit request] --> Skill
|
|
30
|
+
Productive[Productive iteration] --> Continue[Continue with justified next check]
|
|
35
31
|
SingleFail[Routine Single Failure] --> DirectFix[Fix Directly]
|
|
36
32
|
Greenfield[Greenfield Planning No Failures] --> Fable[fable-mode SKILL]
|
|
37
|
-
Skill -->
|
|
33
|
+
Skill --> EvidenceReview[Review evidence and choose a justified next check]
|
|
38
34
|
```
|
|
39
35
|
|
|
40
36
|
## 3. Real-World Use Case
|
|
41
37
|
|
|
42
38
|
```mermaid
|
|
43
39
|
graph TD
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
Write --> Choice{Untried Path Exists?}
|
|
48
|
-
Choice -->|yes| Resume2[RESUME On Untried Path]
|
|
49
|
-
Choice -->|no| Esc2[ESCALATE With Options]
|
|
50
|
-
Resume2 -->|three more matching failures| Cycle2[Another Zoom-Out Cycle Then self-evolve]
|
|
40
|
+
Signal2[Evidence changes assumptions or impact boundary] --> Reassess2[Agent reviews goal, acceptance, and evidence]
|
|
41
|
+
Reassess2 --> Next2[Select a justified next check]
|
|
42
|
+
Productive2[Attempts produce evidence or narrow cause] --> Continue2[Continue iteration]
|
|
51
43
|
```
|
|
52
44
|
|
|
53
|
-
|
|
45
|
+
Optional note template: `zoom-out/templates/zoom-out-report.template.md`. The former enforcement hook is retired under [#394](https://github.com/dyphn1/Harness-everything/issues/394). The linked [`zoom-out/references/circuit-breaker.md`](../../zoom-out/references/circuit-breaker.md) describes the retired mechanism and is historical reference material.
|
|
54
46
|
|
|
55
47
|
## 4. Verification Check
|
|
56
48
|
|
|
57
|
-
- [ ]
|
|
58
|
-
- [ ]
|
|
59
|
-
- [ ]
|
|
60
|
-
- [ ]
|
|
61
|
-
- [ ] A later three-failure cycle ran another zoom-out; `npm run harness:reset` was used only as an optional manual clear, with the insight recorded via `self-evolve`
|
|
62
|
-
- [ ] Routine single-failure debugging and greenfield planning without failures were not routed here
|
|
49
|
+
- [ ] The agent chose whether reassessment would improve the next step; it may start on the first meaningful signal
|
|
50
|
+
- [ ] When reassessing, the goal, acceptance, files, configuration, and evidence were checked before choosing the next step
|
|
51
|
+
- [ ] Productive iteration continued when attempts added evidence or narrowed the cause
|
|
52
|
+
- [ ] No failure counter, lock, reflection token, compulsory report, reset, or automatic escalation was assumed
|
|
@@ -4,7 +4,7 @@ description: Use at session start (Discover phase) to detect and align with the
|
|
|
4
4
|
license: Apache-2.0
|
|
5
5
|
metadata:
|
|
6
6
|
author: Miya Daniel
|
|
7
|
-
version: 0.
|
|
7
|
+
version: 0.55.4
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# Environment Detection & Shell Alignment
|
|
@@ -27,7 +27,7 @@ Boundary: stay inside `process.cwd()`. Detection never writes integrations or se
|
|
|
27
27
|
1. Run `node "<this-skill-dir>/scripts/preflight.js"`; detect OS, shell, CLIs.
|
|
28
28
|
2. Where supported, audit read-only: `node "<this-skill-dir>/../harness-everything/scripts/self-heal.js" --check`. If unavailable, report and continue.
|
|
29
29
|
3. Only explicit install/setup/repair intent may omit `--check`. Repair covers Claude, Codex, Copilot, Cursor, Continue, Hermes. OpenCode has its own plugin runtime; skills-only surfaces may lack repair.
|
|
30
|
-
4. Adopt shell syntax: Git Bash → `/`, `$VAR`, Unix commands; PowerShell → `$env:VAR`, cmdlets; CMD → `\`, `%VAR%`, Windows commands.
|
|
30
|
+
4. Adopt shell syntax: Git Bash → `/`, `$VAR`, Unix commands; PowerShell → `$env:VAR`, cmdlets; CMD → `\`, `%VAR%`, Windows commands. An agent may choose zoom-out at the first meaningful signal; productive iteration may continue while attempts add evidence.
|
|
31
31
|
|
|
32
32
|
Deep dive: <this-skill-dir>/references/shell-syntax-rules.md
|
|
33
33
|
|
|
@@ -73,4 +73,4 @@ Toolchain self-heal: the harness itself is part of the environment. Audit whethe
|
|
|
73
73
|
|
|
74
74
|
## Verification & reflection
|
|
75
75
|
|
|
76
|
-
If any shell command fails, do not blindly retry the exact same command. Stop and ask yourself: "Did I use the wrong syntax for this terminal? Is this a Git Bash vs. PowerShell syntax issue?" If
|
|
76
|
+
If any shell command fails, do not blindly retry the exact same command. Stop and ask yourself: "Did I use the wrong syntax for this terminal? Is this a Git Bash vs. PowerShell syntax issue?" If a command failure changes the diagnosis or the next check is unclear, the agent may choose `zoom-out` immediately. Continue when the next attempt is evidence-based; no retry count triggers a circuit breaker.
|
package/eval-harness/SKILL.md
CHANGED
|
@@ -46,9 +46,9 @@ Score based on the following four dimensions (out of 10 points each):
|
|
|
46
46
|
- 0 points: Over-engineered, writing lengthy plans or repeatedly reading irrelevant files for a simple task.
|
|
47
47
|
|
|
48
48
|
### C. Anti-loop & Focus
|
|
49
|
-
- 10 points:
|
|
50
|
-
- 5 points:
|
|
51
|
-
- 0 points:
|
|
49
|
+
- 10 points: Chose a fresh diagnosis when evidence undermined an assumption, then grounded the next action in observed results; or continued productively while attempts narrowed the cause.
|
|
50
|
+
- 5 points: Noticed changed evidence but did not clearly connect it to the next check.
|
|
51
|
+
- 0 points: Repeated an approach without new evidence or treated a failure count as a mandatory stop.
|
|
52
52
|
|
|
53
53
|
### D. Environment & Tool Awareness
|
|
54
54
|
- 10 points: Accurately detected OS, terminal shell (e.g., Git Bash vs PowerShell), and available tools in the `[Discover]` phase before acting. No syntax errors caused by wrong shell assumptions.
|
package/evals/zoom-out/eval.yaml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
name: zoom-out-eval
|
|
2
|
-
description:
|
|
2
|
+
description: Agent-initiated reassessment eval for the zoom-out skill.
|
|
3
3
|
skill: zoom-out
|
|
4
4
|
version: "1.0"
|
|
5
5
|
config:
|
|
@@ -12,7 +12,7 @@ metrics:
|
|
|
12
12
|
- name: task_completion
|
|
13
13
|
weight: 0.7
|
|
14
14
|
threshold: 0.8
|
|
15
|
-
description: Did
|
|
15
|
+
description: Did the agent choose reassessment when evidence warranted it and continue during productive iteration?
|
|
16
16
|
- name: efficiency
|
|
17
17
|
weight: 0.3
|
|
18
18
|
threshold: 0.7
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
id: negative-productive-iteration-001
|
|
2
|
+
name: Continue when each iteration narrows the cause
|
|
3
|
+
description: "An agent may continue while attempts yield useful evidence and the next step is justified."
|
|
4
|
+
tags:
|
|
5
|
+
- negative-trigger
|
|
6
|
+
inputs:
|
|
7
|
+
prompt: "The first test run failed because sort returned undefined. Adding the missing return changed the failure: the result now contains 1 and 2 but misses 3, and the output shows the loop reads one element past the input. This narrows the remaining cause to the loop bounds. Continue with the smallest justified check and fix; there is no need for a report just because work has taken several attempts."
|
|
8
|
+
expected:
|
|
9
|
+
should_trigger: false
|
|
10
|
+
graders:
|
|
11
|
+
- type: text
|
|
12
|
+
name: contains-keywords
|
|
13
|
+
config:
|
|
14
|
+
contains:
|
|
15
|
+
- "continue"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
id: negative-trivial-
|
|
2
|
-
name:
|
|
3
|
-
description: Routine
|
|
1
|
+
id: negative-greenfield-trivial-001
|
|
2
|
+
name: Greenfield planning and a clear edit need no reassessment
|
|
3
|
+
description: Routine debugging with a clear next check or greenfield planning does not need voluntary reassessment.
|
|
4
4
|
tags:
|
|
5
5
|
- negative-trigger
|
|
6
6
|
inputs:
|
|
7
|
-
prompt: "
|
|
7
|
+
prompt: "Start a small greenfield project with a hello-world function, then fix the clear typo in README.md line 3 from 'recieve' to 'receive'. No test has failed, the requirements are clear, and there is no unknown impact boundary."
|
|
8
8
|
expected:
|
|
9
9
|
should_trigger: false
|
|
10
10
|
graders:
|
|
@@ -12,5 +12,5 @@ graders:
|
|
|
12
12
|
name: not-contains-keywords
|
|
13
13
|
config:
|
|
14
14
|
contains:
|
|
15
|
-
- "
|
|
16
|
-
- "reflection report"
|
|
15
|
+
- "mandatory zoom-out"
|
|
16
|
+
- "required reflection report"
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
id: positive-first-failure-001
|
|
2
|
+
name: First meaningful failure can prompt reassessment
|
|
3
|
+
description: "Agent-initiated reassessment when evidence contradicts assumptions, exposes an unknown boundary, or a path stops producing useful information. Use for voluntary diagnosis of stalled or changing work. DO NOT USE FOR: routine debugging when the next check is clear, or greenfield planning."
|
|
4
|
+
tags:
|
|
5
|
+
- positive-trigger
|
|
6
|
+
inputs:
|
|
7
|
+
prompt: "I feel stuck after this first test failure: normalizeProfile mutates a profile that callers may share. This contradicts my assumption that callers pass disposable objects. I want to rethink my assumptions and voluntarily zoom out now: compare the acceptance clause, observed evidence, call sites, and a revised check before choosing the smallest fix. A written report is not required."
|
|
8
|
+
expected:
|
|
9
|
+
should_trigger: true
|
|
10
|
+
graders:
|
|
11
|
+
- type: text
|
|
12
|
+
name: contains-keywords
|
|
13
|
+
config:
|
|
14
|
+
contains:
|
|
15
|
+
- "reassess"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
id: positive-repair-loop-001
|
|
2
2
|
name: Successful review commands still expose a repair loop
|
|
3
|
-
description: "
|
|
3
|
+
description: "Agent-initiated reassessment when evidence contradicts assumptions, exposes an unknown boundary, or a path stops producing useful information. Use for voluntary diagnosis of stalled or changing work. DO NOT USE FOR: routine debugging when the next check is clear, or greenfield planning."
|
|
4
4
|
tags:
|
|
5
5
|
- positive-trigger
|
|
6
6
|
inputs:
|
|
@@ -4,7 +4,7 @@ description: Enforce fable-mode context discipline as a shadow guard. Use for st
|
|
|
4
4
|
license: Apache-2.0
|
|
5
5
|
metadata:
|
|
6
6
|
author: Miya Daniel
|
|
7
|
-
version: 0.
|
|
7
|
+
version: 0.55.4
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# Fable Discipline (Macro Task Discipline & Safety Net)
|
|
@@ -16,7 +16,7 @@ metadata:
|
|
|
16
16
|
| **Trigger / Input** | Background shadow for the whole duration `fable-mode` is active — not a standalone trigger. |
|
|
17
17
|
| **Expected Output** | State compaction after milestones; authorized commit-boundary guidance; a state manifest at every sub-agent handoff. |
|
|
18
18
|
| **State Mutations** | None of its own — constrains how `fable-mode` and `multi-agent-workspace` mutate state. |
|
|
19
|
-
| **
|
|
19
|
+
| **Guidance** | Surface build divergence as a warning; an agent may choose `zoom-out` to reassess it. |
|
|
20
20
|
|
|
21
21
|
Shadow guard for `fable-mode`: **MUST** run in the background for its whole duration.
|
|
22
22
|
|
|
@@ -36,6 +36,6 @@ Shadow guard for `fable-mode`: **MUST** run in the background for its whole dura
|
|
|
36
36
|
1. **Anti-context bloat**: After each milestone, **MUST** compact state and decisions; avoid irrelevant broad reads.
|
|
37
37
|
2. **Physical boundaries**: **MUST** know the CWD. If commits are authorized, independent logic blocks **SHOULD** remain separate; otherwise leave changes uncommitted.
|
|
38
38
|
3. **Agent handoff**: Outgoing agents **MUST** leave a state manifest; incoming agents **MUST** verify it first.
|
|
39
|
-
4. **Divergence signal**: **MUST** surface diverging errors and recommend `zoom-out`; **SHOULD** map the dependency graph. Divergence alone does not hard-stop execution.
|
|
39
|
+
4. **Divergence signal**: Divergence is a warning signal; **MUST** surface diverging errors and recommend `zoom-out`; **SHOULD** map the dependency graph. Divergence alone does not hard-stop execution.
|
|
40
40
|
|
|
41
41
|
Deep dive: <this-skill-dir>/references/discipline-rules.md
|
|
@@ -19,4 +19,4 @@ When `fable-mode` spawns and switches between different sub-agents via `multi-ag
|
|
|
19
19
|
## 4. Divergence Signal
|
|
20
20
|
- Large tasks easily generate the sunk cost fallacy of "I think it's almost fixed, let me try one more time."
|
|
21
21
|
- If Build Errors exhibit a divergent trend (the more you fix, the more it breaks), surface the regression immediately and recommend `zoom-out`; divergence alone is not a hard stop.
|
|
22
|
-
- Organize the error dependency graph for the human.
|
|
22
|
+
- Organize the error dependency graph for the human. An agent may choose `zoom-out` whenever evidence changes the diagnosis; explicit user/host permission boundaries retain their own authority.
|
package/fable-mode/SKILL.md
CHANGED
|
@@ -4,13 +4,11 @@ description: "Reference guardrails for verified warnings and safe replacements;
|
|
|
4
4
|
license: Apache-2.0
|
|
5
5
|
metadata:
|
|
6
6
|
author: Miya Daniel
|
|
7
|
-
version: 0.
|
|
7
|
+
version: 0.55.4
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# Execution Guardrails
|
|
11
11
|
|
|
12
|
-
**USE FOR**: Raising warnings or flagging problems, search-and-replace/regex file edits, batching minor caveats, reporting capability limits.
|
|
13
|
-
|
|
14
12
|
| Component | Spec |
|
|
15
13
|
| :--- | :--- |
|
|
16
14
|
| **Trigger / Input** | Turn raising a warning or performing search-and-replace edits. |
|
|
@@ -35,7 +33,7 @@ metadata:
|
|
|
35
33
|
2. **Warning batching.** Collect minor concerns and list them together in the next natural report or handoff; their count alone MUST NOT stop, pause, or return the worker/stage. An independently material, confirmed concern may stop the current stage and be surfaced immediately.
|
|
36
34
|
3. **Find-and-replace safety** — Prefer structured edit tools over shell `sed`; anchor with unique context or `\bword\b` boundaries; verify file integrity post-edit. Never replace-all blindly.
|
|
37
35
|
|
|
38
|
-
|
|
36
|
+
When evidence changes the diagnosis, an agent may choose `zoom-out`; warning batching does not create a stop rule.
|
|
39
37
|
|
|
40
38
|
This nested file is reference-only, not an always-on carrier; rules apply only when an active carrier injects them.
|
|
41
39
|
|
|
@@ -37,9 +37,9 @@ keep working and preserve the batch for the report instead of creating a second
|
|
|
37
37
|
breaker.
|
|
38
38
|
|
|
39
39
|
A concern that independently meets the verify-before-flag bar and is material on its own
|
|
40
|
-
may stop the current stage and be surfaced immediately.
|
|
41
|
-
|
|
42
|
-
warning threshold governs minor-concern reporting only.
|
|
40
|
+
may stop the current stage and be surfaced immediately. An agent may also choose
|
|
41
|
+
`zoom-out` when evidence changes the diagnosis; neither this guidance nor the warning
|
|
42
|
+
threshold forces a pause or report. The warning threshold governs minor-concern reporting only.
|
|
43
43
|
|
|
44
44
|
## 3. Find-and-replace safety
|
|
45
45
|
|
|
@@ -4,7 +4,7 @@ description: "Reference orchestrator behavior profile (legacy alias opus) for st
|
|
|
4
4
|
license: Apache-2.0
|
|
5
5
|
metadata:
|
|
6
6
|
author: Miya Daniel
|
|
7
|
-
version: 0.
|
|
7
|
+
version: 0.55.4
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# Fable Mode — Opus
|
|
@@ -32,7 +32,7 @@ metadata:
|
|
|
32
32
|
|
|
33
33
|
1. Resolve legacy alias `opus` to the `orchestrator` behavior profile through `<this-skill-dir>/../scripts/model-selector.js`.
|
|
34
34
|
2. Spawn `fable-orchestrator` when available; otherwise use the explicit inline/stop agent fallback. The runtime-model floor is advisory and never changes the profile.
|
|
35
|
-
3. The orchestrator owns scope boundaries, advisory replan guidance (never a hard stop), stage contracts, named worker delegation, and escalation; it never produces artifacts itself.
|
|
35
|
+
3. The orchestrator owns scope boundaries, advisory replan guidance (never a hard stop), stage contracts, named worker delegation, and escalation; it never produces artifacts itself. Agents may choose `zoom-out` whenever evidence warrants a fresh diagnosis.
|
|
36
36
|
4. Cold-review high-stakes deliverables with `fable-verifier`; report every unverified stage.
|
|
37
37
|
|
|
38
38
|
Use `<this-skill-dir>/../references/model-matrix.md` for behavior-profile aliases, runtime floors, audit fields, and fallback policy.
|