docs: design spec and implementation plan for debugger-break#99
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds design materials for the upcoming debugger-break feature (tracked as #98). No code changes β pure documentation.
docs/superpowers/specs/2026-05-07-debugger-break.md) β full design: per-statestate.debug = { before, after }with class-basedDebugConfig, validating setters withObject.freezeon filter arrays, asyncrun()with newonDebugBreakhook, halt-state debug semantics, transparency rules foronStep, edge cases, and rejected alternatives.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, asyncrun(), lint/build/regression, lockstep v4 bump (incl.package-lock.jsonregen), README + mirrored examples in existingtest/examples.spec.ts, final PR prep.Refs #98 (the issue stays open until the implementation lands).
Test plan
This PR is documentation-only.
npm teststill passes (no source changes).npm run buildstill passes.