Skip to content

docs: design spec and implementation plan for debugger-break#99

Merged
mellonis merged 1 commit into
masterfrom
debugger-break-spec
May 7, 2026
Merged

docs: design spec and implementation plan for debugger-break#99
mellonis merged 1 commit into
masterfrom
debugger-break-spec

Conversation

@mellonis
Copy link
Copy Markdown
Owner

@mellonis mellonis commented May 7, 2026

Summary

Adds design materials for the upcoming debugger-break feature (tracked as #98). No code changes β€” pure documentation.

  • Spec (docs/superpowers/specs/2026-05-07-debugger-break.md) β€” full design: per-state state.debug = { before, after } with class-based DebugConfig, validating setters with Object.freeze on filter arrays, async run() with new onDebugBreak hook, halt-state debug semantics, transparency rules for onStep, edge cases, and rejected alternatives.
  • Plan (docs/superpowers/plans/2026-05-07-debugger-break.md) β€” 10-task TDD breakdown: branch setup, type + Ref-cell, before/after filter logic, halt-state handling, async run(), lint/build/regression, lockstep v4 bump (incl. package-lock.json regen), README + mirrored examples in existing test/examples.spec.ts, final PR prep.

Refs #98 (the issue stays open until the implementation lands).

Test plan

This PR is documentation-only.

  • npm test still passes (no source changes).
  • npm run build still passes.
  • Spec and plan render correctly on GitHub (visual check after merge).

Spec: docs/superpowers/specs/2026-05-07-debugger-break.md
Plan: docs/superpowers/plans/2026-05-07-debugger-break.md
Tracking: #98

The spec describes the per-state debugger-break primitive: a class-based
DebugConfig with validating setters and frozen filter arrays, the async
run() signature with onDebugBreak hook, halt-state debug semantics, and
all design rationale (rejected alternatives, edge-case handling).

The plan breaks implementation into 10 TDD tasks, including version bump
v3 -> v4 and README documentation with mirrored examples in
test/examples.spec.ts.
@mellonis mellonis merged commit 53af97e into master May 7, 2026
3 checks passed
@mellonis mellonis deleted the debugger-break-spec branch May 7, 2026 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant