Skip to content

feat: add pack installation preflight - #28

Merged
9Ashwin merged 2 commits into
mainfrom
codex/issue-5-install-plan
Sep 5, 2026
Merged

feat: add pack installation preflight#28
9Ashwin merged 2 commits into
mainfrom
codex/issue-5-install-plan

Conversation

@9Ashwin

@9Ashwin 9Ashwin commented Sep 5, 2026

Copy link
Copy Markdown
Owner

Problem

Users need to inspect the cost and safety of selecting a sticker pack before any image download or library mutation.

Change

  • add a source snapshot and installation preflight for an explicit pack ID
  • verify the raw manifest revision, item count, declared bytes, local file size, both hashes, and format signature
  • report the target, added/reused counts, and download bytes through packs install ID --dry-run
  • reject source, revision, and digest conflicts without creating the home directory, lock, or catalog cache
  • keep normal image download and install commit for the follow-up installation issue

Validation

  • GOTOOLCHAIN=auto go test -race ./...
  • GOTOOLCHAIN=auto go vet ./...
  • GOTOOLCHAIN=auto CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build ./...
  • GOTOOLCHAIN=auto go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.13.2 run ./...
  • git diff --check and gofmt check

@9Ashwin 9Ashwin added priority: high High priority implementation work type: backend Backend behavior or library work phase: P1 First usable closed loop labels Sep 5, 2026
@9Ashwin 9Ashwin self-assigned this Sep 5, 2026
@9Ashwin
9Ashwin merged commit 4f02b63 into main Sep 5, 2026
3 of 4 checks passed
@9Ashwin 9Ashwin mentioned this pull request Sep 5, 2026
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

phase: P1 First usable closed loop priority: high High priority implementation work type: backend Backend behavior or library work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant