Skip to content

feat(database): generate application ACL matrix (OMN-15355) - #2568

Merged
jonahgabriel merged 3 commits into
jonah/omn-15418-p0-replace-raw-db_io-loading-with-typed-declarations-andfrom
jonah/omn-15355-generated-acl-matrix
Jul 30, 2026
Merged

jonahgabriel merged 3 commits into
jonah/omn-15418-p0-replace-raw-db_io-loading-with-typed-declarations-andfrom
jonah/omn-15355-generated-acl-matrix

Conversation

@jonahgabriel

@jonahgabriel jonahgabriel commented Jul 30, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Adds typed, contract-driven principal inventories, ACL policies, topology inputs, and object evidence for the one-application-database separation plan.
  • Adds a deterministic generator that resolves immutable Git source pins and emits a candidate ACL matrix covering database CONNECT, role membership, schemas, tables/views, sequences, exact-signature routines, and default privileges.
  • Adds an isolated PostgreSQL 16 proof harness and hosted workflow. The candidate is deliberately fail-closed (BLOCKED) while production evidence is incomplete; no production SQL, live database mutation, RLS, cutover, deploy, or restart is included.

Stack

Stacked-Parent: #2548

Evidence

  • Candidate matrix: 112 objects, 580 ACL rows, 60 default ACL rows, 332 blockers, 34 scaffold blockers; full/scaffold outcomes are both BLOCKED as intended.
  • Determinism: repeated generation is byte-identical; the observed pre-change ACL artifact is byte-identical across proof runs.
  • Fresh native PostgreSQL 16.14 cold proof: acl_status=PASS postgres_major=16 objects=21 rows=200 defaults=96.
  • Focused ACL suite: 51 passed, 1 skipped (Docker-only skip).
  • Validation subtree plus ACL CI: 1165 passed.
  • Designated .200 pre-push gate: mypy PASS, architecture PASS, full governed unit suite 22428 passed, 40 skipped.
  • Independent review: cumulative feature review PASS; type-gate delta PASS with cumulative HEAD confirmed; final protocol-registry delta PASS.

Source pins

The proof lock records exact repository revisions and SHA-256 digests for topology, typed ownership loading, Kubernetes topology projection, relation inventory, service ownership manifests, and the sanitized legacy fixture. Generation rejects missing or drifted sources.

Safety / rollout

  • Candidate evidence only; production SQL is absent whenever any blocker remains.
  • No live database or runtime changes were performed.
  • Hosted Docker/PostgreSQL 16 CI remains the authoritative container proof.
  • Deployment/receipt evidence and cutover are separate downstream gates.

Ticket: OMN-15355

@coderabbitai

coderabbitai Bot commented Jul 30, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 075f3ee1-c212-4ea8-b300-a22ab71c3011

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

@jonahgabriel
jonahgabriel marked this pull request as ready for review July 30, 2026 16:16
@jonahgabriel
jonahgabriel force-pushed the jonah/omn-15418-p0-replace-raw-db_io-loading-with-typed-declarations-and branch from 9236ab4 to ec71d67 Compare July 30, 2026 16:29
@jonahgabriel
jonahgabriel force-pushed the jonah/omn-15355-generated-acl-matrix branch from ddee8d6 to f4ce8b0 Compare July 30, 2026 16:32
@jonahgabriel
jonahgabriel merged commit 3b03156 into jonah/omn-15418-p0-replace-raw-db_io-loading-with-typed-declarations-and Jul 30, 2026
14 checks passed
@jonahgabriel
jonahgabriel deleted the jonah/omn-15355-generated-acl-matrix branch July 30, 2026 16:35
jonahgabriel added a commit that referenced this pull request Jul 31, 2026
* feat(database): generate application ACL matrix

* fix(database): satisfy ACL type gates

* test(database): register ACL role-state protocol

---------

Co-authored-by: t <t@t.t>
jonahgabriel added a commit that referenced this pull request Jul 31, 2026
* feat(runtime): type database ownership wiring (OMN-15418)

* fix(runtime): wire typed dynamic database contracts (OMN-15418)

* fix(runtime): compose typed database topology (OMN-15418)

* fix(validation): reject incomplete relation census (OMN-15418)

* fix(runtime): preserve legacy DLQ fallback (OMN-15418)

* feat(runtime): split projection database domains (OMN-15421) (#2558)

* feat(runtime): split projection database domains (OMN-15421)

* fix(runtime): register tenant binding resolver protocol (OMN-15421)

---------

Co-authored-by: jonahgabriel <jonahgabriel@users.noreply.github.com>

* feat(database): generate application ACL matrix (OMN-15355) (#2568)

* feat(database): generate application ACL matrix

* fix(database): satisfy ACL type gates

* test(database): register ACL role-state protocol

---------

Co-authored-by: t <t@t.t>

* fix(database): preserve ACL proof credentials (OMN-15355) (#2571)

* test(runtime): isolate config prefetch environment

* fix(database): preserve ACL proof credentials

---------

Co-authored-by: t <t@t.t>

* fix(OMN-15418): repair ACL gate regressions

---------

Co-authored-by: t <t@t.t>
Co-authored-by: jonahgabriel <jonahgabriel@users.noreply.github.com>
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.

2 participants