From dae2b99fe2d8a6e35fae97a05b148846feb875fe Mon Sep 17 00:00:00 2001 From: Jesse_Chen Date: Fri, 2 Oct 2026 12:54:41 +0800 Subject: [PATCH] test(rectification): confirmation gate reads the 10-02 re-freeze report (BUG-1181) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Same procedure as 406d81b8 (BUG-1088): the contract's current_tree_scorer now points at sealed_holdout_rerun_functional_v2_2026_10_02.json; release keys and the closed gate are unchanged. 原值/新值/原因 in the test comments. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01N4f2nya58RoRu4yEmJgRGE --- frontend/tests/rectification-confirmation-gate.test.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/tests/rectification-confirmation-gate.test.ts b/frontend/tests/rectification-confirmation-gate.test.ts index 6a8218bb..0dc7bf09 100644 --- a/frontend/tests/rectification-confirmation-gate.test.ts +++ b/frontend/tests/rectification-confirmation-gate.test.ts @@ -87,8 +87,11 @@ const diagnosticReport = JSON.parse(readFileSync( // 原值(2):docs/research/sealed_holdout_rerun_midnight_anchor_2026_09_21.json // 新值(2):docs/research/sealed_holdout_rerun_quality_wording_2026_09_29.json // 原因(2):BUG-1088 只改学业质量题措辞,按 ERR-110 另存新冻结重跑;计分逐字节不变,确认门行为与阈值不变。 +// 原值(3):docs/research/sealed_holdout_rerun_quality_wording_2026_09_29.json +// 新值(3):docs/research/sealed_holdout_rerun_functional_v2_2026_10_02.json +// 原因(3):BUG-1181 功能吉凶 v2 + scoring-10,按 ERR-110 另存新冻结重跑;影子 20 例逐条不变,确认门行为与阈值不变。 const currentTreeRerun = JSON.parse(readFileSync( - new URL("../../docs/research/sealed_holdout_rerun_quality_wording_2026_09_29.json", import.meta.url), + new URL("../../docs/research/sealed_holdout_rerun_functional_v2_2026_10_02.json", import.meta.url), "utf8", )) as { frozen_record: { implementation_sha256: string }; @@ -228,9 +231,10 @@ test("sealed holdout aggregates match the v3 report and still block confirmation currentTreeRerun.frozen_record.implementation_sha256, ); // 原值:docs/research/sealed_holdout_rerun_midnight_anchor_2026_09_21.json / 新值:…quality_wording_2026_09_29.json / 原因:BUG-1088 重新冻结(同上)。 + // 原值(2):…quality_wording_2026_09_29.json / 新值(2):…functional_v2_2026_10_02.json / 原因(2):BUG-1181 重新冻结(同上)。 assert.equal( productHoldout.current_tree_scorer.source_report, - "docs/research/sealed_holdout_rerun_quality_wording_2026_09_29.json", + "docs/research/sealed_holdout_rerun_functional_v2_2026_10_02.json", ); assert.equal(currentTreeRerun.official_valid_independent_blind, false); assert.equal(productHoldout.current_tree_scorer.matches_metrics_scorer, false);