Add bounded avatar rejection fields and task music ASR audit
This commit is contained in:
@@ -33,6 +33,12 @@ fun conversationPackageCheck() {
|
||||
check(index.packages.values.map { it.body.frameCount }==listOf(97,121,49) && index.actionPack==null)
|
||||
check(index.edges.size==7 && index.edges.all { it.clip.ptsUs.size==12 && it.clip.sha256==pin })
|
||||
val graph=edges(packs)
|
||||
val rejectFields=mutableListOf<String>()
|
||||
val badCursor=meta+("edges" to listOf(graph[0]+("toPtsUs" to 1L))+graph.drop(1))
|
||||
check(EmotionActionManifest.read(badCursor,pin,pin,onReject=rejectFields::add) { path,hash ->
|
||||
packs[path.substringBefore('/')]?.takeIf { it.manifestSha==hash }
|
||||
}==null)
|
||||
check(rejectFields==listOf("edges[0].toPtsUs"))
|
||||
var rejected=0
|
||||
fun invalid(change: Map<String,Any?>) { check(read(meta+change)==null);rejected++ }
|
||||
invalid(mapOf("edges" to graph.filterNot { it["id"]=="sad-neutral" }))
|
||||
|
||||
Reference in New Issue
Block a user