Skip to content

Commit 2a5a3a3

Browse files
committed
chore(swallow-census): the delete resolution control follows its call site into the facet
Claude-Session: https://claude.ai/code/session_01ADHkmNmrFUKGH6LP8Jj8ZV Co-authored-by: Claude <noreply@anthropic.com>
1 parent 5cf3f79 commit 2a5a3a3

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

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

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -546,15 +546,19 @@ const RESOLUTION_CONTROLS = [
546546
+ 'two apart — which is the whole reason this family reads the resolver instead of the output.',
547547
},
548548
{
549-
file: 'packages/objectql/src/engine.ts',
549+
file: 'packages/objectql/src/engine-delete-and-aggregate.ts',
550550
callee: 'delete',
551-
fromClass: 'ObjectQL',
552-
resolvesIn: 'ObjectQL',
551+
fromClass: 'DeleteAndAggregateFacet',
552+
resolvesIn: 'DeleteAndAggregateFacet',
553553
why:
554-
'The same collision on the sharpest name in the vocabulary. `delete` is the callee the AWAITED '
555-
+ 'discriminator exists to police, and `ObjectRepository.delete` is a different method from '
556-
+ '`ObjectQL.delete`; resolving one into the other is exactly the "invents a write" failure the '
557-
+ '`sameFileCallee` rule was written for, arriving one layer further in.',
554+
'The sharpest name in the vocabulary: `delete` is the callee the AWAITED discriminator exists to '
555+
+ 'police. Its one `this.delete(...)` re-entry (the after-abort unit re-running the delete) moved '
556+
+ 'out of `ObjectQL` in `engine.ts` with the body that holds it, into the facet module, where '
557+
+ '`this` is the facet host and its `delete` is the class\'s stub, which calls the facet\'s own '
558+
+ '`delete`. So the hop must land in `DeleteAndAggregateFacet`, the body the stub reaches, and in '
559+
+ 'no other. The cross-class collision in `engine.ts` (`ObjectRepository` and `ScopedContext` '
560+
+ 'declaring a method of an `ObjectQL` name) stays pinned by the `update` and `transaction` '
561+
+ 'controls beside this one.',
558562
},
559563
{
560564
file: 'packages/objectql/src/engine.ts',

0 commit comments

Comments
 (0)