5.6 KiB
Operator Guide
This project is a monitor and decision aid. It does not place Braiins orders.
Think of it in Karpathy autoresearch terms:
- Observe the world.
- Score one small candidate action.
- Do nothing unless the score clears strict guardrails.
- If you manually act, wait for the result to mature.
- Ratchet the strategy only after measured evidence improves.
First-Time Setup
From the repository root:
./scripts/ratchet setup
What this does:
- Creates
.venvinside this repo if needed. - Initializes
data/ratchet.sqlite. - Does not install packages.
- Does not touch anything outside the repo.
After setup, use the cockpit:
./scripts/ratchet
The cockpit tells you exactly what to do next. If you are unsure, run it again.
First Live Check
Run:
./scripts/ratchet once
What this does:
- Fetches one OCEAN snapshot.
- Fetches one public Braiins market snapshot without a token.
- Computes the current breakeven and strategy recommendation.
- Prints a report.
It intentionally hides raw JSON. If debugging is needed, use:
./scripts/ratchet raw-cycle
How To Read The Report
Focus on Strategy action.
If it says:
Strategy action: observe
Do not place a bid. The market is not cheap enough or required data is missing.
If it says:
Strategy action: manual_bid
The strategy thinks a small manual profit-seeking bid clears the configured discount guardrails. You still decide manually in the Braiins UI.
If it says:
Strategy action: manual_canary
The market is not a money-printer setup, but the expected loss is inside the configured research budget. This is the scientific mode: a tiny canary may be useful to learn about execution, timing, OCEAN accounting, stale/reject behavior, and TIDES maturity.
Important fields:
best_ask_btc_per_eh_day: current buy reference from Braiins.fillable_price_btc_per_eh_day: depth-aware price where enough unmatched ask supply exists for the configured canary-sized target PH/s.suggested_bid_btc_per_eh_day: fillable price plus the configured overpay cushion; this is the shadow-autopilot would-bid price.breakeven_btc_per_eh_day: estimated mining EV at current OCEAN/network inputs.score_btc: risk-adjusted expected value. Negative means no action.proposed_spend_btc: canary spend, currently tiny by design.maturity: how long to wait before judging a manually executed canary.
Normal Monitoring Session
Run:
./scripts/ratchet watch 6
This watches for about 6 hours, sampling every 5 minutes.
During the watch:
- Leave the terminal open.
- Do not babysit every line.
- Ignore intermediate cycle lines unless you intentionally want to stop early.
- Wait for the final cockpit. The final
DO THIS NOWsection is the instruction that matters.
Stop early with Ctrl-C.
If you stop early, the tool writes a partial experiment report and then prints the cockpit.
When the watch completes normally, it writes:
reports/EXPERIMENT_LOG.md: the master ratchet ledger.reports/run-*.md: the detailed report for this one run.- The final cockpit, then control returns to your shell prompt.
Read the ledger with:
./scripts/ratchet experiments
Ratchet Bookkeeping
The terminal report answers "what is happening now?"
The experiment ledger answers "what did we learn and what should change next?"
Every completed watch records:
- The hypothesis being tested.
- Start time, end time, sampling interval, and collected sample count.
- How many times the strategy said
observe,manual_canary, ormanual_bid. - The min/avg/max visible strategy price.
- The min/avg/max expected net BTC.
- A plain-English adaptation note.
If you ran a session before automatic bookkeeping existed, embed it retroactively:
./scripts/ratchet retro 2026-04-25T19:08:00+00:00 2026-04-25T21:05:00+00:00
Use UTC timestamps from the raw report. This reconstructs the run from stored SQLite snapshots. It cannot recover operator intent that was not written down at the time, so the report marks the run as retroactive.
When To Act
Only consider a profit-seeking manual bid when all of these are true:
Strategy action: manual_bid.score_btcis positive.best_ask_btc_per_eh_dayis below the guardrail-adjusted breakeven.- The proposed spend is acceptable to lose.
- You can wait through the maturity window before judging the result.
Do not act because OCEAN is "due". Block discovery is memoryless.
Only consider a research canary when all of these are true:
Strategy action: manual_canary.proposed_spend_btcis acceptable to lose.expected_net_btcis not worse than the configured canary loss budget.- You are explicitly buying information, not pretending the edge is proven.
- You can wait through the maturity window before judging the result.
How Long To Wait After A Manual Canary
Use the report's maturity line.
With the current OCEAN estimate, it is about:
72 hours
That comes from the 8-block TIDES window and about 9 hours expected OCEAN block time. Do not judge the experiment after only minutes or a few hours.
Daily Routine
Practical routine:
- Morning:
./scripts/ratchet once - If
observe: do nothing. - If you want live monitoring:
./scripts/ratchet watch 6 - If
manual_bid: inspect./scripts/ratchet report - If you manually place a canary, write down the Braiins order parameters and wait through the maturity window.
Safety Boundaries
- No owner token goes into this repo.
- No watcher token is needed for public price monitoring.
- No code here places orders.
.venvanddata/are local runtime state.- The Git branch is
master.