How probablyapigeon/glassbox_lonk works
Glassbox Lonk is a prototype for inspecting an agent decision loop. A run loads saved trials and an XC world, obtains a recorded Qwen proposal (or asks local Qwen), scores actions with the frozen or trained Lonk policy, applies each action to the world, and publishes the outcomes and scores as a trace and browser Scope. The core modules also provide XC interpretation and classical state transforms. The README documents separate wrong-item experiments and results. Source excerpts do not show the XC fixtures’ contents, so their internal rules are not expanded here.
Main entry points: glassbox.py Replay and Scope · xc_interpreter.py XC interpreter · qwen_xc_wrong_item_results.json Wrong-item results · lonk_policy.py TinyNN policy
Components 11
Agent run
- Replay and Scope
glassbox.py - Trace and Scope output
glassbox.py
Lonk policy
- TinyNN policy
lonk_policy.py
XC runtime
- XC interpreter
xc_interpreter.py - XC state core
xembra_core.py - Search world rules
qwen_xc_search.xc
Experiment records
- Wrong-item fixture
qwen_xc_wrong_item.xc - Wrong-item results
qwen_xc_wrong_item_results.json - Stopping results
qwen_xc_stopping_results.json
Other components
- Run operator
- Local Qwen
Connections 9
- Run operator → Replay and Scope: runs
README.md - Replay and Scope → Local Qwen: requests proposals
glassbox.py - Replay and Scope → TinyNN policy: scores actions
glassbox.py - Replay and Scope → XC interpreter: loads rules
glassbox.py - XC interpreter → XC state core: exposes transforms
xc_interpreter.py - XC interpreter → Search world rules: executes script
README.md - Replay and Scope → Stopping results: loads trials
glassbox.py - Replay and Scope → Trace and Scope output: publishes outcomes
glassbox.py - Wrong-item results → Wrong-item fixture: records fixture
README.md