feat: add constructive-platform-seed (compute API + domain + site metadata)#63
Open
pyramation wants to merge 1 commit into
Open
feat: add constructive-platform-seed (compute API + domain + site metadata)#63pyramation wants to merge 1 commit into
pyramation wants to merge 1 commit into
Conversation
…adata) Adds a new pgpm package that seeds the platform metadata required for API resolution, mirroring how constructive-db's provisioning system attaches apis/domains/sites in production — without RLS. Seeds (all idempotent via ON CONFLICT): - metaschema_public.database row (well-known zero UUID) - metaschema_public.schema rows for all 5 module public schemas - services_public.apis 'compute' API (authenticated/anonymous, public) - services_public.api_schemas linking compute API to all 5 schemas - services_public.domains 'compute.localhost' routing to compute API - services_public.sites + 'app.localhost' site domain Deployment order in up.sh: modules → platform-seed → infra-services → infra-seed The platform-seed declares requires='metaschema-schema,services' which pgpm resolves from extensions/@pgpm/ (vendored upstream packages).
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds
pgpm/constructive-platform-seed— an idempotent seed package that registers the platform metadata required for API resolution, mirroring how constructive-db's provisioning system attaches apis/domains/sites in production without RLS.The seed creates the full routing chain the server needs to resolve a request into schemas:
All inserts use
ON CONFLICT DO NOTHINGfor idempotency. ThecomputeAPI exposes all 5 module public schemas (constructive_infra_public,_store_public,_objects_public,_fbp_public,_storage_public).scripts/up.shdeployment order updated:The package declares
requires = 'metaschema-schema,services'— pgpm resolves these from the vendoredextensions/@pgpm/packages (no new external deps).Link to Devin session: https://app.devin.ai/sessions/633efc205f0c445dbbb61c40679c2f78
Requested by: @pyramation