Repository navigation
swift-logic table: rows for 38 false counts since 2b3d7cd2a848 (36 PLATFORM, 2 MIXED) - #34217
Conversation
The per-declaration diff of swift_logic_lines between 2b3d7cd and a25b4d9 (both counted with the tip's table) found 38 declarations that the default rule counts in full but that hold no product state and no product rule: DEV and NIGHTLY Debug playgrounds (Sidebar States, All Themes), a #if DEBUG playground (Chief Teleport), the #if DEBUG || CMUX_BENCH_HOOKS frame strip recorder, AppKit and Core Animation views and menus, favicon image drawing, the NetworkExtension wrapper of the Cloud Tunnel, and the theme contrast audit that only the playground and a test read. Each row says why. Data only. swift_logic_lines at bc91cc5: 434,349 -> 432,245 (-2,104); mirror_lines 71,741 (no change). Rows invalid 0, rows missing 11 (as before). scripts/cmux-next/tests/test_swift_logic_lines.py: 16 tests OK.
Bugbot needs on-demand usage enabledBugbot uses usage-based billing for this team and requires on-demand usage to be enabled. A team admin can enable on-demand usage in the Cursor dashboard. |
|
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)
Shipped in:
|
|
Review (claude-review-34217): FIX at 83e1ea0 36 of the 38 rows are correct. Two favicon rows hide the Release favicon rule, which also copies the shared contrast rule by hand. Blocking:
|
…IX on #34217) Review comment 6614795877 at 83e1ea0: sidebar.faviconStyle is a Debug tunable, but Release and RC always draw its default .adaptive, so SidebarFaviconStyle.treatment and SidebarFaviconInk's monochrome test are the Release favicon rule, and SidebarFaviconInk hand-copies the WCAG luminance and contrast rule (Rust cmux-theme-tokens rgb.rs, Swift ThemeRGB; this copy uses 0.03928, the owners 0.04045). SidebarFaviconInk becomes MIXED 85/0 (only the CoreGraphics bitmap read is platform), SidebarFaviconStyle MIXED 40/0 (the rule, its constants and .adaptive are logic; the other cases, titles and the tunable descriptor are Debug tooling). The three drawing rows stay PLATFORM with reasons that say this is the Release drawing path. swift_logic_lines at bc91cc5: 434,349 -> 432,321 (-2,028); mirror_lines 71,741 (no change); rows invalid 0, missing 11.
|
Review (claude-review-34217): SHIP at 697418f The repair fixes my FIX at 83e1ea0 (comment 6614795877). Delta (
|
|
Found 2 test failures on Blacksmith runners: Failures
|
|
Non-green checks on head 697418f, classified (this PR changes only plans/cmux-next/swift-logic-classes.tsv):
No check is red because of this PR. |
|
Two more non-green checks on head 697418f, classified:
|
![Fix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/fix-with-codesmith-light-3x.png)
Summary
The tip watcher's
swift_logic_linesrow is red (green reference 415,218 at 25c69ee; it stays the reference). After #33986 fixed the false counts up to 2b3d7cd, the count rose again. Both ends counted with the tip's table: 428,194 at 2b3d7cd and 434,349 at a25b4d9 (+6,155 of code; the lead's +2,563 is the net after #33986's -3,592).A per-declaration diff of that range finds 38 declarations that the default rule counts in full (no row). 36 hold no product state and no product rule and get a PLATFORM row with a reason; the review found that 2 of them hold the Release favicon rule, so they get MIXED rows (below):
isDebugOnlyactions in SettingsActionCatalog): Sidebar States Playground (12 declarations and its strings, bd6f7a5) and All Themes Playground (4, c0230ef).#if DEBUG: ChiefTeleportPlayground (894d34f).#if DEBUG || CMUX_BENCH_HOOKS: the four frame-strip recording types of WindowFrame+ScreenCaptureKit.swift (chat-open click frames: ScreenCaptureKit when the step has no Screen Recording grant, so the chat page is in them #34118)..adaptivedefault is the Release rule, and SidebarFaviconInk hand-copies the WCAG luminance and contrast rule of cmux-theme-tokens and ThemeRGB; this copy uses 0.03928, the owners 0.04045); the bitmap cache and the two drawing values stay PLATFORM.Every real rise stays counted, for example CloudTunnelController, GitHubAppLease, CloudStartRuns, CloudCodexBroker, ImportHistoryPageProvider, ChiefTeleportRunner, MemoryImportFlow and the Swift wg-quick parser (CloudTunnelConfiguration, CloudTunnelCIDR). REWRITE R-SWIFT-MIRRORS names the wave and the target date that move each one to Rust (its DESIGN.md section 11 and STATUS).
Testing
python3 -I scripts/cmux-next/swift-logic-lines.py --rev a25b4d999200 --json, with the base table and then with--tableof this PR: swift_logic_lines 434,349 -> 432,321 (-2,028); mirror_lines 71,741 (no change).table_rows_invalid0;table_rows_missing11 (the same 11 as the base).python3 -I scripts/cmux-next/tests/test_swift_logic_lines.py: 16 tests OK.prepush-gate.py: no new violations.Observed / Not run
Changelog
none
Proof
No capture: a data file for a report script, no app change.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.