Skip to content

chore: E9 close-out — perf thresholds + fuzz-lite + docs/perf.md (issue #9) - #139

Merged
ajianaz merged 1 commit into
developfrom
chore/e9-perf-fuzz
Sep 29, 2026
Merged

ajianaz merged 1 commit into
developfrom
chore/e9-perf-fuzz

Conversation

@ajianaz

@ajianaz ajianaz commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

What

Closes the remaining E9 acceptance criteria (#9): CI-enforced performance thresholds, fuzz-lite panic-free corpus, and the documented perf record.

Closes #9.

Why

E9's last open items were "Benchmark: single turn mock < documented threshold; results in docs/perf.md" and "Tool timeout + output truncation tested; panic-free on bad input" — everything else (cross-build CI #82, public-ready #79/#91) already shipped.

Changes

  • perf_threshold.rs: 3 regression gates (text turn, 10-call tool chain, crash-resume replay), each < 2s documented budget — observed < 50ms (~40× headroom; failures mean real regressions)
  • fuzz_lite.rs: deterministic LCG corpus — 400 hostile inputs × 5 tools must settle Ok/Err (never panic): traversals, control/zero-width chars, flag injection, shell metacharacters, long blobs; 600 argv shapes through the destructive blocklist (teardown never passes); truncation invariants (40 MiB child-generated stream → capped 32 MiB with marked suffix)
  • docs/perf.md (new): budgets, method, fuzz scope, cross-build CI record
  • epics Track C marked DONE; README links the perf record

Testing

  • fmt / clippy -D warnings / test --workspace ✅ (248 tests, +6 new: 3 perf + 3 fuzz)
  • Fuzz corpus is deterministic (seeded LCG, no rand dep) — same corpus every CI run
  • cora review --staged: No issues found

@github-actions

github-actions Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz force-pushed the chore/e9-perf-fuzz branch 3 times, most recently from f906a09 to 5606727 Compare September 29, 2026 01:48
#9)

- perf_threshold.rs (CI-enforced regression gates): text-only turn,
  10-call tool chain (full intent→effect→settle sandwich per call),
  crash-resume replay — each under a documented 2s budget (observed
  <50ms; ~40x headroom, so failures are real regressions not noise).
  Results recorded in docs/perf.md.
- fuzz_lite.rs (deterministic LCG corpus, no rand dep): 400 hostile
  inputs x 5 tools (traversal, control chars, zero-width, flag
  injection, shell metacharacters, 300-char blobs) must settle
  Ok/Err — never panic; 600 fuzzed argv shapes through
  check_destructive_argv (teardown payloads never pass); truncation
  invariants (40 MiB stream → capped 32 MiB WITH the marked suffix —
  generated child-side, argv limits forbid shipping the payload).
- epics Track C marked DONE; README links docs/perf.md.

E9 acceptance: cross-build CI (#82) ✓, fuzz/panic-free ✓, perf doc ✓,
public-ready (#79/#91) ✓.
@ajianaz
ajianaz merged commit 644c3d9 into develop Sep 29, 2026
16 checks passed
@ajianaz
ajianaz deleted the chore/e9-perf-fuzz branch September 29, 2026 02:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

E9: Hardening, cross-build CI, perf, OSS prep

1 participant