Skip to content

chore: add Mythos bug-hunt pipeline + AGENTS.md restructure#86

Merged
avrabe merged 2 commits intomainfrom
chore/mythos-pipeline-scaffolding
Apr 21, 2026
Merged

chore: add Mythos bug-hunt pipeline + AGENTS.md restructure#86
avrabe merged 2 commits intomainfrom
chore/mythos-pipeline-scaffolding

Conversation

@avrabe
Copy link
Copy Markdown
Contributor

@avrabe avrabe commented Apr 21, 2026

Summary

  • Scaffolds scripts/mythos/ with a four-prompt Mythos-style agentic bug-hunt pipeline (rank → discover → validate → emit) plus portable HOWTO.md
  • Migrates substantive project guidance from CLAUDE.md to AGENTS.md (tool-neutral canonical file); slims CLAUDE.md to a thin pointer mandating AGENTS.md
  • Adds a pre-release Mythos delta-pass step (tier-5 for patches, tier-5+4 for minors, full tier-5 for majors/LTS)
  • Bumps examples/wasmtime-loader wasmtime 37 → 43 to clear the April 2026 CVE patch floor
  • No runtime code change — all modifications are in docs, prompts, and example deps

Context

The Mythos pipeline is modeled on Anthropic's Claude Mythos Preview (April 2026). Key discipline: every confirmed finding requires a failing PoC test plus a failing formal-verification harness (Kani/Verus/SMT). When a formal oracle cannot reach a property — e.g., Kani/CBMC OOMs on std::io symbolic execution — cite the nearest primitive-layer proof and document the limitation. This is spelled out in AGENTS.md under "Kani scope limitation" so future sessions treat CBMC OOM as "tool cannot reach" rather than "verification succeeded".

A related PR will follow (PR 2) with the first Mythos finding applied to signature/sig_sections.rs (silent swallow of cert_count parse errors → certificate-chain downgrade). That PR is decoupled from this one because this PR contains zero runtime code change.

Test plan

  • CI passes on rust.yml (should — no runtime code change)
  • CI passes on wasm-signing.yml end-to-end
  • fuzz.yml passes
  • memory.yml passes
  • Verify AGENTS.md renders correctly on GitHub
  • Verify scripts/mythos/HOWTO.md renders correctly
  • Confirm rivet init --agents regeneration risk is understood — manually-maintained section in AGENTS.md is marked; future rivet tooling should preserve it

🤖 Generated with Claude Code

avrabe and others added 2 commits April 21, 2026 07:41
Scaffolds scripts/mythos/ with a four-prompt pipeline (rank,
discover, validate, emit) plus portable HOWTO.md, modeled on
Anthropic's Claude Mythos (April 2026). Adds a pre-release
Mythos delta-pass step scoped by release type (tier-5 only for
patches, tier-5+4 for minors, full tier-5 for majors/LTS).

Migrates project guidance from CLAUDE.md to AGENTS.md (the
tool-neutral canonical location read by Cursor, OpenCode, Claude
Code, etc.) and slims CLAUDE.md to a thin pointer. Documents
Kani's std::io OOM limitation so future finding reports treat
CBMC OOM as "tool cannot reach" rather than "verification
succeeded".

Bumps examples/wasmtime-loader wasmtime 37 -> 43 to clear the
April 2026 CVE patch floor (CVE-2026-34941, 34942, 34943, 35195,
et al.).

No runtime code change.

Trace: skip

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Bumping to 43 breaks the example's `with_context` usage —
wasmtime 43's `wasmtime::Error` no longer implements anyhow's
`StdError`, so `.with_context(...)` from anyhow::Context
doesn't apply. The earlier PR #82 that bumped the main lib to
43 left this example on 37 for this reason.

Properly bumping the example requires a port (use wasmtime's
own error helpers or `map_err` explicitly). That port is out
of scope for this pipeline-scaffolding PR.

Trace: skip

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@avrabe
Copy link
Copy Markdown
Contributor Author

avrabe commented Apr 21, 2026

Update — reverted the wasmtime-loader bump

CI (cargo on both macos-latest and ubuntu-latest) failed on the Build Examples step with:

error[E0599]: the method `with_context` exists for enum `Result<Component, wasmtime::Error>`,
              but its trait bounds were not satisfied
  --> src/main.rs:84:10

Root cause: wasmtime 43's wasmtime::Error no longer implements anyhow::StdError, so Context::with_context from anyhow doesn't apply anymore. PR #82 (which bumped the main lib 29→43) left examples/wasmtime-loader on 37 for exactly this reason.

Reverted the example's Cargo.toml back to wasmtime = "37.0" in commit 86be40b. Bumping the example to 43 properly requires porting the example's error handling (use wasmtime's own helpers or explicit map_err), which is out of scope for this pipeline-scaffolding PR.

Net effect: PR is now truly zero runtime code change — only scripts/mythos/, AGENTS.md, and CLAUDE.md modifications remain.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@avrabe avrabe merged commit 0441bcc into main Apr 21, 2026
13 checks passed
@avrabe avrabe deleted the chore/mythos-pipeline-scaffolding branch April 21, 2026 16:32
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.

1 participant