Skip to content

lint.yml and spec-liveness-check.yml still download pnpm through Corepack per job — 7 of the 24 jobs in a queue build keep the ejection exposure #11300 removes from ci.yml #11369

Description

@os-steve

Filed unassigned by the dev seat working #11300. ⛔ Not fixed there: #11300's declared file surface was .github/workflows/ci.yml + .github/actions/**, and these sites live outside it.

Blocked-by: #11300 — the composite action this card would adopt (.github/actions/setup-pnpm) is introduced by that PR.

What is left exposed

A merge-queue build is 3 workflow runs on one queue sha, measured at 24 jobs total:

workflow jobs per build Corepack sites covered by #11300
ci.yml 17 7 yes
lint.yml 6 5 no
spec-liveness-check.yml 1 1 no

So after #11300 lands, 7 of 24 jobs in every queue build still fetch pnpm-10.31.0.tgz from registry.npmjs.org before doing any work, each an independent chance to eject the PR and force every PR behind it to rebuild.

Sites, measured at origin/main b863f01:

lint.yml:60  :2363  :2922  :3099  :3294      corepack enable   (5)
lint.yml:2365 :2924 :3101 :3295               Verify pnpm version (4 — :60 is unpaired)
spec-liveness-check.yml:49                    corepack enable   (1, unpaired)

Same asymmetry as ci.yml had: the unpaired sites still download, they just do it inside a differently-named step, so a signature keyed on Verify pnpm version under-reports them.

Evidence this is the same defect

Measured over merge_group runs 2026-08-21T00:45Z → 2026-08-23T09:02Z: 5 jobs across 4 runs died materialising pnpm, out of 230 failed jobs. One of the four failing runs was a Lint & Type Check ejection, i.e. this is not hypothetical for the sibling workflows.

Two terminal symptoms observed, both inside Corepack's fetch:

AssertionError [ERR_ASSERTION]: assert(!this.paused)
    at Parser.finish (node:internal/deps/undici/undici:6165:9)
Error: Client network socket disconnected before secure TLS connection was
established { code: 'ECONNRESET', host: 'registry.npmjs.org' }

Suggested shape

Adopt .github/actions/setup-pnpm at all 6 remaining sites, exactly as ci.yml does:

      - name: Setup pnpm
        uses: ./.github/actions/setup-pnpm

⚠️ Keep each caller's own actions/setup-node step with its literal node-version pin. scripts/check-node-version.mjs scans .github/workflows/*.yml only and reports how many setup-node steps it audited (currently OK (32 setup-node step(s) across 26 workflow(s))). Moving those steps into the composite would drop them from its census while it still printed OK — a gate silently auditing less than it claims. That constraint is why #11300 left setup-node in place, and it applies identically here.

Dedup

Searched before filing: no open card covers the sibling workflows. #11300 is the only live card on this defect and is scoped to ci.yml by its own claim comment.

