Skip to content

ci: no job asserts the Turbo remote cache is actually on — TURBO_TOKEN is withheld whenever the signing secret is empty, turbo then prints "Remote caching disabled" and builds cold with nothing red; add the assertion to Build Core and the closure builds #25374

Closed

Description

@objectstack-fleet

Filing gate: ③ maintainer-directed task (CI performance programme, 2026-10-23). Reader: the domain:devx execution seat, dispatch step — one os-dev, one PR. Dedup: search_issues on objectstack-ai/objectstack, closed included, "turbo remote cache TURBO_TOKEN remote caching disabled assert summary Build Core" → 13 hits; the only on-topic ones are #21186 (closed — wired the remote cache) and #21193 (closed — build hash inputs); none open. Session: session_01GVTBi44LAWbPWg4evKfE1T.

One-sentence problem

objectstack's CI has a Vercel Turbo remote cache wired into Build Core, the six Test Core closure builds and the three lint typecheck lanes, but nothing checks that it is on: the token is passed only when a second secret is present, a missing or rotated secret turns the cache off silently, and the only trace is a log line nobody reads — so the ten parallel builds per PR may have been cold for weeks without a signal.

Evidence (file lines at objectstack commit 303aef0)

  • ci.yml:2547-2600 (Build Core env): TURBO_CACHE, TURBO_TOKEN, TURBO_TEAM, TURBO_REMOTE_CACHE_SIGNATURE_KEY; writes only on merge_group and main push/workflow_dispatch, PRs read-only. The comment at :2577-2580 says that when the token is withheld "the summary then reads Remote caching disabled (remote cache requested — …)". TURBO_TOKEN is passed only when secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY is non-empty.
  • The same env block in the Test Core closure build (ci.yml:748-751) and the lint typecheck lanes (lint.yml:5784-5787, :6040-6043, :6108-6111, :6241-6244, :6267-6270).
  • grep -rn "Remote caching" .github/workflows and any remoteCache summary assertion → 0 hits. turbo.json:7-9 sets remoteCache.signature: true.
  • Whether the repo variable TURBO_TEAM and the two secrets are configured today cannot be read from a seat container (the Actions variables endpoint answers 403 through the session proxy); the only observable is the builds themselves: PR run 39891259937 Build Core "Build packages" 6.45 min with a 0 s Turbo restore, i.e. no local hit and no visible remote hit.

Governing text

  • ci.yml:2559-2562 records why only build tasks go to the remote cache (test/typecheck stay local); this card keeps that boundary.
  • pm-dispatch SKILL.md, 升级与决策: 「新增门禁默认否:门禁是只减不增的零件,例外只有维护者点名」. This card adds an assertion step inside existing required jobs, not a new check context or workflow; the maintainer's directive below names it. If the lane reads the change as a new gate, it goes back to the director batch rather than landing.

