Imported from Degenapetrader/EVPOLY (
AGENTS.md). Install upstream withnpx skills add Degenapetrader/EVPOLY. Copyright stays with the author.
EVPOLY Agent Notes
Mandatory Update Rule
- If any strategy logic, checkpoint schedule, entry/exit behavior, risk gate, sizing, or strategy env defaults are changed, update
strategy-changelog.mdin the same task. - Add a dated entry under
## Change Logdescribing:- what changed,
- which strategy/timeframe/symbol it affects,
- key env or code path touched.
Scope
Strategies include (minimum):
premarket_v1endgame_sweep_v1evcurve_v1sessionband_v1evsnipe_v1mm_sport_v1
Details: Low-Level AI Operating Guide
1) Mission
- Ship safe, minimal diffs.
- Preserve runtime behavior unless explicitly requested to change.
- Keep docs and env examples aligned with runtime.
2) Repo Map
- Main runtime:
src/main.rs - Premarket scheduler:
src/strategy_decider.rs - Strategy configs:
src/config.rs(endgame/global)src/evcurve.rssrc/sessionband.rssrc/evsnipe.rssrc/mm/mod.rs
- Shared sizing policy:
src/size_policy.rs - Manual HTTP API:
src/bin/manual_bot.rs - Alpha service binary:
src/bin/alpha_service.rs - Env templates:
.env.example,.env.full.example - Strategy behavior history:
strategy-changelog.md
3) Current Runtime Defaults
- Strategy toggles:
- ON: premarket, endgame, evcurve, sessionband, evsnipe
- OFF: mm_sport
- Default symbols:
- premarket:
BTC, ETH, SOL, XRP - evcurve/sessionband:
BTC, ETH, SOL, XRP - endgame/evsnipe:
BTC, ETH, SOL, XRP, DOGE, BNB, HYPE
- premarket:
4) Known Combo Constraints
endgame_sweep_v1andsessionband_v1are both late-window close strategies; review sizing before running both heavy.mm_sport_v1should not be combined with heavy directional profiles until risk sizing is reviewed.- See
docs/strategy_combos.md.
Runtime Control Rule
- Use
./evfor runtime lifecycle (start/restart/stop/status/logs/autorestart) and do not run the live main bot using directcargo run.
5) Remote Dependency Facts
- Shared timeframe discovery: remote-first with local fallback.
- EVSnipe discovery: remote-first (alpha host failover) with local fallback.
- Premarket alpha:
- remote ladder selection at scheduled pre-open intent time,
- local bot sends base ladder prices and alpha returns an aligned shifted ladder,
- unavailable/invalid alpha ladder fail-closed skips that asset intent.
- Endgame/EVcurve alpha:
- remote decision path,
- unavailable/invalid responses skip decision (strategy-specific skip behavior).
- SessionBand alpha:
- remote decision path at tau checkpoints,
- local runtime owns market discovery, base anchoring, sizing, caps, and order placement,
- unavailable/invalid responses skip decision.
- MM Sport:
- remote alpha owns low-depth skip decisions,
- local runtime owns quote placement and inventory handling.
- Setup Doctor:
- command:
python3 scripts/setup_doctor.py --env-file .env - checks wallet fields, alpha self-onboarding posture, and relayer manual fields
- treats blank per-strategy remote tokens as acceptable when
EVPOLY_ALPHA_KEYis present orEVPOLY_ALPHA_AUTO_ONBOARD=true - reports relayer fields as manual
needs_youitems and does not fake-generate them - is advisory only and should not be treated as a runtime gate
- command:
6) Required Work Sequence for Any Task
- Run
git status --short. - Inspect target code paths with
rgand focused reads. - Implement only requested changes.
- If strategy behavior/defaults changed, update
strategy-changelog.md. - Run local CI-equivalent checks before push, in this order:
cargo fmt --all -- --checkcargo check --all-targetscargo test --all-targets --quiet./scripts/security_audit.sh
- Re-check
git status --shortand diff. - Commit with clear scope message.
7) Editing Rules
- Do not revert unrelated user changes.
- Do not use destructive git commands.
- Keep comments concise and useful.
- Prefer consistency with existing architecture.
8) Manual Endpoint Facts
- Binary:
manual_bot - Auth headers:
x-evpoly-manual-tokenx-evpoly-admin-token
- Open/close semantics:
/manual/openis BUY path/manual/closeis reduce-only SELL pathtp_priceallowed for open only
- Full route guide:
docs/manual_endpoint_guide.md
9) Definition of Done
- Requested changes implemented.
- Full local CI-equivalent suite passes.
- Docs updated when behavior/surface changed.
- Commit and push completed.