GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — docs: Supabase placement audit addendum (§9) — what moves out of Postgres by dezren39 · Pull Request #5689 · developing-today/code Conversation
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codex Review SummaryThis 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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 0d287f00a6
Your 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".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| | `ainventory` relational core: `models`, `provider_policies`, `notes`, `price_events`, `benchmark_results`, `measurement_events` | 6 | 1,994 | 2.7 MB | KEEP | Small original relational core holding ainventory's 8 FKs and feeding its views (`v_current_measurements`, `v_current_prices`, `v_rankings`, `v_threshold_metrics`); provider registry is also named in §7's fallback subset. | | ||
| | `alerts`: `incidents`, `incident_events`, `notification_sends`, `push_subscriptions` | 4 | 18 | 0.2 MB | KEEP | Alert state is explicitly named in §7's managed fallback subset; tiny, transactional (notification sends, incident lifecycle, 2 FKs). | | ||
| | `cron`: `job`, `job_run_details` | 2 | 12,559 | 2.3 MB | KEEP | pg_cron platform tables (the only 2 RLS policies in the project are here); they live and die with the Postgres instance, they are not fleet data to place. | | ||
| | `agent` append streams: `events`, `quota_records` | 2 | 166,965 | ~69 MB | → Turso | Append-only ledgers: `events` is 159k inserts / 0 updates in the window, `quota_records` is periodic plan/quota snapshots (jsonb payload, insert-only) — the §7 Phase A "high-write append ledgers" shape, staging-tier natives. | |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Preserve the transactional role of queue events
The insert-only counters do not make agent.events transaction-independent. In pm-stack/opencode-claimant/migration-0024.sql:69–72, the queue sweeper reads this table to decide whether an event_seen condition releases a parked task; lines 85–115 also update tasks and lane state and insert events within the same PostgreSQL function transaction. Implementing the proposed staging-tier placement would therefore split operational queue state across databases, not merely move an append-only analytics ledger. Keep operational events in the Postgres core, or explicitly require a transactional/outbox redesign before recommending this placement; the later read-consumer audit does not address that atomicity dependency.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| | Sheet-domain staging: `sheet_rows` + `ingest_batches` in `automation`, `engineering`, `finance`, `home`, `research` | 10 | 3,962 | 3.5 MB | → Turso | Same raw-staging shape as ainventory's, one copy per domain; staging belongs with the staging tier, not the system of record. | | ||
| | Sheet-domain curated rows: `events` in `automation`, `engineering`, `finance`, `home`, `research`, plus `engineering.records` and `ideas.ideas` | 7 | 8,385 | 9.6 MB | → Turso | Sheet-derived, dedupe-keyed query/search corpus: zero FKs in the domain schemas, insert-mostly, read by scan — corpus-shaped under §7, not transactional state. (`ideas.ideas` counted here: 554 rows, sheet-mirrored with `mirrored_at`.) | | ||
| | `ci.events` | 1 | 10,952 | 31.8 MB | → Turso | Append-only CI webhook ledger (10,957 inserts, 0 updates, ~2.9 KB jsonb payload/row); the fastest-growing table by bytes and a pure stream. Its `recent_failures` view is a scan query, portable to the Turso side. | | ||
| | Ingest source registries: `sources` in `ainventory`, `automation`, `engineering`, `finance`, `home`, `research`, `ideas` | 7 | 52 | 0.3 MB | → D1 | Tiny read-mostly ingest configuration (1–42 rows per domain, no transactions, no joins that matter) — KV/config-shaped state that does not need a relational engine. Moves only together with its domain's ingest pipeline. | |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Account for the batch-bound AA reader before splitting stores
For ainventory, these sources already participate in a cross-table consumer contract rather than serving only as independent configuration. pm-stack/aggregator/scripts/collect-fleet-feed.ts:299–378 builds the Cost Explorer payload in one PostgreSQL statement using sources, sheet_rows, the retained benchmark_results, and retained views, with source provenance and test-run rows selected by v_latest_import_batch. Moving sources to D1 and sheet rows to Turso would make that statement unusable; moving only the ingest pipeline, as required here, does not migrate this reader or preserve its batch consistency. Qualify these placements with a coordinated collector redesign or retain the batch-bound tables together.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
f600d09
into
design/atlas-scaler-revision-2026-11-04
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.