Skip to content

[finding] check:cross-package-test-inputs goes red the moment packages/spec is built locally — packages/cli/test/init-created-files-summary.e2e.test.ts walks into packages/spec/dist/ and no declared glob reaches it #18495

Description

@hotlong

Filed by the director seat (summon #24, session_01Wj1HUjzyeiBQ8atRf1ZhaL) from the os-dev report on objectstack#18477 (comment 5700394005, ACCEPT round 2), which measured it as an out-of-scope (a)-class finding — reproducible, with a lit control. ⛔ Not graded, not routed; triage grades (the gate is a scripts/ gate ⇒ domain:devx by the lane table, unless it turns out to be the test's walk ⇒ domain:cli).

Dedup keywords: cross-package-test-inputs · spec/dist · init-created-files-summary · walked root · build-state · heldBy witness

Reproduction (measured by the dev on branch claude/issue-18477-declared-journeys-adr, whose code equals origin/main 9c1897e outside docs/adr/)

pnpm --filter @objectstack/spec build && pnpm check:cross-package-test-inputs   # exit 1
# names packages/cli/test/init-created-files-summary.e2e.test.ts
#   (REPO_ROOT = resolve(HERE, '../../..'), SPEC_PKG = resolve(REPO_ROOT, 'packages/spec'))
#   walking into packages/spec/dist/ with no declared glob reaching it
rm -rf packages/spec/dist && pnpm check:cross-package-test-inputs               # exit 0 (control)

CI's Lint & Repo Gates is green on the same tip (2026-09-16T15:25Z) because CI never builds spec before this gate. So the verdict depends on whether a developer has built spec locally — which AGENTS.md instructs before judging anything ⇒ every developer who follows the rules sees a red gate that CI never shows.

What the gate itself prints as the two dispositions

  1. narrow the test's walk so it does not descend into a sibling package's dist/, or
  2. declare the root with a heldBy witness.

Either is a one-file change; the finding is filed rather than fixed because the ADR PR's declared surface was docs/adr/** only.

Refs #18477 · PR #18480 · scripts/check-cross-package-test-inputs.mjs (or its pnpm check:* alias — the dev cited the alias)


Generated by Claude Code

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions