Files
baji-vc/docs/AVATAR_NEUTRAL_GRAPH_INTERFACE.md
T
zenord 9ea5eb31c1 feat: deliver clean avatar home in 0.6.2 UI debug candidate
Keep the avatar mounted while all connection, permission, privacy and diagnostic controls live in a settings sheet. Save the tested continuous-body renderer, safe transition driver and foreground HELLO/permission workflow from this session. Pin runtime03 for the code14 UI-only candidate; mouth deformation remains unresolved. Add source UI contracts, an optional sensor-free device probe, exact asset import and candidate packaging checks. Portrait binaries and diagnostics remain private and untracked.
2026-10-12 22:19:56 +08:00

42 lines
6.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Fixed neutral graph — asset handoff for 0.6.1
This replaces the failed raw-talk slicing route. The arms reference is the accepted original SHA256 `36a078ad9e1d2929612e9baa2af524bda90dafceddc4515dd448fc08121d7dd2`. Cleanup and all rejected wide-mouth/sigh-like takes are excluded. The material owner owns `.runtime/avatar-imports/a01-neutral-graph-v1/`; Android work must not write there. Generation is bounded to at most five video calls, estimated total ≤$1.70, with opening/talk1 quality gates first. First/last image constraints are production inputs, not junction approval.
## Five real nodes and required junctions
| Node role | Anchors | Runtime operation |
|---|---|---|
| idle | A→A, closed mouth | independently reviewed loop |
| opening | A→B | real opening bridge |
| talk1 | B→B | independently reviewed small-articulation loop |
| talk2 | B→B | independently reviewed small-articulation loop |
| closing | B→A | `end-talk` / `idle-start` are names of this same node/file |
Required explicit approved transitions: idle→opening; opening→talk1 and →talk2; talk1→talk2 and talk2→talk1; talk1→closing and talk2→closing; closing→idle. In addition, idle, talk1 and talk2 each require their own reviewed self-loop seam. Absence of any junction rejects the complete product graph. Clip IDs can differ from these display names. The role accepts `closing`, `end-talk`, or `idle-start` as aliases; they must not create three different nodes.
The owner changed the production method after the initial two1s calls (total$0.20) gave opening but insufficient talking articulation. A controlled local mouth layer over common A/B body data is an admissible candidate, not automatic approval. Preserve original AI masters, edited B and B-compositing metadata; disclose the ellipse/feathered mouth mask, mouth/lower-jaw parameters and procedural body-deformation curves per frame. No further paid call or model installation is implied. Zero endpoint velocity is a construction constraint; final pixels and neighboring full-speed motion still need review. Local mouth blending must not conceal whole-face/body cuts or make a static portrait pass as animated idle. Keep semantic small-talk quality and all graph edge/loop gates independent.
The runtime preselects one legal upcoming talk variant at segment entry and prepares it on the second decoder. Another legal variant is preferred over immediate repetition; only two decoders exist. Stop cancels that hidden continuation and prepares closing. A visible opening may complete through a legal talk entry before closing. Reversal always uses the latest intent and reviewed paths.
An additional independently reviewed opening→closing B junction is allowed for reversal. It avoids an unnecessary talk node when the latest intention is idle, but does not replace any required junction or loop. Unknown/pending reversal metadata never becomes a shortcut.
## Delivery fields
Use `docs/AVATAR_SAFE_TRANSITIONS.md` for the exact safeTransitions v1 schema. Final pack top level: schemaVersion=1, packId=`a01-neutral-graph-v1`, identityId=`a01`, five assets, staticFallbackPath under `frames/`, staticFallbackSha256, source/provenance/rights status. Each asset has id/path/sha256/emotion=`neutral`/intensity=0/hasAudio=false. Runtime paths are `videos/<name>.mp4` or `delivery/<name>.mp4`, never audit-run paths. Keep original source spans and source PTS in separate provenance/review evidence; normalized clips have zero-origin PTS. Never round a candidate into approved metadata.
Each clip provides durationMs/frameCount/fpsNumerator/fpsDenominator, role, entryAnchors, safeExitWindows, loop/loopSeamReviewStatus/seekReviewStatus/reviewStatus. Intervals use startMs/endMs and startFrame/endFrame, end exclusive. For 24fps preserve exact PTS in evidence and choose integer-ms bounds that actually contain the annotated frame PTS after runtime floor-to-ms conversion. Source and target intervals share a reviewed anchor. This asserts inspected complete-state AND velocity compatibility for all permitted frame pairs, not just matching mouths.
Also supply `mouthStateWindows` on clips when verified: objects with state=`active` or `closed_stable`, startMs/endMs/startFrame/endFrame/reviewStatus. They record actual small conversational mouth activity and stable mouth closure seen in reviewed frames. They are independent of role/filename/anchor IDs. Missing evidence stays empty and latency stays unknown; transition or loop approval alone cannot manufacture a mouth-completion time. Fields are optional for legacy parsing but required evidence for final graph activation. Do not mark a prolonged open mouth `active` merely to satisfy this field.
Each junction needs dense face/fullbody/arms/feet-shadow context and full-speed repeats, including self-loops and both talk directions. Check head/eyes/blinks/lips/jaw/body/hands/feet/background/shadow plus motion speed/direction. At least 10s original-speed talk continuation and synthetic cue scenarios must be visually reviewed; no reverse/freeze/retiming/double-face crossfade. Quality and junction approval are separate gates. Until review: safeTransitions pending, approvedEdges=[], safeExits=[]; no invented windows or approved hash.
## Response budget and acceptance
Goal ≤1s means intention→observed small mouth activity, and silence/abort→observed stable closed mouth, NOT transition-start time. For natural silence count the actual-playhead detector's 120ms release; abort stops audio immediately and adds no audio wait. Worst-case source-window wait + target preparation (where not already overlapped) + bridge-to-mouth-event + presentation must fit the remaining budget.
Requested talk 0.4–0.7s and bridges 0.15–0.3s are search preferences, not guarantees. 0.7s wait + 0.3s closing + 0.12s detector =1.12s before decoder/presentation, hence fails. A 0.4–0.55s maximum exit gap plus 0.15–0.2s closing may leave a workable margin; still measure, do not approve from arithmetic alone. Idle exit density is equally necessary. A unique 4s exit fails.
Trace latest intent time/revision/generation, active source real PTS/frame, approved exit interval, target prepared time, actual reveal, actual mouth event/closed-stable frame, superseded requests and gate-wait reasons. Exercise cue offsets throughout each loop, opening reversal, ongoing talk variant changes, stop/resume, abort, late target, missed windows and background. Unknown/failed endpoints remain null. No PCM, chat, user face images or camera head pose needed.
Only a coordinator-reviewed exact manifest hash may enter the runtime allowlist. `scripts/import-avatar-graph.py SOURCE --approved-manifest-sha SHA --verify-only` checks bytes without importing; omit verify-only only after the handoff is reviewed. No candidate is currently allowlisted. Original 0.6.0 remains the rollback APK.