Commit 8e66ead
Exception paths split out of claude-fo-dispatch.md into the failure-triggered fo-dispatch-recovery skill (#466)
* Split Degraded Mode / Break-Glass / Context-Budget exception bodies out of claude-fo-dispatch.md into a failure-triggered skill
claude-fo-dispatch.md carried the full Degraded Mode contract, the Break-Glass
manual-dispatch template, and the dead-ensign/budget-failure detail on every
dispatching session's happy path even though they fire only on failure
(~7.8KB / ~1.9k tok). Move the three bodies verbatim into a new
non-user-invocable skills/fo-dispatch-recovery/SKILL.md (the #457 pattern),
leaving a resident trigger line per exception that carries the first action
and loads the skill only when the failure actually happens.
Wires the new skill into the AC-4 contractlint closure (deferredSkillCores,
lazyLoadSkills, and a deferredModuleBodies walk that also retroactively
closure-checks the pre-existing using-legacy-claude-team token in
claude-fo-dispatch.md) and the ensigncycle greet guard, plus the four
re-points and the docs/runtime-support.md discriminator update.
Adds offline oracles + RED-control unit tests and a //go:build live scenario
harness (degraded-bare, break-glass-shim) for the two behavioral-equivalence
ACs; the live baseline-proof itself is not complete (see the implementation
stage report) — the sandbox's benchmark credential authenticated once, long
enough to catch and fix a real CLI slash-command-interception bug in the
degraded-bare prompt, then returned 401 on every later call.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* contractlint: pin the degraded-mode captain-report constant and using-legacy-claude-team's two Degraded Mode pointers
Feedback cycle 1 (pre-merge adversarial audit, no material refutation, two
offline-coverage pins):
T1 — the offline oracle's degradedModeCaptainReportPrefix constant
(dispatch_recovery_assert_test.go) was a free-floating value with nothing
binding it to fo-dispatch-recovery/SKILL.md's actual Captain Report Template
text. TestDegradedModeCaptainReportPrefixBindsSkillBlockquote extracts the
constant from source and asserts it appears verbatim in the skill, so a
paraphrase of either side reds instead of silently drifting apart.
T2 — using-legacy-claude-team/SKILL.md's two re-pointed Degraded-Mode lines
were unwatched by any closure check. Walking the whole file through the
existing generic prose-pointer scanner was tried first and rejected: it also
reds on two untouched, deliberately-prose lines ("Degraded Mode cannot be
entered" / "Degraded Mode is entered") that name Degraded Mode as a STATE, not
as a pointer — the scanner can't tell the two apart. Instead,
TestUsingLegacyClaudeTeamDegradedModePointersNameRealAnchor locates the two
known pointer lines by a stable marker phrase (present in both the old bare
form and the current Skill-token form) and asserts each still carries the
recovery-skill token and names a real anchor — narrower than the audit's
suggested mechanism but closure-checking exactly the two pointers it cared
about, without generalizing the scanner or touching the untouched prose.
Both pins verified RED against their respective mutants locally (paraphrase /
restore-old-bare-pointer), then reverted before commit.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Co-authored-by: Spike Test <spike@example.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>1 parent 7cb5555 commit 8e66ead
13 files changed
Lines changed: 758 additions & 72 deletions
File tree
- docs
- internal
- contractlint
- ensigncycle
- skills
- first-officer/references
- fo-dispatch-recovery
- using-legacy-claude-team
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
56 | 72 | | |
57 | 73 | | |
58 | 74 | | |
| |||
84 | 100 | | |
85 | 101 | | |
86 | 102 | | |
| 103 | + | |
87 | 104 | | |
88 | 105 | | |
89 | 106 | | |
| |||
143 | 160 | | |
144 | 161 | | |
145 | 162 | | |
146 | | - | |
| 163 | + | |
| 164 | + | |
147 | 165 | | |
148 | 166 | | |
149 | 167 | | |
| |||
360 | 378 | | |
361 | 379 | | |
362 | 380 | | |
| 381 | + | |
363 | 382 | | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
364 | 393 | | |
365 | 394 | | |
366 | | - | |
| 395 | + | |
367 | 396 | | |
368 | 397 | | |
369 | 398 | | |
| |||
372 | 401 | | |
373 | 402 | | |
374 | 403 | | |
375 | | - | |
| 404 | + | |
376 | 405 | | |
377 | 406 | | |
378 | 407 | | |
| |||
Lines changed: 147 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
0 commit comments