Integrate reviewed full action pack admission and bounded idle scheduling

This commit is contained in:
zenord
2026-10-13 07:19:34 +08:00
parent 97f87e2409
commit f0620ddd65
21 changed files with 285 additions and 75 deletions
@@ -0,0 +1,60 @@
# Full action/emotion debug candidate — 2026-10-13
Pi explicitly admitted exact index `987e125a7d7a2cde99121b5f5246c82f4dbe36c4899d3d49eaffd1a68bafb887`
from `.runtime/avatar-imports/a01-expression-action-v1/code-recovery-full-index-04`.
Approval covers independently hashed files and inspected face/fullbody/junction frames,
not comprehensive realtime naturalness, music listening, rights, device/GPU or <=1s SLA.
The immutable exact index is archived as `docs/avatar-manifests/a01-code-recovery-full-index-04.json`.
The owner's production summary remains data-only outside Git.
Implemented: five continuous own-mouth bodies N97/97/49/97/97, eight25-frame own-mouth
one-shot bridges, thirteen legal edges, two241-frame H264/AAC dance assets. Each own
runtime binds actual body SHA/PTS/N and5 mouth levels at1.1 sourcepx; mouth state curves
have independent6/12-frame clocks. TALK keeps phase through bridge/target; ACTION disables
mouth. Late/stale callbacks are fenced; bounded three playback slots and32MB total
RGBA admission remain enforced. Actual combined patch RGBA is10,911,120 bytes.
Idle variants are actually scheduled after2–3 completed neutral cycles, using legal
bridges and avoiding consecutive variants; voice/model expression/action has priority.
Dance choices prefer a different variant3:1 without forced exact alternation.
Seven model labels are preserved; happy/sad intensity2 uses slightly visual intensity1,
unsupported angry falls back as a whole package. Camera cues are independent, sharing off.
Main screen remains full avatar+gear; permissions remain first-foreground/manual.
Full production admission/import passed:5065 indexed hash/bytes checks,3222 runtime
referenced files imported,1844 review/backups excluded from APK. Original03 source and
code17 import are preserved. Reproduce the deterministic recovery using
`scripts/repair-idle-state-clock.py` against source SHA
`3a6d43cc9bf810077c55652b1fb7876cb0b3b2767ae5cbcc93fe5e9e19825781` into a new independent
output. Only two idle state frameCount/PTS were repaired; root refs/inventory rehashed.
No image/audio/video pixels were changed. Never reuse another candidate's stale SHA.
Gateway0.8 retains Qwen3.8-27b/thinking=false/json_schema/Asia-Shanghai per-request
single-system clock. Public `gateway/reviewed_action_packs.json` admits only the exact
full pin with asset_01/02 minimum video bounds10042ms. Old code17/unknown pins negotiate
no dance; HELLO cannot add packs. Canonical hash/busy/private-env/unit fences and backup
passed; only `lan-voice-gateway.service` restarted. Model/ASR/TTS/VAD services and private
provider/TTS settings were preserved. The archive model-free suite passed97 tests with
one existing Silero-model skip (98 total), nine JVM/UI suites passed,28 packaging tests,
200 actual asset software-EGL golden cases,56 actual-view callback cases,289 bridge TALK
assertions,27 idle driver assertions and17 five-body/full-action graph assertions passed.
Application/instrumentation build and HTTP packaging evidence will be appended below.
Action path requires pre-reply single-TTS drain → server ticket → actual capture stop
confirmation → legal source A → music/video with mouth off → native music end, final video
PTS, release and restored return A → completed → independent after turn/single-TTS drain.
Completion min-duration guards do not prove real playback. Repeated/late/owner/TTL/newturn/
background/settings-cancel/disconnect are fenced; no extra LLM or fixed after sentence.
During ACTION no captured PCM backlog/ASR or voice barge-in is allowed. After expression
is exposed only in its own after turn. Public probe media/record/drain confirmations are
explicitly simulated; actual ASR/Qwen/TTS service calls are distinguished from fixtures.
Known boundary: neutral/happy exit wait up to4.042s, sad up to2.042s plus1.042s bridge.
Early prepare is speculative preload; final valid expression is authoritative. Audio does
not wait for body/bridge; bridge-own mouth continues TALK. No <=1s expression claim.
Dance effective audioEnd10s, decoded AAC padding tail10.005333s, video10.041667s;
actual player completion/release controls recovery, never a10s metadata timer.
True device/GPU/mic-stop/music-tail/listening/perception certification is not_run;
no device install is authorized or performed. Music ASR auxiliary nonempty length4 for
both task audios cannot attribute background words to the actor. Commercial rights unknown.
Asset owner reports21 submitted calls/known video $4.16; image and two rate-attempt fees
unknown. This repair/code/build/probe stage made0 paid AI/media-generation calls.
+18 -1
View File
@@ -157,7 +157,7 @@ P4b/P5 integration preflight (2026-10-13; no new asset schema):
- Idle variants are additional neutral/visualIntensity0 conversationPackages rows,
each with own runtimeManifest, loopEdge and real fallback↔variant edges. Live
variant entry/return bridges need their own mouthRuntimeManifest too. Idle
selection occurs after a completed neutral cycle, returns through fallback and
selection occurs after2–3 completed neutral cycles, returns through fallback and
avoids consecutive repeats where two variants exist. Active TALK, queued model
expression and action have priority; happy/sad expression is retained when speech
ends. No random phase cuts, fixed TTS delay or new model tag is introduced.
@@ -191,3 +191,20 @@ then configure capabilities/import through the separately approved release proce
- All source/target frames bind the silent delivered body SHA/PTS, not an immutable
master with audio/cover. Count241 and approximate10s are not substitutes for
independently measured video duration, final video PTS and presented audio end.
Full candidate admission (Pi exact pin, 2026-10-13):
`987e125a7d7a2cde99121b5f5246c82f4dbe36c4899d3d49eaffd1a68bafb887`
is the independent code-recovery-full-index-04 index. Candidate frame/hash/own-layer
review permits debug integration, not comprehensive dynamic naturalness, music
listening, rights, device/GPU or perception SLA certification. All eight nonnative
bridges have their own TALK runtime; their one-shot body clock is independent of
6/12-frame mouth state clocks. Five conversation bodies and two music actions are
admitted only after production parser/media/inventory/cache checks. Runtime import
includes3222 referenced files, excluding1844 review/backup inventory files.
The public gateway registry pins both dance variants to10042ms measured video
bounds. Clients with unknown/old partial pack pins remain action-unavailable;
client HELLO cannot add to this registry. Completion still requires actual player
end/stop/release and restored A, not metadata elapsed time. Idle variant selection
waits2–3 completed neutral cycles; speech/model expression/action has priority.
Dance selection prefers a different variant3:1, allowing random repeats rather than
forcing an alternating playlist. The model chooses only kind dance.