Skip to content

fix/deep review improvements#57

Merged
Patel230 merged 3 commits into
mainfrom
fix/deep-review-improvements
Jun 11, 2026
Merged

fix/deep review improvements#57
Patel230 merged 3 commits into
mainfrom
fix/deep-review-improvements

Conversation

@Patel230

Copy link
Copy Markdown
Contributor
  • refactor(filter): remove unused reserved layer config types
  • fix(tracking): include db path and operation in wrapped errors
  • docs(unsafe): add safety-invariant comments at unsafe conversions

Patel230 and others added 3 commits June 11, 2026 12:19
Remove QuestionAwareLayerConfig, DensityAdaptiveLayerConfig,
NumericalQuantLayerConfig, and DynamicRatioLayerConfig (all marked
"reserved for future implementation") plus their never-read fields
on LayerConfig. Verified unreferenced via grep across the repo.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
All error paths in tracking.go now report the database path and the
operation that failed (open, create dir, init schema, enable WAL,
record, aggregate, recent, scan, prune), making failures diagnosable
without enabling debug logging.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Each unsafe string<->[]byte conversion in internal/fastops/simd.go and
internal/filter/zerocopy.go now carries an explicit "safe: ..." comment
stating the aliasing invariant (backing array not mutated while the
alias is live). Also migrated the legacy *(*string)(unsafe.Pointer(&b))
header-punning pattern to the supported unsafe.String/unsafe.Slice +
unsafe.SliceData/StringData APIs, which are valid under the Go memory
model (the old slice->string pun read a slice header as a string header).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Patel230 Patel230 enabled auto-merge (squash) June 11, 2026 09:56
@Patel230 Patel230 merged commit e61c143 into main Jun 11, 2026
20 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