Skip to content

finding: lint.yml's "must stay immediately above the re-measure" ordering contract is prose-only, and violating it is currently SILENT #10572

Closed as not planned

Description

@os-zhuang

Observation-class finding, filed unassigned from #8331's implementation (PR #10568). Nothing is broken today. Recording it so it is not rediscovered.

What

.github/workflows/lint.yml's aggregator comment declares an ordering contract in prose:

  • Build the ledgered packages' dependencies must stay immediately above the re-measure — both are in typecheck-debt.

Nothing enforces it, and — this is the part worth recording — violating it would not fail loudly either. #8331's implementation measured why:

  • pnpm check:type-check-debt (--re-measure) calls unbuiltClosure() before refreshBuiltClosure(), and refuses rather than building from nothing. So the workflow step really is load-bearing in principle: the gate cannot rescue a closure member no earlier step built.
  • But of the 55 workspace packages in the ledgered dependency closure, the step above it (Build workspace packages, --filter='./packages/*' --filter='./examples/*^...') already covers all 55 on the current tree. Measured with turbo's own --dry=json package sets against the gate's own closure enumeration.

⇒ Move the build step to another lane, or delete it, and the refusal does not fire; refreshBuiltClosure() quietly does the work instead and the lane stays green. The prose contract is unenforced and self-healing, which is the combination that lets it rot unnoticed until the day the coverage accident stops holding.

The margin is one package: @objectstack/service-knowledge (packages/services/, pulled into the closure by the ledgered @objectstack/knowledge-ragflow) is reached by that preceding step only through ./examples/*^..., i.e. because examples/app-todo happens to depend on it — the same accident lint.yml already records one step above for #3037. C \ (./packages/* alone) = exactly that one package.

Why it is filed rather than fixed

PR #10568 deliberately stayed comment-only. A mechanical pin is cheap and would not need a new gate or a new lint.yml step, which is why this is worth recording rather than dropping: scripts/check-type-check-coverage.mjs's observed() already reads .github/workflows/lint.yml and already derives CI-wiring facts from it (ciInvokesTask, ciInvokesRoot) that its evaluate() asserts. A third derived fact — "the step immediately before the one running pnpm check:type-check-debt runs the closure build with the same filters refreshBuiltClosure() uses" — would ride the existing --self-test, which two jobs already invoke, and would let the filters be single-sourced in the script instead of hand-copied.

Why it may not be worth doing

Post-#8330 the drift this would catch is already loud in the direction that matters: the gate refreshes with its own filters before measuring, so a narrower workflow filter ends in the unbuiltClosure() refusal and a wider one costs cache hits. Neither can make CI measure a different world than a local run, which is what #8271 was. What a pin buys is protection of the ordering claim itself — currently resting on a set inclusion that no test asserts and that one manifest edit in examples/app-todo can break.

Whoever picks this up should decide against that trade, not assume it.

Activity

  1. added
    tooling
    domain:devx
    finding
    pm:on-hold
    and removed
    finding
    on Aug 21, 2026
  2. os-zhuang commented on Aug 21, 2026

    @os-zhuang
    ContributorAuthor

    Triage (finding concentration round, 2026-08-21, seat grading): finding → pm:on-hold. Reason: the card's own cost/benefit is honest that the drift this pin would catch is already loud in the direction that matters post-#8330 (narrower filter ⇒ unbuiltClosure() refusal; wider ⇒ cache cost) — what remains unprotected is only the ordering claim, whose single point of failure is the one-package coverage accident through examples/app-todo's dependency on @objectstack/service-knowledge. So the pin becomes worth building exactly when that manifest moves.

    Restart-touch: examples/app-todo/package.json

    On restart: implement the third derived fact in check-type-check-coverage.mjs's observed()/--self-test as the card sketches (single-source the filters), rather than re-litigating the trade.


    Generated by Claude Code

  3. os-zhuang commented on Aug 27, 2026

    @os-zhuang
    ContributorAuthor

    Hold made legal — the trigger is the one-package margin the card measured

    devx lane PM, session session_01PfaSTikked61BkcsB5Rn69, round 13. Authorization: maintainer instruction this session to clear the eight illegal pm:on-hold cards flagged by half-state patrol H9.

    Held with no Restart-when: in either channel — illegal. Repairing, because this card measured a genuine one-package margin and that margin is exactly a checkable condition.

    Restart-when: the coverage accident stops holding — i.e. the ledgered dependency closure
      gains a member that lint.yml's preceding "Build workspace packages" step does not build.
      One-line predicate: the set difference C \ (turbo package set of
      --filter='./packages/*' --filter='./examples/*^...') is non-empty, where C is
      check-type-check-debt's own closure enumeration. Today that difference is exactly
      {@objectstack/service-knowledge}, reached only because examples/app-todo depends on it.
    Restart-touch: .github/workflows/lint.yml, examples/app-todo/package.json
    

    ⭐ The Restart-touch on examples/app-todo/package.json is the load-bearing half, and it is why this card is worth keeping rather than closing. The card's own measurement: of the 55 packages in the ledgered closure, the preceding step covers all 55 — but @objectstack/service-knowledge is reached only through ./examples/*^..., i.e. purely because examples/app-todo happens to depend on it. ⇒ One manifest edit in an example app can silently break the ordering contract, and nothing would say so. That is the specific, cheap trigger a hold needs, and it names the file.

    ⚠️ Restated so a future owner does not misread the risk as bigger than it is: post-#8330 the drift this would catch is already loud in the direction that matters — the gate refreshes with its own filters before measuring, so a narrower workflow filter ends in the unbuiltClosure() refusal and a wider one only costs cache hits. Neither can make CI measure a different world than a local run, which is what #8271 was. What a pin buys is protection of the ordering claim itself, which currently rests on a set inclusion no test asserts.

    ⭐ And the reason it stays cheap when it does wake: scripts/check-type-check-coverage.mjs's observed() already reads .github/workflows/lint.yml and already derives CI-wiring facts from it that its evaluate() asserts. A third derived fact rides the existing --self-test that two jobs already invoke — no new gate, no new lint.yml step — and lets the filters be single-sourced in the script instead of hand-copied.

    ⛔ Per the card's own closing instruction, whoever picks this up must decide against that trade deliberately, not assume it.


    Generated by Claude Code

  4. objectstack-fleet commented on Sep 23, 2026

    @objectstack-fleet
    Contributor

    关 not_planned —— 维护者逐张复核 on-hold 卡时同意关闭;纯开发工具卡

    分诊席(session_01Tw7jnJinGHvoGSi8aFkhPJ),2026-09-23T09:09Z。维护者 2026-09-23 在分诊会话里逐张复核 pm:on-hold 卡,对第五组的回复原文:「10164 不考虑旧的;11182 当前版本就优先处理,统一为cel;其他同意」。 本卡在那一组里的建议是关闭。

    呈给维护者的事实

    卡面的测量和设计笔记原样保留;重开是免费的。

    关闭理由:not_planned,同时摘掉 pm:on-hold。


    Generated by Claude Code

  5. removed
    pm:on-hold
    on Sep 23, 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

    domain:devxtooling

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions