feat
patch
social
task/social-domain-phase00
#1 / 1
feat(social): Phase 00 — SocialPlugin core domain plugin
Implements the full MuseDomainPlugin protocol for the social domain.
- muse/plugins/social/plugin.py: SocialPlugin with all 6 required methods (snapshot, diff, merge, drift, apply, schema). Merge is set-algebraic for posts/, reactions/, and graph/ namespaces; profile.json conflicts on concurrent edits from both branches. Follow graph uses per-person files (graph/follows/<handle>.json) so set-union is automatic. - muse/plugins/registry.py: registers SocialPlugin under domain key 'social' - tests/test_social_plugin.py: 43 tests across 6 classes — shape, schema, in-memory ops, merge semantics, and docstring coverage. All RED before implementation, all GREEN after.
sha256:fb3818f8b5ecd70c1f7d4b010eba61742d0c4994ef3abb96004a52dee9d12860
sha
+109
~1
symbols
sha256:69f4a437bc06d4764632e76ffc46ecda3c63437cab3664c391e3ec41907152dc
snapshot
+109
symbols added
~1
symbol modified
0
dead code introduced
Semantic Changes
110 symbols
+
test_apply_returns_live_state_unchanged
method
method test_apply_returns_live_state_unchanged L230–234
+
test_diff_add_post_produces_insert_op
method
method test_diff_add_post_produces_insert_op L175–180
+
test_diff_remove_post_produces_delete_op
method
method test_diff_remove_post_produces_delete_op L182–187
+
test_diff_replace_post_produces_replace_op
method
method test_diff_replace_post_produces_replace_op L189–194
+
test_snapshot_passes_through_manifest
method
method test_snapshot_passes_through_manifest L165–169
+
test_merge_both_sides_add_different_posts_no_conflict
method
method test_merge_both_sides_add_different_posts_no_conflict L243–252
+
test_merge_both_sides_add_same_post_no_conflict
method
method test_merge_both_sides_add_same_post_no_conflict L254–262
+
test_merge_concurrent_profile_edits_conflict
method
method test_merge_concurrent_profile_edits_conflict L289–297
+
test_merge_only_left_edits_profile_no_conflict
method
method test_merge_only_left_edits_profile_no_conflict L299–307
+
test_merge_only_right_edits_profile_no_conflict
method
method test_merge_only_right_edits_profile_no_conflict L309–317
+
test_profile_dimension_not_independent
method
method test_profile_dimension_not_independent L145–147
+
test_resolve_plugin_by_domain_returns_social_plugin
method
method test_resolve_plugin_by_domain_returns_social_plugin L95–97
← Older
Oldest on task/social-domain-phase00
All commits
Newer →
Latest on task/social-domain-phase00
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:fb3818f8b5ecd70c1f7d4b010eba61742d0c4994ef3abb96004a52dee9d12860 --body "your comment"
No comments yet. Be the first to start the discussion.