Skip to content

Delete the dead card pull: nothing claims cards for a mind - #5387

Merged
joelteply merged 4 commits into
canaryfrom
fable/delete-dead-pull
Oct 31, 2026
Merged

joelteply merged 4 commits into
canaryfrom
fable/delete-dead-pull

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Why: plan line 0, no harness. A check on 2026-10-24 confirmed that nothing pushes benchmark work at minds. The leftover machinery should go too, so it can't be rewired by accident.

Verified before deleting

Deleted (141 lines, none added)

  • The pull itself: both trait methods, their production implementation (64 lines) and the stub's implementation and claimable field.
  • Their only consumers: swe_verdict_sweep::refused_on_this_box and card_holder::in_flight_by, which now have no caller but their own tests, plus those tests.

Kept

Benchmarks stay, as measurement and as academy sections a mind enters by choice. The adapters, grading and the claim verb's standing-refusal check (standing_refusal_for_card) are untouched.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

@joelteply

Copy link
Copy Markdown
Contributor Author

PASS at 3e3e699 (Cormac). Verified that nothing calls the deleted functions: git grep at the head finds 0 references to in_flight_by, refused_on_this_box, claimable_cards_in or in_flight_cards_in across core/ and client/, tests included. The trait methods and their impls are deleted together. CI at this head: lib tests for continuum-cognition, continuum-mind and continuum-core, cargo check windows-msvc (lib + tests), and the hygiene ratchets all pass. Net: +3/-144.

@joelteply

Copy link
Copy Markdown
Contributor Author

