Repository navigation
fix(hang)!: without_ext keeps every non-ext field; drop dead hang/moq-mux Error variants - #9361
Conversation
Quest-Claim: 9fed62b39cac1168
…riants and url dep Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 7 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
There was a problem hiding this comment.
✅ No new issues found.
Approach: sound — destructuring self without .. makes a new Catalog field a compile error in without_ext, and the dead variants and the url dependency are removed together.
Reviewed changes
Read the full diff and grepped for remaining users of the removed items.
Catalog::without_ext— now carriesjson,binary,stats,echo,includeandskipped, and clears onlyext. The new test fills every field and asserts equality.hang::Error— dropsHex,MissingKeyframe,TimestampBackwards,Url,EmptyGroupandUnknownFormat, plus theFrom<hex::FromHexError>andFrom<url::ParseError>impls. Nothing inrs/constructs or matches them;moq_mux::Error::MissingKeyframeis a separate type and is unaffected.moq_mux::Error::Url— removed along with itsFromimpl.libmoqhas its ownError::Urland is unaffected.- Dependencies — the
urldependency is dropped fromhangandmoq-mux.hangkeepsurlas a dev-dependency for its examples, andhexstays becausecatalog/hex.rsuses it. - Lockfiles and quest docs — generated files and quest bookkeeping only.
claude-sonnet-5-5 | 𝕏

Finishes
quest/m2/hang-without-ext-and-errors(deleted, with its link inquest/m2/README.md).Summary
hang::Catalog::without_extdestructuresselfwith no.., so it now keepsjson,binary,stats,echo,include, andskipped(it used to reset them to default), and a newCatalogfield fails to compile until handled.hang::Errorvariants (Hex,MissingKeyframe,TimestampBackwards,Url,EmptyGroup,UnknownFormat), theirFrom<hex::FromHexError>andFrom<url::ParseError>impls, andmoq_mux::Error::Urlwith itsFromimpl.urldependency frommoq-muxand the normalurldependency fromhang. Regeneratednix/Cargo.nix,Cargo.lock, anddemo/carla/bridge/Cargo.lock.without_ext_keeps_every_other_fieldfills everyCatalogfield and asserts onlyextis cleared.Impact
Public API, breaking (the
!title is set when the PR is marked ready):hang::Errorloses 6 variants,moq_mux::ErrorlosesUrl, andCatalog::without_extnow preserves the non-extfields it used to drop. Wire: none.moq-mux'sError::UnknownFormatstays, since other code constructs it (onlyhang's was dead).Migration: stop matching the removed variants (none was ever returned); callers of
without_extthat relied onjson/binary/stats/echo/includebeing cleared must clear them themselves. The release cut writes this intoMIGRATE.md.Choices for review
hang'surldev-dependency:rs/hang/examples/{subscribe,video}.rsuseurl::Url. The quest named both lines 33 and 47 ofrs/hang/Cargo.toml; only the normal dependency (33) was dead.rs/hang/MIGRATE.mdorrs/moq-mux/MIGRATE.md: AGENTS.md has the release cut write them from this section.without_extalso carriesskipped(a decoder-filled field), so the copy is lossless apart fromext.without_extand these errors are Rust-only.Overlap with #9347
#9347 edits
rs/hang/src/catalog/root.rs(the reserved extension names,serialize_ext) and addsfmp4::Error::InvalidAudioConfiginmoq-mux. Different hunks: this PR toucheswithout_ext,rs/hang/src/error.rs, andrs/moq-mux/src/error.rsvariantsUrl; I did not redo any of its work. Both changeCargo.lockandnix/Cargo.nix, so whichever lands second needs a trivial merge of those two files.Validation
quest gate just checkpasses (fmt, clippy, nextest across the workspace, cargo-nix, quest check). One earlier run timed outmoq-mux container::ts::export_test::a_rendition_moved_to_another_aac_configuration_failsunder load; it passes alone and incargo nextest run -p moq-mux -p hang(2330 passed), and my change cannot touch it.cargo check --workspace --all-targetsis warning-free.Follow-ups
None.
Models
Size: XS
Implementer: Claude, claude-sonnet-5-5, unknown effort (arm A)
(Written by Claude Sonnet 5.5)
Review
Rewritten by
quest reviewafter each round.Head: 00731ab
Base: origin/main at d80a46c
Risk: high,
Removing public hang and moq-mux Error variants and From conversions can break downstream Rust consumers at compile time; reverting restores the API, but consumers may need a corrective release.Classified: high by Codex, gpt-6.1-sol, low effort, session
01a20221-6810-76d3-a91d-b29e32b17d43Reviewer: Codex, gpt-6.1-sol, medium effort
Session:
01a20221-7b5a-7c93-a542-aac06706ded3, round 1Score: 9/10,
The focused cleanup preserves non-extension catalog fields and includes a regression test with no identified behavioral regression, though tests were not run as instructed.Rounds: 1; first round 0; findings 0: fixed 0, refuted 0, open 0
Findings: none