Skip to content

Commit 034fbb2

Browse files
committed
refactor(metadata-protocol): move the record reads out of protocol.ts into protocol-record-reads.ts
Move-only: the existence check, the OCC version checks, the read made as the calling principal, the cross-object search and the write-response strip move unedited into protocol-record-reads.ts (RecordReadHost); the class keeps each method's name, docblock and signature. probeRecord and getMetaItemCached stay. The row-serving door pin follows searchAll's admission call and exposure decision to the new file. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J8pUyVs5eas1AjMdReJM7C
1 parent ce18e73 commit 034fbb2

3 files changed

Lines changed: 796 additions & 603 deletions

File tree

‎packages/core/src/security/row-serving-door-exposure.pin.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ type Classification =
7777

7878
/** Every non-test caller of the read admission, classified. */
7979
const CALLERS: Record<string, Classification> = {
80-
'packages/metadata-protocol/src/protocol.ts': {
80+
'packages/metadata-protocol/src/protocol-record-reads.ts': {
8181
kind: 'door',
8282
door: 'the cross-object search (`GET /search`, `searchAll`)',
8383
operation: 'search',
84-
decisionSite: 'packages/metadata-protocol/src/protocol.ts',
84+
decisionSite: 'packages/metadata-protocol/src/protocol-record-reads.ts',
8585
pin: 'packages/metadata-protocol/src/protocol.search-api-exposure.test.ts',
8686
},
8787
'packages/services/service-analytics/src/plugin.ts': {

0 commit comments

Comments
 (0)