Public report of unslothai/unsloth, published 25 October 2026. It has the same score, grades and number of
findings as the full report. The details of security findings (where they are in the code, which known
vulnerabilities and which passwords or keys were found) are left out, so nobody can use them against the project.
Public
Executive reportMeasured under the Code Assurance Index, an open standard. This copy doesn't carry the survey's signed record. How a survey is checked →
unslothai/unsloth
Measured 25 October 2026, 05:28 UTC, at code version ba5c3b2
Code coverage is not measured: JavaScript/TypeScript suite (CouldNotMeasureTestRunFailed).
CAI scoreAdequate
CriticalWeakAdequateStrongExemplary
The score is built from these lenses. Each lens grades one area of the code, such as how easy it is to change or how well it is protected. The weakest lens counts most, so one weak area pulls the score down instead of being averaged away.
A very large codebase: 1,465,212 lines of product code in 7 projects, tests not counted · Estimated rebuild effort: about 21.1 person-years · Weakest lens: Architecture, 37
Findings by how serious they are
234 critical637 serious233 minor
18 dimensions are left out of the score. For each one, Watchdog either couldn't measure it in this code, or found no evidence of the safeguard it looks for, such as a tested backup restore. They count neither for nor against the score, and Limitations lists each one with its reason.
This survey was produced by
Watchdog
Producer
Canine Development
Analyzer
Watchdog engine 1.0.0
Measured
25 October 2026, 05:28 UTC
A measurement, not a certificate. The Code Assurance Index records a number
together with the evidence it was worked out from, so anyone can recalculate it, but it doesn't certify or guarantee
the code. The standard was written by Canine Development, which also builds Watchdog. It is open to any tool that
implements it, and today Watchdog is the only one that does.
The score is deterministic, which means the same code always gets the same score. Watchdog works it out with tools that follow published rules, and an AI model never decides it, so anyone who applies the same rules to the same code gets the same number. How it is done is explained under Methodology ▸
80of 83 dimensions measured by tools. The other 3 are advisory notes from an AI model, which explain the code but don't count towards the score.
1079of 1104 findings point to an exact file and line, so you can open each one in the code. The other 25 concern the repository as a whole, such as missing documentation.
83dimensions across 8 lenses, read from 1,465,212 lines of product code in 7 projects.
unslothai/unsloth scores 46 out of 100 and is rated Adequate, while seven of its eight lenses score higher still: Event Sourcing at 100, rated Exemplary, Security and Compliance at 80, Maturity at 62, Code Health at 60, Accessibility at 56 and Production Readiness at 47, all rated Adequate, and Performance at 70, rated Strong. The project hasn't declared a stable release yet, so its lenses are rated against a lower bar than a released product's, while the score itself is worked out as for any repository.
The score is lower than those seven because the weakest lens counts most, and here that is Architecture, which scores 37 and is rated Weak. Its Import Boundaries dimension scores 0 out of 10, and until that reaches 4, Architecture can't be rated higher than Adequate. The first actions are to resolve the 4 Leaked secret finding(s) in REDACTED Scanning and to fix the listed violations: respect the layer/slice order — import only through a slice's public index and never upward into a higher layer (918 rows); import through the target package's declared public entry rather than a deep path into its internals or a relative path into its directory (1 row), and if Architecture rose to 70, the score would rise from 46 to about 54.
234 findings are critical: 162 in Static Analysis (SAST), 29 in Forms & labels, 11 in Keyboard semantics, ten in Dependency Hygiene, six in IaC & Container Security, four in Circular Imports, four in Dependency Vulnerabilities, four in REDACTED Scanning, three in Secrets (history) and one in ARIA correctness.
Watchdog couldn't measure 17 dimensions in this code, among them Cyclomatic Complexity, Cognitive Complexity and Test Reliability, so they are left out of the score. The product code is 1,465,212 lines, which would take an estimated 21.1 person-years, around €3,100,000, to rebuild.
A lens is capped at Adequate while one of its dimensions scores below 4 out of 10, however well the rest of the lens does. That way a serious problem in one place always shows in the lens's rating.
How the score is built: what each lens counts forThe lenses don't count equally. The weakest lens counts most, the next weakest a little less, and so on, so a weak area pulls the score down instead of being averaged away. In the bar below, each part's width shows how much that lens counts and its colour shows its rating. Improving the widest part moves the score most, and as that lens improves, it counts for less, because another lens becomes the weakest.
If Architecture rose from 37 to 70, the lowest score rated Strong, the score would rise from 46 to about 54.
Code composition: what the lines of code are
Product code 47%Tests 53%
Rebuild cost: about €3,100,000 · Estimate
Cost to rebuild
€1,000,000 to €5,100,000, for 16,997 to 53,922 hours of work, about 21.1 person-years for 12 to 40 engineers
Difficulty of the problem
Standard, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write.
Quality factor
×0.7 at a score of 46. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it.
Size
Very large: 1,465,212 lines of product code
How the estimate is made: Watchdog prices the hours a team would need to write this code again, at €60 to €95 an hour. Declarations and boilerplate are priced at a fast rate and logic at a slower one, and the logic is then multiplied by the difficulty of the problem and by the quality factor. The estimate can be about 30% off either way, and it moves most with the hourly rate and the difficulty. For this code, every line is priced as straight logic, which keeps the estimate on the low side.
Top priorities
The three actions that raise the score most for the work they take. The full ranked list is in the Roadmap.
1
Resolve the 4 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED, REDACTED, REDACTED.
Fix the listed violations: respect the layer/slice order — import only through a slice's public index and never upward into a higher layer (918 rows); import through the target package's declared public entry rather than a deep path into its internals or a relative path into its directory (1 row).
Raises the score by about 6 points · Medium effort · Import Boundaries
3
Break each cycle by extracting the shared piece into a module both sides can import.
Raises the score by about 6 points · Medium effort · Circular Imports
Diagnosis: what the measurements show together
Each conclusion below combines several dimensions into one point that no single dimension shows, and lists the measurements it rests on.
Where the investment is most exposed · Value at risk
This code would cost about €3,100,000 to build again, about 21.1 person-years of work. Its weakest lens is Architecture, at 37 (Weak). Architecture is about whether the structure holds up as the product grows, and when the structure is weak, a change in one place ripples into many others. Because the weakest lens counts most in the score, work on Architecture also moves the score most.
Based on: the rebuild estimate · the Architecture grade · how much each lens counts
What to do: Start with the Architecture actions in Top priorities.
If you do one thing first · First action
Resolve the 4 Leaked secret finding(s) in REDACTED Scanning. Of all the actions in this report, it raises the score most for the work it takes: about 4 points for low effort, because it clears the 4 REDACTED Scanning findings. The next survey will show the change in the score.
Based on: the ranked actions in Top priorities, by score gain and effort
Architecture: which parts of the code depend on which
The code is divided into modules, groups of code that each handle one part of the product, and a module depends on another when it uses code from it. The table lists the modules both down the side and across the top, in an order where each module should only use modules listed above it. A number in a cell means the module on that row uses the module in that column, and it counts the pairs of building blocks (types) that connect them. The one thing to look for is a mark above the diagonal line. It means two or more modules use each other in a loop (a dependency cycle), so none of them can be changed, tested or released on its own.
1098 modules, with 952 dependencies between them. 2 loops run through 4 of the modules, marked above the diagonal.
The table shows the 40 modules with the most connections; 1058 more are left out to keep it readable.
Which modules use which. The module on each row uses the module in each column, and the number counts the pairs of types that connect them. A cell above the diagonal is part of a loop.
studio.frontend.src.components uses studio.frontend.src.features.audio.workflows, so a change to studio.frontend.src.features.audio.workflows can break studio.frontend.src.components, while a change to studio.frontend.src.components can't break studio.frontend.src.features.audio.workflows.
Position
Below the diagonal: studio.frontend.src.components uses a module listed above it, which is the healthy direction.
studio.frontend.src.components.assistant-ui uses studio.frontend.src.features.images.api, so a change to studio.frontend.src.features.images.api can break studio.frontend.src.components.assistant-ui, while a change to studio.frontend.src.components.assistant-ui can't break studio.frontend.src.features.images.api.
Position
Below the diagonal: studio.frontend.src.components.assistant-ui uses a module listed above it, which is the healthy direction.
studio.frontend.src.features.api-monitor uses studio.frontend.src.features.chat.types.api, so a change to studio.frontend.src.features.chat.types.api can break studio.frontend.src.features.api-monitor, while a change to studio.frontend.src.features.api-monitor can't break studio.frontend.src.features.chat.types.api.
Position
Below the diagonal: studio.frontend.src.features.api-monitor uses a module listed above it, which is the healthy direction.
studio.frontend.src.features.audio uses studio.frontend.src.features.audio.audio-page-policy, so a change to studio.frontend.src.features.audio.audio-page-policy can break studio.frontend.src.features.audio, while a change to studio.frontend.src.features.audio can't break studio.frontend.src.features.audio.audio-page-policy.
Position
Below the diagonal: studio.frontend.src.features.audio uses a module listed above it, which is the healthy direction.
studio.frontend.src.features.audio uses studio.frontend.src.features.audio.workflows, so a change to studio.frontend.src.features.audio.workflows can break studio.frontend.src.features.audio, while a change to studio.frontend.src.features.audio can't break studio.frontend.src.features.audio.workflows.
Position
Below the diagonal: studio.frontend.src.features.audio uses a module listed above it, which is the healthy direction.
studio.frontend.src.features.audio uses studio.frontend.src.features.chat.types.api, so a change to studio.frontend.src.features.chat.types.api can break studio.frontend.src.features.audio, while a change to studio.frontend.src.features.audio can't break studio.frontend.src.features.chat.types.api.
Position
Below the diagonal: studio.frontend.src.features.audio uses a module listed above it, which is the healthy direction.
1 pair of types, where a type in studio.frontend.src.features.audio uses a type in studio.frontend.src.features.model-picker.components.model-selector.types.
studio.frontend.src.features.audio uses studio.frontend.src.features.model-picker.components.model-selector.types, so a change to studio.frontend.src.features.model-picker.components.model-selector.types can break studio.frontend.src.features.audio, while a change to studio.frontend.src.features.audio can't break studio.frontend.src.features.model-picker.components.model-selector.types.
Position
Below the diagonal: studio.frontend.src.features.audio uses a module listed above it, which is the healthy direction.
studio.frontend.src.features.audio.hooks uses studio.frontend.src.features.audio.workflows, so a change to studio.frontend.src.features.audio.workflows can break studio.frontend.src.features.audio.hooks, while a change to studio.frontend.src.features.audio.hooks can't break studio.frontend.src.features.audio.workflows.
Position
Below the diagonal: studio.frontend.src.features.audio.hooks uses a module listed above it, which is the healthy direction.
1 pair of types, where a type in studio.frontend.src.features.audio.hooks uses a type in studio.frontend.src.features.model-picker.components.model-selector.types.
studio.frontend.src.features.audio.hooks uses studio.frontend.src.features.model-picker.components.model-selector.types, so a change to studio.frontend.src.features.model-picker.components.model-selector.types can break studio.frontend.src.features.audio.hooks, while a change to studio.frontend.src.features.audio.hooks can't break studio.frontend.src.features.model-picker.components.model-selector.types.
Position
Below the diagonal: studio.frontend.src.features.audio.hooks uses a module listed above it, which is the healthy direction.
studio.frontend.src.features.audio.tools uses studio.frontend.src.features.audio.audio-page-policy, so a change to studio.frontend.src.features.audio.audio-page-policy can break studio.frontend.src.features.audio.tools, while a change to studio.frontend.src.features.audio.tools can't break studio.frontend.src.features.audio.audio-page-policy.
Position
Below the diagonal: studio.frontend.src.features.audio.tools uses a module listed above it, which is the healthy direction.
studio.frontend.src.features.audio.tools uses studio.frontend.src.features.audio.workflows, so a change to studio.frontend.src.features.audio.workflows can break studio.frontend.src.features.audio.tools, while a change to studio.frontend.src.features.audio.tools can't break studio.frontend.src.features.audio.workflows.
Position
Below the diagonal: studio.frontend.src.features.audio.tools uses a module listed above it, which is the healthy direction.
studio.frontend.src.features.browser uses studio.frontend.src.features.chat.utils.openwebui-import, so a change to studio.frontend.src.features.chat.utils.openwebui-import can break studio.frontend.src.features.browser, while a change to studio.frontend.src.features.browser can't break studio.frontend.src.features.chat.utils.openwebui-import.
Position
Below the diagonal: studio.frontend.src.features.browser uses a module listed above it, which is the healthy direction.
studio.frontend.src.features.chat uses studio.frontend.src.features.chat.types.research, so a change to studio.frontend.src.features.chat.types.research can break studio.frontend.src.features.chat, while a change to studio.frontend.src.features.chat can't break studio.frontend.src.features.chat.types.research.
Position
Below the diagonal: studio.frontend.src.features.chat uses a module listed above it, which is the healthy direction.
studio.frontend.src.features.chat uses studio.frontend.src.features.chat.utils.openwebui-import, so a change to studio.frontend.src.features.chat.utils.openwebui-import can break studio.frontend.src.features.chat, while a change to studio.frontend.src.features.chat can't break studio.frontend.src.features.chat.utils.openwebui-import.
Position
Below the diagonal: studio.frontend.src.features.chat uses a module listed above it, which is the healthy direction.
1 pair of types, where a type in studio.frontend.src.features.chat uses a type in studio.frontend.src.features.model-picker.components.model-selector.types.
studio.frontend.src.features.chat uses studio.frontend.src.features.model-picker.components.model-selector.types, so a change to studio.frontend.src.features.model-picker.components.model-selector.types can break studio.frontend.src.features.chat, while a change to studio.frontend.src.features.chat can't break studio.frontend.src.features.model-picker.components.model-selector.types.
Position
Below the diagonal: studio.frontend.src.features.chat uses a module listed above it, which is the healthy direction.
studio.frontend.src.features.chat.api uses studio.frontend.src.features.chat.api.chat-api, so a change to studio.frontend.src.features.chat.api.chat-api can break studio.frontend.src.features.chat.api, while a change to studio.frontend.src.features.chat.api can't break studio.frontend.src.features.chat.api.chat-api.
Position
Below the diagonal: studio.frontend.src.features.chat.api uses a module listed above it, which is the healthy direction.
studio.frontend.src.features.chat.api uses studio.frontend.src.features.chat.types.api, so a change to studio.frontend.src.features.chat.types.api can break studio.frontend.src.features.chat.api, while a change to studio.frontend.src.features.chat.api can't break studio.frontend.src.features.chat.types.api.
Position
Below the diagonal: studio.frontend.src.features.chat.api uses a module listed above it, which is the healthy direction.
studio.frontend.src.features.chat.api uses studio.frontend.src.features.chat.types.research, so a change to studio.frontend.src.features.chat.types.research can break studio.frontend.src.features.chat.api, while a change to studio.frontend.src.features.chat.api can't break studio.frontend.src.features.chat.types.research.
Position
Below the diagonal: studio.frontend.src.features.chat.api uses a module listed above it, which is the healthy direction.
studio.frontend.src.features.chat.components uses studio.frontend.src.features.chat.types.research, so a change to studio.frontend.src.features.chat.types.research can break studio.frontend.src.features.chat.components, while a change to studio.frontend.src.features.chat.components can't break studio.frontend.src.features.chat.types.research.
Position
Below the diagonal: studio.frontend.src.features.chat.components uses a module listed above it, which is the healthy direction.
studio.frontend.src.features.chat.hooks uses studio.frontend.src.features.chat.api.chat-api, so a change to studio.frontend.src.features.chat.api.chat-api can break studio.frontend.src.features.chat.hooks, while a change to studio.frontend.src.features.chat.hooks can't break studio.frontend.src.features.chat.api.chat-api.
Position
Below the diagonal: studio.frontend.src.features.chat.hooks uses a module listed above it, which is the healthy direction.
studio.frontend.src.features.chat.lib uses studio.frontend.src.features.chat.types.api, so a change to studio.frontend.src.features.chat.types.api can break studio.frontend.src.features.chat.lib, while a change to studio.frontend.src.features.chat.lib can't break studio.frontend.src.features.chat.types.api.
Position
Below the diagonal: studio.frontend.src.features.chat.lib uses a module listed above it, which is the healthy direction.
studio.frontend.src.features.chat.stores uses studio.frontend.src.features.chat.types.research, so a change to studio.frontend.src.features.chat.types.research can break studio.frontend.src.features.chat.stores, while a change to studio.frontend.src.features.chat.stores can't break studio.frontend.src.features.chat.types.research.
Position
Below the diagonal: studio.frontend.src.features.chat.stores uses a module listed above it, which is the healthy direction.
studio.frontend.src.features.chat.utils uses studio.frontend.src.features.chat.types.api, so a change to studio.frontend.src.features.chat.types.api can break studio.frontend.src.features.chat.utils, while a change to studio.frontend.src.features.chat.utils can't break studio.frontend.src.features.chat.types.api.
Position
Below the diagonal: studio.frontend.src.features.chat.utils uses a module listed above it, which is the healthy direction.
studio.frontend.src.features.chat.utils uses studio.frontend.src.features.chat.types.research, so a change to studio.frontend.src.features.chat.types.research can break studio.frontend.src.features.chat.utils, while a change to studio.frontend.src.features.chat.utils can't break studio.frontend.src.features.chat.types.research.
Position
Below the diagonal: studio.frontend.src.features.chat.utils uses a module listed above it, which is the healthy direction.
studio.frontend.src.features.chat.utils uses studio.frontend.src.features.chat.utils.openwebui-import, so a change to studio.frontend.src.features.chat.utils.openwebui-import can break studio.frontend.src.features.chat.utils, while a change to studio.frontend.src.features.chat.utils can't break studio.frontend.src.features.chat.utils.openwebui-import.
Position
Below the diagonal: studio.frontend.src.features.chat.utils uses a module listed above it, which is the healthy direction.
studio.frontend.src.features.hub.download-manager uses studio.frontend.src.features.chat.api.chat-api, so a change to studio.frontend.src.features.chat.api.chat-api can break studio.frontend.src.features.hub.download-manager, while a change to studio.frontend.src.features.hub.download-manager can't break studio.frontend.src.features.chat.api.chat-api.
Position
Below the diagonal: studio.frontend.src.features.hub.download-manager uses a module listed above it, which is the healthy direction.
studio.frontend.src.features.hub.download-manager uses studio.frontend.src.features.hub.inventory.types, so a change to studio.frontend.src.features.hub.inventory.types can break studio.frontend.src.features.hub.download-manager, while a change to studio.frontend.src.features.hub.download-manager can't break studio.frontend.src.features.hub.inventory.types.
Position
Below the diagonal: studio.frontend.src.features.hub.download-manager uses a module listed above it, which is the healthy direction.
studio.frontend.src.features.hub.hooks uses studio.frontend.src.features.chat.types.api, so a change to studio.frontend.src.features.chat.types.api can break studio.frontend.src.features.hub.hooks, while a change to studio.frontend.src.features.hub.hooks can't break studio.frontend.src.features.chat.types.api.
Position
Below the diagonal: studio.frontend.src.features.hub.hooks uses a module listed above it, which is the healthy direction.
studio.frontend.src.features.hub.hooks uses studio.frontend.src.features.hub.inventory.types, so a change to studio.frontend.src.features.hub.inventory.types can break studio.frontend.src.features.hub.hooks, while a change to studio.frontend.src.features.hub.hooks can't break studio.frontend.src.features.hub.inventory.types.
Position
Below the diagonal: studio.frontend.src.features.hub.hooks uses a module listed above it, which is the healthy direction.
studio.frontend.src.features.hub.inventory uses studio.frontend.src.features.chat.api.chat-api, so a change to studio.frontend.src.features.chat.api.chat-api can break studio.frontend.src.features.hub.inventory, while a change to studio.frontend.src.features.hub.inventory can't break studio.frontend.src.features.chat.api.chat-api.
Position
Below the diagonal: studio.frontend.src.features.hub.inventory uses a module listed above it, which is the healthy direction.
studio.frontend.src.features.hub.inventory uses studio.frontend.src.features.chat.types.api, so a change to studio.frontend.src.features.chat.types.api can break studio.frontend.src.features.hub.inventory, while a change to studio.frontend.src.features.hub.inventory can't break studio.frontend.src.features.chat.types.api.
Position
Below the diagonal: studio.frontend.src.features.hub.inventory uses a module listed above it, which is the healthy direction.
studio.frontend.src.features.hub.inventory uses studio.frontend.src.features.hub.inventory.types, so a change to studio.frontend.src.features.hub.inventory.types can break studio.frontend.src.features.hub.inventory, while a change to studio.frontend.src.features.hub.inventory can't break studio.frontend.src.features.hub.inventory.types.
Position
Below the diagonal: studio.frontend.src.features.hub.inventory uses a module listed above it, which is the healthy direction.
studio.frontend.src.features.hub.lib uses studio.frontend.src.features.chat.types.api, so a change to studio.frontend.src.features.chat.types.api can break studio.frontend.src.features.hub.lib, while a change to studio.frontend.src.features.hub.lib can't break studio.frontend.src.features.chat.types.api.
Position
Below the diagonal: studio.frontend.src.features.hub.lib uses a module listed above it, which is the healthy direction.
studio.frontend.src.features.hub.lib uses studio.frontend.src.features.hub.inventory.types, so a change to studio.frontend.src.features.hub.inventory.types can break studio.frontend.src.features.hub.lib, while a change to studio.frontend.src.features.hub.lib can't break studio.frontend.src.features.hub.inventory.types.
Position
Below the diagonal: studio.frontend.src.features.hub.lib uses a module listed above it, which is the healthy direction.
26 pairs of types, where a type in studio.frontend.src.features.images uses a type in studio.frontend.src.features.images.api. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
studio.frontend.src.features.images uses studio.frontend.src.features.images.api, so a change to studio.frontend.src.features.images.api can break studio.frontend.src.features.images, while a change to studio.frontend.src.features.images can't break studio.frontend.src.features.images.api.
Position
Below the diagonal: studio.frontend.src.features.images uses a module listed above it, which is the healthy direction.
1 pair of types, where a type in studio.frontend.src.features.model-picker.components.model-selector uses a type in studio.frontend.src.features.chat.api.chat-api.
studio.frontend.src.features.model-picker.components.model-selector uses studio.frontend.src.features.chat.api.chat-api, so a change to studio.frontend.src.features.chat.api.chat-api can break studio.frontend.src.features.model-picker.components.model-selector, while a change to studio.frontend.src.features.model-picker.components.model-selector can't break studio.frontend.src.features.chat.api.chat-api.
Position
Below the diagonal: studio.frontend.src.features.model-picker.components.model-selector uses a module listed above it, which is the healthy direction.
1 pair of types, where a type in studio.frontend.src.features.model-picker.components.model-selector uses a type in studio.frontend.src.features.chat.types.api.
studio.frontend.src.features.model-picker.components.model-selector uses studio.frontend.src.features.chat.types.api, so a change to studio.frontend.src.features.chat.types.api can break studio.frontend.src.features.model-picker.components.model-selector, while a change to studio.frontend.src.features.model-picker.components.model-selector can't break studio.frontend.src.features.chat.types.api.
Position
Below the diagonal: studio.frontend.src.features.model-picker.components.model-selector uses a module listed above it, which is the healthy direction.
5 pairs of types, where a type in studio.frontend.src.features.model-picker.components.model-selector uses a type in studio.frontend.src.features.model-picker.components.model-selector.types.
studio.frontend.src.features.model-picker.components.model-selector uses studio.frontend.src.features.model-picker.components.model-selector.types, so a change to studio.frontend.src.features.model-picker.components.model-selector.types can break studio.frontend.src.features.model-picker.components.model-selector, while a change to studio.frontend.src.features.model-picker.components.model-selector can't break studio.frontend.src.features.model-picker.components.model-selector.types.
Position
Below the diagonal: studio.frontend.src.features.model-picker.components.model-selector uses a module listed above it, which is the healthy direction.
studio.frontend.src.features.settings.components uses studio.frontend.src.features.chat.api.chat-api, so a change to studio.frontend.src.features.chat.api.chat-api can break studio.frontend.src.features.settings.components, while a change to studio.frontend.src.features.settings.components can't break studio.frontend.src.features.chat.api.chat-api.
Position
Below the diagonal: studio.frontend.src.features.settings.components uses a module listed above it, which is the healthy direction.
studio.frontend.src.features.training.lib uses studio.frontend.src.features.hub.inventory.types, so a change to studio.frontend.src.features.hub.inventory.types can break studio.frontend.src.features.training.lib, while a change to studio.frontend.src.features.training.lib can't break studio.frontend.src.features.hub.inventory.types.
Position
Below the diagonal: studio.frontend.src.features.training.lib uses a module listed above it, which is the healthy direction.
studio.frontend.src.lib uses studio.frontend.src.features.chat.utils.openwebui-import, so a change to studio.frontend.src.features.chat.utils.openwebui-import can break studio.frontend.src.lib, while a change to studio.frontend.src.lib can't break studio.frontend.src.features.chat.utils.openwebui-import.
Position
Below the diagonal: studio.frontend.src.lib uses a module listed above it, which is the healthy direction.
Findings mapped to OWASP categories; the specific CVEs/secrets are in the Security dimension cards below and findings.md (redacted only on the public version of this report).
OWASP category
Findings
Severity
A05:2025 — Injection
284
High / Critical
A02:2025 — Security Misconfiguration
29
High / Critical
A03:2025 — Software Supply Chain Failures
20
High / Critical
A07:2025 — Authentication Failures
8
High / Critical
Roadmap
First, enforce strict import boundaries by ensuring code only accesses public indices without upward or deep internal dependencies, and break any circular imports by extracting shared logic into independent modules. Next, maintain slice independence by routing cross-slice needs through explicit contracts rather than direct references, and immediately resolve the four identified secret leaks in key files. Finally, clean up the dependency tree by removing unused packages, explicitly declaring imports, and moving type- or test-only requirements to development dependencies.
Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.
Do this
Helps
Effort
Dimension
Resolve the 4 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED, REDACTED, REDACTED.
Fix the listed violations: respect the layer/slice order — import only through a slice's public index and never upward into a higher layer (918 rows); import through the target package's declared public entry rather than a deep path into its internals or a relative path into its directory (1 row).
Pass `timeout=` on every `requests`/`httpx` call (requests has no default and will wait forever), mount an `HTTPAdapter(max_retries=Retry(...))` on shared sessions, and wrap calls to flaky dependencies in `tenacity` retries or a `pybreaker` circuit breaker.
Per-file score 0–10 — a quality signature. Of 225 files carrying findings, judged against the Preview bar: 3% slop · 25% mixed · 72% near-clean.
File
Score
Band
Worst signal
REDACTED
0.0
Slop
Static Analysis (SAST): High: REDACTED
REDACTED
1.0
Slop
IaC & Container Security: High IaC: REDACTED
REDACTED
1.0
Slop
IaC & Container Security: High IaC: REDACTED
REDACTED
1.6
Slop
Dependency Vulnerabilities: High CVE: REDACTED
REDACTED
1.7
Slop
Static Analysis (SAST): High: REDACTED
REDACTED
2.4
Slop
IaC & Container Security: High IaC: REDACTED
REDACTED
3.1
Mixed
Static Analysis (SAST): High: REDACTED
REDACTED
3.1
Mixed
Static Analysis (SAST): High: REDACTED
REDACTED
3.1
Mixed
Static Analysis (SAST): High: REDACTED
REDACTED
3.3
Mixed
IaC & Container Security: High IaC: REDACTED
REDACTED
3.4
Mixed
REDACTED Scanning: Leaked secret: REDACTED
REDACTED
4.0
Mixed
Static Analysis (SAST): High: REDACTED
REDACTED
4.3
Mixed
Static Analysis (SAST): High: REDACTED
REDACTED
4.3
Mixed
Static Analysis (SAST): High: REDACTED
REDACTED
4.4
Mixed
Static Analysis (SAST): High: REDACTED
REDACTED
4.4
Mixed
Static Analysis (SAST): High: REDACTED
REDACTED
4.4
Mixed
Static Analysis (SAST): High: REDACTED
REDACTED
4.5
Mixed
Static Analysis (SAST): High: REDACTED
REDACTED
4.6
Mixed
Static Analysis (SAST): High: REDACTED
REDACTED
4.6
Mixed
Static Analysis (SAST): High: REDACTED
How the grades work
Every finding carries one of four grades. Three say how serious it is. The fourth says this
survey could not settle it — and it is a grade, not a gap.
Critical — 234
A definite problem that already costs you something and drags the score down: a
missing authorisation check, a dependency with a known exploit, a build that does not reproduce. Failure here
tends to cause failures elsewhere.
Serious — 637
Likely wrong, but not failing yet. It degrades
the codebase over a longer horizon and can cause failures elsewhere — not urgent this week, not something to
carry for two years either.
Minor — 233
Recorded, with no effect on how the codebase functions.
Present so the survey is complete, not because it needs doing.
Could not be resolved — 18
Something this survey could not settle
from the outside, and which could be critical or serious. Either a control was required and no
positive evidence of it exists in the repository — a backup job that nothing shows was ever restored from proves
nothing about restores — or our own analysis could not run over that part of the tree. This is not a clean
result. These are excluded from the score rather than awarded a pass, so the number on the cover neither
rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each
one is named under Limitations.
Methodology & how to trust this report
Watchdog is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. 80 of 83 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 3 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.8 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.
Every figure here is one of three kinds, and we label which: ✓ Measured — a deterministic fact (LoC, complexity, coverage); ~ Modeled — an estimate from a stated model (cost, effort, value-at-risk), always a range with its assumptions, never a precise fact; ◐ Advisory — an LLM prose judgement. We never present a modelled estimate as if it were measured. Perfect or absent scores carry their provenance too (ADR-0011): ✓ Tool-verified means the property itself was measured across the surface; ○ Nothing flagged means the probes came back clean — a claim bounded by what a repository can show; ⊘ Not evidenced means a working control (a tested restore, an automated rollback) showed no positive evidence — absence of evidence is not evidence of a control, so it's excluded from the score rather than awarded a spurious 10; ◐ Sampled · advisory marks an LLM verdict over a bounded sample — advisory, never a deterministic measurement.
What we checked — 83 dimensions across the health lenses
Each chip is a dimension scored from real signals across architecture, testing, dependencies, security & compliance, documentation, git-history and code quality — in one coherent pass. A surface report typically covers a handful.
How to trust any code-health report — three questions
Can you open the finding? Real findings cite a repo-relative file and line you can open at the cited line — never an absolute scratch path. Here, 1079 of 1104 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line. (Every path in this report is repo-relative by construction: paths are normalized at the producer and the report is rejected if any rooted path leaks through.)
Is there a tool behind the number? Every score below names the method that produced it — Roslyn, git, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — not a narrative.
Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.
This report answers yes to all three. That's the bar to hold any assessment to.
Tools & methods
The actual versions used this run (captured at analysis time) — re-run on the same commit for the identical score.
Method
Backs
Version
Evaluator
Roslyn static analysis
Complexity, cohesion, coupling, dead code, API surface, layering
What ran differently this time — a tool absent, degraded, or that fell back to an estimate. Named openly, not folded silently into the scores. A degraded run also records its exact cause in diagnostics.md.
D1 Cyclomatic Complexity — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Most of this repository's production source (.py) had no cyclomatic complexity computed for it: no method bodies were exposed for those file kinds by any language model this pass could load.
D2 Cognitive Complexity — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Most of this repository's production source (.py) had no cognitive complexity computed for it: no method bodies were exposed for those file kinds by any language model this pass could load.
D4 Code Duplication — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. The 30 duplicated block group(s) on this row were found in the languages this pass could tokenize, and they do NOT cover all of this repository's production source: .py (838,491 lines, 60% of production source) went unread, because no language model this pass could load exposed a clone-unit token stream for those file kinds. Duplication in that source is UNMEASURED — its absence from the count above is a gap in this analyzer's language coverage, not a finding that the code is free of duplication. Duplication in .ts, .tsx is measured by R10 Code Duplication and is not part of this gap.
D10 Test Quality — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. The 12,824 test(s) behind this row are the ones the JavaScript/TypeScript census could read, and this repository also carries at least 3,570 test source file(s) (.py, .ps1) that it cannot: it reads JavaScript/TypeScript test declarations off disk, so a JUnit/pytest-style suite is invisible to it. Skipped tests, zero-assertion tests and the other quality signals on this row are UNMEASURED in that suite — their absence from the counts above is a gap in this analyzer's language coverage, not a finding that those tests are sound.
D11 Test Reliability — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Test reliability not included — the JavaScript/TypeScript suite (node:test via `npm ci --ignore-scripts` in studio/frontend/ (13939 tests)) did not finish re-running within its budget: too large to re-run within its budget.
D14 License Compliance — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This repository declares a Python pyproject.toml/requirements.txt (pip/uv/Poetry), but the licence verdict published here was taken over its crate dependencies. Nothing was read about its Python dependencies' licensing in either direction, and a clean score on this card must not be read as covering them.
D14 License Compliance — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This repository declares package.json, but the licence verdict published here was taken over its crate dependencies. Nothing was read about its npm dependencies' licensing in either direction, and a clean score on this card must not be read as covering them.
D15 Churn × Complexity Hotspots — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. A hotspot is churn × complexity. Churn was measured (3993685 line(s) across the 90-day window), but no complexity could be computed for .py, which is most of this repository's production code — so every churned file would score as complexity 0 and the hotspot list would be empty no matter how tangled the code is. Not scored — this is a gap in the analysis run, not a finding about this repository.
D22 Internal API Consistency — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D22 identifies the intentionally-exposed surface from `IsPackable` and `.Contracts` project names, MSBuild conventions read off the loaded project set. This target exposed no such projects, so the probe never ran; this says nothing about whether the repository has a public API. A language sidecar this run needed FAILED, so the code model the non-MSBuild public-API collector reads was never built — this is a DEGRADED run, not a settled gap, and the surface may well be collectable on a re-run: The Python sidecar TIMED OUT after 600s against a 600s budget, so its process tree was killed and the Python code model degraded to null. The budget is OURS: the work may simply be larger than it allows, and this repository's Python went unread for that reason alone.
D26 Project Cohesion — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Project size and spread are measured over build units (a .NET project, a Maven or Gradle module, an npm, Deno or JSR package, a Go module, a Cargo crate, a Python, Composer, Bundler, RubyGems, Mix, rebar3, sbt, SwiftPM or pub package, an OTP application, an Xcode project or XcodeGen spec, or a checkout that declares no build at all) whose source a code model reads. This repository's production source is in a language no model reads, or in units whose build tool D26 does not recognise. That is a gap in this analyzer's language reach — not a finding that the repository's projects are cohesive.
D27 Navigability — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check's reader does not cover the language this repository's product is written in, so it had nothing of the product to read. That is a gap in this analyzer's language reach — not a finding about this repository.
D32 Data Compliance (PII/GDPR) — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. `studio/backend/assets/docs_ui/redoc.standalone.js`, `studio/frontend/src/components/assistant-ui/markdown-table.tsx`, `REDACTED`, `studio/frontend/src/components/assistant-ui/reasoning-highlight.worker.ts`, `studio/frontend/src/components/assistant-ui/thread.tsx`, … (+63 more) produced a parse error, so every rule in this engine's `gdpr.yml` was absent there. That absence is NOT a clean result: these rules detect personal data crossing a boundary into a log sink, a URL or browser storage, and a file that was never parsed cannot report any of the three. The rest of the tree analysed normally and its rows above stand; only these files are unaccounted for. You can widen what we reach: fix the syntax error (or exclude the file deliberately) and re-scan to cover it.
AC2 Forms & labels — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 53 further occurrence(s) are not listed individually; the score already reflects all 93.
AC6 Visual & motion safety — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Visual & motion safety could not be assessed in this run — the check did not complete, so it is not scored. This is a gap in the analyzer, not a finding about this repository. Engine failure: ArgumentOutOfRangeException: startIndex cannot be larger than length of string. (Parameter 'startIndex').
AX1 Captive dependencies — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads Microsoft.Extensions.DependencyInjection registrations in C# and Spring beans in Java/Kotlin only, and this repository defines its own container in REDACTED, whose lifetimes are not modelled yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
AX7 Slice cohesion — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 2068 further occurrence(s) are not listed individually; the score already reflects all 2108.
AXR1 Runtime accessibility — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Render strategy: boot via REDACTED (REDACTED). docker build failed (exit 1) — DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
Install the buildx component to build images with BuildKit:
https://docs.docker.com/go/bui…; runtime evidence skipped.
C1 Data Protection — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These personal data controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks personal data controls.
C3 Audit Trail — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. 'sqlite3' is imported (scripts/windows_sac_probe/studio_scenario.py:14), but no entity, schema, table or model declaration this check reads was found beside it, so whether personal data is stored could not be decided.
C4 Data Retention — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. 'sqlite3' is imported (scripts/windows_sac_probe/studio_scenario.py:14), but no entity, schema, table or model declaration this check reads was found beside it, so whether personal data is stored could not be decided.
C5 Data-Subject Rights — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. 'sqlite3' is imported (scripts/windows_sac_probe/studio_scenario.py:14), but no entity, schema, table or model declaration this check reads was found beside it, so whether personal data is stored could not be decided.
GD1 Unfinished & placeholder code — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, F#, JavaScript/TypeScript, Dart, Ruby and Scala source only, and this repository's Python, Rust is most of its product and is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
IC1 Incompleteness & stubs — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, JavaScript/TypeScript, Java, Dart, Ruby and Scala source only, and this repository's Python, Rust is most of its product and is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
P5 DR & Backup — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. No backup/snapshot/replication config, RTO/RPO or restore-procedure documentation was found — and no production persistence was detected either (no data-access packages, no data-store services, no database resources), so there is nothing in this repository whose loss a DR control would recover. If this system's data lives in a platform or ops repo we can't see, that's where the DR evidence belongs.
R10 Code Duplication — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 969 further occurrence(s) are not listed individually; the score already reflects all 1009.
R11 Import Boundaries — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 880 further occurrence(s) are not listed individually; the score already reflects all 920.
R3 Large Files — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 239 further occurrence(s) are not listed individually; the score already reflects all 279.
R4 Test Coverage — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 20 further occurrence(s) are not listed individually; the score already reflects all 60.
R7 Dead Code — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 23 further occurrence(s) are not listed individually; the score already reflects all 63.
S1 Web-Security Posture — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These web-security controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks web-security controls.
X3 Exception handling — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 3739 further occurrence(s) are not listed individually; the score already reflects all 3779.
X4 Structured logging — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 542 further occurrence(s) are not listed individually; the score already reflects all 582.
X7 Silent fallback defaults — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. 26 further occurrence(s) are not listed individually; the score already reflects all 66.
Production source was not modelled — run is Degraded — No code model read .py, so the complexity, duplication and architecture dimensions were scored over a minority of this repository rather than its product, and dimensions that abstained did so for want of a model rather than for want of findings. The grade is NOT representative of this repository; diagnostics.md records the exact cause. The Python sidecar TIMED OUT after 600s against a 600s budget, so its process tree was killed and the Python code model degraded to null. The budget is OURS: the work may simply be larger than it allows, and this repository's Python went unread for that reason alone.
Repo exclusion declarations (.gitattributes linguist-generated/vendored, .editorconfig generated_code): none declared — every source file was scored.
Limitations & what we did not check
Watchdog assesses the repository exactly as committed, and only the repository. By design it does not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.
Per-dimension blind spots
For each dimension that was measured, what a static, repo-only scan structurally cannot see — the honest edge of the measurement, not a failure of it.
D4 Code Duplication: Duplication is token-similarity — an in-process token-stream comparison over sliding windows, with type-aware normalization — so it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
D10 Test Quality: Assertion density is structural — it cannot tell a meaningful behavioural assertion from a trivial one, only that an assertion is present.
D12 Dependency Hygiene: Dependency health reads manifests and lockfiles — a vulnerability in a vendored/copied dependency, or risk from how a dependency is actually used, is outside this view.
D13 REDACTED Scanning: REDACTED detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension — pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
D19 Documentation Quality: Documentation quality is judged by an LLM over a bounded sample of docs — it reads what is written, not whether the docs match the running system, and it is advisory, not a measurement. Its critique rows are drawn from a closed category vocabulary and each row means the same thing in every run, so two scans can be compared row by row; the SET that fires is still a sample, and does not repeat exactly. Measured on one frozen input, six scans at one engine SHA: 2-5 critique rows per scan, 8 distinct rows across the six, 3 of those 8 seen in only one scan. So a D19 row is evidence about the documentation, but a COUNT of D19 rows is not a quantity — never read a change in it as an improvement or a regression.
D20 ADR Quality: ADR quality is an LLM read of the decision records present — it cannot know about decisions made and never recorded, and its verdict is sampled and advisory.
D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample — it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
D31 IaC & Container Security: IaC scanning checks Dockerfiles/Terraform/Kubernetes against best-practice rules — it cannot see the live cloud account, runtime configuration, or drift between the committed config and what is actually deployed.
D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a REDACTED (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
AC1 Text alternatives: Alt-text is detected structurally — the scan sees that an alternative EXISTS, not whether it meaningfully describes the image, and decorative-vs-missing is judged by attribute shape; runtime-injected images and a non-role=img decorative svg are out of scope. This is accessibility readiness, never a WCAG conformance claim.
AC2 Forms & labels: Label association is read from static markup — a label wired up at runtime (JS-set aria-labelledby, framework-injected ids) reads as missing, a present label says nothing about whether its text is correct. A known UI-library field component (e.g. a JSX <TextField>) is now checked conservatively — flagged only when it carries NO label/aria-label/aria-labelledby/id/name — but wrapper/context-labelled libraries (Chakra/Radix FormControl+FormLabel) aren't statically visible (possible false positive) and non-JSX lowercased components are still skipped. A click handler on a plain element is now asked for a name too (it is a control the author declared), but the subtree test that answers it is deliberately generous: any DYNAMIC text expression in the subtree counts as a name, so an icon chosen by a ternary ({cond ? <IconA/> : <IconB/>}) reads as named, and a glyph component from a library the icon-import list does not know still names its parent. A clean result is "no unlabelled control found", not a labelling proof.
AC3 Page structure: Page structure is read from the static markup tree — landmarks, headings and lang injected at runtime aren't seen, heading ORDER is checked structurally (not against the rendered visual hierarchy), and lang/title/main fire only on full documents, never partials, and the data-table check sees header-cell presence (a <th> exists), not whether each header correctly associates with its cells. Static readiness, not conformance.
AC4 Keyboard semantics: Keyboard semantics are inferred from markup attributes — interactivity wired purely in script, focus managed at runtime, and component-level handlers are invisible. A clean result means "no static keyboard-trap shape", not a keyboard-operability proof.
AC5 ARIA correctness: ARIA correctness is checked against the static role/attribute shape — roles/attributes set dynamically aren't seen, a valid role says nothing about whether it matches the element's real behaviour, and required-state checks are suppressed when a JSX spread could supply them. The two-branch toggle check (a control whose state is conveyed only by which of two mutually exclusive branches renders) reads CONDITIONALS THAT ARE ATTRIBUTES — Vue v-if/v-else/v-show and Alpine x-if/x-show — so the same toggle written as a Svelte {#if} block or a JSX ternary is control flow the markup model never projects as a branch and is not seen at all.
AC7 A11y enforcement: Enforcement is scored from in-repo config/CI evidence only — an a11y gate enforced in external tooling with no in-repo trace can't be credited, and a configured linter is presence, not proof the rules actually run or block a merge.
AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
AX9 CQS / query purity: Handlers are found by interface/name convention — a query handler using neither is not seen. Mutation is a resolved write/publish invocation (SaveChanges/repository/bus), so a write hidden behind a hand-rolled wrapper, reflection, or a string-keyed service locator resolves to a non-persistence type and isn't flagged; it detects that a query writes state, not whether the write is a legitimate read-side cache update. Clean means "no resolved write/publish in a query body", not a proof of CQS purity.
M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.
The LLM boundary
LLM-set scores this run (3): D19, D21, M4 (model: Local LLM). For these, a model reads a bounded sample and sets the numeric score; each names its own sample and method on its card. They are sampled and advisory by design: they vary at the margins between runs and are never a deterministic measurement. Every other score in this report is tool-computed at confidence 1.0.
What it measures: Copy-pasted code that should be shared instead.
Method: Code duplication via token-stream sliding windows with type-aware normalization (locals masked, type names preserved), density-scored per KLoC of production code. Deterministic.
30 duplicated block group(s) detected. A further 3 rows report members as variants of one another; they aggregate block groups already counted above and are not themselves counted. Measured on part of this repository only: .py (60% of production source) was not exposed to the token comparison, so duplication there is unmeasured and is not in this count. Measured on part of this repository only: .ts, .tsx (37% of production source) was not exposed to THIS dimension's token comparison and is not in this count; duplication there is measured by R10 Code Duplication, the frontend lens's card running the same clone algorithm over the JS/TS token stream.
Edited copy of a member (16 corresponding lines)studio/src-tauri/src/desktop_update_policy.rs:208
+ 21 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 3 Duplicated block (12 lines × 2) finding(s) in Code Duplication — start with process.rs, desktop_update_policy.rs, backend.rs. — One of this dimension's main actionable groups (3 warning-level).
Resolve the 3 Duplicated block (9 lines × 2) finding(s) in Code Duplication — start with desktop_update_policy.rs (2), phase_log.rs. — One of this dimension's main actionable groups (3 warning-level).
Resolve the 3 Duplicated block (7 lines × 2) finding(s) in Code Duplication — start with install.rs (2), desktop_backend_owner.rs. — One of this dimension's main actionable groups (3 warning-level).
Enforce Code Duplication in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
Detailed fixes: d4_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D5 · Coupling10.0 / 10Exemplary✓ Tool-verified
What it measures: Whether volatile projects sit underneath others that depend on them (so their churn ripples upward), and whether project dependencies form cycles. A widely-depended-on but stable shared/kernel project is healthy, not penalised.
Method: Dependency cycles via elementary-DFS over real .csproj references, plus Martin instability (afferent/efferent) per project. Exhaustive over the reference graph, deterministic.
Coverage: Exhaustive · type-level: afferent/efferent coupling + cycles computed over every production type — the population is all types, not a name convention.
7 production modules (Cargo+npm+Python), 0 dependency cycle(s), 0 unstable depended-on module(s). Read from the build's own module declarations; 0 module(s) off the main sequence, with abstractness counted on 4 of the 7 (the rest declare no modelled class or interface, export only macros, declare types in source no model reads, or have no source directory of their own).
What it measures: Whether a class's methods are focused on a single responsibility.
Method: LCOM4 cohesion per production class with at least two methods: connected components of methods sharing state or calls, computed syntactically. Deterministic, not a proxy.
Coverage: Exhaustive · type-level: LCOM4 cohesion computed over every production class — the population is all types, not a name convention.
D9 · Test Distribution10.0 / 10Exemplary✓ Tool-verified
What it measures: Whether the test suite has a healthy mix of unit / integration / end-to-end tests.
Method: Test projects classified (Unit/Integration/BDD/E2E) from compiled metadata; test methods counted exhaustively across projects with placement-agnostic disk fallback. Deterministic.
84577 test methods: 84494 unit, 50 integration, 0 BDD, 33 e2e. The JavaScript/TypeScript suite contributes 12824 `it`/`test` case(s) across 1369 test file(s) declaring at least one; its tier split is read from package names and paths only. The Rust suite contributes 818 `#[test]` function(s) across 41 file(s) declaring at least one; its unit/integration split is Cargo's own — 0 of those file(s) are integration-test targets under a crate's tests/ directory, and the rest are #[test] functions compiled into the crate they test. The Python suite contributes 70935 test function(s) across 3300 file(s) declaring at least one — every `def test…` in a file pytest or unittest would collect, which is those frameworks' own definition of a case; a parametrize table counts once, so this is a floor. Its tier split is read from file names and paths only.
✓ On the Gold path — maintain.
Detailed fixes: d9_recommendation.md.
Do you agree with this assessment?
D10 · Test Quality10.0 / 10Stronggated by 24 serious findings✓ Tool-verified
What it measures: Whether the tests truly assert behaviour rather than just running the code.
Method: Per-test assertions, skips, and mock references analyzed via Roslyn; structured skip-reason tags (BUG:/ENV:) separate documented deferrals from debt. Deterministic.
13 skipped (13 with a documented reason), 12 zero-assertion, 12 synchronised by a fixed sleep, no mocking-framework packages referenced (hand-written doubles or no mocking) across 12824 tests. Measured on the JavaScript/TypeScript suite only — at least 3,570 test source file(s) (.py, .ps1) went unread, so its test quality is unmeasured and is not in these counts.
No assertions: an opening tag split across two, three and four arrivals is seen · ×12studio/frontend/tests/think-tag-tracker.test.ts:65
Fixed-sleep synchronisation: a page asked for just before a history refresh is read by that refresh instead of dropped · ×12studio/frontend/tests/sidebar-server-paging.test.ts:789
Resolve the 12 No assertions finding(s) in Test Quality — start with think-tag-tracker.test.ts (6), stuck-generation-run.test.ts, sidebar-pin-without-matchmedia.test.ts. — One of this dimension's main actionable groups (12 warning-level).
Resolve the 12 Fixed-sleep synchronisation finding(s) in Test Quality — start with recipe-server-persistence.test.ts (2), qwen-defaults-migration-safety.test.ts (2), sidebar-server-paging.test.ts. — One of this dimension's main actionable groups (12 warning-level).
Enforce Test Quality in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d10_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether dependencies are current, secure, and not bloated.
Method: Manifest scan via dotnet list package across all projects; worst-signal-per-package deduction (saturating for vulnerabilities, capped-linear for deprecation/outdated) per KLoC. Exhaustive, deterministic.
4 outdated, 0 yanked direct Cargo dependencies. Only DIRECT edges are graded: a transitive crate cannot be moved past what its parent's requirement admits, so reporting one would be advice its owner cannot take. A newer release is reported only where this repository's OWN requirement already admits it, so the remedy is `cargo update` and never a manifest edit — which means a release outside the declared range is deliberately NOT charged, because a written-down constraint is a decision rather than a defect. Note that a bare requirement is a CARET, and for a 0.x crate its ceiling is the minor. Whether any crate is UNMAINTAINED is not graded — crates.io publishes no maintenance status, and release age does not stand in for one. Known CVEs in this dependency graph are D30's question, read from REDACTED there.
Outdated: open · ×4
✓ On the Gold path — maintain.
Detailed fixes: d12_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether any secrets (keys, tokens, passwords) have leaked into the code.
Method: In-process native secret scanner (entropy plus signature patterns) across all tracked files; no external tool. A clean result is a measured 10, not no-data zero. Deterministic.
Resolve the 4 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED, REDACTED, REDACTED. — One of this dimension's main actionable groups (4 issue-level).
Enforce REDACTED Scanning in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d13_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether the licenses of third-party packages are compatible with your policy.
Method: Third-party package licenses resolved from declared package metadata and checked against the configured policy (allow/deny/copyleft). Deterministic; clean = no incompatible license found at metadata depth.
0 of 615 shipped crate(s) use a banned license. Licences were resolved from crates.io over the crates a consumer compiles — this repository's REDACTED closed over its manifests' `[dependencies]` and `[build-dependencies]`. Crates it asks for ONLY under `[dev-dependencies]` are excluded: they are not compiled by anything that depends on this repository. ★ COVERAGE OF THIS VERDICT: it grades this repository's crate dependencies and nothing else. The repository also declares a Python pyproject.toml/requirements.txt (pip/uv/Poetry) and package.json, and the licences of those dependency graphs were NOT read by this pass — a gap in this engine's coverage, not a statement about them. So this result says the graded closure carries no banned licence; it does NOT say this repository's licensing is clear.
✓ On the Gold path — maintain.
Detailed fixes: d14_recommendation.md.
Do you agree with this assessment?
D16 · Bus Factor9.0 / 10Exemplary✓ Tool-verified
What it measures: Whether knowledge is concentrated in too few people (the "bus factor").
Method: Living knowledge per author via time-decayed commit attribution (6-month half-life, focus weighting) across largest source files. Deterministic, avoids blame's mechanical-refactor false positives.
231 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is REDACTED. Counted over 2437 of the 3383 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
Off-boarding risk: anonymized user #1 · ×4
Further sole-owners (lower concentration)
✓ On the Gold path — maintain.
Detailed fixes: d16_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Acknowledged debt left in the code — TODOs, dead code, suppressed warnings.
Method: Roslyn syntactic debt markers (suppressions/TODO/FIXME/HACK/empty-catch/commented-code/Obsolete) plus SymbolFinder dead-code analysis; weighted-debt-per-KLoC density deducted 2.0x per unit. Deterministic, exhaustive.
22 deducted task-comment markers across 1465212 LoC (0.0/KLoC) → score 10.0. Task comments only: this repository's language is read without a compiler, so D17's suppression, dead-code and commented-out-code arms did not run and this score counts fewer marker kinds than a .NET repository's would.
Resolve the 21 TodoComment finding(s) in Explicit Debt — start with loader.py (6), model_config.py (2), REDACTED (2). — One of this dimension's main actionable groups (21 warning-level).
Resolve the 1 HackComment finding(s) in Explicit Debt — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
Enforce Explicit Debt in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d17_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether the project's documentation is clear, complete, and useful.
Method: Judged by language model at low temperature (0.0-0.1) on a deterministic doc sample (READMEs plus first 25 architecture docs), with two-pass stability filtering. Advisory, sampled.
Both READMEs are per-directory references documents (t4_smoke/references and studiobench/symbols) rather than the repository root, so they each document their own directories. The t4_smoke one is a committed-metric-references guide with an overview, which leg applies to, and what it must not; the studiobench one is a symbol-bridge description plus a table of fields and failure-mode rationale. Both are well written for their niche. (10 of 12 sampled documents could not be assessed: 1 of 2 evaluation groups failed.)
What to do
Improve Documentation Quality — currently 8.0/10. — Both READMEs are per-directory references documents (t4_smoke/references and studiobench/symbols) rather than the repository root, so they each document their own directories. The t4_smoke one is a committed-metric-references guide with an overview, which leg applies to, and what it must not; the studiobench one is a symbol-bridge description plus a table of fields and failure-mode rationale. Both are well written for their niche. (10 of 12 sampled documents could not be assessed: 1 of 2 evaluation groups failed.)
Detailed fixes: d19_recommendation.md.
Do you agree with this assessment?
D20 · ADR Quality0.0 / 10Critical✓ Tool-verified
What it measures: Whether architecture decisions are recorded well (context, decision, consequences).
Method: Per-ADR judgment by language model at low temperature with two-pass stability; confidence is share of ADRs evaluated; enforcement-field presence detected deterministically. Advisory.
What it measures: Whether names — types, methods, variables — are clear and consistent.
Method: Judged by language model at low temperature (0.0-0.1) on a deterministic random symbol sample (fixed size, not exhaustive), with disclosed confidence band. Advisory, sampled.
What it measures: Whether any secrets were ever committed — scanned across the full git history, not just now.
Method: REDACTED scan via TWO gitleaks detect passes in an isolated checkout — the full git history, then a second --no-git pass over the working tree as it stands — merged and de-duplicated by (rule, file, line); each match flagged High. Both invocations are recorded in the audit trail. Exhaustive; when the tool is absent, or when its output cannot be parsed into the expected shape, the dimension is WITHHELD as an explicit measurement gap on our side — unscored and excluded from the lens, never a hedged middling score.
3 finding(s): 0 critical, 3 high, 0 medium, 0 low. Remediation for historically-committed secrets is credential rotation — they remain in history regardless of later deletion.
REDACTED
REDACTED
What to do
Resolve the 3 REDACTED finding(s) in Secrets (history) — start with REDACTED, REDACTED, REDACTED. — One of this dimension's main actionable groups (3 issue-level).
Resolve the 1 Rotate the exposed credentials finding(s) in Secrets (history). — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d28_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Real static-analysis (SAST) findings — likely security bugs in the code, any language.
Method: Polyglot static analysis via semgrep across the repo using the pinned, image-baked p/security-audit + p/owasp-top-ten rulesets (no scan-time registry fetch); severity rules (ERROR/WARNING/INFO) map to a full-band severity-weighted score. Exhaustive, deterministic; degrades on parse failure.
Coverage: semgrep pattern rules over all files — exhaustive for the rule set, blind to classes of bug without a rule (clean = no rule matched).
285 finding(s): 0 critical, 162 high, 91 medium, 32 low. semgrep hit a parse error in 115 file(s) — `.github/scripts/agent-guides-drive.sh` (line 25, line 26, lines 532–538), `.github/scripts/agent-guides-install.sh` (line 14), `.github/scripts/assert-llama-loads.sh`, `.github/scripts/assert-prompt-cache.sh` (line 47, line 152, line 203), `.github/scripts/clean-machine-assert.sh`, … (+110 more) — so no absence of findings in the named regions is evidence of anything; rows reported elsewhere in those files are real. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them. Separately, one or more rules could not re-parse an embedded snippet in 42 file(s) (e.g. a workflow `run:` block read as shell). Those files WERE scanned and their other rows are unaffected; only those rules' view of those snippets is missing.
REDACTED
REDACTED
REDACTED
REDACTED
REDACTED
+ 27 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 54 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (7), REDACTED (4), REDACTED (4). — One of this dimension's main actionable groups (54 issue-level).
Resolve the 48 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (13), REDACTED (9), REDACTED (6). — One of this dimension's main actionable groups (48 issue-level).
Resolve the 26 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (9), REDACTED (3), REDACTED (2). — One of this dimension's main actionable groups (26 issue-level).
Detailed fixes: d29_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether any dependency has a known published vulnerability (CVE), direct or transitive, in ANY ecosystem the repository declares — Dart pub, Elixir and Erlang via Hex, Go modules, Java and Kotlin via Maven/Gradle, JavaScript/npm, .NET/NuGet, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift.
Method: Dependency-CVE scan across every ecosystem the repository declares, scored ONCE. Three sources are unioned and deduplicated by advisory identity (rule id + alias closure, CVE<->GHSA) scoped to package+version, keeping the worst severity: `osv-scanner --recursive` over osv.dev for Dart pub, Elixir/Hex (and Erlang, whose `rebar.lock` syft first converts to a CycloneDX SBOM the scanner reads, with rows attributed back to the lock), Go, Java and Kotlin via Maven/Gradle (and Scala, whose sbt build's pinned direct declarations are written into a CycloneDX SBOM the scanner reads, with rows attributed back to the build file), npm, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift; `trivy fs --scanners vuln` for npm lockfiles; and `dotnet list package --vulnerable --include-transitive` for NuGet (with per-advisory collapse of the project x target-framework fan-out), plus a DECLARED-dependency arm that resolves a published gem's gemspec against rubygems.org where no Gemfile.lock is committed. `SeverityScore(c,h,m,l, normalizer 8.0)`. NotApplicable only when NO ecosystem is readable; if any applicable ecosystem could not be scanned the findings are REPORTED and the score is withheld. Supersedes the npm and OSV arms, retired 2026-09-05.
Resolve the 4 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (4). — One of this dimension's main actionable groups (4 issue-level).
Resolve the 4 Medium advisory (unmaintained) finding(s) in Dependency Vulnerabilities — start with REDACTED (4). — One of this dimension's main actionable groups (4 warning-level).
Resolve the 4 Medium CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (2), REDACTED (2). — One of this dimension's main actionable groups (4 warning-level).
Detailed fixes: d30_recommendation.md · top locations in Appendix A, every location in findings.md.
Resolve the 20 Medium IaC finding(s) in IaC & Container Security — start with REDACTED (6), REDACTED (5), REDACTED (5). — One of this dimension's main actionable groups (20 warning-level).
Resolve the 6 High IaC finding(s) in IaC & Container Security — start with REDACTED (2), REDACTED (2), REDACTED. — One of this dimension's main actionable groups (6 issue-level).
Resolve the 3 Low IaC finding(s) in IaC & Container Security — start with REDACTED, REDACTED, REDACTED. — One of this dimension's main actionable groups (3 recommendation-level).
Detailed fixes: d31_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether anyone still has living knowledge of each file, or it has been orphaned — last understood long ago by someone now gone quiet. The sibling of the bus factor: D16 asks who owns it, D34 asks whether anyone still knows it.
Method: File orphaning as total living-knowledge decay below one focused-commit's worth within a year, computed per-file from the D16 decay model. Exhaustive, deterministic over fixed history.
Every significant source file has living knowledge — recently and meaningfully worked. Counted over 2437 of the 3383 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
What it measures: Whether files that change together actually belong together — pairs that repeatedly co-change in git history despite having no explicit code dependency, surfacing the hidden/logical coupling (and boundaries in the wrong place) a static scan can't see.
Method: Pairwise co-occurrence over the per-commit file sets in git history (production source only — tests and generated dropped): Degree-of-Coupling = shared ÷ min individual revisions, reported above noise floors (each file ≥10 revisions, ≥5 shared commits, ≥50% strength); sweeping commits excluded. Deterministic over fixed history.
Coverage: Population: PRODUCTION source files only — test and generated files are dropped before pairing, so a class co-changing with its own test (trivially ~100%) can't drown the real production↔production coupling. Pairs ranked by Degree-of-Coupling. A non-source file is never a coupling PARTICIPANT either: documentation, schemas, config and data files are dropped with the rest, so a code↔docs pair — a command and the reference page that restates it — is not reported however strongly the two co-change; nor is coupling that runs THROUGH a build step or config file.
Resolve the 38 Change coupling finding(s) in Change Coupling — start with index.ts (3), thread.tsx (2), training.py (2). — One of this dimension's main actionable groups (38 warning-level).
Resolve the 7 Change-coupling hub finding(s) in Change Coupling — start with REDACTED, index.ts, desktop_auth.rs. — One of this dimension's main actionable groups (7 warning-level).
Resolve the 1 Change coupling clique finding(s) in Change Coupling — start with tool-ui-code-execution.tsx. — One of this dimension's main actionable groups (1 warning-level).
Detailed fixes: d35_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether the build pipeline provides supply-chain integrity — generated provenance/attestation, signed artifacts (cosign/sigstore), an SBOM, and pinned build actions. Presence of the configuration, not a runtime guarantee.
Method: Supply-chain provenance/signing read deterministically from CI/build config (.github/workflows, .gitlab-ci.yml, azure-pipelines, Jenkinsfile, .circleci) + the release surface: four signals — generated provenance/attestation (SLSA/in-toto/actions-attest), artifact signing (cosign/sigstore/gitsign), an SBOM (syft/sbom-action/*.spdx.json/*.cdx.json), and SHA-pinned build actions — scored 10·present/denom. NotApplicable without a build pipeline. Detects configuration presence, not runtime enforcement.
What it measures: Whether any dependency the repository declares is published as MALICIOUS rather than merely vulnerable — a package that is an attacker's work, in any ecosystem osv-scanner reads. Scored apart from D30 because the answer is binary: there is no safe version to upgrade to, and the fix is to remove the package and rotate every credential it could have read.
Method: The same dependency scan D30 reads, partitioned on the scanner's own classification rather than rescanned: a row is MALICIOUS when its id is in the `MAL-` space (the ossf/malicious-packages feed) OR its `database_specific.cwe_ids` carries `CWE-506` ("Embedded Malicious Code"). Both channels are structural; the summary text is deliberately NOT read, because a malicious-package record whose summary says only "Critical severity vulnerability" is a real shape ([GHSA redacted]) and a text matcher misses it. Scored BINARY: any surviving row is 0, whatever its severity and however many CVEs sit beside it — a hostile dependency is not a quantity. Applicability and degradation are D30's: NotApplicable only when no ecosystem is readable, and an unscannable ecosystem degrades rather than reading clean. SCORED, not informational.
What it measures: Whether anyone still ships security patches for the platform this repository RUNS ON — the runtime it pins and the framework majors its own constraints hold it to. Separate from D12 because the question differs: a current Django on an end-of-life Python is perfectly up to date and completely unsupported, and the fix is a migration rather than a version bump. What the repository says it merely SUPPORTS is never charged.
Method: End-of-life PLATFORM read from the repository's own declarations and graded against a FROZEN, dated table of vendor support dates — no network, no feed, no API, so this dimension answers identically inside a closed scan fence. Two subjects: a RUNTIME the project pins (a single or all-end-of-life TargetFramework, a .nvmrc or .python-version, a requires-python CAP) and a FRAMEWORK major a dependency constraint cannot move off (a caret, tilde or exact version; `vue@^2.7.16` pins Vue 2). A FLOOR is deliberately never charged — `requires-python = ">=3.8"` states what a package SUPPORTS, not what it runs on — and a multi-target project is charged only when EVERY target is out of support. Runtime 4.0/product capped 8.0, framework 1.5 capped 4.5. The table is safe to freeze because a statement about support that ended in the past cannot become false: it loses recall as it ages, never precision, and a test asserts every entry predates the freeze date. Disjoint from D31 (a container image's OS layer) and D29 (the toolchain a CI workflow installs). Abstains when the repository declares no platform this pass reads — never scores it clean.
0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 1 platform declaration(s) and 19 dependency declaration(s). This dimension reads what the repository says about ITSELF — a pinned target framework, a version file, a capped requires-python, a Rust toolchain pin, a framework major a constraint cannot move off. A FLOOR is deliberately never charged: `requires-python = ">=3.8"` states what the package SUPPORTS, not what it runs on, and a well-maintained library declares exactly that while running its own CI on a current release. The end-of-life facts are FROZEN and dated, so this dimension needs no network and answers identically inside a closed scan fence; as the table ages it loses recall and never precision, because a statement about support that ended in the past cannot become false. The OS layer of a container image is D31's question and the toolchain a CI workflow installs is D29's; this row is neither.
✓ On the Gold path — maintain.
Detailed fixes: d44_recommendation.md.
Do you agree with this assessment?
Frontend & cross-cutting dimensions
R = React/JS · M = Maturity · P = Readiness.
AC1 · Text alternatives5.3 / 10Adequate✓ Tool-verified
Other · Accessibility — Whether non-text content carries a text alternative — img/area/input[type=image] have alt, a meaningful svg has a title or aria-label, video has a captions track, and object/embed/canvas have a name or fallback content. Static markup readiness, not a WCAG conformance claim.
Method: Static markup-model scan: every img/area/input[type=image] checked for alt, svg[role=img] for a title/aria-label, video for a captions <track>. Components skipped, spreads suppressed. Deterministic, hard fact per element.
Coverage: Population: image/media elements — img, area, input[type=image], svg, video, object, embed, canvas — across the PARSED MARKUP files only (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx); components, hidden subtrees and dynamic-attribute elements are skipped. Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is NOT read by any producer, so it contributes no element to this population; where such a frontend is present the card discloses it as an analyzer gap rather than scoring around it.
Video with no captions <track> offers no captions. This player's source is set at runtime, so there is no caption file to author here: give the player a way to carry captions — accept a track/captions URL alongside the media and render a <track kind="captions"> when one is supplied — and capture that asset wherever the media enters the product (upload, import or generation). (×7) — studio/frontend/src/components/assistant-ui/attachment-preview.tsx:664, studio/frontend/src/components/assistant-ui/tool-ui-image-generation.tsx:237, studio/frontend/src/features/browser/video-file.tsx:162, …
A <canvas> with no aria-label/title and no inner fallback content can't be described by assistive tech. Add a name or fallback content. (×3) — studio/frontend/src/components/file-viewer/pdf-view.tsx:87, studio/frontend/src/features/images/images-page.tsx:1209, studio/frontend/src/features/images/localized-edit-canvas.tsx:223
What to do
Add a text alternative — alt on images (alt="" for purely decorative ones), a title or aria-label on meaningful svg, an aria-label or inner fallback content on canvas, and a captions <track> on video.
Do you agree with this assessment?
AC2 · Forms & labels5.5 / 10Adequate✓ Tool-verified
Other · Accessibility — Whether form controls have a programmatic label (an associated label, aria-label or aria-labelledby), buttons have text, links have an accessible name, a click handler on a plain element names the control it declares, fieldsets have a non-empty legend, known UI-library field components carry a label prop, and a placeholder isn't used as the only label. Static markup readiness, not a WCAG conformance claim.
Method: Static markup-model scan: inputs/selects/textareas checked for an associated label[for]/wrapping label/aria-label/aria-labelledby (per document), buttons for accessible text, fieldsets for a legend; placeholder-only labelling flagged. Deterministic, hard fact per control.
Coverage: Population: form controls, buttons, links, fieldsets and known UI-library field components in the PARSED MARKUP files only (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx); components, hidden subtrees and spread/dynamic-attribute elements are skipped, so a control whose label arrives through a spread or a runtime expression is deliberately not judged. Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.
This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label. — studio/backend/assets/preview_page.html:291
This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label htmlFor>, a wrapping <label>, or aria-label. (×9) — studio/frontend/smoke-find-in-page-main.tsx:319, studio/frontend/src/features/chat/prompt-storage/prompt-storage-dialog.tsx:1703, studio/frontend/src/features/chat/prompt-storage/prompt-storage-dialog.tsx:1715, …
This control has no associated label. Add a <label htmlFor> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it. (×3) — studio/frontend/smoke-nonmodal-menus-main.tsx:211, studio/frontend/src/components/assistant-ui/audio-player.tsx:107, studio/frontend/src/components/tauri/diagnostics-copy-actions.tsx:63
This <article> carries a click handler, which makes it a control, but it has no text, aria-label or labelled child (the icon-only case), so assistive tech has no name to announce for it. Note that switching it to <button type="button"> — the right fix for its keyboard operability — does not give it a name either: an icon-only button still needs one. Add visible text or an aria-label. — REDACTED:159
This UI-library field component is named only by a placeholder — a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed. (×7) — studio/frontend/src/components/negative-prompt-field.tsx:66, studio/frontend/src/features/chat/chat-settings-sheet.tsx:1861, studio/frontend/src/features/chat/projects-page.tsx:1228, …
This <video> carries a click handler, which makes it a control, but it has no text, aria-label or labelled child (the icon-only case), so assistive tech has no name to announce for it. Note that switching it to <button type="button"> — the right fix for its keyboard operability — does not give it a name either: an icon-only button still needs one. Add visible text or an aria-label. — studio/frontend/src/features/browser/video-file.tsx:162
This <label> has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label htmlFor="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id. (×10) — studio/frontend/src/features/export/components/export-run-panel.tsx:283, studio/frontend/src/features/export/components/export-run-panel.tsx:341, studio/frontend/src/features/export/components/export-run-panel.tsx:351, …
A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one). (×4) — studio/frontend/src/features/export/components/method-picker.tsx:34, studio/frontend/src/features/export/components/quant-picker.tsx:51, studio/frontend/src/features/export/export-page.tsx:1205, …
This UI-library field component has no label / aria-label / aria-labelledby / id, and nothing it renders carries one either (a name prop is the form-submission key, not a label). The text inside it does not stand in for one: these compound APIs render a trigger with role="combobox" (or role="button"), and those roles take their name from the AUTHOR, not from their content — so the words on screen never reach the accessibility tree as a name. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed. (×2) — studio/frontend/src/features/export/export-page.tsx:1934, studio/frontend/src/features/export/export-page.tsx:2036
This UI-library field component has no label / aria-label / aria-labelledby / id — and neither does anything it renders (a name prop is the form-submission key, not a label) — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed. (×2) — studio/frontend/src/features/images/hires-controls.tsx:119, studio/frontend/src/features/images/hires-controls.tsx:137
What to do
Give every control a programmatic label (a <label for> / wrapping <label> / aria-label) and every button text — a placeholder is not a label.
Do you agree with this assessment?
AC3 · Page structure7.8 / 10Strong✓ Tool-verified
Other · Accessibility — Whether pages declare a language (well-formed BCP-47) and a non-empty title, expose exactly one main landmark and a sane heading order with non-empty headings, keep zoom enabled, title their iframes, give data tables header cells, and avoid meta-refresh. Static markup readiness, not a WCAG conformance claim.
Method: Static markup-model scan: html lang, document <title>, a main landmark and heading order on full documents only, plus zoom-disabling viewports, untitled iframes and meta-refresh anywhere. Deterministic, per structural checkpoint.
Coverage: Population: the PARSED MARKUP documents (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx). The page-level checks — lang, title, single main landmark — fire ONCE PER FULL DOCUMENT (an <html> root) and never on a partial or component fragment, so a repo of fragments is assessed only on the per-element checks (heading order, table headers, iframe titles, meta-refresh, zoom). Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.
A <table> with data cells but no <th> gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as <th> (with a scope). — REDACTED:416
What to do
Declare <html lang>, a document <title> and a <main> landmark, keep headings in order, leave zoom enabled, title iframes and drop meta-refresh.
Other · Accessibility — Whether interactive behaviour is keyboard-reachable — no click handler on a non-interactive element lacking a role, tabindex and key handler, no element the repo's own CSS styles `cursor: pointer` without giving it any of the three, no unfocusable element whose only binding is a mouse enter/leave pair or a double-click, no positive tabindex, no href-less anchor, no placeholder-href (#/javascript) link acting as a button. Static markup readiness, not a WCAG conformance claim.
Method: Static markup-model scan: click handlers on non-interactive elements lacking role+tabindex+key handler, positive tabindex values, and href-less anchors. Components skipped, spreads suppressed. Deterministic, hard fact per element.
Coverage: Population: elements that pose a keyboard-semantics question, in the PARSED MARKUP files only (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx) — a non-natively-interactive element carrying a click handler, a double-click or hover enter/leave binding, a pointer-only gesture on a tabindex="0" element, or `cursor: pointer` from the repo's own CSS; an href-less or placeholder-href (#, javascript:) anchor; and any element with a positive tabindex. Natively interactive elements used correctly (<button>, <a href>, form controls) are NOT in the population — there is nothing to judge — so a page of nothing but correct controls gives AC4 nothing to measure. Keyboard reachability is judged from the markup, never from a rendered page. ★ An interactive element declared in a tagged-template (html`…`) or hyperscript frontend is NOT in this population — no producer reads either — so an empty population is reported as an analyzer gap, never as "this repository has no interactive elements".
A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabIndex={0} + a key handler. (×2) — REDACTED:159, studio/frontend/src/components/image-viewer.tsx:261
This <div> binds mousedown and double-click — pointer gestures with no keyboard form, a double-click among them. No click, no key handler, and no tabIndex={0}, so it cannot even take focus. Nothing synthesises a double-click from the keyboard: Enter and Space fire a single click, and only on a native <button> or <a href>. So this behaviour has no keyboard path at all. Expose the same action on a real control, or add role + tabIndex={0} + a key handler alongside the double-click. (×2) — studio/frontend/src/components/tauri/window-titlebar.tsx:519, studio/frontend/src/components/tauri/window-titlebar.tsx:533
This <div role="alertdialog"> is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native <dialog> opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close. — studio/frontend/src/features/browser/agent/agent-bar.tsx:28
A click handler on a plain element with no role and no tabindex: even where another element's key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a <button>, or add role + tabIndex={0}. (×5) — studio/frontend/src/features/browser/video-file.tsx:162, studio/frontend/src/features/chat/components/deep-research-composer-button.tsx:117, studio/frontend/src/features/chat/projects-page.tsx:837, …
This <span> carries its own click handler, but it sits inside a <button> that performs a different action. A keyboard user reaches the <button> and activating it runs the <button>'s handler, never this one, so this action has no keyboard path at all. Role and tabindex cannot supply one: HTML forbids a <button> from containing interactive content or any descendant with a tabindex, so the browser will not put this element in the tab order however it is marked up. Move it out of the <button> and make it a sibling <button>, so each action has its own control. (×2) — studio/frontend/src/features/chat/components/deep-research-composer-button.tsx:297, REDACTED:1479
What to do
Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href.
Other · Accessibility — Whether ARIA is used correctly — valid non-abstract roles, the ARIA state a role requires, valid (non-misspelled) aria-* attribute names, in-enum values for token-typed aria-* attributes, and no aria-hidden on (or wrapping) a focusable element. Static markup readiness, not a WCAG conformance claim.
Method: Static markup-model scan: role values checked against the WAI-ARIA role set (abstract/invalid flagged), required ARIA state for a role, and aria-hidden on a focusable element. Deterministic, role/attribute level.
Coverage: Population: elements in the PARSED MARKUP files (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx) that carry a role or an aria-* attribute; roles and token values are checked against the ARIA enums exhaustively within that set. An expression-valued (dynamic) role or aria-* value is skipped rather than guessed, and markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.
This is not a valid WAI-ARIA attribute, so assistive technology ignores it (usually a typo). Use the correct aria-* attribute. — studio/frontend/src/features/settings/components/embedding-model-picker.tsx:279
What to do
Use valid, non-abstract roles, supply the ARIA state each role requires, and never put aria-hidden on a focusable element.
Other · Accessibility — Whether accessibility is ENFORCED in the toolchain — an accessibility checker configured over the markup (an a11y lint rule set, e.g. eslint-plugin-jsx-a11y or vuejs-accessibility where the project lints JavaScript) and an automated accessibility assertion wired into tests or CI (axe/pa11y/Lighthouse or an equivalent) — on the Documented→Verified→Prevented ladder.
Method: Repo config/CI scan: an accessibility checker configured over the markup (an a11y lint rule set such as eslint-plugin-jsx-a11y / vuejs-accessibility where JavaScript is linted) and an automated accessibility assertion in tests or CI (axe/pa11y/Lighthouse or equivalent), graded on the Documented→Verified→Prevented rungs. Deterministic, presence/rung detection.
Coverage: Population: the repository's own tooling configuration — lint config, test and CI files — NOT the markup. It is read for a configured accessibility checker and an automated accessibility assertion (axe/pa11y/Lighthouse, or a native-toolkit equivalent), and it credits an INVOCATION, never a mention: a licence filename, an import comment or a doc reference earns no rung. Enforcement configured entirely outside the repository leaves no evidence here and cannot be credited.
An a11y linter is configured (Documented) but there's no automated a11y test or CI gate. Add your test runner's axe binding (jest-axe, vitest-axe, cypress-axe or @axe-core/playwright) to verify at runtime, then gate it in CI. What was searched, so you can tell an absence from a miss: the 705 markup file(s) this pass actually assessed, the linter configuration checked in beside them, and this repository's test and CI files — matched by name against the accessibility checkers this dimension carries. An audit run outside the repository, a hosted scanner, or a check whose name is not one of those, is not seen here.
What to do
Accessibility linting is already configured — assert with your test runner's axe binding (jest-axe, vitest-axe, cypress-axe or @axe-core/playwright) in tests, then gate axe/pa11y/Lighthouse in CI.
Other · Architecture — How the codebase splits by code ROLE — domain, application, infrastructure, test, generated. The significance map behind the knowledge/coupling weighting, and a DDD signal in its own right: a thin domain core under fat infrastructure is the anemic-domain smell, quantified. How each file's role is decided, because the split is only as good as that: a generated name or a build-output tree makes it Generated, a test project makes it Test, and otherwise the file's NAMESPACE and PATH words are matched against fixed vocabularies in a fixed ORDER — domain, then infrastructure, then application — so a file whose words hit two layers is counted under the earlier one. A production file matching none of them counts as application, so that share reads 'application or unclassified' rather than a measured application layer. Roles come from naming convention, never from what the code does. On this repository the split was taken from the source tree on disk rather than from a loaded .NET workspace, so a file's role is decided by its PATH segments alone — no declared namespace was available to add to the evidence — and generated output is excluded from the census entirely rather than counted as a generated share.
Method: Roslyn line-count by code ROLE: every source file classified Domain/Application/Infrastructure/Test/Generated by namespace + path convention (the shared CodeRoleClassifier), then significant lines summed per role. Deterministic; the advisory score is the business-logic (domain+application) share of production code.
Coverage: Population: ALL source files, each bucketed into ONE of five roles (Domain/Application/Infrastructure/Test/Generated) by namespace + path convention — a file whose layer isn't named in the convention falls to Application (the neutral default), and the split is line-count, not semantic depth or business value.
What to do
The domain core is a small share of production code, but most of the rest matched no layer vocabulary at all — so this is not yet an anemic-domain finding. The namespace/path convention could not place that code, which makes the composition above a statement about the naming, not about the design. Name the layers (or check that the repository's conventions differ from the ones this check knows) before reading a thin domain into it.
Other · Architecture — Whether the project-reference graph is acyclic (cycles block independent build/deploy and signal eroding boundaries).
Method: Project reference cycles via elementary-DFS over real .csproj references, using the engine shared with D5/D7; cyclic versus acyclic. Exhaustive, deterministic.
Other · Architecture — Whether the codebase has a recognisable, scale-appropriate structure (a named architectural style, or modular enough for its size) rather than being an ad-hoc ball of mud.
Method: Roslyn plus csproj analysis: architecture style detection (DDD, clean, vertical-slice, CQRS) and structure fitness for repo size. Deterministic.
Other · Architecture — Whether interfaces stay focused rather than fat — the Interface-Segregation principle (SOLID 'I').
Method: Roslyn scan: public interface declared-member counts (accessors fold into their property/event); fat-interface threshold (over 15 declared members) flagged per type. Each finding also reports the distinct-OPERATION count — members counted by name, so an overload group counts once — which decides whether it states the caller-side ISP harm or the implementer-side burden of an overload set. TypeScript: exported interfaces that declare behaviour, counted over their REQUIRED operations (method signatures and function-typed properties with no `?`, once per signature) — data-shape interfaces and ambient .d.ts declarations are outside the population; JavaScript declares no interfaces and is not applicable. Deterministic, type-level.
`ChatPreferencesState` declares 19 required operations: `setPlainTextComposer`, `setShowContextWindowUsage`, `setSendShortcut`, `setFollowUpBehavior`, `setConfirmDeleteChats`, `setAlwaysDeleteChatFiles`, `setShowModelDisclaimer`, `setShowResponseModel`, `setShowReplyTimes`, `setShowGenerationDetails`, `setShowInlineEditResponse`, `setThinkingVisibility`, `setToolVisibility`, `setFoldToolActivityIntoThinking`, `setPastedTextMinChars`, `setAutoScrollWhileGenerating`, `setShowScrollToBottomButton`, `setNotifyWhenReplyFinishes`, `setFilesPanelCollapsed`. Counted over its REQUIRED operations — a method signature or a function-typed property with no `?`, once per signature; optional members and data properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — studio/frontend/src/features/chat/stores/chat-preferences-store.ts:36
`ChatsActions` declares 28 required operations: `toggleSelected`, `open`, `rename`, `regenerateTitle`, `togglePin`, `setFavorite`, `toggleFavoriteProject`, `toggleFavoriteSection`, `fork`, `move`, `moveProject`, `viewSection`, `newChatInSection`, `newProjectInSection`, `renameSection`, `removeSection`, `exportSection`, `archive`, `unarchive`, `exportChats`, `remove`, `viewProject`, `filterProject`, `newChatIn`, `editProject`, `togglePinProject`, `exportProject`, `deleteProject`. Counted over its REQUIRED operations — a method signature or a function-typed property with no `?`, once per signature; optional members and data properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — studio/frontend/src/features/library/chats/chats-items.tsx:121
`VoiceSettingsState` declares 26 required operations: `setMicDeviceId`, `setDictationEngine`, `setSttModel`, `setSttGgufVariant`, `setSttDevice`, `setSttProviderId`, `setSttProviderModel`, `setDictationLanguage`, `addDictionaryEntry`, `updateDictionaryEntry`, `commitDictionaryEntry`, `removeDictionaryEntry`, `addRecentDictation`, `removeRecentDictation`, `clearRecentDictations`, `setTtsEnabled`, `setAutoReadAloud`, `setTtsEngine`, `setTtsProviderId`, `setTtsProviderModel`, `setTtsProviderVoice`, `setTtsStudioVoiceId`, `setTtsVoiceURI`, `setTtsRate`, `setTtsPitch`, `setTtsVolume`. Counted over its REQUIRED operations — a method signature or a function-typed property with no `?`, once per signature; optional members and data properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — REDACTED:105
`TrainingConfigActions` declares 80 required operations: `setSelectedModel`, `selectTrainingModel`, `setSelectedModelCacheReference`, `clearSelectedModelCacheReference`, `clearSelectedDatasetCacheReference`, `setSelectedDatasetCacheReference`, `setModelSubfolder`, `setTrainAsDecision`, `setProjectName`, `ensureModelDefaultsLoaded`, `ensureDatasetChecked`, `setTrainingMethod`, `selectHfDataset`, `selectLocalDataset`, `selectS3Source`, `restoreBrowseDatasetSource`, `setDatasetFormat`, `setDataset`, `setDatasetSubset`, `setDatasetSplit`, `setDatasetEvalSplit`, `setDatasetStreaming`, `setManualDatasetOptionsValid`, `markManualDatasetOptionsEdited`, `setDatasetManualMapping`, `setDatasetAdvisorFields`, `setDatasetSliceStart`, `setDatasetSliceEnd`, `setUploadedEvalFile`, `setEpochs`, `setContextLength`, `setVisionImageSize`, `setLearningRate`, `setEmbeddingLearningRate`, `setOptimizerType`, `setLrSchedulerType`, `setLoraRank`, `setLoraAlpha`, `setLoraDropout`, `setLoraVariant`, and 40 more. Counted over its REQUIRED operations — a method signature or a function-typed property with no `?`, once per signature; optional members and data properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — studio/frontend/src/features/training/types/config.ts:212
`TrainingRuntimeActions` declares 17 required operations: `setStopRequested`, `setHydrating`, `setHasHydrated`, `tryBeginStarting`, `setStarting`, `setStartError`, `setStartResources`, `setSseConnected`, `setLastEventId`, `resetRuntime`, `applyStatus`, `applyMetrics`, `applyProgress`, `setStartPending`, `setRuntimeError`, `setSelectedHistoryRunId`, `setCurrentRunViewActive`. Counted over its REQUIRED operations — a method signature or a function-typed property with no `?`, once per signature; optional members and data properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — studio/frontend/src/features/training/types/runtime.ts:131
What to do
Split fat interfaces into focused role-interfaces so clients depend only on what they use.
Other · Architecture — Whether feature slices stay independent (no direct cross-slice references) — the discipline that makes vertical-slice architecture pay off.
Method: Roslyn scan (vertical-slice gated): feature slices resolved from namespaces (.Features.*, .Slices.*) or project names; cross-slice type references detected. Deterministic, traceable.
`entryDuration` (slice 'api-monitor') depends on `ApiMonitorEntry` from slice 'chat'. (×2) — studio/frontend/src/features/api-monitor/api-monitor-overlay.tsx:82, studio/frontend/src/features/api-monitor/api-monitor-page.tsx:195
`SERVER_STATUS` (slice 'api-monitor') depends on `ApiMonitorResponse` from slice 'chat'. (×2) — studio/frontend/src/features/api-monitor/api-monitor-overlay.tsx:90, studio/frontend/src/features/api-monitor/api-monitor-page.tsx:123
`ApiMonitorOverlay` (slice 'api-monitor') depends on `useShortcut` from slice 'settings'. — studio/frontend/src/features/api-monitor/api-monitor-overlay.tsx:153
`ApiMonitorOverlay` (slice 'api-monitor') depends on `getApiMonitor` from slice 'chat'. — studio/frontend/src/features/api-monitor/api-monitor-overlay.tsx:199
`ApiMonitorPanel` (slice 'api-monitor') depends on `useChatRuntimeStore` from slice 'chat'. — studio/frontend/src/features/api-monitor/api-monitor-overlay.tsx:309
`ApiMonitorPanel` (slice 'api-monitor') depends on `useMonitorFrameStore` from slice 'settings'. — studio/frontend/src/features/api-monitor/api-monitor-overlay.tsx:352
`ApiMonitorPanel` (slice 'api-monitor') depends on `FIND_PORTAL_ATTRIBUTE` from slice 'find-in-page'. — studio/frontend/src/features/api-monitor/api-monitor-overlay.tsx:397
`servedModels` (slice 'api-monitor') depends on `modelIdsMatch` from slice 'hub'. — studio/frontend/src/features/api-monitor/api-monitor-page.tsx:260
`openApiSettings` (slice 'api-monitor') depends on `useSettingsDialogStore` from slice 'settings'. — studio/frontend/src/features/api-monitor/api-monitor-page.tsx:290
`ApiMonitorPage` (slice 'api-monitor') depends on `useGuidedTourController` from slice 'tour'. — studio/frontend/src/features/api-monitor/api-monitor-page.tsx:890
`ApiMonitorPage` (slice 'api-monitor') depends on `useChatModelRuntime` from slice 'chat'. — studio/frontend/src/features/api-monitor/api-monitor-page.tsx:920
`ApiMonitorPage` (slice 'api-monitor') depends on `useChatRuntimeStore` from slice 'chat'. — studio/frontend/src/features/api-monitor/api-monitor-page.tsx:921
`ApiMonitorPage` (slice 'api-monitor') depends on `ModelConfigHandoffRequest` from slice 'model-picker'. — studio/frontend/src/features/api-monitor/api-monitor-page.tsx:939
`ApiMonitorPage` (slice 'api-monitor') depends on `loadLanAccess` from slice 'settings'. — studio/frontend/src/features/api-monitor/api-monitor-page.tsx:948
`ApiMonitorPage` (slice 'api-monitor') depends on `publishLanUrls` from slice 'settings'. — studio/frontend/src/features/api-monitor/api-monitor-page.tsx:949
`ApiMonitorPage` (slice 'api-monitor') depends on `getInferenceStatus` from slice 'chat'. — studio/frontend/src/features/api-monitor/api-monitor-page.tsx:963
`ApiMonitorPage` (slice 'api-monitor') depends on `resolveInferenceCheckpointId` from slice 'chat'. — studio/frontend/src/features/api-monitor/api-monitor-page.tsx:964
`ApiMonitorPage` (slice 'api-monitor') depends on `unloadModel` from slice 'chat'. — studio/frontend/src/features/api-monitor/api-monitor-page.tsx:977
`ApiMonitorPage` (slice 'api-monitor') depends on `isExternalModelId` from slice 'chat'. — studio/frontend/src/features/api-monitor/api-monitor-page.tsx:986
`ApiMonitorPage` (slice 'api-monitor') depends on `remoteApiOrigin` from slice 'settings'. — studio/frontend/src/features/api-monitor/api-monitor-page.tsx:1147
`ApiMonitorPage` (slice 'api-monitor') depends on `createModelConfigHandoffRequestId` from slice 'model-picker'. — studio/frontend/src/features/api-monitor/api-monitor-page.tsx:1197
`ApiMonitorPage` (slice 'api-monitor') depends on `GuidedTour` from slice 'tour'. — studio/frontend/src/features/api-monitor/api-monitor-page.tsx:1303
`curlExample` (slice 'api-monitor') depends on `psSingle` from slice 'settings'. — studio/frontend/src/features/api-monitor/api-sampling-example.ts:149
`curlExample` (slice 'api-monitor') depends on `shSingle` from slice 'settings'. — studio/frontend/src/features/api-monitor/api-sampling-example.ts:159
`ApiExampleChoices` (slice 'api-monitor') depends on `ExampleOs` from slice 'settings'. — studio/frontend/src/features/api-monitor/components/api-example-box.tsx:22
`useApiExampleChoices` (slice 'api-monitor') depends on `useExampleOs` from slice 'settings'. — studio/frontend/src/features/api-monitor/components/api-example-box.tsx:33
`useApiExampleChoices` (slice 'api-monitor') depends on `useSettingsPanelPrefsStore` from slice 'settings'. — studio/frontend/src/features/api-monitor/components/api-example-box.tsx:34
`ApiExampleBox` (slice 'api-monitor') depends on `ExampleCodeBox` from slice 'settings'. — studio/frontend/src/features/api-monitor/components/api-example-box.tsx:61
`ApiExampleBox` (slice 'api-monitor') depends on `ExampleToggle` from slice 'settings'. — studio/frontend/src/features/api-monitor/components/api-example-box.tsx:67
`ApiExampleDialog` (slice 'api-monitor') depends on `authFetch` from slice 'auth'. — studio/frontend/src/features/api-monitor/components/api-example-dialog.tsx:39
`loadErrorMessage` (slice 'api-monitor') depends on `useChatRuntimeStore` from slice 'chat'. — studio/frontend/src/features/api-monitor/components/api-model-load-controls.tsx:56
`startStagedDownload` (slice 'api-monitor') depends on `ModelSelectorChangeMeta` from slice 'model-picker'. — studio/frontend/src/features/api-monitor/components/api-model-load-controls.tsx:67
`startStagedDownload` (slice 'api-monitor') depends on `downloadManager` from slice 'hub'. — studio/frontend/src/features/api-monitor/components/api-model-load-controls.tsx:69
`startStagedDownload` (slice 'api-monitor') depends on `DOWNLOAD_KIND` from slice 'hub'. — studio/frontend/src/features/api-monitor/components/api-model-load-controls.tsx:70
`SelectModelInput` (slice 'api-monitor') depends on `useChatModelRuntime` from slice 'chat'. — studio/frontend/src/features/api-monitor/components/api-model-load-controls.tsx:93
`localSelection` (slice 'api-monitor') depends on `resolveResidentInitialConfig` from slice 'model-picker'. — studio/frontend/src/features/api-monitor/components/api-model-load-controls.tsx:100
`localSelection` (slice 'api-monitor') depends on `currentRuntimePerModelConfig` from slice 'model-picker'. — studio/frontend/src/features/api-monitor/components/api-model-load-controls.tsx:124
`useLoadAfterDownload` (slice 'api-monitor') depends on `useRepoDownload` from slice 'hub'. — studio/frontend/src/features/api-monitor/components/api-model-load-controls.tsx:154
What to do
Keep slices independent: share cross-slice needs via an explicit contract/shared-kernel, not direct references between slices.
Other · Architecture — Whether read (query) handlers stay side-effect-free — a query that writes persistent state or raises events breaks CQS and makes reads unsafe to retry, cache, or route to a read replica.
Method: Roslyn scan: CQRS handlers classified query-vs-command by interface (IQueryHandler/ICommandHandler/IRequestHandler<TQuery,TResult>) and name convention (*Query/Get*/Find* vs *Command); each query handler's body checked for persistent-state writes (SaveChanges/repository Add-Update) or event publishes by resolved invocation. Deterministic, type-level, exhaustive over the detected handlers.
Coverage: Population: CQRS handlers identified by IQueryHandler/ICommandHandler/IRequestHandler interface + *Query/Get*/Find*/*Command NAME convention; query purity then checked exhaustively within that set — a query handler using neither convention is invisible, and mutation is a resolved persistence/publish CALL, not full dataflow.
Other · Security — Whether access is authorized by default — a framework authorization attribute/decorator or policy, or imperative guard methods (throw-on-violation) called from handlers.
Method: Roslyn scan: [Authorize] usage and authorization policies, plus imperative throw-on-violation guard methods detected via syntax. Deterministic.
Other · Event Sourcing — Whether the recovery-replay fold is deterministic — state derived purely from each event's own fields, no clock/random/IO on the replay path.
Method: Roslyn syntax scan (event-sourcing gated): Apply/When folds checked for forbidden tokens (DateTime.Now, Guid.NewGuid, Random, IO), stripped of comments/strings. Deterministic, hard fact per fold.
Other · Event Sourcing — Whether domain events stay immutable (private fields, set once) rather than carrying mutable state.
Method: Roslyn scan (event-sourcing gated): persisted events checked for public setters; immutability verified per property/field. Deterministic, hard fact.
Maturity · Maturity — Whether the repo and its projects have a README, and whether it's substantive and current.
Method: Filesystem scan: README presence, word count, and headings for depth; git history for staleness. Exhaustive across root and project dirs, deterministic.
What to do
Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
Add a README to the 6 of 7 project(s) that lack one — worth up to 1.7 pts.
Maturity · Maturity — Whether key decisions (ADRs) and the high-level shape (C4/diagrams) are written down.
Method: Filesystem scan: ADR folder/naming conventions or content, plus Mermaid/PlantUML/C4/architecture.md discovery. Exhaustive, deterministic.
No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
What to do
Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
Maturity · Maturity — Whether the repo is organised deliberately — src/test separation and consistent project naming.
Method: Filesystem scan: src/test folder separation and namespace-prefix consistency (majority RootNamespace agreement). Exhaustive across projects, deterministic.
Production code isn't grouped under a src/ folder — it's spread across several top-level directories, so there's no one place that says 'this is the product'.
What to do
Group production code under src/ (or split deliberately, e.g. backend/ + frontend/) so production and tooling code aren't mixed at the root.
Maturity · Maturity — Whether the README actually describes the code that exists (LLM-judged, advisory).
Method: Judged by language model at low temperature: README accuracy versus actual projects, within a disclosed tolerance. Advisory, not a measured number.
README.md names `unsloth/unsloth`, but no file or folder `unsloth/unsloth` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — README.md:73
README.md names `unsloth/unsloth-rocm`, but no file or folder `unsloth/unsloth-rocm` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — README.md:200
unsloth/kernels/moe/README.md names `grouped_gemm/tests/test_grouped_gemm.py`, but no file or folder `grouped_gemm/tests/test_grouped_gemm.py` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — unsloth/kernels/moe/README.md:42
unsloth/kernels/moe/README.md names `grouped_gemm/tests/test_qwen3_moe.py`, but no file or folder `grouped_gemm/tests/test_qwen3_moe.py` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — unsloth/kernels/moe/README.md:44
unsloth/kernels/moe/README.md names `grouped_gemm/benchmark/benchmark_fused_moe.py`, but no file or folder `grouped_gemm/benchmark/benchmark_fused_moe.py` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — unsloth/kernels/moe/README.md:47
tests/kaggle/t4_smoke/references/README.md names `unsloth/Qwen2.5-0.5B-Instruct-unsloth-bnb-4bit`, but no file or folder `unsloth/Qwen2.5-0.5B-Instruct-unsloth-bnb-4bit` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — tests/kaggle/t4_smoke/references/README.md:247
What to do
Reconcile the README with reality: README.md names `unsloth/unsloth`, but no file or folder `unsloth/unsloth` exists; README.md names `unsloth/unsloth-rocm`, but no file or folder `unsloth/unsloth-rocm` exists; unsloth/kernels/moe/README.md names `grouped_gemm/tests/test_grouped_gemm.py`, but no file or folder `grouped_gemm/tests/test_grouped_gemm.py` exists; unsloth/kernels/moe/README.md names `grouped_gemm/tests/test_qwen3_moe.py`, but no file or folder `grouped_gemm/tests/test_qwen3_moe.py` exists; unsloth/kernels/moe/README.md names `grouped_gemm/benchmark/benchmark_fused_moe.py`, but no file or folder `grouped_gemm/benchmark/benchmark_fused_moe.py` exists.
Readiness · Readiness — Whether an automated pipeline builds and tests every change.
Method: Filesystem scan: CI workflow files (.github/workflows, .gitlab-ci.yml, etc.) for build and test stages. Exhaustive, deterministic.
Do you agree with this assessment?
P10 · Library API & versioning10.0 / 10Exemplary○ Nothing flagged
Readiness · Readiness — For a library: a deliberate (small) public API surface and explicit semantic versioning so consumers can depend on it safely.
Method: Roslyn scan: public API surface area and semantic-versioning markers (SemVer attributes, changelog entries) for libraries; off .NET, a library is the ecosystem's publication act (an npm package that is not private and names an entry point, a PyPI distribution with a build system, a Rust library crate, a Maven/Gradle module that publishes, a Go module with no package main, a gemspec, a Composer library, a SwiftPM library product, a pub.dev or Hex package), its surface is the share of types the language model records as public (Rust, Swift, Java, Kotlin, Go, Dart; not measured where the model records no type visibility or, as in TypeScript, only module-level export), and its version is read from the manifest, a semver CHANGELOG, release tooling or semver git tags. Exhaustive, deterministic.
Do you agree with this assessment?
P2 · Observability8.0 / 10Strong✓ Tool-verified
Readiness · Readiness — Whether the code is diagnosable in production — structured logging, tracing/metrics, health checks.
Readiness · Readiness — Whether SAST, secret/dependency scanning and performance benchmarking are wired in (presence, not runtime).
Method: Filesystem scan: SAST configuration, dependency-update automation, secret scanning, and a benchmark harness or benchmark step — in this repository's own ecosystem. Exhaustive, deterministic.
Readiness · Readiness — Whether releases are automated and safely reversible (probes, rolling updates, approval gates) — from manifests/pipeline files, not the live environment.
Method: Filesystem scan: deployment manifests/IaC (K8s YAML, Helm, Terraform) for rolling updates, probes, approval gates, migration hooks. Exhaustive, deterministic.
Readiness · Readiness — Whether releases are traceable — a maintained changelog and explicit version stamping.
Method: Filesystem scan: changelog file presence and version tags in csproj or git tags. Exhaustive, deterministic.
No CHANGELOG/HISTORY/RELEASES file — what shipped when isn't easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)
What to do
Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release.
Readiness · Readiness — Whether outbound HTTP calls are wrapped in resilience (retry/timeout/circuit-breaker) so a failing dependency doesn't cascade.
Method: Source scan: outbound HTTP clients and what bounds them — resilience handlers (Polly, AddStandardResilienceHandler) on .NET; on Go, the JVM, Python, JavaScript/TypeScript, Ruby, PHP, Rust, Elixir, Swift, Dart and Erlang, a timeout, deadline, retry or breaker beside each call, or a process-wide client default (a framework-wide deadline such as Drupal core's, Laravel's or actix's awc counts). Exhaustive, deterministic.
`httpx.AsyncClient(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout. (×2) — studio/backend/core/inference/inference_gate.py:77, studio/backend/core/inference/llama_http.py:25
What to do
Pass `timeout=` on every `requests`/`httpx` call (requests has no default and will wait forever), mount an `HTTPAdapter(max_retries=Retry(...))` on shared sessions, and wrap calls to flaky dependencies in `tenacity` retries or a `pybreaker` circuit breaker.
Readiness · Performance — Whether asynchronous code stays responsive — it avoids sync-over-async blocking (a .NET .Wait()/.GetAwaiter().GetResult(), a time.sleep or blocking HTTP call inside a Python coroutine, a *Sync call inside an async JavaScript function, block_on inside a Rust async fn, runBlocking inside a Kotlin suspend function, block() inside a Reactor publisher) that stalls a thread or event loop and risks deadlock, and, where the code is a reusable library on .NET, awaits with ConfigureAwait(false) so it never captures and stalls its caller's context.
Method: Production-source scan: sync-over-async blocking counted everywhere — .Wait()/.GetAwaiter().GetResult() in .NET; off .NET, read from the language model, a blocking call inside an async function (Python, TS/JS, Rust, Kotlin, Swift, Dart) or inside a Java method returning a Reactor Mono/Flux or a Scala method returning a Future or effect — and, for a .NET library with ≥5 awaits, the share of awaits using ConfigureAwait(false). Deterministic, syntax/text detection.
`unzipSync` in `readOpenDocumentXmlFiles` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — studio/frontend/src/features/chat/open-document.ts:96
`readFileSync` in `bundleOne` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — studio/frontend/vite-preview-runtime.ts:190
What to do
TypeScript/JavaScript: use the promise APIs (fs/promises, a promisified child_process.execFile, the async zlib/crypto functions) and await them instead of the *Sync variants.
Do you agree with this assessment?
R1 · Type Safety9.8 / 10Exemplary✓ Tool-verified
React / JS · Code Health — How much of the frontend is typed TypeScript vs untyped JavaScript.
Method: Frontend file inventory: the share of typed TypeScript vs untyped JavaScript across the source tree. Deterministic, exhaustive over frontend files.
What to do
Migrate the remaining .js/.jsx files to TypeScript.
React / JS · Code Health — Near-exact copy-pasted blocks of substantial extent across the frontend (the D4 clone algorithm over JS/TS tokens, D-386): a block is reported only where its copies still agree on most of their own identifiers and literals, or were renamed as they were pasted but kept most of their constants, and where the copies carry enough code to stand on their own or the copied extent reaches 30 lines — so a re-implementation sharing neither names nor values, and a small pasted declaration, are both found and deliberately not reported, and a clean R10 is not a claim that nothing was copied.
Method: Near-exact copy-pasted blocks of substantial extent across the frontend (the D4 clone algorithm run over JS/TS tokens). Masking finds the candidates; a block is reported when its copies still agree on most of their own identifiers and literals, or when a renamed copy still agrees on most of its constants, AND the copies carry enough code to stand on their own — or when the copied extent reaches 30 lines. So a re-implementation sharing neither names nor values, and a small pasted declaration, are deliberately not counted. Deterministic.
455 duplicated blocks under studio/frontend/src/features/ have copies in at least two of the sibling directories api-monitor, audio, auth, browser, chat, data-recipes (+24 more sibling(s) not listed) — 188 of them are reported below, and 267 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 455 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 455 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 455 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — studio/frontend/src/features/dataset-picker/components/dataset-selector-lists.tsx:58
165 duplicated blocks under studio/frontend/src/ have copies in at least two of the sibling directories app, components, features, hooks, lib — 85 of them are reported below, and 80 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 165 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 165 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 165 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — studio/frontend/src/components/assistant-ui/thread.tsx:7421
42 duplicated blocks under studio/frontend/src/features/settings/ have copies in at least two of the sibling directories components, hooks, lib, tabs — 22 of them are reported below, and 20 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 42 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 42 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 42 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — studio/frontend/src/features/settings/components/usage-examples.tsx:953
17 duplicated blocks under studio/frontend/src/features/recipe-studio/ have copies in at least two of the sibling directories components, dialogs, easy, executions, hooks, stores (+1 more sibling(s) not listed) — 9 of them are reported below, and 8 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 17 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 17 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 17 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — studio/frontend/src/features/recipe-studio/stores/helpers/model-infra-layout.ts:29
16 duplicated blocks under studio/frontend/src/features/recipe-studio/dialogs/ have copies in at least two of the sibling directories expression, llm, markdown-note, models, samplers, seed (+2 more sibling(s) not listed) — 7 of them are reported below, and 9 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 16 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 16 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 16 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — studio/frontend/src/features/recipe-studio/dialogs/markdown-note/markdown-note-dialog.tsx:11
11 duplicated blocks under studio/frontend/src/features/chat/ have copies in at least two of the sibling directories api, artifacts, hooks, lib, prompt-storage, stores (+2 more sibling(s) not listed) — 6 of them are reported below, and 5 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 11 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 11 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 11 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — studio/frontend/src/features/chat/hooks/use-chat-model-runtime.ts:2987
5 duplicated blocks under studio/frontend/src/features/audio/ have copies in at least two of the sibling directories components, hooks, pages, tools — 2 of them are reported below, and 3 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 5 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 5 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 5 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — studio/frontend/src/features/audio/components/save-voice-dialog.tsx:133
5 duplicated blocks under studio/frontend/src/features/hub/ have copies in at least two of the sibling directories download-manager, hooks, inventory, lib, stores — 4 of them are reported below, and 1 is counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 5 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 5 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 5 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — studio/frontend/src/features/hub/hooks/use-hub-model-search.ts:200
studio/frontend/src/features/audio/hooks/use-convert-generation.ts:89 · studio/frontend/src/features/audio/hooks/use-edit-generation.ts:94 — the two spans are one implementation copied and then locally edited — 1069 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — studio/frontend/src/features/audio/hooks/use-convert-generation.ts:89
studio/frontend/src/features/settings/components/lan-access-section.tsx:109 · studio/frontend/src/features/settings/components/remote-access-section.tsx:90 — the two spans are one implementation copied and then locally edited — 907 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — studio/frontend/src/features/settings/components/lan-access-section.tsx:109
studio/frontend/src/features/dataset-picker/components/dataset-selector-lists.tsx:58 · studio/frontend/src/features/train-model-picker/components/train-model-picker-lists.tsx:69 — the two spans are one implementation copied and then locally edited — 767 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — studio/frontend/src/features/dataset-picker/components/dataset-selector-lists.tsx:58
studio/frontend/src/features/library/chats/chats-toolbar.tsx:128 · studio/frontend/src/features/library/components/library-toolbar.tsx:132 — the two spans are one implementation copied and then locally edited — 892 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — studio/frontend/src/features/library/chats/chats-toolbar.tsx:128
studio/frontend/src/features/training/lib/resume-training-run.ts:98 · studio/frontend/src/features/training/lib/start-fresh-training-run.ts:116 — the two spans are one implementation copied and then locally edited — 734 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — studio/frontend/src/features/training/lib/resume-training-run.ts:98
studio/frontend/src/features/images/images-page.tsx:2709 · studio/frontend/src/features/video/video-page.tsx:2041 — the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. — studio/frontend/src/features/images/images-page.tsx:2709
studio/frontend/src/features/images/images-page.tsx:1065 · studio/frontend/src/features/images/localized-edit-canvas.tsx:35 — the two spans are one implementation copied and then locally edited — 1060 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — studio/frontend/src/features/images/images-page.tsx:1065
studio/frontend/src/components/ui/dropdown-menu.tsx:89 · studio/frontend/src/components/ui/menubar.tsx:99 — the two spans are one implementation copied and then locally edited — 515 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — studio/frontend/src/components/ui/dropdown-menu.tsx:89
studio/frontend/src/features/settings/components/audio-api-examples.tsx:76 · studio/frontend/src/features/settings/components/media-api-examples.tsx:42 — the two spans are one implementation copied and then locally edited — 757 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — studio/frontend/src/features/settings/components/audio-api-examples.tsx:76
studio/frontend/src/components/assistant-ui/tool-fallback.tsx:95 · studio/frontend/src/components/assistant-ui/tool-group.tsx:76 — the two spans are one implementation copied and then locally edited — 440 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — studio/frontend/src/components/assistant-ui/tool-fallback.tsx:95
studio/frontend/src/features/audio/tools/clone-panels.tsx:37 · studio/frontend/src/features/audio/tools/convert-panels.tsx:38 — the two spans are one implementation copied and then locally edited — 528 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — studio/frontend/src/features/audio/tools/clone-panels.tsx:37
studio/frontend/src/features/images/images-page.tsx:3475 · studio/frontend/src/features/video/video-page.tsx:2456 — the two spans are one implementation copied and then locally edited — 682 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — studio/frontend/src/features/images/images-page.tsx:3475
studio/frontend/src/components/ui/context-menu.tsx:33 · studio/frontend/src/components/ui/dropdown-menu.tsx:19 — the two spans are one implementation copied and then locally edited — 370 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — studio/frontend/src/components/ui/context-menu.tsx:33
studio/frontend/src/components/ui/dialog.tsx:52 · studio/frontend/src/components/ui/sheet.tsx:59 — the two spans are one implementation copied and then locally edited — 436 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — studio/frontend/src/components/ui/dialog.tsx:52
studio/frontend/src/features/images/mask-from-text-panel.tsx:69 · studio/frontend/src/features/images/prompt-enhance-panel.tsx:83 — the two spans are one implementation copied and then locally edited — 489 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — studio/frontend/src/features/images/mask-from-text-panel.tsx:69
studio/frontend/src/components/assistant-ui/thread.tsx:3431 · studio/frontend/src/components/assistant-ui/thread.tsx:3547 · studio/frontend/src/components/assistant-ui/thread.tsx:3797 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. — studio/frontend/src/components/assistant-ui/thread.tsx:3431
studio/frontend/src/features/settings/components/sidebar-menu-customizer.tsx:39 · studio/frontend/src/features/settings/components/sidebar-nav-customizer.tsx:48 — the two spans are one implementation copied and then locally edited — 506 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — studio/frontend/src/features/settings/components/sidebar-menu-customizer.tsx:39
studio/frontend/src/features/hub/catalog/model-card.tsx:238 · studio/frontend/src/features/hub/catalog/models-catalog-rows.tsx:455 — the two spans are one implementation copied and then locally edited — 390 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — studio/frontend/src/features/hub/catalog/model-card.tsx:238
studio/frontend/smoke-heavy-thread-main.tsx:746 · studio/frontend/smoke-thread-weight-main.tsx:302 — the two spans are one implementation copied and then locally edited — 547 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — studio/frontend/smoke-heavy-thread-main.tsx:746
studio/frontend/src/components/ui/context-menu.tsx:202 · studio/frontend/src/components/ui/menubar.tsx:136 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — studio/frontend/src/components/ui/context-menu.tsx:202
studio/frontend/src/features/studio/sections/charts/grad-norm-chart-card.tsx:4 · studio/frontend/src/features/studio/sections/charts/learning-rate-chart-card.tsx:4 — these 2 files are line-for-line copies of one another — 73 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — studio/frontend/src/features/studio/sections/charts/grad-norm-chart-card.tsx:4
studio/frontend/src/features/audio/hooks/use-edit-generation.ts:335 · studio/frontend/src/features/audio/hooks/use-separate-generation.ts:242 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — studio/frontend/src/features/audio/hooks/use-edit-generation.ts:335
studio/frontend/src/features/recipe-studio/dialogs/samplers/datetime-dialog.tsx:36 · studio/frontend/src/features/recipe-studio/dialogs/samplers/timedelta-dialog.tsx:32 — the two spans are one implementation copied and then locally edited — 369 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — studio/frontend/src/features/recipe-studio/dialogs/samplers/datetime-dialog.tsx:36
studio/frontend/src/features/recipe-studio/dialogs/samplers/gaussian-dialog.tsx:22 · studio/frontend/src/features/recipe-studio/dialogs/samplers/uniform-dialog.tsx:22 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — studio/frontend/src/features/recipe-studio/dialogs/samplers/gaussian-dialog.tsx:22
studio/frontend/src/components/assistant-ui/thread.tsx:7421 · studio/frontend/src/features/chat/shared-composer.tsx:2985 — the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct — and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal's entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins — a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are. — studio/frontend/src/components/assistant-ui/thread.tsx:7421
studio/frontend/src/features/hub/catalog/dataset-download-section.tsx:49 · studio/frontend/src/features/hub/catalog/safetensors-download-card.tsx:103 — the two spans are one implementation copied and then locally edited — 309 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — studio/frontend/src/features/hub/catalog/dataset-download-section.tsx:49
studio/frontend/src/features/library/chats/chats-items.tsx:1482 · studio/frontend/src/features/library/chats/chats-items.tsx:1720 — the two spans are one implementation copied and then locally edited — 338 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — studio/frontend/src/features/library/chats/chats-items.tsx:1482
REDACTED:8202 · REDACTED:8349 · REDACTED:8483 — all 3 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — REDACTED:8202
studio/frontend/src/features/hub/catalog/models-table.tsx:357 · studio/frontend/src/features/hub/catalog/models-table.tsx:513 — the two spans are one implementation copied and then locally edited — 289 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — studio/frontend/src/features/hub/catalog/models-table.tsx:357
studio/frontend/src/components/assistant-ui/thread.tsx:6718 · studio/frontend/src/features/chat/shared-composer.tsx:3101 — the two spans are one implementation copied and then locally edited — 282 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — studio/frontend/src/components/assistant-ui/thread.tsx:6718
studio/frontend/src/features/browser/downloads-button.tsx:53 · studio/frontend/src/features/browser/internal-pages.tsx:647 — the two spans are one implementation copied and then locally edited — 376 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — studio/frontend/src/features/browser/downloads-button.tsx:53
studio/frontend/src/features/images/images-page.tsx:893 · studio/frontend/src/features/video/video-page.tsx:562 — the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. — studio/frontend/src/features/images/images-page.tsx:893
What to do
Act on each finding's own remediation rather than one rule: the move depends on what recurs. Where the copies are executable blocks, give the shared part one home and call it from each site; where they are declarations, a listing, a specialisation already delegating to its base, or one shape repeated per entity, there is no call site and the move is a shared type, a generated set or a factory — sometimes there is nothing to extract.
React / JS · Architecture — Conformance to the detected frontend architecture layout (feature-sliced / layered src) plus cross-package deep-import rules (D-386).
Method: Conformance to the detected frontend layout (feature-sliced / layered src) plus cross-package deep-import rules, over the module graph. Deterministic.
studio/frontend/src/features/api-monitor/api-monitor-overlay.tsx:7 imports studio/frontend/src/features/chat/api/chat-api.ts against the feature-sliced rules. — studio/frontend/src/features/api-monitor/api-monitor-overlay.tsx:7
studio/frontend/src/features/api-monitor/api-monitor-overlay.tsx:8 imports studio/frontend/src/features/chat/stores/chat-runtime-store.ts against the feature-sliced rules. — studio/frontend/src/features/api-monitor/api-monitor-overlay.tsx:8
studio/frontend/src/features/api-monitor/api-monitor-overlay.tsx:13 imports studio/frontend/src/features/find-in-page/lib/find-attributes.ts against the feature-sliced rules. — studio/frontend/src/features/api-monitor/api-monitor-overlay.tsx:13
studio/frontend/src/features/api-monitor/api-monitor-overlay.tsx:14 imports studio/frontend/src/features/settings/index.ts against the feature-sliced rules. — studio/frontend/src/features/api-monitor/api-monitor-overlay.tsx:14
studio/frontend/src/features/api-monitor/api-monitor-page.tsx:5 imports studio/frontend/src/features/tour/index.ts against the feature-sliced rules. — studio/frontend/src/features/api-monitor/api-monitor-page.tsx:5
studio/frontend/src/features/api-monitor/api-monitor-page.tsx:22 imports studio/frontend/src/features/chat/api/chat-api.ts against the feature-sliced rules. — studio/frontend/src/features/api-monitor/api-monitor-page.tsx:22
studio/frontend/src/features/api-monitor/api-monitor-page.tsx:23 imports studio/frontend/src/features/chat/lib/apply-inference-status-to-store.ts against the feature-sliced rules. — studio/frontend/src/features/api-monitor/api-monitor-page.tsx:23
studio/frontend/src/features/api-monitor/api-monitor-page.tsx:24 imports studio/frontend/src/features/chat/stores/chat-runtime-store.ts against the feature-sliced rules. — studio/frontend/src/features/api-monitor/api-monitor-page.tsx:24
studio/frontend/src/features/api-monitor/api-monitor-page.tsx:25 imports studio/frontend/src/features/chat/index.ts against the feature-sliced rules. — studio/frontend/src/features/api-monitor/api-monitor-page.tsx:25
studio/frontend/src/features/api-monitor/api-monitor-page.tsx:27 imports studio/frontend/src/features/chat/external-providers.ts against the feature-sliced rules. — studio/frontend/src/features/api-monitor/api-monitor-page.tsx:27
studio/frontend/src/features/api-monitor/api-monitor-page.tsx:28 imports studio/frontend/src/features/hub/lib/model-identity.ts against the feature-sliced rules. — studio/frontend/src/features/api-monitor/api-monitor-page.tsx:28
studio/frontend/src/features/api-monitor/api-monitor-page.tsx:29 imports studio/frontend/src/features/model-picker/index.ts against the feature-sliced rules. — studio/frontend/src/features/api-monitor/api-monitor-page.tsx:29
studio/frontend/src/features/api-monitor/api-monitor-page.tsx:33 imports studio/frontend/src/features/settings/index.ts against the feature-sliced rules. — studio/frontend/src/features/api-monitor/api-monitor-page.tsx:33
studio/frontend/src/features/api-monitor/api-monitor-page.tsx:38 imports studio/frontend/src/features/settings/api/remote-access-state.ts against the feature-sliced rules. — studio/frontend/src/features/api-monitor/api-monitor-page.tsx:38
studio/frontend/src/features/api-monitor/api-sampling-example.ts:4 imports studio/frontend/src/features/settings/components/agent-command.ts against the feature-sliced rules. — studio/frontend/src/features/api-monitor/api-sampling-example.ts:4
studio/frontend/src/features/api-monitor/components/api-example-box.tsx:4 imports studio/frontend/src/features/settings/components/api-example-parts.tsx against the feature-sliced rules. — studio/frontend/src/features/api-monitor/components/api-example-box.tsx:4
studio/frontend/src/features/api-monitor/components/api-example-box.tsx:10 imports studio/frontend/src/features/settings/stores/settings-panel-prefs-store.ts against the feature-sliced rules. — studio/frontend/src/features/api-monitor/components/api-example-box.tsx:10
studio/frontend/src/features/api-monitor/components/api-example-dialog.tsx:11 imports studio/frontend/src/features/auth/index.ts against the feature-sliced rules. — studio/frontend/src/features/api-monitor/components/api-example-dialog.tsx:11
studio/frontend/src/features/api-monitor/components/api-model-load-controls.tsx:8 imports studio/frontend/src/features/chat/index.ts against the feature-sliced rules. — studio/frontend/src/features/api-monitor/components/api-model-load-controls.tsx:8
studio/frontend/src/features/api-monitor/components/api-model-load-controls.tsx:16 imports studio/frontend/src/features/hub/index.ts against the feature-sliced rules. — studio/frontend/src/features/api-monitor/components/api-model-load-controls.tsx:16
studio/frontend/src/features/api-monitor/components/api-model-load-controls.tsx:23 imports studio/frontend/src/features/model-picker/index.ts against the feature-sliced rules. — studio/frontend/src/features/api-monitor/components/api-model-load-controls.tsx:23
studio/frontend/src/features/api-monitor/components/api-model-load-controls.tsx:33 imports studio/frontend/src/features/npu/index.ts against the feature-sliced rules. — studio/frontend/src/features/api-monitor/components/api-model-load-controls.tsx:33
studio/frontend/src/features/api-monitor/components/saved-model-settings.tsx:10 imports studio/frontend/src/features/model-picker/api/model-overrides.ts against the feature-sliced rules. — studio/frontend/src/features/api-monitor/components/saved-model-settings.tsx:10
studio/frontend/src/features/api-monitor/components/saved-model-settings.tsx:16 imports studio/frontend/src/features/model-picker/model-config/per-model-config.ts against the feature-sliced rules. — studio/frontend/src/features/api-monitor/components/saved-model-settings.tsx:16
studio/frontend/src/features/api-monitor/forget-model-override.ts:4 imports studio/frontend/src/features/model-picker/api/model-overrides.ts against the feature-sliced rules. — studio/frontend/src/features/api-monitor/forget-model-override.ts:4
studio/frontend/src/features/api-monitor/forget-model-override.ts:5 imports studio/frontend/src/features/model-picker/model-config/model-identity.ts against the feature-sliced rules. — studio/frontend/src/features/api-monitor/forget-model-override.ts:5
studio/frontend/src/features/api-monitor/slots-settings-request.ts:4 imports studio/frontend/src/features/hub/lib/model-identity.ts against the feature-sliced rules. — studio/frontend/src/features/api-monitor/slots-settings-request.ts:4
studio/frontend/src/features/api-monitor/slots-settings-request.ts:5 imports studio/frontend/src/features/model-picker/model-config/model-identity.ts against the feature-sliced rules. — studio/frontend/src/features/api-monitor/slots-settings-request.ts:5
studio/frontend/src/features/api-monitor/slots-settings-request.ts:7 imports studio/frontend/src/features/model-picker/model-config/model-config-handoff.ts against the feature-sliced rules. — studio/frontend/src/features/api-monitor/slots-settings-request.ts:7
studio/frontend/src/features/api-monitor/use-api-monitor.ts:4 imports studio/frontend/src/features/chat/api/chat-api.ts against the feature-sliced rules. — studio/frontend/src/features/api-monitor/use-api-monitor.ts:4
studio/frontend/src/features/api-monitor/use-resident-run-target.ts:4 imports studio/frontend/src/features/chat/index.ts against the feature-sliced rules. — studio/frontend/src/features/api-monitor/use-resident-run-target.ts:4
studio/frontend/src/features/api-monitor/use-resident-run-target.ts:5 imports studio/frontend/src/features/hub/index.ts against the feature-sliced rules. — studio/frontend/src/features/api-monitor/use-resident-run-target.ts:5
studio/frontend/src/features/api-monitor/use-resident-run-target.ts:6 imports studio/frontend/src/features/model-picker/index.ts against the feature-sliced rules. — studio/frontend/src/features/api-monitor/use-resident-run-target.ts:6
studio/frontend/src/features/audio/api.ts:4 imports studio/frontend/src/features/auth/index.ts against the feature-sliced rules. — studio/frontend/src/features/audio/api.ts:4
studio/frontend/src/features/audio/audio-options-fields.tsx:13 imports studio/frontend/src/features/chat/index.ts against the feature-sliced rules. — studio/frontend/src/features/audio/audio-options-fields.tsx:13
studio/frontend/src/features/audio/audio-page-policy.ts:6 imports studio/frontend/src/features/model-picker/components/model-selector/audio-picker-policy.ts against the feature-sliced rules. — studio/frontend/src/features/audio/audio-page-policy.ts:6
studio/frontend/src/features/audio/audio-page.tsx:14 imports studio/frontend/src/features/tour/index.ts against the feature-sliced rules. — studio/frontend/src/features/audio/audio-page.tsx:14
studio/frontend/src/features/audio/audio-page.tsx:18 imports studio/frontend/src/features/chat/index.ts against the feature-sliced rules. — studio/frontend/src/features/audio/audio-page.tsx:18
studio/frontend/src/features/audio/audio-page.tsx:26 imports studio/frontend/src/features/hub/index.ts against the feature-sliced rules. — studio/frontend/src/features/audio/audio-page.tsx:26
studio/frontend/src/features/audio/audio-page.tsx:27 imports studio/frontend/src/features/hub/stores/inventory-events.ts against the feature-sliced rules. — studio/frontend/src/features/audio/audio-page.tsx:27
What to do
Fix the listed violations: respect the layer/slice order — import only through a slice's public index and never upward into a higher layer (918 rows); import through the target package's declared public entry rather than a deep path into its internals or a relative path into its directory (1 row).
React / JS · Code Health — Per-function cyclomatic/cognitive complexity from the token-level function scanner (D-386) — real branching, not a regex heuristic.
Method: Per-function cyclomatic/cognitive complexity from a token-level function scanner (real branching, not a regex heuristic), computed over every frontend function. Deterministic.
run has cyclomatic complexity 678 and cognitive complexity 1460; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — studio/frontend/src/features/chat/api/chat-adapter.ts:4614
performLoad has cyclomatic complexity 409 and cognitive complexity 453; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — studio/frontend/src/features/chat/hooks/use-chat-model-runtime.ts:2109
ImagesPage has cyclomatic complexity 284 and cognitive complexity 253; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — studio/frontend/src/features/images/images-page.tsx:1650
(anonymous) has cyclomatic complexity 245 and cognitive complexity 320; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — studio/frontend/src/features/chat/hooks/use-chat-model-runtime.ts:1295
applyActiveModelStatusToStore has cyclomatic complexity 241 and cognitive complexity 226; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — studio/frontend/src/features/chat/lib/apply-inference-status-to-store.ts:172
ModelConfigPage has cyclomatic complexity 223 and cognitive complexity 184; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — studio/frontend/src/features/model-picker/components/model-config-page.tsx:2539
AudioPage has cyclomatic complexity 210 and cognitive complexity 196; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — studio/frontend/src/features/audio/audio-page.tsx:264
(anonymous) has cyclomatic complexity 171 and cognitive complexity 261; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — studio/frontend/tests/chat-barrel-module-scope-reads.test.ts:556
ExportPage has cyclomatic complexity 171 and cognitive complexity 139; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — studio/frontend/src/features/export/export-page.tsx:195
perform has cyclomatic complexity 170 and cognitive complexity 227; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — studio/frontend/src/features/browser/agent/executor.ts:732
DiffusionTrainPanel has cyclomatic complexity 167 and cognitive complexity 139; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — studio/frontend/src/features/images/train/diffusion-train-panel.tsx:377
AppSidebar has cyclomatic complexity 163 and cognitive complexity 146; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — studio/frontend/src/components/app-sidebar.tsx:1340
getConfigErrors has cyclomatic complexity 162 and cognitive complexity 321; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — studio/frontend/src/features/recipe-studio/utils/validation.ts:14
ensureModelLoaded has cyclomatic complexity 159 and cognitive complexity 175; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — studio/frontend/src/features/chat/shared-composer.tsx:1660
SharedComposer has cyclomatic complexity 151 and cognitive complexity 133; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — studio/frontend/src/features/chat/shared-composer.tsx:621
ChatPage has cyclomatic complexity 151 and cognitive complexity 126; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — studio/frontend/src/features/chat/chat-page.tsx:2661
GgufDownloadCard has cyclomatic complexity 132 and cognitive complexity 101; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — studio/frontend/src/features/hub/catalog/gguf-download-card.tsx:657
(anonymous) has cyclomatic complexity 127 and cognitive complexity 199; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — studio/frontend/src/features/chat/api/chat-adapter.ts:6761
VideoGenerator has cyclomatic complexity 127 and cognitive complexity 112; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — studio/frontend/src/features/video/video-page.tsx:1053
(anonymous) has cyclomatic complexity 125 and cognitive complexity 141; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — studio/frontend/src/features/images/images-page.tsx:5341
What to do
Break down the listed branch-heavy functions; aim P95 cyclomatic ≤ 5.
Do you agree with this assessment?
R3 · Large Files4.7 / 10Adequate✓ Tool-verified
React / JS · Code Health — How many source files exceed the large-file threshold.
Method: Components/modules exceeding the large-file threshold, counted exhaustively across the frontend source tree. Deterministic.
studio/frontend/src/components/assistant-ui/thread.tsx has 9153 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — studio/frontend/src/components/assistant-ui/thread.tsx:1
studio/frontend/src/features/chat/api/chat-adapter.ts has 9109 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — studio/frontend/src/features/chat/api/chat-adapter.ts:1
REDACTED has 9062 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — REDACTED:1
studio/frontend/src/features/images/images-page.tsx has 7546 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — studio/frontend/src/features/images/images-page.tsx:1
studio/frontend/src/components/app-sidebar.tsx has 7211 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — studio/frontend/src/components/app-sidebar.tsx:1
studio/frontend/src/features/chat/stores/chat-runtime-store.ts has 6372 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — studio/frontend/src/features/chat/stores/chat-runtime-store.ts:1
studio/frontend/src/features/chat/chat-page.tsx has 4951 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — studio/frontend/src/features/chat/chat-page.tsx:1
studio/frontend/src/features/video/video-page.tsx has 4843 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — studio/frontend/src/features/video/video-page.tsx:1
studio/frontend/src/features/chat/runtime-provider.tsx has 4467 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — studio/frontend/src/features/chat/runtime-provider.tsx:1
studio/frontend/src/features/model-picker/components/model-config-page.tsx has 4234 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — studio/frontend/src/features/model-picker/components/model-config-page.tsx:1
studio/frontend/src/features/chat/hooks/use-chat-model-runtime.ts has 4093 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — studio/frontend/src/features/chat/hooks/use-chat-model-runtime.ts:1
studio/frontend/src/features/chat/shared-composer.tsx has 3519 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — studio/frontend/src/features/chat/shared-composer.tsx:1
studio/frontend/src/features/chat/prompt-storage/prompt-storage-dialog.tsx has 2683 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — studio/frontend/src/features/chat/prompt-storage/prompt-storage-dialog.tsx:1
studio/frontend/src/features/chat/chat-providers-dialog.tsx has 2521 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — studio/frontend/src/features/chat/chat-providers-dialog.tsx:1
studio/frontend/src/features/images/train/diffusion-train-panel.tsx has 2476 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — studio/frontend/src/features/images/train/diffusion-train-panel.tsx:1
studio/frontend/src/features/browser/browser-panel.tsx has 2470 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — studio/frontend/src/features/browser/browser-panel.tsx:1
studio/frontend/src/features/audio/audio-page.tsx has 2366 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — studio/frontend/src/features/audio/audio-page.tsx:1
studio/frontend/src/features/export/export-page.tsx has 2197 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — studio/frontend/src/features/export/export-page.tsx:1
studio/frontend/src/features/hub/hub-page.tsx has 2197 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — studio/frontend/src/features/hub/hub-page.tsx:1
REDACTED has 2146 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — REDACTED:1
studio/frontend/src/features/chat/chat-settings-sheet.tsx has 2107 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — studio/frontend/src/features/chat/chat-settings-sheet.tsx:1
studio/frontend/src/features/chat/api/chat-api.ts has 2024 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — studio/frontend/src/features/chat/api/chat-api.ts:1
studio/frontend/src/features/settings/tabs/voice-tab.tsx has 1900 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — studio/frontend/src/features/settings/tabs/voice-tab.tsx:1
studio/frontend/src/features/library/chats/chats-items.tsx has 1838 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — studio/frontend/src/features/library/chats/chats-items.tsx:1
studio/frontend/src/features/api-monitor/api-monitor-page.tsx has 1763 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — studio/frontend/src/features/api-monitor/api-monitor-page.tsx:1
studio/frontend/src/features/training/stores/training-config-store.ts has 1760 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — studio/frontend/src/features/training/stores/training-config-store.ts:1
studio/frontend/src/components/assistant-ui/code-fence-defer.tsx has 1741 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — studio/frontend/src/components/assistant-ui/code-fence-defer.tsx:1
studio/frontend/src/features/model-picker/components/model-selector/model-catalog.check.ts has 1688 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — studio/frontend/src/features/model-picker/components/model-selector/model-catalog.check.ts:1
studio/frontend/src/features/library/chats/chats-library.tsx has 1678 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — studio/frontend/src/features/library/chats/chats-library.tsx:1
studio/frontend/src/features/model-picker/components/model-selector/model-catalog.ts has 1656 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — studio/frontend/src/features/model-picker/components/model-selector/model-catalog.ts:1
studio/frontend/src/features/model-picker/model-config/per-model-config.ts has 1648 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — studio/frontend/src/features/model-picker/model-config/per-model-config.ts:1
REDACTED has 1629 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — REDACTED:1
studio/frontend/src/components/assistant-ui/streaming-render-schedule.ts has 1608 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — studio/frontend/src/components/assistant-ui/streaming-render-schedule.ts:1
REDACTED has 1568 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — REDACTED:1
studio/frontend/src/features/images/lib/image-metadata.ts has 1538 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — studio/frontend/src/features/images/lib/image-metadata.ts:1
studio/frontend/src/features/rag/components/thread-documents-bar.tsx has 1538 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — studio/frontend/src/features/rag/components/thread-documents-bar.tsx:1
studio/frontend/src/features/settings/tabs/agents-tab.tsx has 1516 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — studio/frontend/src/features/settings/tabs/agents-tab.tsx:1
studio/frontend/src/features/chat/provider-capabilities.ts has 1420 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — studio/frontend/src/features/chat/provider-capabilities.ts:1
studio/frontend/src/features/chat/utils/chat-history-storage.ts has 1401 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — studio/frontend/src/features/chat/utils/chat-history-storage.ts:1
studio/frontend/src/lib/latex.ts has 1397 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — studio/frontend/src/lib/latex.ts:1
What to do
Split each oversized file along the responsibilities already in it, into smaller focused modules in the same package.
Do you agree with this assessment?
R4 · Test Coverage9.7 / 10Exemplary✓ Tool-verified
React / JS · Readiness — Static test reachability (D-386): the share of production files reachable from any test via the import graph — measured without running anything.
Method: Static test reachability: the share of production files reachable from any test via the import graph — measured without running anything. Deterministic.
No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one. (×40) — studio/frontend/smoke-heavy-thread-main.tsx:1, studio/backend/core/data_recipe/oxc-validator/validate.mjs:1, studio/frontend/smoke-code-block-flicker-main.tsx:1, …
What to do
Add tests that import the unreached modules (directly or through their public entry).
React / JS · Readiness — How outdated the npm dependencies are (a maturity signal). JS/npm CVEs are scored separately in D30 (JS/npm Dependency Vulnerabilities).
Method: npm dependency staleness from manifest/registry metadata (a maturity signal; JS/npm CVEs are scored separately in D30, which answers dependency vulnerabilities for every ecosystem). Deterministic.
Do you agree with this assessment?
R6 · Tooling10.0 / 10Exemplary✓ Tool-verified
React / JS · Readiness — Whether the project wires up test, lint and typecheck — detected from each package.json script's COMMAND (eslint / tsc / vitest / jest / playwright), not just its name, and corroborated against CI-workflow invocations so a tool run only in CI still counts.
Method: package.json scanned for test/lint/typecheck script wiring. Deterministic presence check.
Do you agree with this assessment?
R7 · Dead Code8.1 / 10Strong✓ Tool-verified
React / JS · Code Health — Files unreachable from every application/tooling/test entry point, and exports nothing imports (module-graph reachability, D-386).
Method: Dead code: files unreachable from every application/tooling/test entry point plus exports nothing imports, via module-graph reachability. Deterministic, exhaustive over the import graph.
Unreachable from the 253 application, 12 tooling and 1460 test entry point(s) detected in this repo. Gate removals on `npm run build` — an undetected custom entry would make these reachable.
no import path from any entry point (253 application, 12 tooling, 1460 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make (×22) — studio/frontend/src/components/ui/menubar.tsx, studio/frontend/src/components/ui/navigation-menu.tsx, studio/frontend/src/components/ui/sparkles-text.tsx, …
no import path from any entry point (253 application, 12 tooling, 1460 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (studio/frontend/src/components/ui/toggle-group.tsx) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it — studio/frontend/src/components/ui/toggle.tsx
no import path from any entry point (253 application, 12 tooling, 1460 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (studio/frontend/src/components/layout/index.ts) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it (×2) — studio/frontend/src/components/layout/dashboard-grid.tsx, studio/frontend/src/components/layout/dashboard-layout.tsx
Nothing imports this binding — it is safe to review for removal. (×14) — studio/frontend/src/components/assistant-ui/attachment.tsx:825, studio/frontend/src/components/assistant-ui/thread-width-steps.ts:4, studio/frontend/src/components/ui/animated-theme-toggler.tsx:95, …
What to do
Delete the dead files and unused exports — every line is maintenance cost and rebuild-estimate inflation with zero runtime value.
React / JS · Readiness — npm dependency truthfulness (D-386): unused dependencies, imports not declared anywhere, and type-/test-only packages shipped as production deps.
Method: npm dependency truthfulness: unused dependencies, imports declared nowhere, and type-/test-only packages shipped as production deps — from the manifest + import graph. Deterministic.
Imported but not declared in any reachable package.json — installs work only by hoisting accident. (×10) — studio/frontend/scripts/coal-span-census.mjs:37, studio/frontend/tests/attachment-preview-text.test.ts:7, studio/frontend/tests/math-block-marker.test.ts:57, …
Declared in docker/jupyter/unsloth_labext/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it. (×2)
Declared in studio/frontend/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
Every import is type-only — move it to devDependencies. — studio/frontend/src/components/assistant-ui/code-fence-defer.tsx:6
What to do
Remove unused dependencies, declare unlisted imports explicitly, and demote type-/test-only packages to devDependencies.
React / JS · Architecture — Import cycles in the module graph (D-386) — files that can only be understood and changed together.
Method: Import cycles in the module graph, detected exhaustively over JS/TS imports (the same cycle detection as the .NET coupling dimension). Deterministic.
studio/frontend/src/features/chat/api/skills-api.ts → studio/frontend/src/features/chat/utils/refresh-context-usage.ts → studio/frontend/src/features/chat/api/chat-adapter.ts → studio/frontend/src/features/chat/api/skills-api.ts (one verified cycle inside a mutually-dependent group of 280 files) — studio/frontend/src/features/chat/api/skills-api.ts:8
studio/frontend/src/features/chat/presets/preset-load-config.ts → studio/frontend/src/features/chat/stores/chat-runtime-store.ts → studio/frontend/src/features/chat/presets/preset-load-config.ts (one verified cycle inside a mutually-dependent group of 4 files) — studio/frontend/src/features/chat/presets/preset-load-config.ts:35
studio/frontend/src/features/recipe-studio/blocks/registry.ts → studio/frontend/src/features/recipe-studio/blocks/render-dialog.tsx → studio/frontend/src/features/recipe-studio/dialogs/expression/expression-dialog.tsx → studio/frontend/src/features/recipe-studio/dialogs/shared/available-variables.tsx → studio/frontend/src/features/recipe-studio/stores/recipe-studio.ts → studio/frontend/src/features/recipe-studio/blocks/registry.ts (one verified cycle inside a mutually-dependent group of 9 files) — studio/frontend/src/features/recipe-studio/blocks/registry.ts:19
Other · Code Health — Whether the code avoids sync-over-async (deadlock-prone blocking on tasks) and async void.
Method: Roslyn syntax scan: async methods scanned for .Wait()/.GetAwaiter().GetResult() and async-void outside event handlers. Deterministic, hard fact per invocation.
The task this creates is not kept anywhere. The event loop holds only a weak reference to its tasks, so a task nobody references can be garbage-collected before it finishes (Python's documentation for `asyncio.create_task`: save a reference to the result); and nothing ever awaits it, so an exception it raises is never handled — it surfaces, if at all, as "Task exception was never retrieved" in a log. Keep the task: `await` it, gather it, start it in an `asyncio.TaskGroup` (`async with asyncio.TaskGroup() as tg: tg.create_task(…)`), or, for genuine fire-and-forget, add it to a set and `task.add_done_callback(tasks.discard)` with a callback that also reads its exception. (×2) — studio/backend/core/inference/openai_auto_download.py:1019, studio/backend/core/inference/chat_generation_runs.py:331
Other · Code Health — Whether any branch is dead by construction — a switch arm whose label can never equal a case-normalised subject, or an `else if` whose predicate the arm above has already swallowed.
Method: Roslyn syntax + semantics: switch labels compared against the subject's own case normaliser, and if/else-if chains checked for a literal an earlier arm's containment test already swallows. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X13 · Undrained process stream10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a child process that has BOTH standard streams redirected drains both — reading one to the end while the other is never read deadlocks once the child fills the unread pipe.
Method: Roslyn syntax + semantics: ProcessStartInfo launches with both streams redirected, checked for a drain of each stream across the enclosing type. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `spawn` imported from `child_process` whose stdout and stderr are both pipes (no options, no `stdio`, or `stdio` of `'pipe'`), bound to a local that never leaves its scope, where exactly one of the two streams is read, the other never, and the child’s `close`/`exit` (or the read stream’s end) is awaited; a shell redirect in the call’s arguments or a `kill` of the child suppresses it. The same rule reads Python’s `subprocess.Popen`, Dart’s `Process.start`, Ruby’s `Open3.popen3`, and Scala’s JDK process starts (`new ProcessBuilder(…).start()` with no `redirectErrorStream`/`redirectError`/`redirectOutput`/`inheritIO`, `Runtime.getRuntime.exec`) where one of `getInputStream`/`getErrorStream` is read and the other never while `waitFor()` is called or the read stream is read to its end. Deterministic, provable per finding. Advisory.
Other · Security — Whether a hand-rolled public/private IP check can be walked past — a method that unwraps IPv4-mapped IPv6 but returns the opposite verdict for the same host written as IPv4-compatible, 6to4 or NAT64.
Method: Roslyn syntax + semantics: methods that unwrap IPv4-mapped IPv6 and hand-roll IPv4 range carve-outs, checked for whether the IPv6 branch also accounts for the IPv4-compatible, 6to4 and NAT64 embeddings. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X15 · Unvalidated length from an untrusted reader5.3 / 10Adequate✓ Tool-verified
Other · Security — Whether a length read out of the stream being parsed is bounded before it is allocated or read — an unchecked count taken from the input lets the input choose the allocation.
Method: Roslyn syntax + semantics: integer lengths read from a BinaryReader and spent on a bulk read or an array allocation, checked for any comparison or bounding call on the value anywhere in the method. Deterministic, provable per finding. Advisory.
`size` is read from the bytes being parsed at line 420 (`struct.unpack("<Q")`), then passed as the size of `read` at line 421 — and nowhere in its function is `size` compared to anything, clamped, or bounded against the input that remains. Whoever wrote those bytes therefore chooses the allocation directly: the call reserves the whole length before a single byte of the payload is known to exist, so a 32-bit length asks for up to 4 GiB (a 64-bit one for more than any machine has), and the reservation either raises `MemoryError` out of a parser whose failure path was written for malformed input, not for hostile input, or succeeds and holds gigabytes for a few bytes on the wire. Bound `size` against the bytes actually remaining and a maximum the format allows before reading. — studio/backend/core/inference/video_ltx2.py:421
`n` is read from the bytes being parsed at line 20242 (`struct.unpack("<Q")`), then passed as the size of `read` at line 20243 — and nowhere in its function is `n` compared to anything, clamped, or bounded against the input that remains. Whoever wrote those bytes therefore chooses the allocation directly: the call reserves the whole length before a single byte of the payload is known to exist, so a 32-bit length asks for up to 4 GiB (a 64-bit one for more than any machine has), and the reservation either raises `MemoryError` out of a parser whose failure path was written for malformed input, not for hostile input, or succeeds and holds gigabytes for a few bytes on the wire. Bound `n` against the bytes actually remaining and a maximum the format allows before reading. — studio/backend/core/inference/llama_cpp.py:20243
`slen` is read from the bytes being parsed at line 20718 (`struct.unpack("<Q")`), then passed as the size of `read` at line 20719 — and nowhere in its function is `slen` compared to anything, clamped, or bounded against the input that remains. Whoever wrote those bytes therefore chooses the allocation directly: the call reserves the whole length before a single byte of the payload is known to exist, so a 32-bit length asks for up to 4 GiB (a 64-bit one for more than any machine has), and the reservation either raises `MemoryError` out of a parser whose failure path was written for malformed input, not for hostile input, or succeeds and holds gigabytes for a few bytes on the wire. Bound `slen` against the bytes actually remaining and a maximum the format allows before reading. — studio/backend/core/inference/llama_cpp.py:20719
`n` is read from the bytes being parsed at line 3405 (`int.from_bytes(… 8 bytes …)`), then passed as the size of `read` at line 3406 — and nowhere in its function is `n` compared to anything, clamped, or bounded against the input that remains. Whoever wrote those bytes therefore chooses the allocation directly: the call reserves the whole length before a single byte of the payload is known to exist, so a 32-bit length asks for up to 4 GiB (a 64-bit one for more than any machine has), and the reservation either raises `MemoryError` out of a parser whose failure path was written for malformed input, not for hostile input, or succeeds and holds gigabytes for a few bytes on the wire. Bound `n` against the bytes actually remaining and a maximum the format allows before reading. — REDACTED:3406
`size` is read from the bytes being parsed at line 4143 (`struct.unpack("<Q")`), then passed as the size of `read` at line 4144 — and nowhere in its function is `size` compared to anything, clamped, or bounded against the input that remains. Whoever wrote those bytes therefore chooses the allocation directly: the call reserves the whole length before a single byte of the payload is known to exist, so a 32-bit length asks for up to 4 GiB (a 64-bit one for more than any machine has), and the reservation either raises `MemoryError` out of a parser whose failure path was written for malformed input, not for hostile input, or succeeds and holds gigabytes for a few bytes on the wire. Bound `size` against the bytes actually remaining and a maximum the format allows before reading. — unsloth/models/loader_utils.py:4144
What to do
Each finding names the read that takes the length from the input and the site that spends it, and states that the value is never compared in between. Confirm from the two, then bound the length against the remaining stream before using it.
Other · Code Health — Whether a loop that shortens a string until it fits a length budget has a floor — one with none grinds the value down to the empty string, or past it into a negative-length `Substring`.
Method: Roslyn syntax + semantics: while/do loops whose body's only effect on a string is to drop its last character, checked for whether anything — a direct comparison on the length, a body guard, a break — bounds that length below. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `while`/`do` loop whose body’s one assignment to a value is `x = x.slice(0, -1)` or `x = x.slice|substring|substr(0, x.length - 1)`, driven by a condition that reads `x.length` only as a term of a larger expression — never compared directly, never tested for truthiness, and with no other read of `x` — and whose body has no `break`, `return`, `throw` or `if` naming `x`. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X17 · Uncapped recursion over a caller-supplied document2.5 / 10Weak✓ Tool-verified
Other · Security — Whether a walk that recurses through a JSON/XML tree handed in by its caller bounds how deep it will go — an uncapped walk lets the document's nesting choose the stack depth, and the resulting StackOverflowException cannot be caught.
Method: Roslyn syntax + semantics: methods that take a JSON/XML document node and call themselves with a child of it, reachable from an externally-callable member of the same type that accepts a document, checked for any depth parameter, descent counter or threaded arithmetic anywhere in the walk. On a repository with no .NET source it reads TypeScript off the engine’s own token stream (test, vendored, generated and minified paths and `.d.ts` not) with the same rule: a function or method with a parameter typed as a document value — `unknown`, `any`, `object`, `Record<string, unknown|any>`, a JSON alias (`JsonValue`, `JSONObject`, …) or a DOM node global the file does not rebind — that calls itself (bare, or through `this` for a method, or hands itself to a call over the value as in `value.map(walk)`) with something it took out of that value and never through an ancestor accessor such as `closest()` or `parentElement`, that is exported or reached from an exported function (a public method of the same exported class) taking such a value, and that names no depth, level, nesting, recursion, remaining or budget anywhere and threads no `+`/`-` arithmetic through a self-call. Plain JavaScript is not read: with no annotation nothing tells a parsed document from a tree the code built itself. Deterministic, provable per finding. Advisory.
`package_json_extra_refs` is public, takes a document from its caller (line 366) and hands it to `walk`, which calls itself at line 383 (`walk`) with a piece of `obj` (and at line 386) — and nowhere in `walk` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `walk` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — scripts/check_frontend_dep_removal.py:383
`recipe_names_host_env_credential` is public, takes a document from its caller (line 617) and hands it to `_names_env_credential`, which calls itself at line 604 (`_names_env_credential`) with a piece of `value` (and at line 612) — and nowhere in `_names_env_credential` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_names_env_credential` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — studio/backend/core/data_recipe/service.py:604
`to_jsonable` is public and takes `value: Any` from its caller, and it calls itself at line 122 (`to_jsonable`) with a piece of `value` (and at line 124) — and nowhere in `to_jsonable` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `to_jsonable` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — studio/backend/core/data_recipe/jsonable.py:122
`to_preview_jsonable` is public and takes `value: Any` from its caller, and it calls itself at line 160 (`to_preview_jsonable`) with a piece of `value` (and at line 162) — and nowhere in `to_preview_jsonable` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `to_preview_jsonable` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — studio/backend/core/data_recipe/jsonable.py:160
`to_preview_jsonable_row` is public and takes `row: Any` from its caller, and it calls itself at line 175 (`to_preview_jsonable_row`) with a piece of `row` — and nowhere in `to_preview_jsonable_row` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `to_preview_jsonable_row` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — studio/backend/core/data_recipe/jsonable.py:175
`native_unflatten` is public, takes a document from its caller (line 348) and hands it to `_decode`, which calls itself at line 156 (`_decode`) with a piece of `value` (and at line 189) — and nowhere in `_decode` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_decode` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — studio/backend/core/inference/prequant_native.py:156
`normalize_function_schema` is public, takes a document from its caller (line 63) and hands it to `_normalize_schema_node`, which calls itself at line 33 (`_normalize_schema_node`) with a piece of `schema` (and at line 35, line 40, line 53) — and nowhere in `_normalize_schema_node` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_normalize_schema_node` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — studio/backend/core/inference/openai_responses_shared.py:33
`parse_mcp_config` is public, takes a document from its caller (line 148) and hands it to `_has_variable_reference`, which calls itself at line 44 (`_has_variable_reference`) with a piece of `value` (and at line 46) — and nowhere in `_has_variable_reference` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_has_variable_reference` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — studio/backend/core/inference/mcp_config_import.py:44
`relax_nested_object_key_order` is public, takes a document from its caller (line 175) and hands it to `_reorderable`, which calls itself at line 134 (`_reorderable`) with a piece of `schema` — and nowhere in `_reorderable` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_reorderable` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — studio/backend/core/inference/llama_tool_schema.py:134
`stream_chat_completion` is public, takes a document from its caller (line 1664) and hands it to `_sanitize_gemini_schema`, which calls itself at line 4900 (`_sanitize_gemini_schema`) with a piece of `node` (and at line 4924, line 4928, line 4944, line 4951, line 4963) — and nowhere in `_sanitize_gemini_schema` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_sanitize_gemini_schema` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — studio/backend/core/inference/external_provider.py:4900
`guided_runs_at_guidance_off_batch` is public, takes a document from its caller (line 470) and hands it to `_graph_handle_live`, which calls itself at line 143 (`_graph_handle_live`) with a piece of `handle` — and nowhere in `_graph_handle_live` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_graph_handle_live` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — studio/backend/core/inference/diffusion_zimage_cfg_split.py:143
`probe_consumption` is public, takes a document from its caller (line 260) and hands it to `_collect_tensors`, which calls itself at line 191 (`_collect_tensors`) with a piece of `value` (and at line 194, line 196) — and nowhere in `_collect_tensors` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_collect_tensors` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — studio/backend/core/inference/diffusion_te_truncate.py:191
`install` is public, takes a document from its caller (line 238) and hands it to `_plain`, which calls itself at line 78 (`_plain`) with a piece of `value` (and at line 80) — and nowhere in `_plain` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_plain` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — studio/backend/core/inference/diffusion_prompt_cache.py:78
`put` is public, takes a document from its caller (line 148) and hands it to `_map_tensors`, which calls itself at line 109 (`_map_tensors`) with a piece of `obj` (and at line 111, line 113) — and nowhere in `_map_tensors` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_map_tensors` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — studio/backend/core/inference/diffusion_prompt_cache.py:109
`packed_weight_fingerprint` is public, takes a document from its caller (line 1359) and hands it to `_hash_packed_payload`, which calls itself at line 1350 (`_hash_packed_payload`) with a piece of `tensor` — and nowhere in `_hash_packed_payload` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_hash_packed_payload` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — REDACTED:1350
`onload` is public, takes a document from its caller (line 493) and hands it to `_copy_into`, which calls itself at line 259 (`_copy_into`) with a piece of `dst` — and nowhere in `_copy_into` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_copy_into` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — studio/backend/core/inference/diffusion_offload_prefetch.py:259
`graph_key` is public and takes `obj: Any` from its caller, and it calls itself at line 704 (`graph_key`) with a piece of `obj` (and at line 706) — and nowhere in `graph_key` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `graph_key` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — studio/backend/core/inference/diffusion_cuda_graph.py:704
`reset_all` is public, takes a document from its caller (line 2831) and hands it to `_holds_graphs`, which calls itself at line 2828 (`_holds_graphs`) with a piece of `handle` — and nowhere in `_holds_graphs` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_holds_graphs` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — studio/backend/core/inference/diffusion_cuda_graph.py:2828
`load_comfy_quant_transformer` is public, takes a document from its caller (line 1099) and hands it to `take`, which calls itself at line 835 (`take`) with a piece of `value` (and at line 838) — and nowhere in `take` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `take` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — studio/backend/core/inference/diffusion_comfy_quant.py:835
`graph_key` is public, takes a document from its caller (line 155) and hands it to `_walk`, which calls itself at line 128 (`_walk`) with a piece of `obj` (and at line 130, line 134) — and nowhere in `_walk` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_walk` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — studio/backend/core/inference/diffusion_block_graph.py:128
`compaction_receipt_field` is public and takes `value: Any` from its caller, and it calls itself at line 463 (`compaction_receipt_field`) with a piece of `value` — and nowhere in `compaction_receipt_field` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `compaction_receipt_field` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — studio/backend/core/inference/context_window.py:463
`normalize_navigation_url` is public and takes `raw: Any` from its caller, and it calls itself at line 507 (`normalize_navigation_url`) with a piece of `raw` — and nowhere in `normalize_navigation_url` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `normalize_navigation_url` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — studio/backend/core/inference/browser_agent.py:507
`restore_inventory_handles` is public, takes a document from its caller (line 213) and hands it to `_restore`, which calls itself at line 224 (`_restore`) with a piece of `payload` (and at line 226, line 228) — and nowhere in `_restore` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_restore` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — studio/backend/hub/utils/host_paths.py:224
`redact_host_paths` is public, takes a document from its caller (line 284) and hands it to `_redact`, which calls itself at line 337 (`_redact`) with a piece of `payload` (and at line 409, line 413, line 420) — and nowhere in `_redact` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_redact` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — studio/backend/hub/utils/host_paths.py:337
`response_leaks_host_path` is public, takes a document from its caller (line 311) and hands it to `_find_leak`, which calls itself at line 444 (`_find_leak`) with a piece of `payload` (and at line 470, line 476) — and nowhere in `_find_leak` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_find_leak` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — studio/backend/hub/utils/host_paths.py:444
`redact_inventory_error_detail` is public and takes `detail: Any` from its caller, and it calls itself at line 581 (`redact_inventory_error_detail`) with a piece of `detail` (and at line 586) — and nowhere in `redact_inventory_error_detail` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `redact_inventory_error_detail` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — studio/backend/hub/utils/host_paths.py:581
`upsert_chat_settings_merge` is public, takes a document from its caller (line 5755) and hands it to `_deep_merge_settings`, which calls itself at line 5724 (`_deep_merge_settings`) with a piece of `current` — and nowhere in `_deep_merge_settings` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_deep_merge_settings` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — studio/backend/storage/studio_db.py:5724
`upsert_chat_settings_merge_if_current` is public, takes a document from its caller (line 5822) and hands it to `_chat_settings_match_expected`, which calls itself at line 5806 (`_chat_settings_match_expected`) with a piece of `current` — and nowhere in `_chat_settings_match_expected` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_chat_settings_match_expected` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — studio/backend/storage/studio_db.py:5806
`from_route` is public, takes a document from its caller (line 21) and hands it to `_unwrap`, which calls itself at line 41 (`_unwrap`) with a piece of `annotation` — and nowhere in `_unwrap` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_unwrap` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — studio/backend/studio_mcp/outputs.py:41
`drop_non_finite` is public and takes `value: Any` from its caller, and it calls itself at line 179 (`drop_non_finite`) with a piece of `value` (and at line 181) — and nowhere in `drop_non_finite` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `drop_non_finite` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — studio/backend/utils/training_runs.py:179
`mergedToolCallArgumentsText` is exported, takes a document from its caller (line 381) and hands it to `mergeJsonNode`, which calls itself at line 354 (`mergeJsonNode`) with a piece of `current` (and at line 366) — and nowhere in `mergeJsonNode` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `mergeJsonNode` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — studio/frontend/src/features/chat/tool-call-arguments.ts:354
`extractDeltaText` is exported, takes a document from its caller (line 14) and hands it to `extractReasoningText`, which calls itself at line 22 (`extractReasoningText`) with a piece of `payload` (and at line 29) — and nowhere in `extractReasoningText` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `extractReasoningText` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — studio/frontend/src/features/chat/utils/parse-assistant-content.ts:22
`chatContentPartAttachmentSignature` is exported, takes a document from its caller (line 46) and hands it to `stableJson`, which calls itself at line 31 (`stableJson`) with a piece of `value` (and at line 39) — and nowhere in `stableJson` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `stableJson` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — studio/frontend/src/features/chat/utils/chat-attachment-events.ts:31
What to do
Each finding names the externally-callable member that accepts the document and the self-call that descends, and states that no depth parameter or counter exists anywhere in the walk. Confirm from the two, then thread a depth argument through the walk and reject documents past a fixed maximum, or rewrite it with an explicit stack.
Other · Code Health — Whether a type's disposal matches what it OWNS — releasing what it created, leaving alone what it was handed, and not declaring a finalizer for state that has nothing unmanaged to finalize.
Method: Roslyn syntax + semantics: every assignment to a disposable field is read to decide whether the type CREATED the value or was handed it, and the type's disposal is checked against that answer — an injected interface it disposes, a value it constructed and never releases, a finalizer on a type holding nothing unmanaged, and a disposable local whose every reference is a plain member read. A value handed to a container that disposes its contents (a parent control's `Controls` collection, a component `IContainer`) is released by that container and is not reported; generated code is out of population. On a repository with no .NET source the same ownership questions are read in JavaScript/TypeScript off the engine’s own token stream (test, vendored, generated and minified paths not): a class declaring `dispose()`, `[Symbol.dispose]()` or `[Symbol.asyncDispose]()` that disposes a field it was handed through a constructor parameter typed as a repository interface or resolved by a dependency-injection container; that assigns a field only ever from `new X(…)` of a disposable class and neither releases it anywhere in the class nor names it in its disposal member or a method that member calls, nor hands it to anything else; and a `const`/`let` local built from literals only whose every reference opens a statement operating on a non-release member of it. A class is disposable when every repository declaration of its name declares or inherits a disposal member, or when it is a documented library disposable (`vscode` EventEmitter, CancellationTokenSource and Disposable; three.js geometries, materials, textures, render targets, renderers, controls and composers). The finalizer arm has no JavaScript counterpart: a class cannot declare one. Dart is read for the owned-and-never-released arm: a Flutter `State` (or a class declaring `dispose()`/`close()`) whose library-private field is written only with direct creations of a framework controller, `FocusNode`, `StreamController` or periodic `Timer` (or a `.listen(…)` into a field declared `StreamSubscription`), which nothing in the class or its library releases (`dispose`/`close`/`cancel`) and which is never handed on except as a named argument. Ruby is read for the owned-and-never-released arm and the abandoned-local arm: a class declaring an instance `close`, `dispose`, `shutdown`, `stop`, `disconnect` or `terminate` whose instance variable is written only with a blockless core descriptor creation (`File.open`/`new`, `Tempfile`, `Dir.open`, `IO.popen`, the `socket` and `openssl` socket classes) that no method of the class closes and that is never handed on (passed, returned, stored, exposed by `attr_reader`, delegated) — a class whose superclass or mixin lies outside the repository is not judged — and a blockless creation read through and dropped (`File.open(path).read`) or held in a local that is never closed, returned, passed or stored (a `&:read` block-pass, an `autoclose: false` borrow and a `fileno` hand-over are not abandonment). PHP is read for the same two arms: a class (not a trait, and not one using a trait) declaring an instance `close`, `dispose`, `shutdown`, `stop`, `disconnect` or `terminate` whose `private` property (or a `final` class's `protected` one) is written only with a direct core `fopen`, `tmpfile`, `popen`, `proc_open`, `fsockopen`, `stream_socket_client`/`server` or `opendir` that nothing in the class closes (`fclose`, `pclose`, `closedir`, `unset`, a reset to `null`) and that is never handed on, and a handle held in a function's local, or read through as the argument of a reader, that is never closed, returned, passed, captured or stored; a `php://` stream, `curl_init`, `SplFileObject`, `PDO` and a function the repository declares under the core name are not read. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a method that temporarily changes state belonging to the whole process — the working directory, an environment variable — puts it back on EVERY path: a restore reached only when nothing throws leaks the change to the rest of the process.
Method: Roslyn syntax + semantics: method bodies that write the process working directory or an environment variable and write it back in the same body, checked for whether that restore sits in a `finally`/`catch` or only on the straight-line path. On a repository with no .NET source the same rule reads production JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not): `process.chdir`, `process.env.NAME =`/`["NAME"] =` and `delete process.env.NAME`, and Deno’s `Deno.chdir`/`Deno.env.set`/`Deno.env.delete`, paired per function body (a nested function or arrow is its own body, and module top-level code is none), where the last write puts back a local the body captured from the same global or deletes a variable the first write set, with at least one statement between them; a write in a `catch`/`finally` of that body silences it. Deterministic, provable per finding. Advisory.
`_switch_to_bundled_tcc` changes state that belongs to the whole PROCESS and changes it back at the end of the same body — the `CC` environment variable (set at line 204, cleared at line 210) — which says the change was meant to last no longer than this call. But the restore is an ordinary statement on the straight-line path, not a `finally`, so it is skipped by any exception raised in between: the process then keeps the overwritten value for the rest of its life, and every later relative path, `subprocess` launch, `os.environ` read or `print` in ANY module sees it. That failure is silent and remote from its cause — the function that breaks is not the function that moved the value. The window is not private while it is open either: the working directory, the environment, the umask and `sys.stdout` are per-process, not per-thread, so a concurrent thread sees the moved value too. The durable fix is not to widen the restore but to stop mutating the global: pass the value to the operation that needs it — the `cwd=` and `env=` arguments of `subprocess.run`/`Popen` scope both to the CHILD, absolute paths built with `os.path.join` or `pathlib` need no working directory, and a stream handed to the code that writes needs no `sys.stdout`. Where the global genuinely must move, `contextlib.chdir` (3.11+), `contextlib.redirect_stdout` or a `try`/`finally` makes the restore run on every path. — studio/backend/core/_msvc_env.py:195
What to do
Each finding names the statement that changes the process-global value and the statement that puts it back. Confirm from the two that nothing between them is protected — then prefer removing the mutation over widening the restore: a working directory or an environment variable passed to the operation that needs it (the `cwd` and `env` options of `child_process`, or of `Deno.Command`) is scoped to that operation, which is what the save-and-restore was trying to approximate. Where the global genuinely must move, a `try`/`finally` is the least that makes the restore unconditional. In Python the same holds for `os.chdir`, `os.environ` and `sys.stdout`: pass `cwd=`/`env=` to `subprocess`, or use `contextlib.chdir`/`redirect_stdout`, rather than moving the global by hand.
Other · Code Health — Whether async functions that make a cancellable request accept or pass on an AbortSignal (adoption curve).
Method: Roslyn scan: every async method (excluding framework-fixed overrides/Blazor handlers) checked for CancellationToken parameter presence. Deterministic, adoption percentage. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same question: every named async function that itself makes a request an AbortSignal can cancel (global `fetch`, axios and its file-local instances, ky, ofetch) counts, and it is compliant when its parameters or body name a signal or it hands one of its own parameters to the request as options; signatures a framework fixes (JSX event handlers, route and lifecycle exports, request-first handlers, `override`, `'use server'` modules, TanStack `mutationFn`) are exempt unless they take a signal. Deterministic, adoption percentage.
Only 30/43 async functions that make a cancellable request (fetch, axios, ky, ofetch) accept an AbortSignal or pass one on, so a request keeps running after whatever wanted it has given up — a page navigated away from, an unmounted component, a timed-out job. Take a `signal` (or an options object that carries one) and hand it to the request; where nothing could ever cancel the call, omitting it is a deliberate choice — judge against how the function is used.
`fetchAuthStatus` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. (×2) — studio/frontend/src/app/auth-guards.ts:43, studio/frontend/src/features/auth/login-client.ts:87
`fetchDeviceType` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — studio/frontend/src/config/env.ts:125
`loginWithPassword` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — studio/frontend/src/features/auth/login-client.ts:115
`redirectToAuth` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — studio/frontend/src/features/auth/api.ts:120
`loadPayloadFromUrl` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — studio/frontend/src/features/data-recipes/learning-recipes/index.ts:97
`fetchSourceFile` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — studio/frontend/src/features/rag/components/source-file.ts:10
`requestStudioVersions` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — studio/frontend/src/features/settings/components/studio-version-section.tsx:37
`fetchInstallSource` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — studio/frontend/src/features/settings/tabs/about-tab.tsx:55
`fetchWithFreshLink` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — studio/frontend/src/features/video/viewer.ts:39
`fetchDisplayableUpdateStatus` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — studio/frontend/src/hooks/use-web-update-check.ts:117
`fetchDownload` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — studio/frontend/src/lib/native-files.ts:78
`fetchWhileStable` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — studio/frontend/src/lib/gallery-flags.ts:288
What to do
Thread an AbortSignal through async functions that make requests, so the work stops when its caller gives up.
Other · Code Health — Whether a `when` guard is free of side effects — a guard that increments a counter or assigns while deciding whether its arm matches applies that change during PATTERN MATCHING, on an arm that may not be selected, and skips it entirely when a short-circuit to its left answers first.
Method: Roslyn syntax: `when` guards on case labels and switch-expression arms, read for a mutation (`++`/`--`/assignment) sitting in a position the guard's own `&&`/`||`/`??`/`?:`/`?.` can skip. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a method that TAKES a lock or semaphore and gives it back from a flag-guarded `finally` returns the value that flag implies — reporting success while the guard hands the primitive back admits a second caller the exclusion was there to keep out, and reporting failure while the guard keeps it leaves nothing to ever give it back.
Method: Roslyn syntax: `try` statements whose `finally` releases a synchronisation primitive under a bare local-bool guard, where the method also TOOK that same primitive before the `try`, checked for a `return` of a bool literal whose value disagrees with the flag state the method's own straight-line assignments put it in. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether the work a diagnostic log line costs is paid only when that line is wanted — C# evaluates a call's arguments BEFORE the call, so a trace/debug message joined or projected out of a collection is built in full on every pass, and then discarded by a sink the shipped configuration leaves switched off.
Method: Roslyn syntax: log calls at a diagnostic level (a `Log`-prefixed method naming Trace/Debug/Verbose, or a bare `Debug`/`Trace`/`Verbose` on a receiver named for a logger), whose argument list is read for a call whose cost scales with a sequence — a LINQ operator, a materialisation, `string.Join`, a serializer — with no enclosing level check or conditional-compilation region. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `debug`/`trace`/`verbose` call on a receiver named for a logger, or a `log`-prefixed method naming the level, whose argument calls an array operator (`map`/`filter`/`reduce`/`sort`/…), `Array.from`, `Object.keys/values/entries`, `JSON.stringify`/`util.inspect` over anything but a literal, or an array `join` — outside any arrow or function passed as an argument, which the logger calls only when the level is on — with no enclosing `if`, `&&` or `?:` whose condition names a level, a level string, or the `NODE_ENV`/`__DEV__`/`DEV` build switch. Deterministic, provable per finding. Advisory.
`debug` at line 119 is called with an argument built by `list(inc_dirs)` (line 119), whose cost grows with the collection it walks. Python evaluates a call's arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached — and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no `isEnabledFor(logging.DEBUG)` test, no debug flag, no `lambda` the logger calls only when the level is on. — studio/backend/core/_msvc_env.py:119
`debug` at line 15085 is called with an argument built by `sorted(visible - set(vram))` (line 15087), whose cost grows with the collection it walks. Python evaluates a call's arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached — and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no `isEnabledFor(logging.DEBUG)` test, no debug flag, no `lambda` the logger calls only when the level is on. — studio/backend/core/inference/llama_cpp.py:15085
`debug` at line 15141 is called with an argument built by `sorted(unified_ids)` (line 15143), whose cost grows with the collection it walks. Python evaluates a call's arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached — and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no `isEnabledFor(logging.DEBUG)` test, no debug flag, no `lambda` the logger calls only when the level is on. — studio/backend/core/inference/llama_cpp.py:15141
`debug` at line 3474 is called with an argument built by `["…" m["…"] "…" m["…"][: 30] "…" for m in chat_messages]` (line 3475), whose cost grows with the collection it walks. Python evaluates a call's arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached — and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no `isEnabledFor(logging.DEBUG)` test, no debug flag, no `lambda` the logger calls only when the level is on. — studio/backend/core/inference/inference.py:3474
`debug` at line 6424 is called with an argument built by `sorted(wanted)` (line 6424), whose cost grows with the collection it walks. Python evaluates a call's arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached — and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no `isEnabledFor(logging.DEBUG)` test, no debug flag, no `lambda` the logger calls only when the level is on. — studio/backend/utils/hardware/hardware.py:6424
What to do
In Python, put the construction behind the logger's own check (`if logger.isEnabledFor(logging.DEBUG):`), or pass the collection itself with a `%s` placeholder (`logger.debug("Items %s", items)`) so the logging module renders it only when the record is emitted. The placeholder alone is not the fix when the argument is still built first: it defers the formatting, not a `json.dumps`, a `join` or a comprehension in the argument, and an f-string defers nothing at all.
Do you agree with this assessment?
X24 · Document value interpolated into markup unescaped5.0 / 10Adequate✓ Tool-verified
Other · Security — Whether text read out of the document being converted is escaped before it is written into generated markup — a value the document's author chose, interpolated into an attribute the surrounding literal delimits, can close that attribute and open another.
Method: Roslyn semantic model over the whole compilation: a string-typed `Value`/`InnerText`/`InnerXml`/`Text` member declared inside `DocumentFormat.OpenXml` or `System.Xml` is a taint SOURCE, propagated through assignments, returns, arguments, tuple elements and string composition to its transitive closure, then read at interpolated-string holes that sit in a markup position the surrounding literal itself delimits. Escaper/encoder calls and enclosing validator conditions cut the flow. Flow- and container-insensitive by construction. A second arm needs no provenance at all and reports a type that CONTRADICTS ITSELF — the same expression escaped at one delimited markup hole and interpolated raw at another hole in the same markup position of the same type, which the type's own escaping proves is a defect without knowing where the value came from. On a repository with no .NET source it reads JavaScript/TypeScript off the token stream with the same rule: a DOM read of raw document text (`getAttribute`, `textContent`, `innerText`, `nodeValue`) is the source, propagated through local bindings and string composition, and judged at template-literal and concatenation holes in the same two delimited markup positions; escapers and validating conditions cut it, and documentation-site, test, vendored and minified scripts are not read. Deterministic, provable per finding. Advisory.
`UNSLOTH_LOGO_DATA_URI` is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. HTML encoding does not help here — a `javascript:` URL contains nothing it changes; allow only http(s) or a relative path. — docker/jupyter/unsloth_labext/src/about.ts:42
`PRODUCT` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — docker/jupyter/unsloth_labext/src/about.ts:44
`SHORT_LABEL` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — docker/jupyter/unsloth_labext/src/about.ts:45
`AGPL_NOTICE` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — docker/jupyter/unsloth_labext/src/about.ts:46
`SOURCE_URL` is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. HTML encoding does not help here — a `javascript:` URL contains nothing it changes; allow only http(s) or a relative path. — docker/jupyter/unsloth_labext/src/about.ts:48
`WEBSITE_URL` is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. HTML encoding does not help here — a `javascript:` URL contains nothing it changes; allow only http(s) or a relative path. — docker/jupyter/unsloth_labext/src/about.ts:49
`DOCS_URL` is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. HTML encoding does not help here — a `javascript:` URL contains nothing it changes; allow only http(s) or a relative path. — docker/jupyter/unsloth_labext/src/about.ts:50
`AGPL_URL` is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. HTML encoding does not help here — a `javascript:` URL contains nothing it changes; allow only http(s) or a relative path. — docker/jupyter/unsloth_labext/src/about.ts:53
`APACHE_URL` is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. HTML encoding does not help here — a `javascript:` URL contains nothing it changes; allow only http(s) or a relative path. — docker/jupyter/unsloth_labext/src/about.ts:54
`LICENSE_URL` is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. HTML encoding does not help here — a `javascript:` URL contains nothing it changes; allow only http(s) or a relative path. — docker/jupyter/unsloth_labext/src/about.ts:55
`COPYRIGHT` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — docker/jupyter/unsloth_labext/src/about.ts:58
`snapshot.html` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — studio/frontend/public/reload-snapshot.js:370
`html` is text this program did not author, and it is written into the text of an element through `dangerouslySetInnerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — REDACTED:163
`Object.entries(THEMES).map(([theme,prefix])=>`
${prefix} [data-chart=${id}] {
${colorConfig.map(([key,itemConfig])=>{…` is text this program did not author, and it is written into the text of an element through `dangerouslySetInnerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — REDACTED:159
`escapeHtml(bookmark.url)` is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme through markup this function returns with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. HTML encoding does not help here — a `javascript:` URL contains nothing it changes; allow only http(s) or a relative path. — studio/frontend/src/features/browser/bookmarks-io.ts:74
What to do
Each finding names the expression, the attribute it lands in and the line. Confirm the value's origin from the read this analyzer traced, then escape it at the sink or validate it against the shape the attribute accepts before interpolating.
Other · Code Health — Whether a value the caller is invited to supply is the value the type actually uses — a constructor parameter stored in a private field that nothing ever reads while the default it was given is spelled out a second time at the site that should have read it, a keyed lookup that falls back to a different setting than the one its key names while the same type falls back to the matching one for that same key, or a culture-sensitive parse given no format provider by a type that feeds its own settable culture to the same kind of parse elsewhere, or a number an entry point writes to standard output under the host's culture while the same entry point formats with the invariant culture elsewhere. Either way, every caller who supplies a value silently gets something else.
Method: Roslyn syntax: private instance fields of a non-partial type assigned in a constructor from one of its own parameters with a `??` fallback, checked for whether anything in the type body reads the field and whether that same fallback expression is spelled out again outside the constructor; and `??` fallbacks onto a member access from a lookup call carrying exactly one string literal, grouped by that key across the type and checked for a fallback member whose folded name disagrees with the key while a sibling site for the same key agrees with it. On a repository with no .NET source the first two arms read JavaScript/TypeScript off the engine’s own token stream (tests included, bundles and vendored paths not): a `#x`, `private` or `private` parameter-property instance field filled in the constructor from a parameter (or one member of one) through `??`/`||` or a parameter default, never read anywhere in the file by name, whose constructed default is spelled again in the class body; and `lookup("key") ?? s.member` grouped by key per class, or per module outside every class. The culture arm has no JavaScript counterpart: its parses take no locale. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a value handed from a callback to the body that waits on it crosses on something built to be crossed — a `Queue<T>`/`List<T>`/`Dictionary<K,V>` written inside an event handler and read back outside it is mutated by two flows at once, and the semaphore or completion source beside it orders how MANY items exist while leaving the collection's own head, tail and backing array unprotected.
Method: Roslyn syntax: method, accessor, local-function and lambda bodies that declare BOTH a non-thread-safe generic collection (`Queue`/`Stack`/`List`/`Dictionary`/`HashSet`/`Sorted*`/`LinkedList`) and a synchronisation primitive (`SemaphoreSlim`/`TaskCompletionSource`/`ManualResetEvent(Slim)`/`AutoResetEvent`/`CountdownEvent`) as locals, then read for a `+=`-registered lambda that raises that primitive while the body outside every lambda waits on it — and, in that scope, a mutating call on the collection inside the lambda paired with a mention of it outside. Any `lock` in the scope abstains it. On a repository with no .NET source the same handoff is read in Java off the engine’s own token stream (test source sets, vendored and demonstration paths not): an `ArrayList`/`LinkedList`/`ArrayDeque`/`PriorityQueue`/`Hash*`/`LinkedHash*`/`Tree*` local and a `CountDownLatch`/`Semaphore`/`CompletableFuture` local, a lambda or anonymous class that raises the primitive and mutates the collection, and a wait outside it; any `synchronized` or `lock()` abstains the body. Because each of those primitives orders what the callback wrote before raising it, only a touch that provably overlaps the callback is convicted: one after the registration and before the next wait, or one in a loop registered-before, waiting on every pass and not declaring the collection. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X27 · Collection changed while being enumerated10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a `for` loop leaves the `RefCell` it is walking alone — safe Rust rejects a body that changes the collection its loop borrows at compile time, except through interior mutability: a `RefCell` borrowed in the loop's header stays borrowed until the loop ends, so a `borrow_mut()` of it inside the body panics with `already borrowed: BorrowMutError` and the remaining elements are never seen. Whether a `for` loop leaves the `dict`, `set` or `deque` it is walking alone — CPython's iterators over those check that the collection has not changed size since the loop began, so a body that removes from (or empties) the very collection the loop is walking makes the next step raise `RuntimeError: dictionary changed size during iteration` and the remaining items are never seen.
Method: Roslyn syntax + semantics: `foreach` statements whose body calls a structural mutator (`Add`/`Remove`/`Clear`/`Insert`/…) on the very expression the loop is enumerating. Two arms. ARM A — the source is a concrete fragile BCL collection, or a live `Keys`/`Values` view over one, and the mutator resolves to that same collection's own member; concurrent and immutable collections and arrays are outside the population by construction, since their enumerators survive a structural change. ARM B — the source is an argument-less accessor CALL on a receiver whose body is in source: the accessor must return a stored field VERBATIM and a sibling member must structurally change that same field, both read off the implementations rather than from the members' names. A mutation the loop provably exits immediately after (`break`/`return`/`throw`/`goto`), or one written inside a nested loop or a lambda, is counted and never reported. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X28 · Index access outside its own emptiness guard7.8 / 10Strong✓ Tool-verified
Other · Code Health — Whether a condition that tests a value for emptiness indexes that same value only where the test holds — an `||` written one parenthesis too far to the left leaves an index access outside the guard beside it, so the empty case the guard exists to anticipate reaches the index and throws.
Method: Roslyn syntax only, no semantic model: the OUTERMOST `&&`/`||` of every boolean condition, read for a symbol the condition tests for emptiness (`string.IsNullOrEmpty`/`IsNullOrWhiteSpace`, a `Length`/`Count` comparison against a literal, `Any()`, a `Length`/`Count` pattern, or a comparison against `""`) and ALSO indexes. Each `symbol[...]` access is placed by a boolean-reachability walk from the access up to the outermost connective: an access is COVERED when some enclosing step has it in the right operand and the left operand, under the truth value that step forces, proves the symbol non-empty — a recursion over `&&`/`||` whose true- and false-directions are asymmetric. A finding needs BOTH an uncovered access and a covered one on the same symbol in the same condition, which is the agreeing twin that separates a misplaced parenthesis from an unrelated length test. Bare index accesses with no emptiness test in the condition are neither counted nor reported; a non-identifier receiver and a lambda nested inside the condition are outside the population. Deterministic, provable per finding. Advisory.
This condition tests `suffix` for emptiness and then indexes it on a branch that test does not reach. `suffix[0].isdigit()` is evaluated whenever the guarded half is false — which includes the case the guard exists to anticipate, `suffix` being empty — so an empty `suffix` indexes position 0 of nothing and throws. This same condition already shows the intended bracketing at line 285: `suffix[0]` sits INSIDE the guard. Either the guard is load-bearing, in which case this access escapes it and crashes, or `suffix` cannot be empty here, in which case the guard beside it is dead code — the condition is wrong under both readings. Move the parenthesis so the emptiness test brackets every access to `suffix`. — studio/backend/core/inference/llama_server_args.py:284
This condition tests `hit` for emptiness and then indexes it on a branch that test does not reach. `hit[0]` is evaluated whenever the guarded half is false — which includes the case the guard exists to anticipate, `hit` being empty — so an empty `hit` indexes position 0 of nothing and throws. This same condition already shows the intended bracketing: `hit[2]` sits INSIDE the guard. Either the guard is load-bearing, in which case this access escapes it and crashes, or `hit` cannot be empty here, in which case the guard beside it is dead code — the condition is wrong under both readings. Move the parenthesis so the emptiness test brackets every access to `hit`. — studio/backend/core/inference/flux3_prompt_upsampler.py:929
What to do
Each finding names the index access that escapes the guard and the line of the correctly bracketed access beside it. Compare the two: they differ only in where one parenthesis sits. Move it so the emptiness test brackets every access to that symbol — and if the value provably cannot be empty at this point, delete the test rather than leave a condition that guards one access and not its neighbour.
Do you agree with this assessment?
X29 · Per-element action decided by a fixed element10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a decision taken once per element is taken ABOUT that element — a test inside a counted loop that reads a fixed subscript of the very collection its guarded statement indexes by the loop variable applies element zero's answer to all of them, so the elements that differ from it are all handled wrongly, and in the same direction.
Method: Roslyn syntax only, no semantic model: every `for` statement declaring exactly ONE loop variable, and every `if` inside its body that is not under a nested loop or a lambda. A site enters the population when the `if`’s condition never mentions the loop variable while the statement it guards indexes some collection by that variable ALONE (`c[i]`; `c[i + 1]` and `c[i, j]` are outside it). A finding additionally needs the AGREEING TWIN at the same-collection grain: the condition must read THAT SAME collection at a subscript that does not move — written into the condition, or reached through a local declared BEFORE the loop, so an alias bound inside the body is not followed. Both collection expressions must be simple identifiers. On a repository with no .NET source the same rule reads JavaScript/TypeScript off the engine’s own token stream (tests included, bundles and vendored paths not): a `for (let|var|const x = …; …; …)` with one declarator and a braced body, an alias followed only when it is declared before the loop in a block that encloses it and never assigned inside the loop. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether exceptions are handled rather than silently swallowed or rethrown with lost stack traces.
Method: Roslyn syntax scan: every catch clause counted; empty catches and bare rethrows flagged. Population is all catch clauses, not estimated. Deterministic, hard fact.
`except Exception` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. (×29) — REDACTED:12, REDACTED:236, REDACTED:400, …
An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it. (×10) — REDACTED:371, REDACTED:383, docker/jupyter/unsloth_branding.py:225, …
`catch` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. — docker/jupyter/unsloth_labext/src/colabTitle.ts:81
What to do
Swallowed exception (caught, then discarded)
Do you agree with this assessment?
X30 · Support guard that admits what it rejects10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a guard written as a NEGATED `||` says what its author meant — `!(a || b || x != k)` is `!a && !b && x == k` by De Morgan, so a bail-out that mixes capabilities the code needs with a fault it refuses turns inside out: it fires only where the capabilities are ABSENT, and lets every value the fault term names walk straight into the body that cannot handle it.
Method: Roslyn syntax only, no semantic model: every logical-not whose operand is a parenthesised `||` chain of two or more disjuncts, flattened (a left-nested `a || b || c` read once would see `(a || b)` as one disjunct). A site enters the population on that shape alone. A finding additionally needs the disjuncts to DISAGREE in polarity: at least one bare boolean read — an identifier or member access, never an invocation, which is a predicate rather than a capability flag — and at least one `x != <constant>`, the only form that negates into an exact-value pin (`== null` negates into a looser requirement and is outside the fault set). Consistently-polarised disjunctions, all-fault or all-capability, are counted and never reported; a negated `&&` is outside the population entirely. No same-receiver gate: it was measured to cost a real defect and remove no false positive. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether log calls use message templates (queryable) rather than interpolated strings.
Method: Roslyn syntax scan: every log call-site counted; interpolated-string first-argument violations flagged. Population is all log calls, not estimated. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `trace`/`debug`/`info`/`warn`/`error`/`fatal`/`verbose`/`silly`/`http`/`log` call on a receiver named for a logger, in a package whose own or an enclosing `package.json` declares a logger that carries values as fields (pino, pino-http, nestjs-pino, Fastify, winston, bunyan, tslog, LogTape, roarr), whose first deciding argument is a template literal with substitutions; an object-literal fields argument is stepped over, a plain string message clears the call. Python is read the same way: a `debug`/`info`/`warning`/`error`/`exception`/`critical`/`log` call on a logger in a file that imports the standard library’s `logging` or structlog (loguru, which formats at the call, is not judged), whose message is a whole f-string with a non-constant field; a `%`-formatted, `.format()`-ed or concatenated message is not convicted, as in C#. PHP is read the same way: a PSR-3 level call (`emergency`…`debug`, `log`) on a logger (`$logger`, `$this->logger`, Laravel’s `Log::`, `logger()`, `\Drupal::logger()`) in a package whose `composer.json` requires a PSR-3 logger or a framework that hands one out (psr/log, Monolog, Laravel, Symfony, Drupal, CakePHP), or a file that imports one, whose message is a double-quoted string interpolating a variable; a single-quoted message clears the call, and `sprintf` or `.` concatenation is not convicted, as in C#. Dart is read the same way: a `trace`/`debug`/`info`/`warn`/`error`/`fatal` call on Sentry’s structured logger (`Sentry.logger`) whose message is a whole string literal interpolating a value (`$name`, `${…}`); the `Sentry.logger.fmt` template API clears the call. Dart that logs only through loggers with one message and no fields (package:logging, package:logger, talker, dart:developer) is not applicable rather than a reach gap. Ruby is read the same way: a `trace`/`debug`/`info`/`warn`/`error`/`fatal` call on the console gem’s `Console` (declared by a Gemfile, gemspec or Gemfile.lock, or required) or, where SemanticLogger, Ougai or dry-logger is declared or required, on a receiver named for a logger (`logger`, `@logger`, `Rails.logger`, `log`), whose first deciding argument is, as the whole argument, a double-quoted string interpolating a non-constant value (`#{…}`, `#@ivar`); a plain literal clears the call, keyword arguments are the fields, and a block, `%`-format or `+` concatenation is not convicted. Ruby that logs only through the standard Logger (Rails.logger) is not applicable rather than a reach gap. Deterministic.
`debug` at line 2540 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.debug("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.debug("order moved", order_id=order_id, status=status)` with structlog. — REDACTED:2540
`debug` at line 2550 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.debug("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.debug("order moved", order_id=order_id, status=status)` with structlog. — REDACTED:2550
`debug` at line 2618 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.debug("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.debug("order moved", order_id=order_id, status=status)` with structlog. — REDACTED:2618
`debug` at line 2902 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.debug("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.debug("order moved", order_id=order_id, status=status)` with structlog. — REDACTED:2902
`debug` at line 2910 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.debug("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.debug("order moved", order_id=order_id, status=status)` with structlog. — REDACTED:2910
`debug` at line 2921 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.debug("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.debug("order moved", order_id=order_id, status=status)` with structlog. — REDACTED:2921
`debug` at line 2929 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.debug("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.debug("order moved", order_id=order_id, status=status)` with structlog. — REDACTED:2929
`debug` at line 2935 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.debug("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.debug("order moved", order_id=order_id, status=status)` with structlog. — REDACTED:2935
`debug` at line 2948 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.debug("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.debug("order moved", order_id=order_id, status=status)` with structlog. — REDACTED:2948
`debug` at line 3039 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.debug("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.debug("order moved", order_id=order_id, status=status)` with structlog. — REDACTED:3039
`debug` at line 3061 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.debug("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.debug("order moved", order_id=order_id, status=status)` with structlog. — REDACTED:3061
`warning` at line 310 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.warning("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.warning("order moved", order_id=order_id, status=status)` with structlog. — studio/backend/core/_msvc_env.py:310
`debug` at line 262 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.debug("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.debug("order moved", order_id=order_id, status=status)` with structlog. — REDACTED:262
`warning` at line 572 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.warning("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.warning("order moved", order_id=order_id, status=status)` with structlog. — REDACTED:572
`warning` at line 767 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.warning("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.warning("order moved", order_id=order_id, status=status)` with structlog. — REDACTED:767
`error` at line 832 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.error("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.error("order moved", order_id=order_id, status=status)` with structlog. — REDACTED:832
`warning` at line 841 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.warning("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.warning("order moved", order_id=order_id, status=status)` with structlog. — REDACTED:841
`info` at line 889 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.info("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.info("order moved", order_id=order_id, status=status)` with structlog. — REDACTED:889
`info` at line 1053 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.info("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.info("order moved", order_id=order_id, status=status)` with structlog. — REDACTED:1053
`info` at line 1113 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.info("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.info("order moved", order_id=order_id, status=status)` with structlog. — REDACTED:1113
`info` at line 1142 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.info("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.info("order moved", order_id=order_id, status=status)` with structlog. — REDACTED:1142
`error` at line 1175 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.error("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.error("order moved", order_id=order_id, status=status)` with structlog. — REDACTED:1175
`warning` at line 1182 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.warning("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.warning("order moved", order_id=order_id, status=status)` with structlog. — REDACTED:1182
`warning` at line 1187 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.warning("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.warning("order moved", order_id=order_id, status=status)` with structlog. — REDACTED:1187
`info` at line 1244 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.info("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.info("order moved", order_id=order_id, status=status)` with structlog. — REDACTED:1244
`error` at line 1288 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.error("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.error("order moved", order_id=order_id, status=status)` with structlog. — REDACTED:1288
`warning` at line 1310 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.warning("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.warning("order moved", order_id=order_id, status=status)` with structlog. — REDACTED:1310
`warning` at line 1320 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.warning("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.warning("order moved", order_id=order_id, status=status)` with structlog. — REDACTED:1320
`info` at line 1340 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.info("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.info("order moved", order_id=order_id, status=status)` with structlog. — REDACTED:1340
`warning` at line 1342 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.warning("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.warning("order moved", order_id=order_id, status=status)` with structlog. — REDACTED:1342
`warning` at line 1465 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.warning("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.warning("order moved", order_id=order_id, status=status)` with structlog. — REDACTED:1465
`info` at line 1510 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.info("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.info("order moved", order_id=order_id, status=status)` with structlog. — REDACTED:1510
`info` at line 1562 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.info("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.info("order moved", order_id=order_id, status=status)` with structlog. — REDACTED:1562
`info` at line 1578 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.info("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.info("order moved", order_id=order_id, status=status)` with structlog. — REDACTED:1578
`warning` at line 1649 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.warning("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.warning("order moved", order_id=order_id, status=status)` with structlog. — REDACTED:1649
`info` at line 1666 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.info("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.info("order moved", order_id=order_id, status=status)` with structlog. — REDACTED:1666
`error` at line 1671 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.error("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.error("order moved", order_id=order_id, status=status)` with structlog. — REDACTED:1671
`info` at line 1706 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.info("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.info("order moved", order_id=order_id, status=status)` with structlog. — REDACTED:1706
`info` at line 1724 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.info("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.info("order moved", order_id=order_id, status=status)` with structlog. — REDACTED:1724
`info` at line 1738 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.info("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.info("order moved", order_id=order_id, status=status)` with structlog. — REDACTED:1738
Other · Code Health — Whether strict null checking is enabled and not undermined by heavy `!` assertion — TypeScript's `strictNullChecks` (which `strict` turns on) is what makes `string` exclude `null` and `undefined`, and the postfix `!` is the operator that silences it.
Method: Roslyn compiler-options scan: NullableContextOptions per project; null-forgiving (!) suppression density per 1k syntax nodes. Deterministic, adoption plus suppression penalty.
~0.3 `!` null assertions per 1k TypeScript source lines — 167 assertion(s) across the 597311 source line(s) of the 2182 TypeScript file(s) read, which is the only code the operator asserts anything in (a `!` in a `.js` file is not this operator and was not counted, and one in a file whose null checking is off silences nothing). Densest: REDACTED (31), studio/frontend/src/lib/video-utils.ts (14), REDACTED (12). Each one tells the compiler to trust the author about null, suppressing the very diagnostic `strictNullChecks` exists to produce.
What to do
The findings name the configuration each number was taken from and, for the assertions, the files that hold them. Turn null checking on where it is off — `"strict": true` in the base tsconfig that the others extend switches `strictNullChecks` on with the rest of the family — and then resolve the assertions rather than adding to them. A `!` on a value the checker could show to be null is a promise the author cannot check from where they are standing, and each one is a `TypeError: Cannot read properties of null` waiting for the path that makes it true; where the value genuinely cannot be null, say something the checker can see instead (narrow it with a test, make the property required, drop the `?`).
Do you agree with this assessment?
WCAG coverage — what static analysis assessed
Statically assessed 13 of 55 WCAG 2.2 Level A/AA success criteria (24%; ≈26% of the 50 WCAG 2.1 AA criteria for EN 301 549). The other 42 require runtime or manual evaluation. Partial signal only (a clean result is necessary, not sufficient; static analysis fully verifies none). This is accessibility readiness, not a conformance claim — a WCAG conformance claim requires manual evaluation (WCAG-EM 1.0).
The score is the rank-weighted fold of these lenses (worst-heaviest), each including its meta-dimensions; a lens with a Critical contributor is capped at Fair (its band reads "gated by …") and is never the strongest area however high its average.
Unscored — 4 check(s) recorded observations but carry no score
These checks ran and found something, but they do not carry a score — either by design (an advisory check reports evidence rather than grading it) or because they could not be scored here. They are excluded from the score for that reason, not because there was nothing to see.
X10 Duplicated predicate — 25 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
X6 Hand-rolled structured-format parsing — 30 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
X7 Silent fallback defaults — 40 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
X9 Subsumed condition operand — 1 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 4 control(s) we could not find positive evidence for
These checks grade a working control, and the repository shows no evidence of one. That is deliberately not scored as a zero: a repository cannot show an ops runbook, a database TTL or an infrastructure-side audit log, so absence of evidence here is not evidence the control is missing. It is also not a statement that the check is irrelevant to this codebase — the thing it grades applies; we just could not see it. Excluded from the score either way.
C3 Audit Trail — Not assessed: this repository stores data through 'sqlite3' (scripts/windows_sac_probe/studio_scenario.py:14) but declares no persisted model this check reads (Django, SQLAlchemy, SQLModel, Peewee, Tortoise and MongoEngine model fields, Alembic and Django migration columns, CREATE TABLE and ALTER TABLE … ADD columns in SQL files). Personal data may be written through raw SQL or a hosted backend, so whether its changes need an audit trail could not be established, and the trail's absence is not scored.
C4 Data Retention — Not assessed: this repository stores data through 'sqlite3' (scripts/windows_sac_probe/studio_scenario.py:14) but declares no persisted model this check reads (Django, SQLAlchemy, SQLModel, Peewee, Tortoise and mongoengine model fields, Alembic and Django migration columns, SQL schemas). Personal data may be written through raw SQL or a hosted backend, so whether a retention limit applies here could not be established, and its absence is not scored.
C5 Data-Subject Rights — Not assessed: this repository stores data through 'sqlite3' (scripts/windows_sac_probe/studio_scenario.py:14) but declares no persisted model this check reads (Django, SQLAlchemy, SQLModel, Peewee, Tortoise and mongoengine model fields, Alembic and Django migration columns, CREATE TABLE and ALTER TABLE … ADD columns in SQL files). Personal data may be written through raw SQL or a hosted backend, so whether data-subject rights apply here could not be established, and their absence is not scored.
P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 42 check(s) not relevant to this codebase
These checks had nothing to measure here (no tests, no git history, the codebase is small, or the architecture style doesn't apply), so they're omitted above rather than scored low.
AC6 Visual & motion safety — Visual & motion safety could not be assessed in this run — the check did not complete, so it is not scored. This is a gap in the analyzer, not a finding about this repository.
AX1 Captive dependencies — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
AX2 Stateful singletons — Not applicable: Rust's compiler refuses unsynchronised shared mutation — a value shared across threads must be Sync — so the race this check looks for cannot be written. TypeScript/JavaScript runs each process's requests on one event loop, so no two requests write a shared object at the same instant (interleaving across an await is a different defect).
AX4 Dependency direction — not applicable to a vertical-slice architecture (the inward-dependency rule is for layered/clean styles)
AX8 Test isolation — no test/production split to check
AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
AXR1 Runtime accessibility — docker build failed (exit 1) — DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
Install the buildx component to build images with BuildKit:
https://docs.docker.com/go/bui…; runtime evidence skipped This is a statement about this run, not a statement about your application: nothing here says the surface is inaccessible, only that it was never rendered.
C1 Data Protection — Not assessed: these personal data controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks personal data controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
D1 Cyclomatic Complexity — cyclomatic complexity not measured — .py exposed no member bodies
D11 Test Reliability — Test reliability not included
D15 Churn × Complexity Hotspots — complexity unreadable for .py — churn × complexity hotspots could not be measured
D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
D2 Cognitive Complexity — cognitive complexity not measured — .py exposed no member bodies
D22 Internal API Consistency — The exposed public-API surface could not be collected — no C#/VB projects loaded.
D23 Boundary Type-Coupling — No bounded-context organisation was detected either — neither a context-shaped layout, nor 2+ sibling source directories each declaring an aggregate root, nor 2+ projects each declaring an entity of their own. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
D24 Comment Value — No inline comments to assess — comment value is not applicable here.
D25 ADR Conformance — no ADRs to check
D26 Project Cohesion — D26 measured no build unit over this repository's .py source. Not scored: this is a gap in the analyzer, not a verdict about this repository.
D27 Navigability — D27 reads resolved call sites in the languages it reads only — this repository's production source is .py, .rs, which was left unread. Not scored: this is a gap in the analyzer, not a verdict about this repository.
D3 God Classes — Most of this repository's production source (.py) was not read by god-class detection, so class size was not assessed for the languages that are the product — whatever else this pass did read is not this repository's class size. Not scored — this is a gap in the analyzer, not a verdict about this repository.
D32 Data Compliance (PII/GDPR) — 68 file(s) were not parsed by semgrep — the PII/GDPR ruleset never ran over them
D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
D39 IL Efficiency — D39 measures the IL emitted by a .NET build; this repository has no .NET solution or project files, so the dimension does not apply.
D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
D8 Code Coverage — Coverage NOT MEASURED: the JavaScript/TypeScript half could not be measured — the node:test suite in studio/frontend/ ran and not one test passed (✔ a rejection that is not an Error still reports (0.117376ms)), so the coverage would describe the failed run, not the code. Coverage is excluded from the score rather than counted as a near-zero. The named suite step is one the repository's maintainers can perform; once it passes, the real number is measured on the next scan. Alternatively, commit the lcov/Cobertura report your CI produces and it is read without a re-run.
DM1 Domain Modelling — applicable but not scored (2 of 3 signals for this style — below the bar we score at): 14 value object(s); 1 domain event(s); its domain events are published by services or handlers — no domain entity raises one
ED2 Event/command shape — not scored — deciding whether a command has more than one competing handler requires resolving the call graph, and a call made through an inferred or generic receiver has no resolvable owner in the source. Reported as guidance rather than measured
ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
GD1 Unfinished & placeholder code — no source files were read — this check reads C#, F#, JavaScript/TypeScript, Dart, Ruby and Scala, and none was read for this repository's product. That is a limit of the analyzer, not a finding about your code.
IC1 Incompleteness & stubs — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
P12 CI test-gate honesty — Reported, not scored — and nothing was matched here. The coverage check applies to any stack, and the automatic-re-run check to any GitHub-Actions workflow, but the checks for excluded tests, skipped tests and sleep-based synchronisation currently recognise only some ecosystems' test-runner idioms, so on a repository built with another stack the zeros below mean 'not checked', not 'clean'.
P8 Schema migrations — no ORM, schema-migration tool or schema auto-create was found in this repository's dependency manifests or source, so there is no database schema for this check to judge
P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (`coverage run -m pytest` then `coverage xml`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures, or wire coverage collection into CI, to enable this cross-layer check
PF1 Benchmark discipline — Not applicable: no benchmark suite was found. This check searched for a pytest-benchmark or pytest-codspeed dependency with tests taking the `benchmark` fixture, an asv.conf.json with its `time_`/`mem_`/`peakmem_` benchmarks, or a pyperf Runner, and for a `*benchmark*` script that this repository's CI runs. Benchmarks are credited as a bonus, so their absence is neither scored nor deducted.
PF2 Allocation hygiene — Not applicable: Python and TypeScript/JavaScript runs on a garbage-collected runtime that gives a program no allocation-control idiom to choose on a hot path — no pools, stack allocation or value types — so allocation awareness is not something this code can be rated on.
S1 Web-Security Posture — Not assessed: these web-security controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks web-security controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
SC1 Supply-chain hygiene — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
X20 Mistyped argument guard — This check asks whether an argument guard reports an EMPTY value as a NULL one, which needs a language that throws a null-specific argument exception — .NET's ArgumentNullException, the JVM's NullPointerException, Dart's ArgumentError.notNull. This repository contains none of those languages: the ones it is written in have a single exception for a bad argument, so there is no pair of exceptions to confuse and nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
X32 Type resolved by simple name across every loaded assembly — This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
Appendix A — Findings (grouped)
The findings behind the scores, grouped by severity, then by dimension and kind. The high-severity issues are enumerated in full below; items per group are capped at 25 with any overflow stated explicitly per group, never silently truncated. The complete machine-readable list of every finding (all severities) is the companion findings.md in this report's bundle.
AC2 · Forms & labels· <label> that labels no control · ×10
<label> that labels no control studio/frontend/src/features/export/components/export-run-panel.tsx:283— This <label> has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label htmlFor="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
<label> that labels no control studio/frontend/src/features/export/components/export-run-panel.tsx:341— This <label> has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label htmlFor="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
<label> that labels no control studio/frontend/src/features/export/components/export-run-panel.tsx:351— This <label> has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label htmlFor="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
<label> that labels no control studio/frontend/src/features/export/components/export-run-panel.tsx:369— This <label> has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label htmlFor="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
<label> that labels no control studio/frontend/src/features/export/components/export-run-panel.tsx:586— This <label> has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label htmlFor="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
<label> that labels no control studio/frontend/src/features/export/export-page.tsx:1261— This <label> has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label htmlFor="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
<label> that labels no control studio/frontend/src/features/export/export-page.tsx:1382— This <label> has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label htmlFor="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
<label> that labels no control studio/frontend/src/features/export/export-page.tsx:1452— This <label> has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label htmlFor="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
<label> that labels no control studio/frontend/src/features/export/export-page.tsx:1480— This <label> has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label htmlFor="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
<label> that labels no control studio/frontend/src/features/images/detailer-field.tsx:101— This <label> has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label htmlFor="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
AC2 · Forms & labels· <input> without a programmatic label · ×7
<input> without a programmatic label studio/frontend/smoke-nonmodal-menus-main.tsx:211— This control has no associated label. Add a <label htmlFor> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
<input> without a programmatic label studio/frontend/src/components/assistant-ui/audio-player.tsx:107— This control has no associated label. Add a <label htmlFor> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
<input> without a programmatic label studio/frontend/src/features/chat/prompt-storage/prompt-storage-dialog.tsx:1703— This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label htmlFor>, a wrapping <label>, or aria-label.
<input> without a programmatic label studio/frontend/src/features/chat/prompt-storage/prompt-storage-dialog.tsx:1885— This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label htmlFor>, a wrapping <label>, or aria-label.
<input> without a programmatic label studio/frontend/src/features/chat/prompt-storage/prompt-storage-dialog.tsx:2015— This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label htmlFor>, a wrapping <label>, or aria-label.
<input> without a programmatic label studio/frontend/src/features/chat/prompt-storage/prompt-storage-dialog.tsx:2210— This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label htmlFor>, a wrapping <label>, or aria-label.
<input> without a programmatic label studio/frontend/src/features/chat/prompt-storage/prompt-storage-dialog.tsx:2646— This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label htmlFor>, a wrapping <label>, or aria-label.
AC2 · Forms & labels· <textarea> without a programmatic label · ×6
<textarea> without a programmatic label studio/backend/assets/preview_page.html:291— This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label.
<textarea> without a programmatic label studio/frontend/smoke-find-in-page-main.tsx:319— This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label htmlFor>, a wrapping <label>, or aria-label.
<textarea> without a programmatic label studio/frontend/src/components/tauri/diagnostics-copy-actions.tsx:63— This control has no associated label. Add a <label htmlFor> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
<textarea> without a programmatic label studio/frontend/src/features/chat/prompt-storage/prompt-storage-dialog.tsx:1715— This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label htmlFor>, a wrapping <label>, or aria-label.
<textarea> without a programmatic label studio/frontend/src/features/chat/prompt-storage/prompt-storage-dialog.tsx:1892— This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label htmlFor>, a wrapping <label>, or aria-label.
<textarea> without a programmatic label studio/frontend/src/features/chat/prompt-storage/sortable-prompt-items.tsx:77— This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label htmlFor>, a wrapping <label>, or aria-label.
AC2 · Forms & labels· <button> with no accessible text · ×4
<button> with no accessible text studio/frontend/src/features/export/components/method-picker.tsx:34— A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one).
<button> with no accessible text studio/frontend/src/features/export/components/quant-picker.tsx:51— A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one).
<button> with no accessible text studio/frontend/src/features/export/export-page.tsx:1205— A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one).
<button> with no accessible text studio/frontend/src/features/export/export-page.tsx:1320— A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one).
AC4 · Keyboard semantics· Click handler on a non-interactive <span> · ×3
Click handler on a non-interactive <span> studio/frontend/src/features/chat/projects-page.tsx:837— A click handler on a plain element with no role and no tabindex: even where another element's key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a <button>, or add role + tabIndex={0}.
Click handler on a non-interactive <span> studio/frontend/src/features/model-picker/components/model-selector.tsx:243— A click handler on a plain element with no role and no tabindex: even where another element's key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a <button>, or add role + tabIndex={0}.
Click handler on a non-interactive <span> studio/frontend/src/features/settings/components/embedding-model-picker.tsx:181— A click handler on a plain element with no role and no tabindex: even where another element's key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a <button>, or add role + tabIndex={0}.
AC4 · Keyboard semantics· Click handler on a non-interactive <div> · ×2
Click handler on a non-interactive <div> studio/frontend/src/components/image-viewer.tsx:261— A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabIndex={0} + a key handler.
Click handler on a non-interactive <div> studio/frontend/src/features/chat/components/deep-research-composer-button.tsx:117— A click handler on a plain element with no role and no tabindex: even where another element's key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a <button>, or add role + tabIndex={0}.
AC4 · Keyboard semantics· Double-click handler on a non-interactive <div> · ×2
Double-click handler on a non-interactive <div> studio/frontend/src/components/tauri/window-titlebar.tsx:519— This <div> binds mousedown and double-click — pointer gestures with no keyboard form, a double-click among them. No click, no key handler, and no tabIndex={0}, so it cannot even take focus. Nothing synthesises a double-click from the keyboard: Enter and Space fire a single click, and only on a native <button> or <a href>. So this behaviour has no keyboard path at all. Expose the same action on a real control, or add role + tabIndex={0} + a key handler alongside the double-click.
Double-click handler on a non-interactive <div> studio/frontend/src/components/tauri/window-titlebar.tsx:533— This <div> binds mousedown and double-click — pointer gestures with no keyboard form, a double-click among them. No click, no key handler, and no tabIndex={0}, so it cannot even take focus. Nothing synthesises a double-click from the keyboard: Enter and Space fire a single click, and only on a native <button> or <a href>. So this behaviour has no keyboard path at all. Expose the same action on a real control, or add role + tabIndex={0} + a key handler alongside the double-click.
AC4 · Keyboard semantics· Click handler on a <span> nested inside <button> · ×2
Click handler on a <span> nested inside <button> studio/frontend/src/features/chat/components/deep-research-composer-button.tsx:297— This <span> carries its own click handler, but it sits inside a <button> that performs a different action. A keyboard user reaches the <button> and activating it runs the <button>'s handler, never this one, so this action has no keyboard path at all. Role and tabindex cannot supply one: HTML forbids a <button> from containing interactive content or any descendant with a tabindex, so the browser will not put this element in the tab order however it is marked up. Move it out of the <button> and make it a sibling <button>, so each action has its own control.
Click handler on a <span> nested inside <button> REDACTED:1479— This <span> carries its own click handler, but it sits inside a <button> that performs a different action. A keyboard user reaches the <button> and activating it runs the <button>'s handler, never this one, so this action has no keyboard path at all. Role and tabindex cannot supply one: HTML forbids a <button> from containing interactive content or any descendant with a tabindex, so the browser will not put this element in the tab order however it is marked up. Move it out of the <button> and make it a sibling <button>, so each action has its own control.
AC2 · Forms & labels· Custom control with no accessible name on <article> · ×1
Custom control with no accessible name on <article> REDACTED:159— This <article> carries a click handler, which makes it a control, but it has no text, aria-label or labelled child (the icon-only case), so assistive tech has no name to announce for it. Note that switching it to <button type="button"> — the right fix for its keyboard operability — does not give it a name either: an icon-only button still needs one. Add visible text or an aria-label.
AC2 · Forms & labels· Custom control with no accessible name on <video> · ×1
Custom control with no accessible name on <video> studio/frontend/src/features/browser/video-file.tsx:162— This <video> carries a click handler, which makes it a control, but it has no text, aria-label or labelled child (the icon-only case), so assistive tech has no name to announce for it. Note that switching it to <button type="button"> — the right fix for its keyboard operability — does not give it a name either: an icon-only button still needs one. Add visible text or an aria-label.
AC4 · Keyboard semantics· Click handler on a non-interactive <article> · ×1
Click handler on a non-interactive <article> REDACTED:159— A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabIndex={0} + a key handler.
AC4 · Keyboard semantics· Click handler on a non-interactive <video> · ×1
Click handler on a non-interactive <video> studio/frontend/src/features/browser/video-file.tsx:162— A click handler on a plain element with no role and no tabindex: even where another element's key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a <button>, or add role + tabIndex={0}.
Unknown ARIA attribute "aria-in-html" studio/frontend/src/features/settings/components/embedding-model-picker.tsx:279— This is not a valid WAI-ARIA attribute, so assistive technology ignores it (usually a typo). Use the correct aria-* attribute.
Unlisted import '@shikijs/themes' studio/frontend/scripts/coal-span-census.mjs:37— Imported but not declared in any reachable package.json — installs work only by hoisting accident.
Unlisted import '@xmldom/xmldom' studio/frontend/tests/attachment-preview-text.test.ts:7— Imported but not declared in any reachable package.json — installs work only by hoisting accident.
Unlisted import 'hast-util-sanitize' studio/frontend/tests/math-block-marker.test.ts:57— Imported but not declared in any reachable package.json — installs work only by hoisting accident.
Unlisted import 'mermaid' studio/frontend/tests/mermaid-remote-images-render.test.ts:74— Imported but not declared in any reachable package.json — installs work only by hoisting accident.
Unlisted import 'rehype-raw' studio/frontend/tests/math-block-marker-pipeline.test.ts:8— Imported but not declared in any reachable package.json — installs work only by hoisting accident.
Unlisted import 'rehype-sanitize' studio/frontend/tests/math-block-marker-pipeline.test.ts:9— Imported but not declared in any reachable package.json — installs work only by hoisting accident.
Unlisted import 'remark-gfm' studio/frontend/tests/link-definition-oracle.test.ts:13— Imported but not declared in any reachable package.json — installs work only by hoisting accident.
Unlisted import 'remark-parse' studio/frontend/tests/link-definition-oracle.test.ts:14— Imported but not declared in any reachable package.json — installs work only by hoisting accident.
Unlisted import 'remark-rehype' studio/frontend/tests/link-definition-oracle.test.ts:15— Imported but not declared in any reachable package.json — installs work only by hoisting accident.
Unlisted import 'shiki' studio/frontend/scripts/coal-span-census.mjs:39— Imported but not declared in any reachable package.json — installs work only by hoisting accident.
Cross-slice coupling: api-monitor → chat studio/frontend/src/features/api-monitor/api-monitor-overlay.tsx:82— `entryDuration` (slice 'api-monitor') depends on `ApiMonitorEntry` from slice 'chat'.
Cross-slice coupling: api-monitor → chat studio/frontend/src/features/api-monitor/api-monitor-overlay.tsx:90— `SERVER_STATUS` (slice 'api-monitor') depends on `ApiMonitorResponse` from slice 'chat'.
Cross-slice coupling: api-monitor → settings studio/frontend/src/features/api-monitor/api-monitor-overlay.tsx:153— `ApiMonitorOverlay` (slice 'api-monitor') depends on `useShortcut` from slice 'settings'.
Cross-slice coupling: api-monitor → chat studio/frontend/src/features/api-monitor/api-monitor-overlay.tsx:199— `ApiMonitorOverlay` (slice 'api-monitor') depends on `getApiMonitor` from slice 'chat'.
Cross-slice coupling: api-monitor → chat studio/frontend/src/features/api-monitor/api-monitor-overlay.tsx:309— `ApiMonitorPanel` (slice 'api-monitor') depends on `useChatRuntimeStore` from slice 'chat'.
Cross-slice coupling: api-monitor → settings studio/frontend/src/features/api-monitor/api-monitor-overlay.tsx:352— `ApiMonitorPanel` (slice 'api-monitor') depends on `useMonitorFrameStore` from slice 'settings'.
Cross-slice coupling: api-monitor → find-in-page studio/frontend/src/features/api-monitor/api-monitor-overlay.tsx:397— `ApiMonitorPanel` (slice 'api-monitor') depends on `FIND_PORTAL_ATTRIBUTE` from slice 'find-in-page'.
Cross-slice coupling: api-monitor → chat studio/frontend/src/features/api-monitor/api-monitor-page.tsx:123— `SERVER_STATUS` (slice 'api-monitor') depends on `ApiMonitorResponse` from slice 'chat'.
Cross-slice coupling: api-monitor → chat studio/frontend/src/features/api-monitor/api-monitor-page.tsx:195— `entryDuration` (slice 'api-monitor') depends on `ApiMonitorEntry` from slice 'chat'.
Cross-slice coupling: api-monitor → hub studio/frontend/src/features/api-monitor/api-monitor-page.tsx:260— `servedModels` (slice 'api-monitor') depends on `modelIdsMatch` from slice 'hub'.
Cross-slice coupling: api-monitor → settings studio/frontend/src/features/api-monitor/api-monitor-page.tsx:290— `openApiSettings` (slice 'api-monitor') depends on `useSettingsDialogStore` from slice 'settings'.
Cross-slice coupling: api-monitor → tour studio/frontend/src/features/api-monitor/api-monitor-page.tsx:890— `ApiMonitorPage` (slice 'api-monitor') depends on `useGuidedTourController` from slice 'tour'.
Cross-slice coupling: api-monitor → chat studio/frontend/src/features/api-monitor/api-monitor-page.tsx:920— `ApiMonitorPage` (slice 'api-monitor') depends on `useChatModelRuntime` from slice 'chat'.
Cross-slice coupling: api-monitor → chat studio/frontend/src/features/api-monitor/api-monitor-page.tsx:921— `ApiMonitorPage` (slice 'api-monitor') depends on `useChatRuntimeStore` from slice 'chat'.
Cross-slice coupling: api-monitor → model-picker studio/frontend/src/features/api-monitor/api-monitor-page.tsx:939— `ApiMonitorPage` (slice 'api-monitor') depends on `ModelConfigHandoffRequest` from slice 'model-picker'.
Cross-slice coupling: api-monitor → settings studio/frontend/src/features/api-monitor/api-monitor-page.tsx:948— `ApiMonitorPage` (slice 'api-monitor') depends on `loadLanAccess` from slice 'settings'.
Cross-slice coupling: api-monitor → settings studio/frontend/src/features/api-monitor/api-monitor-page.tsx:949— `ApiMonitorPage` (slice 'api-monitor') depends on `publishLanUrls` from slice 'settings'.
Cross-slice coupling: api-monitor → chat studio/frontend/src/features/api-monitor/api-monitor-page.tsx:963— `ApiMonitorPage` (slice 'api-monitor') depends on `getInferenceStatus` from slice 'chat'.
Cross-slice coupling: api-monitor → chat studio/frontend/src/features/api-monitor/api-monitor-page.tsx:964— `ApiMonitorPage` (slice 'api-monitor') depends on `resolveInferenceCheckpointId` from slice 'chat'.
Cross-slice coupling: api-monitor → chat studio/frontend/src/features/api-monitor/api-monitor-page.tsx:977— `ApiMonitorPage` (slice 'api-monitor') depends on `unloadModel` from slice 'chat'.
Cross-slice coupling: api-monitor → chat studio/frontend/src/features/api-monitor/api-monitor-page.tsx:986— `ApiMonitorPage` (slice 'api-monitor') depends on `isExternalModelId` from slice 'chat'.
Cross-slice coupling: api-monitor → settings studio/frontend/src/features/api-monitor/api-monitor-page.tsx:1147— `ApiMonitorPage` (slice 'api-monitor') depends on `remoteApiOrigin` from slice 'settings'.
Cross-slice coupling: api-monitor → model-picker studio/frontend/src/features/api-monitor/api-monitor-page.tsx:1197— `ApiMonitorPage` (slice 'api-monitor') depends on `createModelConfigHandoffRequestId` from slice 'model-picker'.
Cross-slice coupling: api-monitor → tour studio/frontend/src/features/api-monitor/api-monitor-page.tsx:1303— `ApiMonitorPage` (slice 'api-monitor') depends on `GuidedTour` from slice 'tour'.
Cross-slice coupling: api-monitor → settings studio/frontend/src/features/api-monitor/api-sampling-example.ts:149— `curlExample` (slice 'api-monitor') depends on `psSingle` from slice 'settings'.
Boundary violation [fsd:cross-slice] studio/frontend/src/features/api-monitor/api-monitor-overlay.tsx:7— studio/frontend/src/features/api-monitor/api-monitor-overlay.tsx:7 imports studio/frontend/src/features/chat/api/chat-api.ts against the feature-sliced rules.
Boundary violation [fsd:cross-slice] studio/frontend/src/features/api-monitor/api-monitor-overlay.tsx:8— studio/frontend/src/features/api-monitor/api-monitor-overlay.tsx:8 imports studio/frontend/src/features/chat/stores/chat-runtime-store.ts against the feature-sliced rules.
Boundary violation [fsd:cross-slice] studio/frontend/src/features/api-monitor/api-monitor-overlay.tsx:13— studio/frontend/src/features/api-monitor/api-monitor-overlay.tsx:13 imports studio/frontend/src/features/find-in-page/lib/find-attributes.ts against the feature-sliced rules.
Boundary violation [fsd:cross-slice] studio/frontend/src/features/api-monitor/api-monitor-overlay.tsx:14— studio/frontend/src/features/api-monitor/api-monitor-overlay.tsx:14 imports studio/frontend/src/features/settings/index.ts against the feature-sliced rules.
Boundary violation [fsd:cross-slice] studio/frontend/src/features/api-monitor/api-monitor-page.tsx:5— studio/frontend/src/features/api-monitor/api-monitor-page.tsx:5 imports studio/frontend/src/features/tour/index.ts against the feature-sliced rules.
Boundary violation [fsd:cross-slice] studio/frontend/src/features/api-monitor/api-monitor-page.tsx:22— studio/frontend/src/features/api-monitor/api-monitor-page.tsx:22 imports studio/frontend/src/features/chat/api/chat-api.ts against the feature-sliced rules.
Boundary violation [fsd:cross-slice] studio/frontend/src/features/api-monitor/api-monitor-page.tsx:23— studio/frontend/src/features/api-monitor/api-monitor-page.tsx:23 imports studio/frontend/src/features/chat/lib/apply-inference-status-to-store.ts against the feature-sliced rules.
Boundary violation [fsd:cross-slice] studio/frontend/src/features/api-monitor/api-monitor-page.tsx:24— studio/frontend/src/features/api-monitor/api-monitor-page.tsx:24 imports studio/frontend/src/features/chat/stores/chat-runtime-store.ts against the feature-sliced rules.
Boundary violation [fsd:cross-slice] studio/frontend/src/features/api-monitor/api-monitor-page.tsx:25— studio/frontend/src/features/api-monitor/api-monitor-page.tsx:25 imports studio/frontend/src/features/chat/index.ts against the feature-sliced rules.
Boundary violation [fsd:cross-slice] studio/frontend/src/features/api-monitor/api-monitor-page.tsx:27— studio/frontend/src/features/api-monitor/api-monitor-page.tsx:27 imports studio/frontend/src/features/chat/external-providers.ts against the feature-sliced rules.
Boundary violation [fsd:cross-slice] studio/frontend/src/features/api-monitor/api-monitor-page.tsx:28— studio/frontend/src/features/api-monitor/api-monitor-page.tsx:28 imports studio/frontend/src/features/hub/lib/model-identity.ts against the feature-sliced rules.
Boundary violation [fsd:cross-slice] studio/frontend/src/features/api-monitor/api-monitor-page.tsx:29— studio/frontend/src/features/api-monitor/api-monitor-page.tsx:29 imports studio/frontend/src/features/model-picker/index.ts against the feature-sliced rules.
Boundary violation [fsd:cross-slice] studio/frontend/src/features/api-monitor/api-monitor-page.tsx:33— studio/frontend/src/features/api-monitor/api-monitor-page.tsx:33 imports studio/frontend/src/features/settings/index.ts against the feature-sliced rules.
Boundary violation [fsd:cross-slice] studio/frontend/src/features/api-monitor/api-monitor-page.tsx:38— studio/frontend/src/features/api-monitor/api-monitor-page.tsx:38 imports studio/frontend/src/features/settings/api/remote-access-state.ts against the feature-sliced rules.
Boundary violation [fsd:cross-slice] studio/frontend/src/features/api-monitor/api-sampling-example.ts:4— studio/frontend/src/features/api-monitor/api-sampling-example.ts:4 imports studio/frontend/src/features/settings/components/agent-command.ts against the feature-sliced rules.
Boundary violation [fsd:cross-slice] studio/frontend/src/features/api-monitor/components/api-example-box.tsx:4— studio/frontend/src/features/api-monitor/components/api-example-box.tsx:4 imports studio/frontend/src/features/settings/components/api-example-parts.tsx against the feature-sliced rules.
Boundary violation [fsd:cross-slice] studio/frontend/src/features/api-monitor/components/api-example-box.tsx:10— studio/frontend/src/features/api-monitor/components/api-example-box.tsx:10 imports studio/frontend/src/features/settings/stores/settings-panel-prefs-store.ts against the feature-sliced rules.
Boundary violation [fsd:cross-slice] studio/frontend/src/features/api-monitor/components/api-example-dialog.tsx:11— studio/frontend/src/features/api-monitor/components/api-example-dialog.tsx:11 imports studio/frontend/src/features/auth/index.ts against the feature-sliced rules.
Boundary violation [fsd:cross-slice] studio/frontend/src/features/api-monitor/components/api-model-load-controls.tsx:8— studio/frontend/src/features/api-monitor/components/api-model-load-controls.tsx:8 imports studio/frontend/src/features/chat/index.ts against the feature-sliced rules.
Boundary violation [fsd:cross-slice] studio/frontend/src/features/api-monitor/components/api-model-load-controls.tsx:16— studio/frontend/src/features/api-monitor/components/api-model-load-controls.tsx:16 imports studio/frontend/src/features/hub/index.ts against the feature-sliced rules.
Boundary violation [fsd:cross-slice] studio/frontend/src/features/api-monitor/components/api-model-load-controls.tsx:23— studio/frontend/src/features/api-monitor/components/api-model-load-controls.tsx:23 imports studio/frontend/src/features/model-picker/index.ts against the feature-sliced rules.
Boundary violation [fsd:cross-slice] studio/frontend/src/features/api-monitor/components/api-model-load-controls.tsx:33— studio/frontend/src/features/api-monitor/components/api-model-load-controls.tsx:33 imports studio/frontend/src/features/npu/index.ts against the feature-sliced rules.
Boundary violation [fsd:cross-slice] studio/frontend/src/features/api-monitor/components/saved-model-settings.tsx:10— studio/frontend/src/features/api-monitor/components/saved-model-settings.tsx:10 imports studio/frontend/src/features/model-picker/api/model-overrides.ts against the feature-sliced rules.
Boundary violation [fsd:cross-slice] studio/frontend/src/features/api-monitor/components/saved-model-settings.tsx:16— studio/frontend/src/features/api-monitor/components/saved-model-settings.tsx:16 imports studio/frontend/src/features/model-picker/model-config/per-model-config.ts against the feature-sliced rules.
Boundary violation [fsd:cross-slice] studio/frontend/src/features/api-monitor/forget-model-override.ts:4— studio/frontend/src/features/api-monitor/forget-model-override.ts:4 imports studio/frontend/src/features/model-picker/api/model-overrides.ts against the feature-sliced rules.
+ 15 more in this group — see findings.md.
R4 · Test Coverage· No test reaches this file · ×40
No test reaches this file studio/frontend/smoke-heavy-thread-main.tsx:1— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file studio/backend/core/data_recipe/oxc-validator/validate.mjs:1— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file studio/frontend/smoke-code-block-flicker-main.tsx:1— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file studio/frontend/smoke-thread-weight-main.tsx:1— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file studio/frontend/smoke-find-in-page-main.tsx:1— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file studio/frontend/smoke-stream-pacing-main.tsx:1— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file studio/frontend/smoke-tool-activity-main.tsx:1— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file studio/frontend/src/components/ui/menubar.tsx:1— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file studio/frontend/smoke-collapse-layout-main.tsx:1— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file studio/frontend/smoke-nonmodal-menus-main.tsx:1— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file studio/frontend/smoke-shortcuts-main.tsx:1— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file studio/frontend/smoke-research-main.tsx:1— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file studio/frontend/smoke-reasoning-transcript-main.tsx:1— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file studio/frontend/smoke-titlebar-blur-main.tsx:1— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file studio/frontend/smoke-prompt-queue-actions-main.tsx:1— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file studio/frontend/src/components/ui/navigation-menu.tsx:1— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file studio/frontend/src/i18n/check-parity.ts:1— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file studio/frontend/scripts/typecheck.mjs:1— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file studio/frontend/smoke-link-definition-probe-main.tsx:1— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file studio/frontend/smoke-settings-main.tsx:1— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file studio/frontend/src/components/ui/sparkles-text.tsx:1— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file docker/jupyter/unsloth_labext/src/colabTitle.ts:1— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file studio/backend/core/data_recipe/oxc-validator/compile-react.mjs:1— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file studio/frontend/src/components/ui/pagination.tsx:1— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
No test reaches this file studio/frontend/smoke-autoscroll-main.tsx:1— No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
Change coupling: tool-ui-python.tsx ↔ tool-ui-terminal.tsx studio/frontend/src/components/assistant-ui/tool-ui-python.tsx:1— `studio/frontend/src/components/assistant-ui/tool-ui-python.tsx` and `studio/frontend/src/components/assistant-ui/tool-ui-terminal.tsx` change together 100% of the time (13 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module — a sibling reference still needs an import — so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 13 shared commits counted here, the most recent 3 are `2d9671da` Studio: keep created files outside the collapsed tool card (#10446); `d7bc72c1` Studio: keep the output a timed-out python or terminal call already p…; `29463b25` [Fix] Studio: show "Using tool" for active tool calls (#10548) — run `git show` on any of them.
Change coupling: image_gallery.py ↔ api.ts studio/backend/core/inference/image_gallery.py:1— `studio/backend/core/inference/image_gallery.py` and `studio/frontend/src/features/images/api.ts` change together 93% of the time (13 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit — they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary — an event or message name, a route, a serialised shape — that each side currently spells out on its own, which is exactly why a change to one drags the other. Declare that contract once where both sides read it (a shared schema, a generated constants file, an interface-definition file) so a change on one side fails the other's build instead of drifting silently; where the surface is too small to be worth that, name the counterpart in a comment on both sides so the next reader finds it. There is nothing here to merge. You can check this without leaving the row: of the 13 shared commits counted here, the most recent 3 are `edd61368` Studio Images: Detailer (face fix) pass with SAM 3 and inpaint (#14616); `45b095e2` Studio Images: Hires fix and ESRGAN model upscalers (#14651); `d277aa6e` Studio Images: SDXL prompt weighting, CLIP skip, CFG rescale and vari… — run `git show` on any of them.
Change coupling: seed-dialog.tsx ↔ seed-config-parser.ts studio/frontend/src/features/recipe-studio/dialogs/seed/seed-dialog.tsx:1— `studio/frontend/src/features/recipe-studio/dialogs/seed/seed-dialog.tsx` and `studio/frontend/src/features/recipe-studio/utils/import/parsers/seed-config-parser.ts` change together 90% of the time (9 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are `fee26fe1` Studio: extract ebooks, Office files and email in Data Recipes docume…; `3b73cd88` Fix per-block ID collisions and add block cleanup for unstructured up…; `bdc82529` feat(seed): backend unstructured seed reader + server-side chunking, … — run `git show` on any of them.
Change coupling: training-config-store.ts ↔ api.ts studio/frontend/src/features/training/stores/training-config-store.ts:1— `studio/frontend/src/features/training/stores/training-config-store.ts` and `studio/frontend/src/features/training/types/api.ts` change together 80% of the time (16 of the 20 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 16 shared commits counted here, the most recent 3 are `aefe904d` feat(studio): implement S3 dataset loading (completes #5951) (#6222); `dac2aeda` Studio: expose image size setting in training UI (#5743); `0c803242` feat(studio): add Continued Pretraining (CPT) as a training method (#… — run `git show` on any of them.
Change coupling: recipe-studio-page.tsx ↔ derive-display-graph.ts studio/frontend/src/features/recipe-studio/recipe-studio-page.tsx:1— `studio/frontend/src/features/recipe-studio/recipe-studio-page.tsx` and `studio/frontend/src/features/recipe-studio/utils/graph/derive-display-graph.ts` change together 80% of the time (8 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are `b7edf4e3` refactor(recipe-studio): simplify runtime graph flow + guard stale ac…; `8a996afb` feat(recipe-studio): add live execution graph state (active flows, no…; `dd3e1e72` refactor(recipe-studio): simplify aux node graph logic and remove dea… — run `git show` on any of them.
Change coupling: llama-update-banner.tsx ↔ update-banner.tsx studio/frontend/src/components/llama-update-banner.tsx:1— `studio/frontend/src/components/llama-update-banner.tsx` and `studio/frontend/src/components/web/update-banner.tsx` change together 80% of the time (8 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are `8e26d2c2` Studio: stop the update banners floating off the corner (#10229); `5e774c26` Studio: show what changed in llama.cpp updates (#10117); `27434480` Studio: put the notification rail back in its bottom-right corner (#9… — run `git show` on any of them.
Change coupling: providers.py ↔ external-providers.ts studio/backend/models/providers.py:1— `studio/backend/models/providers.py` and `studio/frontend/src/features/chat/external-providers.ts` change together 80% of the time (8 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit — they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary — an event or message name, a route, a serialised shape — that each side currently spells out on its own, which is exactly why a change to one drags the other. Declare that contract once where both sides read it (a shared schema, a generated constants file, an interface-definition file) so a change on one side fails the other's build instead of drifting silently; where the surface is too small to be worth that, name the counterpart in a comment on both sides so the next reader finds it. There is nothing here to merge. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are `0a930d47` Studio: let the owner share a connection with every account (#14365); `6530c3ae` feat(studio): opt-in reasoning for Custom Chat Completions connection…; `afd6a6c6` Chat: show the Thinking control for Ollama models that report the thi… — run `git show` on any of them.
Change coupling: images-page.tsx ↔ video-page.tsx studio/frontend/src/features/images/images-page.tsx:1— `studio/frontend/src/features/images/images-page.tsx` and `studio/frontend/src/features/video/video-page.tsx` change together 76% of the time (41 of the 54 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 41 shared commits counted here, the most recent 3 are `22241821` Studio: custom video sizes and Images-style prompt fields on Create v…; `199987c6` Studio Hub: one filter popover for capabilities, size, context and up…; `7b3cb9fe` Studio: downscale oversized image uploads and add crop to image input… — run `git show` on any of them.
Change coupling: api.ts ↔ runtime.ts studio/frontend/src/features/chat/types/api.ts:1— `studio/frontend/src/features/chat/types/api.ts` and `studio/frontend/src/features/chat/types/runtime.ts` change together 75% of the time (15 of the 20 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module — a sibling reference still needs an import — so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 15 shared commits counted here, the most recent 3 are `bebba39a` Studio: let Run settings load a Hugging Face model in 16-bit (#13841); `1aa3421b` Studio: pin fine-tuned models in the model picker (#11984); `ca62b6b9` studio: add a sampling seed to the chat run settings (#9144) — run `git show` on any of them.
Change coupling: thread.tsx ↔ chat-tab.tsx studio/frontend/src/components/assistant-ui/thread.tsx:1— `studio/frontend/src/components/assistant-ui/thread.tsx` and `studio/frontend/src/features/settings/tabs/chat-tab.tsx` change together 75% of the time (9 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are `2d219b0e` Studio: move Read aloud and Edit response into the More menu (#11920); `73d5ae7b` Studio: use the scroll icon for Agent Skills everywhere (#11419); `8eaa2671` Studio: trim the composer "+" menu top level (#11314) — run `git show` on any of them.
Change coupling: chat-settings-sheet.tsx ↔ chat-settings-storage.ts studio/frontend/src/features/chat/chat-settings-sheet.tsx:1— `studio/frontend/src/features/chat/chat-settings-sheet.tsx` and `studio/frontend/src/features/chat/utils/chat-settings-storage.ts` change together 75% of the time (9 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are `c1aef2f4` Studio: picking a preset no longer overwrites a model's remembered sa…; `f5aff582` Studio: add a run setting to turn off tool-call deduplication (#11685); `14a2545b` Studio: add Server default for vLLM Min P (#10623) — run `git show` on any of them.
Change coupling: dataset-section.tsx ↔ hf-dataset-subset-split-selectors.tsx studio/frontend/src/features/studio/sections/dataset-section.tsx:1— `studio/frontend/src/features/studio/sections/dataset-section.tsx` and `studio/frontend/src/features/training/components/hf-dataset-subset-split-selectors.tsx` change together 75% of the time (9 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are `35245561` studio: align Dataset/Parameters/Training cards, fix expandable heigh…; `18a60b93` chore/fix(studio): add placeholder dropdowns for dataset subset and s…; `8199e0d2` refactor: move train split slice controls back to Advanced section — run `git show` on any of them.
Change coupling: diffusion.py ↔ image-generation-defaults.ts studio/backend/core/inference/diffusion.py:1— `studio/backend/core/inference/diffusion.py` and `studio/frontend/src/features/images/image-generation-defaults.ts` change together 70% of the time (7 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit — they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary — an event or message name, a route, a serialised shape — that each side currently spells out on its own, which is exactly why a change to one drags the other. Declare that contract once where both sides read it (a shared schema, a generated constants file, an interface-definition file) so a change on one side fails the other's build instead of drifting silently; where the surface is too small to be worth that, name the counterpart in a comment on both sides so the next reader finds it. There is nothing here to merge. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are `94a8bfac` Studio Images: paste generation parameters, inpaint mask blur and onl…; `a2915ded` Studio: support Qwen-Image-2.1-Turbo with its 8-step sampling schedul…; `f9718db1` Studio: load community SDXL single-file GGUFs on the Images page (#13… — run `git show` on any of them.
Change coupling: app-sidebar.tsx ↔ projects-page.tsx studio/frontend/src/components/app-sidebar.tsx:1— `studio/frontend/src/components/app-sidebar.tsx` and `studio/frontend/src/features/chat/projects-page.tsx` change together 69% of the time (9 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are `bef17c98` Studio: keep the composer draft across chats, pages and tabs (#13722); `b9716be4` Studio: move Managed accounts to the Accounts tab and drop Mark as un…; `bac04ab5` Add drag and drop sources to the create project dialog (#7441) — run `git show` on any of them.
Change coupling: config-dialog.tsx ↔ recipe-studio.ts studio/frontend/src/features/recipe-studio/dialogs/config-dialog.tsx:1— `studio/frontend/src/features/recipe-studio/dialogs/config-dialog.tsx` and `studio/frontend/src/features/recipe-studio/stores/recipe-studio.ts` change together 67% of the time (10 of the 15 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 10 shared commits counted here, the most recent 3 are `8e977445` Let recipes use the model loaded in Chat (#4840); `8a996afb` feat(recipe-studio): add live execution graph state (active flows, no…; `ab31aa9e` feat: add per-column seed drop support with UI integration, validatio… — run `git show` on any of them.
Change coupling: chat-adapter.ts ↔ chat-settings-storage.ts studio/frontend/src/features/chat/api/chat-adapter.ts:1— `studio/frontend/src/features/chat/api/chat-adapter.ts` and `studio/frontend/src/features/chat/utils/chat-settings-storage.ts` change together 67% of the time (8 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are `f5aff582` Studio: add a run setting to turn off tool-call deduplication (#11685); `14a2545b` Studio: add Server default for vLLM Min P (#10623); `96886fab` Fix stale Qwen sampling defaults after Studio upgrades (#9643) — run `git show` on any of them.
Change coupling: training.py ↔ runtime.ts studio/backend/core/training/training.py:1— `studio/backend/core/training/training.py` and `studio/frontend/src/features/training/types/runtime.ts` change together 64% of the time (7 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit — they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary — an event or message name, a route, a serialised shape — that each side currently spells out on its own, which is exactly why a change to one drags the other. Declare that contract once where both sides read it (a shared schema, a generated constants file, an interface-definition file) so a change on one side fails the other's build instead of drifting silently; where the surface is too small to be worth that, name the counterpart in a comment on both sides so the next reader finds it. There is nothing here to merge. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are `b490d56b` fix(studio): track the repository resolved by the training loader (#1…; `10d3dac1` fix resumed training eta in studio (#11297); `f3c085ad` Fix resume training crash recovery and MLX checkpoints (#6796) — run `git show` on any of them.
Change coupling: training.py ↔ training-runtime-store.ts studio/backend/routes/training.py:1— `studio/backend/routes/training.py` and `studio/frontend/src/features/training/stores/training-runtime-store.ts` change together 62% of the time (8 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit — they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary — an event or message name, a route, a serialised shape — that each side currently spells out on its own, which is exactly why a change to one drags the other. Declare that contract once where both sides read it (a shared schema, a generated constants file, an interface-definition file) so a change on one side fails the other's build instead of drifting silently; where the surface is too small to be worth that, name the counterpart in a comment on both sides so the next reader finds it. There is nothing here to merge. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are `b490d56b` fix(studio): track the repository resolved by the training loader (#1…; `10d3dac1` fix resumed training eta in studio (#11297); `f3c085ad` Fix resume training crash recovery and MLX checkpoints (#6796) — run `git show` on any of them.
Change coupling: thread.tsx ↔ shared-composer.tsx studio/frontend/src/components/assistant-ui/thread.tsx:1— `studio/frontend/src/components/assistant-ui/thread.tsx` and `studio/frontend/src/features/chat/shared-composer.tsx` change together 60% of the time (70 of the 116 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 70 shared commits counted here, the most recent 3 are `cd44b601` Studio: one audio icon everywhere, ai-speech for Text to Speech (#15112); `c1e6bf2c` Studio: hover label on the composer + button (#14927); `b0e74e74` Studio: Chat with files X hides the panel, app tooltips, and higher-c… — run `git show` on any of them.
Change coupling: REDACTED ↔ api.ts REDACTED:1— `REDACTED` and `studio/frontend/src/features/training/types/api.ts` change together 60% of the time (12 of the 20 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit — they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary — an event or message name, a route, a serialised shape — that each side currently spells out on its own, which is exactly why a change to one drags the other. Declare that contract once where both sides read it (a shared schema, a generated constants file, an interface-definition file) so a change on one side fails the other's build instead of drifting silently; where the surface is too small to be worth that, name the counterpart in a comment on both sides so the next reader finds it. There is nothing here to merge. You can check this without leaving the row: of the 12 shared commits counted here, the most recent 3 are `aefe904d` feat(studio): implement S3 dataset loading (completes #5951) (#6222); `dac2aeda` Studio: expose image size setting in training UI (#5743); `0c803242` feat(studio): add Continued Pretraining (CPT) as a training method (#… — run `git show` on any of them.
Change coupling: index.ts ↔ types.ts studio/frontend/src/features/recipe-studio/types/index.ts:1— `studio/frontend/src/features/recipe-studio/types/index.ts` and `studio/frontend/src/features/recipe-studio/utils/payload/types.ts` change together 60% of the time (9 of the 15 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are `fee26fe1` Studio: extract ebooks, Office files and email in Data Recipes docume…; `3b73cd88` Fix per-block ID collisions and add block cleanup for unstructured up…; `1fe8995f` feat(recipe-studio): add support for managing tools by provider in to… — run `git show` on any of them.
Change coupling: REDACTED ↔ export-runtime-store.ts studio/backend/core/export/worker.py:1— `studio/backend/core/export/worker.py` and `studio/frontend/src/features/export/stores/export-runtime-store.ts` change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit — they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary — an event or message name, a route, a serialised shape — that each side currently spells out on its own, which is exactly why a change to one drags the other. Declare that contract once where both sides read it (a shared schema, a generated constants file, an interface-definition file) so a change on one side fails the other's build instead of drifting silently; where the surface is too small to be worth that, name the counterpart in a comment on both sides so the next reader finds it. There is nothing here to merge. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are `214f4e22` Unsloth Studio: export or convert a GGUF to FastFlowLM Q4NX for the A…; `cc41f5e2` Studio: consent dialog before FP8/FP4 llm-compressor install (Phase 2…; `46161d7d` feat(studio): Mac adapter-format option for LoRA export, with GGUF ad… — run `git show` on any of them.
Change coupling: REDACTED ↔ export-runtime-store.ts studio/backend/routes/export.py:1— `studio/backend/routes/export.py` and `studio/frontend/src/features/export/stores/export-runtime-store.ts` change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit — they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary — an event or message name, a route, a serialised shape — that each side currently spells out on its own, which is exactly why a change to one drags the other. Declare that contract once where both sides read it (a shared schema, a generated constants file, an interface-definition file) so a change on one side fails the other's build instead of drifting silently; where the surface is too small to be worth that, name the counterpart in a comment on both sides so the next reader finds it. There is nothing here to merge. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are `214f4e22` Unsloth Studio: export or convert a GGUF to FastFlowLM Q4NX for the A…; `cc41f5e2` Studio: consent dialog before FP8/FP4 llm-compressor install (Phase 2…; `46161d7d` feat(studio): Mac adapter-format option for LoRA export, with GGUF ad… — run `git show` on any of them.
Change coupling: index.ts ↔ seed-config-parser.ts studio/frontend/src/features/recipe-studio/api/index.ts:1— `studio/frontend/src/features/recipe-studio/api/index.ts` and `studio/frontend/src/features/recipe-studio/utils/import/parsers/seed-config-parser.ts` change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are `fee26fe1` Studio: extract ebooks, Office files and email in Data Recipes docume…; `3b73cd88` Fix per-block ID collisions and add block cleanup for unstructured up…; `bdc82529` feat(seed): backend unstructured seed reader + server-side chunking, … — run `git show` on any of them.
Change coupling: diffusion_families.py ↔ image-generation-defaults.ts studio/backend/core/inference/diffusion_families.py:1— `studio/backend/core/inference/diffusion_families.py` and `studio/frontend/src/features/images/image-generation-defaults.ts` change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit — they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary — an event or message name, a route, a serialised shape — that each side currently spells out on its own, which is exactly why a change to one drags the other. Declare that contract once where both sides read it (a shared schema, a generated constants file, an interface-definition file) so a change on one side fails the other's build instead of drifting silently; where the surface is too small to be worth that, name the counterpart in a comment on both sides so the next reader finds it. There is nothing here to merge. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are `e1b31241` Studio Images: run Krea 2 GGUFs on stable-diffusion.cpp on CPU-only h…; `a2915ded` Studio: support Qwen-Image-2.1-Turbo with its 8-step sampling schedul…; `7c16bcc7` Studio: Qwen-Image-Layered on the diffusers engine, GGUF included (#1… — run `git show` on any of them.
+ 13 more in this group — see findings.md.
X17 · Uncapped recursion over a caller-supplied document· Recursive walk over a caller-supplied document has no depth cap · ×33
Recursive walk over a caller-supplied document has no depth cap scripts/check_frontend_dep_removal.py:383— `package_json_extra_refs` is public, takes a document from its caller (line 366) and hands it to `walk`, which calls itself at line 383 (`walk`) with a piece of `obj` (and at line 386) — and nowhere in `walk` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `walk` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
Recursive walk over a caller-supplied document has no depth cap studio/backend/core/data_recipe/service.py:604— `recipe_names_host_env_credential` is public, takes a document from its caller (line 617) and hands it to `_names_env_credential`, which calls itself at line 604 (`_names_env_credential`) with a piece of `value` (and at line 612) — and nowhere in `_names_env_credential` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_names_env_credential` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
Recursive walk over a caller-supplied document has no depth cap studio/backend/core/data_recipe/jsonable.py:122— `to_jsonable` is public and takes `value: Any` from its caller, and it calls itself at line 122 (`to_jsonable`) with a piece of `value` (and at line 124) — and nowhere in `to_jsonable` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `to_jsonable` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
Recursive walk over a caller-supplied document has no depth cap studio/backend/core/data_recipe/jsonable.py:160— `to_preview_jsonable` is public and takes `value: Any` from its caller, and it calls itself at line 160 (`to_preview_jsonable`) with a piece of `value` (and at line 162) — and nowhere in `to_preview_jsonable` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `to_preview_jsonable` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
Recursive walk over a caller-supplied document has no depth cap studio/backend/core/data_recipe/jsonable.py:175— `to_preview_jsonable_row` is public and takes `row: Any` from its caller, and it calls itself at line 175 (`to_preview_jsonable_row`) with a piece of `row` — and nowhere in `to_preview_jsonable_row` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `to_preview_jsonable_row` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
Recursive walk over a caller-supplied document has no depth cap studio/backend/core/inference/prequant_native.py:156— `native_unflatten` is public, takes a document from its caller (line 348) and hands it to `_decode`, which calls itself at line 156 (`_decode`) with a piece of `value` (and at line 189) — and nowhere in `_decode` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_decode` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
Recursive walk over a caller-supplied document has no depth cap studio/backend/core/inference/openai_responses_shared.py:33— `normalize_function_schema` is public, takes a document from its caller (line 63) and hands it to `_normalize_schema_node`, which calls itself at line 33 (`_normalize_schema_node`) with a piece of `schema` (and at line 35, line 40, line 53) — and nowhere in `_normalize_schema_node` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_normalize_schema_node` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
Recursive walk over a caller-supplied document has no depth cap studio/backend/core/inference/mcp_config_import.py:44— `parse_mcp_config` is public, takes a document from its caller (line 148) and hands it to `_has_variable_reference`, which calls itself at line 44 (`_has_variable_reference`) with a piece of `value` (and at line 46) — and nowhere in `_has_variable_reference` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_has_variable_reference` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
Recursive walk over a caller-supplied document has no depth cap studio/backend/core/inference/llama_tool_schema.py:134— `relax_nested_object_key_order` is public, takes a document from its caller (line 175) and hands it to `_reorderable`, which calls itself at line 134 (`_reorderable`) with a piece of `schema` — and nowhere in `_reorderable` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_reorderable` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
Recursive walk over a caller-supplied document has no depth cap studio/backend/core/inference/external_provider.py:4900— `stream_chat_completion` is public, takes a document from its caller (line 1664) and hands it to `_sanitize_gemini_schema`, which calls itself at line 4900 (`_sanitize_gemini_schema`) with a piece of `node` (and at line 4924, line 4928, line 4944, line 4951, line 4963) — and nowhere in `_sanitize_gemini_schema` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_sanitize_gemini_schema` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
Recursive walk over a caller-supplied document has no depth cap studio/backend/core/inference/diffusion_zimage_cfg_split.py:143— `guided_runs_at_guidance_off_batch` is public, takes a document from its caller (line 470) and hands it to `_graph_handle_live`, which calls itself at line 143 (`_graph_handle_live`) with a piece of `handle` — and nowhere in `_graph_handle_live` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_graph_handle_live` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
Recursive walk over a caller-supplied document has no depth cap studio/backend/core/inference/diffusion_te_truncate.py:191— `probe_consumption` is public, takes a document from its caller (line 260) and hands it to `_collect_tensors`, which calls itself at line 191 (`_collect_tensors`) with a piece of `value` (and at line 194, line 196) — and nowhere in `_collect_tensors` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_collect_tensors` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
Recursive walk over a caller-supplied document has no depth cap studio/backend/core/inference/diffusion_prompt_cache.py:78— `install` is public, takes a document from its caller (line 238) and hands it to `_plain`, which calls itself at line 78 (`_plain`) with a piece of `value` (and at line 80) — and nowhere in `_plain` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_plain` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
Recursive walk over a caller-supplied document has no depth cap studio/backend/core/inference/diffusion_prompt_cache.py:109— `put` is public, takes a document from its caller (line 148) and hands it to `_map_tensors`, which calls itself at line 109 (`_map_tensors`) with a piece of `obj` (and at line 111, line 113) — and nowhere in `_map_tensors` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_map_tensors` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
Recursive walk over a caller-supplied document has no depth cap REDACTED:1350— `packed_weight_fingerprint` is public, takes a document from its caller (line 1359) and hands it to `_hash_packed_payload`, which calls itself at line 1350 (`_hash_packed_payload`) with a piece of `tensor` — and nowhere in `_hash_packed_payload` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_hash_packed_payload` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
Recursive walk over a caller-supplied document has no depth cap studio/backend/core/inference/diffusion_offload_prefetch.py:259— `onload` is public, takes a document from its caller (line 493) and hands it to `_copy_into`, which calls itself at line 259 (`_copy_into`) with a piece of `dst` — and nowhere in `_copy_into` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_copy_into` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
Recursive walk over a caller-supplied document has no depth cap studio/backend/core/inference/diffusion_cuda_graph.py:704— `graph_key` is public and takes `obj: Any` from its caller, and it calls itself at line 704 (`graph_key`) with a piece of `obj` (and at line 706) — and nowhere in `graph_key` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `graph_key` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
Recursive walk over a caller-supplied document has no depth cap studio/backend/core/inference/diffusion_cuda_graph.py:2828— `reset_all` is public, takes a document from its caller (line 2831) and hands it to `_holds_graphs`, which calls itself at line 2828 (`_holds_graphs`) with a piece of `handle` — and nowhere in `_holds_graphs` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_holds_graphs` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
Recursive walk over a caller-supplied document has no depth cap studio/backend/core/inference/diffusion_comfy_quant.py:835— `load_comfy_quant_transformer` is public, takes a document from its caller (line 1099) and hands it to `take`, which calls itself at line 835 (`take`) with a piece of `value` (and at line 838) — and nowhere in `take` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `take` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
Recursive walk over a caller-supplied document has no depth cap studio/backend/core/inference/diffusion_block_graph.py:128— `graph_key` is public, takes a document from its caller (line 155) and hands it to `_walk`, which calls itself at line 128 (`_walk`) with a piece of `obj` (and at line 130, line 134) — and nowhere in `_walk` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_walk` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
Recursive walk over a caller-supplied document has no depth cap studio/backend/core/inference/context_window.py:463— `compaction_receipt_field` is public and takes `value: Any` from its caller, and it calls itself at line 463 (`compaction_receipt_field`) with a piece of `value` — and nowhere in `compaction_receipt_field` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `compaction_receipt_field` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
Recursive walk over a caller-supplied document has no depth cap studio/backend/core/inference/browser_agent.py:507— `normalize_navigation_url` is public and takes `raw: Any` from its caller, and it calls itself at line 507 (`normalize_navigation_url`) with a piece of `raw` — and nowhere in `normalize_navigation_url` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `normalize_navigation_url` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
Recursive walk over a caller-supplied document has no depth cap studio/backend/hub/utils/host_paths.py:224— `restore_inventory_handles` is public, takes a document from its caller (line 213) and hands it to `_restore`, which calls itself at line 224 (`_restore`) with a piece of `payload` (and at line 226, line 228) — and nowhere in `_restore` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_restore` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
Recursive walk over a caller-supplied document has no depth cap studio/backend/hub/utils/host_paths.py:337— `redact_host_paths` is public, takes a document from its caller (line 284) and hands it to `_redact`, which calls itself at line 337 (`_redact`) with a piece of `payload` (and at line 409, line 413, line 420) — and nowhere in `_redact` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_redact` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
Recursive walk over a caller-supplied document has no depth cap studio/backend/hub/utils/host_paths.py:444— `response_leaks_host_path` is public, takes a document from its caller (line 311) and hands it to `_find_leak`, which calls itself at line 444 (`_find_leak`) with a piece of `payload` (and at line 470, line 476) — and nowhere in `_find_leak` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_find_leak` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
Swallowed exception (caught, then discarded) REDACTED:12— `except Exception` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) REDACTED:236— `except Exception` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) REDACTED:400— `except Exception` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) REDACTED:404— `except Exception` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) REDACTED:705— `except Exception` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) docker/unsloth_nb_view.py:46— `except Exception` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) docker/unsloth_nb_strip_colab.py:144— `except Exception` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) docker/unsloth_nb_pip_magic.py:44— `except Exception` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) docker/unsloth_nb_pip_magic.py:51— `except Exception` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) docker/unsloth_nb_content_sig.py:203— `except Exception` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) docker/unsloth_nb_compat.py:78— `except Exception` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) docker/unsloth_nb_compat.py:83— `except Exception` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) docker/unsloth_nb_compat.py:89— `except Exception` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) docker/unsloth_nb_compat.py:130— `except Exception` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) docker/unsloth_nb_compat.py:185— `except Exception` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) docker/unsloth_nb_compat.py:199— `except Exception` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) docker/unsloth_ipython_startup.py:23— `except Exception` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) docker/unsloth_colab_compat.py:54— `except Exception` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) docker/jupyter/unsloth_branding.py:61— `except Exception` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) docker/jupyter/unsloth_labext/src/colabTitle.ts:81— `catch` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) scripts/verify_import_hoist.py:841— `except Exception` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) scripts/sdpa_mask_backend_probe.py:53— `except Exception` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) scripts/scan_packages.py:1570— `except Exception` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) scripts/scan_packages.py:1639— `except Exception` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) scripts/scan_packages.py:1808— `except Exception` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
TodoComment studio/backend/utils/models/model_config.py:4189— # TODO: reading base_model from training_args.bin is disabled -- torch.load defaults to — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `# REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment studio/backend/utils/models/model_config.py:4223— # TODO: reading base_model from training_args.bin is disabled -- torch.load defaults to — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `# REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment tests/studio/playwright_chat_ui.py:1722— # TODO: add a data-testid to the reload button; the tooltip-text locator is fragile. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `# REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment tests/utils/test_qat.py:162— # TODO: re-enable once model caching across tests can be disabled. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `# REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment unsloth/_gpu_init.py:761— # TODO: check triton for intel installed properly. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `# REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment unsloth/kernels/utils.py:751— # TODO: After adding XPU BNB support, check this function — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `# REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment REDACTED:3500— # mllama is still only in vllm v0, and vLLM V0 does not support LoRA on multimodal models. TODO: revisit once vLLM V1 supports Llama 3.2 (mllama). — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `# REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment REDACTED:5068— # mllama is still only in vllm v0, and vLLM V0 does not support LoRA on multimodal models. TODO: revisit once vLLM V1 supports Llama 3.2 (mllama). — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `# REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment REDACTED:648— # [TODO] Fix up DataParallel multiplying batch sizes — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `# REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment REDACTED:649— # [TODO] DDP works, but DP seems to not work? [TODO] — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `# REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment REDACTED:188— # TODO: Change after release — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `# REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment REDACTED:393— # TODO: Change after release — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `# REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment REDACTED:716— # TODO: Change after release — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `# REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment REDACTED:49— # TODO: Update when transformers is updated — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `# REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment REDACTED:49— # TODO: Update when transformers is updated — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `# REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment unsloth/models/loader.py:1326— # [TODO] No effect — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `# REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment unsloth/models/loader.py:1330— # [TODO] No effect — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `# REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment unsloth/models/loader.py:1856— # [TODO] No effect — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `# REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment unsloth/models/loader.py:1860— # [TODO] No effect — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `# REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment unsloth/models/loader.py:2189— # [TODO] No effect — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `# REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment unsloth/models/loader.py:2193— # [TODO] No effect — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `# REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
X24 · Document value interpolated into markup unescaped· Untrusted text written into markup unescaped · ×15
Untrusted text written into markup unescaped docker/jupyter/unsloth_labext/src/about.ts:42— `UNSLOTH_LOGO_DATA_URI` is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. HTML encoding does not help here — a `javascript:` URL contains nothing it changes; allow only http(s) or a relative path.
Untrusted text written into markup unescaped docker/jupyter/unsloth_labext/src/about.ts:44— `PRODUCT` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
Untrusted text written into markup unescaped docker/jupyter/unsloth_labext/src/about.ts:45— `SHORT_LABEL` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
Untrusted text written into markup unescaped docker/jupyter/unsloth_labext/src/about.ts:46— `AGPL_NOTICE` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
Untrusted text written into markup unescaped docker/jupyter/unsloth_labext/src/about.ts:48— `SOURCE_URL` is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. HTML encoding does not help here — a `javascript:` URL contains nothing it changes; allow only http(s) or a relative path.
Untrusted text written into markup unescaped docker/jupyter/unsloth_labext/src/about.ts:49— `WEBSITE_URL` is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. HTML encoding does not help here — a `javascript:` URL contains nothing it changes; allow only http(s) or a relative path.
Untrusted text written into markup unescaped docker/jupyter/unsloth_labext/src/about.ts:50— `DOCS_URL` is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. HTML encoding does not help here — a `javascript:` URL contains nothing it changes; allow only http(s) or a relative path.
Untrusted text written into markup unescaped docker/jupyter/unsloth_labext/src/about.ts:53— `AGPL_URL` is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. HTML encoding does not help here — a `javascript:` URL contains nothing it changes; allow only http(s) or a relative path.
Untrusted text written into markup unescaped docker/jupyter/unsloth_labext/src/about.ts:54— `APACHE_URL` is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. HTML encoding does not help here — a `javascript:` URL contains nothing it changes; allow only http(s) or a relative path.
Untrusted text written into markup unescaped docker/jupyter/unsloth_labext/src/about.ts:55— `LICENSE_URL` is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. HTML encoding does not help here — a `javascript:` URL contains nothing it changes; allow only http(s) or a relative path.
Untrusted text written into markup unescaped docker/jupyter/unsloth_labext/src/about.ts:58— `COPYRIGHT` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
Untrusted text written into markup unescaped studio/frontend/public/reload-snapshot.js:370— `snapshot.html` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
Untrusted text written into markup unescaped REDACTED:163— `html` is text this program did not author, and it is written into the text of an element through `dangerouslySetInnerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
Untrusted text written into markup unescaped REDACTED:159— `Object.entries(THEMES).map(([theme,prefix])=>`
${prefix} [data-chart=${id}] {
${colorConfig.map(([key,itemConfig])=>{…` is text this program did not author, and it is written into the text of an element through `dangerouslySetInnerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
Untrusted text written into markup unescaped studio/frontend/src/features/browser/bookmarks-io.ts:74— `escapeHtml(bookmark.url)` is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme through markup this function returns with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. HTML encoding does not help here — a `javascript:` URL contains nothing it changes; allow only http(s) or a relative path.
X2 · Cancellation propagation· Async function without AbortSignal · ×13
Async function without AbortSignal: fetchAuthStatus studio/frontend/src/app/auth-guards.ts:43— `fetchAuthStatus` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
Async function without AbortSignal: fetchDeviceType studio/frontend/src/config/env.ts:125— `fetchDeviceType` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
Async function without AbortSignal: fetchAuthStatus studio/frontend/src/features/auth/login-client.ts:87— `fetchAuthStatus` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
Async function without AbortSignal: loginWithPassword studio/frontend/src/features/auth/login-client.ts:115— `loginWithPassword` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
Async function without AbortSignal: redirectToAuth studio/frontend/src/features/auth/api.ts:120— `redirectToAuth` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
Async function without AbortSignal: loadPayloadFromUrl studio/frontend/src/features/data-recipes/learning-recipes/index.ts:97— `loadPayloadFromUrl` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
Async function without AbortSignal: fetchSourceFile studio/frontend/src/features/rag/components/source-file.ts:10— `fetchSourceFile` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
Async function without AbortSignal: requestStudioVersions studio/frontend/src/features/settings/components/studio-version-section.tsx:37— `requestStudioVersions` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
Async function without AbortSignal: fetchInstallSource studio/frontend/src/features/settings/tabs/about-tab.tsx:55— `fetchInstallSource` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
Async function without AbortSignal: fetchWithFreshLink studio/frontend/src/features/video/viewer.ts:39— `fetchWithFreshLink` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
Async function without AbortSignal: fetchDisplayableUpdateStatus studio/frontend/src/hooks/use-web-update-check.ts:117— `fetchDisplayableUpdateStatus` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
Async function without AbortSignal: fetchDownload studio/frontend/src/lib/native-files.ts:78— `fetchDownload` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
Async function without AbortSignal: fetchWhileStable studio/frontend/src/lib/gallery-flags.ts:288— `fetchWhileStable` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
No assertions: an opening tag split across two, three and four arrivals is seen studio/frontend/tests/think-tag-tracker.test.ts:65— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: a closing tag split across two, three and four arrivals is seen studio/frontend/tests/think-tag-tracker.test.ts:76— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: tags delivered one character per arrival are seen studio/frontend/tests/think-tag-tracker.test.ts:87— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: a tag split across arrivals that carry nothing else is seen studio/frontend/tests/think-tag-tracker.test.ts:94— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: repeated reasoning blocks track the last tag, not the first studio/frontend/tests/think-tag-tracker.test.ts:105— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: a near miss is not mistaken for a tag studio/frontend/tests/think-tag-tracker.test.ts:123— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: a caller Stop still ends the follow cleanly studio/frontend/tests/stuck-generation-run.test.ts:248— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: the pin module imports, holds and releases where there is no matchMedia studio/frontend/tests/sidebar-pin-without-matchmedia.test.ts:33— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: a successful reveal resolves without reading the body studio/frontend/tests/sandbox-reveal-path.test.ts:86— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: a real payload passes through studio/frontend/tests/padded-response.test.ts:18— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: following a pull that already ended resolves without an error studio/frontend/tests/npu-api.test.ts:101— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: first paint is not held hostage by a wedged native bridge studio/frontend/tests/interface-scale.test.ts:153— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
D10 · Test Quality· Fixed-sleep synchronisation · ×12
Fixed-sleep synchronisation: a page asked for just before a history refresh is read by that refresh instead of dropped studio/frontend/tests/sidebar-server-paging.test.ts:789— This test starts work it did not wait for (`page`, still running when the sleep starts) and then orders itself against it with `new Promise((resolve) => setTimeout(resolve, 0))` — a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer's box and random in CI. Wait for the event itself instead: the process's own exit or output, a completion handle, or a condition polled to a timeout.
Fixed-sleep synchronisation: an older capability read that finishes last never replaces a newer one studio/frontend/tests/sandbox-setup.test.ts:670— This test starts work it did not wait for (`older`, still running when the sleep starts) and then orders itself against it with `new Promise((resolve) => setTimeout(resolve, 0))` — a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer's box and random in CI. Wait for the event itself instead: the process's own exit or output, a completion handle, or a condition polled to a timeout.
Fixed-sleep synchronisation: a run saved many times sends one write in flight and then only the newest studio/frontend/tests/recipe-server-persistence.test.ts:36— This test starts work it did not wait for (`server`, still running when the sleep starts) and then orders itself against it with `new Promise((r) => setTimeout(r, 0))` — a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer's box and random in CI. Wait for the event itself instead: the process's own exit or output, a completion handle, or a condition polled to a timeout.
Fixed-sleep synchronisation: a transient failure retries the newest snapshot instead of dropping it studio/frontend/tests/recipe-server-persistence.test.ts:107— This test starts work it did not wait for (`server`, still running when the sleep starts) and then orders itself against it with `new Promise((r) => setTimeout(r, 1100))` — a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer's box and random in CI. Wait for the event itself instead: the process's own exit or output, a completion handle, or a condition polled to a timeout.
Fixed-sleep synchronisation: the send barrier follows a retry that replaces the one it captured studio/frontend/tests/qwen-defaults-migration-safety.test.ts:629— This test starts work it did not wait for (`barrier`, still running when the sleep starts) and then orders itself against it with `sleep(10)` — a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer's box and random in CI. Wait for the event itself instead: the process's own exit or output, a completion handle, or a condition polled to a timeout.
Fixed-sleep synchronisation: a model switch during hydration still gets its own row migrated studio/frontend/tests/qwen-defaults-migration-safety.test.ts:903— This test starts work it did not wait for (`hydrating`, still running when the sleep starts) and then orders itself against it with `sleep(20)` — a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer's box and random in CI. Wait for the event itself instead: the process's own exit or output, a completion handle, or a condition polled to a timeout.
Fixed-sleep synchronisation: a first user model load during hydration does not claim prior globals studio/frontend/tests/qwen-defaults-migration-hydration.test.ts:720— This test starts work it did not wait for (`hydration`, still running when the sleep starts) and then orders itself against it with `sleep(0)` — a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer's box and random in CI. Wait for the event itself instead: the process's own exit or output, a completion handle, or a condition polled to a timeout.
Fixed-sleep synchronisation: On Device publishes cached quants before a stalled remote request finishes studio/frontend/tests/picker-gguf-discovery.test.ts:50— This test starts work it did not wait for (`pending`, still running when the sleep starts) and then orders itself against it with `new Promise((resolve) => setTimeout(resolve, 0))` — a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer's box and random in CI. Wait for the event itself instead: the process's own exit or output, a completion handle, or a condition polled to a timeout.
Fixed-sleep synchronisation: two quick changes to one folder reach the server in the order they were made studio/frontend/tests/library-state.test.ts:90— This test starts work it did not wait for (`first`, still running when the sleep starts) and then orders itself against it with `new Promise((resolve) => setTimeout(resolve, 10))` — a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer's box and random in CI. Wait for the event itself instead: the process's own exit or output, a completion handle, or a condition polled to a timeout.
Fixed-sleep synchronisation: the settle flag does not carry into the next save studio/frontend/tests/embedding-model-store.test.ts:279— This test starts work it did not wait for (`store`, still running when the sleep starts) and then orders itself against it with `new Promise((resolve) => setTimeout(resolve, 0))` — a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer's box and random in CI. Wait for the event itself instead: the process's own exit or output, a completion handle, or a condition polled to a timeout.
Fixed-sleep synchronisation: a file a page sends the tab to is asked about for that page, not the file's site studio/frontend/tests/browser-settings.test.ts:653— This test starts work it did not wait for (`saving`, still running when the sleep starts) and then orders itself against it with `new Promise((resolve) => setTimeout(resolve, 0))` — a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer's box and random in CI. Wait for the event itself instead: the process's own exit or output, a completion handle, or a condition polled to a timeout.
Fixed-sleep synchronisation: a new chat's run stays in it after a switch, and Stop in the saved chat ends the action in flight studio/frontend/tests/browser-agent-chats.test.ts:147— This test starts work it did not wait for (`pending`, still running when the sleep starts) and then orders itself against it with `new Promise((resolve) => setTimeout(resolve, 10))` — a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer's box and random in CI. Wait for the event itself instead: the process's own exit or output, a completion handle, or a condition polled to a timeout.
Swallowed exception (empty catch) REDACTED:371— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) REDACTED:383— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) docker/jupyter/unsloth_branding.py:225— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) docker/jupyter/unsloth_branding.py:230— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) docker/jupyter/unsloth_labext/src/uiChrome.ts:43— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) docker/jupyter/unsloth_labext/src/outputSelect.ts:104— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) docker/jupyter/unsloth_labext/src/cellNav.ts:110— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) scripts/scan_npm_packages.py:1618— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) scripts/perf_levers_probe.py:62— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) scripts/perf_levers_probe.py:76— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
AC1 · Text alternatives· <video> without a captions track · ×7
<video> without a captions track studio/frontend/src/components/assistant-ui/attachment-preview.tsx:664— Video with no captions <track> offers no captions. This player's source is set at runtime, so there is no caption file to author here: give the player a way to carry captions — accept a track/captions URL alongside the media and render a <track kind="captions"> when one is supplied — and capture that asset wherever the media enters the product (upload, import or generation).
<video> without a captions track studio/frontend/src/components/assistant-ui/tool-ui-image-generation.tsx:237— Video with no captions <track> offers no captions. This player's source is set at runtime, so there is no caption file to author here: give the player a way to carry captions — accept a track/captions URL alongside the media and render a <track kind="captions"> when one is supplied — and capture that asset wherever the media enters the product (upload, import or generation).
<video> without a captions track studio/frontend/src/features/browser/video-file.tsx:162— Video with no captions <track> offers no captions. This player's source is set at runtime, so there is no caption file to author here: give the player a way to carry captions — accept a track/captions URL alongside the media and render a <track kind="captions"> when one is supplied — and capture that asset wherever the media enters the product (upload, import or generation).
<video> without a captions track studio/frontend/src/features/library/components/library-preview.tsx:418— Video with no captions <track> offers no captions. This player's source is set at runtime, so there is no caption file to author here: give the player a way to carry captions — accept a track/captions URL alongside the media and render a <track kind="captions"> when one is supplied — and capture that asset wherever the media enters the product (upload, import or generation).
<video> without a captions track studio/frontend/src/features/video/video-page.tsx:4254— Video with no captions <track> offers no captions. This player's source is set at runtime, so there is no caption file to author here: give the player a way to carry captions — accept a track/captions URL alongside the media and render a <track kind="captions"> when one is supplied — and capture that asset wherever the media enters the product (upload, import or generation).
<video> without a captions track studio/frontend/src/features/video/video-page.tsx:4689— Video with no captions <track> offers no captions. This player's source is set at runtime, so there is no caption file to author here: give the player a way to carry captions — accept a track/captions URL alongside the media and render a <track kind="captions"> when one is supplied — and capture that asset wherever the media enters the product (upload, import or generation).
<video> without a captions track studio/frontend/src/features/video/video-page.tsx:4729— Video with no captions <track> offers no captions. This player's source is set at runtime, so there is no caption file to author here: give the player a way to carry captions — accept a track/captions URL alongside the media and render a <track kind="captions"> when one is supplied — and capture that asset wherever the media enters the product (upload, import or generation).
Change-coupling hub: REDACTED → REDACTED, REDACTED, REDACTED, REDACTED, REDACTED, REDACTED REDACTED— `REDACTED` changes together with 6 other files — `REDACTED`, `REDACTED`, `REDACTED`, `REDACTED`, `REDACTED`, `REDACTED` — none of which declares a dependency on it: one file is the hub of 6 separate couplings, not 6 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 6.
Change-coupling hub: index.ts → block-sheet.tsx, recipe-graph-node.tsx, recipe-studio-page.tsx, index.ts studio/frontend/src/features/recipe-studio/utils/index.ts— `studio/frontend/src/features/recipe-studio/utils/index.ts` changes together with 4 other files — `studio/frontend/src/features/recipe-studio/components/block-sheet.tsx`, `studio/frontend/src/features/recipe-studio/components/recipe-graph-node.tsx`, `studio/frontend/src/features/recipe-studio/recipe-studio-page.tsx`, `studio/frontend/src/features/recipe-studio/types/index.ts` — none of which declares a dependency on it: one file is the hub of 4 separate couplings, not 4 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 4.
Change-coupling hub: desktop_auth.rs → commands.rs, install.rs, REDACTED, update.rs studio/src-tauri/src/desktop_auth.rs— `studio/src-tauri/src/desktop_auth.rs` changes together with 4 other files — `studio/src-tauri/src/commands.rs`, `studio/src-tauri/src/install.rs`, `REDACTED`, `studio/src-tauri/src/update.rs` — none of which declares a dependency on it: one file is the hub of 4 separate couplings, not 4 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 4.
Change-coupling hub: REDACTED → REDACTED, REDACTED, REDACTED, REDACTED REDACTED— `REDACTED` changes together with 4 other files — `REDACTED`, `REDACTED`, `REDACTED`, `REDACTED` — none of which declares a dependency on it: one file is the hub of 4 separate couplings, not 4 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 4.
Change-coupling hub: drop-paths.ts → thread.tsx, runtime-provider.tsx, native_intents.rs, native_path_policy.rs studio/frontend/src/features/native-intents/drop-paths.ts— `studio/frontend/src/features/native-intents/drop-paths.ts` changes together with 4 other files — `studio/frontend/src/components/assistant-ui/thread.tsx`, `studio/frontend/src/features/chat/runtime-provider.tsx`, `studio/src-tauri/src/native_intents.rs`, `studio/src-tauri/src/native_path_policy.rs` — none of which declares a dependency on it: one file is the hub of 4 separate couplings, not 4 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 4.
Change-coupling hub: model-overrides.ts → openai_auto_switch_settings.py, use-chat-model-runtime.ts, apply-inference-status-to-store.ts studio/frontend/src/features/model-picker/api/model-overrides.ts— `studio/frontend/src/features/model-picker/api/model-overrides.ts` changes together with 3 other files — `studio/backend/utils/openai_auto_switch_settings.py`, `studio/frontend/src/features/chat/hooks/use-chat-model-runtime.ts`, `studio/frontend/src/features/chat/lib/apply-inference-status-to-store.ts` — none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3.
Change-coupling hub: model-config-dialog.tsx → recipe-studio-page.tsx, recipe-studio.ts, recipe-graph-connection.ts studio/frontend/src/features/recipe-studio/dialogs/models/model-config-dialog.tsx— `studio/frontend/src/features/recipe-studio/dialogs/models/model-config-dialog.tsx` changes together with 3 other files — `studio/frontend/src/features/recipe-studio/recipe-studio-page.tsx`, `studio/frontend/src/features/recipe-studio/stores/recipe-studio.ts`, `studio/frontend/src/features/recipe-studio/utils/graph/recipe-graph-connection.ts` — none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3.
AC2 · Forms & labels· <Select> field component without a label · ×5
<Select> field component without a label studio/frontend/src/features/chat/projects-page.tsx:1228— This UI-library field component is named only by a placeholder — a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<Select> field component without a label studio/frontend/src/features/export/export-page.tsx:1264— This UI-library field component is named only by a placeholder — a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<Select> field component without a label studio/frontend/src/features/export/export-page.tsx:1344— This UI-library field component is named only by a placeholder — a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<Select> field component without a label studio/frontend/src/features/export/export-page.tsx:1934— This UI-library field component has no label / aria-label / aria-labelledby / id, and nothing it renders carries one either (a name prop is the form-submission key, not a label). The text inside it does not stand in for one: these compound APIs render a trigger with role="combobox" (or role="button"), and those roles take their name from the AUTHOR, not from their content — so the words on screen never reach the accessibility tree as a name. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<Select> field component without a label studio/frontend/src/features/export/export-page.tsx:2036— This UI-library field component has no label / aria-label / aria-labelledby / id, and nothing it renders carries one either (a name prop is the form-submission key, not a label). The text inside it does not stand in for one: these compound APIs render a trigger with role="combobox" (or role="button"), and those roles take their name from the AUTHOR, not from their content — so the words on screen never reach the accessibility tree as a name. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
X15 · Unvalidated length from an untrusted reader· Length read from the parsed input is spent without ever being bounded · ×5
Length read from the parsed input is spent without ever being bounded studio/backend/core/inference/video_ltx2.py:421— `size` is read from the bytes being parsed at line 420 (`struct.unpack("<Q")`), then passed as the size of `read` at line 421 — and nowhere in its function is `size` compared to anything, clamped, or bounded against the input that remains. Whoever wrote those bytes therefore chooses the allocation directly: the call reserves the whole length before a single byte of the payload is known to exist, so a 32-bit length asks for up to 4 GiB (a 64-bit one for more than any machine has), and the reservation either raises `MemoryError` out of a parser whose failure path was written for malformed input, not for hostile input, or succeeds and holds gigabytes for a few bytes on the wire. Bound `size` against the bytes actually remaining and a maximum the format allows before reading.
Length read from the parsed input is spent without ever being bounded studio/backend/core/inference/llama_cpp.py:20243— `n` is read from the bytes being parsed at line 20242 (`struct.unpack("<Q")`), then passed as the size of `read` at line 20243 — and nowhere in its function is `n` compared to anything, clamped, or bounded against the input that remains. Whoever wrote those bytes therefore chooses the allocation directly: the call reserves the whole length before a single byte of the payload is known to exist, so a 32-bit length asks for up to 4 GiB (a 64-bit one for more than any machine has), and the reservation either raises `MemoryError` out of a parser whose failure path was written for malformed input, not for hostile input, or succeeds and holds gigabytes for a few bytes on the wire. Bound `n` against the bytes actually remaining and a maximum the format allows before reading.
Length read from the parsed input is spent without ever being bounded studio/backend/core/inference/llama_cpp.py:20719— `slen` is read from the bytes being parsed at line 20718 (`struct.unpack("<Q")`), then passed as the size of `read` at line 20719 — and nowhere in its function is `slen` compared to anything, clamped, or bounded against the input that remains. Whoever wrote those bytes therefore chooses the allocation directly: the call reserves the whole length before a single byte of the payload is known to exist, so a 32-bit length asks for up to 4 GiB (a 64-bit one for more than any machine has), and the reservation either raises `MemoryError` out of a parser whose failure path was written for malformed input, not for hostile input, or succeeds and holds gigabytes for a few bytes on the wire. Bound `slen` against the bytes actually remaining and a maximum the format allows before reading.
Length read from the parsed input is spent without ever being bounded REDACTED:3406— `n` is read from the bytes being parsed at line 3405 (`int.from_bytes(… 8 bytes …)`), then passed as the size of `read` at line 3406 — and nowhere in its function is `n` compared to anything, clamped, or bounded against the input that remains. Whoever wrote those bytes therefore chooses the allocation directly: the call reserves the whole length before a single byte of the payload is known to exist, so a 32-bit length asks for up to 4 GiB (a 64-bit one for more than any machine has), and the reservation either raises `MemoryError` out of a parser whose failure path was written for malformed input, not for hostile input, or succeeds and holds gigabytes for a few bytes on the wire. Bound `n` against the bytes actually remaining and a maximum the format allows before reading.
Length read from the parsed input is spent without ever being bounded unsloth/models/loader_utils.py:4144— `size` is read from the bytes being parsed at line 4143 (`struct.unpack("<Q")`), then passed as the size of `read` at line 4144 — and nowhere in its function is `size` compared to anything, clamped, or bounded against the input that remains. Whoever wrote those bytes therefore chooses the allocation directly: the call reserves the whole length before a single byte of the payload is known to exist, so a 32-bit length asks for up to 4 GiB (a 64-bit one for more than any machine has), and the reservation either raises `MemoryError` out of a parser whose failure path was written for malformed input, not for hostile input, or succeeds and holds gigabytes for a few bytes on the wire. Bound `size` against the bytes actually remaining and a maximum the format allows before reading.
D30 · Dependency Vulnerabilities· Medium advisory (unmaintained) · ×4
AC1 · Text alternatives· <canvas> without a text alternative · ×3
<canvas> without a text alternative studio/frontend/src/components/file-viewer/pdf-view.tsx:87— A <canvas> with no aria-label/title and no inner fallback content can't be described by assistive tech. Add a name or fallback content.
<canvas> without a text alternative studio/frontend/src/features/images/images-page.tsx:1209— A <canvas> with no aria-label/title and no inner fallback content can't be described by assistive tech. Add a name or fallback content.
<canvas> without a text alternative studio/frontend/src/features/images/localized-edit-canvas.tsx:223— A <canvas> with no aria-label/title and no inner fallback content can't be described by assistive tech. Add a name or fallback content.
Duplicated block (12 lines × 2) studio/src-tauri/src/process.rs:3901— studio/src-tauri/src/process.rs:3901-3912 | studio/src-tauri/src/process.rs:3920-3931 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) studio/src-tauri/src/desktop_update_policy.rs:264— studio/src-tauri/src/desktop_update_policy.rs:264-275 | studio/src-tauri/src/preflight/version.rs:85-96 — before extracting anything, compare `studio/src-tauri/src/desktop_update_policy.rs` and `studio/src-tauri/src/preflight/version.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 2) studio/src-tauri/src/preflight/backend.rs:43— studio/src-tauri/src/preflight/backend.rs:43-54 | studio/src-tauri/src/process.rs:4007-4018 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (9 lines × 2) studio/src-tauri/src/desktop_update_policy.rs:292— studio/src-tauri/src/desktop_update_policy.rs:292-300 | studio/src-tauri/src/preflight/version.rs:113-121 — before extracting anything, compare `studio/src-tauri/src/desktop_update_policy.rs` and `studio/src-tauri/src/preflight/version.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 2) studio/src-tauri/src/desktop_update_policy.rs:321— studio/src-tauri/src/desktop_update_policy.rs:321-329 | studio/src-tauri/src/preflight/version.rs:131-139 — before extracting anything, compare `studio/src-tauri/src/desktop_update_policy.rs` and `studio/src-tauri/src/preflight/version.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 2) studio/src-tauri/src/diagnostics/phase_log.rs:342— studio/src-tauri/src/diagnostics/phase_log.rs:342-350 | studio/src-tauri/src/diagnostics/phase_log.rs:352-360 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) studio/src-tauri/src/desktop_backend_owner.rs:518— studio/src-tauri/src/desktop_backend_owner.rs:518-524 | studio/src-tauri/src/native_backend_lease.rs:176-182 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (7 lines × 2) studio/src-tauri/src/install.rs:786— studio/src-tauri/src/install.rs:786-792 | studio/src-tauri/src/install.rs:867-873 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) studio/src-tauri/src/install.rs:751— studio/src-tauri/src/install.rs:751-757 | studio/src-tauri/src/update.rs:149-155 — before extracting anything, compare `studio/src-tauri/src/install.rs` and `studio/src-tauri/src/update.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Dead file (~5 LoC) studio/frontend/src/components/layout/index.ts— no import path from any entry point (253 application, 12 tooling, 1460 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
Dead file (~5 LoC) studio/frontend/src/stores/index.ts— no import path from any entry point (253 application, 12 tooling, 1460 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
Dead file (~5 LoC) studio/frontend/src/types/index.ts— no import path from any entry point (253 application, 12 tooling, 1460 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
AC2 · Forms & labels· <Textarea> field component without a label · ×2
<Textarea> field component without a label studio/frontend/src/components/negative-prompt-field.tsx:66— This UI-library field component is named only by a placeholder — a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<Textarea> field component without a label studio/frontend/src/features/chat/chat-settings-sheet.tsx:1861— This UI-library field component is named only by a placeholder — a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
AC2 · Forms & labels· <Combobox> field component without a label · ×2
<Combobox> field component without a label studio/frontend/src/features/export/export-page.tsx:1386— This UI-library field component is named only by a placeholder — a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<Combobox> field component without a label studio/frontend/src/features/export/export-page.tsx:1484— This UI-library field component is named only by a placeholder — a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
AC2 · Forms & labels· <NumberInput> field component without a label · ×2
<NumberInput> field component without a label studio/frontend/src/features/images/hires-controls.tsx:119— This UI-library field component has no label / aria-label / aria-labelledby / id — and neither does anything it renders (a name prop is the form-submission key, not a label) — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
<NumberInput> field component without a label studio/frontend/src/features/images/hires-controls.tsx:137— This UI-library field component has no label / aria-label / aria-labelledby / id — and neither does anything it renders (a name prop is the form-submission key, not a label) — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed.
Duplicated block (14 lines × 2) studio/src-tauri/src/desktop_update_policy.rs:211— studio/src-tauri/src/desktop_update_policy.rs:211-224 | studio/src-tauri/src/preflight/version.rs:39-52 — before extracting anything, compare `studio/src-tauri/src/desktop_update_policy.rs` and `studio/src-tauri/src/preflight/version.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 2) studio/src-tauri/src/install.rs:1235— studio/src-tauri/src/install.rs:1235-1248 | studio/src-tauri/src/update.rs:456-469 — before extracting anything, compare `studio/src-tauri/src/install.rs` and `studio/src-tauri/src/update.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Outbound HTTP without resilience studio/backend/core/inference/inference_gate.py:77— `httpx.AsyncClient(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout.
Outbound HTTP without resilience studio/backend/core/inference/llama_http.py:25— `httpx.AsyncClient(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout.
Sync-over-async blocking studio/frontend/src/features/chat/open-document.ts:96— `unzipSync` in `readOpenDocumentXmlFiles` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
Sync-over-async blocking studio/frontend/vite-preview-runtime.ts:190— `readFileSync` in `bundleOne` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
R10 · Code Duplication· Duplicated block with local edits (103 matched lines × 2 locations) · ×2
Duplicated block with local edits (103 matched lines × 2 locations) studio/frontend/src/components/ui/context-menu.tsx:33— studio/frontend/src/components/ui/context-menu.tsx:33 · studio/frontend/src/components/ui/dropdown-menu.tsx:19 — the two spans are one implementation copied and then locally edited — 370 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
Duplicated block with local edits (103 matched lines × 2 locations) studio/frontend/src/components/ui/dialog.tsx:52— studio/frontend/src/components/ui/dialog.tsx:52 · studio/frontend/src/components/ui/sheet.tsx:59 — the two spans are one implementation copied and then locally edited — 436 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
Duplicated block (72 lines × 2 locations) studio/frontend/src/features/audio/hooks/use-edit-generation.ts:335— studio/frontend/src/features/audio/hooks/use-edit-generation.ts:335 · studio/frontend/src/features/audio/hooks/use-separate-generation.ts:242 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
Duplicated block (72 lines × 2 locations) studio/frontend/src/features/recipe-studio/dialogs/samplers/gaussian-dialog.tsx:22— studio/frontend/src/features/recipe-studio/dialogs/samplers/gaussian-dialog.tsx:22 · studio/frontend/src/features/recipe-studio/dialogs/samplers/uniform-dialog.tsx:22 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
R10 · Code Duplication· Duplicated block with local edits (61 matched lines × 2 locations) · ×2
Duplicated block with local edits (61 matched lines × 2 locations) studio/frontend/src/components/assistant-ui/thread.tsx:6718— studio/frontend/src/components/assistant-ui/thread.tsx:6718 · studio/frontend/src/features/chat/shared-composer.tsx:3101 — the two spans are one implementation copied and then locally edited — 282 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
Duplicated block with local edits (61 matched lines × 2 locations) studio/frontend/src/features/browser/downloads-button.tsx:53— studio/frontend/src/features/browser/downloads-button.tsx:53 · studio/frontend/src/features/browser/internal-pages.tsx:647 — the two spans are one implementation copied and then locally edited — 376 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
Dead file (~31 LoC) studio/frontend/src/components/layout/dashboard-grid.tsx— no import path from any entry point (253 application, 12 tooling, 1460 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (studio/frontend/src/components/layout/index.ts) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it
Dead file (~31 LoC) studio/frontend/src/components/markdown/mermaid-error.tsx— no import path from any entry point (253 application, 12 tooling, 1460 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
X1 · Async correctness· Task from `asyncio.create_task` is not kept · ×2
Task from `asyncio.create_task` is not kept studio/backend/core/inference/openai_auto_download.py:1019— The task this creates is not kept anywhere. The event loop holds only a weak reference to its tasks, so a task nobody references can be garbage-collected before it finishes (Python's documentation for `asyncio.create_task`: save a reference to the result); and nothing ever awaits it, so an exception it raises is never handled — it surfaces, if at all, as "Task exception was never retrieved" in a log. Keep the task: `await` it, gather it, start it in an `asyncio.TaskGroup` (`async with asyncio.TaskGroup() as tg: tg.create_task(…)`), or, for genuine fire-and-forget, add it to a set and `task.add_done_callback(tasks.discard)` with a callback that also reads its exception.
Task from `asyncio.create_task` is not kept studio/backend/core/inference/chat_generation_runs.py:331— The task this creates is not kept anywhere. The event loop holds only a weak reference to its tasks, so a task nobody references can be garbage-collected before it finishes (Python's documentation for `asyncio.create_task`: save a reference to the result); and nothing ever awaits it, so an exception it raises is never handled — it surfaces, if at all, as "Task exception was never retrieved" in a log. Keep the task: `await` it, gather it, start it in an `asyncio.TaskGroup` (`async with asyncio.TaskGroup() as tg: tg.create_task(…)`), or, for genuine fire-and-forget, add it to a set and `task.add_done_callback(tasks.discard)` with a callback that also reads its exception.
X28 · Index access outside its own emptiness guard· Index access outside its own emptiness guard · ×2
Index access outside its own emptiness guard studio/backend/core/inference/llama_server_args.py:284— This condition tests `suffix` for emptiness and then indexes it on a branch that test does not reach. `suffix[0].isdigit()` is evaluated whenever the guarded half is false — which includes the case the guard exists to anticipate, `suffix` being empty — so an empty `suffix` indexes position 0 of nothing and throws. This same condition already shows the intended bracketing at line 285: `suffix[0]` sits INSIDE the guard. Either the guard is load-bearing, in which case this access escapes it and crashes, or `suffix` cannot be empty here, in which case the guard beside it is dead code — the condition is wrong under both readings. Move the parenthesis so the emptiness test brackets every access to `suffix`.
Index access outside its own emptiness guard studio/backend/core/inference/flux3_prompt_upsampler.py:929— This condition tests `hit` for emptiness and then indexes it on a branch that test does not reach. `hit[0]` is evaluated whenever the guarded half is false — which includes the case the guard exists to anticipate, `hit` being empty — so an empty `hit` indexes position 0 of nothing and throws. This same condition already shows the intended bracketing: `hit[2]` sits INSIDE the guard. Either the guard is load-bearing, in which case this access escapes it and crashes, or `hit` cannot be empty here, in which case the guard beside it is dead code — the condition is wrong under both readings. Move the parenthesis so the emptiness test brackets every access to `hit`.
AC3 · Page structure· Data table has no header cells · ×1
Data table has no header cells REDACTED:416— A <table> with data cells but no <th> gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as <th> (with a scope).
AC4 · Keyboard semantics· Modal dialog does not manage focus · ×1
Modal dialog does not manage focus studio/frontend/src/features/browser/agent/agent-bar.tsx:28— This <div role="alertdialog"> is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native <dialog> opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close.
HackComment REDACTED:851— # Hack for Starling: try/except. — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
Change coupling clique: tool-ui-code-execution.tsx, tool-ui-knowledge-base.tsx, tool-ui-web-search.tsx studio/frontend/src/components/assistant-ui/tool-ui-code-execution.tsx— 3 files — `studio/frontend/src/components/assistant-ui/tool-ui-code-execution.tsx`, `studio/frontend/src/components/assistant-ui/tool-ui-knowledge-base.tsx`, `studio/frontend/src/components/assistant-ui/tool-ui-web-search.tsx` — all change together with no explicit dependency: a fully-connected co-change clique, not 3 separate couplings. They share one concern (thin parallel siblings over a common abstraction), so extract the shared part into ONE unit and the whole clique's coupling clears at once — you do not need to break each pair individually.
D4 · Code Duplication· Edited copy of a member (16 corresponding lines) · ×1
Edited copy of a member (16 corresponding lines) studio/src-tauri/src/desktop_update_policy.rs:208— studio/src-tauri/src/desktop_update_policy.rs:208-224 | studio/src-tauri/src/preflight/version.rs:35-52 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Members sharing a duplicated core (6 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (6 members, 50+ identical tokens) studio/src-tauri/src/browser_downloads.rs:395— studio/src-tauri/src/browser_downloads.rs:395-413 | studio/src-tauri/src/browser_downloads.rs:646-692 | studio/src-tauri/src/native_intents.rs:461-480 | studio/src-tauri/src/native_intents.rs:500-521 | studio/src-tauri/src/native_intents.rs:528-544 | studio/src-tauri/src/studio_home.rs:207-231 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
D4 · Code Duplication· Members sharing a duplicated core (4 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (4 members, 50+ identical tokens) studio/src-tauri/src/commands.rs:304— studio/src-tauri/src/commands.rs:304-370 | studio/src-tauri/src/desktop_auth.rs:257-300 | REDACTED:988-1067 | REDACTED:1069-1160 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Duplicated block (22 lines × 2) studio/src-tauri/src/native_file_dialogs.rs:530— studio/src-tauri/src/native_file_dialogs.rs:530-551 | studio/src-tauri/src/native_file_dialogs.rs:696-717 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (18 lines × 3) studio/src-tauri/src/desktop_auth.rs:269— studio/src-tauri/src/desktop_auth.rs:269-286 | REDACTED:1014-1031 | REDACTED:1091-1108 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart.
Duplicated block (18 lines × 2) studio/src-tauri/src/desktop_update_policy.rs:245— studio/src-tauri/src/desktop_update_policy.rs:245-262 | studio/src-tauri/src/preflight/version.rs:66-83 — before extracting anything, compare `studio/src-tauri/src/desktop_update_policy.rs` and `studio/src-tauri/src/preflight/version.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (17 lines × 2) studio/src-tauri/src/commands.rs:390— studio/src-tauri/src/commands.rs:390-406 | studio/src-tauri/src/commands.rs:429-445 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13–15 lines × 2) studio/src-tauri/src/install.rs:726— studio/src-tauri/src/install.rs:726-740 | studio/src-tauri/src/update.rs:127-139 — before extracting anything, compare `studio/src-tauri/src/install.rs` and `studio/src-tauri/src/update.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11–14 lines × 2) studio/src-tauri/src/commands.rs:669— studio/src-tauri/src/commands.rs:669-682 | studio/src-tauri/src/process.rs:4001-4011 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (9–10 lines × 4) studio/src-tauri/src/commands.rs:332— studio/src-tauri/src/commands.rs:332-340 | studio/src-tauri/src/desktop_auth.rs:268-277 | REDACTED:1013-1021 | REDACTED:1090-1098 — there are 4 copies across 3 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart.
Duplicated block (10 lines × 3) studio/src-tauri/src/native_file_dialogs.rs:506— studio/src-tauri/src/native_file_dialogs.rs:506-515 | studio/src-tauri/src/native_file_dialogs.rs:539-548 | studio/src-tauri/src/native_file_dialogs.rs:705-714 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (3–10 lines × 3) studio/src-tauri/src/browser_webview.rs:2109— studio/src-tauri/src/browser_webview.rs:2109-2111 | studio/src-tauri/src/browser_webview.rs:2219-2228 | studio/src-tauri/src/browser_webview.rs:2354-2363 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (10 lines × 2) studio/src-tauri/src/process.rs:2340— studio/src-tauri/src/process.rs:2340-2350 | studio/src-tauri/src/process.rs:2364-2373 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 4) studio/src-tauri/src/browser_downloads.rs:402— studio/src-tauri/src/browser_downloads.rs:402-409 | studio/src-tauri/src/native_intents.rs:505-512 | studio/src-tauri/src/native_intents.rs:534-541 | studio/src-tauri/src/studio_home.rs:216-223 — there are 4 copies across 3 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart.
Duplicated block (8 lines × 3) studio/src-tauri/src/install.rs:742— studio/src-tauri/src/install.rs:742-750 | studio/src-tauri/src/process.rs:3828-3835 | studio/src-tauri/src/update.rs:141-148 — before extracting anything, compare `studio/src-tauri/src/install.rs` and `studio/src-tauri/src/update.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 6) studio/src-tauri/src/browser_downloads.rs:403— studio/src-tauri/src/browser_downloads.rs:403-409 | studio/src-tauri/src/browser_downloads.rs:657-663 | studio/src-tauri/src/native_intents.rs:469-475 | studio/src-tauri/src/native_intents.rs:506-512 | studio/src-tauri/src/native_intents.rs:535-541 | studio/src-tauri/src/studio_home.rs:217-223 — there are 6 copies across 3 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart.
Duplicated block (7 lines × 3) studio/src-tauri/src/native_file_dialogs.rs:498— studio/src-tauri/src/native_file_dialogs.rs:498-504 | studio/src-tauri/src/native_file_dialogs.rs:531-537 | studio/src-tauri/src/native_file_dialogs.rs:697-703 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (5 lines × 2) studio/src-tauri/src/browser_downloads.rs:233— studio/src-tauri/src/browser_downloads.rs:233-237 | studio/src-tauri/src/browser_downloads.rs:277-281 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 3) studio/src-tauri/src/desktop_backend_owner.rs:509— studio/src-tauri/src/desktop_backend_owner.rs:509-514 | studio/src-tauri/src/diagnostics/mod.rs:44-49 | studio/src-tauri/src/native_backend_lease.rs:94-99 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
Duplicated block (6 lines × 2) studio/src-tauri/src/desktop_update_policy.rs:277— studio/src-tauri/src/desktop_update_policy.rs:277-282 | studio/src-tauri/src/preflight/version.rs:98-103 — before extracting anything, compare `studio/src-tauri/src/desktop_update_policy.rs` and `studio/src-tauri/src/preflight/version.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 2) studio/src-tauri/src/install.rs:1282— studio/src-tauri/src/install.rs:1282-1295 | studio/src-tauri/src/update.rs:503-515 — before extracting anything, compare `studio/src-tauri/src/install.rs` and `studio/src-tauri/src/update.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 2) studio/src-tauri/src/commands.rs:1038— studio/src-tauri/src/commands.rs:1038-1045 | studio/src-tauri/src/commands.rs:1118-1125 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Coverage not measured — JavaScript/TypeScript suite — Coverage NOT MEASURED: the JavaScript/TypeScript half could not be measured — the node:test suite in studio/frontend/ ran and not one test passed (✔ a rejection that is not an Error still reports (0.117376ms)), so the coverage would describe the failed run, not the code. Coverage is excluded from the score rather than counted as a near-zero. The named suite step is one the repository's maintainers can perform; once it passes, the real number is measured on the next scan. Alternatively, commit the lcov/Cobertura report your CI produces and it is read without a re-run.
Duplication concentrated across 30 sibling directories (455 clone groups) studio/frontend/src/features/dataset-picker/components/dataset-selector-lists.tsx:58— 455 duplicated blocks under studio/frontend/src/features/ have copies in at least two of the sibling directories api-monitor, audio, auth, browser, chat, data-recipes (+24 more sibling(s) not listed) — 188 of them are reported below, and 267 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 455 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 455 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 455 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
Duplication concentrated across 5 sibling directories (165 clone groups) studio/frontend/src/components/assistant-ui/thread.tsx:7421— 165 duplicated blocks under studio/frontend/src/ have copies in at least two of the sibling directories app, components, features, hooks, lib — 85 of them are reported below, and 80 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 165 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 165 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 165 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
Duplication concentrated across 4 sibling directories (42 clone groups) studio/frontend/src/features/settings/components/usage-examples.tsx:953— 42 duplicated blocks under studio/frontend/src/features/settings/ have copies in at least two of the sibling directories components, hooks, lib, tabs — 22 of them are reported below, and 20 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 42 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 42 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 42 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
Duplication concentrated across 7 sibling directories (17 clone groups) studio/frontend/src/features/recipe-studio/stores/helpers/model-infra-layout.ts:29— 17 duplicated blocks under studio/frontend/src/features/recipe-studio/ have copies in at least two of the sibling directories components, dialogs, easy, executions, hooks, stores (+1 more sibling(s) not listed) — 9 of them are reported below, and 8 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 17 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 17 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 17 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
Duplication concentrated across 8 sibling directories (16 clone groups) studio/frontend/src/features/recipe-studio/dialogs/markdown-note/markdown-note-dialog.tsx:11— 16 duplicated blocks under studio/frontend/src/features/recipe-studio/dialogs/ have copies in at least two of the sibling directories expression, llm, markdown-note, models, samplers, seed (+2 more sibling(s) not listed) — 7 of them are reported below, and 9 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 16 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 16 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 16 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
Duplication concentrated across 8 sibling directories (11 clone groups) studio/frontend/src/features/chat/hooks/use-chat-model-runtime.ts:2987— 11 duplicated blocks under studio/frontend/src/features/chat/ have copies in at least two of the sibling directories api, artifacts, hooks, lib, prompt-storage, stores (+2 more sibling(s) not listed) — 6 of them are reported below, and 5 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 11 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 11 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 11 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
Duplication concentrated across 4 sibling directories (5 clone groups) studio/frontend/src/features/audio/components/save-voice-dialog.tsx:133— 5 duplicated blocks under studio/frontend/src/features/audio/ have copies in at least two of the sibling directories components, hooks, pages, tools — 2 of them are reported below, and 3 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 5 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 5 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 5 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
Duplication concentrated across 5 sibling directories (5 clone groups) studio/frontend/src/features/hub/hooks/use-hub-model-search.ts:200— 5 duplicated blocks under studio/frontend/src/features/hub/ have copies in at least two of the sibling directories download-manager, hooks, inventory, lib, stores — 4 of them are reported below, and 1 is counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 5 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 5 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 5 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
R10 · Code Duplication· Duplicated block with local edits (197 matched lines × 2 locations) · ×1
Duplicated block with local edits (197 matched lines × 2 locations) studio/frontend/src/features/audio/hooks/use-convert-generation.ts:89— studio/frontend/src/features/audio/hooks/use-convert-generation.ts:89 · studio/frontend/src/features/audio/hooks/use-edit-generation.ts:94 — the two spans are one implementation copied and then locally edited — 1069 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication· Duplicated block with local edits (194 matched lines × 2 locations) · ×1
Duplicated block with local edits (194 matched lines × 2 locations) studio/frontend/src/features/settings/components/lan-access-section.tsx:109— studio/frontend/src/features/settings/components/lan-access-section.tsx:109 · studio/frontend/src/features/settings/components/remote-access-section.tsx:90 — the two spans are one implementation copied and then locally edited — 907 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication· Duplicated block with local edits (174 matched lines × 2 locations) · ×1
Duplicated block with local edits (174 matched lines × 2 locations) studio/frontend/src/features/dataset-picker/components/dataset-selector-lists.tsx:58— studio/frontend/src/features/dataset-picker/components/dataset-selector-lists.tsx:58 · studio/frontend/src/features/train-model-picker/components/train-model-picker-lists.tsx:69 — the two spans are one implementation copied and then locally edited — 767 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication· Duplicated block with local edits (162 matched lines × 2 locations) · ×1
Duplicated block with local edits (162 matched lines × 2 locations) studio/frontend/src/features/library/chats/chats-toolbar.tsx:128— studio/frontend/src/features/library/chats/chats-toolbar.tsx:128 · studio/frontend/src/features/library/components/library-toolbar.tsx:132 — the two spans are one implementation copied and then locally edited — 892 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication· Duplicated block with local edits (155 matched lines × 2 locations) · ×1
Duplicated block with local edits (155 matched lines × 2 locations) studio/frontend/src/features/training/lib/resume-training-run.ts:98— studio/frontend/src/features/training/lib/resume-training-run.ts:98 · studio/frontend/src/features/training/lib/start-fresh-training-run.ts:116 — the two spans are one implementation copied and then locally edited — 734 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
Duplicated block (148 lines × 2 locations) studio/frontend/src/features/images/images-page.tsx:2709— studio/frontend/src/features/images/images-page.tsx:2709 · studio/frontend/src/features/video/video-page.tsx:2041 — the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another.
R10 · Code Duplication· Duplicated block with local edits (142 matched lines × 2 locations) · ×1
Duplicated block with local edits (142 matched lines × 2 locations) studio/frontend/src/features/images/images-page.tsx:1065— studio/frontend/src/features/images/images-page.tsx:1065 · studio/frontend/src/features/images/localized-edit-canvas.tsx:35 — the two spans are one implementation copied and then locally edited — 1060 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication· Duplicated block with local edits (134 matched lines × 2 locations) · ×1
Duplicated block with local edits (134 matched lines × 2 locations) studio/frontend/src/components/ui/dropdown-menu.tsx:89— studio/frontend/src/components/ui/dropdown-menu.tsx:89 · studio/frontend/src/components/ui/menubar.tsx:99 — the two spans are one implementation copied and then locally edited — 515 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication· Duplicated block with local edits (133 matched lines × 2 locations) · ×1
Duplicated block with local edits (133 matched lines × 2 locations) studio/frontend/src/features/settings/components/audio-api-examples.tsx:76— studio/frontend/src/features/settings/components/audio-api-examples.tsx:76 · studio/frontend/src/features/settings/components/media-api-examples.tsx:42 — the two spans are one implementation copied and then locally edited — 757 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication· Duplicated block with local edits (118 matched lines × 2 locations) · ×1
Duplicated block with local edits (118 matched lines × 2 locations) studio/frontend/src/components/assistant-ui/tool-fallback.tsx:95— studio/frontend/src/components/assistant-ui/tool-fallback.tsx:95 · studio/frontend/src/components/assistant-ui/tool-group.tsx:76 — the two spans are one implementation copied and then locally edited — 440 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication· Duplicated block with local edits (114 matched lines × 2 locations) · ×1
Duplicated block with local edits (114 matched lines × 2 locations) studio/frontend/src/features/audio/tools/clone-panels.tsx:37— studio/frontend/src/features/audio/tools/clone-panels.tsx:37 · studio/frontend/src/features/audio/tools/convert-panels.tsx:38 — the two spans are one implementation copied and then locally edited — 528 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication· Duplicated block with local edits (105 matched lines × 2 locations) · ×1
Duplicated block with local edits (105 matched lines × 2 locations) studio/frontend/src/features/images/images-page.tsx:3475— studio/frontend/src/features/images/images-page.tsx:3475 · studio/frontend/src/features/video/video-page.tsx:2456 — the two spans are one implementation copied and then locally edited — 682 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication· Duplicated block with local edits (98 matched lines × 2 locations) · ×1
Duplicated block with local edits (98 matched lines × 2 locations) studio/frontend/src/features/images/mask-from-text-panel.tsx:69— studio/frontend/src/features/images/mask-from-text-panel.tsx:69 · studio/frontend/src/features/images/prompt-enhance-panel.tsx:83 — the two spans are one implementation copied and then locally edited — 489 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
Duplicated block (91 lines × 3 locations) studio/frontend/src/components/assistant-ui/thread.tsx:3431— studio/frontend/src/components/assistant-ui/thread.tsx:3431 · studio/frontend/src/components/assistant-ui/thread.tsx:3547 · studio/frontend/src/components/assistant-ui/thread.tsx:3797 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
R10 · Code Duplication· Duplicated block with local edits (87 matched lines × 2 locations) · ×1
Duplicated block with local edits (87 matched lines × 2 locations) studio/frontend/src/features/settings/components/sidebar-menu-customizer.tsx:39— studio/frontend/src/features/settings/components/sidebar-menu-customizer.tsx:39 · studio/frontend/src/features/settings/components/sidebar-nav-customizer.tsx:48 — the two spans are one implementation copied and then locally edited — 506 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication· Duplicated block with local edits (80 matched lines × 2 locations) · ×1
Duplicated block with local edits (80 matched lines × 2 locations) studio/frontend/src/features/hub/catalog/model-card.tsx:238— studio/frontend/src/features/hub/catalog/model-card.tsx:238 · studio/frontend/src/features/hub/catalog/models-catalog-rows.tsx:455 — the two spans are one implementation copied and then locally edited — 390 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication· Duplicated block with local edits (79 matched lines × 2 locations) · ×1
Duplicated block with local edits (79 matched lines × 2 locations) studio/frontend/smoke-heavy-thread-main.tsx:746— studio/frontend/smoke-heavy-thread-main.tsx:746 · studio/frontend/smoke-thread-weight-main.tsx:302 — the two spans are one implementation copied and then locally edited — 547 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
Duplicated block (77 lines × 2 locations) studio/frontend/src/components/ui/context-menu.tsx:202— studio/frontend/src/components/ui/context-menu.tsx:202 · studio/frontend/src/components/ui/menubar.tsx:136 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
Wholesale file copy (73 identical lines × 2 files) studio/frontend/src/features/studio/sections/charts/grad-norm-chart-card.tsx:4— studio/frontend/src/features/studio/sections/charts/grad-norm-chart-card.tsx:4 · studio/frontend/src/features/studio/sections/charts/learning-rate-chart-card.tsx:4 — these 2 files are line-for-line copies of one another — 73 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done.
R10 · Code Duplication· Duplicated block with local edits (72 matched lines × 2 locations) · ×1
Duplicated block with local edits (72 matched lines × 2 locations) studio/frontend/src/features/recipe-studio/dialogs/samplers/datetime-dialog.tsx:36— studio/frontend/src/features/recipe-studio/dialogs/samplers/datetime-dialog.tsx:36 · studio/frontend/src/features/recipe-studio/dialogs/samplers/timedelta-dialog.tsx:32 — the two spans are one implementation copied and then locally edited — 369 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
Duplicated block (70 lines × 2 locations) studio/frontend/src/components/assistant-ui/thread.tsx:7421— studio/frontend/src/components/assistant-ui/thread.tsx:7421 · studio/frontend/src/features/chat/shared-composer.tsx:2985 — the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct — and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal's entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins — a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are.
R10 · Code Duplication· Duplicated block with local edits (68 matched lines × 2 locations) · ×1
Duplicated block with local edits (68 matched lines × 2 locations) studio/frontend/src/features/hub/catalog/dataset-download-section.tsx:49— studio/frontend/src/features/hub/catalog/dataset-download-section.tsx:49 · studio/frontend/src/features/hub/catalog/safetensors-download-card.tsx:103 — the two spans are one implementation copied and then locally edited — 309 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication· Duplicated block with local edits (64 matched lines × 2 locations) · ×1
Duplicated block with local edits (64 matched lines × 2 locations) studio/frontend/src/features/library/chats/chats-items.tsx:1482— studio/frontend/src/features/library/chats/chats-items.tsx:1482 · studio/frontend/src/features/library/chats/chats-items.tsx:1720 — the two spans are one implementation copied and then locally edited — 338 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
Duplicated block (63 lines × 3 locations) REDACTED:8202— REDACTED:8202 · REDACTED:8349 · REDACTED:8483 — all 3 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication· Duplicated block with local edits (62 matched lines × 2 locations) · ×1
Duplicated block with local edits (62 matched lines × 2 locations) studio/frontend/src/features/hub/catalog/models-table.tsx:357— studio/frontend/src/features/hub/catalog/models-table.tsx:357 · studio/frontend/src/features/hub/catalog/models-table.tsx:513 — the two spans are one implementation copied and then locally edited — 289 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
Duplicated block (61 lines × 2 locations) studio/frontend/src/features/images/images-page.tsx:893— studio/frontend/src/features/images/images-page.tsx:893 · studio/frontend/src/features/video/video-page.tsx:562 — the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another.
R2 · Cyclomatic Complexity· Complex function run (cyclomatic 678, cognitive 1460) · ×1
Complex function run (cyclomatic 678, cognitive 1460) studio/frontend/src/features/chat/api/chat-adapter.ts:4614— run has cyclomatic complexity 678 and cognitive complexity 1460; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
Complex function performLoad (cyclomatic 409, cognitive 453) studio/frontend/src/features/chat/hooks/use-chat-model-runtime.ts:2109— performLoad has cyclomatic complexity 409 and cognitive complexity 453; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
Complex function ImagesPage (cyclomatic 284, cognitive 253) studio/frontend/src/features/images/images-page.tsx:1650— ImagesPage has cyclomatic complexity 284 and cognitive complexity 253; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
Complex function (anonymous) (cyclomatic 245, cognitive 320) studio/frontend/src/features/chat/hooks/use-chat-model-runtime.ts:1295— (anonymous) has cyclomatic complexity 245 and cognitive complexity 320; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
Complex function applyActiveModelStatusToStore (cyclomatic 241, cognitive 226) studio/frontend/src/features/chat/lib/apply-inference-status-to-store.ts:172— applyActiveModelStatusToStore has cyclomatic complexity 241 and cognitive complexity 226; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
Complex function ModelConfigPage (cyclomatic 223, cognitive 184) studio/frontend/src/features/model-picker/components/model-config-page.tsx:2539— ModelConfigPage has cyclomatic complexity 223 and cognitive complexity 184; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
Complex function AudioPage (cyclomatic 210, cognitive 196) studio/frontend/src/features/audio/audio-page.tsx:264— AudioPage has cyclomatic complexity 210 and cognitive complexity 196; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
Complex function (anonymous) (cyclomatic 171, cognitive 261) studio/frontend/tests/chat-barrel-module-scope-reads.test.ts:556— (anonymous) has cyclomatic complexity 171 and cognitive complexity 261; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
Complex function ExportPage (cyclomatic 171, cognitive 139) studio/frontend/src/features/export/export-page.tsx:195— ExportPage has cyclomatic complexity 171 and cognitive complexity 139; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
Complex function perform (cyclomatic 170, cognitive 227) studio/frontend/src/features/browser/agent/executor.ts:732— perform has cyclomatic complexity 170 and cognitive complexity 227; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
Complex function DiffusionTrainPanel (cyclomatic 167, cognitive 139) studio/frontend/src/features/images/train/diffusion-train-panel.tsx:377— DiffusionTrainPanel has cyclomatic complexity 167 and cognitive complexity 139; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
Complex function AppSidebar (cyclomatic 163, cognitive 146) studio/frontend/src/components/app-sidebar.tsx:1340— AppSidebar has cyclomatic complexity 163 and cognitive complexity 146; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
Complex function getConfigErrors (cyclomatic 162, cognitive 321) studio/frontend/src/features/recipe-studio/utils/validation.ts:14— getConfigErrors has cyclomatic complexity 162 and cognitive complexity 321; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
Complex function ensureModelLoaded (cyclomatic 159, cognitive 175) studio/frontend/src/features/chat/shared-composer.tsx:1660— ensureModelLoaded has cyclomatic complexity 159 and cognitive complexity 175; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
Complex function SharedComposer (cyclomatic 151, cognitive 133) studio/frontend/src/features/chat/shared-composer.tsx:621— SharedComposer has cyclomatic complexity 151 and cognitive complexity 133; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
Complex function ChatPage (cyclomatic 151, cognitive 126) studio/frontend/src/features/chat/chat-page.tsx:2661— ChatPage has cyclomatic complexity 151 and cognitive complexity 126; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
Complex function GgufDownloadCard (cyclomatic 132, cognitive 101) studio/frontend/src/features/hub/catalog/gguf-download-card.tsx:657— GgufDownloadCard has cyclomatic complexity 132 and cognitive complexity 101; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
Complex function (anonymous) (cyclomatic 127, cognitive 199) studio/frontend/src/features/chat/api/chat-adapter.ts:6761— (anonymous) has cyclomatic complexity 127 and cognitive complexity 199; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
Complex function VideoGenerator (cyclomatic 127, cognitive 112) studio/frontend/src/features/video/video-page.tsx:1053— VideoGenerator has cyclomatic complexity 127 and cognitive complexity 112; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
Complex function (anonymous) (cyclomatic 125, cognitive 141) studio/frontend/src/features/images/images-page.tsx:5341— (anonymous) has cyclomatic complexity 125 and cognitive complexity 141; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R3 · Large Files· studio/frontend/src/components/assistant-ui/thread.tsx · ×1
studio/frontend/src/components/assistant-ui/thread.tsx: 9153 lines of code studio/frontend/src/components/assistant-ui/thread.tsx:1— studio/frontend/src/components/assistant-ui/thread.tsx has 9153 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· studio/frontend/src/features/chat/api/chat-adapter.ts · ×1
studio/frontend/src/features/chat/api/chat-adapter.ts: 9109 lines of code studio/frontend/src/features/chat/api/chat-adapter.ts:1— studio/frontend/src/features/chat/api/chat-adapter.ts has 9109 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
REDACTED: 9062 lines of code REDACTED:1— REDACTED has 9062 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· studio/frontend/src/features/images/images-page.tsx · ×1
studio/frontend/src/features/images/images-page.tsx: 7546 lines of code studio/frontend/src/features/images/images-page.tsx:1— studio/frontend/src/features/images/images-page.tsx has 7546 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· studio/frontend/src/components/app-sidebar.tsx · ×1
studio/frontend/src/components/app-sidebar.tsx: 7211 lines of code studio/frontend/src/components/app-sidebar.tsx:1— studio/frontend/src/components/app-sidebar.tsx has 7211 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· studio/frontend/src/features/chat/stores/chat-runtime-store.ts · ×1
studio/frontend/src/features/chat/stores/chat-runtime-store.ts: 6372 lines of code studio/frontend/src/features/chat/stores/chat-runtime-store.ts:1— studio/frontend/src/features/chat/stores/chat-runtime-store.ts has 6372 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· studio/frontend/src/features/chat/chat-page.tsx · ×1
studio/frontend/src/features/chat/chat-page.tsx: 4951 lines of code studio/frontend/src/features/chat/chat-page.tsx:1— studio/frontend/src/features/chat/chat-page.tsx has 4951 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· studio/frontend/src/features/video/video-page.tsx · ×1
studio/frontend/src/features/video/video-page.tsx: 4843 lines of code studio/frontend/src/features/video/video-page.tsx:1— studio/frontend/src/features/video/video-page.tsx has 4843 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· studio/frontend/src/features/chat/runtime-provider.tsx · ×1
studio/frontend/src/features/chat/runtime-provider.tsx: 4467 lines of code studio/frontend/src/features/chat/runtime-provider.tsx:1— studio/frontend/src/features/chat/runtime-provider.tsx has 4467 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· studio/frontend/src/features/model-picker/components/model-config-page.tsx · ×1
studio/frontend/src/features/model-picker/components/model-config-page.tsx: 4234 lines of code studio/frontend/src/features/model-picker/components/model-config-page.tsx:1— studio/frontend/src/features/model-picker/components/model-config-page.tsx has 4234 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· studio/frontend/src/features/chat/hooks/use-chat-model-runtime.ts · ×1
studio/frontend/src/features/chat/hooks/use-chat-model-runtime.ts: 4093 lines of code studio/frontend/src/features/chat/hooks/use-chat-model-runtime.ts:1— studio/frontend/src/features/chat/hooks/use-chat-model-runtime.ts has 4093 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· studio/frontend/src/features/chat/shared-composer.tsx · ×1
studio/frontend/src/features/chat/shared-composer.tsx: 3519 lines of code studio/frontend/src/features/chat/shared-composer.tsx:1— studio/frontend/src/features/chat/shared-composer.tsx has 3519 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· studio/frontend/src/features/chat/prompt-storage/prompt-storage-dialog.tsx · ×1
studio/frontend/src/features/chat/prompt-storage/prompt-storage-dialog.tsx: 2683 lines of code studio/frontend/src/features/chat/prompt-storage/prompt-storage-dialog.tsx:1— studio/frontend/src/features/chat/prompt-storage/prompt-storage-dialog.tsx has 2683 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· studio/frontend/src/features/chat/chat-providers-dialog.tsx · ×1
studio/frontend/src/features/chat/chat-providers-dialog.tsx: 2521 lines of code studio/frontend/src/features/chat/chat-providers-dialog.tsx:1— studio/frontend/src/features/chat/chat-providers-dialog.tsx has 2521 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· studio/frontend/src/features/images/train/diffusion-train-panel.tsx · ×1
studio/frontend/src/features/images/train/diffusion-train-panel.tsx: 2476 lines of code studio/frontend/src/features/images/train/diffusion-train-panel.tsx:1— studio/frontend/src/features/images/train/diffusion-train-panel.tsx has 2476 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· studio/frontend/src/features/browser/browser-panel.tsx · ×1
studio/frontend/src/features/browser/browser-panel.tsx: 2470 lines of code studio/frontend/src/features/browser/browser-panel.tsx:1— studio/frontend/src/features/browser/browser-panel.tsx has 2470 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· studio/frontend/src/features/audio/audio-page.tsx · ×1
studio/frontend/src/features/audio/audio-page.tsx: 2366 lines of code studio/frontend/src/features/audio/audio-page.tsx:1— studio/frontend/src/features/audio/audio-page.tsx has 2366 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· studio/frontend/src/features/export/export-page.tsx · ×1
studio/frontend/src/features/export/export-page.tsx: 2197 lines of code studio/frontend/src/features/export/export-page.tsx:1— studio/frontend/src/features/export/export-page.tsx has 2197 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· studio/frontend/src/features/hub/hub-page.tsx · ×1
studio/frontend/src/features/hub/hub-page.tsx: 2197 lines of code studio/frontend/src/features/hub/hub-page.tsx:1— studio/frontend/src/features/hub/hub-page.tsx has 2197 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
REDACTED: 2146 lines of code REDACTED:1— REDACTED has 2146 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· studio/frontend/src/features/chat/chat-settings-sheet.tsx · ×1
studio/frontend/src/features/chat/chat-settings-sheet.tsx: 2107 lines of code studio/frontend/src/features/chat/chat-settings-sheet.tsx:1— studio/frontend/src/features/chat/chat-settings-sheet.tsx has 2107 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· studio/frontend/src/features/chat/api/chat-api.ts · ×1
studio/frontend/src/features/chat/api/chat-api.ts: 2024 lines of code studio/frontend/src/features/chat/api/chat-api.ts:1— studio/frontend/src/features/chat/api/chat-api.ts has 2024 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· studio/frontend/src/features/settings/tabs/voice-tab.tsx · ×1
studio/frontend/src/features/settings/tabs/voice-tab.tsx: 1900 lines of code studio/frontend/src/features/settings/tabs/voice-tab.tsx:1— studio/frontend/src/features/settings/tabs/voice-tab.tsx has 1900 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· studio/frontend/src/features/library/chats/chats-items.tsx · ×1
studio/frontend/src/features/library/chats/chats-items.tsx: 1838 lines of code studio/frontend/src/features/library/chats/chats-items.tsx:1— studio/frontend/src/features/library/chats/chats-items.tsx has 1838 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· studio/frontend/src/features/api-monitor/api-monitor-page.tsx · ×1
studio/frontend/src/features/api-monitor/api-monitor-page.tsx: 1763 lines of code studio/frontend/src/features/api-monitor/api-monitor-page.tsx:1— studio/frontend/src/features/api-monitor/api-monitor-page.tsx has 1763 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· studio/frontend/src/features/training/stores/training-config-store.ts · ×1
studio/frontend/src/features/training/stores/training-config-store.ts: 1760 lines of code studio/frontend/src/features/training/stores/training-config-store.ts:1— studio/frontend/src/features/training/stores/training-config-store.ts has 1760 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· studio/frontend/src/components/assistant-ui/code-fence-defer.tsx · ×1
studio/frontend/src/components/assistant-ui/code-fence-defer.tsx: 1741 lines of code studio/frontend/src/components/assistant-ui/code-fence-defer.tsx:1— studio/frontend/src/components/assistant-ui/code-fence-defer.tsx has 1741 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· studio/frontend/src/features/model-picker/components/model-selector/model-catalog.check.ts · ×1
studio/frontend/src/features/model-picker/components/model-selector/model-catalog.check.ts: 1688 lines of code studio/frontend/src/features/model-picker/components/model-selector/model-catalog.check.ts:1— studio/frontend/src/features/model-picker/components/model-selector/model-catalog.check.ts has 1688 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· studio/frontend/src/features/library/chats/chats-library.tsx · ×1
studio/frontend/src/features/library/chats/chats-library.tsx: 1678 lines of code studio/frontend/src/features/library/chats/chats-library.tsx:1— studio/frontend/src/features/library/chats/chats-library.tsx has 1678 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· studio/frontend/src/features/model-picker/components/model-selector/model-catalog.ts · ×1
studio/frontend/src/features/model-picker/components/model-selector/model-catalog.ts: 1656 lines of code studio/frontend/src/features/model-picker/components/model-selector/model-catalog.ts:1— studio/frontend/src/features/model-picker/components/model-selector/model-catalog.ts has 1656 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· studio/frontend/src/features/model-picker/model-config/per-model-config.ts · ×1
studio/frontend/src/features/model-picker/model-config/per-model-config.ts: 1648 lines of code studio/frontend/src/features/model-picker/model-config/per-model-config.ts:1— studio/frontend/src/features/model-picker/model-config/per-model-config.ts has 1648 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
REDACTED: 1629 lines of code REDACTED:1— REDACTED has 1629 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· studio/frontend/src/components/assistant-ui/streaming-render-schedule.ts · ×1
studio/frontend/src/components/assistant-ui/streaming-render-schedule.ts: 1608 lines of code studio/frontend/src/components/assistant-ui/streaming-render-schedule.ts:1— studio/frontend/src/components/assistant-ui/streaming-render-schedule.ts has 1608 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
REDACTED: 1568 lines of code REDACTED:1— REDACTED has 1568 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· studio/frontend/src/features/images/lib/image-metadata.ts · ×1
studio/frontend/src/features/images/lib/image-metadata.ts: 1538 lines of code studio/frontend/src/features/images/lib/image-metadata.ts:1— studio/frontend/src/features/images/lib/image-metadata.ts has 1538 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· studio/frontend/src/features/rag/components/thread-documents-bar.tsx · ×1
studio/frontend/src/features/rag/components/thread-documents-bar.tsx: 1538 lines of code studio/frontend/src/features/rag/components/thread-documents-bar.tsx:1— studio/frontend/src/features/rag/components/thread-documents-bar.tsx has 1538 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· studio/frontend/src/features/settings/tabs/agents-tab.tsx · ×1
studio/frontend/src/features/settings/tabs/agents-tab.tsx: 1516 lines of code studio/frontend/src/features/settings/tabs/agents-tab.tsx:1— studio/frontend/src/features/settings/tabs/agents-tab.tsx has 1516 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· studio/frontend/src/features/chat/provider-capabilities.ts · ×1
studio/frontend/src/features/chat/provider-capabilities.ts: 1420 lines of code studio/frontend/src/features/chat/provider-capabilities.ts:1— studio/frontend/src/features/chat/provider-capabilities.ts has 1420 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· studio/frontend/src/features/chat/utils/chat-history-storage.ts · ×1
studio/frontend/src/features/chat/utils/chat-history-storage.ts: 1401 lines of code studio/frontend/src/features/chat/utils/chat-history-storage.ts:1— studio/frontend/src/features/chat/utils/chat-history-storage.ts has 1401 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files· studio/frontend/src/lib/latex.ts · ×1
studio/frontend/src/lib/latex.ts: 1397 lines of code studio/frontend/src/lib/latex.ts:1— studio/frontend/src/lib/latex.ts has 1397 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
Dead file (~297 LoC) studio/frontend/src/components/ui/menubar.tsx— no import path from any entry point (253 application, 12 tooling, 1460 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
Dead file (~177 LoC) studio/frontend/src/components/ui/navigation-menu.tsx— no import path from any entry point (253 application, 12 tooling, 1460 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
Dead file (~157 LoC) studio/frontend/src/components/ui/sparkles-text.tsx— no import path from any entry point (253 application, 12 tooling, 1460 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
Dead file (~138 LoC) studio/frontend/src/components/ui/pagination.tsx— no import path from any entry point (253 application, 12 tooling, 1460 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
Dead file (~126 LoC) studio/frontend/src/components/ui/breadcrumb.tsx— no import path from any entry point (253 application, 12 tooling, 1460 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
Dead file (~118 LoC) studio/frontend/src/components/ui/confetti.tsx— no import path from any entry point (253 application, 12 tooling, 1460 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
Dead file (~113 LoC) studio/frontend/src/components/ui/avatar.tsx— no import path from any entry point (253 application, 12 tooling, 1460 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
Dead file (~98 LoC) studio/frontend/src/components/ui/accordion.tsx— no import path from any entry point (253 application, 12 tooling, 1460 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
Dead file (~96 LoC) studio/frontend/src/components/ui/shimmer-button.tsx— no import path from any entry point (253 application, 12 tooling, 1460 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
Dead file (~92 LoC) studio/frontend/src/components/ui/toggle-group.tsx— no import path from any entry point (253 application, 12 tooling, 1460 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
Dead file (~59 LoC) studio/frontend/src/components/example.tsx— no import path from any entry point (253 application, 12 tooling, 1460 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
Dead file (~58 LoC) studio/frontend/src/components/ui/scroll-area.tsx— no import path from any entry point (253 application, 12 tooling, 1460 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
Dead file (~53 LoC) studio/frontend/src/components/ui/radio-group.tsx— no import path from any entry point (253 application, 12 tooling, 1460 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
Dead file (~49 LoC) studio/frontend/src/components/ui/toggle.tsx— no import path from any entry point (253 application, 12 tooling, 1460 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (studio/frontend/src/components/ui/toggle-group.tsx) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it
Dead file (~41 LoC) studio/frontend/src/components/ui/animated-shiny-text.tsx— no import path from any entry point (253 application, 12 tooling, 1460 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
Dead file (~29 LoC) studio/frontend/src/features/chat/hooks/use-pill-activation-order.ts— no import path from any entry point (253 application, 12 tooling, 1460 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
Dead file (~28 LoC) studio/frontend/src/components/layout/dashboard-layout.tsx— no import path from any entry point (253 application, 12 tooling, 1460 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (studio/frontend/src/components/layout/index.ts) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it
Dead file (~18 LoC) studio/frontend/src/features/chat/utils/download-json.ts— no import path from any entry point (253 application, 12 tooling, 1460 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
Dead file (~12 LoC) studio/frontend/src/components/ui/aspect-ratio.tsx— no import path from any entry point (253 application, 12 tooling, 1460 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
Dead file (~9 LoC) studio/frontend/src/features/data-recipes/hooks/use-recipe-sidebar-items.ts— no import path from any entry point (253 application, 12 tooling, 1460 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
Unused dependency '@codemirror/view' — Declared in docker/jupyter/unsloth_labext/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
Unused dependency '@jupyter/builder' — Declared in docker/jupyter/unsloth_labext/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
Unused dependency '@radix-ui/react-checkbox' — Declared in studio/frontend/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
X19 · Unrestored process-global state· Process-global state is restored only on the happy path · ×1
Process-global state is restored only on the happy path studio/backend/core/_msvc_env.py:195— `_switch_to_bundled_tcc` changes state that belongs to the whole PROCESS and changes it back at the end of the same body — the `CC` environment variable (set at line 204, cleared at line 210) — which says the change was meant to last no longer than this call. But the restore is an ordinary statement on the straight-line path, not a `finally`, so it is skipped by any exception raised in between: the process then keeps the overwritten value for the rest of its life, and every later relative path, `subprocess` launch, `os.environ` read or `print` in ANY module sees it. That failure is silent and remote from its cause — the function that breaks is not the function that moved the value. The window is not private while it is open either: the working directory, the environment, the umask and `sys.stdout` are per-process, not per-thread, so a concurrent thread sees the moved value too. The durable fix is not to widen the restore but to stop mutating the global: pass the value to the operation that needs it — the `cwd=` and `env=` arguments of `subprocess.run`/`Popen` scope both to the CHILD, absolute paths built with `os.path.join` or `pathlib` need no working directory, and a stream handed to the code that writes needs no `sys.stdout`. Where the global genuinely must move, `contextlib.chdir` (3.11+), `contextlib.redirect_stdout` or a `try`/`finally` makes the restore run on every path.
Interpolated log message defeats structured logging REDACTED:2540— `debug` at line 2540 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.debug("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.debug("order moved", order_id=order_id, status=status)` with structlog.
Interpolated log message defeats structured logging REDACTED:2550— `debug` at line 2550 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.debug("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.debug("order moved", order_id=order_id, status=status)` with structlog.
Interpolated log message defeats structured logging REDACTED:2618— `debug` at line 2618 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.debug("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.debug("order moved", order_id=order_id, status=status)` with structlog.
Interpolated log message defeats structured logging REDACTED:2902— `debug` at line 2902 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.debug("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.debug("order moved", order_id=order_id, status=status)` with structlog.
Interpolated log message defeats structured logging REDACTED:2910— `debug` at line 2910 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.debug("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.debug("order moved", order_id=order_id, status=status)` with structlog.
Interpolated log message defeats structured logging REDACTED:2921— `debug` at line 2921 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.debug("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.debug("order moved", order_id=order_id, status=status)` with structlog.
Interpolated log message defeats structured logging REDACTED:2929— `debug` at line 2929 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.debug("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.debug("order moved", order_id=order_id, status=status)` with structlog.
Interpolated log message defeats structured logging REDACTED:2935— `debug` at line 2935 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.debug("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.debug("order moved", order_id=order_id, status=status)` with structlog.
Interpolated log message defeats structured logging REDACTED:2948— `debug` at line 2948 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.debug("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.debug("order moved", order_id=order_id, status=status)` with structlog.
Interpolated log message defeats structured logging REDACTED:3039— `debug` at line 3039 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.debug("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.debug("order moved", order_id=order_id, status=status)` with structlog.
Interpolated log message defeats structured logging REDACTED:3061— `debug` at line 3061 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.debug("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.debug("order moved", order_id=order_id, status=status)` with structlog.
Interpolated log message defeats structured logging studio/backend/core/_msvc_env.py:310— `warning` at line 310 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.warning("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.warning("order moved", order_id=order_id, status=status)` with structlog.
Interpolated log message defeats structured logging REDACTED:262— `debug` at line 262 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.debug("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.debug("order moved", order_id=order_id, status=status)` with structlog.
Interpolated log message defeats structured logging REDACTED:572— `warning` at line 572 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.warning("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.warning("order moved", order_id=order_id, status=status)` with structlog.
Interpolated log message defeats structured logging REDACTED:767— `warning` at line 767 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.warning("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.warning("order moved", order_id=order_id, status=status)` with structlog.
Interpolated log message defeats structured logging REDACTED:832— `error` at line 832 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.error("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.error("order moved", order_id=order_id, status=status)` with structlog.
Interpolated log message defeats structured logging REDACTED:841— `warning` at line 841 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.warning("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.warning("order moved", order_id=order_id, status=status)` with structlog.
Interpolated log message defeats structured logging REDACTED:889— `info` at line 889 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.info("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.info("order moved", order_id=order_id, status=status)` with structlog.
Interpolated log message defeats structured logging REDACTED:1053— `info` at line 1053 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.info("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.info("order moved", order_id=order_id, status=status)` with structlog.
Interpolated log message defeats structured logging REDACTED:1113— `info` at line 1113 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.info("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.info("order moved", order_id=order_id, status=status)` with structlog.
Interpolated log message defeats structured logging REDACTED:1142— `info` at line 1142 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.info("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.info("order moved", order_id=order_id, status=status)` with structlog.
Interpolated log message defeats structured logging REDACTED:1175— `error` at line 1175 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.error("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.error("order moved", order_id=order_id, status=status)` with structlog.
Interpolated log message defeats structured logging REDACTED:1182— `warning` at line 1182 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.warning("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.warning("order moved", order_id=order_id, status=status)` with structlog.
Interpolated log message defeats structured logging REDACTED:1187— `warning` at line 1187 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.warning("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.warning("order moved", order_id=order_id, status=status)` with structlog.
Interpolated log message defeats structured logging REDACTED:1244— `info` at line 1244 is handed an f-string as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: `logger.info("order %s moved to %s", order_id, status)` with the standard library's `logging`, which keeps the message and its arguments apart on the record, or `log.info("order moved", order_id=order_id, status=status)` with structlog.
Silent fallback default in catch docker/jupyter/unsloth_labext/src/colabTitle.ts:72— `firstLineOf` swallows every exception into `return ''` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
Silent fallback default in catch studio/frontend/scripts/typecheck.mjs:89— `tsVersion` swallows every exception into `return ""` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
Silent fallback default in catch studio/frontend/src/components/assistant-ui/citation-utils.ts:29— `parseSentinelSources` swallows every exception into `return []` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
Silent fallback default in catch studio/frontend/src/components/assistant-ui/math-block-containment.ts:26— `readBuildFlag` swallows every exception into `return ""` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
Silent fallback default in catch studio/frontend/src/components/assistant-ui/code-block-containment.ts:17— `readBuildFlag` swallows every exception into `return ""` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
Silent fallback default in catch studio/frontend/src/components/assistant-ui/code-fence-defer.tsx:115— `readBuildFlag` swallows every exception into `return ""` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
Silent fallback default in catch studio/frontend/src/components/assistant-ui/tool-arg-text.ts:43— `toolArgText` swallows every exception into `return ""` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
Silent fallback default in catch studio/frontend/src/components/assistant-ui/reasoning-row-containment.ts:13— `readBuildFlag` swallows every exception into `return ""` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
Silent fallback default in catch studio/frontend/src/components/assistant-ui/tool-ui-web-search.tsx:140— `WebSearchToolUIImpl` swallows every exception into `return ""` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
Silent fallback default in catch studio/frontend/src/features/model-picker/model-config/per-model-config.ts:1039— `readMapRaw` swallows every exception into `return {}` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
Silent fallback default in catch studio/frontend/src/features/audio/audio-options.ts:239— `readAll` swallows every exception into `return {}` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
Silent fallback default in catch studio/frontend/src/features/auth/api.ts:348— `runRefresh` swallows every exception into `return "unavailable"` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
Silent fallback default in catch studio/frontend/src/features/browser/agent/permissions.ts:44— `hostOf` swallows every exception into `return ""` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
Silent fallback default in catch REDACTED:34— `hostOfUrl` swallows every exception into `return ""` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
Silent fallback default in catch REDACTED:48— `policyHost` swallows every exception into `return ""` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
Silent fallback default in catch studio/frontend/src/features/browser/download-approval-queue.ts:31— `downloadSiteOf` swallows every exception into `return ""` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
Silent fallback default in catch studio/frontend/src/features/browser/agent/executor.ts:720— `linkedPages` swallows every exception into `return []` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
Silent fallback default in catch studio/frontend/src/features/browser/site-favicon.tsx:22— `iconsFor` swallows every exception into `return []` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
Silent fallback default in catch studio/frontend/src/features/chat/external-providers.ts:740— `loadExternalProviders` swallows every exception into `return []` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
Silent fallback default in catch studio/frontend/src/features/chat/external-providers.ts:762— `loadRawKeyMap` swallows every exception into `return {}` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
Silent fallback default in catch studio/frontend/src/features/chat/utils/chat-thread-tombstones.ts:52— `loadTombstones` swallows every exception into `return []` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
Silent fallback default in catch studio/frontend/src/features/chat/stores/chat-runtime-store.ts:280— `loadResearchMcpSources` swallows every exception into `return []` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
Silent fallback default in catch studio/frontend/src/features/chat/tool-call-arguments.ts:438— `streamedToolCallArguments` swallows every exception into `return ""` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
Silent fallback default in catch studio/frontend/src/features/chat/utils/pasted-text.ts:316— `clipboardText` swallows every exception into `return ""` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
Silent fallback default in catch studio/frontend/src/features/chat/utils/composer-draft.ts:27— `readPasteDraft` swallows every exception into `return []` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
Hand-rolled JSON/XML parsing via regex studio/backend/assets/docs_ui/swagger-ui-bundle.js:2— A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too.
Hand-rolled JSON/XML parsing via regex studio/backend/core/tool_healing.py:92— A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This Python code already uses a real parser in the same package; use it here too.
Hand-rolled JSON/XML parsing via regex studio/backend/core/tool_healing.py:97— A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This Python code already uses a real parser in the same package; use it here too.
Hand-rolled JSON/XML parsing via regex studio/backend/core/tool_healing.py:116— A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This Python code already uses a real parser in the same package; use it here too.
Hand-rolled JSON/XML parsing via regex studio/backend/core/tool_healing.py:252— A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This Python code already uses a real parser in the same package; use it here too.
Hand-rolled JSON/XML parsing via regex studio/backend/core/tool_healing.py:255— A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This Python code already uses a real parser in the same package; use it here too.
Hand-rolled JSON/XML parsing via regex studio/backend/core/tool_healing.py:269— A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This Python code already uses a real parser in the same package; use it here too.
Hand-rolled JSON/XML parsing via regex studio/backend/core/tool_healing.py:271— A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This Python code already uses a real parser in the same package; use it here too.
Hand-rolled JSON/XML parsing via regex studio/backend/core/tool_healing.py:272— A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This Python code already uses a real parser in the same package; use it here too.
Hand-rolled JSON/XML parsing via regex studio/backend/core/tool_healing.py:1062— A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This Python code already uses a real parser in the same package; use it here too.
Hand-rolled JSON/XML parsing via regex studio/backend/core/tool_healing.py:1063— A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This Python code already uses a real parser in the same package; use it here too.
Hand-rolled JSON/XML parsing via regex studio/backend/core/external_import/cursor.py:31— A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This Python code already uses a real parser in the same package; use it here too.
Hand-rolled JSON/XML parsing via regex studio/backend/core/inference/tool_call_parser.py:67— A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This Python code already uses a real parser in the same package; use it here too.
Hand-rolled JSON/XML parsing via regex studio/backend/core/inference/tool_call_parser.py:76— A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This Python code already uses a real parser in the same package; use it here too.
Hand-rolled JSON/XML parsing via regex studio/backend/core/inference/tool_call_parser.py:87— A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This Python code already uses a real parser in the same package; use it here too.
Hand-rolled JSON/XML parsing via regex studio/backend/core/inference/tool_call_parser.py:357— A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This Python code already uses a real parser in the same package; use it here too.
Hand-rolled JSON/XML parsing via regex studio/backend/core/inference/tool_call_parser.py:419— A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This Python code already uses a real parser in the same package; use it here too.
Hand-rolled JSON/XML parsing via regex studio/backend/core/inference/tool_call_parser.py:1362— A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This Python code already uses a real parser in the same package; use it here too.
Hand-rolled JSON/XML parsing via regex studio/backend/core/inference/tool_call_parser.py:2041— A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This Python code already uses a real parser in the same package; use it here too.
Hand-rolled JSON/XML parsing via regex studio/backend/core/inference/tool_call_parser.py:2047— A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This Python code already uses a real parser in the same package; use it here too.
Hand-rolled JSON/XML parsing via regex studio/backend/core/inference/tool_call_parser.py:3357— A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This Python code already uses a real parser in the same package; use it here too.
Hand-rolled JSON/XML parsing via regex studio/backend/core/inference/safetensors_agentic.py:440— A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This Python code already uses a real parser in the same package; use it here too.
Hand-rolled JSON/XML parsing via regex studio/backend/core/inference/llama_cpp.py:2829— A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This Python code already uses a real parser in the same package; use it here too.
Hand-rolled JSON/XML parsing via regex studio/backend/core/inference/audio_edit.py:34— A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This Python code already uses a real parser in the same package; use it here too.
Hand-rolled JSON/XML parsing via regex studio/backend/core/research/parsing.py:21— A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This Python code already uses a real parser in the same package; use it here too.
Duplicated predicate studio/frontend/src/features/chat/hooks/use-rag-tool-disabled.ts:16— `!!s.params.checkpoint && !s.modelLoading` appears character-identically in 3 files — studio/frontend/src/features/chat/hooks/use-rag-tool-disabled.ts, studio/frontend/src/features/chat/mcp-composer-button.tsx, studio/frontend/src/features/chat/shared-composer.tsx. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate studio/frontend/src/features/auth/api.ts:323— `!Number.isFinite(seconds) || seconds < 0` appears character-identically in 2 files — studio/frontend/src/features/auth/api.ts, studio/frontend/src/features/browser/video-file.tsx. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate studio/frontend/src/features/audio/audio-workspace-utils.ts:40— `!Number.isFinite(seconds) || seconds <= 0` appears character-identically in 4 files — studio/frontend/src/features/audio/audio-workspace-utils.ts, studio/frontend/src/features/chat/utils/format-transfer.ts, studio/frontend/src/features/hub/lib/format.ts, studio/frontend/src/features/profile/utils/stats-format.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate REDACTED:896— `!WORDPROCESSINGML_NAMESPACES.has(w) || doc.getElementsByTagName("parsererror").length` appears character-identically in 2 files — REDACTED, REDACTED. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate studio/frontend/src/lib/release-body-links.ts:236— `!afterParagraph && HTML_TAG_ONLY_LINE.test(line)` appears character-identically in 2 files — studio/frontend/src/lib/release-body-links.ts, studio/frontend/src/lib/release-notes-preview.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate studio/frontend/src/features/hub/download-manager/download-manager-state.ts:386— `!current || !ACTIVE_STATES.has(current.state)` appears character-identically in 2 files — studio/frontend/src/features/hub/download-manager/download-manager-state.ts, studio/frontend/src/features/hub/download-manager/hydration.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate studio/frontend/src/components/media-zoom.tsx:152— `!current || current.id !== event.pointerId` appears character-identically in 2 files — studio/frontend/src/components/media-zoom.tsx, studio/frontend/src/features/library/components/library-header.tsx. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate studio/frontend/src/features/audio/audio-options.ts:249— `!entry || typeof entry !== "object" || Array.isArray(entry)` appears character-identically in 2 files — studio/frontend/src/features/audio/audio-options.ts, studio/frontend/src/features/chat/gemini-thought-replay.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate studio/frontend/src/lib/dropped-folders.ts:153— `!input.files || input.files.length === 0` appears character-identically in 2 files — studio/frontend/src/lib/dropped-folders.ts, studio/frontend/src/lib/open-file-picker.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate studio/frontend/src/features/chat/utils/auto-continue-run-keeper.ts:88— `!listening && typeof window !== "undefined"` appears character-identically in 2 files — studio/frontend/src/features/chat/utils/auto-continue-run-keeper.ts, studio/frontend/src/features/chat/utils/fork-count-store.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate studio/frontend/src/features/chat/codex-reasoning.ts:64— `!metadata || typeof metadata !== "object"` appears character-identically in 2 files — studio/frontend/src/features/chat/codex-reasoning.ts, studio/frontend/src/features/chat/utils/research-message-sync.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate studio/frontend/src/features/chat/chat-settings-sheet.tsx:735— `!node || typeof ResizeObserver === "undefined"` appears character-identically in 2 files — studio/frontend/src/features/chat/chat-settings-sheet.tsx, studio/frontend/src/hooks/use-single-line.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate studio/frontend/src/features/chat/external-providers.ts:754— `!parsed || typeof parsed !== "object" || Array.isArray(parsed)` appears character-identically in 3 files — studio/frontend/src/features/chat/external-providers.ts, studio/frontend/src/features/model-picker/model-config/per-model-config.ts, unsloth_cli/pi_subagent.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate studio/frontend/src/features/chat/api/chat-adapter.ts:1087— `!provenance || typeof provenance !== "object" || Array.isArray(provenance)` appears character-identically in 2 files — studio/frontend/src/features/chat/api/chat-adapter.ts, studio/frontend/src/features/chat/codex-reasoning.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate studio/frontend/src/features/model-picker/model-config/per-model-config.ts:896— `!raw || typeof raw !== "object" || Array.isArray(raw)` appears character-identically in 2 files — studio/frontend/src/features/model-picker/model-config/per-model-config.ts, studio/frontend/src/lib/offload-fit-tiers.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate studio/frontend/src/features/hub/hooks/use-models-selection.ts:57— `!row.partial && row.source !== "hf_cache"` appears character-identically in 2 files — studio/frontend/src/features/hub/hooks/use-models-selection.ts, studio/frontend/src/features/hub/inventory/resource-resolver.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate studio/frontend/src/features/loaded-models/use-drag-position.ts:306— `!session || session.pointerId !== event.pointerId` appears character-identically in 2 files — studio/frontend/src/features/loaded-models/use-drag-position.ts, studio/frontend/src/hooks/use-floating-panel-layout.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate studio/frontend/src/features/settings/components/chat-memory-section.tsx:108— `!settings || saving || settings.lockedByEnvironment` appears character-identically in 3 files — studio/frontend/src/features/settings/components/chat-memory-section.tsx, studio/frontend/src/features/settings/components/managed-provider-urls-section.tsx, studio/frontend/src/features/settings/tabs/chat-tab.tsx. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate studio/frontend/src/components/assistant-ui/attachment-browser-open.tsx:48— `!source.hasOriginal && text !== undefined` appears character-identically in 2 files — studio/frontend/src/components/assistant-ui/attachment-browser-open.tsx, studio/frontend/src/components/assistant-ui/attachment-document-dialog.tsx. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate studio/frontend/src/features/audio/pages/convert-page.tsx:225— `!sourceUsable || transcriber.transcribing || disabled` appears character-identically in 2 files — studio/frontend/src/features/audio/pages/convert-page.tsx, studio/frontend/src/features/audio/pages/edit-page.tsx. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate studio/frontend/src/features/settings/components/lan-access-section.tsx:276— `!stopped && !pollSuppressed.current && mutationEpoch.current === epoch` appears character-identically in 2 files — studio/frontend/src/features/settings/components/lan-access-section.tsx, studio/frontend/src/features/settings/components/remote-access-section.tsx. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate studio/frontend/src/features/chat/lib/llama-extra-args-normalize.ts:31— `!trimmed.startsWith("-") || trimmed === "-" || trimmed === "--"` appears character-identically in 2 files — studio/frontend/src/features/chat/lib/llama-extra-args-normalize.ts, studio/frontend/src/features/model-picker/model-config/llama-extra-args.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate studio/frontend/src/features/audio/transcript-draft.ts:25— `!value || typeof value !== "object" || Array.isArray(value)` appears character-identically in 7 files — studio/frontend/src/features/audio/transcript-draft.ts, studio/frontend/src/features/chat/api/chat-adapter.ts, studio/frontend/src/features/chat/custom-reasoning.ts, studio/frontend/src/features/chat/gemini-thought-replay.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate studio/frontend/src/features/studio/live-training-view.tsx:135— `(config.projectName || "").trim() || null` appears character-identically in 2 files — studio/frontend/src/features/studio/live-training-view.tsx, studio/frontend/src/features/training/api/mappers.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate studio/frontend/src/features/chat/hooks/use-sidebar-drag.ts:402— `(overflow === "auto" || overflow === "scroll") && node.scrollHeight > node.clientHeight` appears character-identically in 2 files — studio/frontend/src/features/chat/hooks/use-sidebar-drag.ts, studio/frontend/src/features/model-picker/components/model-selector/use-pinned-row-drag.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
README/code drift README.md:73— README.md names `unsloth/unsloth`, but no file or folder `unsloth/unsloth` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
README/code drift README.md:200— README.md names `unsloth/unsloth-rocm`, but no file or folder `unsloth/unsloth-rocm` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
README/code drift unsloth/kernels/moe/README.md:42— unsloth/kernels/moe/README.md names `grouped_gemm/tests/test_grouped_gemm.py`, but no file or folder `grouped_gemm/tests/test_grouped_gemm.py` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
README/code drift unsloth/kernels/moe/README.md:44— unsloth/kernels/moe/README.md names `grouped_gemm/tests/test_qwen3_moe.py`, but no file or folder `grouped_gemm/tests/test_qwen3_moe.py` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
README/code drift unsloth/kernels/moe/README.md:47— unsloth/kernels/moe/README.md names `grouped_gemm/benchmark/benchmark_fused_moe.py`, but no file or folder `grouped_gemm/benchmark/benchmark_fused_moe.py` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
README/code drift tests/kaggle/t4_smoke/references/README.md:247— tests/kaggle/t4_smoke/references/README.md names `unsloth/Qwen2.5-0.5B-Instruct-unsloth-bnb-4bit`, but no file or folder `unsloth/Qwen2.5-0.5B-Instruct-unsloth-bnb-4bit` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
Fat interface: ChatPreferencesState (19 required operations) studio/frontend/src/features/chat/stores/chat-preferences-store.ts:36— `ChatPreferencesState` declares 19 required operations: `setPlainTextComposer`, `setShowContextWindowUsage`, `setSendShortcut`, `setFollowUpBehavior`, `setConfirmDeleteChats`, `setAlwaysDeleteChatFiles`, `setShowModelDisclaimer`, `setShowResponseModel`, `setShowReplyTimes`, `setShowGenerationDetails`, `setShowInlineEditResponse`, `setThinkingVisibility`, `setToolVisibility`, `setFoldToolActivityIntoThinking`, `setPastedTextMinChars`, `setAutoScrollWhileGenerating`, `setShowScrollToBottomButton`, `setNotifyWhenReplyFinishes`, `setFilesPanelCollapsed`. Counted over its REQUIRED operations — a method signature or a function-typed property with no `?`, once per signature; optional members and data properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: ChatsActions (28 required operations) studio/frontend/src/features/library/chats/chats-items.tsx:121— `ChatsActions` declares 28 required operations: `toggleSelected`, `open`, `rename`, `regenerateTitle`, `togglePin`, `setFavorite`, `toggleFavoriteProject`, `toggleFavoriteSection`, `fork`, `move`, `moveProject`, `viewSection`, `newChatInSection`, `newProjectInSection`, `renameSection`, `removeSection`, `exportSection`, `archive`, `unarchive`, `exportChats`, `remove`, `viewProject`, `filterProject`, `newChatIn`, `editProject`, `togglePinProject`, `exportProject`, `deleteProject`. Counted over its REQUIRED operations — a method signature or a function-typed property with no `?`, once per signature; optional members and data properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: VoiceSettingsState (26 required operations) REDACTED:105— `VoiceSettingsState` declares 26 required operations: `setMicDeviceId`, `setDictationEngine`, `setSttModel`, `setSttGgufVariant`, `setSttDevice`, `setSttProviderId`, `setSttProviderModel`, `setDictationLanguage`, `addDictionaryEntry`, `updateDictionaryEntry`, `commitDictionaryEntry`, `removeDictionaryEntry`, `addRecentDictation`, `removeRecentDictation`, `clearRecentDictations`, `setTtsEnabled`, `setAutoReadAloud`, `setTtsEngine`, `setTtsProviderId`, `setTtsProviderModel`, `setTtsProviderVoice`, `setTtsStudioVoiceId`, `setTtsVoiceURI`, `setTtsRate`, `setTtsPitch`, `setTtsVolume`. Counted over its REQUIRED operations — a method signature or a function-typed property with no `?`, once per signature; optional members and data properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: TrainingConfigActions (80 required operations) studio/frontend/src/features/training/types/config.ts:212— `TrainingConfigActions` declares 80 required operations: `setSelectedModel`, `selectTrainingModel`, `setSelectedModelCacheReference`, `clearSelectedModelCacheReference`, `clearSelectedDatasetCacheReference`, `setSelectedDatasetCacheReference`, `setModelSubfolder`, `setTrainAsDecision`, `setProjectName`, `ensureModelDefaultsLoaded`, `ensureDatasetChecked`, `setTrainingMethod`, `selectHfDataset`, `selectLocalDataset`, `selectS3Source`, `restoreBrowseDatasetSource`, `setDatasetFormat`, `setDataset`, `setDatasetSubset`, `setDatasetSplit`, `setDatasetEvalSplit`, `setDatasetStreaming`, `setManualDatasetOptionsValid`, `markManualDatasetOptionsEdited`, `setDatasetManualMapping`, `setDatasetAdvisorFields`, `setDatasetSliceStart`, `setDatasetSliceEnd`, `setUploadedEvalFile`, `setEpochs`, `setContextLength`, `setVisionImageSize`, `setLearningRate`, `setEmbeddingLearningRate`, `setOptimizerType`, `setLrSchedulerType`, `setLoraRank`, `setLoraAlpha`, `setLoraDropout`, `setLoraVariant`, and 40 more. Counted over its REQUIRED operations — a method signature or a function-typed property with no `?`, once per signature; optional members and data properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: TrainingRuntimeActions (17 required operations) studio/frontend/src/features/training/types/runtime.ts:131— `TrainingRuntimeActions` declares 17 required operations: `setStopRequested`, `setHydrating`, `setHasHydrated`, `tryBeginStarting`, `setStarting`, `setStartError`, `setStartResources`, `setSseConnected`, `setLastEventId`, `resetRuntime`, `applyStatus`, `applyMetrics`, `applyProgress`, `setStartPending`, `setRuntimeError`, `setSelectedHistoryRunId`, `setCurrentRunViewActive`. Counted over its REQUIRED operations — a method signature or a function-typed property with no `?`, once per signature; optional members and data properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
X23 · Unguarded diagnostic materialisation· Diagnostic log message is built whether or not it is wanted · ×5
Diagnostic log message is built whether or not it is wanted studio/backend/core/_msvc_env.py:119— `debug` at line 119 is called with an argument built by `list(inc_dirs)` (line 119), whose cost grows with the collection it walks. Python evaluates a call's arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached — and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no `isEnabledFor(logging.DEBUG)` test, no debug flag, no `lambda` the logger calls only when the level is on.
Diagnostic log message is built whether or not it is wanted studio/backend/core/inference/llama_cpp.py:15085— `debug` at line 15085 is called with an argument built by `sorted(visible - set(vram))` (line 15087), whose cost grows with the collection it walks. Python evaluates a call's arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached — and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no `isEnabledFor(logging.DEBUG)` test, no debug flag, no `lambda` the logger calls only when the level is on.
Diagnostic log message is built whether or not it is wanted studio/backend/core/inference/llama_cpp.py:15141— `debug` at line 15141 is called with an argument built by `sorted(unified_ids)` (line 15143), whose cost grows with the collection it walks. Python evaluates a call's arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached — and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no `isEnabledFor(logging.DEBUG)` test, no debug flag, no `lambda` the logger calls only when the level is on.
Diagnostic log message is built whether or not it is wanted studio/backend/core/inference/inference.py:3474— `debug` at line 3474 is called with an argument built by `["…" m["…"] "…" m["…"][: 30] "…" for m in chat_messages]` (line 3475), whose cost grows with the collection it walks. Python evaluates a call's arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached — and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no `isEnabledFor(logging.DEBUG)` test, no debug flag, no `lambda` the logger calls only when the level is on.
Diagnostic log message is built whether or not it is wanted studio/backend/utils/hardware/hardware.py:6424— `debug` at line 6424 is called with an argument built by `sorted(wanted)` (line 6424), whose cost grows with the collection it walks. Python evaluates a call's arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached — and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no `isEnabledFor(logging.DEBUG)` test, no debug flag, no `lambda` the logger calls only when the level is on.
Off-boarding risk: anonymized user #1 — If anonymized user #1 becomes unavailable, 195 significant file(s) lose their only recent owner: REDACTED, studio/backend/core/inference/diffusion_cuda_graph.py, scripts/scan_packages.py, studio/backend/core/inference/video_families.py, studio/backend/core/inference/diffusion_speed.py, scripts/scan_npm_packages.py, scripts/lint_workflow_triggers.py, studio/backend/core/inference/video_ltx2.py (+187 more). Pair on, review, or document these before any departure.
Off-boarding risk: anonymized user #2 — If anonymized user #2 becomes unavailable, 15 significant file(s) lose their only recent owner: studio/frontend/src/features/recipe-studio/utils/graph/derive-display-graph.ts, studio/frontend/src/features/recipe-studio/stores/helpers/model-infra-layout.ts, studio/frontend/src/features/recipe-studio/utils/handles.ts, studio/frontend/src/features/recipe-studio/utils/graph/runtime-visual-state.ts, studio/src-tauri/src/macos_tray.rs, studio/frontend/src/components/floating-monitor-layout.ts, studio/frontend/src/features/recipe-studio/components/executions/executions-view-helpers.ts, studio/frontend/src/features/recipe-studio/blocks/render-dialog.tsx (+7 more). Pair on, review, or document these before any departure.
Off-boarding risk: anonymized user #3 — If anonymized user #3 becomes unavailable, 6 significant file(s) lose their only recent owner: studio/frontend/smoke-nonmodal-menus-main.tsx, studio/backend/core/inference/llama_tool_schema.py, studio/frontend/smoke-link-definition-probe-main.tsx, studio/frontend/src/features/chat/tool-output-result.ts, studio/frontend/src/components/resource-picker/use-picker-state.ts, studio/frontend/src/components/ui/non-modal-dropdown-menu.tsx. Pair on, review, or document these before any departure.
Off-boarding risk: anonymized user #4 — If anonymized user #4 becomes unavailable, 3 significant file(s) lose their only recent owner: studio/frontend/src/features/chat/utils/reasoning-duration.ts, studio/frontend/src/lib/overlay-scrollbar.ts, studio/frontend/src/features/video/thumbnail-request-queue.ts. Pair on, review, or document these before any departure.
Silent fallback default on Err studio/src-tauri/src/desktop_backend_owner.rs:492— `recorded_hf_endpoints` turns every `Err` into `Vec::new()` — a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with `?`. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing.
Silent fallback default on Err studio/src-tauri/src/native_clipboard.rs:284— `local_clipboard_paths_from_bytes` turns every `Err` into `Vec::new()` — a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with `?`. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing.
Silent fallback default on Err studio/src-tauri/src/preflight/backend.rs:333— `probe_backend_ports` turns every `Err` into `Vec::new()` — a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with `?`. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing.
Silent fallback default on Err studio/src-tauri/src/process_identity.rs:158— `base_interpreters_of` turns every `Err` into `Vec::new()` — a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with `?`. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing.
AC7 · A11y enforcement· Accessibility enforcement below the top rung · ×1
Accessibility enforcement below the top rung — An a11y linter is configured (Documented) but there's no automated a11y test or CI gate. Add your test runner's axe binding (jest-axe, vitest-axe, cypress-axe or @axe-core/playwright) to verify at runtime, then gate it in CI. What was searched, so you can tell an absence from a miss: the 705 markup file(s) this pass actually assessed, the linter configuration checked in beside them, and this repository's test and CI files — matched by name against the accessibility checkers this dimension carries. An audit run outside the repository, a hosted scanner, or a check whose name is not one of those, is not seen here.
D16 · Bus Factor· Further sole-owners (lower concentration) · ×1
Further sole-owners (lower concentration) — 8 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold — folded into the bus-factor score and metrics (231 single-owned of 2437 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated and example/demo trees and test files identified by path convention, largest first; 2437 of the 3383 production source files in this repository met that bar). They are anonymized user #5 (2 file(s)), anonymized user #6 (2 file(s)), anonymized user #7 (2 file(s)), anonymized user #8 (2 file(s)), anonymized user #9 (1 file(s)), anonymized user #10 (1 file(s)) (+2 more) — spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: studio/frontend/src/features/hub/lib/selection-resolution.ts, studio/frontend/src/features/hub/hooks/use-models-selection.ts, studio/src-tauri/src/install_watchdog.rs, studio/frontend/src/features/chat/lib/mlx-runtime-state.ts, studio/frontend/src/features/studio/preparation-progress.ts, studio/frontend/src/features/chat/utils/youtube-url.ts, studio/frontend/src/features/audio/catalog.ts, studio/frontend/src/components/segmented-control.tsx (+4 more).
No ADRs found — No ADRs found. No recognised ADR directory (`docs/adr/`, `docs/decisions/`, `adr/`, `docs/rfcs/`, an `ADR0001/` folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (`docs/adr/use-postgres.md`, `docs/adr/2024/0001-x.md`); or a file anywhere whose name is ADR-shaped (`0001-use-postgres.md`, `adr-012-caching.md`); or, when neither turned anything up, a document carrying the decision-record signature (an "Architecture Decision Record" heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these — unnumbered files outside any recognised directory, without those headings — is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in `docs/adr/`.
D28 · Secrets (history)· Rotate the exposed credentials · ×1
No ADRs — No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
No src/ separation — Production code isn't grouped under a src/ folder — it's spread across several top-level directories, so there's no one place that says 'this is the product'.
No changelog — No CHANGELOG/HISTORY/RELEASES file — what shipped when isn't easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)
R7 · Dead Code· Unused export 'ComposerAddAttachment' · ×1
Unused export 'ComposerAddAttachment' studio/frontend/src/components/assistant-ui/attachment.tsx:825— Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code· Unused export 'THREAD_WIDTH_STEPS' · ×1
Unused export 'THREAD_WIDTH_STEPS' studio/frontend/src/components/assistant-ui/thread-width-steps.ts:4— Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code· Unused export 'AnimatedThemeToggler' · ×1
Unused export 'AnimatedThemeToggler' studio/frontend/src/components/ui/animated-theme-toggler.tsx:95— Nothing imports this binding — it is safe to review for removal.
Unused export 'env' studio/frontend/src/config/env.ts:20— Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code· Unused export 'RuntimeLoader' · ×1
Unused export 'RuntimeLoader' studio/frontend/src/features/chat/artifacts/react-preview/runtime-loader.ts:69— Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code· Unused export 'fetchDecisionExportInfo' · ×1
Unused export 'fetchDecisionExportInfo' studio/frontend/src/features/export/api/export-api.ts:149— Nothing imports this binding — it is safe to review for removal.
Unused export 'exportBase' studio/frontend/src/features/export/api/export-api.ts:268— Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code· Unused export 'DiscoverModelRow' · ×1
Unused export 'DiscoverModelRow' studio/frontend/src/features/hub/catalog/models-catalog-rows.tsx:447— Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code· Unused export 'CATALOG_ROW_HEIGHT_PX' · ×1
Unused export 'CATALOG_ROW_HEIGHT_PX' studio/frontend/src/features/hub/catalog/models-catalog-rows.tsx:978— Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code· Unused export 'completedCells' · ×1
Unused export 'completedCells' studio/frontend/src/features/images/compare/compare-run.ts:100— Nothing imports this binding — it is safe to review for removal.
Unused export 'CHAT_FLAGS' studio/frontend/src/features/library/chats/model.ts:43— Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code· Unused export 'truncateCellValue' · ×1
Unused export 'truncateCellValue' studio/frontend/src/features/recipe-studio/components/executions/executions-view-helpers.ts:55— Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code· Unused export 'hasExpandableTextCell' · ×1
Unused export 'hasExpandableTextCell' studio/frontend/src/features/recipe-studio/components/executions/executions-view-helpers.ts:62— Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code· Unused export 'BaseHandleProps' · ×1
Unused export 'BaseHandleProps' studio/frontend/src/features/recipe-studio/components/rf-ui/base-handle.tsx:9— Nothing imports this binding — it is safe to review for removal.
R8 · Dependency Hygiene· Type-only dependency '@streamdown/code' in production deps · ×1
Type-only dependency '@streamdown/code' in production deps studio/frontend/src/components/assistant-ui/code-fence-defer.tsx:6— Every import is type-only — move it to devDependencies.
X2 · Cancellation propagation· Not all async functions that make a request accept an AbortSignal · ×1
Not all async functions that make a request accept an AbortSignal — Only 30/43 async functions that make a cancellable request (fetch, axios, ky, ofetch) accept an AbortSignal or pass one on, so a request keeps running after whatever wanted it has given up — a page navigated away from, an unmounted component, a timed-out job. Take a `signal` (or an options object that carries one) and hand it to the request; where nothing could ever cancel the call, omitting it is a deliberate choice — judge against how the function is used.
Null assertions (`!`) reduce the strict null checking score — ~0.3 `!` null assertions per 1k TypeScript source lines — 167 assertion(s) across the 597311 source line(s) of the 2182 TypeScript file(s) read, which is the only code the operator asserts anything in (a `!` in a `.js` file is not this operator and was not counted, and one in a file whose null checking is off silences nothing). Densest: REDACTED (31), studio/frontend/src/lib/video-utils.ts (14), REDACTED (12). Each one tells the compiler to trust the author about null, suppressing the very diagnostic `strictNullChecks` exists to produce.
Subsumed condition operand studio/backend/tests/test_video_ltx25.py:1597— `k.startswith("transformer_blocks.0.")` can never decide this `||` — every value satisfying `k.startswith("transformer_blocks.0.")` also satisfies `k.startswith("transformer_blocks.")`, so the `||` chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident.
Skipped (documented): (unnamed test) studio/frontend/tests/recommended-quant-for-device.test.ts:48— Skipped with a documented reason — a deferral, not lazy debt: declared with no body — a pending test the runner lists but never runs
Skipped (documented): (unnamed test) studio/frontend/tests/recommended-quant-for-device.test.ts:51— Skipped with a documented reason — a deferral, not lazy debt: declared with no body — a pending test the runner lists but never runs
Skipped (documented): (unnamed test) studio/frontend/tests/recommended-quant-for-device.test.ts:80— Skipped with a documented reason — a deferral, not lazy debt: declared with no body — a pending test the runner lists but never runs
Skipped (documented): (unnamed test) studio/frontend/tests/recommended-quant-for-device.test.ts:81— Skipped with a documented reason — a deferral, not lazy debt: declared with no body — a pending test the runner lists but never runs
Skipped (documented): (unnamed test) studio/frontend/tests/recommended-quant-for-device.test.ts:94— Skipped with a documented reason — a deferral, not lazy debt: declared with no body — a pending test the runner lists but never runs
Skipped (documented): (unnamed test) studio/frontend/tests/recommended-quant-for-device.test.ts:97— Skipped with a documented reason — a deferral, not lazy debt: declared with no body — a pending test the runner lists but never runs
Skipped (documented): (unnamed test) studio/frontend/tests/recommended-quant-for-device.test.ts:100— Skipped with a documented reason — a deferral, not lazy debt: declared with no body — a pending test the runner lists but never runs
Skipped (documented): (unnamed test) studio/frontend/tests/recommended-quant-for-device.test.ts:173— Skipped with a documented reason — a deferral, not lazy debt: declared with no body — a pending test the runner lists but never runs
Skipped (documented): (unnamed test) studio/frontend/tests/manual-compaction.test.ts:93— Skipped with a documented reason — a deferral, not lazy debt: declared with no body — a pending test the runner lists but never runs
Skipped (documented): (unnamed test) studio/frontend/tests/manual-compaction.test.ts:208— Skipped with a documented reason — a deferral, not lazy debt: declared with no body — a pending test the runner lists but never runs
Skipped (documented): (unnamed test) studio/frontend/tests/manual-compaction.test.ts:209— Skipped with a documented reason — a deferral, not lazy debt: declared with no body — a pending test the runner lists but never runs
Skipped (documented): the wording matched here is the backend's studio/frontend/tests/load-refusal-header.test.ts:169— Skipped with a documented reason — a deferral, not lazy debt: skipped at run time by a this.skip()/t.skip() call
Skipped (documented): a healthy read resets the stall window studio/frontend/tests/background-load-notice.test.ts:326— Skipped with a documented reason — a deferral, not lazy debt: skipped at run time by a this.skip()/t.skip() call
Outdated: open — `open` is locked at 5.4.4 but 5.4.5 is the current stable release on crates.io, and it already satisfies the `"5"` requirement declared in studio/src-tauri/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p open` and commit the updated REDACTED.
Outdated: tauri — `tauri` is locked at 2.12.4 but 2.12.5 is the current stable release on crates.io, and it already satisfies the `"~2.12.0"` requirement declared in studio/src-tauri/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p tauri` and commit the updated REDACTED.
Outdated: tauri-build — `tauri-build` is locked at 2.7.3 but 2.7.4 is the current stable release on crates.io, and it already satisfies the `"~2.7.0"` requirement declared in studio/src-tauri/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p tauri-build` and commit the updated REDACTED.
Outdated: tokio — `tokio` is locked at 1.53.3 but 1.54.1 is the current stable release on crates.io, and it already satisfies the `"1"` requirement declared in studio/src-tauri/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p tokio` and commit the updated REDACTED.
Appendix B — Reproduction & audit trail
Every external tool invocation behind a deep-scan dimension — the tool, its captured version, the exact command, how many findings it yielded, and a link to the retained raw output. To reproduce any finding: check out the same commit and run the command shown (repo-relative — never an absolute scratch path). The complete raw scanner output is retained verbatim under artifacts/raw/ (indexed in artifacts/raw/index.json); per-invocation exit codes and wall-clock durations are in sidecar.json — kept out of this table so the rendered report stays byte-identical across runs of the same commit.
semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that. semgrep could not parse 68 file(s) — `studio/backend/assets/docs_ui/redoc.standalone.js`, `studio/frontend/src/components/assistant-ui/markdown-table.tsx`, `REDACTED`, `studio/frontend/src/components/assistant-ui/reasoning-highlight.worker.ts`, `studio/frontend/src/components/assistant-ui/thread.tsx`, … (+63 more) — so the PII/GDPR sweep did not cover the unparsed regions of them; rows reported elsewhere in those files are real.
disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
Run 01a17187-c440-772c-8070-3ad799fb3a87 · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.
Issues: 234 · Warnings: 637 · Recommendations: 216 · Info: 17 — Appendix A · all findings · full markdown report.
Generated by Watchdog — deterministic code-health analysis. 25-10-2026 @ 05:28 UTC.
Downloadable artifacts
Machine-readable and reproducible from this commit + frozen rubric — drop them straight into a contract appendix, a CRA dossier, or a downstream SCA / VEX tool.