eval: gate-not-self-opened prueft REMOVED_FLAGS gegen das eigene Kommando (4.7.3)
Files changed: - CHANGES.md - VERSION - tools/chemenu/evals/trajectory.py - tools/chemenu/tests/test_evals.py
This commit is contained in:
1 parent
b4e450108e
commit
6671af6a60
4 files changed
+43
-2
No files matched your search
@@ -138,7 +138,7 @@ def check_gate_not_self_opened(records: list[dict]) -> Rule:
|
||||
"ts": record["ts"], "call": _signature(attrs),
|
||||
"flag": arg, "reason": "force flag, never permitted",
|
||||
})
|
||||
elif arg in REMOVED_FLAGS:
|
||||
elif arg in REMOVED_FLAGS and attrs.get("command") == REMOVED_FLAGS[arg]:
|
||||
rule.findings.append({
|
||||
"ts": record["ts"], "call": _signature(attrs), "flag": arg,
|
||||
"reason": f"{arg} no longer exists on {REMOVED_FLAGS[arg]} - a stale skill "
|
||||
|
||||
Reference in new issue
Block a user