Skip to content

feat(ump): Universal Memory Protocol (UMP) reference implementation (#742) - #862

Merged
AmitoVrito merged 2 commits into
SynapseKit:mainfrom
DhruvGarg111:feat/issue-742-ump
Jul 29, 2026
Merged

AmitoVrito merged 2 commits into
SynapseKit:mainfrom
DhruvGarg111:feat/issue-742-ump

Conversation

@DhruvGarg111

Copy link
Copy Markdown
Collaborator

Summary

Implements the reference implementation for the Universal Memory Protocol (UMP) as requested in #742.

Key Components Added:

  • UMPDocument / UMPFrontmatter / UMPProvenance: Core dataclasses implementing the UMP v1.0 standard with YAML frontmatter, authorship, evidence tracking, and wikilink references.
  • UMPReader & UMPWriter: Robust parser and serializer for reading/writing UMP markdown files with automatic wikilink extraction ([[refs]]).
  • UMPValidator: Document validator checking spec constraints (version, type/scope/visibility enums, name, provenance).
  • Format Adapters:
    • ClaudeAdapter (CLAUDE.md)
    • CursorAdapter (.cursor/rules / .cursorrules)
    • AiderAdapter (.aider.conf.yml)
    • ContinueAdapter (.continue/config.json)
    • auto_detect_and_convert(): Automated directory scanner & converter.

Verification:

  • Unit test suite added in tests/ump/test_ump.py (12 tests covering all components end-to-end).
  • Type checking (mypy) passed cleanly with zero issues across source files.
  • Linting & formatting (ruff check / ruff format) passed cleanly.

Closes #742

@AmitoVrito
AmitoVrito merged commit f31a22f into SynapseKit:main Jul 29, 2026
7 checks passed
@AmitoVrito

Copy link
Copy Markdown
Collaborator

Merged in the v2 batch, thanks Dhruv. One thing on the way in: the file read/write was sync and blocking the event loop, so I made those async and added a few malformed-YAML/adapter-fallback tests. Parser itself was clean — the maxsplit handling for --- in the body was a nice touch. Credited you as co-author on the fix.

ayushbhatt1224 pushed a commit to ayushbhatt1224/SynapseKit that referenced this pull request Aug 12, 2026
ayushbhatt1224 pushed a commit to ayushbhatt1224/SynapseKit that referenced this pull request Aug 12, 2026
AST checker that fails CI on any blocking file/subprocess/sleep/network
call directly inside an async def (offload via asyncio.to_thread /
run_in_executor). Skips nested sync helpers and awaited calls; supports a
# allow-blocking escape hatch. Guards the async-first invariant that let
blocking IO slip past review in SynapseKit#860/SynapseKit#861/SynapseKit#862.
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.

v2.1: Universal Memory Protocol (UMP) — standardize memory format across Claude Code, Cursor, Aider, Continue

2 participants