Runbook · trading harness
Trading harness runbook
A separate runbook inside the agent harness playbook for the trading seats: the FriesTrader live process and the AI-Trader paper-trading seat. Paper and live stay apart; ideas earn their way from one to the other through evidence and Tongli’s approval.
交易 harness 运行手册 · 纸上测试与实盘严格分离 · 仅流程与策略层面。
1. Purpose & the two seats
The trading harness keeps doing and testing in different seats so an experiment can never touch real money by accident.
2. Seat 1 — FriesTrader live process
Two phases, weekdays, Eastern time.
| Phase | When | What happens |
|---|---|---|
| Phase A — research | 5:30 PM ET, after the close | Screen the watchlist, form a news-based thesis per candidate, and write proposals to a file. Research only: no order tools are available in this phase. |
| Phase B — execute | 9:35 AM ET, shortly after the open | Re-check each proposal against fresh data and execute only what passes the risk rules. Anything that no longer fits is skipped, not forced. |
Dry-run vs live gate
- The process starts in dry-run: Phase B records what it would do and places nothing.
- Moving to live is a single explicit switch that only Tongli flips, after reviewing dry-run results.
- Falling back to dry-run is always allowed and needs no approval.
Conviction sizing (general terms)
- Higher conviction earns a larger position, but always under a hard per-position cap and a hard total-exposure cap.
- Every size, stop, and limit is computed by small deterministic scripts; the model proposes a conviction level and cannot override the arithmetic.
- Low conviction or stale data means no trade.
Screening scope
- Watchlist-only. Screening runs over a curated list; nothing outside it is traded, even if a signal looks attractive.
- Adding to the list is a rule change and follows the guardrails.
Logs
Per-run logs are synced privately. The public FriesTrader project pages show only sanitized, counts-and-decisions summaries.
3. Seat 2 — AI-Trader paper seat
Agent name: TonyZhouAgent on AI-Trader. Simulated starting capital: $100k of paper money. No real funds, and no link to any real account.
| Piece | How it is used |
|---|---|
| Signal types | Strategy-level posts (idea, thesis, rationale) and paper trades in the simulated account. Operation-style signals are paper only. |
| Challenges | Optional timed competitions; used as a structured way to stress-test one idea against a clear scoring rule. |
| Heartbeat | A periodic check-in that keeps the agent active and picks up new activity and messages; read-only on our side apart from paper actions. |
| Points | Platform reward for participation. Treated as a side effect, never as a performance signal. |
What the seat is for
- Paper-test ideas before changing FriesTrader rules.
- Strategy-level posts only — thesis, setup, risk logic. Nothing that reveals real activity.
- Read other agents’ signals as screening ideas, never as instructions.
- Optional delayed paper shadow — mirror a FriesTrader-style idea on paper after the fact, with a delay, purely to compare outcomes.
Credentials for this seat live privately in the local credential store, never in this repo or on this site.
4. Guardrails
- Paper and live are separate. Different seats, different tooling, different logs.
- Nothing from the real account goes to AI-Trader or to the hub — not in posts, not in screenshots, not in logs.
- No order tools in research phases. Phase A and all paper-seat research run without any order-placing capability.
- Every rule change needs a test period or dual review, and Tongli’s approval. Plan is not permission.
- Local model is advisory. The local Qwen (Ollama
qwen3.5:9bvia~/bin/local-llm) may draft, summarize, and classify — it never gates a trade. - Commits are authored only by Tongli and use a subject-only message.
- No secrets in HTML, markdown, or commits.
These sit on top of the harness-wide GREEN / YELLOW / RED tiers: anything that spends, sends, or goes live is RED and needs Tongli.
5. Promotion path
| # | Step | Exit criterion |
|---|---|---|
| 1 | Idea | Written hypothesis with a clear rule and a clear way to be wrong |
| 2 | AI-Trader paper test | Run for a pre-declared test period in the simulated seat |
| 3 | Evidence review | Results compared to the hypothesis; dual review when no full test period was possible |
| 4 | Tongli approval | Explicit yes on the specific rule change |
| 5 | FriesTrader dry-run | Rule runs without placing orders; behavior matches expectation |
| 6 | Live | Tongli flips the live gate |
Failing at any step sends the idea back one step or retires it. Skipping a step is not allowed.
6. Operator checklist
- ☐ Weekday Phase A (5:30 PM ET) wrote proposals; Phase B (9:35 AM ET) ran in the right mode
- ☐ Dry-run vs live mode is what Tongli last set
- ☐ Paper-seat heartbeat is current; posts are strategy-level only
- ☐ No real-account detail in any post, note, or commit
- ☐ Any rule change has a test period or dual review plus Tongli’s approval
- ☐ Local model output used for drafts and summaries only
7. Links
- Agent harness playbook — parent runbook
- Harness Lab — curated harness tips
- Field Brief — daily scout surface (lives under CR-Harness)
- FriesTrader project pages — board and sanitized dry-run log
- AI-Trader — external paper-trading platform