fix(rectification): close round A/2 tail gaps in tests, CI, and stale-score reuse
Independent Staging Quality Gate / validate (pull_request) Failing after 6m13s
Independent Staging Quality Gate / publish (pull_request) Has been skipped

Window_scan assertions now match the public from_sign/to_sign contract, the
staging quick gate runs the rectification Python suite, and compare-candidates
rescores when stored policy lags the live engine identity.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Jesse_Chen
2026-09-01 18:17:33 +08:00
parent 26ea3f06cb
commit c48a965640
9 changed files with 250 additions and 7 deletions
@@ -120,6 +120,8 @@ class RectificationDiagnosticsClustersTest(unittest.TestCase):
"layer": "d9",
"at": "05:14",
"user_meaning": "D9 在 05:14 发生变化",
"from_sign": "金牛座",
"to_sign": "天蝎座",
}])
encoded = str(scan)
self.assertIn("金牛座", encoded)
@@ -128,6 +130,11 @@ class RectificationDiagnosticsClustersTest(unittest.TestCase):
self.assertNotIn("Scorpio", encoded)
self.assertFalse(scan["unique_minute_claim"])
def test_staging_quick_gate_runs_rectification_python_suite(self) -> None:
from pathlib import Path
text = Path("scripts/run_quality_gate.py").read_text(encoding="utf-8")
self.assertIn('"tests/test_rectification_*.py"', text)
if __name__ == "__main__":
unittest.main()