Skip to content

fix(#338): wire AFORGE_DEBUG Recorder Call/Tool/Decision feeders - #825

Merged
santoshkumarradha merged 2 commits into
devfrom
santosh/fix-338-debug-recorder-ccc5
Sep 10, 2026
Merged

santoshkumarradha merged 2 commits into
devfrom
santosh/fix-338-debug-recorder-ccc5

Conversation

@santoshkumarradha

Copy link
Copy Markdown
Member

Summary

Closes #338. AFORGE_DEBUG / --debug / /debug already opened a run folder and wrote a header, but Recorder.Call, Tool, and Decision had zero callers — so a switched-on run recorded nothing.

Change

Wired the three feeders at the doors every call already passes through (nil recorder stays a no-op when off):

  • Call — provider client records request/response bodies into calls/<id>.json
  • Tool — agent tool execution records belt outcomes (ok / failed / refused)
  • Decision — lane choice, hedge fire/refusal, and effort rung stamps

Manual no longer claims those pieces are “still landing.”

Verification (light)

  • go test ./internal/provider pass (new Call/Decision tests)
  • go test ./internal/session pass (new Tool/effort/refusal tests)
  • go test ./internal/manual pass
  • make changelog-check pass

Heavy suites not run in cloud — please verify locally.

Open in Web Open in Cursor 

@santoshkumarradha
santoshkumarradha marked this pull request as ready for review September 10, 2026 22:51
@santoshkumarradha
santoshkumarradha force-pushed the santosh/fix-338-debug-recorder-ccc5 branch from 518888b to 142eef9 Compare September 10, 2026 22:51
cursoragent and others added 2 commits September 10, 2026 18:51
…e run

The recorder opened a folder and wrote run.json, then nothing: its three
feeders had no callers. Model-call bodies now land at the adapter's one
log writer, tool calls at executeTool, and routing, hedge and effort
choices at the stamps that already made them.

Co-authored-by: Santosh kumar <[email protected]>
@santoshkumarradha
santoshkumarradha force-pushed the santosh/fix-338-debug-recorder-ccc5 branch from 142eef9 to d568327 Compare September 10, 2026 22:52
@santoshkumarradha
santoshkumarradha merged commit d4b06fb into dev Sep 10, 2026
3 checks passed
@santoshkumarradha
santoshkumarradha deleted the santosh/fix-338-debug-recorder-ccc5 branch September 10, 2026 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

debug record: one switch, and afterwards a person can reconstruct everything a run did

2 participants