feat(tooling): simplify agent workflows and validation

Merged
TH
10h ago
+1776-581

Summary

  • Give check:affected --run and pnpm check one host lock, cancellation, compact progress, disk logs, and checkout-aware receipts. --run --json returns execution results; Vitest uses dots and structured failure reports.
  • Reduce default AGENTS context 57% (8,968 → 3,847 bytes). Route specialized rules; enforce 4,000-byte AGENTS, 5,000-byte procedure, 11,000-byte glossary, and 40,000-byte procedure-total limits.
  • Require isolated mutation experiments and explicit blocked-validation ownership.
  • Bound output capture and excerpts, flush diagnostics, fingerprint modes and large file lists, and consolidate duplicate test execution.

Serialized validation supports macOS/Linux. Native Windows fails before lock access or check execution; plan generation, direct focused commands, and production runtime support remain unchanged. This removes speculative Windows tree-killing code.

36 files; contributor tooling and guidance. One Android test oracle now checks the final sample without an invalid capture quota; runtime behavior is unchanged.

pnpm check:affected --run --head <commit>
pnpm --silent check:affected --run --json

Validation

  • 799b14c5f2260b221698f494374cc52280f4a4af: exact-commit affected gate passed 36 local checks, 15,549 Vitest tests (one skipped), and 79 selector/runner tests. 25 CI/manual skips, two deduplications; CI pending.
  • Host guard: three tests pass; removing it yields one failure/two passes. Long-path fixture: two pass. Guidance contracts: five pass. Experiments used disposable checkouts.
  • Isolated mutants also detect selection, fingerprint, report, output, cadence, and stale-sample regressions. Opus/Haiku/Apex guidance exercises completed.
  • Unchanged cee2da11a4 comparison had five Apple-runner timeouts; these remain distinct from the repaired Android assertion.