v0.1.0-pre.062

This commit is contained in:
2026-07-30 10:27:06 +02:00
parent f40fb78817
commit 460671e19d
319 changed files with 392513 additions and 9507 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# file: scripts/audit_khadhroony_workspace_rules.py
# version: 10
# version: 11
"""Audit mechanically verifiable rules specific to khadhroony-bot3."""
@@ -440,13 +440,13 @@ def audit_reserved_executor_scaffolds(root: pathlib.Path) -> list[Violation]:
"reserved executor must build only an explicit zero-instruction plan",
)
)
if reserved_count != 98:
if reserved_count != 105:
violations.append(
Violation(
"KH_EX007",
"kb-lib/src/executor",
1,
f"expected 98 reserved executor boundaries, found {reserved_count}",
f"expected 105 reserved executor boundaries, found {reserved_count}",
)
)
return violations
@@ -458,9 +458,7 @@ def audit_token_2022_naming(root: pathlib.Path) -> list[Violation]:
violations: list[Violation] = []
obsolete = (
"kb-lib.decoder.spl.token_2022",
"docs/SPL_TOKEN_2022_",
"`core_spl_token_2022",
"`spl_token_2022`",
)
candidates = [
root / "README.md",

View File

@@ -46,10 +46,13 @@ def rustfmt_re_export_key(export_path: str) -> tuple[object, ...]:
root_priority = 0 if segments[0] == "self" else 1 if segments[0] == "super" else 2
segment_keys: list[tuple[tuple[int, object], ...]] = []
for segment in segments:
raw_tokens = re.findall(r"[A-Za-z]+|[0-9]+", segment)
tokens: list[tuple[int, object]] = []
for token in re.findall(r"[A-Za-z]+|[0-9]+", segment):
for index, token in enumerate(raw_tokens):
if token.isdigit():
tokens.append((1, int(token)))
previous = raw_tokens[index - 1].lower() if index > 0 else ""
priority = -1 if token == "2022" and previous == "token" else 1
tokens.append((priority, int(token)))
else:
tokens.append((0, token))
segment_keys.append(tuple(tokens))