T2: KinematicTransformFrame (88 bytes, repr(C)+Pod) in miranda-core closes
the WO-3 breath.rs gap where head_pitch_deg/clavicle_rise were computed but
could not be routed — ARKit-52 is face-only. from_breath() maps to joint
quaternions: head 100% X-rotation, neck 40%, shoulders +/-Z 4deg max.
Quaternion: 16 bytes, Pod, normalised/degenerate handling. RingId::Kinematic
added. miranda-ipc gains a 4th ring (KINEMATIC_SLOTS=128) with push/pop.
T3: DataChannelHub broadcasts 312-byte binary packets (MRD1 magic + two LE
u16 size fields + 216B BlendshapeFrame + 88B KinematicTransformFrame) to
all connected subscribers via bounded mpsc. Full channel drops frame and
increments counter, never stalls. Closed receivers pruned on next broadcast.
encode/decode in frame.rs is allocation-free in the hot path via scratch
BytesMut. webrtc 0.8.0 declared optional behind --features webrtc-native;
wire format is identical whether transport layer is axum WS or DTLS channel.
T4: TelemetryHub broadcasts came…
WO-1 CLOSED: MIRI clean on ARM64, add #[cfg(not(miri))] to latency benchmark
hunt+1: Claude Sonnet 5
90b2297
ARM64 (Graviton t4g.small) results:
- cargo build: clean
- 9/9 tests pass natively; mean round-trip latency 0.065 μs (770× under 50 μs target)
- MIRI: 7 pass, mmap test correctly ignored (MIRI cannot exec mmap syscall),
latency test was the only "failure" — MIRI is ~1000× slower than native by design
Fix: add #[cfg(not(miri))] to test_round_trip_latency so MIRI runs cleanly.
No undefined behavior found. Lock-free ring buffer is correct on both x86-64 and ARM64.
WO-1 is complete. WO-2 begins next.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Implements the POSIX shared-memory IPC bus at /dev/shm/miranda_bus that every
downstream Work Order depends on: three independent lock-free SPSC ring
buffers (AudioChunk 656B/64 slots, BlendshapeFrame 216B/128 slots,
SphericalHarmonics 48B/128 slots) over one memory-mapped region, coordinated
with AtomicUsize head/tail using Acquire/Release ordering only (no mutex, no
SeqCst), with #[repr(align(64))]-equivalent cache-line separation between
head and tail to avoid false sharing.
Real deviations from design.md, all forced by correctness and documented
inline in code:
- SphericalHarmonics is 48 bytes, not the stated 44 -- #[repr(C)] alignment
(u64 field forces 8-byte struct alignment; size must be a multiple of
alignment) requires 4 bytes of padding, made explicit as a _padding
field so bytemuck::Pod's implicit-padding check has nothing to reject.
- Producer's read of `head` in the capacity check uses Acquire, not the
Relaxed the design doc specified -- Relaxed would …
Rebuild Miranda-Engine from scratch — real repo, real content
hunt
fed1528
This repo was previously a stale fork of microsoft/agent-framework with no
connection to this project. Replaced entirely, at the owner's direction,
with:
- A real 6-crate Cargo workspace skeleton (miranda-core/ipc/audio/nodes/
supervisor/transport) — cargo build verified clean.
- The prior-attempt eve-ecc client (Vite+React+TS, @xyflow/react ACE Cortex
UI) carried forward as client-apps/web, plus its ace-controller backend
and dev scripts — genuinely reusable prior work, not rebuilt from zero.
- The eve-ecc design docs (ECC5 certification, IDE/backend contract, the
orchestration pivot writeup) preserved as-is.
- A new Instant Presence Standard doc expanding the prior IPS table with
the No Loop Video Protocol (instantly-alive, waist-up, waving,
choreographed micromovement) that was missing from the original spec.
- images/ with the EVE reference image plus two real prototype stills from
the first attempt.
Full architecture/science/build-order context lives in the Kiro sk…