Skip to content
Back to skills

Review Trades

ASecurity

Review the desks' closed trades - rebuild the trade ledger from public fills, test every slice for fluke or edge, list backtest proposals. Read only; never edits live config or places an order. Runs daily from /desk-loops and once after any close.

  • 36 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 13, 2026
ai-agentspythongo

Works with

  • mcp

Security analysis

A100/100

Scanned November 14, 2026

npx -y skills add Julian-dev28/pathiel --skill review-trades --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Review Trades?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Review Trades
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/julian-dev28-review-trades/badge)](https://www.skillsdirectory.com/skills/julian-dev28-review-trades)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: review-trades
description: Review the desks' closed trades - rebuild the trade ledger from public fills, test every slice for fluke or edge, list backtest proposals. Read only; never edits live config or places an order. Runs daily from /desk-loops and once after any close.
---

# review-trades

The learning loop (operator, 2026-11-02: "continuously evolve, learn from
what we did right, fix what we did wrong, see if mistakes and successes are
just flukes or a predictions"). One script call; no agent, no LLM, no MCP.

1. **Run it** from the repo root:

       python3 -m services.review run

   It fetches the wallet's fills (public Hyperliquid reads), updates
   `$PATHIEL_STATE_DIR/review/ledger.jsonl`, writes
   `docs/strategy/learning/REVIEW_<UTC date>.md` and prints one line that
   starts `REVIEW <utc> trades=...`.
2. **Print that line.** Nothing else when it says `new_leaks=none` and
   `new_proposals=0`.
2b. **Check the call grades are current** (read only, no network):

       python3 -m services.strategies.evals.grading_lag_check

   It prints one `GRADING OK|FAIL ...` line. On FAIL, print it and the
   rows under it: `stale` (a call past its horizon with no grade),
   `sweep ... STOPPED` (calls pending and the grader's heartbeat
   `strategies/grade_sweep.json` is missing or older than 2h) and
   `missed` (a pending call the last sweep never read) all mean the
   dashboard server's hourly sweep (pathiel/server.py `_grade_loop`) is
   not running or is on old code; say so and name the restart. A high
   `pending` count with `sweep=0.xh ago` and no rows is fine: those calls
   are open, the sweep read them and left them. Never grade from here.
3. **Something new?** If `new_leaks` names a slice or `new_proposals` is
   above 0: say so in one short message (the slice, its label, n, and the
   lever the report proposes, from the report's "What to try next"), and
   append the summary line to `/tmp/oil-loop/progress.log` as
   `REVIEW <utc> <rest of the line>`.
4. **A new LEAK goes to the operator as a yes/no, the same day**
   (operator, 2026-11-04: "aren't we grading and growing... too many tests
   not enough results"). When `new_leaks` names a slice, send ONE
   `PushNotification` and print the same question:

       LEAK <slice>: <n> trades, <wins> win(s), <net $>. Turn on <lever>? yes/no

   `<lever>` is that slice's line under "What to try next" (its `Try` and
   what it does in plain words). Ask once per new leak. A yes is the go:
   make the change in the desk rules with a gate test and a real-fills
   eval (`services/strategies/evals/no_break_real_fills.py` is the pattern),
   commit, and say what to restart. A no: note it in the next report run and
   do not ask again for that slice. The review itself still changes nothing.
5. **If it fails** (network, a parse error): print the last line of the
   error once and stop. Do not retry in a loop; the next scheduled run will.

## Rules

- LEANING proposals are backtested on the operator's OK, with the command
  the report gives, and adopted only on the operator's go. A LEAK (10+
  trades, labeled LEAK) skips the backtest: it goes straight to the
  operator as the yes/no in step 4.
- Never edit live config, `.claude/agents/desk-tick.md`, the desk-tick
  skill, or a live constant from this skill. Never call a pathiel MCP tool
  here. The review only reads.
- Never feed the report into a thesis prompt (SCORECARD_TEST_2026-10-31.md:
  the desk's own record in its prompt made money worse).
- n is small: an EDGE or LEAK needs at least 10 trades in one slice. Say
  LEANING, FLUKE or NOISE as the report does; never round them up.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.