- Quick start setup with credentials checklist
- Step-by-step fireup instructions
- Architecture diagram (Transcribe → Qwen → Polly → Sumerian Hosts)
- Deployment verification checklist
- Idle auto-stop cost discipline (15min threshold)
- Troubleshooting section
- Versioning & update policy
This handoff is the entrypoint for any developer spinning up the Miranda pipeline.
chore: ignore binary image files for HF backup
hunt
fb34b5f
WO-5: sync T4/T5 tasks.md checkboxes to completed state
hunt
b1350bb
WO-5 T4/T5: WebGPU Gaussian-splat viewport, verified against real hardware
hunt
9ff7b91
T5: buildPlaceholderSplat() in placeholderSplat.ts - a deterministic
(seeded), auditable procedural head-shaped splat cloud (position, scale,
rotation quaternion, color, opacity, per-splat jaw/eyelid skinning
weights) standing in for the not-yet-built GaussianAvatars/FLAME/TetGS
trained asset. Data-shape matches the standard Gaussian-splat attribute set
so a real trained asset drops in as a data change, not a renderer rewrite.
T4: SplatRenderer.ts + shaders.wgsl.ts - the WebGPU pipeline. Two-pass
structure: a deform compute pass turns ARKit-52 weights (jawOpen, blink)
into per-splat position/rotation deltas via quaternion rotation around a
jaw hinge and lid-line compression; a billboard render pass draws each
Gaussian as a camera-facing quad with a soft radial falloff.
DECOUPLED RENDER LOOP (the WO-5 architectural guardrail): startRenderLoop()
calls requestAnimationFrame unconditionally every frame and renders
whatever currentWeights currently holds. SplatViewport's own network-feed
…
WO-5 T3: fix stage-readiness AND-semantics gap for the two-pipeline reality
hunt
16b9692
stageMachine's StageContract.hotNodes required every listed node to be hot
(AND semantics). After T1's topology rewrite this meant L1 required BOTH
cloud-bridge (Pipeline 1) AND kinematics/native-capture (Pipeline 2) to be
ready -- so a Pipeline-1-only session, which is the live pipeline today,
could never satisfy L1 readiness, since Pipeline 2's nodes never warm in
that session. This is exactly the 'sessions must be independently viable'
requirement PROJECT_OVERVIEW.md's quad-test support calls for, silently
broken by the T1 rewrite.
Added hotNodeAlternatives: string[][] to StageContract -- OR-within-group
semantics: readiness needs only the best member of each group, not all of
them. stageReadiness treats each group as exactly one readiness unit in
its score (not one unit per member, which would under-weight a hard
requirement relative to a group). healthForStageRole and
presenceStore.ts's warm-pull logic both updated via a shared
isHotOrAlternative() helper rather than duplicating …
WO-5 T2: browser client for miranda-transport, verified against real Rust bytes
hunt
618e57d
New module client-apps/web/src/lib/ace/mirandaTransport.ts, kept separate
from controllerClient.ts rather than replacing it -- ace-controller
(cloud-bridge, Pipeline 1) and miranda-transport (transport, Pipeline 2)
are different services per the T1 topology, and both are meant to coexist.
Decodes the 312-byte MRD1 binary packet (DataView, all offsets/sizes
matching miranda-transport/src/frame.rs exactly) plus the JSON telemetry
WebSocket. Reconnects on its own schedule; never blocks on a render.
LOAD-BEARING FIX: this repo already had an ARKIT_CHANNELS array in
stageMachine/types.ts, in a DIFFERENT order than miranda-core::arkit::
CHANNEL_NAMES (the Rust canonical order every crate is built against).
Decoding the wire format against that array would have silently moved the
wrong muscle on every frame -- compiles, passes range checks, wrong only
as a face that's subtly off. Added ARKIT_CANONICAL_ORDER, copied verbatim
from the Rust source and documented as the ONLY array this decoder …
WO-5 T1: rewire topology to the real Miranda-Engine architecture
hunt
2c333b0
Replaces the old eve-ecc/NVIDIA-ACE node set (mic/presence/syncer/riva-asr/
nemotron/riva-tts/a2f/animgraph/omniverse) with the real 9-node topology:
mic, presence, cloud-bridge (ace-controller/Pipeline 1), native-capture
(miranda-audio), ipc-bus (miranda-ipc), supervisor (miranda-supervisor),
kinematics (miranda-nodes), transport (miranda-transport), renderer (WO-5
WebGPU viewport, not yet built). miranda-core is deliberately not a node --
it's a compile-time dependency, not a step in a live signal path.
NodeKind and EdgeKind unions rewired in stageMachine/types.ts. KIND_GLYPH
in AceNodeCard.tsx is a Record<NodeKind,string>, which forces a compile
error on any kind mismatch -- caught the rewrite immediately rather than
silently. EdgeKind drops pixel/anim (ACE/Omniverse-specific, no real-crate
equivalent) and adds ipc/datachannel (miranda-ipc SHM traffic and
miranda-transport's MRD1 binary broadcast, which the old vocabulary had no
kind for).
Every id-coupled consumer rewired in lock…
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-3 T9: real-time verification harness against a real /dev/shm bus
hunt
7dd5742
miranda-nodes/src/verify.rs is the harness, tests/rt_verification.rs the
acceptance test, and src/bin/verify-60fps.rs a CLI that exits non-zero on
failure so it can gate a build.
Deliberately observational: every check runs on frames read back OUT of
shared memory by a separate consumer thread, not on the dispatcher's own
copies. A frame composed correctly but written to the wrong offset, or torn
by a racing writer, passes T8's in-memory tests and fails here.
Uses a dedicated bus path, never miranda_ipc::BUS_PATH -- a verification run
that silently interferes with a live session is worse than no run.
30s run, release (cargo run --release -p miranda-nodes --bin verify-60fps):
frames published 1801
frames dropped 0 <- criterion: 0
late frames 0
publish failures 0
frame build mean 11.952 us (0.0717% of budget)
frame build max 1102.301 us (6.6138% of budget)
frames consumed 1801
observed rate 60.03 fps
inter…
WO-3 T8: 60 FPS face dispatcher with a proved zero-alloc hot loop
hunt
0b663a7
FaceDispatcher is the pure frame builder (dt + audio -> BlendshapeFrame),
owning every buffer so tick() allocates nothing. DispatcherThread wraps it in
a deadline-paced 60 FPS loop that drains audio from the bus and publishes
frames to it.
Zero allocation is PROVED, not asserted: a counting global allocator under
cfg(test) reports 0 allocations across 600 frames of drain + tick + push +
pop. The first run reported 600 -- one per iteration -- and the cause was the
test's own speech_chunk() collecting into a Vec, so the harness was measuring
itself. Chunk now built once outside the window.
DOCUMENTED DEVIATION from design.md's thread-per-oscillator: the whole
per-frame workload measures 8.9 us against a 16667 us budget, on a dual-core
Celeron where thread wakeup latency alone is tens of microseconds. Fanning
three sub-microsecond jobs onto three threads would cost more in
synchronisation than the work it parallelises, and would destroy the
per-seed reproducibility T9 needs. The valuabl…
WO-3 T7: SIMD blend shape solver from raw audio energy features
hunt
6b82c45
Eight bandpass resonators (RBJ constant-skirt biquads, transposed direct
form II) evaluated in f32x4 across BANDS, not samples: the filters are
recursive so the sample axis cannot be vectorised, while eight bands see the
identical input sample. f32x4 rather than f32x8 because this machine reports
sse4_2 with no AVX/AVX2/FMA, where wide emulates 256-bit as two halves.
Spectral shape (loudness removed) is mapped onto mouth channels by a fixed
basis with inhibitory terms: rounding is energy at 1.2 kHz IN THE ABSENCE OF
energy at 2 kHz, and without the negative weights every vowel would both
round and smile a little and converge on one mush shape.
Documented as a heuristic, not a trained regressor. TONGUE_OUT is never
driven -- tongue position behind closed lips has no acoustic signature.
23 tests. Measured on release:
solve: 2.686 us/frame for 267 samples (8 bands, f32x4) -- budget 200 us
jawOpen: /a/ = 0.6038, /i/ = 0.1996
/u/: funnel 0.1428 pucker 0.1048 smile 0.0000
/i/: fun…
WO-3 T6: compositor + acceleration/velocity-limited motion damper
hunt
29393b6
Additive layering of speech/blink/gaze/breath, absolute [0,1] clamp, then a
per-channel damper bounded in both velocity and acceleration.
The damper needs a braking-distance velocity cap, not just a velocity cap:
with acceleration also bounded, a channel at full speed cannot stop within
the remaining distance and overshoots the target (verified: 0.611 vs 0.6).
The discrete braking form is used because deceleration happens in whole
frames of a*dt; the continuous sqrt(2*a*d) form makes the bound exactly
marginal and still leaks ~1% past the target.
81 tests pass. Acceptance evidence:
tearing case: undamped jawOpen delta 1 in one frame, 6.0x the 0.1667 cap
damped: max per-frame delta 0.1667, converged in 9 frames (150.0 ms)
Fix awsCredentials: reuse AMANDA's better-sqlite3 build instead of rebuilding
hunt+1: Claude Sonnet 5
a403388
node-gyp compile failed in ace-controller's node_modules. Resolve by
requiring AMANDA's pre-built native module directly — same vault, same DB,
no duplicate binary.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Fix WO-2 Pipeline 1: route AWS SDK calls through ace-controller, not browser
hunt+1: Claude Sonnet 5
63dc9b9
Browsers cannot access /dev/shm or hold AWS SDK server-side calls directly.
ace-controller (existing Node.js service, port 8100) now owns Transcribe
Streaming and Bedrock Converse; browser only captures mic/VAD and streams
PCM over the existing WebSocket.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
GLM-5 and DeepSeek 3.2 are blocked in Kiro's agentic mode because Kiro gates
tool-calling and image support together and those models don't pass the check.
Amazon Nova Lite (CAT 2) and Amazon Nova Pro (CAT 3) are Bedrock-native, support
full tool-calling in Kiro's agent flow, and maintain the same cost-control intent.
Updated: model-routing-protocol.md, cat-router-check.mjs, PROJECT_OVERVIEW.md,
MASTER_PROMPT.md, wo1 tasks.md (completed tasks, for accuracy).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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>
Add ARM64 automation scripts — close WO-1 without AWS console interaction
hunt+1: Claude Sonnet 5
fa3c794
scripts/aws-setup.sh: one-time credential setup using read -s (silent prompts);
writes ~/.aws/credentials via aws configure, verifies with sts get-caller-identity,
accepts PEM key via stdin cat redirect to ~/.ssh/beryl-aws-key.pem, auto-discovers
running t4g.small IP and saves to ~/.miranda-ec2-ip
scripts/provision-ec2.sh: launches t4g.small if none exists; imports SSH key pair,
creates security group (SSH from current IP only), finds latest AL2023 ARM64 AMI,
bootstraps Rust install + git clone via user-data
scripts/arm64-verify.sh: full ARM64 verification — SSH in, git pull, cargo build,
cargo test -p miranda-ipc --nocapture, MIRI check; all output pasted back locally
tasks.md T7: updated ARM64 section to reference scripts + clarify this does not
block WO-2; WO-2 can start in parallel with the ARM64 gap being closed
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
WO-1: mark T7 checked, note ARM64 verification gap explicitly
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 …
Top section now answers all four pre-build questions inline so Kiro never
needs to ask again:
- Hermes: not integrated, not running — Kiro is the agent
- Pipeline 1: node labels are role labels; AWS services fill them; bus is agnostic
- Build target: x86-64 local first, ARM64 t4g.small second with re-benchmark
- Session model: multi-session, real CAT switches, handoff blocks as written
T4: added MIRI step (cargo +nightly miri test) after ring buffer compiles —
catches UB that cargo test on x86 TSO cannot detect.
T5: added latency benchmark test with assert!(elapsed_us <= 50) — real μs
measurement with false-sharing diagnosis note and #[repr(align(64))] fix.
T7: added ARM64 verification step post-commit (SSH to t4g.small, cargo test
natively, re-run latency benchmark).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Pipeline 1: AWS-native digital human — batteries-included first workflow
hunt+1: Claude Sonnet 5
6933ec1
Add .kiro/steering/pipeline-1-aws-native.md: full node mapping (Transcribe →
Bedrock → Polly → Sumerian Hosts → KVS WebRTC), Polly viseme→BlendshapeFrame
adapter table, Sumerian Hosts SDK setup, credential access via AMANDA vault MCP,
and Miranda's architectural purpose as the harness that proves any workflow —
including a research paper — can be brought to life without rebuilding the infra.
Update PROJECT_OVERVIEW.md: Pipeline 1 table at the top, node-role-label
clarification (labels are roles, not deployments), reference to pipeline-1 doc.
Update MASTER_PROMPT.md: Pipeline 1 steering doc reference, node-label
explanation appended so any Kiro session opening this prompt understands
the Riva/Nemotron/Hive names before touching the topology.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
WO-1 spec: verbose, spoon-feed-ready rewrite for Kiro
hunt+1: Claude Sonnet 5
df0137a
requirements.md: pre-flight checklist, all 4 skill references, EVE/THE VANITY
context, repo structure map, 7 EARS requirements with inline rationale, 6-point
acceptance criteria.
design.md: full crate dependency graph, 3-buffer layout table, exact struct
definitions with field sizes, atomic ordering rationale, unsafe invariant
guidance, cross-reference section mapping each design choice to its skill.
tasks.md: 7 tasks with exact commands, paste-ready handoff blocks for model
switches, escalation wording, and downstream unblocking note.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Update MASTER_PROMPT with full CAT-5 routing table and reference link
hunt+1: Claude Sonnet 5
e8def61
Adds the complete tier chart inline, the handoff procedure, the session-start
checklist, and a reference link to tyronne-os/beryl-cat5-protocol for the
full protocol explanation. Paste-ready for Kiro chat.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Diversify CAT-5 model routing across providers, not all-Claude
hunt
6a139bc
Claude reserved for CAT 4-5 only, per explicit direction. New mapping
across Kiro's confirmed model roster:
CAT 1 -> Qwen3 Coder Next (coding-specialized, cheapest)
CAT 2 -> GLM-5
CAT 3 -> DeepSeek 3.2 (new workhorse tier)
CAT 4 -> Claude Sonnet 5, escalate to Opus 5 after 2 failed verifications
CAT 5 -> Claude Opus 5 only
28 of 36 total tasks (CAT 1-3) now never touch Claude at all -- a real
cost improvement beyond the original single-provider design. Generalized
the recruit-and-relieve procedure to cover any tier transition, not just
the climb to Opus. Updated: steering doc, PROJECT_OVERVIEW.md,
MASTER_PROMPT.md, cat-router-check.mjs's model table. Verified the
scanner script still runs correctly against the new mapping.
Add the CAT-5 Model Routing Protocol and clarify Miranda as workflow-agnostic harness
hunt
6c1cf40
- .kiro/steering/model-routing-protocol.md: mandatory, global model-routing
rule. CAT 1-5 difficulty scale per task, mapped to Haiku 4.5 / Sonnet 5 /
Opus 5. Opus 5 is recruited only for the 3 true CAT 5 tasks in the whole
project (WO-1 ring buffer, WO-3 SIMD blendshape regression, WO-5 WebGPU
viewport), with evidence-triggered escalation for CAT 4 and a documented
recruit-and-relieve procedure. Honest about the real constraint this is
built around: Kiro has no API for automatic mid-session model switching,
so this is a decision protocol for the human/agent to follow via the
chat model dropdown, not an invisible auto-router.
- All 5 tasks.md files: every task now tagged [CAT n] inline.
- scripts/cat-router-check.mjs: real, tested scanner reporting the pending
CAT backlog across all Work Orders (verified output: 3 CAT5, 5 CAT4,
10 CAT3, 7 CAT2, 11 CAT1 across 36 tasks).
- nobility-posh-framework skill + PROJECT_OVERVIEW.md: clarified that
Miranda-Engine is the harn…
Add Podman container strategy to steering rules
hunt
d7e89ac
Hybrid placement: rootless Podman for WO-2/4/5 (routing, transport, UI),
bare-metal for WO-1's IPC bus and GPU rendering to protect the sub-150ms
target. Adds rule 4, Ephemeral Session Isolation — miranda-supervisor
spawns a fresh Podman container per workflow test session, volume-mounting
/dev/shm/miranda_bus for zero-copy access to the bare-metal core.
Send the 5 Work Orders directly to Kiro as real workspace Specs
hunt
2f709e5
Adds .kiro/specs/wo1..wo5, each with requirements.md (EARS notation),
design.md, and tasks.md — derived from the Hermes Execution Prompts in the
nobility-posh-framework Kiro skill, but made concrete and actionable
against this repo's actual file layout (crate names, existing
client-apps/web code, the Instant Presence Standard doc).
Also adds .kiro/steering/build-standards.md — workspace-scoped rules
(no claimed progress without command-output evidence, no simulated
inference, reuse before rebuild, GPU cost discipline) active the moment
this repo is opened in Kiro.
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…