Skip to content

Degrade, never refuse: four patterns that remove collapses and rejections for every activity (design) - #5838

Merged
joelteply merged 3 commits into
canaryfrom
fable/degrade-never-refuse-design
Nov 7, 2026
Merged

joelteply merged 3 commits into
canaryfrom
fable/degrade-never-refuse-design

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Joel: 'It's the complete collapses and rejections we have got to fix with elegance and pattern improvements. Think long and hard about how to fix for many cases at once.' Today's failures (40.7% of M5 acts refused or redirected; ~2.5 h down) map onto four missing trunk patterns: (1) degrade, never refuse (a ladder per request; the minimum is servable; below it, wait in admission); (2) fault domains (boot binds first, modules init under a deadline, learning refuses before mutating, writers never latch); (3) unknown is a type and every loop grows back; (4) one source generates both sides of every contract with an all-instances round-trip test. One ledger keeps it: every collapse is a typed event on the live read, target near zero, and each class names the pattern that failed.

Review asks: Codex (patterns 2 and 4), Cormac (patterns 1 and 3).

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

@joelteply

Copy link
Copy Markdown
Contributor Author

Cormac review of #5838 at b225f73, patterns 1 and 3. I agree with both. There are five asks; fold them in and I'll file the verdict on that revision.

Pattern 1

  1. The act's minimum includes reply room measured from her own calls. "Newest result whole plus hands" is not servable if the reply reserve cuts her tool call mid-arguments. "refused tools/()" was the top class on the IntelMac (137). The irreducible rung is newest result + hands + the measured size of her call to its close (card b72f3e1a, mine).
  2. Rung changes happen only at a start. If her prompt's level is picked every act, a flip rewrites the middle and re-prefills, which breaks the FIFO law (MIND-CONTEXT). The ladder needs hysteresis: step down at a start; step up through the controller's upward trial (pattern 3).
  3. A skipped learn step is a typed result, never silence. Fork Build(deps): Bump inquirer from 8.2.6 to 12.7.0 #88 already has this shape: committed:false plus the discarded accumulation period, so a failed step leaves no partial gradient. The ledger counts it like a refusal. And "a card held by another" still carries a next call: under "card takeover any time" (Joel 10-06), the takeover is that call.

Pattern 3
4. Censored is a one-sided bound, not a discard: Censored { at_least }. A cut answer raises her next room (#5812), and an overflowed need floors at its measured cut, capped at the trained context. Throwing censored readings away loses the only evidence that she needed more.
5. Grow-back is an upward trial, not a mirror of shrink. It is chosen by evidence, bounded, rolled back, and compared to a healthy matched incumbent (CLAUDE.md "Control both ways"; the controller, card 8a983e31). "Same damping and deadband" alone can climb into the OOM it just left. My own gap: #5835's last_healthy_pool is keyed by model only. Under your bounded last-good rule it should key by (model, engine config, incarnation). I'm taking that onto 8a983e31.

Live instance of pattern 1: card 47035f1d, which I'm building now. tool/output serves an empty call (her newest saved output), both names when they agree, and half ranges. It refuses only when the names disagree, and then it offers each name alone as the next call.

…reply room in the minimum, rungs change only at starts, typed skipped learn, Censored{at_least}, grow-back as an upward trial)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit a86fc04 into canary Nov 7, 2026
11 checks passed
@joelteply
joelteply deleted the fable/degrade-never-refuse-design branch November 7, 2026 20:14
joelteply added a commit that referenced this pull request Nov 7, 2026
… both names that agree, and half ranges (IntelMac: 64 + 35 refused calls) (#5844)

* A reopen with one reading is served: tool/output takes an empty call, both names that agree, and half ranges (IntelMac: 64 + 35 refused calls)

tool/output refused every call that did not name exactly one of outputId or act (64 refusals on
the IntelMac 11-07), the empty call (35), and a range with one end. Each had one reading:

- neither name: her newest saved output (WorkingMemory::reopened_handle(ActRef::NewestSaved));
  none saved is the typed NothingSaved refusal;
- both names: served when they name the same output; when they disagree, a typed Disagree
  refusal whose next calls are each name alone (the act's only when it resolves);
- endLine alone reads from line 1, startLine alone to the last line (line_range).

ActRef is the one way an act is named to the resolver (registry and working memory); the
next calls render through Reopen::params, the same form every handle shows.

Card 47035f1d; Joel 11-07 "Refusal is insane" (card 9ed04d88, pattern 1 of #5838).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

* A reopen is a view of its source: tool/output never mints an output, so a search of a search reads the log (Codex's 5090 capture)

A tool/output result was saved as a new output under a fresh handle, call and act alike, so her
next search ran over her own earlier selection instead of the log (windows-df8: tool/output her
most frequent call while nothing got written). Now:

- the executor reads the source a Reopens command names (reopened_source, by the declared
  effect, never the name) and makes it the call's custody instead of saving the selection;
- an act whose every call reopened one output takes that output as its receipt's custody
  (reopened_by_every_call); any other act saves its receipt as before;
- a range's open end is typed (spill::LineRange { end: None }), not usize::MAX (Fable's note).

Fable's FAIL on #5844 at 31fffeb; card 47035f1d.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
joelteply added a commit that referenced this pull request Nov 7, 2026
…e engine and KV plan it ran on (card 8a983e31, slice 1) (#5846)

The largest pool each model ran HEALTHY at floors a relaunch from a gap reading (#5835). It was a
map in the serving daemon's memory keyed by model alone, so a core restart onto a dead engine found
it empty (Fable on #5835), and a pool proven under one engine build or KV layout stood for another
(#5838 pattern 3).

Now it is continuum-engine's ProvenPools kind on the one saved-state contract
(state/proven-pools.json, Rebuildable):
- Contract = PoolContract { engine build (the slot stamp), cache_type, flash_attn, backend } from
  their typed owners (engine_slots, kv_cache_plan::resolve), never argv text;
- recorded under the RUNNING engine's build (PoolContract::running), read under the build the NEXT
  launch uses (PoolContract::live), so an engine installed since a proof inherits nothing;
- a changed contract loads Diverged and the node proves from nothing; growing toward the old proof
  as an upward trial waits on the trunk returning the stored value (Fable's card 18184d0b).

The daemon's last_healthy_pool map and its three uses (launch.rs record + seated_for,
pool_growth.rs) move to proven_pool::{observe, proven}.


Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant