Repository navigation
Ratchet: the serving planner's floor (MIN_SERVE_CTX) may not be named outside the planner - #5593
Conversation
…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
|
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. |
|
Local, M5, serving down 20:47-20:51Z at ad61c02: |
… 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
319b45e to
e9cb4e6
Compare
|
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. |
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_plannerholds 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 testa_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 --lib71/0.🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo