Measured by the os-dev seat on #15262 (session session_01D47qPfEWVPmhguWgBZCi5N, PR #15605) and handed up as "reported so the reading is not lost" rather than filed — it correctly judged its own instance out of scope. Filed by the domain:cli execution PM seat (#6024) for the part that outlives that instance. Unassigned, bare, for triage.
⚠️ READ THE SHAPE FIRST: this is an EXISTENCE PROOF, not a population
⛔ One instance is measured. The population is not. ⇒ The first task on this card is to size the class, and "the class is small / the other sites are all fine" is a complete and successful outcome.
The measured instance
packages/runtime/src/app-plugin.seed.test.ts's own bundleWithUser() helper builds { id, data: [...] } — no manifest key. That is exactly #15262's trigger shape.
⇒ The seed suite has been booting a double-collecting bundle all along, and every dataset in it was collected twice and — for a mode: 'insert' dataset — written twice. Driven on that PR: ql.insert called 2 times for one record before the fix, 1 after.
It stayed green the whole time, because the suite asserted with:
expect(insert).toHaveBeenCalledWith(/* … */)
⭐ toHaveBeenCalledWith asks "was this call ever made?". It says nothing about how many times. A doubled write satisfies it exactly as well as a single one — so the rig that existed to prove the seed path works was, for that property, structurally unable to see the defect it was booting.
⛔ #15262 closes that instance (three new pins, one of them counting calls). This card is about whether the idiom hides anything else.
Why the class is worth sizing
⭐ It is the same shape this lane has cleared repeatedly today — a green that was never earned — but located in a test idiom rather than in a gate or a ledger, which is what makes it hard to see:
⇒ In every one of those, the instrument reported a complete, clean answer over something it could not observe. ⚠️ And the failure mode this idiom hides — idempotence — is precisely the property a seed loader, a replay path, a retry, or a hook dispatcher most needs asserted.
What would settle it
- Size the population: how many
toHaveBeenCalledWith assertions stand alone, with no sibling toHaveBeenCalledTimes / toHaveBeenCalledOnce / mock.calls.length on the same spy in the same test?
- ⛔ Do not mass-convert. Most of them are fine: many assertions genuinely do not care about arity, and adding a count where none is meant would pin a number nobody chose — a new over-claim in place of the old one. ⚠️ The card is about the sites where repeat-count is part of the contract and nothing checks it.
- ⭐ The discriminating question for each site: would a doubled call be a defect here? Seed application, replay, idempotent writes, hook dispatch and anything behind a retry all answer yes; a formatting call or a one-shot lookup answers no.
- If the population turns out to be large, ⚠️ the honest deliverable is likely a census with a rule, not a sweep of edits.
Verified by this seat
The toHaveBeenCalledWith semantics are the vitest/jest contract and are not in dispute. The instance is the dev's measurement on PR #15605, reported here as such: ⛔ this seat did not re-run the 2-then-1 ql.insert drive, and verified only that PR #15605's guard mirrors its sibling byte for byte (manifest.data !== this.collections.data at the repaired site; manifest.translations !== this.collections.translations at app-plugin.ts:1758).
⛔ Not deduped — no dedup search was run for this card.
Refs: #15262 · PR #15605 · #15027 · #15500 · #14356.
Measured by the
os-devseat on #15262 (sessionsession_01D47qPfEWVPmhguWgBZCi5N, PR #15605) and handed up as "reported so the reading is not lost" rather than filed — it correctly judged its own instance out of scope. Filed by thedomain:cliexecution PM seat (#6024) for the part that outlives that instance. Unassigned, bare, for triage.⛔ One instance is measured. The population is not. ⇒ The first task on this card is to size the class, and "the class is small / the other sites are all fine" is a complete and successful outcome.
The measured instance
packages/runtime/src/app-plugin.seed.test.ts's ownbundleWithUser()helper builds{ id, data: [...] }— nomanifestkey. That is exactly #15262's trigger shape.⇒ The seed suite has been booting a double-collecting bundle all along, and every dataset in it was collected twice and — for a
mode: 'insert'dataset — written twice. Driven on that PR:ql.insertcalled 2 times for one record before the fix, 1 after.It stayed green the whole time, because the suite asserted with:
⭐
toHaveBeenCalledWithasks "was this call ever made?". It says nothing about how many times. A doubled write satisfies it exactly as well as a single one — so the rig that existed to prove the seed path works was, for that property, structurally unable to see the defect it was booting.⛔ #15262 closes that instance (three new pins, one of them counting calls). This card is about whether the idiom hides anything else.
Why the class is worth sizing
⭐ It is the same shape this lane has cleared repeatedly today — a green that was never earned — but located in a test idiom rather than in a gate or a ledger, which is what makes it hard to see:
ExpressionInputSchema/SettingsVisibilityInputSchemapositions — the 8CronExpressionInputSchemaand 3TemplateExpressionInputSchemasites sit outside the ratchet, unclassified #15027: a ratchet structurally blind to two dialects.file:field, so two DIFFERENT surfaces declaring the same key in one file collapse into one row —field.zod.ts:requiredWhenclassifies a server-enforced gate and a "nothing reads it" grid cell together #15500: a ratchet key that collapses distinct surfaces.IHttpResponseliterals in packages/rest are green because nothing checks them — and 5 of them for a different reason than #13454 recorded #14356: a census that cannot see anonymous literals.⇒ In every one of those, the instrument reported a complete, clean answer over something it could not observe.⚠️ And the failure mode this idiom hides — idempotence — is precisely the property a seed loader, a replay path, a retry, or a hook dispatcher most needs asserted.
What would settle it
toHaveBeenCalledWithassertions stand alone, with no siblingtoHaveBeenCalledTimes/toHaveBeenCalledOnce/mock.calls.lengthon the same spy in the same test?Verified by this seat
The
toHaveBeenCalledWithsemantics are the vitest/jest contract and are not in dispute. The instance is the dev's measurement on PR #15605, reported here as such: ⛔ this seat did not re-run the 2-then-1ql.insertdrive, and verified only that PR #15605's guard mirrors its sibling byte for byte (manifest.data !== this.collections.dataat the repaired site;manifest.translations !== this.collections.translationsatapp-plugin.ts:1758).⛔ Not deduped — no dedup search was run for this card.
Refs: #15262 · PR #15605 · #15027 · #15500 · #14356.