Index of every page on this site: llms.txt
All skills
aiengineerx avatar

/chaos-paper-autopilot-operations

@3394bf1
Run it yourself

Use when running, monitoring, tuning, stopping, or reporting the chaos-trader paper-only autopilot. Enforces bounded runs, provenance-rich P&L, config-to-code verification, candidate rotation checks, and proof before scheduling.

  • 1 file
  • 7.6 KB
  • MIT
  • Updated last week
  • GitHub
Use this Skill: https://skilld.dev/gh/aiengineerx/chaos-trader/chaos-paper-autopilot-operations

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈66 tokens for metadata: the name and description. ≈1.8k when used: this file.

Description uses 3.3% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈263 characters, or 3.3%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Chaos Paper Autopilot Operations

Operate the chaos-trader paper engine as a bounded simulation system. It is not a live executor and must never be presented as one.

Prerequisites

  • The package is installed: pip install chaos-trader (or it came with the Hermes profile).
  • A home exists: chaos onboard was run once (chaos onboard --yes for the defaults).
  • CHAOS_HOME points at that home, or you are inside the Hermes profile, which sets it. Check with chaos --version and chaos help.

Overview

Every report must identify:

mode: paper / simulated
source database
reporting window
freshness timestamp
realized P&L
unrealized P&L or unavailable reason
fees or unavailable reason
open and closed positions

When to Use

Use for:

  • chaos_paper_autopilot.py runs;
  • burn-in monitoring;
  • paper P&L questions;
  • paper config changes;
  • candidate-rotation problems;
  • deciding whether a paper strategy is ready for scheduling.

Do not use for live signing, wallet funding, or live execution; this package has none (see chaos-execution-control).

Paths

The script runs with chaos run chaos_paper_autopilot; state lives under CHAOS_HOME.

chaos_paper_autopilot.py
trading/config/paper_autopilot.yaml
trading/db/paper_autopilot.sqlite
trading/reports/

CHAOS_HOME is the directory chaos onboard created (default ~/.chaos-trader). On a Hermes install, HERMES_HOME is accepted as a fallback.

Offline first-use proof

From a source checkout with its wheel installed, use python tools/paper_walkthrough.py --out ./paper-demo (new directory), following docs/paper-walkthrough.md. Reuse its existing external-input fixtures; never seed decision or position rows to claim engine behavior. Inspect persisted entry/exit and fills, not just proposed decisions. Allow the ten-second market cache to expire before changing observations. Keep paper-report accounting distinct from outcomes forward-window cohorts; a short demo has no mature 24-hour sample. Keep artifacts private because they contain local paths.

Operating Sequence

1. Preflight

Verify config parses, DB integrity passes, no duplicate runner exists, and the requested run is bounded.

chaos run chaos_paper_autopilot --status --raw

Check the OS process table for an existing runner before starting another. Completion criterion: one or zero runners, valid config, PRAGMA integrity_check = ok.

2. Choose a bounded run

Single cycle:

chaos run chaos_paper_autopilot --once --raw

Burn-in:

chaos run chaos_paper_autopilot --max-cycles 40 --with-x --raw

Never start an unbounded loop from a chat or agent session. Use --max-cycles and track the process handle. Completion criterion: command includes an explicit cycle budget.

3. Monitor

Collect:

  • discovery cycles;
  • new candidates;
  • repeated candidates;
  • paper-enter, paper-avoid, paper-wait counts;
  • open and closed positions;
  • deep-analysis and X-search budget use;
  • last event timestamp;
  • runner PID and elapsed time.

If discovery repeatedly returns only terminal candidate states, classify the bottleneck as candidate rotation. Do not loosen entry gates merely to force simulated trades.

4. Report P&L

Use the SQLite DB read-only. Never infer P&L from candidate scores.

Rules:

  • realized P&L requires a closed position and exit value;
  • unrealized P&L requires an open position and a current mark;
  • net P&L requires available fees;
  • no mark means unrealized_pnl: unavailable, not zero;
  • no trades means realized_pnl: 0 only when the DB proves zero closed positions;
  • always state paper provenance.

5. Tune one variable class

Change one class per burn-in:

  • candidate sourcing/rotation;
  • deep-analysis budget;
  • X budget;
  • entry gates;
  • paper sizing;
  • monitoring/exit cadence.

Do not change sourcing and entry strictness in the same cohort. Completion criterion: the next cohort has one attributable change and a before/after report.

Config Enforcement Contract

Before exposing or changing a YAML field, prove the runner reads it and the value changes runtime behavior.

Classify each field:

enforced     code reads and applies it
observed     code reads it for reporting only
decorative   present in YAML but unused
unknown      not yet traced

Only enforced fields may be presented to a user as tunable. Add a contract test whenever an enforced setting is exposed.

Scheduling Gate

The package ships six locked, bounded, paper-only wrappers that a scheduler (system cron, Task Scheduler, or the agent harness's own scheduler) can call. None is scheduled by the package; the user creates any schedule.

chaos run chaos_paper_autopilot_tick     one monitor/discover/decide pass of the paper autopilot
chaos run chaos_wallet_discovery_tick    enrich a bounded batch of never-scored edge-wallets, then re-rank (Helius key needed)
chaos run chaos_paper_learning_tick      daily paper learning report, compact stdout
chaos run chaos_alpha_elite_ingest       bounded elite-wallet ingestion (any RPC)
chaos run chaos_alpha_elite_paper_tick   one tick of the elite-wallet paper cohort
chaos run chaos_alpha_elite_paper_cycle  a bounded elite-wallet paper burn-in

Run each one by hand first, for example chaos run chaos_paper_autopilot_tick. If a user already schedules these, do not disable them to satisfy the checklist below; it governs NEW automation and strategy evaluation. Treat a new install as burn-in and do not draw strategy conclusions until full paper entry-to-exit lifecycles accumulate.

Before scheduling any NEW recurring job, all must be true:

  • bounded burn-ins complete without duplicate processes;
  • interruption and resume behavior are tested;
  • P&L provenance and fee handling are correct;
  • candidate rotation prevents terminal-state rediscovery loops;
  • stop/status/report controls are available;
  • daily tool/X budgets are enforced in code;
  • The user has explicitly approved the new standing automation.

Common Pitfalls

  1. Calling an avoid-only loop healthy. It may be functioning but producing no strategy evidence.
  2. Reporting zero for unavailable P&L. Unknown mark or fees must stay unknown.
  3. Trusting YAML labels. A configured cap is not a cap until code and tests enforce it.
  4. Starting a second runner. Check process state first.
  5. Loosening gates to manufacture activity. Fix sourcing and calibration before risk discipline.
  6. Treating paper success as live readiness. Live execution has separate security gates.
  7. Letting a source-specific hunter consume the global candidate backlog. Wallet-seeded runs must analyze only mints emitted by that cycle, while still applying terminal-state, cooldown, and budget checks. Verify the reported analysis_candidates are members of the cycle's source candidates before trusting the cohort.

Verification Checklist

  • Mode is explicitly paper/simulated.
  • Run is bounded and tracked.
  • DB integrity is ok.
  • No duplicate runner exists.
  • Candidate rotation is measured.
  • P&L fields distinguish realized, unrealized, fees, and unavailable data.
  • Every editable config field is proven enforced.
  • No live wallet or signer path was invoked.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 3394bf1. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated last week
version
1.0.0
author
chaos-trader contributors
Other metadata
metadata
{
  "hermes": {
    "tags": [
      "chaos",
      "solana",
      "paper-trading",
      "autopilot",
      "pnl",
      "operations"
    ],
    "related_skills": [
      "chaos-risk-engine",
      "chaos-trade-journal",
      "chaos-alpha-decoder"
    ]
  }
}

README badge

README badge for aiengineerx/chaos-trader/chaos-paper-autopilot-operations