mirror of
https://github.com/wu736139669/hapi.git
synced 2026-10-08 19:19:42 +00:00
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.
28 lines
1.0 KiB
Bash
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"
|