phronesis / locus / laserbrain
powered by laserbrain
Locus builds the energy. laserbrain keeps the builders and controllers on goal.
Locus energy · powered by laserbrain
Locus is the multi-world energy stack — grow your own (sun → match → fibre → algae battery) and resonance harvesters (membrane → piezo) on Earth, the Moon, and Mars. laserbrain is the smart recursion harness: a fixed reference so agents writing code, reading lab-logs, or retuning hardware do not spiral off the pass line that the run already fixed.
Energy ledgers measure watts and biomass. laserbrain measures whether the agent still serves the energy goal. Machine map: /locus/laserbrain.json.
four layers
why attach
- Every Locus run holds a fixed goal string — laserbrain’s ground is that same string.
- Agents that analyze JSON, retune f₀, or expand world envelopes drift without a second term.
- Multi-world ops multiply context; the harness keeps the mission goal stable.
- Pass/fail stays binary on the energy ledger; laserbrain keeps the process on that pass line.
attach — goal examples
Hold the goal identical to the lab-log goal field.
P0
MPPT delivers more energy than fixed load under comparable irradiance
P2 / algae
Wet side viable; dry envelope holds; algae SoC + lux_exit logged
RP0
Matched drive; piezo energy rises only while drive_on
Hybrid
Three ledgers co-timestamped — electrical, biomass, piezo
Moon analog
store_soc above floor through simulated multi-day dark
attach — each step
Python
pip install laserbrain
from laserbrain import Harness
h = Harness()
GOAL = "MPPT delivers more energy than fixed load under comparable irradiance"
# each build / analysis step:
r = h.check(
goal=GOAL,
progress="advancing", # or stuck | circling
distance=4, # 0 = done
doing="log P0 baseline arm",
)
if getattr(r, "drifting", None) or (isinstance(r, dict) and r.get("drifting")):
# return to GOAL — do not invent a new one
...MCP
# agent tools laserbrain__check_state goal: <same as lab-log goal> progress: advancing | stuck | circling distance: 0–10 laserbrain__reset_task # only on a genuinely new task # Locus work that must check: # /locus/build steps # /locus/runs analysis # /locus/firmware iteration # /locus/worlds design choices
Full product: /laserbrain/quickstart · demo /laserbrain/demo · protocols /laserbrain/protocols
where it plugs into Locus
- Build runbooks — check_state each phase against the pass line
- Firmware recipe — agents editing logger code hold the emit-schema goal
- Runs corpus — analysis agents do not rewrite goals mid-file
- Worlds — Earth/Moon/Mars envelope work stays on mission goal
- Hybrid pilot — three-ledger ops without collapsing ledgers into fiction
one line
Sun is the harvest. Resonance is the frequency. laserbrain is the ground that keeps the work on that harvest.