Skip to content

Harden cost-algebra soft spots (overflow, warmth, T_core, admit) - #25

Merged
fxdv merged 1 commit into
mainfrom
harden/algebra-soft-spots
Jul 21, 2026
Merged

Harden cost-algebra soft spots (overflow, warmth, T_core, admit)#25
fxdv merged 1 commit into
mainfrom
harden/algebra-soft-spots

Conversation

@fxdv

@fxdv fxdv commented Jul 21, 2026

Copy link
Copy Markdown
Owner

Summary

  • Barrier overflow: append_barriers_fail_expensive saturates the last slot to (B_{\max}) instead of silently dropping penalties.

  • Warmth ρ_max: warmth.max_discount in params SoT; threat-model treats it as a first-class trust surface.

  • T6 T_core: per-backend EWMA of prefill wall; routing uses max(claimed, ewma).

  • Cost vs admit: docs/rustdoc clarify Φ soft-cap — cost ranks, ledger/admit shed.

  • I have read CLA.md and certify my contribution under Apache-2.0 OR MIT

Test plan

  • cargo test -p demiurge-cost --lib
  • cargo test -p demiurge-cost --test positivity
  • cargo test -p demiurge-router --test track_a
  • Confirm Policy (params + generated artifacts same PR) / Verify / Spec green

Make barrier overflow fail-expensive, move warmth ρ_max into params, fold observed prefill wall into effective T_core, and document that cost ranks while admit/ledger sheds.
@fxdv
fxdv merged commit dae7cbb into main Jul 21, 2026
5 checks passed
@fxdv
fxdv deleted the harden/algebra-soft-spots branch July 21, 2026 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant