How beastrog/aethens works
Aethens is a Python CLI for auditing task verifiers. Its main workflow loads task directories, runs verifier checks using an isolated runner, and emits findings with evidence and reproduction commands. Separate CLI capabilities generate probe overlays, scaffold task directories, and convert Terminal-Bench 2 tasks. The graph follows documented workflow statements and source-index references; unsampled implementation details and unverified links are omitted.
Main entry points: audit.py Audit orchestration · main.py CLI commands · base.py Check framework · c004_mutation.py Mutation testing
Components 24
CLI and task input
- CLI commands
src/aethens/cli/main.py - Task loader
src/aethens/adapters/task_loader.py - Task and report models
src/aethens/models.py
Verifier auditing
- Audit orchestration
src/aethens/audit.py - Check framework
src/aethens/checks/base.py - Gold sanity
src/aethens/checks/c001_gold_sanity.py - Flakiness
src/aethens/checks/c002_flakiness.py - Labeled candidates
src/aethens/checks/c003_labeled_candidates.py - Mutation testing
src/aethens/checks/c004_mutation.py - AST mutations
src/aethens/checks/mutation.py - Equivalence checks
src/aethens/checks/equivalence.py - Order and isolation
src/aethens/checks/c005_order.py - Overspecification
src/aethens/checks/c006_overspec.py - Behavior rewrites
src/aethens/checks/rewrites.py - Reward-hack probes
src/aethens/checks/c007_reward_hack.py
Task execution
- Runner interface
src/aethens/runner/base.py - Docker sandbox
src/aethens/runner/docker.py - Unsafe local runner
src/aethens/runner/local.py - Disposable workdir
src/aethens/runner/workdir.py
Audit utilities
- Report output
src/aethens/report.py - Probe overlays
src/aethens/probes.py - Task scaffolding
src/aethens/scaffold.py - TB2 converter
src/aethens/tb2convert.py
Other components
- Task author
Connections 27
- Task author → CLI commands: runs audit
README.md - CLI commands → Task loader: loads tasks
src/aethens/cli/main.py - CLI commands → Audit orchestration: starts audit
src/aethens/cli/main.py - Audit orchestration → Check framework: uses checks
src/aethens/audit.py - Check framework → Task and report models: uses models
src/aethens/checks/base.py - Check framework → Runner interface: runs verifier
src/aethens/checks/base.py - Audit orchestration → Task and report models: uses models
src/aethens/audit.py - Audit orchestration → Gold sanity: dispatches checks
- Audit orchestration → Flakiness: dispatches checks
- Audit orchestration → Labeled candidates: dispatches checks
- Audit orchestration → Mutation testing: dispatches checks
- Audit orchestration → Order and isolation: dispatches checks
- Audit orchestration → Overspecification: dispatches checks
- Audit orchestration → Reward-hack probes: dispatches checks
- Mutation testing → AST mutations: generates mutants
src/aethens/checks/c004_mutation.py - Mutation testing → Equivalence checks: checks equivalence
src/aethens/checks/c004_mutation.py - Overspecification → Behavior rewrites: generates rewrites
src/aethens/checks/c006_overspec.py - Runner interface → Docker sandbox: implements
src/aethens/runner/__init__.py - Runner interface → Unsafe local runner: implements
src/aethens/runner/__init__.py - Docker sandbox → Disposable workdir: builds workdir
src/aethens/runner/docker.py - CLI commands → Docker sandbox: selects runner
src/aethens/cli/main.py - CLI commands → Unsafe local runner: selects runner
src/aethens/cli/main.py - CLI commands → Report output: writes report
src/aethens/cli/main.py - Report output → Task and report models: serializes models
src/aethens/report.py - CLI commands → Probe overlays: creates overlays
src/aethens/cli/main.py - CLI commands → Task scaffolding: creates task
src/aethens/cli/main.py - CLI commands → TB2 converter: converts tasks
src/aethens/cli/main.py