Skip to content

fix(jp): reject incomplete downloads and isolate APK updates - #5

Merged
luoxiadesu merged 1 commit into
mainfrom
codex/jp-support
Sep 29, 2026
Merged

luoxiadesu merged 1 commit into
mainfrom
codex/jp-support

Conversation

@luoxiadesu

Copy link
Copy Markdown

Review of #3 reproduced incomplete HTTP responses being cached as complete files and empty JP master manifests being reported as successful downloads. It also found that changing the APK without changing the CDN snapshot could reuse stale embedded bundles or collide with the default catalog label.

  • Reject truncated Content-Length responses, oversized declarations, and missing/empty/malformed JP manifest file lists.
  • Isolate JP embedded caches by APK catalog SHA and include catalog identity in default labels; invalidate directory-based HCA key memoization when base.apk changes.
  • Preserve international manifest receipts when a download worker raises.

Validation: 1,202 local tests passed; 45 strict golden/object-export checks passed; 117 targeted download/catalog/export regressions passed; 66 workflow helper tests passed (3 external-fixture skips). Pyflakes, actionlint, whitespace and staged Gitleaks checks passed. All new failure cases use synthetic local fixtures.

#3 was merged while this review was in progress; this PR contains only the review fixes.

@luoxiadesu
luoxiadesu merged commit 53a5f18 into main Sep 29, 2026
6 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