You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Define the interactive breakpoint contract for pausing a debug execution, inspecting its state through structured queries, and resuming it. The result should turn the documented concept into a staged protocol that the current interpreter and future native runtime can implement consistently.
breakpoint and breakpoint <condition> parse, resolve, and typecheck. The tree-walking interpreter evaluates the optional boolean condition and emits one debug line containing the visible bindings and their declared types. Driver and CLI paths can capture and classify that output.
Execution does not pause, there is no query/continue lifecycle or call-stack/expression inspection, and neither an IPC transport nor a structured breakpoint envelope has been selected. The HIR, MIR, native backend, and runtime that would eventually lower native breakpoints are also not implemented.
Scope
This issue includes a design and staging decision for:
the pause, query, continue, disconnect, and failure lifecycle;
the initial inspection surface (visible bindings and ownership status, selected variable values, expressions, and call-stack/source context);
the transport and process-lifecycle boundary for interpreter debugging and the future native runtime;
localhost/path authorization, secret-value exposure, implicit-view/non-destructive evaluation, and capability-exemption rules;
debug/release behavior and independently testable implementation slices.
This issue does not include implementing HIR, MIR, LLVM code generation, the general runtime, the MCP server from #37, or a complete debugger implementation before the protocol is decided.
Acceptance criteria
The pause/query/resume lifecycle and disconnect/error behavior are specified.
Summary
Define the interactive
breakpointcontract for pausing a debug execution, inspecting its state through structured queries, and resuming it. The result should turn the documented concept into a staged protocol that the current interpreter and future native runtime can implement consistently.Source documentation
docs/progress.md, Phase Ibreakpointrowdocs/design.md, Rule Set 27: The Interactive Agent Breakpointdocs/architecture.md, runtime lowering table and Breakpoint IPC serverCurrent state
breakpointandbreakpoint <condition>parse, resolve, and typecheck. The tree-walking interpreter evaluates the optional boolean condition and emits one debug line containing the visible bindings and their declared types. Driver and CLI paths can capture and classify that output.Execution does not pause, there is no query/continue lifecycle or call-stack/expression inspection, and neither an IPC transport nor a structured breakpoint envelope has been selected. The HIR, MIR, native backend, and runtime that would eventually lower native breakpoints are also not implemented.
Scope
This issue includes a design and staging decision for:
This issue does not include implementing HIR, MIR, LLVM code generation, the general runtime, the MCP server from #37, or a complete debugger implementation before the protocol is decided.
Acceptance criteria
docs/design.md,docs/architecture.md, and the originating progress entry reflect the decision and final status.Dependencies / open questions
This was generated by an AI agent (vycdev2). Please verify any changes before merging or applying.