Repository navigation
Resolve tenant EF consumer contexts in delivery scopes - #408
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Review of PR 408I read the diff against AGENTS.md and checked the tenancy probe against the composition code. Correctness
Notes (non-blocking)
Performance
Docs
I found no blocking issues. |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
The earlier Codex wait is resolved: summary comment 6757844319 now reports completed with no findings for head 3bb5bea. Claude run 42747374115/1 is CLEAR for the same head. Rechecked every review surface: no reviews, inline comments or review threads requiring disposition. Claude’s optional notes need no change: fixed-store composition still uses the boundary directly and the authorization-count explanation already exists. Verified the complete archived evidence inventory and all 35 SHA-256 hashes at /Users/tom/git/Relayer-evidence/pr-408/3bb5beae030d53f4283129ae83f0008a1de25f75/. No code changes or new validation in this unit. Proceeding through the guarded promotion and auto-merge script. |
EF consumers whose native scoped DbContext factory requires an authorized tenant currently fail during startup composition, before an incoming tenant exists. With
AddRelayerTenancy, compose without resolving a startup context and validate the selected context before each delivery/retry transaction instead. Fixed-store consumers retain startup validation.The existing EF transaction and execution-strategy boundaries now read scope-specific inbox/outbox settings, authorize through application-owned native factories after header restoration, and validate retry/verification scopes. The existing immutable outbox configuration uses EF native options metadata so validation avoids enumerating potentially lazy interceptor sequences. No tenant cache or resolver facade is introduced.
Closes #403
Part of #38. Durable tenant/store/header metadata binding remains #404; native catalog dispatch and its shared connection budget remain #405. Saga model startup validation remains documented separately.
Native/existing reuse: EF Core 10.0.14 native scoped
AddDbContextoptions callbacks andIDbContextOptionsExtension; Npgsql EF 10.0.3NpgsqlDataSourceconfiguration and native execution strategies; Relayer tenant restoration, consumer transaction/inbox boundary, outbox interceptors and retry/verification scopes. No native capability is duplicated. Inspected pinned source: EF scoped registration, EF interceptor collections, Npgsql strategy factory.Validation: Release solution build; all 296 PostgreSQL tests (including native retries and three tenant databases/schemas);
npm ciand website build; all 8 EF consumer benchmark Dry cases. Dry is execution coverage, not steady-state performance evidence. Extended the existing MemoryDiagnoser benchmark with tenancy on/off alongside native retries/isolation; addedperformancebecause validation and strategy selection now occur per tenant delivery. Native scoped configuration construction remains scoped; validation adds native option lookups and capability branches, without a per-attempt iterator, capturing callback or tenant cache.Website reference/guide, roadmap/home status, design §6.6 and D45 reflect the implemented boundary. The existing five low-severity npm audit findings match #101; dependency manifests are unchanged.
Validation evidence archived at
/Users/tom/git/Relayer-evidence/pr-408/3bb5beae030d53f4283129ae83f0008a1de25f75/with SHA-256 inventory verified against original logs. Includes reports, benchmark inputs/results, pinned source captures and final compiled binaries. Retained while the PR is open.