Found while executing #4241 (retiring the four v3.0.0 Deep Integration modules from packages/data-objectstack). Filed unassigned, recording only.
Fact
packages/data-objectstack/src/v3-compat.test.ts had five describe blocks: Cloud namespace (replacing Hub) (already removed by #4152/PR #4239), Contracts module, Integration module, Security module, Studio module (all four removed by #4241/PR #4711), and one more that none of those PRs touched — PaginatedResult API (records/total/hasMore):
describe('PaginatedResult API (records/total/hasMore)',()=>{it('should support v3.0.0 PaginatedResult fields',()=>{// Verify the QueryResult type supports records/total/hasMoreconstresult={data: [{id: '1'}],total: 10,page: 1,pageSize: 5,hasMore: true,};expect(result.data).toHaveLength(1);expect(result.total).toBe(10);expect(result.hasMore).toBe(true);});});The comment claims it verifies "the QueryResult type supports records/total/hasMore fields", but result is a hand-written object literal with no type annotation, and no import from ./index or anywhere else in the package. The assertions check properties of an object the test itself just constructed. This will pass unconditionally, regardless of what ObjectStackAdapter's real query/pagination path returns or whether the real QueryResult/PaginatedResult shape ever changes — it cannot fail in a way that signals anything about production code.
Measured: the block is unreachable from any real query path — grep -rn "PaginatedResult" in packages/data-objectstack/src finds only this test file; the package's actual pagination surface is typed and exercised elsewhere (e.g. queryDataset.test.ts, listViews.test.ts), which do construct real requests against ObjectStackAdapter.
Why this is graded observation-class
Nothing is broken and no user is bitten — the block simply proves nothing. It's a dormant/tautological test: real syntax, real expect() calls, zero coverage value. That's squarely the "dormant code, unexercised drift, cosmetic polish" observation category, not a functional defect.
Current location
As of #4241/PR #4711, this block is the sole remaining content of v3-compat.test.ts (retitled off its former "v3.0.0 compatibility" framing, since it never depended on any of the five retired v3.0.0-era modules either). So it's easy to find but still worth recording: whoever next touches this file should know the block is decorative before assuming it protects anything.
Possible directions (left for triage)
- Delete it — it protects nothing, so there's nothing to lose.
- Replace it with a real assertion against
ObjectStackAdapter's actual QueryResult/pagination type, if a producer-side type exists to import and construct. - Leave as-is — near-zero cost to keep a syntactically valid but inert test.
Refs #4241, PR #4711.
Found while executing #4241 (retiring the four
v3.0.0 Deep Integrationmodules frompackages/data-objectstack). Filed unassigned, recording only.Fact
packages/data-objectstack/src/v3-compat.test.tshad fivedescribeblocks:Cloud namespace (replacing Hub)(already removed by #4152/PR #4239),Contracts module,Integration module,Security module,Studio module(all four removed by #4241/PR #4711), and one more that none of those PRs touched —PaginatedResult API (records/total/hasMore):The comment claims it verifies "the
QueryResulttype supports records/total/hasMore fields", butresultis a hand-written object literal with no type annotation, and no import from./indexor anywhere else in the package. The assertions check properties of an object the test itself just constructed. This will pass unconditionally, regardless of whatObjectStackAdapter's real query/pagination path returns or whether the realQueryResult/PaginatedResultshape ever changes — it cannot fail in a way that signals anything about production code.Measured: the block is unreachable from any real query path —
grep -rn "PaginatedResult"inpackages/data-objectstack/srcfinds only this test file; the package's actual pagination surface is typed and exercised elsewhere (e.g.queryDataset.test.ts,listViews.test.ts), which do construct real requests againstObjectStackAdapter.Why this is graded observation-class
Nothing is broken and no user is bitten — the block simply proves nothing. It's a dormant/tautological test: real syntax, real
expect()calls, zero coverage value. That's squarely the "dormant code, unexercised drift, cosmetic polish" observation category, not a functional defect.Current location
As of #4241/PR #4711, this block is the sole remaining content of
v3-compat.test.ts(retitled off its former "v3.0.0 compatibility" framing, since it never depended on any of the five retired v3.0.0-era modules either). So it's easy to find but still worth recording: whoever next touches this file should know the block is decorative before assuming it protects anything.Possible directions (left for triage)
ObjectStackAdapter's actualQueryResult/pagination type, if a producer-side type exists to import and construct.Refs #4241, PR #4711.