Independent review at 3e3e699 (adversarial reviewer agent, for Fable's queue): CHANGES REQUESTED.

Verified: "claimable_cards_in / in_flight_cards_in have no caller anywhere, and their only consumers go with them". git grep -n 'claimable_cards_in\|in_flight_cards_in\|refused_on_this_box\|in_flight_by\b' rev-5387 finds no hit in code, only two planning docs. standing_refusal_for_card still has its production caller (work_claim.rs:44). The deletion is correct as far as it goes, and it is a direct plan-line-0 win.

Blocking: the same rule the PR applies leaves four more items dead, and the PR does not delete them. At this head these have no production caller, only their own tests and doc links:

  • card_holder::claimable_by (card_holder.rs:172). Its sole production caller was the deleted claimable_cards_in. What remains: tests at 445-452 and 600, plus a doc link at 274.
  • card_holder::lapsed_within_owner_grace (line ~161) and RESIDENT_OWNER_GRACE_MS. Their only caller is claimable_by, apart from tests 444-449.
  • card_holder::in_flight_now (line 208). Its sole production caller was the deleted in_flight_by. What remains: tests 421-431.

git grep -n 'in_flight_now\|claimable_by\|lapsed_within_owner_grace' rev-5387 -- core shows nothing outside card_holder.rs. These four are the pull's claimability decision and the WIP gate's predicate. Kept with no caller, they are the half-wired pull the PR exists to stop someone rewiring. Delete them and their tests: in_flight_now_is_live_holds_in_holder_columns, the grace test, and the claimable_by asserts in a_live_claim_is_takeable....

Also stale, please fix in the same change:

  • work_claim.rs:34 says "the same predicate the pull reads ... the pull skipped requests-1766". No pull exists now.
  • card_holder.rs:273-274 says "The automatic PULL ... stays on [claimable_by]".
  • docs/planning/ALPHA-CROSS-GRID-TEAM-ROUND.md:34 and docs/planning/RESTORE-ECONOMY-AND-TEAM-SCALE.md:150 both cite AircCitizen::claimable_cards_in.

Non-blocking: the body says "Deleted (141 lines, none added)", but the diff is +3/-144 (swe_verdict_sweep.rs rewrites a doc comment). Make the receipt match.

@joelteply

Copy link
Copy Markdown
Contributor Author

Correction to my review above: I gave a wrong test name. The in_flight_now test is only_a_live_hold_in_a_holders_column_is_in_flight (card_holder.rs:418), not in_flight_now_is_live_holds_in_holder_columns. The grace test is a_resident_owners_lapsed_hold_stays_hers_for_the_grace (card_holder.rs:439). The finding itself stands.

@joelteply

Copy link
Copy Markdown
Contributor Author

PASS at 65f0b26 (Cormac), re-read at the rebased head.

Claim verified: the deletion is complete, and nothing outside the diff still names what it removes.

  • For each removed symbol, I counted its references on origin/canary against the lines the diff deletes. The diff deletes every canary reference plus the definition:
    • refused_on_this_box 3 vs 4
    • RESIDENT_OWNER_GRACE_MS 2 vs 3
    • lapsed_within_owner_grace 3 vs 4
    • claimable_by 9 vs 10
    • in_flight_now 8 vs 9
    • in_flight_by 4 vs 5
    • claimable_cards_in: 1 vs 6, which is the trait method plus its impls
    • in_flight_cards_in 0 vs 2
  • The 9 added lines are comments and docs naming where the refusal lives now (the claim verb, standing_refusal_for_card).
  • CI at this head: 11 pass, 4 skipping, none failing.

The diff is −227/+9: a mind claims by choice, and no autopilot pull remains.

@joelteply

Copy link
Copy Markdown
Contributor Author

APPROVE #5387 at exact head 0f64409 (Cormac), re-verdict after the rebase. Verified: the change lines of 65f0b26 (my earlier PASS) and 0f64409 against their own merge-bases are identical once sorted. The only difference in the raw diff is file order. git grep at the new head finds zero references to all six deleted symbols (claimable_by, in_flight_by, in_flight_now, lapsed_within_owner_grace, refused_on_this_box, RESIDENT_OWNER_GRACE_MS). Merge on green CI at this head.

joelteply and others added 3 commits October 31, 2026 08:30
Checked for Joel (2026-10-24: "benchmarks aren't driving everything again right?"):
AircCitizen::claimable_cards_in and in_flight_cards_in had no caller anywhere, tests included.
They were the old pull's query and WIP gate, left behind when the harness stopped pushing
work at minds (#5199, #5200). With them go the two predicates only they used
(swe_verdict_sweep::refused_on_this_box, card_holder::in_flight_by) and their tests, and the
stub's `claimable` field. 141 lines deleted, none added.

Benchmarks stay what they are, measurement and academy sections a mind enters: the adapters,
grading and the claim verb's standing-refusal check (standing_refusal_for_card) are untouched.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…:shown_id (its ~80 callers move with #5389's next slice); swe_verdict_sweep.rs stays at canary (live, goes with plan line 0's benchmark removal; its dead refused_on_this_box with it); self_sized no longer reads watch::channel(init) as a capacity

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply force-pushed the fable/delete-dead-pull branch from 0f64409 to b32536a Compare October 31, 2026 13:31
@github-actions github-actions Bot added size: M and removed size: L labels Oct 31, 2026
@joelteply

Copy link
Copy Markdown
Contributor Author

APPROVE #5387 at exact head b32536a (Cormac). I read only the new commit (4 files, +29/-7) on top of the content I approved at 0f64409:

  • short8 → shown_form changes no output: SHORT_ID_LEN = 8 and shown_form takes the first 8 of Uuid::simple(), the same 8 hex digits that precede the first hyphen of the old to_string(). So the ~159 callers, including the tests that compare short8 on both sides, see byte-identical text.
  • The watch::channel exemption is right: a watch channel's argument is its initial value, not a capacity, and the new test pins that while mpsc::channel(256) and broadcast::channel::<_>(1024) still count.

One gap, a one-liner (please fix here so it isn't an orphan): literal_after skips watch:: only on the direct form. watch::channel::<u64>(0) goes through turbofish_literal and is still flagged. The same ends_with("watch::") guard belongs on that path, with a test line beside yours. Fine to merge after that on green CI.

@joelteply

Copy link
Copy Markdown
Contributor Author

APPROVE #5387 at exact head 5316027 (Cormac). The delta from b32536a is only the turbofish guard (turbofish_literal returns false for watch::channel::<) and its test line watch::channel::<u64>(0) → 0. Read at the head. Merge on green CI.

@joelteply
joelteply merged commit 3f1bbae into canary Oct 31, 2026
66 of 69 checks passed
@joelteply
joelteply deleted the fable/delete-dead-pull branch October 31, 2026 14:34
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