Skip to content

Commit d5bfdb0

Browse files
committed
chore(scripts): re-point the facet-stub resolution control at insertMany's this.insert
The delete control matched no call site once delete stopped re-entering itself. Claude-Session: https://claude.ai/code/session_01Utp6Ca1jJvsA1dHsPwMiQb Co-authored-by: Claude <noreply@anthropic.com>
1 parent b21198a commit d5bfdb0

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

‎scripts/measure-durability-swallow-family.mjs‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -549,19 +549,19 @@ const RESOLUTION_CONTROLS = [
549549
+ 'two apart — which is the whole reason this family reads the resolver instead of the output.',
550550
},
551551
{
552-
file: 'packages/objectql/src/engine-delete-and-aggregate.ts',
553-
callee: 'delete',
554-
fromClass: 'DeleteAndAggregateFacet',
555-
resolvesIn: 'DeleteAndAggregateFacet',
552+
file: 'packages/objectql/src/engine-insert.ts',
553+
callee: 'insert',
554+
fromClass: 'InsertFacet',
555+
resolvesIn: 'InsertFacet',
556556
why:
557-
'The sharpest name in the vocabulary: `delete` is the callee the AWAITED discriminator exists to '
558-
+ 'police. Its one `this.delete(...)` re-entry (the after-abort unit re-running the delete) moved '
559-
+ 'out of `ObjectQL` in `engine.ts` with the body that holds it, into the facet module, where '
560-
+ '`this` is the facet host and its `delete` is the class\'s stub, which calls the facet\'s own '
561-
+ '`delete`. So the hop must land in `DeleteAndAggregateFacet`, the body the stub reaches, and in '
562-
+ 'no other. The cross-class collision in `engine.ts` (`ObjectRepository` and `ScopedContext` '
563-
+ 'declaring a method of an `ObjectQL` name) stays pinned by the `update` and `transaction` '
564-
+ 'controls beside this one.',
557+
'A facet module calling the method its own body implements: `insertMany` is `this.insert(...)`, '
558+
+ 'where `this` is the facet host and its `insert` is the class\'s stub, which calls the facet\'s own '
559+
+ '`insert`. So the hop must land in `InsertFacet`, the body the stub reaches, and in no other. '
560+
+ 'This control first pinned the same shape on `delete`, through the re-entry that reran a delete '
561+
+ 'inside its after-abort unit; that re-entry is gone (the unit opens around the engine body, '
562+
+ '#35167), and with it the file\'s only `this.delete(...)`. The cross-class collision in '
563+
+ '`engine.ts` (`ObjectRepository` and `ScopedContext` declaring a method of an `ObjectQL` name) '
564+
+ 'stays pinned by the `update` and `transaction` controls beside this one.',
565565
},
566566
{
567567
file: 'packages/objectql/src/engine.ts',
@@ -571,7 +571,7 @@ const RESOLUTION_CONTROLS = [
571571
why:
572572
'Third class in the same file: `ScopedContext` (line ~13469) also declares `transaction()`, and '
573573
+ 'it is the LAST one, so the flat index handed `ObjectQL`\'s own `this.transaction(...)` to a '
574-
+ 'class it has no relationship with. Pinned separately from `update`/`delete` because it proves '
574+
+ 'class it has no relationship with. Pinned separately from `update`/`insert` because it proves '
575575
+ 'the key is the OWNING CLASS and not "the second declaration".',
576576
},
577577
{

0 commit comments

Comments
 (0)