Skip to content

Commit b51ec85

Browse files
committed
chore(adr-anchors): anchor engine-realtime-publish.ts to ADR-0131 D8
The realtime publish helpers moved out of engine.ts with their docblocks, and five decision-letter citations left the anchored surface with them. This entry anchors the new module, so check-adr-anchors verifies those letters again, and states the D8 invariant the bulk organization stamp keeps: it reads the wall's recorded verdict and nothing else. Claude-Session: https://claude.ai/code/session_017kEHq65soeg6DRE9DDutT2 Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 2108463 commit b51ec85

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"file": "packages/objectql/src/engine-realtime-publish.ts",
3+
"adrs": [
4+
"ADR-0131"
5+
],
6+
"invariant": "ADR-0131 D8 (one predicate, computed once) on the realtime exit: `bulkEventOrganizationId` stamps `BulkDataEvent.organizationId` from the tenant wall's RECORDED verdict on the operation context (`tenantLayer0Verdict`) and nothing else — never re-derived from posture, the context's `tenantId` / `accessible_org_ids`, or the object schema's tenancy clauses, and never a second query on the publish path. `organization` names one organization; `organizations` names one only when the set has exactly one member; `none`, `deny`, no verdict, or a value that does not parse is ABSENT, never a guess. The per-record twin `eventOrganizationId` reads the written row's own tenant column through `resolveTenantFieldName`, never the caller's organization, and both go through the one `eventOrganizationValue` coercion ladder."
7+
}

0 commit comments

Comments
 (0)