Add offline skill pack uploads and durable source snapshots - #956
Draft
irisfeng wants to merge 1 commit into
Draft
Add offline skill pack uploads and durable source snapshots#956irisfeng wants to merge 1 commit into
irisfeng wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Offline or unreliable repository access currently prevents skill-pack installation, and preview/import downloads the same source repeatedly. This adds text-only ZIP uploads to Admin → Skills and durable source snapshots shared by repository previews and imports.
ZIPs are validated before installation and imported through the existing scope-aware pipeline. Uploading a replacement stages a version; applying it refreshes already-imported skills. The immediately previous selected ZIP remains available for rollback, including after selecting an older version and uploading a new one. Repository previews reuse a five-minute snapshot, while imports bind to the previewed commit and explicit sync still requires a fresh download.
Uploads keep third-party trust, enforce compressed/expanded/entry limits, reject unsafe or binary entries, and clean up staged transfer blobs. The portal preserves upload metadata without forwarding caller-supplied identity headers.
Validation: 112 affected tests passed across archive/source-cache/routes, existing pack store/fetcher/sync behavior, admin upload/file proxy, and portal routing. Core, admin, and portal typechecks and root ESLint passed. Independent review findings on version retention and temporary-blob cleanup were fixed and rechecked.
A local dev instance with real Postgres completed browser upload → preview → org import → core restart → preview again. The agent harness was mocked and Slack was disabled; neither is involved in this admin workflow. Browser QA used a public text-only skill pack and a synthetic organization, with no production data.
Draft gate: rendered demo screenshots and upstream CI review remain pending. No deployment is included.
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.