Change

  1. After each remote-cache-enabled turbo build (Build Core, the shard closure, the three lint lanes) add one step that reads the run summary (turbo … --summarize writes .turbo/runs/*.json) or the captured log, and: on merge_group/push fails the job if remote caching reports disabled; on pull_request warns only (forks carry no secrets). Print hit / miss / remote-hit counts into GITHUB_STEP_SUMMARY so a seat can read the hit rate without downloading logs.
  2. One shared script under scripts/ci/ (e.g. assert-turbo-remote-cache.mjs with --self-test), called from the five places — not five inline copies.
  3. The PR records in this card what the first green run's summary says about the cache state before the change (on / off), because that answer decides whether a follow-up on the secrets is a maintainer action (pm:awaiting-maintainer).

Acceptance

  • A merge_group run with the token deliberately withheld (one-off workflow_dispatch with an input, or a PR-side simulation) reds at the new step with the turbo sentence in the failure.
  • A normal green merge_group run's step summary shows remote hits > 0 for build tasks.
  • No new check context appears in the required set; check:required-contexts stays green.

Work estimate

Lane domain:devx · 1 PR (.github/workflows/ci.yml, .github/workflows/lint.yml, one new scripts/ci file) · precedent: the wiring PR under #21186 — not reachable from this depth-50 clone for +/− lines. Clause-②: no · Metadata-protocol: none · Tier H (governed surface — the PR waits for a GOVERNED_APPROVERS approval before ready).

Prior rulings read: remote cache, turbo_token, signature → docs/adr 2 hits, AGENTS.md 1 hit (none on asserting the cache state); ADR none; thread: none.

Related: #21186 (closed), #21193 (closed), #22077 (closed).

Maintainer directive (verbatim, untranslated)

同意,立卡

— the maintainer, 2026-10-23, in reply to the director seat's offer 「(a) 我按 PM 流程把 A1–A5、B1–B3 立成卡进队列(英文卡面、带 Governing text: 与工作量列),由 os-dev 派发」. The CI performance analysis those letters index is the seat's 2026-10-23 five-line audit (objectstack ci.yml + lint.yml; the other 39 workflows; the repo-side turbo/vitest/gate configuration; objectui's 28 workflows; GitHub Actions run data for the preceding 5–55 hours). The maintainer's stated goal, verbatim: 「我希望优化的是性能和效率速度」.

Activity

  1. added
    tooling
    priority:p2
    pm:queue
    domain:devx
    area:devpath
    on Oct 23, 2026
  2. objectstack-fleet commented on Oct 23, 2026

    @objectstack-fleet
    ContributorAuthor

    Path: instrument — CI time-to-green for every lane (area:devpath, the road's dev/verify step) | none — no platform-checklist item asserts CI speed | priority:p2 (North Star rule 3: an instrument card inherits along the chain; the queue position is set by the maintainer directive below) | none

    Triage: lands in domain:devx (objectstack) — .github/workflows/ci.yml, lint.yml and one scripts/ci helper; labels tooling · area:devpath · priority:p2 · pm:queue; type Task (the create door carries no type flag — triage sets it on first touch); rationale: the remote cache is wired but never asserted on; a missing secret turns it off silently and ten builds per PR go cold with no red; the assertion sits inside existing required jobs, not a new check context.

    Direct-dispatch channel (pm-dispatch cross-repo-coordination: 「维护者直派通道:当面指挥的 PM 会话直接路由,只对明示指挥的卡成立。直派的审计评论逐字引用授权指令。」). The authorising words, verbatim and untranslated — the maintainer, 2026-10-23, replying to the director seat's offer:

    seat: (a) 我按 PM 流程把 A1–A5、B1–B3 立成卡进队列(英文卡面、带 Governing text: 与工作量列),由 os-dev 派发;(b) 先只要这份报告,总监席决裁批照原计划开。
    maintainer: 同意,立卡

    The word covers filing and dispatch; the lane seat dispatches this card under it even while a p1 sits in the lane queue (优先序:维护者裁决 > 北极星). Labels and domain were set by the filing seat under this channel, not by triage — triage may spot-check (SKILL.md 域车道 例外二).

    Filed by the director seat, session session_01GVTBi44LAWbPWg4evKfE1T, from the 2026-10-23 CI performance audit (five read-only lines: objectstack ci.yml + lint.yml; the other 39 workflows; repo-side turbo/vitest/gate configuration; objectui's 28 workflows; GitHub Actions run data).

    Written 2026-10-23T04:42Z by the director seat.

  3. added
    pm:dispatched
    and removed
    pm:queue
    on Oct 23, 2026
  4. objectstack-fleet commented on Oct 23, 2026

    @objectstack-fleet
    ContributorAuthor

    Claim: PM loop round 3 · 2026-10-23T11:48Z
    Session: session_01QPa866zGYAuVVnv8kKLnKg (card thread, dispatched by seat session session_01LKHDniRQSWjRJyDtacwpEd)
    Account: os-elon-musk
    Branch: claude/project-thread-hr4due (the harness-pinned branch for the card thread; it names no issue, so this claim is the identity record)
    Worktree: objectstack-issue-25374
    Domain: domain:devx
    Seat: domain:devx#1 (seat post #6023)
    File surface: .github/workflows/ci.yml, .github/workflows/lint.yml, and one new scripts/ci/assert-turbo-remote-cache.mjs with --self-test. Tier H: the PR stays draft until a GOVERNED_APPROVERS approval. (stop on breach; explain in the report)
    Container & model: M, mode:thread, model: default tier, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — CI instrument (no defect producer)
    Thread-read: none
    Serial constraints cleared: #25373 and #25375 also edit ci.yml. Re-read main before each push, and merge main if one of them lands first.

    Dispatched under the maintainer's 「同意」 to the director's ruling batch 1, item 5A (devx dispatches p1–p3). This card is also covered by the maintainer's 「同意,立卡」 for the CI performance audit cards, where the card says so. Dispatch order: /mnt/project-files/pm-devx-seat/dispatch-25374.md.

  5. objectstack-fleet commented on Oct 23, 2026

    @objectstack-fleet
    ContributorAuthor

    ACCEPT (seat review) → PR #25419 · domain:devx seat 1 · session_01LKHDniRQSWjRJyDtacwpEd · 2026-10-23T13:03Z

    • Reviewed at head ef582fff44: four files.
      • scripts/ci/assert-turbo-remote-cache.mjs is new (+416) and carries --self-test. It reads turbo's structured log for the "Remote caching enabled/disabled" prelude and --summarize for the hit counts. It writes both to the step summary. It reds a run that writes to the remote while the cache is off; a read-only run only warns.
      • It is wired into five places: Build Core, the Test Core closure (--if-ran, and the summary is moved out before the tests read .turbo/runs/), and lint.yml's three Type Check lanes (continue-on-error, with the lane verdict carrying the red).
    • Seat-approved widening: scripts/check-ci-filter-parity.mjs (+38 / -4). Build Core's pnpm build may carry only the closed allowlist --summarize / --log-file=<path>; --filter, --affected, unknown flags and the same flags on another command all refuse. That is 9 cases both ways, the floor goes 33 → 42, and the ablations show red. The dev measured 83 of 83 task hashes unchanged with the flags.
    • Before-state, read on this PR's first run: the remote cache is already on.
      • Build Core: 76 of 76 remote hits, FULL TURBO, 4.8 s (job 120420208208).
      • Type Check · workspace: 71 of 71 remote hits.
      • So no secrets follow-up is needed. The card's value is the guard against a silent future regression.
    • Not asserted: Temporal Conformance and the dogfood closure also carry the remote-cache lines. The card names five places, and these two are outside them. Each would be the same two flags plus one step, if wanted later.
    • Gates: the dev's derived set is 71 of 71 at exit 0, --ran reconciled. On the PR, 45 check runs; each one is success or an expected skipped (34 / 11).
    • ⛔ GOVERNED: check-governed-merges.mjs --pr 25419 reports 2 of 4 paths on the register (the workflows). A human merge by a GOVERNED_APPROVERS account is the review record, and hotlong and os-zhuang are requested. The seat never readies or queues this PR.
  6. objectstack-fleet commented on Oct 23, 2026

    @objectstack-fleet
    ContributorAuthor

    Post-merge reading (devx seat): acceptance item 2 is met. #25419 landed through merge_group run 39998209487 (CI, success). Its Build Core job logged:

    assert-turbo-remote-cache: Build Core: turbo said: Remote caching enabled
    assert-turbo-remote-cache: Build Core: 76 build task(s) -- 76 remote hit(s), 0 local hit(s), 0 miss(es).
    

    (Cached: 76 cached, 76 total · FULL TURBO, 5.5 s.) That is remote hits > 0 on a green merge_group run, with the assert step live on main. As the ACCEPT noted, Temporal Conformance and the dogfood closure still carry the remote-cache lines without the assert; that is outside this card.


    Generated by Claude Code

  7. removed
    pm:dispatched
    on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:devpathdomain:devxpriority:p2tooling

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions