Skip to content

Ratchet: the serving planner's floor (MIN_SERVE_CTX) may not be named outside the planner - #5593

Merged
joelteply merged 2 commits into
canaryfrom
fable/no-window-standin
Nov 2, 2026
Merged

joelteply merged 2 commits into
canaryfrom
fable/no-window-standin

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Serves the residents (#5591 Fault 3, step 2): MIN_SERVE_CTX (2048) used as a stand-in for an unknown window froze residents' bindings and working memory deleted their result bodies against it (M5 2026-10-29). New source-hygiene rule planner_floor_outside_the_planner holds the count of lines naming it outside the planner modules against the base tree, so it can only fall; it reaches zero through #5591 steps 4-7. Its test a_mind_side_use_is_flagged_and_the_planner_is_not.

Stacked on #5590 (0f92b59); merge after it.

Measured

Local, M5, serving down 19:52-19:57Z at 75595f2: cargo test -p source-hygiene --lib 71/0.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

joelteply added a commit that referenced this pull request Oct 29, 2026
…ed prefix, so a sibling is not exempt; the doc says it counts the name only (Codex on #5593)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply

Copy link
Copy Markdown
Contributor Author

Codex review: source PASS for the ratchet-specific changes at exact ad61c02. The exemption leak is fixed: directory entries are slash-delimited and file entries compare exactly; negative sibling tests cover the reported cases. Registration uses the existing dynamic base-versus-head ratchet mechanism, without a new baseline constant. This counts explicit MIN_SERVE_CTX references only, as now documented; it does not establish complete fallback coverage. Stacked #5590 runtime changes retain their separate review/validation scope. Exact-head tests/CI must pass before merge; I did not run builds beside serving.

@joelteply

Copy link
Copy Markdown
Contributor Author

Local, M5, serving down 20:47-20:51Z at ad61c02: cargo test -p source-hygiene --lib 72/0 (incl. a_sibling_of_a_planner_path_is_not_exempt).

@github-actions github-actions Bot added size: M and removed size: XL labels Oct 29, 2026
@joelteply
joelteply enabled auto-merge (squash) October 31, 2026 22:10
joelteply and others added 2 commits November 1, 2026 22:03
… outside the planner

MIN_SERVE_CTX (2048) is the smallest lane the planner serves. Outside the planner it
was a stand-in for 'the served window is not known yet'; on the M5 (2026-10-29) residents
materialized before the engine was ready were bound at 2048 and working memory deleted
their result bodies (36 of 40 results bare headers).

source-hygiene planner_floor.rs: one violation per code line (tests included, comments
not) naming MIN_SERVE_CTX outside inference/planning/, inference/single_purpose_lane/,
modules/serving_consumer.rs, modules/serving_daemon*, grid/placement.rs and
provisioning/placement_planner.rs. Held by ratchet::hold against the base tree; it may
only fall. 28 lines in 15 files today (grep), removed as the window becomes the turn's
admission grant instead of a cached copy (map in the session report).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…ed prefix, so a sibling is not exempt; the doc says it counts the name only (Codex on #5593)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply force-pushed the fable/no-window-standin branch from 319b45e to e9cb4e6 Compare November 2, 2026 04:14
@joelteply

Copy link
Copy Markdown
Contributor Author

Source review PASS at exact head e9cb4e6. The planner exemptions use slash-delimited directory prefixes or exact file equality; the sibling regressions cover the earlier widening concern. The rule explicitly documents that it detects the constant name, not literal/alias substitutions, so its scope is honest. No additional source blocker found. The supplied 78-test/ratchet receipt is Fable's local validation; this review does not claim a new local run or turn the runner disk failure into a test pass. Merge on required green as proposed.

@joelteply
joelteply merged commit 5be781b into canary Nov 2, 2026
36 checks passed
@joelteply
joelteply deleted the fable/no-window-standin branch November 2, 2026 04:24
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