Skip to content

Fixes #6843: rename false-pin test case names in getObject/listObjects - #7229

Merged
os-help merged 1 commit into
mainfrom
claude/issue-6843-rename-false-pin-cases
Aug 10, 2026
Merged

Fixes #6843: rename false-pin test case names in getObject/listObjects#7229
os-help merged 1 commit into
mainfrom
claude/issue-6843-rename-false-pin-cases

Conversation

@os-help

@os-help os-help commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

Fixes #6843

What

Two test-case names in packages/metadata/src/metadata-service.test.ts claimed an equivalence their bodies never exercised:

  • 'getObject should be shorthand for get("object", name)' → renamed to 'getObject returns the registered document'
  • 'listObjects should be shorthand for list("object")' → renamed to 'listObjects returns the registered documents'

Neither body ever calls get()/list() to compare against getObject()/listObjects() — they only assert that the convenience method returns what was registered. The old names were a false prior-art signal for the next agent grepping for coverage of the getObject(n) = get('object', n) equivalence.

Names only — no assertion or coverage change.

Which disposition, and why

Issue #6843 listed three dispositions. The domain:engine-core seat's grading (2026-08-09T02:24Z, quoted in the issue thread) pre-approved disposition 1 (rename both cases) and explicitly refused disposition 2 (add a get('object', name) call and compare the pair): PR #6839 already gates this equivalence across four subjects, including MetadataManager on both of its resolution paths (packages/objectql/src/metadata-service-getobject-equivalence.test.ts), so adding a local pair-comparison here would be a knowingly-duplicated assertion whose only new content is making the old case name true.

A later triage comment (06:50Z) said "make the case actually compare" — that's disposition 2, without engaging the seat's refusal. The PM's claim comment on the issue records the resolution: follow the seat's argued ruling, disposition 1. This PR does that.

Verified before implementing: packages/objectql/src/metadata-service-getobject-equivalence.test.ts still exists on origin/main with the four-subject equivalence coverage described above, so disposition 2's refusal reason still holds.

Tests

Fresh worktree, dependency closure built first:

$ pnpm --workspace-concurrency=2 --filter '@objectstack/metadata^...' build
✔ (all deps built clean)

$ pnpm --filter @objectstack/metadata build
✔ ESM/CJS/DTS build success

$ pnpm --filter @objectstack/metadata test -- --maxWorkers=2
 Test Files  29 passed (29)
      Tests  592 passed (592)

No typecheck script on this package; type-checking happens via the tsup DTS build above, which succeeded clean.

Changeset

Test-only rename, no user-visible behavior change → skip-changeset case. Applying the label after this PR is open.


Generated by Claude Code

The case names claimed getObject(n) === get('object', n) and
listObjects() === list('object') equivalences, but the bodies only
assert that getObject/listObjects return what was registered — they
never call get()/list() to compare. Rename both to what they actually
assert; the equivalence itself is already gated by PR #6839's
metadata-service-getobject-equivalence.test.ts.

Fixes #6843

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016R9de1FqP7NvwKvqXi92Gh
@vercel

vercel Bot commented Aug 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
objectstack Ignored Ignored Aug 10, 2026 3:18am

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

No hand-written docs reference the 0 changed package(s). ✅

@os-help os-help added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Aug 10, 2026 — with Claude
@github-actions github-actions Bot added the tests label Aug 10, 2026
@os-help
os-help marked this pull request as ready for review August 10, 2026 03:28
@os-help
os-help added this pull request to the merge queue Aug 10, 2026
Merged via the queue into main with commit 0caf122 Aug 10, 2026
29 checks passed
@os-help
os-help deleted the claude/issue-6843-rename-false-pin-cases branch August 10, 2026 03:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/xs 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.

A test named "getObject should be shorthand for get('object', name)" never calls get('object', …)

2 participants