Skip to content

Commit af73682

Browse files
committed
chore(scripts): record the objectql test-typecheck ratchet as NOT_DRIVER_MANAGED
`gen:test-typecheck-debt` in `@objectstack/objectql` had no recorded merge disposition, so `check:merge-driver` refused the branch. The artifact it writes is a shrink-only ratchet — the same file, generator and trade as its `packages/spec`, `packages/client` and `packages/rest` siblings — so recomputing it mid-merge would record whatever the half-merged tree compiles to and let a file that gained errors enter the ledger as merge noise instead of as red. It therefore takes the NOT_DRIVER_MANAGED side, with no `.gitattributes` route: routing a shrink-only ratchet is what that ledger exists to prevent. Accounting in `reconcileGenerators` is keyed per (owner, script), so the entry carries both `gen` and `owner: '@objectstack/objectql'`; the `packages/client` and `packages/rest` copies of the same generator are accounted the same way.
1 parent 3446811 commit af73682

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

‎scripts/regen-artifacts.mjs‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,20 @@ export const NOT_DRIVER_MANAGED = Object.freeze([
397397
'a SHRINK-ONLY ratchet — see `packages/client/test-typecheck-debt.json` directly above; '
398398
+ 'same generator, same per-package ledger, same reason a merge must never recompute it.',
399399
},
400+
{
401+
path: 'packages/objectql/test-typecheck-debt.json',
402+
gen: 'gen:test-typecheck-debt',
403+
owner: '@objectstack/objectql',
404+
why:
405+
'a SHRINK-ONLY ratchet — see `packages/client/test-typecheck-debt.json` above; same '
406+
+ 'generator, same per-package ledger, same reason a merge must never recompute it: the '
407+
+ 'half-merged tree is not the tree whose type errors this file records, so a file that '
408+
+ 'GAINED errors would enter the ledger as merge noise instead of as red. It is the FOURTH '
409+
+ 'manifest to define `gen:test-typecheck-debt` — the "three manifests" in the client entry '
410+
+ "above and in `reconcileGenerators`'s header is #13731's count of the ledgers that existed "
411+
+ 'then, never a bound, and the per-(owner, script) key is exactly what lets a fourth one '
412+
+ 'arrive needing nothing but this row.',
413+
},
400414
{
401415
path: 'packages/sdui-parser/objectui-lockstep.json',
402416
gen: 'gen:sdui-lockstep',

0 commit comments

Comments
 (0)