5.5 KiB
Start Here
This project now has one operator entry point:
./scripts/ratchet
That is the same as:
./scripts/ratchet next
It prints the cockpit: current state, exact next action, interpretation, reference commands, and ratchet rule.
Your Job
Your job is not to understand every metric.
Your job is:
- Run
./scripts/ratchet. - Do only what it says under
DO THIS NOW. - Ignore every other command unless
DO THIS NOWtells you to run it. - If it tells you to run
./scripts/ratchet watch 2, start it, leave the terminal open, and come back after about 2 hours. - If you manually place a Braiins canary, write down the order details outside this repo and wait through the maturity window before judging it.
Who Is In Control?
If watch is running, the Python process is in control of that terminal.
You do not need to babysit it. It will:
- Collect samples every 5 minutes.
- Write the run report when it finishes.
- Print the cockpit again.
- Return control to your shell prompt.
If you want the technical report, run ./scripts/ratchet report. The normal workflow intentionally shows the cockpit first.
After a watch finishes, the cockpit enters a post-watch cooldown. That is deliberate.
Post-watch cooldown means:
- The current experimental stage is complete.
- Starting another identical watch immediately is not useful ratcheting.
- The run report is the evidence artifact.
- The next planned touch is a later fresh sample, usually
./scripts/ratchet once.
During cooldown, the cockpit shows:
- A progress bar.
- The earliest next action time.
- The remaining minutes.
Controlled Automation
If you do not want to babysit the cooldown manually, run:
./scripts/ratchet pipeline
The pipeline first prints a proposal like:
I am going to: wait until this time, run one fresh sample, print the cockpit, then stop.
Are you OK with this? Type yes or no.
It only runs after you type yes.
It is still monitor-only. It never places, changes, or cancels Braiins orders.
Forever Supervisor
For the full autoresearch lifecycle, run:
./scripts/ratchet supervise
The supervisor is the long-running engine. It:
- Loads persisted state from
data/ratchet.sqlite. - Waits through cooldown if cooldown is active.
- Runs the next passive watch when due.
- Writes reports and lifecycle events.
- Re-enters cooldown.
- Repeats until you stop it.
If it crashes or the Mac reboots, start the same command again. It resumes from SQLite.
Use this to inspect persisted state without starting the loop:
./scripts/ratchet supervise --status
Manual Braiins Exposure
If you manually start a Braiins bid, record it immediately:
./scripts/ratchet position open --description "Braiins order abc, 0.0001 BTC, 3h canary" --maturity-hours 72
While a manual position is active:
- The cockpit says
HOLD. - The supervisor blocks new watch experiments.
- Restarting the app keeps the manual exposure state.
List positions:
./scripts/ratchet position list
When the Braiins/OCEAN exposure is truly finished:
./scripts/ratchet position close POSITION_ID
Native Mac App
The native SwiftUI shell is in:
macos/BraiinsRatchet
Build and open the real app bundle:
./scripts/ratchet app
This creates macos/build/Braiins Ratchet.app. After that, you can open that app bundle directly from Finder or pin it in the Dock.
The app is a native cockpit over the same durable Python lifecycle engine.
The app includes controls to record and close manual exposure, but the same rule applies: it never places Braiins orders.
The app is organized as:
Mission Control: one exact next action, cooldown, metrics, and direct watch-only controls.Research Map: visual autoresearch stage model.Manual Exposure: record or close manually executed Braiins exposure.Reports: raw cockpit, report, and ledger artifacts.Ratchet Lecture: the general observe, hypothesize, bound, mature, adapt method.
Research Pathway
The cockpit has two different time horizons:
DO THIS NOWis the only command you should run next.Ratchet Pathway Forecasttells you what the next stages probably look like.
The forecast is not a profit prediction. It is a workload and research-flow prediction.
It is split into:
Immediate: what happens now.Midterm: what probably happens after the current run or sample.Longterm: what could happen after multiple reports mature.
Expect the pathway to change after each report. That is the point of ratcheting: the next stage adapts to measured evidence instead of following a rigid plan.
What The Actions Mean
observe means do not bid.
manual_canary means a tiny research experiment is inside the configured loss budget. It is not a profit signal.
manual_bid means the stricter profit-seeking guardrails cleared. The code still does not place the order. You decide manually in Braiins.
Where The Reports Are
The master ledger is:
reports/EXPERIMENT_LOG.md
Each completed watch creates one run report:
reports/run-*.md
Older sessions can be embedded with:
./scripts/ratchet retro START_UTC END_UTC
The Ratchet Rule
One run is not a verdict. One run is a measurement.
Only change one knob at a time:
- Depth target.
- Overpay cushion.
- Canary spend.
- Duration.
- Timing window.
Do not increase spend until multiple mature runs point in the same direction.