DSH / Atlas
2026-09-10implementedbug-fixarchived 2026-09-30

Built-bundle exemption for a failing stylesheet

构建产物豁免以失败的样式表为准

The [Node import sweep](../../../../packages/experimental/webworker-runtime/tests/compile/transform-corpus-check.ts) exempts the Dockkit bundle because Node cannot load its stylesheets, and admitted one exact stylesheet path as the evidence: `packages/client/ui-dockkit/lib/components/dockkit.module.css`. The built bundle imports the workspace package `@deepseek-ai/dsh-client-ui-primitives` before its own stylesheet,

English

Problem

The Node import sweep exempts the Dockkit bundle because Node cannot load its stylesheets, and admitted one exact stylesheet path as the evidence: packages/client/ui-dockkit/lib/components/dockkit.module.css. The built bundle imports the workspace package @deepseek-ai/dsh-client-ui-primitives before its own stylesheet, and the tsx launcher resolves that specifier through tsconfig paths into the dependency's src tree, so the sweep reports ERR_UNKNOWN_FILE_EXTENSION for packages/client/ui-primitives/src/StateDot.module.css. The pinned path cannot match on a tree with client build output, and the Windows complete-gate inventory reported the exempt bundle as an unexpected baseline failure.

Decision

The Dockkit exemption admits Node's unknown-.css-extension refusal for any stylesheet. Another extension, another error code, and an unrelated error message stay findings, as does an exempt bundle that imports cleanly.

Alternatives considered

Admit the dependency's source stylesheet alongside the pinned one. That file is what the sweep reports, but the bundle's import order and the launcher's path mapping select it. Pinning it would certify those two details instead of the .css exemption.

Classify every CSS exemption by the same rule. The Dockkit pin is the recorded evidence this change corrects; the other two stylesheet exemptions were never classified, and tightening them would change what they admit beyond the reported defect.

Drop the classification and admit any failure. A bundle that stopped importing for an unrelated reason would then hide inside the exemption total.

Consequences

The sweep reports the Dockkit bundle when it stops importing for any reason other than Node's unknown-.css-extension refusal, and the entry no longer asserts which stylesheet fails. Scoped resolve/load hooks exercise an admitted Dockkit stylesheet, the dependency's source stylesheet, another extension, an arbitrary message, another error code, and a stale exemption without modifying shared build artifacts.

中文

问题

Node import sweep因 Node 无法加载 Dockkit bundle 的样式表而豁免该 bundle,并曾以一个精确的样式表路径作为接受证据:packages/client/ui-dockkit/lib/components/dockkit.module.css。该已构建 bundle 在导入自身样式表之前先导入 workspace 包 @deepseek-ai/dsh-client-ui-primitives,tsx 启动器又通过 tsconfig paths 把这个说明符解析进依赖的 src 树,因此 sweep 报告的是 packages/client/ui-primitives/src/StateDot.module.css 的 ERR_UNKNOWN_FILE_EXTENSION。固定路径在带有 client 构建输出的树上无法匹配,Windows 完整门禁的清单于是把这个豁免 bundle 报告为意外的基线失败。

决策

Dockkit 豁免接受 Node 对任意样式表因未知 .css 扩展名而拒绝加载。其他扩展名、其他错误码和无关的错误消息仍计为发现,能顺利完成导入的豁免 bundle 同样计为发现。

考虑过的替代方案

在固定路径之外同时接受依赖的源样式表。 sweep 报告的正是该文件,但选中它的是 bundle 的导入顺序和启动器的路径映射。固定该路径认定的将是这两处细节,而非 .css 豁免。

用同一规则分类每个 CSS 豁免。 Dockkit 固定路径是本次修改所纠正的已记录证据;另外两个样式表豁免从未被分类,收窄它们会在所报告缺陷之外改变其接受的内容。

放弃分类,接受任何失败。 届时因无关原因停止导入的 bundle 会隐藏在豁免总数之内。

后果

只要 Dockkit bundle 因 Node 未知 .css 扩展名拒绝之外的任何原因停止导入,sweep 就会报告它,该条目也不再断言失败的是哪个样式表。限定范围的 resolve/load hook覆盖被接受的 Dockkit 样式表、依赖的源样式表、其他扩展名、任意消息、其他错误码和陈旧豁免,不修改共享构建产物。