Skip to content

DEBT['@objectstack/metadata'] says errors: 89 while its note itemises 92 and says "Re-measured 92" — a second live instance of the #10174 class #10723

Description

@claude

Same class as #10174 (service-automation, being repaired now) and #7038 / #8982 (both already in a
closed state): a ledger
note narrating a state its own field contradicts. Filing rather than fixing — #10174's dispatch was
scoped to one entry with no count moves, and this is a different entry.

No behaviour is wrong; the note is. The ratchet is green either way.

Measured

scripts/check-type-check-coverage.mjs, DEBT['@objectstack/metadata'] at :411-417:

'@objectstack/metadata': {errors: 89,note: 'code-tier 34 (TS2345 x30, TS2322 x4); config-tier 24 (TS2835); noise 34 (TS7006 x33, TS6133). '+'Re-measured 92 at 5ab08428, up from 87. Composition moved as well as the count: the note used to '+'name TS2353, which is gone, and TS2322 has taken its place. Two thirds of the pile sits in '+'metadata.test.ts (34) and register-notifies-watchers.test.ts (16).',},
  • The tier itemisation sums to 34 + 24 + 34 = 92.
  • The note states "Re-measured 92 at 5ab0842".
  • The field states 89.

The note is internally consistent at 92; only the field disagrees. As with #10174, the entry was
evidently lowered 92 -> 89 without the note being rewritten alongside it.

It is stale, not history

A note may legitimately carry old numbers as narrative — TEST_DEBT['@objectstack/objectql'] recites
"Re-measured 333" while re-tallying correctly to its recorded 355, and that is fine. This entry is not
that: its current itemisation, the one describing the pile as it stands, is the thing that sums to 92.

Confirmed against a full --re-measure on a built closure (33 entries, 1912 raw errors) run tonight at
5757b74a35: the only surplus reported was @objectstack/plugin-auth (-12, tracked in #10615). So
@objectstack/metadata measures its recorded 89 exactly, and the note's 92 describes no tree.

Suggested fix

Re-measure the entry, rewrite the note to the measured tier composition, and record the 92 -> 89
graduation — mirroring what #10174 did for service-automation. Prose only, no count moves: 89 is
correct.

The mechanical cause of this whole class — --lower rewrites only the errors: digits and never the
note — and the proposal for a bounded check that would end it, are filed separately as #10722.


Generated by Claude Code


Generated by Claude Code

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions