fix: fence voice turns and playback; add opt-in face context
This commit is contained in:
Executable
+67
@@ -0,0 +1,67 @@
|
||||
#!/bin/bash
|
||||
# Approved author/remote; run in ordinary workspace shell because agent .git is read-only.
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")/.."
|
||||
python3 - <<'PY'
|
||||
from pathlib import Path
|
||||
import hashlib,json
|
||||
root=Path.cwd(); logs=root/'logs/voice-investigation'
|
||||
release=json.loads((logs/'release.json').read_text())
|
||||
assert release['version_name']=='0.4.0' and release['version_code']==7
|
||||
assert hashlib.sha256((root/release['apk']).read_bytes()).hexdigest()==release['sha256']
|
||||
probe=json.loads((logs/'probe-after.json').read_text())
|
||||
assert probe['status']=='passed' and probe['llm_chars']>0 and probe['downlink_bytes']>0 and probe['drained_ack']
|
||||
assert probe['backend_metrics']['face_cue_used'] and probe['invalid_face_control_survived']
|
||||
deploy=json.loads((logs/'gateway-deploy.json').read_text())
|
||||
assert deploy['status']=='deployed' and 'Ran 43 tests' in deploy['test_output'] and '\nOK\n' in deploy['test_output']
|
||||
checks=(root/'logs/reply-regressions.log').read_text()
|
||||
assert 'PASS: typed enum-only face serialization' in checks and 'Traceback' not in checks and 'Exception in thread' not in checks
|
||||
PY
|
||||
if [ "$(git remote get-url origin)" != 'git@git.oops.school:heihei/baji-vc.git' ]; then
|
||||
echo 'Unexpected origin: refusing commit/push' >&2
|
||||
exit 1
|
||||
fi
|
||||
git diff --check
|
||||
git add -- .gitignore app/build.gradle \
|
||||
app/src/main/java/com/gorios/lanvoice/MainActivity.kt \
|
||||
app/src/main/java/com/gorios/lanvoice/audio/AudioCapture.kt \
|
||||
app/src/main/java/com/gorios/lanvoice/audio/AudioPlayback.kt \
|
||||
app/src/main/java/com/gorios/lanvoice/audio/AudioOutputGate.kt \
|
||||
app/src/main/java/com/gorios/lanvoice/audio/VoiceSession.kt \
|
||||
app/src/main/java/com/gorios/lanvoice/net/DialogueClient.kt \
|
||||
app/src/main/java/com/gorios/lanvoice/net/DialogueProtocol.kt \
|
||||
app/src/main/java/com/gorios/lanvoice/expression/ExpressionController.kt \
|
||||
app/src/main/java/com/gorios/lanvoice/expression/ExpressionUi.kt \
|
||||
app/src/main/java/com/gorios/lanvoice/expression/FaceCueRules.kt \
|
||||
docs/PLAN.md docs/EXPRESSION.md docs/VOICE_REPAIR_040.md \
|
||||
backend/face_context.py backend/gateway.patch backend/gateway-base.sha256 \
|
||||
backend/test_face_context.py backend/test_gateway_reply_face.py \
|
||||
scripts/collect-voice-evidence.py scripts/probe-reply.py scripts/check-backend-template.py \
|
||||
scripts/deploy-gateway.py scripts/rollback-gateway.py scripts/package-release.sh \
|
||||
scripts/check-expression-rules.sh scripts/check-reply-regressions.py scripts/finalize-release.sh \
|
||||
tests/capture tests/playback tests/session tests/protocol tests/expression/FaceCueRulesCheck.kt
|
||||
python3 - <<'PY'
|
||||
import subprocess
|
||||
paths=subprocess.check_output(['git','diff','--cached','--name-only'],text=True).splitlines()
|
||||
assert paths, 'Nothing staged'
|
||||
for path in paths:
|
||||
assert not path.startswith(('logs/','artifacts/','.runtime/','.aws/','.codex/')),path
|
||||
assert not path.endswith(('.pem','.key','.keystore','.apk','.pyc')),path
|
||||
content=subprocess.check_output(['git','diff','--cached','--no-ext-diff','--unified=0'],text=True)
|
||||
assert not any(('-----BEGIN ' + kind + '-----') in content for kind in ('PRIVATE KEY','OPENSSH PRIVATE KEY','RSA PRIVATE KEY'))
|
||||
print(f'Reviewed {len(paths)} staged source/test/doc files; no reports/APKs/keys staged')
|
||||
PY
|
||||
git diff --cached --check
|
||||
git -c user.name=zenord -c user.email=zenord@email.com commit -m 'fix: fence voice turns and playback; add opt-in face context'
|
||||
git push origin HEAD
|
||||
python3 - <<'PY'
|
||||
import json,subprocess
|
||||
from pathlib import Path
|
||||
commit=subprocess.check_output(['git','rev-parse','HEAD'],text=True).strip()
|
||||
branch=subprocess.check_output(['git','symbolic-ref','--short','HEAD'],text=True).strip()
|
||||
remote=subprocess.check_output(['git','ls-remote','origin','refs/heads/'+branch],text=True).split()[0]
|
||||
assert remote==commit, 'remote HEAD verification failed'
|
||||
result={'commit':commit,'branch':branch,'remote':'git@git.oops.school:heihei/baji-vc.git','push':'verified'}
|
||||
Path('logs/voice-investigation/git-release.json').write_text(json.dumps(result,indent=2)+'\n')
|
||||
print(json.dumps(result,indent=2))
|
||||
PY
|
||||
Reference in New Issue
Block a user