gabriel / musehub public
feat BREAKING proposals task/proposal-models-v2 #19 / 19
AI Agent gabriel · 127 days ago · May 8, 2026 · Diff

feat(proposals): Phase 1 — proposal type system, merge strategy, dimensional models, dependency/simulation tables

- Add ProposalType, ProposalState, MergeStrategy enums to musehub/models/musehub.py - Add MergeConditions, ProposalCommentTarget Pydantic models - Add DimensionalRiskVector type alias - Extend ProposalCreate with proposal_type, is_draft, merge_conditions, merge_strategy, selective_domains, depends_on - Extend ProposalResponse with new fields + risk_score, dimensional_risk - Add 15 new columns to MusehubProposal ORM (proposal_type, is_draft, merge_conditions, merge_strategy, selective_domains, dimensional_risk, midi_*, payment_*, agent_*) - Add 3 new columns to MusehubProposalReview (reviewed_domains, domain_risk_acknowledged, suggested_merge_strategy) - Add MusehubProposalDependency ORM (DAG edges for Kahn ordering) - Add MusehubProposalSimulation ORM (cached phased-merge simulation results) - Migrations 0045, 0046, 0047 — applied to local Docker Postgres

sha256:8185f5a64c07b11ec6d6d7413e936f93d6d4bd86f3a7abce8d1b03e1c129b7f4 sha
+41 ~4 symbols
sha256:f2f440ba71dd77fed0e2ca37019b89f8b5986d5c6693154a39ed5be5f4489b0d snapshot
+41
symbols added
~4
symbols modified
0
dead code introduced
Semantic Changes 45 symbols
+ branch_labels variable variable branch_labels L14–14
+ depends_on variable variable depends_on L15–15
+ down_revision variable variable down_revision L13–13
+ downgrade function function downgrade L45–51
+ ARRAY import import ARRAY L10–10
+ JSONB import import JSONB L10–10
+ annotations import import annotations L6–6
+ op import import op L9–9
+ sa import import sa L8–8
+ revision variable variable revision L12–12
+ upgrade function function upgrade L18–42
+ branch_labels variable variable branch_labels L14–14
+ depends_on variable variable depends_on L15–15
+ down_revision variable variable down_revision L13–13
+ downgrade function function downgrade L39–51
+ ARRAY import import ARRAY L10–10
+ JSONB import import JSONB L10–10
+ annotations import import annotations L6–6
+ op import import op L9–9
+ sa import import sa L8–8
+ revision variable variable revision L12–12
+ upgrade function function upgrade L18–36
+ branch_labels variable variable branch_labels L14–14
+ depends_on variable variable depends_on L15–15
+ down_revision variable variable down_revision L13–13
+ downgrade function function downgrade L45–47
+ JSONB import import JSONB L10–10
+ annotations import import annotations L6–6
+ op import import op L9–9
+ sa import import sa L8–8
+ revision variable variable revision L12–12
+ upgrade function function upgrade L18–42
~ musehub/db/musehub_models.py .py 2 symbols added, 2 symbols modified
+ MusehubProposalDependency class class MusehubProposalDependency L759–792
+ MusehubProposalSimulation class class MusehubProposalSimulation L795–831
~ musehub/models/musehub.py .py 7 symbols added, 2 symbols modified
+ DimensionalRiskVector variable variable DimensionalRiskVector L875–875
+ MergeConditions class class MergeConditions L830–845
+ MergeStrategy class class MergeStrategy L821–827
+ ProposalCommentTarget class class ProposalCommentTarget L848–871
+ ProposalState class class ProposalState L810–818
+ ProposalType class class ProposalType L798–807
+ Enum import import Enum L9–9

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:8185f5a64c07b11ec6d6d7413e936f93d6d4bd86f3a7abce8d1b03e1c129b7f4 --body "your comment"