GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@dezren39

@dezren39 dezren39 commented Nov 4, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Follow-on to #5667 (which is still open, so this PR is stacked on its branch design/atlas-scaler-revision-2026-11-04; it appends §9 to the same design doc and merges into that branch, not directly to main).

Why: Drew's follow-up question (2026-11-04 17:00 CST): is there anything in Supabase that would be appropriate to move out, to get a cleaner definition of what belongs in Postgres vs what belongs in Turso/D1?

What §9 adds:

  • A bounded, read-only inventory of the muse-dev2 Supabase project (2026-11-04, Management API, information_schema/pg_stat only — no writes, no locks): 120 tables, ~473k live rows, ~345 MB. Totals verified with a second independent read.
  • The placement rule (one paragraph, consistent with §7 — no §7 placement changes): Postgres keeps only original multi-writer transactional state (queue/alert state, small relational cores); append streams, mirrors/derived analytics, staging rows and search corpora go to Turso; tiny read-mostly config/KV goes to D1; duplicate snapshots, empty shells and Supabase platform schemas are retired/left behind, never migrated.
  • Placement table for every schema/table group, with counts: KEEP in Postgres 21 tables / 24,223 rows (fleet core ~11.7k rows excl. pg_cron log) · CANDIDATE → Turso 42 tables / 446,099 rows (~94% of live rows) · CANDIDATE → D1 8 tables / 54 rows · RETIRE 49 tables / 2,693 rows (incl. 41 empty Supabase platform tables and 5 duplicate mirror_history_* tables).
  • Two open questions for Drew (§9.4): mirror tables' purpose (analytics vs backup of record) and whether D1 is wanted at all for 54 rows of config vs folding sources into Turso staging.

Design-level only — no data moves in this pass. Each recommended migration gets its own design issue in this repo, linked from hatch-personal#21.

Note on mechanics: the laptop git route was unavailable during this pass (laptop-agent proxy closed during CONNECT, twice), so the commit was created via the GitHub Git Data API from the sandbox and this PR via gh, per the established workaround. Diff verified: +106/−0, doc file only.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@dezren39
docs: Supabase placement audit addendum (§9) for the Scaler-era Atlas…
0d287f0
… revision

Read-only inventory of the muse-dev2 Supabase project (120 tables,
~473k live rows) classified against the §7 placement placements:
KEEP in Postgres 21 tables, candidate Turso 42, candidate D1 8,
retire 49. Adds the placement rule and per-group reasons as §9,
extending the revision doc without changing its placements.
Design-level only; no data moves.
@dezren39
dezren39 requested a review from a team as a code owner November 4, 2026 23:11
@coderabbitai

coderabbitai Bot commented Nov 4, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

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
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: defc741c-b89b-4706-92e2-98c60e6c532d

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
  • 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
  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T23:14:55.813520Z 0d287f0 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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Nov 4, 2026
design: move agent append streams (agent.events, agent.quota_records) from Supabase to Turso staging #5690
Open
design: move agent mirror_* analytics (20 tables) from Supabase to Turso #5691
Closed
design: move sheet-derived domain staging + curated rows (19 tables) from Supabase to Turso #5692
Open
design: move ci.events webhook ledger from Supabase to Turso staging #5693
Open
design: move tiny config/KV tables (sources registries, public.muse_notes) from Supabase to D1 — gated on §9.4 Q2 #5695
Open
@dezren39
docs: link the §9 migration design issues (#5690, #5691, #5692, #5693, …
6a3b53c
…#5695)
chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Nov 4, 2026
View reviewed changes

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

Copy link
Copy Markdown

There was a problem hiding this comment.

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: 0d287f00a6

ℹ️ 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".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread ...T21-27-34Z_design_atlas_scaler_revision/2026-11-04T21-27-34Z_design_atlas_scaler_revision.md
| `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. |

@chatgpt-codex-connector chatgpt-codex-connector Bot Nov 4, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

P2 Badge 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.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread ...T21-27-34Z_design_atlas_scaler_revision/2026-11-04T21-27-34Z_design_atlas_scaler_revision.md
| 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. |

@chatgpt-codex-connector chatgpt-codex-connector Bot Nov 4, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

P2 Badge 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.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@github-actions github-actions Bot assigned dezren39 Nov 5, 2026
@dezren39
dezren39 merged commit f600d09 into design/atlas-scaler-revision-2026-11-04 Nov 5, 2026
1 check passed

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the design/atlas-scaler-supabase-audit-2026-11-04 branch November 5, 2026 01:48
This was referenced Nov 5, 2026
audit: stranded fixes & regression mechanisms — merge drive record (WS-G 2026-11-04) #5880
Closed
Supabase → Turso migration — merged wave plan (executes #5690–#5693) #6581
Open
Turso replacement for the queue core: dedicated muse-queue DB + fleet queue-broker Turso backend #6741
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@dezren39 dezren39

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.