Skip to content

audit(2026-06-24): flag test-debt and rename dedup tax - #689

Merged
jeduden merged 4 commits into
mainfrom
claude/youthful-knuth-okvtau
Jun 24, 2026
Merged

audit(2026-06-24): flag test-debt and rename dedup tax#689
jeduden merged 4 commits into
mainfrom
claude/youthful-knuth-okvtau

Conversation

@jeduden

@jeduden jeduden commented Jun 24, 2026

Copy link
Copy Markdown
Owner

Summary

  • Appends the 2026-06-24 architecture audit entry (range 1599c9f..09f22d3) to the audit log
  • Four tax items identified and tracked as new plan files: missing unit tests for helpers in locate.go, lsp/rename.go, and export/export.go, plus duplicated normalizedLabel/refDefBracketBytes between lsp and rename packages

Test plan

  • go run ./cmd/mdsmith check . passes (514 files, 0 failures)
  • New plan files validate against plan schema

🤖 Generated with Claude Code

https://claude.ai/code/session_017DMVDTLs2U9kcVMEyLNZgK


Generated by Claude Code

Appends the 2026-06-24 audit entry (range 1599c9f..09f22d3) to the
architecture audit log. Four tax items were found: missing unit tests
for helpers in locate.go, lsp/rename.go, and export/export.go, plus
duplicated normalizedLabel/refDefBracketBytes between lsp and rename
packages. Each item is tracked in a new plan file.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017DMVDTLs2U9kcVMEyLNZgK
@codecov

codecov Bot commented Jun 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.62%. Comparing base (09f22d3) to head (457ab73).

Additional details and impacted files
Components Coverage Δ
Go 98.61% <ø> (ø)
TypeScript 99.54% <ø> (ø)

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

claude added 3 commits June 24, 2026 02:28
Closes plan/2606240211. Adds TestHeadingInfo, TestLocateInAST,
TestLinkContainsOffset, TestLinkCloseOffset, TestScanForByte,
TestLinkToLocate, TestPiToLocate, TestListItemValue, TestHeadingOnLine,
TestFrontMatterListItem, TestFrontMatterParentKey, and TestOffsetAt to
internal/index/locate_test.go. Each helper is exercised directly with
a byte-slice or AST input, not through Locator.Locate. isGlobPattern
gains a "// no test by design" comment.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017DMVDTLs2U9kcVMEyLNZgK
- TestOffsetAt: add col-clamping case (col > line length), exercising
  the branch at locate.go:639-641 that was previously uncovered
- TestPiToLocate_GlobInputSuppressed: new test verifying that a glob
  pattern in a build directive inputs list does NOT populate
  DirectiveTargetFile (the !isGlobPattern guard was untested)
- TestLinkCloseOffset: add shortcut-reference and full-reference cases
  using real parsed *ast.Link nodes so the l.Reference != nil branches
  are exercised directly, not just the nil/inline path

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017DMVDTLs2U9kcVMEyLNZgK
- Use require.True (not assert.True) before b[off] indexing in
  TestLinkCloseOffset: assert continues on failure, causing a panic
  on the immediately following b[-1] index if the offset is -1.
- Add third duplicate heading to TestHeadingInfo to exercise the
  disambiguation counter beyond c==1 (verifies "alpha-2" suffix).
- Add bare-dash case to TestListItemValue to document that "  -"
  does not match piListItemRE (contrast with frontMatterListItem).
- Remove section-separator comment (CLAUDE.md: no "what" comments).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017DMVDTLs2U9kcVMEyLNZgK
@jeduden jeduden added queue Add to a PR to enqueue it queue:active Applied automatically when a PR is in an active batch and removed queue Add to a PR to enqueue it labels Jun 24, 2026
@jeduden

jeduden commented Jun 24, 2026

Copy link
Copy Markdown
Owner Author

🟢 Merge Queue — picked up

This PR is in the queue and will be batched with other queue-labelled PRs.

Next: No action needed — you'll get another comment when CI starts on the batch. View merge queue run.

@jeduden

jeduden commented Jun 24, 2026

Copy link
Copy Markdown
Owner Author

🔵 Merge Queue — CI running

Merged into batch branch merge-queue/batch-689-1782277933. View CI run.

Next: No action needed — you'll be notified when CI completes.

@jeduden jeduden removed the queue:active Applied automatically when a PR is in an active batch label Jun 24, 2026
@jeduden
jeduden merged commit 11b905e into main Jun 24, 2026
36 checks passed
@jeduden

jeduden commented Jun 24, 2026

Copy link
Copy Markdown
Owner Author

Merge Queue — merged

This PR landed on main via commit 11b905e. CI run that validated the merge.

Next: Done — nothing more to do here.

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.

2 participants