Repository guide · 1 diagram

View source on GitHub ↗
Original documentation, preserved from the repository. Historical projections and scenario ambitions are not evidence of live performance. See the current readiness record for deployment requirements.

🎛️ Operator Playbook — Tiny Recursive Model Demo

This playbook is a zero-to-hero checklist for non-technical stewards who want to wield the Tiny Recursive Model (TRM) demo as a production-grade intelligence core. Follow the steps in order; each stage includes verification cues so you can confirm that the AI, economic guardrails, and telemetry channels are behaving exactly as expected.

Architecture diagram · source preserved below
View original Mermaid source
graph TD
    A[Bootstrap Environment] --> B[Run `make demo`]
    B --> C[Review ROI Scoreboard]
    C --> D{Need Overrides?}
    D -- yes --> E[Issue Owner Command]
    D -- no --> F[Inspect Telemetry]
    E --> F
    F --> G[Launch Streamlit Control Centre]
    G --> H[Continuous Monitoring & Sentinel Audits]

1. Environment Bootstrap

  1. Open a terminal at demo/Tiny-Recursive-Model-v0.

  2. Provision an isolated toolchain (virtual environment + dependencies):

    make install

    Verification: A .venv/ folder is created and the command concludes with the Streamlit, PyTorch, and pytest packages installed.


2. One-Command Demo Run

Execute the full demo pipeline — TRM training, recursive inference, thermostat updates, sentinel enforcement, and ROI summarisation:

make demo

Verification checklist

If telemetry is missing, re-run make telemetry and rerun the demo; the writer will create the directory automatically.


3. Inspect ROI & Guardrails

  1. Review the rich table printed by make demo; it shows the TRM ledger totals in real time.

  2. Confirm sentinel supervision by searching the telemetry log for SentinelStatus entries:

    jq 'select(.event_type == "SentinelStatus")' assets/telemetry.jsonl | head

    You should see JSON records with healthy, paused, reason, and the instantaneous ROI, proving that the guardrail loop is active.

  3. Examine thermostat adjustments to confirm adaptive tuning:

    jq 'select(.event_type == "ThermostatUpdate")' assets/telemetry.jsonl | tail

    Look for inner_cycles, outer_steps, and halt_threshold changes responding to ROI fluctuations.


4. Owner Overrides & Governance

Change TRM parameters live using the built-in owner console (no smart-contract coding required):

. .venv/bin/activate
python demo_runner.py owner trm halt_threshold 0.65

Verification: The CLI prints a yellow “Governance” panel describing the new value and persists the update back to config/trm_demo_config.yaml. Re-run make demo to observe the effect — sentinel and thermostat events in telemetry should reflect the new halt policy.

To pause TRM entirely, edit the config’s sentinel section or use the Streamlit sidebar pause controls (see next section).


5. Streamlit Control Centre

Launch the web UI for executives who prefer dashboards:

make ui

Verification cues


6. Telemetry & Ethereum Hooks


7. Regression Testing

Guarantee that training, inference, thermostat, sentinel, and telemetry logic remain healthy:

make test

This command automatically disables third-party pytest auto-plugins and runs all unit tests (test_engine.py, test_thermostat.py, test_sentinel.py, and the integration-style test_simulation.py).

Verification: Expect “6 passed” on fresh environments. Warnings about NumPy initialisation are benign on CPU-only installs.


8. Troubleshooting Signals

Symptom Diagnostic Resolution
Telemetry log empty Check write permissions on assets/ Run make telemetry and ensure the filesystem is writable
ROI below target repeatedly Inspect ThermostatUpdate events to ensure recursion depth is being trimmed Consider reducing min_inner_cycles or increasing value_per_success in the config
Sentinel pauses immediately Open the latest SentinelStatus entry to read the reason (e.g., ROI floor violation) Adjust sentinel thresholds or re-run training to improve accuracy
UI fails to launch Verify the virtual environment is active and Streamlit installed Run make install and re-launch make ui

9. Ready for Production Experiments

Once the dry run is satisfactory:

This playbook is designed to be looped daily: bootstrap, run, audit, iterate. With these controls in place, AGI Jobs v0/v2 transforms a tiny recursive network into a business-defining intelligence asset.

← Back to Tiny Recursive Model