test(ql3): expose cutover reconciliation evidence

This commit is contained in:
whyour
2026-08-31 00:40:28 +08:00
parent b172ff5e02
commit c0a4901186
2 changed files with 6 additions and 0 deletions
@@ -280,6 +280,8 @@ phase 'stop target and prove rollback candidate'
run_deploy cutover-target-stop target-stop.json target-stop.result.json
printf '%s' 'QingLong Local Alpha target-stop result: ' >&2
sed -n '1p' "$rehearsal_root/results/target-stop.result.json" >&2
printf '%s' 'QingLong Local Alpha target-stop evidence: ' >&2
sed -n '1p' "$rehearsal_root/service/cutovers/alpha-upgrade-cutover/0006-target-stop-outcome.json" >&2
grep -q '"reconciliation":"rollback_candidate"' "$rehearsal_root/results/target-stop.result.json" || fail 'target stop did not produce a clean rollback candidate'
[ "$(sha256sum "$legacy_root/db/database.sqlite" | sed 's/ .*//')" = "$legacy_sha256" ] || fail 'legacy database changed during rehearsal'
@@ -272,6 +272,10 @@ test('materializes and offline-audits one closed two-image trial kit', (t) => {
cutoverRehearsalContents,
/QingLong Local Alpha target-stop result:/,
);
assert.match(
cutoverRehearsalContents,
/QingLong Local Alpha target-stop evidence:/,
);
const report = auditLocalAlphaTrialKit({ bundleRoot: paths.outputRoot });
assert.equal(report.compatible, true);
assert.equal(report.sourceRevision, revision);