Skip to content

refactor: share sorted key traversal for registries and scan output - #187

Merged
vincentkoc merged 1 commit into
mainfrom
refactor/ordered-registry-keys
Nov 20, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
refactor/ordered-registry-keys

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

Summary

Profile selection, scanner and benchmark listings, and several artifact writers each collected and sorted string map keys by hand. Reuse the existing private key collectors within the profiles and runner packages. IDs, serialized output, and CLI argument ordering keep their existing lexicographic order and empty-slice behavior.

Scope and trust impact

Collection and sorting are the only shared operations. Scanner admission, mount resolution, credential selection, permission checks, and benchmark prediction rules stay with their existing callers. No new exported functions or cross-package dependencies.

Verification

  • Focused registry, sandbox, benchmark, and output tests passed.
  • Ran go test -count=1 ./.... One judge subprocess hit its five-second deadline. The exact test passed on retry, followed by a clean go test -count=1 ./internal/runner. All other packages passed the original run.
  • go vet ./..., go run ./cmd/clawscan --help, and go run ./cmd/clawscan profiles passed.
  • The Linux CI job runs the Docker mount integration check. Docker is unavailable on the local host.

@clawsweeper

clawsweeper Bot commented Nov 20, 2026

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@vincentkoc
vincentkoc marked this pull request as ready for review November 20, 2026 09:48
@vincentkoc
vincentkoc requested review from a team and Patrick-Erichsen as code owners November 20, 2026 09:48
@vincentkoc
vincentkoc merged commit 1b06ad2 into main Nov 20, 2026
11 checks passed
@vincentkoc
vincentkoc deleted the refactor/ordered-registry-keys branch November 20, 2026 09:55
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