Skip to content

refactor: merge zomes into unified mews zome#294

Merged
zippy merged 3 commits intomain-0.6from
zome-merge
Mar 24, 2026
Merged

refactor: merge zomes into unified mews zome#294
zippy merged 3 commits intomain-0.6from
zome-merge

Conversation

@zippy
Copy link
Copy Markdown
Collaborator

@zippy zippy commented Mar 23, 2026

Summary

  • Merges follows, likes, agent_pins, and ping zomes (both integrity and coordinator) into the mews zome
  • Reduces WASM module count from 11 to 4 (profiles_integrity, mews_integrity, profiles, mews)
  • Eliminates ~8 cross-zome serialization round-trips per feed item by replacing call_local_zome() with direct function calls
  • Removes follows_types and hc_call_utils crates that are no longer needed

Details

  • 6 new link types appended to mews_integrity::LinkTypes enum (FollowerToCreators, CreatorToFollowers, LikerToHashes, HashToLikers, PinnerToHashes, HashToPinners)
  • Hardcoded zome indices in agent_to_notifications.rs updated to reflect merged enum ordinals
  • All UI callZome references updated from old zome names to "mews"
  • All test callZome references updated similarly
  • Net result: -1022 lines deleted, +290 lines added across 48 files

DNA-breaking change — incompatible with networks running the old DNA hash.

Test plan

  • cargo build passes (verified)
  • Run full test suite with npm test
  • Verify like/unlike, follow/unfollow, pin/unpin work in UI
  • Verify notifications load correctly
  • Verify feed loading and mew creation work

zippy added 3 commits March 23, 2026 17:16
Consolidates 5 integrity zomes and 6 coordinator zomes down to
2 integrity (profiles_integrity, mews_integrity) and 2 coordinator
(profiles, mews) zomes. This eliminates cross-zome serialization
overhead and reduces WASM module count from 11 to 4.

- Merge follows/likes/agent_pins link types into mews_integrity LinkTypes enum
- Move coordinator logic into mews, replacing call_local_zome() with direct calls
- Merge ping health check into mews coordinator
- Update hardcoded zome indices in agent_to_notifications.rs
- Update all UI and test zome_name references
- Remove follows_types and hc_call_utils crates

DNA-breaking change: incompatible with networks running the old DNA.
@zippy zippy merged commit bf9d3e7 into main-0.6 Mar 24, 2026
2 checks passed
@zippy zippy deleted the zome-merge branch March 24, 2026 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant