Skip to content

debug record: interrupt, consent, guardian veto, budget stop and approval change leave a line #348

Closed

Description

@santoshkumarradha

Parent: #342 (epic #338)

Sub-issue of the decision-lines child. Depends on the foundation child.

What a debugger hits today

In a chat session, pressing escape mid-reply, answering a consent prompt, a guardian veto, a budget stop and a change of approval posture leave no line in the transcript or anywhere else. A partial reply dropped as unusable leaves no line at all. Afterwards the transcript reads as if the model simply stopped.

The law

Everything a person did to a turn and everything the session refused on the person's behalf is written with its reason.

Fix shape

One recorder call per event at the place it already happens: interrupt (moment, characters dropped), consent prompt (what was asked, the answer), guardian veto (reason), budget stop (which ceiling), approval posture change (from, to, by whom).

Replication and acceptance

  • With the switch on, press escape mid-reply: the trace holds the interrupt with the count of dropped characters.
  • Refuse a consent prompt: the trace holds the prompt and the answer, and the tool event is marked refused.
  • Run with a low cost ceiling until it stops: the trace holds the budget stop naming the ceiling.
  • With the switch off, nothing is written and the session is unchanged.

Drafted with CodeAF · reviewed and owned by the author

Activity

  1. added
    feature
    area:logging
    on Sep 2, 2026
  2. santoshkumarradha commented on Sep 10, 2026

    @santoshkumarradha
    MemberAuthor

    Consolidated into the epic #338. This issue's law, fix shape, replication and acceptance are reproduced in full in the epic's consolidated plan (comment on #338, 2026-09-10), under the pull request that now carries it — nothing is lost, and this issue stays readable.

    Why the children were folded back: the epic split into a foundation child, three decision-family children and a failure-evidence child so separate lanes could take them. Four weeks on, one lane took the foundation and the tree carried nine open issues describing what is now a handful of call sites each. The verified state at dev@95a0d0a9b is that internal/trace's Recorder.Call, Recorder.Tool and Recorder.Decision have zero callers outside the package's own tests — the shapes are all built and correct, and no feeder is wired, so AFORGE_DEBUG=1 today writes a run header and nothing else. That is one lane's work in three pull requests, not nine issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:loggingfeature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions