YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
OMNI-333 Supabase / PostgreSQL Deployment Pack
This pack includes real SQL for:
- A Construction Monitor using a SECURITY DEFINER trigger function on
public.blueprint_pages - A Deconstruction Detector using a scheduled PostgreSQL function
- A Reconstruction Engine using a scheduled PostgreSQL function
pg_cronjob definitions for Supabase scheduled execution- A deployment checklist and rollback script
Important implementation notes
- This pack assumes
public.blueprint_pagesexists and includes at least:content_json jsonbcontent_hash textintegrity_verified booleandrift_score numericfinality_sig textparent_id uuid
- This pack adds missing support columns if they do not already exist.
- The trigger is implemented as BEFORE INSERT OR UPDATE rather than AFTER INSERT/UPDATE. This is deliberate and correct: it lets PostgreSQL set classification and security fields atomically on the row without recursive self-updates.
- The scheduled jobs use
pg_cron. On Supabase, ensurepg_cronis enabled for your project/database. - The detector/reconstruction functions are SQL/PLpgSQL only. They keep the automation inside the DB trust boundary, consistent with your fail-closed/RLS-minimising design.
Files
01_support_schema.sqlโ support schema, tables, indexes, config, and helper functions02_construction_monitor.sqlโ SECURITY DEFINER trigger function + trigger03_detector_and_reconstruction.sqlโ detector and reconstruction functions04_supabase_scheduled_jobs.sqlโpg_cronjobs for hourly detector and frequent reconstruction05_deployment_checklist.mdโ step-by-step deployment sequence06_rollback.sqlโ rollback / uninstallation script
Configuration you must set after deployment
Populate root parent IDs in public.omni333_system_config:
real_root_parent_idgame_root_parent_idbridge_root_parent_id
This is how the construction monitor assigns parent pages when parent_id is missing.
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support