Activity

  1. os-steve commented on Aug 23, 2026

    @os-steve
    CollaboratorAuthor

    ⚠️ Population re-measured after #11300 landed — this card names 2 files; the tree has 10

    devx@objectstack seat (session_015ahemw8RcTgqtxrj15PEZx), measured at origin/main a872ce9 immediately after PR #11370 merged (2026-08-23T15:06:05Z). Surfaced by the positive control on the landing check, not by looking for it.

    The measurement

    $ git grep -l 'corepack enable' origin/main -- .github/workflows/
      coverage-nightly.yml
      cut-rc.yml
      lint.yml                  <- named by this card
      pr-automation.yml
      publish-smoke.yml
      release.yml
      rerun-safety-nightly.yml
      scaffold-e2e.yml
      spec-liveness-check.yml   <- named by this card
      validate-deps.yml
    

    Controls, so neither the zero nor the ten is an artefact: corepack enable in ci.yml is now 0, while Setup pnpm in ci.yml is 14 — the grep is live, and #11300's removal is complete in the file it owned.

    This is a scope observation, not an error in the card

    The card is accurate within its stated frame: it counts the workflows that make up a merge-queue build (ci.yml + lint.yml + spec-liveness-check.yml = 24 jobs), and 7-of-24 is right for queue-ejection exposure. Eight further workflows carry the identical per-job Corepack download but never run in a queue build, so they were correctly outside that frame.

    ⚠️ But two of the eight change the risk class rather than just the count:

    • release.yml and cut-rc.yml — a Corepack crash here does not eject a PR that can be re-queued; it fails a release. Versions are published by a human-gated act, so the blast radius is a broken release run, not a rebuilt queue.
    • publish-smoke.yml — the pre-publish smoke gate. A false red here reads as "the candidate is bad" when the tarball is fine, which is the same misattribution this whole defect class produces, applied to a release decision.

    The remaining five (coverage-nightly, pr-automation, rerun-safety-nightly, scaffold-e2e, validate-deps) are lower stakes — a nightly or an advisory job going red on a network flake.

    Suggested effect on this card

    The adoption is mechanical and identical everywhere (uses: ./.github/actions/setup-pnpm, keeping each caller's own actions/setup-node with its literal pin — the census constraint this card already states correctly). So widening from 2 files to 10 is nearly free in effort while removing the release-path exposure, which is the part nobody is currently tracking.

    ⛔ Not re-scoped, not graded, not assigned by this seat — the card is unlabelled and belongs to triage, and changing its population is a scoping call. Recording the measurement so the decision is made on the real number.

    ⚠️ Note for whoever grades it: this card's Blocked-by: #11300 is now discharged — #11300 is closed and the composite action .github/actions/setup-pnpm/action.yml is on main (verified by content, not by sha: the queue landed a872ce9 and the PR branch was deleted, so an ancestry test would have answered "not landed" for a card that plainly did).


    Generated by Claude Code

  2. added
    pm:queue
    domain:devx
    on Aug 24, 2026
  3. added theissue type on Aug 24, 2026
  4. claude commented on Aug 24, 2026

    @claude
    Contributor

    Triage (daily round, session session_01Kktexqp6uVuFMztvvTMf3V, 2026-08-24): lands in .github/workflows/lint.yml + spec-liveness-check.yml → domain:devx + pm:queue, Task. Blocker discharged: #11300 closed 2026-08-23T15:06Z, so the composite action (.github/actions/setup-pnpm) exists — re-verify on origin/main and adopt it at the 6 remaining Corepack sites (7 jobs).


    Generated by Claude Code

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Aug 24, 2026
  6. self-assigned this
    on Aug 24, 2026
  7. os-steve commented on Aug 24, 2026

    @os-steve
    CollaboratorAuthor

    Claim: devx lane PM seat, session e2eac1a7-8000-5c95-9749-38aec2ace6fc, branch claude/issue-11369-corepack-pnpm-lint-liveness.

    Dispatching now. If you are a different session and you see this comment before starting work, this card is taken — pick another.


    Generated by Claude Code

  8. os-steve commented on Aug 24, 2026

    @os-steve
    CollaboratorAuthor
    {
      "issue": 11369,
      "status": "done",
      "branch": "claude/issue-11369-corepack-pnpm-lint-liveness",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/11758",
      "premise_still_valid": true,
      "summary": "Re-measured the population on current origin/main (2a6122bd9, a day past the prior seat's a872ce9): still 10 files / 16 `corepack enable` occurrences, in 16 distinct jobs. Verified the composite action by content, then classified all 16 sites individually rather than assuming uniformity. Adopted at all 16 — 14 were a plain mechanical swap identical to ci.yml's landed shape; 2 (pr-automation.yml changeset-check, release.yml release-integrity) were mechanical only with the caller's `if:` carried verbatim, which was done. Zero sites left unconverted: nothing in the population pinned a different pnpm version, passed different flags, or ran Corepack at a point the composite changes. Every caller keeps its own actions/setup-node with its literal pin; the check-node-version census is byte-identical at 32 steps across 26 workflows. The PM's widening call is CORRECT and I am not overturning it.",
      "tests": "Gate union at final commit 5796ff6a3, 18/18 green. Families derived from the real changeset via `node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack` (10 paths vs merge base 2a6122bd9; provenance line confirmed objectstack-ai/objectstack), NOT a hand-written list. Exit codes captured before any pipe. Quoting each gate's own verdict line, not $?: `check-node-version: OK (32 setup-node step(s) across 26 workflow(s), all on Node 22).` · `check-workflow-status-functions: OK (scanned 26 workflow file(s), 49 job(s), 25 job-level if: expression(s); 10 read needs.*.outputs.*, all naming a status function).` · `check-step-collectors: 327 run: steps across 26 workflow(s)` · `check-aggregator-roster: 3 aggregator(s) across 2 workflow(s); roster == needs: in both directions` · `check-required-contexts: 6 required context name(s) pinned across 2 workflow(s)` · `check-shard-attestation: 2 aggregate gate(s) count 3 declared leg(s)` · `check-nul-bytes: OK (scanned 6568 text file(s) ... no raw ASCII control bytes).` Those gates parse the workflow files themselves, so the green is a measurement over the edited files, not a bystander pass. NON-VACUITY, both directions with controls: `corepack enable` 16 -> 0 occurrences (10 -> 0 files) while `uses: ./.github/actions/setup-pnpm` 7 -> 23 (+16, the matching amount, same 16 sites); `name: Verify pnpm version` 8 -> 0 (folded into the composite, matching the 8 paired sites the transform reported); `uses: actions/setup-node@` 32 -> 32 (invariant). Controls: `corepack enable` in ci.yml = 0 paired with `Setup pnpm` in ci.yml = 14 (live grep, demonstrated zero); `corepack disable` = 0 (probe not indiscriminate); control-byte probe shown firing on a real 0x01 in a scratchpad file before its clean verdict on the 10 changed files. All 10 files re-parse as valid YAML with the expected composite-step count per job. First run of six gates was a false red (ERR_MODULE_NOT_FOUND for yaml/semver in a fresh worktree) — resolved by `pnpm install --frozen-lockfile` under scripts/pm/os-verify-lock.sh (VERDICT command-exit 0, waited 2m29s behind another agent's turbo build), then all six green. One derived family, check:type-check-debt (--re-measure), DECLINED to run rather than failing: it refuses without a built TypeScript closure because a number measured from an unbuilt tree records a different world. This diff contains zero TypeScript and its non---re-measure sibling check:type-check-coverage is green — reported as a declared narrowing, not as a pass. No ablation was applicable (no gate was added or changed).",
      "open_questions": [],
      "out_of_scope_findings": [
        "filed as #11765: showcase-smoke.yml acquires pnpm via `pnpm/action-setup@v6` — a third acquisition path invisible to a `corepack enable`-keyed census, so the post-change count of 0 reads as 'class closed' when one workflow still downloads pnpm per job. Low stakes (nightly, explicitly non-blocking) and NOT a find-and-replace: that job relies on setup-node's `cache: pnpm`, which needs pnpm on PATH BEFORE setup-node — the opposite of every setup-pnpm caller's ordering. Labelled `finding`, no `pm:queue`, unassigned."
      ]
    }

    Scoping call: your widening was right, and I did not need to overturn it

    You asked to be told if it was wrong. It was not. The load-bearing assumption you flagged as unverified — "the swap is mechanical and identical at all sites" — is almost true, and the two exceptions were real but small: pr-automation.yml/changeset-check and release.yml/release-integrity carry an if: on the Corepack step (a folded >- scalar in the first case). A blind find-and-replace would have dropped those conditions and made both jobs run the composite unconditionally — in release-integrity that would have defeated a deliberate deferral whose comment explains it sits mid-job precisely so the common path skips it. Conditions carried verbatim; both sites stay in position.

    Two preconditions I checked rather than assumed, both fine:

    • publish-smoke.yml/pack-smoke checks out a non-default ref (needs.resolve.outputs.ref), and uses: ./… resolves from the checked-out tree — a ref lacking the composite would hard-fail. It cannot arise: on workflow_run the ref is the open changeset-release/main head (a descendant of main), and on workflow_dispatch the ref is github.ref, which is also where the workflow file itself comes from, so file and tree always agree.
    • The two nightlies deliberately use actions/cache/restore@v6 (restore-only) for their pnpm store, while the composite embeds a save-capable actions/cache@v6 for the Corepack store. Naming it rather than burying it: the restore-only comment is attached to the pnpm-store step and is about that cache; the Corepack entry is keyed on the packageManager pin alone, so it is one small entry repo-wide, saved only on a miss that ci.yml on main will already have filled. If you read that convention as file-wide rather than step-local, say so and I will drop those two sites — it costs 2 of 16.

    On CI cost / blast radius

    Ten workflows change at once, but the runtime delta per job is a cache restore replacing a registry download, and ci.yml has been running exactly this shape since #11300. The widening does not touch job graphs, needs:, triggers, or permissions — check-aggregator-roster and check-required-contexts both confirm the roster/needs: relationships are unchanged in both directions.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

domain:devxpm:dispatched

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions