fix(rectification): close round A/2 tail gaps in tests, CI, and stale-score reuse
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user