Skip to content

chore(detector): remove stale fnm not-implemented comment, sentinel.go pkg-doc collision, dead config.FileOverlay - #114

Merged
dipto0321 merged 1 commit into
mainfrom
chore/detector/remove-stale-fnm-notimplemented-sentinel-pkgdoc-filoverlay
Jul 5, 2026
Merged

chore(detector): remove stale fnm not-implemented comment, sentinel.go pkg-doc collision, dead config.FileOverlay#114
dipto0321 merged 1 commit into
mainfrom
chore/detector/remove-stale-fnm-notimplemented-sentinel-pkgdoc-filoverlay

Conversation

@dipto0321

Copy link
Copy Markdown
Owner

Summary

Residual stale-comment / dead-code cleanups from the 2026-07-03 re-review. All deletions / docstring edits — no behavior change.

  • internal/detector/fnm.go: delete ErrFNMNotImplemented (zero call sites repo-wide, mutations have been real since PR feat(cli): post-upgrade cleanup prompt + native mutation commands #56); rewrite the FNM struct doc to describe the actual implemented surface (detection + mutations + layout queries) instead of "Phase 1 only, mutations not implemented"; drop the "left as stubs in Phase 1" paragraph from the mutation section.
  • internal/packages/sentinel.go: demote // Package sentinel implements… to // Sentinel file handling: … — godoc attributes package-doc comments to the actual package (packages), so the rendered godoc was wrong. Verified no canonical // Package packages … comment exists elsewhere, so the move doesn't leave the package undocumented.
  • internal/config/resolve.go: delete superseded FileOverlay() (the coarse all-fields overlay that marked explicit-zero values as set — exactly the bug FileOverlayFromNode was introduced to fix in fix(packages): validate manager name against allowlist in restore/diff #85). Update the Overlay type's doc comment to point at FileOverlayFromNode as the file-layer builder.

Verification

  • grep -rn "ErrFNMNotImplemented\|not implemented" internal/detector/fnm.go → no hits.
  • go doc ./internal/packages shows no package-level doc comment (was previously wrongly attributed).
  • grep -rn "func FileOverlay\b" . → no hits; only FileOverlayFromNode references remain.
  • make ci green (golangci-lint: 0 issues; race + coverage: 62.8%).

Closes#104.

@dipto0321
dipto0321force-pushed the chore/detector/remove-stale-fnm-notimplemented-sentinel-pkgdoc-filoverlay branch from 82027f7 to 5592e84CompareJuly 5, 2026 06:28
Residual stale-comment / dead-code cleanups from the 2026-07-03
re-review that didn't belong in any of the active fix-wave PRs. All
deletions / docstring edits — no behavior change.
- internal/detector/fnm.go: delete ErrFNMNotImplemented (zero call
sites, no tests, mutations real since PR #56); rewrite the FNM
struct doc to describe the actual surface (detection + mutations
+ layout queries) instead of "Phase 1 only, not implemented"; drop
the "left as stubs in Phase 1" paragraph from the mutation section.
- internal/packages/sentinel.go: demote "// Package sentinel
implements..." to "// Sentinel file handling: ..." — godoc
attributes package-doc comments to the actual package name
(`packages`), so the rendered godoc was wrong. Verified no
canonical "// Package packages ..." comment exists elsewhere, so
the package isn't left undocumented.
- internal/config/resolve.go: delete superseded FileOverlay() (the
coarse all-fields overlay that marked explicit-zero values as set
— exactly the bug FileOverlayFromNode was introduced to fix in
#85). Update the Overlay type's doc comment to point at
FileOverlayFromNode as the file-layer builder.
Closes#104.
Co-Authored-By: puku-ai-2.8 <noreply@puku.sh>
@dipto0321
dipto0321force-pushed the chore/detector/remove-stale-fnm-notimplemented-sentinel-pkgdoc-filoverlay branch from 5592e84 to b2a95b6CompareJuly 5, 2026 06:29
@cocogitto-bot

Copy link
Copy Markdown

✔️ b2a95b6 - Conventional commits check succeeded.

@dipto0321
dipto0321 merged commit 1b137e6 into mainJul 5, 2026
10 checks passed
@dipto0321
dipto0321 deleted the chore/detector/remove-stale-fnm-notimplemented-sentinel-pkgdoc-filoverlay branch July 5, 2026 06:30
Sign up for freeto 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.

chore(detector): remove stale fnm not-implemented comment, sentinel.go package-doc collision, dead config.FileOverlay

1 participant

@dipto0321