Add Liam waiting poses with capture and playback fences

This commit is contained in:
zenord
2026-10-15 01:51:00 +08:00
parent 72e68a4166
commit 654630dea5
28 changed files with 1102 additions and 43 deletions
+15
View File
@@ -34,5 +34,20 @@ fun emotionActionCheck() {
mapOf("audioEndUs" to 2_000_001L),mapOf("clip" to clip(false)),mapOf("clip" to clip(true)+("path" to "../escape.mp4")))) {
check(read(root+("actions" to listOf(actions[0]+change,actions[1])))==null)
}
val pose=mapOf<String,Any?>("id" to "suit-adjust","kind" to "waiting_pose","mouthAllowed" to false,
"entryAnchor" to "A","returnAnchor" to "A","sourcePackageId" to "neutral","returnPackageId" to "neutral",
"sourceFrame" to 0,"returnFrame" to 0,"sourcePtsUs" to 0L,"returnPtsUs" to 0L,"clip" to clip(false))
val waiting=mapOf<String,Any?>("schemaVersion" to 1,"microphoneAllowed" to false,"ttsAllowed" to false,"mouthAllowed" to false,
"idlePackageId" to "neutral","talkPackageId" to "neutral","poses" to listOf(pose))
check(read(root+("waiting" to waiting))?.waiting?.poses?.single()?.id=="suit-adjust")
for(change in listOf(mapOf("microphoneAllowed" to true),mapOf("ttsAllowed" to true),mapOf("mouthAllowed" to true),
mapOf("talkPackageId" to "missing"),mapOf("idlePackageId" to "happy"),mapOf("poses" to listOf(pose,pose)),mapOf("poses" to emptyList<Any>())))
check(read(root+("waiting" to waiting+change))==null)
for(change in listOf(mapOf("sourceFrame" to 1),mapOf("returnPtsUs" to 1),mapOf("sourcePackageId" to "happy"),mapOf("mouthAllowed" to true),
mapOf("audioEndUs" to 1900000),mapOf("kind" to "dance"),mapOf("mouthRuntimeManifest" to mapOf("path" to "x")),
mapOf("clip" to clip(true)),mapOf("clip" to clip(false)+("width" to 720)),mapOf("clip" to clip(false)+("path" to "../wrong.mp4")),
mapOf("clip" to clip(false)+("ptsUs" to listOf(0L,0L)))))
check(read(root+("waiting" to waiting+("poses" to listOf(pose+change))))==null)
println("PASS: 19 production waiting contract admission/rejection assertions: silent body-only, strict pin/source-return0/PTS/shape/paths/unique IDs, no dance or fake mouths")
println("PASS: production v2 index exact external pin/own body-mouth SHA/runtime04/complete bridges/music bounds/no TALK, synthetic metadata only")
}