feat: upstream all changes from constructive-db main#74
Merged
Conversation
Syncs metaschema-schema and metaschema-modules from constructive-db main. metaschema-schema: - Add unique index on table_grant (table_id, privilege, grantee_name, field_ids) metaschema-modules: - agent_module: add knowledge_config, knowledge_policies, provisions columns - billing_module: add meter_sources_table_id/name columns - entity_type_provision: storage inference via presence (remove has_storage), updated comments for namespace_events - function_module: add provisions column - graph_module: rename exec_object_table_id → outputs_table_id, add provisions - inference_log_module: add retention default, scope, actor/entity FK columns, prefix-aware unique constraint - namespace_module: add provisions column, remove schema name columns from verify - storage_module: replace skip_default_policy_tables with provisions column - user_auth_module: rename audits_table_name default - Various verify file updates to match new column sets - relation_provision/secure_table_provision verify updates
… constructive-db database-jobs: - Add entity_id column to jobs and scheduled_jobs tables (billing scope) - Add entity_id parameter to add_job and add_scheduled_job functions - Forward entity_id in run_scheduled_job - Update tests with JWT claims setup partman: - Grant USAGE/EXECUTE on partman schema to authenticated role object-tree: - Add DROP FUNCTION set_props_and_commit to revert script - Update README object-store: - Update README encrypted-secrets-table: - Update test snapshot
🤖 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:
|
database-jobs: update test to use JWT claims instead of db_id parameter (add_scheduled_job no longer accepts db_id — reads from jwt.claims) encrypted-secrets-table: restore uuidv7() snapshot (postgres-plus:18 default) object-tree: restore DROP FUNCTION set_props_and_commit in revert script
secure_table_provision: node_type/node_data → nodes relation_provision: node_type/node_data → nodes, add create_index/expose_in_api blueprint: remove status/constructed_at/error_details/ref_map/constructed_definition compute_log_module: interval/premake → scope db_usage_module: rename columns to table_stats_*/query_stats_*, interval/premake → scope inference_log_module: interval/premake → scope storage_log_module: interval/premake → scope transfer_log_module: interval/premake → scope namespace_module: remove membership_type, add schema names/api names/provisions profiles_module: remove membership_type, add profile_templates columns
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
Comprehensive sync of all pgpm module source files from
constructive-db/pgpm-modules/(main) to this repo.metaschema-schema:
table_grant(table_id, privilege, grantee_name, COALESCE(field_ids))metaschema-modules (9 deploy tables updated, 10 verify files fixed):
agent_module— add knowledge_config, knowledge_policies, provisions columnsbilling_module— add meter_sources_table_id/name columnsentity_type_provision— storage inference via has_storage boolean, updated commentsfunction_module— add provisions columngraph_module— rename exec_object_table_id → outputs_table_id, add provisionsinference_log_module— interval/premake → retention + scopenamespace_module— add schema names, api names, provisions; remove membership_typestorage_module— replace skip_default_policy_tables with provisions columnuser_auth_module— rename audits_table_name defaultdatabase-jobs:
entity_idcolumn to jobs and scheduled_jobs tables (billing scope)entity_idparameter to add_job, add_scheduled_job, run_scheduled_jobpartman:
authenticatedroleobject-tree / object-store:
Review & Testing Checklist for Human
Notes
Source of truth:
constructive-io/constructive-dbmain branch. The only expected remaining diff ismetaschema-schema/pgpm.plan(node_type_registry entries removed from pgpm-modules per PR #73). CI is 24/24 green.Link to Devin session: https://app.devin.ai/sessions/8820b639fbd94ac8bfae86cfb01cf827
Requested by: @pyramation