feat: upstream agent_module, function_module, namespace_module + AuthzMemberOwner/DataMemberOwner#72
Merged
Merged
Conversation
…zMemberOwner/DataMemberOwner From constructive-db PRs #1327 and #1332: metaschema-modules: - Add agent_module table DDL (thread/message/task/prompt/knowledge config) - Add function_module table DDL (entity-aware function definitions) - Add namespace_module table DDL (entity-aware namespace provisioning) - Update entity_type_provision with 'agents' column for agent_module config - Update pgpm.plan with new table entries metaschema-schema: - Add AuthzMemberOwner to node_type_registry seed (compound ownership+membership policy) - Add DataMemberOwner to node_type_registry seed (compound data node)
🤖 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:
|
…erify from constructive-db Complete sync of both packages from the constructive-db source of truth: metaschema-modules: - Add all missing module tables (compute_log, db_usage, merkle_store, storage_log, transfer_log, graph_module, etc.) - Add all missing core tables (connected_accounts, crypto_addresses, emails, invites, limits, memberships, permissions, profiles, rls, sessions, user_state, etc.) - Updated entity_type_provision with agents column - Full deploy/revert/verify + pgpm.plan + compiled SQL metaschema-schema: - Full node_type_registry_seed.sql with all 79 node types - All deploy/verify files synced Source: constructive-db main branch (all 28 CI checks green)
…e stale snapshot - Fix compute_log_module verify: add scope column, remove include_database_id - Fix db_usage_module verify: match actual table_stats/query_stats columns - Fix storage_log_module verify: add scope column - Fix transfer_log_module verify: add scope column - Fix namespace_module verify: add public_schema_name, private_schema_name, api_name, private_api_name - Add missing verify/revert for: agent_module, graph_module, merkle_store_module, entity_type_provision - Delete stale snapshot (will regenerate on test run) - Restore deploy/verify files that were accidentally overwritten from constructive-db
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
Syncs entity-scoped module table DDL and node_type_registry updates from constructive-db (PRs #1327, #1332) to the canonical pgpm-modules repo.
metaschema-modules changes:
agent_moduletable — entity-aware AI agent config (thread/message/task/prompt/knowledge table names, has_knowledge flag, api_name)function_moduletable — entity-aware function definitions with namespace FKnamespace_moduletable — entity-aware namespace provisioning with rename proxyentity_type_provision— addedagents jsonbcolumn for agent_module config in entity provisioningpgpm.planwith new table entriesmetaschema-schema changes:
node_type_registry_seed.sql— added 6 new node types:AuthzMemberOwner(compound ownership + entity membership RLS)DataMemberOwner(creates owner_id + entity_id + applies AuthzMemberOwner)DataChunks(child table with vector embeddings for RAG)SearchSpatialAggregate(spatial aggregate queries)CheckFileUpload(file upload validation)LimitTrackUsageremoved (moved to billing module)Review & Testing Checklist for Human
agent_moduletable DDL matches what constructive-db is actually usingentity_type_provision.agentscolumn is nullable and defaults to NULL (backwards-compatible)pgpm verifyagainst a fresh database to ensure the plan deploys cleanlyNotes
function_moduleandnamespace_moduletables were added in earlier PRs (#1314, #1315) but never synced upstreamsql/files include the compiled output from all deploy/ sourcesLink to Devin session: https://app.devin.ai/sessions/8820b639fbd94ac8bfae86cfb01cf827
Requested by: @pyramation