Skip to content

Qualify definite registration conflicts against the SQL proposal - #1273

Merged
sidneyswift merged 8 commits into
mainfrom
codex/application-registration-conflict-compatibility-2104
Nov 18, 2026
Merged

sidneyswift merged 8 commits into
mainfrom
codex/application-registration-conflict-compatibility-2104

Conversation

@sidneyswift

@sidneyswift sidneyswift commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

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 f507a77696f20429f977df9885d6c8c11a5f304b instead of the historical df7 descriptor, and incompatible descriptors are rejected before either storage port.

  • Only create-operation P2101 maps to the existing conflict kind; 42501 remains denied, and read P2101, generic P0001, unrecognized codes, and transport failures stay outcome_unknown.
  • Synthetic error controls use a session-local pg_temp function 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.
  • The golden receipt is a fresh PostgreSQL 15.10 capture with new IDs and timestamp, not a relabeling of the prior fixture.
  • The joined SQL qualification is now bound to the accepted documentation successor 0769bc1957fce38bd6b847d342eae904044ae821, with the original pre-joined compatibility source recorded separately.

Written for commit 947c9fb. Summary will update on new commits.

View guided diff Turn on auto-fix

@vercel

vercel Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
api Ready Ready Preview Nov 18, 2026 5:45am UTC

Request Review

@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T05:40:55.346796Z 987d1f7 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Loading

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@sidneyswift
sidneyswift merged commit ec284cb into main Nov 18, 2026
11 checks passed

This branch was successfully deployed

1 active deployment
Preview — 947c9fb4 Deployed Nov 18, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant