---
name: chaos-paper-autopilot-operations
description: 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.
version: 1.0.0
author: chaos-trader contributors
license: MIT
metadata:
  hermes:
    tags: [ chaos, solana, paper-trading, autopilot, pnl, operations ]
    related_skills: [ chaos-risk-engine, chaos-trade-journal, chaos-alpha-decoder ]
title: chaos-paper-autopilot-operations
canonical_url: https://skilld.dev/gh/aiengineerx/chaos-trader/chaos-paper-autopilot-operations
last_updated: 2026-11-20T11:15:51.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> If the user asked to install this Skill, run `npx skilld install aiengineerx/chaos-trader/chaos-paper-autopilot-operations`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/chaos-paper-autopilot-operations`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/aiengineerx/chaos-trader/chaos-paper-autopilot-operations) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/chaos-paper-autopilot-operations`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/chaos-paper-autopilot-operations --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/chaos-paper-autopilot-operations --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# 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:

```text
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`.

```text
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.

```bash
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:

```bash
chaos run chaos_paper_autopilot --once --raw
```

Burn-in:

```bash
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:

```text
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.

```text
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.
