┌─────────────────────────────────────────────────────────────────────────┐
│ MRS ARCHITECTURE │
│ │
│ ┌───────────────────────────────────────────────────────────────────┐ │
│ │ SEMANTIC MODEL │ │
│ │ Players → Instruments → Staves │ │
│ │ Measures → Events (notes, rests, chords) │ │
│ │ Spans (slurs, ties, beams, hairpins) │ │
│ │ Analytical Overlays │ │
│ │ Structural Index │ │
│ └───────────────────────────────────────────────────────────────────┘ │
│ │ │ │
│ ┌────────┴────────┐ ┌────────┴────────┐ │
│ │ MRS-S │ │ MRS-Ops │ │
│ │ (storage, │ │ (mutation, │ │
│ │ reading) │ │ writing) │ │
│ └─────────────────┘ └─────────────────┘ │
│ │ │
│ ┌────────────────────────────────────────────┴─────────────────────┐ │
│ │ ORCHESTRATOR │ │
│ │ │ │
│ │ • UUID minting (tmp-id → UUID mapping) │ │
│ │ • Derived field computation (:at, :beat-start) │ │
│ │ • Progressive validation pipeline │ │
│ │ • Task-adaptive context generation │ │
│ │ • Lane bundle management │ │
│ │ • Changeset audit trail │ │
│ └───────────────────────────────────────────────────────────────────┘ │
│ │ │
│ ┌───────────────────┴───────────────────────────────────────────────┐ │
│ │ WORKING SET ENVELOPE │ │
│ │ │ │
│ │ :content (MRS-S fragment — agent reads this) │ │
│ │ :context-views (task-adaptive, queryable) │ │
│ │ :structural-index-ref (global awareness) │ │
│ │ :bundle (lane permissions for task type) │ │
│ │ :available-queries (what agent can request) │ │
│ └────────────────────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────────────┘