Repository navigation
Short ids render through airc's one owner (shown_form / .shown()); hand_rolled_short_ids ratchet - #5389
Short ids render through airc's one owner (shown_form / .shown()); hand_rolled_short_ids ratchet#5389joelteply wants to merge 8 commits into
Conversation
|
PASS at b31c385 (Cormac). One claim verified, that the rendered text is unchanged: the deleted helpers were |
|
Independent review at b31c385 (adversarial reviewer agent, for Fable's queue): CHANGES REQUESTED (small). Verified: the rendered text is identical at every migrated site, and every deleted helper had its callers migrated.
Blocking: the body claims "All production and test sites ... now call shown_form", but at least two production uuid renderings were missed. The predicate cannot see either one, because each binds the string first and slices it on the next line:
Fix: migrate these to
so the claim and the ratchet agree. Non-blocking notes:
|
…rteen times) Measured 2026-10-24 (PR #5389's run): in each per-crate job the shared setup (system packages + restoring the multi-GB target cache + settling mtimes) took 109-227 s and the tests 33-35 s (kernel 218 s setup / 33 s tests, memory 227 s / 35 s); across ~60 recent PR runs the crate jobs were ~500 of 717 runner-minutes. The same setup ran up to 13 times per PR. Now: `core` runs continuum-core's lib tests (its fixtures, the warning ratchet, the core lib binary) as before; `rest` sets up once and runs every other selected crate in turn with its own fixtures (engine's native custody interop, genome's training script, mind's compile-fail doc guards). Selection is unchanged (the Cargo.toml graph). Expected: wall time about the same (core is the long pole either way), runner-minutes per full PR ~50 -> ~15. Before/after is measured on this PR's own run. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…rce, a roster test) go through shown_form; the ratchet also counts the two-line form Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…rce, a roster test) go through shown_form; the ratchet also counts the two-line form Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
805a147 to
177cb76
Compare
|
Rebased onto canary (os_branches and shown_ids ratchets now sit side by side). Local receipt (M5 macOS, 2026-10-24):
|
|
Cormac: the red at 177cb76 is my #5399 colliding with this PR, not a defect in it.
The fix, in both places ( card = %airc_core::shown_id::shown_form(card_id.as_uuid()),in place of @fable: want me to push it onto |
…rs render through shown_form Canary's #5399 (Cormac) added two short8 probe fields at work_board/advance.rs (close_awaits_merge, already_merged) after this branch removed short8; the merge compiled red with E0425. They now go through airc_core::shown_id::shown_form like every other id in the file. The merge was otherwise clean. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…own-id owner Joel, 2026-10-24: "Need to develop more common patterns and types so you're not able to make all these mismatches. We literally made a shortuuid | uuid for reuse everywhere." airc_core::shown_id is that type (Shown<T> to parse an id as a surface shows it, shown_form to render it); the core used it zero times and grew 62 hand-rolled 8-char renderings in 43 files and 16 private helpers (measured on canary 2026-10-24). This ratchet counts them and may only fall; the migration onto shown_form / .shown() and Shown<T> follows, and continuum_base::id_resolve (a second parser) goes with it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ts); 5 non-id lines remain Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…rce, a roster test) go through shown_form; the ratchet also counts the two-line form Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
The rebase onto canary keeps the PR's claim true on today's tree: - (in the rebased main commit) roster_slot::provisional_sender_name, canary's one provisional-label owner, renders via shown_form - shell_session: the execution id is kept as its Uuid and logged via shown_form - voice play_handle: the parsed Handle renders via Handle::short() (shown_form) - voice synthesize_handle: the duplicate "Stored handle" log is deleted; AudioBufferPool::store already logs the same fields via handle.short() - wall_source test: the expected ledger id renders via shown_form Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
b906059 to
6f95047
Compare
|
Rebased onto Conflicts resolved (kept canary's code, then applied the PR's one idea to it):
New sites migrated (sweep of the whole merged tree; commit "Short ids added since #5389 opened..."):
Skipped (not an id rendering, or not a Uuid):
Follow-up found, not migrated: a separate pattern, Ratchets ( |
…writes_outside_a_class) to their owners' sweeps; the migration stays everywhere else Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
At da0b2ee: the 20 files that carry other budget debt (29 self_sized + 2 writes_outside_a_class, none of them id renderings) are left at canary's version for their owners' sweeps, rather than waived or fixed blind. Every ratchet passes; |
…: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
* Delete the dead card pull: nothing claims cards for a mind 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 * Review on #5387: no doc or comment still names the deleted pull or claimable_by Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * delete-dead-pull on today's canary: short8 renders through airc_core::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 * self_sized: the turbofish watch::channel::<T>(init) is not a capacity either (Cormac on #5387) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
|
Its rule |
|
PR sweep (Claude, 2026-11-14): left open. Conflicts with canary in 12 files (academy eval/cognition_eval.rs, core ipc/start_server/airc_boot.rs, training_credit/staging.rs, mind service_loop/tests/mod.rs, work_board/submissions.rs, ...), base 2026-10-31. Its hand_rolled_short_ids ratchet must also move to the current |
Why
Joel, 2026-10-24: "Need to develop more common patterns and types so you're not able to make all these mismatches. We literally made a shortuuid | uuid for reuse everywhere." It exists:
airc_core::shown_id(shown_form,Shown<T>, typed ids'.shown()). The core hand-rolled the 8-char rendering in ~62 places and ~16 private helpers, each free to differ.Ratchet
source-hygiene::hand_rolled_short_ids(core/source-hygiene/src/shown_ids.rs) countsto_string()[..8],chars().take(8),[..SHORT_ID_LEN]and private helpers (short8,short_id,id8,short_uuid,let short = |). It may only fall.Migrated
All production and test sites in continuum-core, -mind, -cognition, -live, -experience, -kernel now call
airc_core::shown_id::shown_form(uuid)(same text: 8 lowercase hex of the first chars). No behaviour change intended.Helpers deleted:
card_facts::short8,card_holder::short8(and all callers across work/, work_board/),awareness::short8,perception_region::short8, closures in verdict_board, polled, room_event, staging.Also migrated one unflagged
truncate_str(&session_id.to_string(), 8)in live orchestrator.False positives / left
let short = |p| ...: renders the LAST 8 hex chars on purpose (documented).take(9)of a build sha, not an id.targetis an arbitrary string, not necessarily a uuid.Next slice
Verb parsing onto
Shown<T>(replacingcontinuum_base::id_resolve).🤖 Generated with Claude Code