Skip to content

fix: quality sweep — code review, security, and docs fixes#115

Merged
jongio merged 2 commits into
mainfrom
mq/quality-sweep
May 21, 2026
Merged

fix: quality sweep — code review, security, and docs fixes#115
jongio merged 2 commits into
mainfrom
mq/quality-sweep

Conversation

@jongio
Copy link
Copy Markdown
Owner

@jongio jongio commented May 21, 2026

Summary

Max-quality sweep across the entire codebase. All gates pass clean (build, test, vet, lint, gofumpt, govulncheck, deadcode).

Changes

Code fixes:

  • chronicle.go: Prevent goroutine blocking by respecting ctx.Done in PTY reader
  • dbwatch.go: Recover panics in onChange callback so watcher loop survives
  • plans.go: Tighten session-state dir permissions from 0755 to 0700
  • store.go: Log searchRefs DB errors instead of silently swallowing them
  • update.go: Clean up partial file on copyFile write failure

Docs:

  • README.md: Fix stale --rebuild-index flag name to --reindex

Verification

All pass: go build, go test (13 packages), go vet, golangci-lint, gofumpt, govulncheck, mage install

jongio and others added 2 commits May 21, 2026 09:13
- chronicle.go: prevent goroutine blocking by respecting ctx.Done in PTY reader
- dbwatch.go: recover panics in onChange callback to keep watcher alive
- plans.go: tighten session-state dir permissions from 0755 to 0700
- store.go: log searchRefs DB errors instead of silently swallowing them
- update.go: clean up partial file on copyFile write failure

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The CLI flag was renamed to --reindex but the README still referenced
the old --rebuild-index name.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@jongio jongio merged commit fd5a306 into main May 21, 2026
2 checks passed
@jongio jongio deleted the mq/quality-sweep branch May 21, 2026 17:26
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