Skip to content

feat(allowedsymbols): add per-package symbol lists for builtins/internal packages#121

Merged
AlexandreYang merged 5 commits intomainfrom
refactor/move-procinfo-to-ps-internal
Mar 18, 2026
Merged

feat(allowedsymbols): add per-package symbol lists for builtins/internal packages#121
AlexandreYang merged 5 commits intomainfrom
refactor/move-procinfo-to-ps-internal

Conversation

@AlexandreYang
Copy link
Copy Markdown
Member

@AlexandreYang AlexandreYang commented Mar 18, 2026

Summary

  • Add internalPerPackageSymbols map in symbols_internal.go — a per-package allowlist for each builtins/internal/<pkg> (loopctl, procinfo, winnet), mirroring the existing builtinPerCommandSymbols pattern
  • Keep internalAllowedSymbols as the global ceiling; each package's list must be a subset of it
  • Add internalPerPackageCheckConfig + TestInternalPerPackageSymbols in symbols_interp_test.go
  • Add 5 verification tests in symbols_interp_verification_test.go: clean pass, symbol not in common list, symbol not in per-package list, unused symbol flagged, missing package entry

Test plan

  • go test ./allowedsymbols/ passes
  • All 5 new verification tests pass

🤖 Generated with Claude Code

AlexandreYang and others added 5 commits March 18, 2026 17:47
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…nal packages

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ls_interp_test.go

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…mbols

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@AlexandreYang AlexandreYang marked this pull request as ready for review March 18, 2026 16:58
@AlexandreYang AlexandreYang changed the title refactor: move procinfo package under builtins/ps/internal feat(allowedsymbols): add per-package symbol lists for builtins/internal packages Mar 18, 2026
@AlexandreYang AlexandreYang added this pull request to the merge queue Mar 18, 2026
Merged via the queue into main with commit a8e7235 Mar 18, 2026
24 of 30 checks passed
@AlexandreYang AlexandreYang deleted the refactor/move-procinfo-to-ps-internal branch March 18, 2026 17:04
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