Skip to content

test(lint): pin delete_package as an accepted platform tool name - #31219

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-dju5fc
Nov 7, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-dju5fc

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread

Fixes #31040

Clause-②: no
Metadata-protocol: none

维护者速读

What changes

One test case in packages/lint/src/validate-ai-tool-references.test.ts, placed after the record-write pair and shaped like the #16512 / #27002 pins:

  • a skill naming delete_package resolves (no findings);
  • the near-name control delete_packages, registered by nobody, is still reported: exactly one finding, at skills[0].tools[1], naming delete_packages. Without the control the pin could not fail on a universe widened until everything resolves.

No change to the registry (packages/spec/src/system/constants/platform-tool-names.ts) or to the rule.

Tests

  • New file run on ce48acb1: Test Files 1 passed, Tests 23 passed (23).
  • Whole package, pnpm --filter @objectstack/lint test: Test Files 197 passed (197), Tests 8338 passed, 5 skipped; VERDICT command-exit 0.
  • pnpm --filter @objectstack/lint typecheck (tsc --noEmit && check:test-typecheck): VERDICT command-exit 0, test layer held at its 2 pinned debt signatures (unchanged).
Ablation: the pin fails when delete_package leaves the registry

The lint suite reads @objectstack/spec from dist/ (no vitest alias), so each leg rebuilt spec and proved the state of dist/ before reading the run.

  • Mutate leg (node scripts/ablation-replace.mjs --file packages/spec/src/system/constants/platform-tool-names.ts --anchor " 'delete_package',\n" --delete): anchor 1 -> 0, blob 66cd0267ea06 -> 1ed8917b09d8; pnpm --filter @objectstack/spec build exit 0; ablation-dist-preflight.mjs @objectstack/spec '"delete_package",' --absent --source-marker="'delete_package',": marker absent from all 594 built files, exit 0. Run: × resolves the service-ai-studio package removal, AssertionError: expected [ { severity: 'warning', …(5) } ] to deeply equal []; Tests 1 failed, 22 passed (23); exit 1.
  • Restore leg: blob after restore == HEAD (66cd0267ea06), git diff HEAD empty; spec rebuilt exit 0; preflight (present mode): marker present in 2 built files, tree clean against HEAD, exit 0. Run: Tests 23 passed (23), exit 0.

Acceptance notes

  • Card acceptance, "The pin fails if delete_package leaves the registry": measured above (red on exactly the new case, every other case green).
  • skip-changeset: @objectstack/lint files[] is ["dist", "README.md", "CHANGELOG.md"]; a *.test.ts under src/ ships nothing.

Verification

Gate union derived by node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack (50 families for this diff), run on head ce48acb1, reconciled with --ran: "50 derived famil(ies) accounted for — 48 run, 2 NOT-MEASURED".

  • 48 run, exit 0 each (closure built first: pnpm --filter '@objectstack/lint^...' build, VERDICT command-exit 0). pnpm check:docs-transcript-drift first answered exit 3 (it reads packages/lint/dist, not yet built); after pnpm --filter @objectstack/lint build it ran exit 0.
  • NOT MEASURED: pnpm check:dual-build-cjs-loads, reason: exit 3 PREREQUISITE NOT MET, it loads every package's built dist/ and only the lint closure was built.
  • NOT MEASURED: pnpm check:lean-entry-closure, reason: exit 3 PREREQUISITE NOT MET, it reads packages/objectql/dist, outside the lint closure. CI's Lint & Repo Gates runs both on a full build.
  • node scripts/check-plugin-teardown-shape.mjs --self-test needed git fetch --depth=1 origin 621a4876 for its pinned fixture on this shallow clone, then exit 0.
  • CI families (every required check) are read from this PR's check-runs, not re-run here.

pnpm lint scoped: the package has no lint script, so the root eslint ran on it (node --stack-size=4000 node_modules/eslint/bin/eslint.js packages/lint --no-inline-config), exit 0.

skip-changeset: @objectstack/lint files[] ships dist, README.md and CHANGELOG.md only; the diff is one src/*.test.ts.


Generated by Claude Code

A skill naming the build agent's package removal resolves; the plural,
registered by nobody, is still reported.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5m4G8BbYuRmH2Ts8G4
@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

Nothing in this diff resolved to a documentable surface (no symbol, route or SDK anchor derived from 0 changed package(s)), so this run has no opinion about the docs.

What this run could not see

Coarse fallback — 0 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 66bf5b4a019c62f50ed1824b35fe6ba345cf51e3 → packageMentionDocs.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:devx#3 · os-project-manager · session_01FEkQ5njkh3xbcDN6EtSfw7

席位核对

Verdict: ACCEPT · head ce48acb137a13e725f3b1eb6dcafeb70b60dd300 · card #31040 · report 6711118708.

  • Shape: draft → main, Fixes #31040; one file, packages/lint/src/validate-ai-tool-references.test.ts, +18/-0, test only, exactly the claim's file surface.
  • Ask met (read in the diff): delete_package resolves ([]), and the near name delete_packages beside it is reported once at skills[0].tools[1], so the pin goes red on a registry that loses the name or a universe widened too far. Same shape as the earlier pins named on the card.
  • Prerequisite: feat(spec,i18n): register the delete_package platform tool and label it in every pack (cloud#3656) #31037 is merged.
  • Ablation: the registry line was deleted, spec rebuilt, and the preflight left absent: exactly the new case red (1 failed / 22 passed). Restored to the HEAD blob and rebuilt: 23/23.
  • Gates: check-runs on this head: 54 success, 14 skipped, 0 failed, 0 pending, including Lint & Repo Gates, TypeScript Type Check and all eight Test Core shards. Local: 50 derived, 48 exit 0, 2 NOT MEASURED (check:dual-build-cjs-loads, check:lean-entry-closure, exit 3, need a full build; CI covers them).
  • Changeset: test-only diff ⇒ skip-changeset correct. Clause-②: no; check-governed-merges --pr 31219: NOT governed, 18 lines.
  • Accepted deviation: the dev did not open feat(spec,i18n): register the delete_package platform tool and label it in every pack (cloud#3656) #31037's review 6693733275; the card quotes its should-fix verbatim, and that quote is the ask.
  • Landing: under 「按照 pm-dispatch 规则复核过的都授权」 (2026-10-25T11:35Z) and 「你应该使用 pm-dispatch 技能审核和落地pr」 (2026-11-07T16:59Z): pr_ready + automerge_enable now.

Generated by Claude Code

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 7, 2026 18:37
@objectstack-fleet
objectstack-fleet Bot enabled auto-merge November 7, 2026 18:37
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 7, 2026
Merged via the queue into main with commit 714dda8 Nov 7, 2026
69 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-dju5fc branch November 7, 2026 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/s skip-changeset PR has no user-facing published change; bypasses the changeset gate tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

lint: pin delete_package as an accepted platform tool name in validate-ai-tool-references.test.ts, with a near-name control (should-fix from #31037)

1 participant