mirror of
https://github.com/saymrwulf/BraiinsRatchet.git
synced 2026-05-14 20:37:52 +00:00
2.1 KiB
2.1 KiB
Program Charter
Goal
Maximize expected BTC profit, or minimize BTC loss, for manually buying BTC hashpower on Braiins and pointing it at OCEAN/DATUM.
Operating Premises
- OCEAN uses TIDES: shares are paid only if they are inside the current share-log when OCEAN finds a block.
- OCEAN block discovery is stochastic and memoryless. A recent drought is not evidence that OCEAN is "due".
- The useful edge is expected value versus Braiins market price, plus operational quality and timing around observable fee/reward conditions.
- The system should improve through repeated small experiments, not through one large theoretical bet.
Ratchet Loop
- Collect read-only snapshots from OCEAN, Braiins, local DATUM/Knots where available, and manual experiment results.
- Score candidate policies against current guardrails and historical/paper-trade results.
- Emit a manual recommendation.
- If the recommendation is executed manually, record the exact order parameters and later realized rewards.
- Keep changes to
strategy.pyonly when they improve the measured score under comparable risk.
Recommendations have different meanings:
observe: no action.manual_canary: bounded information-buying; expected loss is allowed if it is inside the canary budget.manual_bid: profit-seeking manual action; stricter discount and score guardrails apply.
Hard Guardrails
- No code path places, modifies, or cancels Braiins orders.
- No owner token may be stored, loaded, or requested by the code.
- Watcher-only Braiins token may be provided via environment variable only.
- No secrets in Git.
- No containers or VMs.
- Runtime files stay inside this repository.
- Default branch name is
master. - Production-like behavior starts with monitor-only and paper trading.
- First live canary, if manually executed, should use minimum viable spend only.
Initial Scoring Metric
Use BTC-denominated expected value:
expected_net_btc = expected_ocean_rewards_after_fee - braiins_cost_btc
score = expected_net_btc - risk_penalty_btc - execution_penalty_btc
The strategy must show break-even price, discount to break-even, spend, duration, and maturity assumptions.