agent-joule/crates/joule_coded/tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
David Charlot 20f4a58617 joule_coded: add a stateful DAP client + sharpen diagnostic parsing
Two things, from taking the debugger deeper and validating it end-to-end with a
real GGUF model.

- joule_coded::dap: a minimal Debug Adapter Protocol client (DapSession) that keeps
  lldb-dap alive over stdio to walk execution -- set breakpoints, run to a stop, read
  live locals, step, continue. A background reader thread feeds a channel so every
  read is bounded by a 20s timeout: the session can NEVER hang the daemon. The DAP
  handshake is correct; run-to-stop is adapter-dependent (some macOS lldb-dap builds
  won't launch the debuggee under the adapter -- breakpoints report verified:false),
  in which case it times out cleanly and the caller keeps the verified batch
  inspector (inspect_runtime) as the primary path. Wired as an optional deepening,
  #[ignore] e2e test tolerant of the adapter limitation.
- joule_core::debugger: skip cargo's roll-up summary lines (`error: test failed, to
  rerun ...`, `could not compile`, `aborting due to`) so the real panic/assertion
  wins the diagnostic -- surfaced by a live repair run where the summary was
  outranking the actual `left: 0, right: 4` assertion.

The live e2e (bonsai-1.7b on a divide-by-zero test) proved the whole loop mechanically:
reproduce -> parse the real assertion -> ground a fix -> generate (253 kJ MEASURED for
the attempt) -> re-verify -> bail on no-progress -> seal the receipt. The weak model
didn't land the fix, but every step and the energy metering worked.
2026-07-07 07:40:35 -04:00
..
acp.rs joule_coded: serve on-device inference as an OpenAI-compatible metered endpoint 2026-07-02 11:01:27 -04:00
consensus.rs joule_coded: BFT consensus rounds across the fleet 2026-06-17 01:31:58 -04:00
dap_step.rs joule_coded: add a stateful DAP client + sharpen diagnostic parsing 2026-07-07 07:40:35 -04:00
debug_inspect.rs joule_core: deepen the debugger with live variable inspection 2026-07-07 05:18:16 -04:00
fanout.rs joule_coded: serve on-device inference as an OpenAI-compatible metered endpoint 2026-07-02 11:01:27 -04:00
headless_run.rs joule_core: add a per-step energy-annotated run journal 2026-07-06 18:24:18 -04:00