Skip to content

feat(debug): hypothesis-tracking journal + debugging workflows doc#55

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/debugging-workflows
Jun 15, 2026
Merged

feat(debug): hypothesis-tracking journal + debugging workflows doc#55
github-actions[bot] merged 1 commit into
mainfrom
feat/debugging-workflows

Conversation

@subkoks

@subkoks subkoks commented Jun 15, 2026

Copy link
Copy Markdown
Owner

Summary

Completes the Debugging workflows roadmap item with a concrete, tested tool plus a guidance doc.

  • scripts/debug-journal.sh — hypothesis-driven debugging made auditable/resumable:
    • add --session S --hypothesis ... --test ... (auto-sequenced, status pending)
    • resolve --session S --seq N --result confirmed|refuted --evidence ...
    • report --session S [--format markdown|json]
    • persists to logs/debug/<session>.tsv; session name sanitized to a safe filename (no path traversal).
  • docs/debugging-workflows.md — root-cause templates table, minimal-repro discipline, and regression-test-first guidance; generalized from the ideas/ draft.

Tests

9 bats tests (tests/debug-journal.bats): add/sequence, resolve+evidence, markdown + JSON report, bad-result/unknown-seq/missing-session exit codes, invalid mode, and the filename-sanitization guard. Suite total: 71.

Verification

  • bats tests/ → 71 pass; make check / security-scan / link check → green
  • shellcheck / markdownlint-cli2 → clean

🤖 Generated with Claude Code

scripts/debug-journal.sh makes hypothesis-driven debugging auditable and
resumable: `add` records a hypothesis (auto-sequenced, status pending),
`resolve` sets confirmed/refuted + evidence by seq, `report` renders the
session journal as markdown or JSON. Stored at logs/debug/<session>.tsv with
the session name sanitized to a safe filename (no path traversal).

Adds docs/debugging-workflows.md (root-cause templates, minimal-repro,
regression-test-first guidance), promoted/generalized from the ideas draft.
9 bats tests. Completes the Later "debugging workflows" item.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions github-actions Bot enabled auto-merge (squash) June 15, 2026 22:21
@github-actions github-actions Bot merged commit 42df8f5 into main Jun 15, 2026
10 checks passed
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.

1 participant