Files
hapi/scripts/verify-deploy-build.sh
T
wushenghua baeeb11356 fix: preserve deployed session fixes
Persist paged Codex history checkpoints and bounded, acknowledged delivery.
Keep usage sources and accounting across deleted or merged sessions.
Include native Goal controls, faster peer/session queries, and release guards.
Track the complete deployed source so isolated builds cannot omit local fixes.

Validation: all typechecks pass. The full suite reports 7,997 passing tests
and 46 existing failures, each reproduced against the prior commit.
2026-10-08 19:51:45 +08:00

28 lines
1.0 KiB
Bash

#!/bin/bash
# Reject release artifacts that omit locally required fixes before installing.
# An isolated checkout can build successfully while excluding uncommitted work.
set -euo pipefail
build=${1:?usage: verify-deploy-build.sh <binary>}
if [ ! -f "$build" ]; then
echo "error: release artifact missing: $build" >&2
exit 1
fi
# These wire/error/SQL literals survive the all-in-one bundle's minification.
# Check the artifact, not its version: local builds can share a version number.
for marker in \
'codex-history-sync' \
'codex_history_epochs' \
'History batch was not confirmed' \
'Transcript delivery unconfirmed' \
'usage_session_sources'; do
if ! LC_ALL=C grep -aqF -- "$marker" "$build"; then
echo "error: release artifact omits required feature: $marker" >&2
echo "error: rebuild from the complete deployment workspace, including untracked source files" >&2
exit 1
fi
done
echo "release features ok: durable Codex history, confirmed delivery, persistent usage"