hunt commited on
Commit Β·
2f709e5
1
Parent(s): fed1528
Send the 5 Work Orders directly to Kiro as real workspace Specs
Browse filesAdds .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.
- .kiro/specs/wo1-workspace-ipc-backbone/design.md +15 -0
- .kiro/specs/wo1-workspace-ipc-backbone/requirements.md +18 -0
- .kiro/specs/wo1-workspace-ipc-backbone/tasks.md +9 -0
- .kiro/specs/wo2-acoustic-ingress-routing/design.md +17 -0
- .kiro/specs/wo2-acoustic-ingress-routing/requirements.md +18 -0
- .kiro/specs/wo2-acoustic-ingress-routing/tasks.md +9 -0
- .kiro/specs/wo3-kinematics-face-physics/design.md +17 -0
- .kiro/specs/wo3-kinematics-face-physics/requirements.md +19 -0
- .kiro/specs/wo3-kinematics-face-physics/tasks.md +10 -0
- .kiro/specs/wo4-webrtc-transport-telemetry/design.md +18 -0
- .kiro/specs/wo4-webrtc-transport-telemetry/requirements.md +17 -0
- .kiro/specs/wo4-webrtc-transport-telemetry/tasks.md +9 -0
- .kiro/specs/wo5-canvas-ui-webgpu-renderer/design.md +19 -0
- .kiro/specs/wo5-canvas-ui-webgpu-renderer/requirements.md +19 -0
- .kiro/specs/wo5-canvas-ui-webgpu-renderer/tasks.md +9 -0
- .kiro/steering/build-standards.md +23 -0
.kiro/specs/wo1-workspace-ipc-backbone/design.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# WO-1: Design
|
| 2 |
+
|
| 3 |
+
## Architecture
|
| 4 |
+
|
| 5 |
+
`miranda-core` holds shared constants (52 blendshapes, 9 SH coefficients) and error types β every other crate depends on it. `miranda-ipc` owns the ring buffer itself and depends only on `miranda-core`. This dependency direction is already scaffolded in the workspace's `Cargo.toml` files β do not invert it (nothing should depend on `miranda-ipc` transitively pulling in unrelated node logic).
|
| 6 |
+
|
| 7 |
+
## The ring buffer
|
| 8 |
+
|
| 9 |
+
- Backing store: `memmap2::MmapMut` over a file at `/dev/shm/miranda_bus`, sized to hold N fixed-size slots (choose N as a power of 2 for cheap modulo via bitmask).
|
| 10 |
+
- Head/tail: `AtomicUsize` (or `AtomicU64` if wraparound at `usize::MAX` slots is a real concern β it isn't at this scale), `Ordering::AcqRel` on the write side, `Ordering::Acquire` on the read side.
|
| 11 |
+
- Slot layout: a tagged union isn't C-ABI-safe across languages the same way a fixed struct-per-type is β prefer three separate fixed-size ring buffers (audio / blendshape / spherical-harmonic) over one polymorphic ring, since the FFI boundary (WO-2's parakeet.cpp binding) needs a stable, simple layout.
|
| 12 |
+
|
| 13 |
+
## Cross-reference
|
| 14 |
+
|
| 15 |
+
See the `nobility-posh-framework` Kiro skill for the full Hermes Execution Prompt and the Sequence Matrix performance targets.
|
.kiro/specs/wo1-workspace-ipc-backbone/requirements.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# WO-1: Cargo Workspace & Lock-Free IPC Backbone β Requirements
|
| 2 |
+
|
| 3 |
+
**Role**: Principal Systems Engineer. **Depends on**: nothing (foundation). **Target**: <50ΞΌs tensor transfer.
|
| 4 |
+
|
| 5 |
+
## Requirements (EARS notation)
|
| 6 |
+
|
| 7 |
+
1. WHEN the workspace is built with `cargo build` THE SYSTEM SHALL compile all six crates (`miranda-core`, `miranda-ipc`, `miranda-audio`, `miranda-nodes`, `miranda-supervisor`, `miranda-transport`) with zero errors.
|
| 8 |
+
2. WHEN `miranda-ipc` initializes THE SYSTEM SHALL map a POSIX shared-memory region at `/dev/shm/miranda_bus` using `memmap2`.
|
| 9 |
+
3. WHEN two threads/processes write and read concurrently on the ring buffer THE SYSTEM SHALL use lock-free atomic head/tail pointers (no mutex) to coordinate access.
|
| 10 |
+
4. WHEN a raw audio chunk, a 52-channel ARKit blendshape frame, or a 9-coefficient spherical-harmonic vector is written to the bus THE SYSTEM SHALL use a fixed-size, `#[repr(C)]`-aligned struct matching C-ABI layout rules.
|
| 11 |
+
5. WHEN a payload is written and then read back from the ring buffer THE SYSTEM SHALL return byte-for-byte identical data (round-trip integrity).
|
| 12 |
+
6. IF the ring buffer is full WHEN a writer attempts to write THE SYSTEM SHALL either block with a bounded wait or return a clear backpressure signal β never silently drop or corrupt data.
|
| 13 |
+
|
| 14 |
+
## Acceptance criteria
|
| 15 |
+
|
| 16 |
+
- `cargo build` succeeds workspace-wide.
|
| 17 |
+
- `cargo test` in `miranda-ipc` includes a real round-trip test: write a payload from one thread, read it from another, assert equality.
|
| 18 |
+
- No `unsafe` block lacks a comment explaining the invariant it upholds (this is where memory-alignment bugs hide).
|
.kiro/specs/wo1-workspace-ipc-backbone/tasks.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# WO-1: Tasks
|
| 2 |
+
|
| 3 |
+
- [ ] Confirm workspace skeleton builds clean (`cargo build` from repo root) β already true as of the initial commit; re-verify before starting.
|
| 4 |
+
- [ ] Add `memmap2`, `crossbeam` (or plain `std::sync::atomic`), and `bytemuck` (for safe `#[repr(C)]` casting) to `miranda-ipc/Cargo.toml`.
|
| 5 |
+
- [ ] Define `AudioChunk`, `BlendshapeFrame` (52 f32 weights + timestamp), `SphericalHarmonics` (9 f32 coefficients + timestamp) as `#[repr(C)]` structs in `miranda-core`.
|
| 6 |
+
- [ ] Implement the ring buffer struct in `miranda-ipc` (open-or-create the `/dev/shm/miranda_bus` mapping, atomic head/tail, push/pop methods per data type).
|
| 7 |
+
- [ ] Write a `#[cfg(test)]` round-trip test: spawn a writer thread and a reader thread, assert every written payload is read back byte-identical, in order.
|
| 8 |
+
- [ ] Document the safety invariant on every `unsafe` block (why the cast/pointer arithmetic is sound).
|
| 9 |
+
- [ ] Run `cargo test` and paste the real output into the PR/commit β no "should work."
|
.kiro/specs/wo2-acoustic-ingress-routing/design.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# WO-2: Design
|
| 2 |
+
|
| 3 |
+
## Architecture
|
| 4 |
+
|
| 5 |
+
`miranda-audio` owns mic capture + VAD + the parakeet.cpp FFI wrapper. `miranda-supervisor` owns the Nemotron-Flash routing logic and turn-taking state machine β kept separate because the audio crate should have zero LLM/networking dependencies (keeps it embeddable/testable in isolation).
|
| 6 |
+
|
| 7 |
+
## parakeet.cpp FFI
|
| 8 |
+
|
| 9 |
+
This project already has a real, verified-working `parakeet.cpp` deployment (built from source with `-march=native` because this hardware class lacks AVX2 β see `llamacpp-huggingface-expert` skill for the exact lesson). The FFI wrapper (`cxx` crate) should link against that existing build's shared library rather than vendoring a second copy. Bind the C API surface `parakeet.cpp` already exposes (transcribe from PCM buffer β token stream) β do not reinvent a Rust-native ASR path.
|
| 10 |
+
|
| 11 |
+
## Node Warden concept (Vanguard Innovation #1)
|
| 12 |
+
|
| 13 |
+
`miranda-supervisor` is also where the Work Order 1 "Node Warden" pattern lives operationally: a small local GGUF model (1-4B, via llama.cpp β see `llamacpp-huggingface-expert`) monitoring this node's own throughput. This is a later refinement, not required for WO-2's first pass β get the deterministic ASR/VAD/routing path working and correct before adding self-monitoring.
|
| 14 |
+
|
| 15 |
+
## Cross-reference
|
| 16 |
+
|
| 17 |
+
Full Hermes Execution Prompt and Sequence Matrix: `nobility-posh-framework` Kiro skill.
|
.kiro/specs/wo2-acoustic-ingress-routing/requirements.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# WO-2: Acoustic Ingress, VAD & Supervisory Routing β Requirements
|
| 2 |
+
|
| 3 |
+
**Role**: Real-Time Audio Systems Specialist. **Depends on**: WO-1 (ring buffer must exist). **Target**: <30ms transcription.
|
| 4 |
+
|
| 5 |
+
## Requirements (EARS notation)
|
| 6 |
+
|
| 7 |
+
1. WHEN the microphone produces PCM audio THE SYSTEM SHALL capture it via a non-blocking stream (`cpal`) and write chunks into the WO-1 ring buffer without blocking the audio callback thread.
|
| 8 |
+
2. WHEN speech begins or ends in the incoming audio THE SYSTEM SHALL detect the transition using Silero VAD within 10ms of the actual transition.
|
| 9 |
+
3. WHEN a PCM frame is ready for transcription THE SYSTEM SHALL pass it directly from the lock-free ring to the parakeet.cpp engine via the `cxx` FFI boundary β no intermediate copy through a non-realtime path (e.g. no round-trip through a Python process).
|
| 10 |
+
4. WHEN parakeet.cpp returns a transcript token stream THE SYSTEM SHALL forward it to the Nemotron-Flash supervisory agent in `miranda-supervisor` for intent parsing and turn-taking evaluation.
|
| 11 |
+
5. WHEN the supervisory agent determines the user has finished their turn THE SYSTEM SHALL dispatch a signal to the downstream TTS and motion nodes.
|
| 12 |
+
6. WHEN audio is actively streaming THE SYSTEM SHALL maintain a rolling lookahead buffer so mouth coarticulation shaping has upcoming audio context, not just the current frame.
|
| 13 |
+
|
| 14 |
+
## Acceptance criteria
|
| 15 |
+
|
| 16 |
+
- Reuse the existing native `parakeet.cpp` build already deployed in this project (see `llamacpp-huggingface-expert` Kiro skill for the exact binary/build flags β `-march=native`, CPU-only) rather than rebuilding it from scratch.
|
| 17 |
+
- Measure and report real end-to-end transcription latency, not a vendor-claimed number.
|
| 18 |
+
- VAD transition latency is measured against real audio, not synthetic silence-to-tone test signals only.
|
.kiro/specs/wo2-acoustic-ingress-routing/tasks.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# WO-2: Tasks
|
| 2 |
+
|
| 3 |
+
- [ ] Add `cpal` to `miranda-audio/Cargo.toml`; implement non-blocking mic capture writing into the WO-1 audio ring.
|
| 4 |
+
- [ ] Integrate Silero VAD (find a Rust binding or ONNX-runtime path β verify latency claim, don't assume it).
|
| 5 |
+
- [ ] Locate this project's existing built `parakeet.cpp` binary/library (see `llamacpp-huggingface-expert` skill for its exact path/build flags) and write the `cxx` FFI binding against it.
|
| 6 |
+
- [ ] Wire PCM frames from the ring buffer directly into the FFI call β no intermediate file/socket hop.
|
| 7 |
+
- [ ] Implement the Nemotron-Flash routing interface in `miranda-supervisor`: intent parsing, turn-taking state, dispatch signal to TTS/motion.
|
| 8 |
+
- [ ] Add a rolling lookahead audio buffer for coarticulation shaping.
|
| 9 |
+
- [ ] Measure real end-to-end latency (mic β transcript) and record the actual number, not the target.
|
.kiro/specs/wo3-kinematics-face-physics/design.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# WO-3: Design
|
| 2 |
+
|
| 3 |
+
## Architecture
|
| 4 |
+
|
| 5 |
+
Lives entirely in `miranda-nodes`, depending on `miranda-core` (shared types) and `miranda-ipc` (to write output frames). No networking, no LLM β this crate should be pure math and should be unit-testable without any of the audio/network stack running.
|
| 6 |
+
|
| 7 |
+
## Thread model
|
| 8 |
+
|
| 9 |
+
Each oscillator (Perlin micro-saccade, eye-blink state machine, respiratory modulator) runs on its own isolated high-priority thread per the source spec β not multiplexed onto a single "animation" thread, so a slow blink calculation can't stall breathing. Combine their outputs into one blendshape frame just before writing to the WO-1 ring, not earlier.
|
| 10 |
+
|
| 11 |
+
## Why this directly implements the Instant Presence Standard
|
| 12 |
+
|
| 13 |
+
This crate is *the* mechanism satisfying `INSTANT-PRESENCE-STANDARD.md`'s No Loop Video Protocol and Vanguard Innovations #21/#25: because the oscillators run continuously regardless of speech state, "idle" and "speaking" are never two different code paths β there is no seam where a canned idle loop could be swapped in. Keep it that way; do not add a separate "idle animation" mode later as a shortcut.
|
| 14 |
+
|
| 15 |
+
## Cross-reference
|
| 16 |
+
|
| 17 |
+
Full Hermes Execution Prompt: `nobility-posh-framework` skill. Full IPS spec: `eve-ecc-docs/INSTANT-PRESENCE-STANDARD.md` in this repo.
|
.kiro/specs/wo3-kinematics-face-physics/requirements.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# WO-3: 4D Kinematics, ARKit Blendshape Math & Face Physics β Requirements
|
| 2 |
+
|
| 3 |
+
**Role**: Computational Kinematics and Graphics Engineer. **Depends on**: WO-1 (ring buffer for output). **Target**: 60 FPS continuous math.
|
| 4 |
+
|
| 5 |
+
## Requirements (EARS notation)
|
| 6 |
+
|
| 7 |
+
1. WHEN audio energy data arrives THE SYSTEM SHALL compute 52 ARKit-compatible blendshape weights using native SIMD routines (`wide`/`simba`), not scalar loops.
|
| 8 |
+
2. WHILE the system is running, regardless of speech activity, THE SYSTEM SHALL continuously run a Perlin-noise ocular micro-saccade generator on an isolated high-priority thread.
|
| 9 |
+
3. WHILE the system is running THE SYSTEM SHALL run an asymmetric eye-blink state machine (not perfectly symmetric/periodic β see the Instant Presence Standard's micromovement requirement).
|
| 10 |
+
4. WHILE the system is running THE SYSTEM SHALL run a sine-wave respiratory modulator affecting clavicle and jaw priors, even during silence.
|
| 11 |
+
5. WHEN a blendshape value changes between consecutive frames THE SYSTEM SHALL clamp its velocity to prevent mesh tearing during extreme/rapid speech transitions.
|
| 12 |
+
6. WHEN a frame payload is computed THE SYSTEM SHALL export it to the WO-1 shared memory bus at a sustained 60 FPS.
|
| 13 |
+
7. THE SYSTEM SHALL satisfy the Instant Presence Standard's No Loop Video Protocol: zero motion for more than one frame interval is a defect, even in an otherwise-idle state (see `eve-ecc-docs/INSTANT-PRESENCE-STANDARD.md` in this repo).
|
| 14 |
+
|
| 15 |
+
## Acceptance criteria
|
| 16 |
+
|
| 17 |
+
- Sustained 60 FPS measured under real load, not just claimed.
|
| 18 |
+
- Blendshape output never holds perfectly static for more than one frame interval while the system is "on," per the No Loop Video Protocol.
|
| 19 |
+
- Velocity clamping is demonstrated to prevent a specific reproducible tearing case (construct one, show it's fixed).
|
.kiro/specs/wo3-kinematics-face-physics/tasks.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# WO-3: Tasks
|
| 2 |
+
|
| 3 |
+
- [ ] Add `glam` (vector/matrix math), `simba`/`wide` (SIMD) to `miranda-nodes/Cargo.toml`.
|
| 4 |
+
- [ ] Implement the SIMD blendshape regression from audio energy β 52 ARKit weights.
|
| 5 |
+
- [ ] Implement the Perlin-noise micro-saccade generator on its own thread.
|
| 6 |
+
- [ ] Implement the asymmetric eye-blink state machine on its own thread.
|
| 7 |
+
- [ ] Implement the sine-wave respiratory modulator (clavicle/jaw priors) on its own thread.
|
| 8 |
+
- [ ] Combine oscillator outputs + speech-driven blendshapes into one frame, with velocity clamping applied last.
|
| 9 |
+
- [ ] Write the combined frame to the WO-1 shared memory bus at 60 FPS.
|
| 10 |
+
- [ ] Add a test/benchmark proving sustained 60 FPS under load, and a test proving no-frame-is-fully-static (No Loop Video Protocol compliance).
|
.kiro/specs/wo4-webrtc-transport-telemetry/design.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# WO-4: Design
|
| 2 |
+
|
| 3 |
+
## Architecture
|
| 4 |
+
|
| 5 |
+
`miranda-transport` depends only on `miranda-core` β it should be able to stream *any* well-formed frame payload without knowing how WO-3 computed it, keeping the transport layer swappable independent of the kinematics engine.
|
| 6 |
+
|
| 7 |
+
## Two logical servers, one crate
|
| 8 |
+
|
| 9 |
+
1. **Data-plane WebRTC hub**: DataChannels for binary frames (blendshapes/gaze/lighting) + a synchronous audio media track. This is the latency-critical path (<15ms target) β keep serialization minimal (raw binary, not JSON) here.
|
| 10 |
+
2. **Control-plane telemetry WebSocket** (Axum): JSON is fine here since it's metrics/observability, not the hot path. This is what `aws-pipeline-architect`'s CloudWatch guardrail and any external dashboard would consume.
|
| 11 |
+
|
| 12 |
+
## AWS placement
|
| 13 |
+
|
| 14 |
+
Per `aws-pipeline-architect`: this Work Order is CPU/network-bound only, runs on the cheap orchestration-tier EC2 instance alongside WO-1/2/3, never the GPU box. Security group: WebRTC UDP range + WebSocket TCP port only, Elastic IP attached.
|
| 15 |
+
|
| 16 |
+
## Cross-reference
|
| 17 |
+
|
| 18 |
+
Full Hermes Execution Prompt: `nobility-posh-framework` skill. AWS deployment rules: `aws-pipeline-architect` skill.
|
.kiro/specs/wo4-webrtc-transport-telemetry/requirements.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# WO-4: Full-Duplex WebRTC Transport & Telemetry Hub β Requirements
|
| 2 |
+
|
| 3 |
+
**Role**: Network Protocol Architect. **Depends on**: WO-3 (frames to stream). **Target**: <15ms network transit.
|
| 4 |
+
|
| 5 |
+
## Requirements (EARS notation)
|
| 6 |
+
|
| 7 |
+
1. WHEN a blendshape/gaze/lighting frame is available THE SYSTEM SHALL broadcast it over a dedicated `webrtc-rs` DataChannel to all connected browsers at 60 FPS.
|
| 8 |
+
2. WHEN synthetic speech audio is generated THE SYSTEM SHALL stream it as a synchronous WebRTC audio media track, time-aligned with the corresponding blendshape frames.
|
| 9 |
+
3. WHEN a node's operational state changes (frame render time, latency, circuit-breaker trip) THE SYSTEM SHALL broadcast that metric over an Axum-based WebSocket server to connected management tools in real time.
|
| 10 |
+
4. IF a client's connection degrades (dropped frames, high RTT) THE SYSTEM SHALL surface that degradation as a telemetry event rather than silently dropping data with no signal.
|
| 11 |
+
5. WHEN deployed on AWS per the `aws-pipeline-architect` skill THE SYSTEM SHALL run on the low-cost orchestration tier (`t3.small`/`t4g.small`), not a GPU instance β this Work Order has no GPU dependency.
|
| 12 |
+
|
| 13 |
+
## Acceptance criteria
|
| 14 |
+
|
| 15 |
+
- Real measured network transit latency under a real client connection, not a loopback-only test.
|
| 16 |
+
- Security group restricted to exactly the required WebRTC UDP range + the WebSocket TCP port (per `aws-pipeline-architect`'s network traversal rule) β no broad open ranges.
|
| 17 |
+
- Elastic IP assigned for stable NAT traversal, per the same skill.
|
.kiro/specs/wo4-webrtc-transport-telemetry/tasks.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# WO-4: Tasks
|
| 2 |
+
|
| 3 |
+
- [ ] Add `webrtc-rs`, `axum`, `tokio` to `miranda-transport/Cargo.toml`.
|
| 4 |
+
- [ ] Implement the WebRTC DataChannel broadcast for binary blendshape/gaze/lighting frames at 60 FPS.
|
| 5 |
+
- [ ] Implement the synchronous audio media track for synthetic speech.
|
| 6 |
+
- [ ] Implement the Axum WebSocket telemetry server (frame render time, latency, circuit-breaker state).
|
| 7 |
+
- [ ] Provision the orchestration-tier EC2 instance per `aws-pipeline-architect` (t3.small/t4g.small) and deploy this crate there.
|
| 8 |
+
- [ ] Configure the security group: WebRTC UDP range + WebSocket TCP port only; attach an Elastic IP.
|
| 9 |
+
- [ ] Measure and record real network transit latency against a real (non-loopback) client.
|
.kiro/specs/wo5-canvas-ui-webgpu-renderer/design.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# WO-5: Design
|
| 2 |
+
|
| 3 |
+
## Start from what exists
|
| 4 |
+
|
| 5 |
+
`client-apps/web` (Vite + React + TypeScript) already has:
|
| 6 |
+
- `@xyflow/react` topology in `src/components/pipeline/` (`AceCortexPane.tsx`, `AceNodeCard.tsx`, `AceNodeTooltip.tsx`, `LiveMeter.tsx`)
|
| 7 |
+
- A presence viewport in `src/components/eve/` (`EvePresenceViewport.tsx`, `EveStudioPane.tsx`, `BlendshapeMeter.tsx`)
|
| 8 |
+
- A stage machine in `src/lib/stageMachine/` already implementing L0/L1/L2 staging
|
| 9 |
+
- A WebSocket/telemetry client in `src/lib/ace/` (`controllerClient.ts`, `spatialSyncer.ts`)
|
| 10 |
+
|
| 11 |
+
This is a substantial head start β the real net-new work for WO-5 is: (1) rewiring the topology data (`src/data/aceTopology.ts`) to match Miranda-Engine's actual 6-crate architecture instead of the original eve-ecc node set, (2) rewiring `controllerClient.ts` to speak to the new WO-4 Rust telemetry/transport servers instead of the old Node.js `ace-controller`, and (3) building the genuinely new piece β the WebGPU/WGSL Gaussian-splat viewport, which did not exist in the first attempt (the prior build used a CSS transform layer on a flat photo, explicitly documented as a placeholder in `ORCHESTRATION-PIVOT.md` β do not repeat that mistake).
|
| 12 |
+
|
| 13 |
+
## WebGPU viewport
|
| 14 |
+
|
| 15 |
+
New component, not an extension of the existing CSS presence layer. Ingests binary frames from the WO-4 WebRTC DataChannel, deforms a 3D Gaussian Splat mesh via WGSL compute/render shaders. Needs an actual splat asset to render against β coordinate with the `live-avatar-expert` skill's research (GaussianAvatars/FLAME/TetGS) for how that asset gets produced; this Work Order consumes it, doesn't produce it.
|
| 16 |
+
|
| 17 |
+
## Cross-reference
|
| 18 |
+
|
| 19 |
+
Full Hermes Execution Prompt: `nobility-posh-framework` skill. IPS behavioral spec: `eve-ecc-docs/INSTANT-PRESENCE-STANDARD.md`. Rendering science: `live-avatar-expert` skill.
|
.kiro/specs/wo5-canvas-ui-webgpu-renderer/requirements.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# WO-5: Reactive Canvas UI & WebGPU Edge Splat Renderer β Requirements
|
| 2 |
+
|
| 3 |
+
**Role**: Lead Frontend and Graphics Engineer. **Depends on**: WO-3 (kinematics output) + WO-4 (transport). **Target**: sub-150ms glass-to-glass loop.
|
| 4 |
+
|
| 5 |
+
**Important β this Work Order is NOT a from-scratch build.** `client-apps/web` in this repo already has a working `@xyflow/react` node graph (the "ACE Cortex" topology) matching much of this spec, carried forward from the first attempt (eve-ecc). Extend it; do not rewrite it.
|
| 6 |
+
|
| 7 |
+
## Requirements (EARS notation)
|
| 8 |
+
|
| 9 |
+
1. WHEN the client loads THE SYSTEM SHALL render the node graph matching the Miranda-Engine topology (the 6 crates + their real signal-path connections) with visual status indicators and dynamic latency meters. (Largely already implemented in `client-apps/web/src/components/pipeline/` β verify against the current WO-1 through WO-4 crate names, which have changed since the original eve-ecc topology was drawn.)
|
| 10 |
+
2. WHEN a WO-4 telemetry WebSocket message arrives THE SYSTEM SHALL update the corresponding node's visual metrics in real time.
|
| 11 |
+
3. WHEN the WebGPU canvas viewport is active THE SYSTEM SHALL ingest spatial blendshape frames over the WO-4 WebRTC DataChannel and deform the 3D Gaussian Splatting representation of EVE using native WGSL shaders.
|
| 12 |
+
4. THE SYSTEM SHALL render locally at screen resolution without server-side video compression (no video codec round-trip β raw frame data drives the local GPU renderer directly).
|
| 13 |
+
5. THE SYSTEM SHALL satisfy the Instant Presence Standard: waist-up mid-frame composition, instant aliveness from first frame, waving as the opening gesture, choreographed micromovement β see `eve-ecc-docs/INSTANT-PRESENCE-STANDARD.md`.
|
| 14 |
+
|
| 15 |
+
## Acceptance criteria
|
| 16 |
+
|
| 17 |
+
- Measured glass-to-glass latency (blendshape generated β pixel rendered) under sub-150ms, real measurement not estimate.
|
| 18 |
+
- No canned idle-loop video anywhere in the render path β verify by observing painted pixels over time, not just code intent (per the ORCHESTRATION-PIVOT.md lesson on measuring the wrong metric).
|
| 19 |
+
- The actual hard part: there is no trained/rigged Gaussian-splat avatar to render yet. This Work Order's WebGPU/WGSL viewport work can and should proceed against a placeholder/test splat while the GaussianAvatars+FLAME+TetGS pipeline (a separate, research-heavy effort β see `live-avatar-expert` skill) is built out. Don't block the UI/transport work on the rendering research being finished first.
|
.kiro/specs/wo5-canvas-ui-webgpu-renderer/tasks.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# WO-5: Tasks
|
| 2 |
+
|
| 3 |
+
- [ ] Audit `client-apps/web/src/data/aceTopology.ts` against the real Miranda-Engine crate set; update node definitions to match (currently reflects the old eve-ecc node set: mic/presence/syncer/riva-asr/nemotron/riva-tts/a2f/animgraph/omniverse).
|
| 4 |
+
- [ ] Rewire `src/lib/ace/controllerClient.ts` and `spatialSyncer.ts` to speak to the new WO-4 Rust WebSocket telemetry server instead of the old Node.js `ace-controller`.
|
| 5 |
+
- [ ] Verify `src/lib/stageMachine/` L0/L1/L2 logic still applies cleanly to the new backend, or adapt it.
|
| 6 |
+
- [ ] Build the new WebGPU viewport component (WGSL shaders, DataChannel frame ingestion, Gaussian-splat deformation) β this is genuinely new work, not a port.
|
| 7 |
+
- [ ] Source or stub a placeholder Gaussian-splat asset to develop the viewport against while the real GaussianAvatars/FLAME/TetGS pipeline (`live-avatar-expert` skill) is built separately.
|
| 8 |
+
- [ ] Verify the No Loop Video Protocol against actually-rendered frames (screen-capture or a frame-diff harness), not code review alone β this is exactly the failure mode `ORCHESTRATION-PIVOT.md` documents from the first attempt.
|
| 9 |
+
- [ ] Measure real glass-to-glass latency end-to-end.
|
.kiro/steering/build-standards.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Miranda-Engine build standards
|
| 2 |
+
|
| 3 |
+
These rules apply to every Work Order in `.kiro/specs/` and any other work in this repo.
|
| 4 |
+
|
| 5 |
+
## No claimed progress without evidence
|
| 6 |
+
|
| 7 |
+
A Work Order is not "done" because the code was written β it's done when there's real command output proving it: `cargo build`/`cargo test` passing, a real measured latency number, a real screen-capture/frame-diff showing the No Loop Video Protocol is satisfied. Never report a task complete on code-review confidence alone.
|
| 8 |
+
|
| 9 |
+
## No simulated inference, ever
|
| 10 |
+
|
| 11 |
+
If a component doesn't have a real backend wired up yet (an unimplemented Node Warden, an unrigged Gaussian-splat asset), say so plainly rather than faking output. This project's own prior work (`eve-ecc-docs/ORCHESTRATION-PIVOT.md`) documents exactly this failure once already β a placeholder scored 96/100 because the measurement read code intent, not painted pixels. Don't repeat it.
|
| 12 |
+
|
| 13 |
+
## Reuse before rebuild
|
| 14 |
+
|
| 15 |
+
Before writing new code, check `client-apps/web`, `client-services/ace-controller`, and the existing Rust crate stubs for something already close to what's needed. The first attempt (eve-ecc) has real, working pieces β extend them.
|
| 16 |
+
|
| 17 |
+
## GPU cost discipline
|
| 18 |
+
|
| 19 |
+
Per the `aws-pipeline-architect` skill: never leave a GPU instance running idle. WO-1 through WO-4 need zero GPU. Only WO-5's actual rendering/rigging work touches a GPU instance, and only for the duration of the specific test.
|
| 20 |
+
|
| 21 |
+
## Cross-reference the Kiro skills, don't re-derive their content
|
| 22 |
+
|
| 23 |
+
`nobility-posh-framework`, `live-avatar-expert`, `aws-pipeline-architect`, and `llamacpp-huggingface-expert` are all active global skills with the science, architecture rationale, and deployment rules already written out. Reference them; don't duplicate or re-research what they already contain.
|