feat(r128): complete OpenClaw naming convergence phase 2 with legacy bridge parity and hardened mutation gate coverage

This commit is contained in:
rookiestar28
2026-02-20 23:10:18 +08:00
parent 4c0ac67b37
commit a99f2aa673
12 changed files with 116 additions and 111 deletions
+11 -6
View File
@@ -11,15 +11,20 @@ from typing import Any, Dict, List, Optional, Tuple, Union
# Config
TARGET_FILES = ["services/access_control.py"]
# IMPORTANT: keep this on the repo unittest runner for .venv/CI parity.
# IMPORTANT: mutation gate must exercise all access-control invariants.
# Running only tests.test_access_control misses RBAC/CSRF/tier contracts and
# lets critical mutants survive.
# CRITICAL: do not reduce this suite to a single module.
# Regressing to tests.test_access_control alone reproduces R113 false-pass risk:
# mutation score collapses (~27%) and CI adversarial extended gate fails.
TEST_COMMAND = [
sys.executable,
"scripts/run_unittests.py",
# CRITICAL: use explicit module loading instead of discovery+pattern.
# Discovery can silently run 0 tests in some CI layouts, which makes every
# mutant look "survived" and collapses score to 0%.
"--module",
"-m",
"unittest",
"tests.test_access_control",
"tests.security.test_rbac",
"tests.test_csrf_loopback",
"tests.test_s34_observability_tiers",
]
logging.basicConfig(