Skip to content

css: io is None, but every one of the 117 crucible url() fetches is a non-@import resource load that only args sees (design question) #2752

Closed

Description

@squid-protocol

Found by the #2669 pass over every non-green cell in the keyword-rosetta bias report (2026-09-05, engine 0e521e8). css/io is n/a: css.py L109 wires "io": None under a "Must remain None" comment. The comment's rationale does not survive comparison with html's io rule, the corpus ledger already says so, and the replacement rationale it offers covers one of the two constructs.

The two rationales, and what each covers

In-code (css.py L100–108): url()/@import "fetches a visual asset during browser paint; it does NOT block a computational thread". But html's io rule counts src=/href=/<img>/<iframe> — the same non-blocking, paint-time fetches — and the corpus ledger entry css-import-url-io-triple-overlap records that "blocking-vs-non-blocking is not the actual deciding factor".

Ledger (css-import-url-io-triple-overlap): @import url("a.css") already produces three hits (args counts url(, import counts @import, _dependency_capture takes the target), so an io rule on the same line would be a fourth. True — for @import. It says nothing about the resource fetches that are not imports, which on real stylesheets is all of them — the crucible writes @import in its string form, which args does not see either. language-crucible css (38 .css files, 77bc85e):

construct occurrences (lines) counted today as
url( total 117 (45) args only
background*: url( 32 (20) args only
@font-face / src: url( 2 / 3 args only
@import 9 — all the string form @import "…", none with url() import + DAG edge

Every one of the 117 resource fetches in real stylesheets is invisible to every signal except args — which sees them only because CSS functional notation happens to match its call-shaped alternation, not as I/O. The html equivalent, <img src="probe.png">, is an io hit.

Candidate shape

# Property-anchored so @import (import + DAG) is not re-counted: a declaration
# whose value fetches a resource. html's io counts the same fetch as src=/href=.
"io": re.compile(
    r"\b(?:background(?:-image)?|src|cursor|mask(?:-image)?|list-style(?:-image)?"
    r"|border-image(?:-source)?|content)\s*:[^;{}]*\burl\s*\(",
    re.I,
),

@font-face is reached through its src: line. The args overlap on url( remains and is a question of its own: args measures a callable's parameter surface everywhere else, and CSS functional notation is not that — the ledger's args-no-parameter-surface-morphology entry already treats css's args hits as a byproduct of other plants.

Corpus pairing

keyword-rosetta's css shell plants no resource fetch at all (io 0 in all four manifests; the probe every other language uses for io has no css body). screen_plant.py: @keyframes probe-io { from { background: url("probe.png"); } } fires args +1 per plant beside the at-rule's own func_start; three plants take io 0 → 3 (the median) and args 3 → 6, a column that is ledgered low for css already. Nothing else moves. The ledger entry re-scopes from "io stays None correctly" to the @import line only.

If the maintainer call is to keep None, the in-code comment should carry the ledger's overlap rationale rather than the thread-blocking one, which the ledger flagged as a doc fix on 2026-09-02 and which is still the text future readers inherit.

Part of #2669 (rosetta[css] was #2570).


Filed together on 2026-09-05: jcl api #2748 · jcl cleanup #2749 · jcl globals #2750 · jcl high_risk_execution #2751 · css io #2752 · yaml args #2753. Corpus-side pairings: squid-protocol/keyword-rosetta#59.

Activity

  1. added
    enhancement
    question
    metrics
    core-engine
    on Sep 5, 2026
  2. changed the title [-]css: io is None, but 37 of 45 crucible url() fetches are not @import and only args sees them (design question)[/-] [+]css: io is None, but every one of the 117 crucible url() fetches is a non-@import resource load that only args sees (design question)[/+] on Sep 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    core-engineenhancementmetricsquestion

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions