Support bridge-owned TALK layers and recover free P4a candidate

This commit is contained in:
zenord
2026-10-13 04:35:33 +08:00
parent fcc55b8370
commit a53600db92
22 changed files with 18696 additions and 43 deletions
+71
View File
@@ -238,3 +238,74 @@ p4a-combined-01-gate/}`, `logs/action-emotion/media-wiring/sad-v2-gate.json`.
No asset import/activation, APK build/publication, gateway deployment/restart,
new live probe or paid call. Code16 rollback remains intact. Handoff marker:
**PARTIAL_EMOTION_PACKER_READY_INDEX_MACHINE_PASSED_AWAIT_EXACT_PI_PIN**.
### Bridge TALK recovery milestone (2026-10-13)
Baseline `fcc55b8370d212570fa1d2884bed789f5238eb4f`. The coordinator chose bridge-own
TALK layers; live conversations continue to traverse reviewed expression bridges.
`edge.mouthRuntimeManifest:{path,sha256}` is optional for old metadata, but a voice
session cannot enter an edge lacking its own layer. New edges bind bridge SHA,
actual N/PTS/fps/duration/shape and five patches per frame. Native loops keep the
same body layer; actual bridges are one-shot. All runtimes together remain32MB,
each runtime8MB. Queuing an expression no longer mutes the current body's mouth.
A shared, generation-fenced phase clock carries TALK across own body→own bridge→
own target; hidden bodies do not advance it. The destination is recomposed before
reveal, stale workers cannot reclaim its clock, and released presenters remove
cached samples. Audio/TTS never waits on these transitions. Settings distinguish
model requested expression, selected slight visual, actual body and queued reason.
The sensor/network-free preview now traverses neutral→happy→neutral→sad→neutral,
waiting on actual presented package identity, with a60s failure bound.
After the asset worker's reported transport failure, user authorized **only free
four-bridge offline recovery**. Output is isolated at
`.runtime/avatar-imports/a01-expression-action-v1/code-recovery-bridge-mouth-01/`.
No original owner directory, reference or movie was modified. All1244 old indexed
files and old exact index `000d04ea2137748e42a762e170a739c0ea5648fe14703d4980c2cc5811bc5008`
retain their hashes. New four bridge runtimes each have25 actual PTS and125 own
RGBA patches at1.1 sourcepx. Lip localization, cheek/nose tracking and each-frame
seam deformation reuse the owner's documented CPU runtime04 method; no endpoint
patch pixels are reused. Scalar phase control is shared; each runtime serializes
its own curve data. Export script is `scripts/export-bridge-own-mouth.py`.
An interrupted final metadata write (missing new docs directory) was corrected;
explicit finish verifies existing source/own hashes, without overwriting exports.
Candidate index SHA:
`e73f336123bf5e2dec2d82b97eb22cc632a4ee75bcf7f4bd0052b1ff42d95cd7`.
This is **not a new Pi pin**. Exact metadata is archived at
`manifests/a01-expression-action-v1/recovery-bridge-talk-index.json`.
Production gate passes1773 inventory files/1734 runtime references; three body
runtimes97/97/49 plus four25-frame bridge runtimes. Total RGBA5,804,040 bytes.
Seven graph edges remain three native loops/four bridges; actions empty, no dance.
Review download:
`http://192.168.31.124:8080/avatar-bridge-talk-review-e73f336123bf/code-recovery-bridge-mouth-01.tar.gz`
SHA `204a04c7ed7928da401afc0d87203075f980c567dc3a91f503f7297e1259c8bd`,
58,767,872 bytes; HTTP bytes and standalone index SHA verified. The adjacent
`review/` provides20.167s clean/annotated/mouth MP4s, all25×5 levels and both
junctions with dense face/full-body PNGs for every bridge. These are four explicitly
separate five-second synthetic TALK windows, **no real PCM**, not a full live
conversation/GL/device capture. Inherited old continuous graph preview is retained.
`machine-gate.json` and provenance contain only this task's role asset metadata.
No chat/capture/credential logs are published.
Validation:9 JVM entry points plus UI contracts;51 actual-view/binding/renderer/
MediaPlayer fixtures,15 prior driver boundaries and289 bridge timing/phase/abort/
resource assertions;14 new bridge binding/cache rejection cases,15 prior graph
rejections and2361 dynamic N×5 checks. Packaging safety17 tests includes known
previous import backup, unknown/drift/symlink preservation. Gateway archive98:
97 pass,1 existing excluded Silero model skip. Offline GLES40 base goldens plus
40 for each of four actual bridge runtimes (200 total), production shader with
2D sampler substitution. Android/app instrumentation Kotlin compilation passes;
instrumentation execution, physical GPU/AudioRecord and perceived SLA are not_run.
Naturalness and comprehensive dynamic human review are not certified; rights unknown.
No new APK built/published or bridge pack activated in this milestone. Code17 is
still free; code16 stays rollback. New exact coord pin is required before verified
replacement of the old1226-file code-owned import, backup and candidate publication.
Gateway0.8/Qwen/TTS/provider parameters and containers are unchanged; no deploy,
restart or paid/model request. Recovery's additional AI calls/known fee both0.
Original batch11 calls/knownvideo$1.44/image unknown is an earlier owner snapshot,
not a claim about later P4b/P5 production. No recovery exporter/checker remains
running. Owner resumed independent P4b/P5; recovery directory remains isolated.
Handoff: **BRIDGE_TALK_CODE_AND_FREE_INDEX_READY_AWAIT_NEW_EXACT_COORD_PIN**.
+19
View File
@@ -133,3 +133,22 @@ Next pin / asset handoff (media-wiring stage, no activation):
- Supply full index bytes SHA, all referenced files plus SHA/bytes, preview paths
and Pi's independent exact index approval. A runtime-only SHA is not the index pin.
Do not fabricate bridges, exits, audio, naturalness or dance capability to fill gaps.
Bridge TALK extension (2026-10-13, stable optional field):
`edge.mouthRuntimeManifest:{path,sha256}` references a bridge-own schema2 runtime04.
Use packId `a01-expression-action-v1-<edgeId>-runtime-04`; relative runtime paths
resolve under its own manifest directory. Its body SHA/N/actual ptsUs/duration/fps/
480×848 shape must equal edge.clip exactly; the body path can resolve to a copy of
that unchanged bridge video. Every one of its N frames has five own source patches
(1.1 sourcepx candidate) and own coords/curves, never either endpoint's patches.
For the current four bridges N=25:125 own PNGs each, measured independently.
Optional `mouthAllowed:true` requires this runtime; missing runtime means no live
voice-session entry into that edge. Native loops reuse their existing body's layer
and must not declare another mouthRuntimeManifest. Non-native bridges are one-shot,
not looped regardless of runtime routing metadata. All conversation and bridge
runtime RGBA counts sum under32MB; each runtime remains bounded8MB/N720.
`actions:[]` remains no dance capability; ACTION mouthAllowed:false is unchanged.
The new p4a-combined-02 index, all runtime references and files inventory require a
new exact Pi pin; old000d04ea…5008 is only the old silent-bridge candidate pin.
Offline processing does not require new AI/body generation or paid calls.