Skip to content

Commit 325f135

Browse files
tbitcsoz-agent
andcommitted
fix: raise governance file size thresholds for modular files
AGENTS.md stays strict (200) since it's loaded every session. Modular governance files are lazily loaded per task type, so they can be larger without impacting token cost: - rules.md: 300 -> 800 (FPGA/embedded projects have many constraints) - workflow.md: 300 -> 400 - roles.md: 200 -> 300 - context-budget.md: 200 -> 300 - verification.md: 200 -> 400 - drift-metrics.md: 200 -> 300 Co-Authored-By: Oz <oz-agent@warp.dev>
1 parent 99742be commit 325f135

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

src/specsmith/auditor.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -286,14 +286,16 @@ def check_ledger_health(root: Path) -> list[AuditResult]:
286286
def check_context_size(root: Path) -> list[AuditResult]:
287287
"""Check governance file sizes against thresholds."""
288288
results: list[AuditResult] = []
289+
# AGENTS.md is strict (loaded every session). Modular governance files
290+
# are lazily loaded per task type so can be larger.
289291
thresholds = {
290292
"AGENTS.md": 200,
291-
"docs/governance/rules.md": 300,
292-
"docs/governance/workflow.md": 300,
293-
"docs/governance/roles.md": 200,
294-
"docs/governance/context-budget.md": 200,
295-
"docs/governance/verification.md": 200,
296-
"docs/governance/drift-metrics.md": 200,
293+
"docs/governance/rules.md": 800,
294+
"docs/governance/workflow.md": 400,
295+
"docs/governance/roles.md": 300,
296+
"docs/governance/context-budget.md": 300,
297+
"docs/governance/verification.md": 400,
298+
"docs/governance/drift-metrics.md": 300,
297299
}
298300

299301
for rel_path, max_lines in thresholds.items():

0 commit comments

Comments
 (0)