Violation gallery
Three real findings of CORE's offline audit, each quoted from an actual run, not reconstructed. Each entry also names the limit that applies to it; the full list is in Known limits.
An offline audit flags code. A blocking finding makes the audit exit non-zero, so a CI job or a pre-commit hook that runs it can stop a merge; the audit itself changes nothing.
Evidence. Both runs on 2026-12-05, core-admin from CORE at commit
0e0c31c0160702eb3cd1a320c1536de9ea8dbe02 (version 3.3.0 plus unreleased
changes on main). Findings below are pretty-printed; every value is as the
audit printed it.
| Run | Directory | Command | Verdict |
|---|---|---|---|
| A | examples/starter-intent |
core-admin code audit --offline --format=json |
FAIL (exit 1), 4 rules run, 4 findings |
| B | repository root | core-admin code audit --offline --format=json |
PASS (exit 0), 194 of 196 rules run, 21 findings, none blocking |
1. starter.no_bare_except — a swallowed exception
Rule. examples/starter-intent/.intent/rules/starter.json,
enforcement blocking:
Code MUST NOT swallow exceptions with a bare 'except:' or 'except Exception: pass'.
Code (examples/starter-intent/src/hello.py, planted on purpose):
def greet(name: str) -> str:
print("greeting " + name)
try:
return f"hello, {name}"
except Exception:
pass
return "hello"
Audit output (run A, verdict FAIL):
{
"check_id": "starter.no_bare_except",
"severity": "block",
"evidence_class": "proven",
"message": "Line 22: 'except Exception' that only passes swallows the error; name the exception and handle it.",
"file_path": "src/hello.py",
"line_number": 22,
"context": {},
"details": {}
}
Proposed fix. None from the offline audit; the message says what to do. Proposing fixes needs the full runtime.
Why it matters. A silent except hides exactly the error you most need to
see, and AI assistants write this pattern to make a failing call "work".
Limit that applies here. The rule is a syntax pattern: it sees an except
whose body is only pass, not whether ignoring the error was right. Run A also
reported three non-blocking findings (starter.docstrings,
starter.no_print, starter.no_secrets) that do not change the verdict.
2. modularity.needs_split — a long file
Rule. .intent/rules/code/modularity.json,
enforcement reporting, limit 500 lines
(mapping):
A source file that exceeds the line limit AND contains a single coherent responsibility SHOULD be split into smaller files along natural seams.
Code. src/mind/logic/engines/publication_gate/rules.py in CORE itself,
733 lines.
Audit output (run B; details repeats context and is left out):
{
"check_id": "modularity.needs_split",
"severity": "info",
"evidence_class": "proven",
"message": "File has 733 lines (limit 500) with only 2 responsibility signal(s) — consider splitting",
"file_path": "src/mind/logic/engines/publication_gate/rules.py",
"line_number": null,
"context": {
"lines_of_code": 733,
"max_lines": 500,
"responsibility_count": 2,
"responsibilities": [
"data_access",
"network"
],
"dominant_class_name": "_Shape",
"dominant_class_lines": 38,
"dominant_class_ratio": 0.05184174624829468
}
}
Proposed fix. None automatic. The remediation map routes this rule to a
human (DELEGATE): a long file may be a facade that a mechanical split would
break.
Why it matters. Files past a few hundred lines are where agents lose context and duplicate code instead of reusing it.
Limit that applies here. The "responsibility signals" are regular
expressions over the file's text, not an understanding of what the file is
for. This file reads no database and calls no network: "|".join(...) matches
the data_access pattern \.join\( and record.get(...) matches the
network pattern \.get\(. The line count is exact; the responsibility count
is a heuristic. The sibling blocking rule modularity.needs_refactor (did not
fire in run B) works the same way: it counts import "concern areas" by
substring match on import names and flags more than 3. No semantic check is
active; a planned LLM-judged rule, modularity.unix_philosophy, is not part of
the law.
3. purity.no_dead_code — dead code, or not
Rule. .intent/rules/code/purity.json,
enforcement reporting:
Production code MUST NOT contain unreachable or dead symbols as identified by static analysis.
Code (src/shared/infrastructure/config_service.py, from line 257):
async def get_api_key(self, audit_context: str | None = None) -> str:
...
async def get_model_name(self) -> str:
...
async def get_api_url(self) -> str:
...
Audit output (run B; details left out):
{
"check_id": "purity.no_dead_code",
"severity": "info",
"evidence_class": "proven",
"message": "3 dead-code candidate(s) in src/shared/infrastructure/config_service.py",
"file_path": "src/shared/infrastructure/config_service.py",
"line_number": null,
"context": {
"tool": "vulture",
"issue_count": 3,
"sample_issues": [
"src/shared/infrastructure/config_service.py:257: unused method 'get_api_key' (60% confidence)",
"src/shared/infrastructure/config_service.py:273: unused method 'get_model_name' (60% confidence)",
"src/shared/infrastructure/config_service.py:279: unused method 'get_api_url' (60% confidence)"
],
"first_issue_line": 257
}
}
Proposed fix. None automatic: deleting code is a decision, so the
remediation map routes it to a human (DELEGATE).
Why it matters. Unused code that agents leave behind still gets read, and copied, by the next agent.
Limit that applies here. This finding is wrong. get_api_key and
get_model_name are called in src/shared/infrastructure/llm/client.py
through an object whose type static analysis does not know. The rule wraps
vulture, whose 60% confidence marks exactly this kind of guess; that is why the
rule is reporting, not blocking.