Repository navigation
Qualify registration domain against disposable SQL proposal - #1271
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Pre-merge checks:
|
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: eb7590ba2c
ℹ️ 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 Dev as Developer
participant Run as run.mjs
participant Verify as Source Verification
participant Sup as supervise.py
participant Life as Database Lifecycle Supervisor
participant PG as PostgreSQL Cluster
participant Node as Node/Vitest Worker
participant Guard as socket-guard.mjs
participant Domain as Registration Domain
participant SQL as SQL Function Calls
Note over Dev,SQL: Disposable SQL Composition Qualification Flow
Dev->>Run: Execute with absolute paths (env -i)
Run->>Verify: Validate source bindings (SHA-256)
Verify-->>Run: All 19 API + 13 DB files match
Run->>Run: Verify Database git HEAD matches pin
Run->>Sup: Spawn Python supervisor (detached, clean env)
Sup->>Sup: Scrub env (no credentials, no NODE_OPTIONS)
Sup->>Life: Import reviewed Database lifecycle module
Life->>PG: Create disposable UTF8 cluster (no TCP listener)
Life-->>Sup: Owned Unix socket + worker lease
Sup->>Node: Spawn guarded Node with --import socket-guard.mjs
Node->>Guard: Initialize network denial (pre-auth)
Guard->>Guard: Block DNS/TCP/UDP/TLS/HTTP
Guard->>Guard: Allow only synthetic localhost answer for Vitest
Node->>Domain: Load actual create/read domain code
Domain->>SQL: Register application (single parameterized call)
SQL-->>Domain: SQL receipt
Domain->>Node: Return validated receipt
alt Explicit read authority granted
Node->>Domain: Read application with authority
Domain->>SQL: Read registration (single call)
SQL-->>Domain: Confirmed receipt
else No read authority
Node->>Domain: Attempt read
Domain->>SQL: Read denied (42501)
SQL-->>Domain: SQL authorization error
Domain->>Node: Map to "denied" failure
end
Node->>Guard: Validate owned socket lease (dev/ino/uid)
Guard-->>Node: Owned socket confirmed
Node->>Sup: Report receipts + fixture queries
Sup->>Life: Release lease via supervise()
Life->>PG: Verify worker/postmaster/socket cleanup
Life-->>Sup: Cleanup confirmed
Sup-->>Run: Exit code 0
Run->>Run: Remove launch home directory
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 4 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: Adds a disposable PostgreSQL qualification harness that runs the registration create/read domain against the pinned, unapplied Database 138 SQL proposal; all changes are test/tooling-only and ordinary test discovery excludes the suite.
View guided diff | Turn on auto-fix | Re-trigger cubic
The registration create/read domain previously had fixture-backed adapter tests but no direct exercise against the reviewed SQL proposal. This adds a standalone disposable PostgreSQL harness that invokes the actual domain with one parameterized SQL function call per storage operation, checks real receipts and explicit authority, and recovers an actual committed response only through original-input replay.
The eight-file slice pins API and inactive Database proposal inputs, admits only the owned PostgreSQL Unix socket, preloads network guards before auth/test code, and reuses the reviewed Database lifecycle supervisor. Native DNS is denied; Vitest receives a fixed synthetic localhost answer. The native socket connector is module-private, protocol/listen denials have explicit assertions, and fault results require matching readiness and cleanup receipts. Ordinary unit discovery excludes this opt-in SQL suite.
The launcher binds physical tracked non-env API bytes/types to the accepted revision, requires its ancestry, and limits cumulative changes to the eight qualification paths. It rejects unexpected tracked/untracked source before workers start, independently of Git index flags, stat caches or clean filters. Existing selected hashes remain additional checks. Environment-file contents are not read.
Accepted API #1270 merge
a2a6d6b70644fcda5b89c5bbec281573b2dab9e9is composed normally. All six incoming files remain byte-identical; only this harness's Vercel source hash was refreshed, with original baseline and accepted-composition provenance retained. Database pins are unchanged.Validation on final head
988263d81600afd77123cbf23496104ad04b04ee:env -iparent, with synthetic poison and confirmed worker/postmaster/socket cleanup.This adds no production storage factory, public route, MCP/runtime wiring or policy adoption. Database #138 remains unchanged, draft, unmerged and unapplied. Ordinary CI is not execution evidence for this new PostgreSQL composition suite. Source publication only; final merge remains separately gated.
Summary by cubic
Adds a disposable PostgreSQL qualification harness that runs the actual registration create/read domain against the exact inactive Database 138 SQL proposal, replacing fixture-only adapter coverage with real SQL execution.
The suite lives under
scripts/application-registration-proposal/sql-composition/and is excluded from ordinary unit discovery. It pins API and Database source files by SHA-256, reuses the reviewed Database lifecycle supervisor to own a disposable cluster, and denies native DNS, TCP, UDP, and unrelated Unix sockets before auth code loads. Vitest receives a synthetic localhost answer.42501/P0001errors without classifying failures from message text.outcome_unknownis never inferred as a conflict.signal,timeout,worker-exit) that must fail and still report verified worker/postmaster/socket cleanup, with network guard bypass paths closed and fault receipts validated.Written for commit 988263d. Summary will update on new commits.