Repository navigation
fix(acpmux): opaque agent id prefix with get, not a string slice (panic-ratchet red since #33209) - #33717
Merged
Conversation
…ing slice (panic-ratchet red since #33209) #33209 (85ba3b5) added `&hex[..HEX_LEN]` in opaque_agent_id.rs. The panic ratchet denies clippy::string_slice, and acpmux went from 94 to 95 hits, so the feat tip panic-ratchet is red since 92bf57a. The hex is always 64 ASCII digits; `hex.get(..HEX_LEN)` returns the same 20 digits with no panic path. The module's existing tests check the id length and value.
Contributor
|
cmux status (one comment, edited in place; each line is updated by the job that owns it) Review App of this head (app.zip, kept 1 day)
red: cmux-next checks (god files, concurrency, crash safety, l10n); no finished base run on 0e4aafa to compare; do not merge until green; see lane-rules Shipped in:
|
|
Found 1 test failure on Blacksmith runners: Failure
|
lawrencecchen
temporarily deployed
to
artifacts
November 3, 2026 11:42 — with
GitHub Actions
Inactive
lawrencecchen
temporarily deployed
to
sentry-dsyms
November 3, 2026 11:42 — with
GitHub Actions
Inactive
lawrencecchen
temporarily deployed
to
artifacts
November 3, 2026 11:45 — with
GitHub Actions
Inactive
Contributor
Author
|
Review (independent-subagent): SHIP at d51850b
|
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
![Fix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/fix-with-codesmith-light-3x.png)
Base red, priority zero. The feat tip
panic-ratchetis red since 92bf57a:The cause is #33209 (85ba3b5):
format!("{PREFIX}{}", &hex[..HEX_LEN])incmux-tui/crates/acpmux/src/opaque_agent_id.rs. The ratchet deniesstring_slice. The hex is always 64 ASCII digits, sohex.get(..HEX_LEN).unwrap_or(&hex)gives the same 20 digits and has no panic path. The id does not change.Owner of acpmux (PL-acpmux): this is a one-line change with no behavior change.
Changelog
none
Observed / Not run
python3 scripts/cmux-next/prepush-gate.py: no new violations. In the 29 commits since the last green, the only added string slice in acpmux is this line.panic-ratchetand Rust test checks run them.