Repository navigation
Qualify definite registration conflicts against the SQL proposal - #1273
sidneyswift merged 8 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 987d1f7bb4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
There was a problem hiding this comment.
All reported issues were addressed across 8 files
Architecture diagram
sequenceDiagram
participant Test as Qualification Test
participant Domain as Proposed Registration Domain
participant Port as Storage Port (execute)
participant SQL as PostgreSQL (pg_temp)
participant Fixture as Fixture/Setup
Note over Test,Fixture: Conflict Classification Flow
Test->>Domain: create() with P2101-triggering input
Domain->>Port: storage.create(call)
Port->>Port: Check injectedFailure
alt Real SQL operation (no injected failure)
Port->>SQL: Execute registration function
SQL-->>Port: SQLSTATE P2101 (conflict)
Port->>Port: Map to ProposedStorageFailure("conflict")
Port-->>Domain: Throw conflict error
Domain-->>Test: kind: "conflict"
else Injected P0001/P2102
Port->>SQL: SELECT pg_temp.qualification_failure($1)
SQL-->>Port: Error with code P0001/P2102
Port->>Port: Map to outcome_unknown
Port-->>Domain: Throw generic error
Domain-->>Test: kind: "outcome_unknown"
else Injected transport failure
Port->>Port: Throw synthetic Error
Port-->>Domain: Throw generic error
Domain-->>Test: kind: "outcome_unknown"
end
Note over Test,Fixture: Read P2101 Classification
Test->>Domain: read() with P2101-injecting input
Domain->>Port: storage.read(call)
Port->>SQL: SELECT pg_temp.qualification_failure('P2101')
SQL-->>Port: Error with code P2101
Port->>Port: Check operation is create (false)
Port-->>Domain: Throw generic error
Domain-->>Test: kind: "outcome_unknown"
Note over Test,Fixture: Descriptor Validation
Test->>Domain: create/read with policy
Domain->>Domain: Validate databaseHead matches f507a776
alt Valid descriptor
Domain-->>Test: Proceed to storage
else Invalid descriptor
Domain-->>Test: Reject before storage
end
Note over Test,Fixture: State Preservation
Test->>Fixture: registrationState() snapshot
Fixture->>SQL: SELECT all 5 tables
SQL-->>Fixture: Row snapshots
Fixture-->>Test: saved state
Test->>Domain: Trigger conflict/unknown
Test->>Fixture: registrationState() verify
Fixture->>SQL: SELECT all 5 tables
SQL-->>Fixture: Row snapshots
Fixture-->>Test: Verify unchanged
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
There was a problem hiding this comment.
0 issues found across 3 files (changes from recent commits).
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Auto-approved: Inactive proposed-registration candidate re-pinned to a new SQL proposal source and receipt; tests/docs qualify only create P2101 as conflict and reject old descriptors. No production route, storage, auth, migration, or policy activation changes.
View guided diff | Turn on auto-fix | Re-trigger cubic
The inactive registration SQL proposal now distinguishes its two definite conflicts with P2101. This updates the strict proposal descriptor and freshly captured receipt to Database #138 source f507a77696f20429f977df9885d6c8c11a5f304b, then qualifies the actual create/read domain against that exact source.
Only create P2101 maps to the existing conflict kind; 42501 remains denied, and generic/unrecognized/transport errors plus read P2101 remain unknown. Tests preserve real committed-response-loss recovery, original-key replay, authority-before-replay and all five registration tables. Synthetic error controls are explicitly distinguished from real SQL operations. No production storage factory, route, authentication behavior, migration or policy activation is added. Database #138 remains draft, unmerged and unapplied.
Validation: PostgreSQL 15.10 and 17.7 each passed 12 joined cases on Node 24.18.0 with verified cleanup. All 130 controlled domain/MCP cases, scoped TypeScript, lint and formatting passed. Independent exact-source review passed. The joined SQL suite is excluded from ordinary CI; no Node22 joined execution is claimed. Eight API paths cumulatively change from accepted main f8ec0be; lifecycle/source/network guards are unchanged. Final merge remains subject to coordinator approval.
Summary by cubic
Updates the inactive registration adapter to qualify definite registration conflicts against the accepted SQL proposal successor. The strict policy descriptor and golden receipt now pin Database #138 commit
f507a77696f20429f977df9885d6c8c11a5f304binstead of the historical df7 descriptor, and incompatible descriptors are rejected before either storage port.pg_tempfunction with deliberately misleading conflict text, kept explicitly distinct from real SQL operations; failed attempts must leave all five registration tables and the original receipt unchanged.0769bc1957fce38bd6b847d342eae904044ae821, with the original pre-joined compatibility source recorded separately.Written for commit 947c9fb. Summary will update on new commits.