Skip to content

Add offline skill pack uploads and durable source snapshots - #956

Draft
irisfeng wants to merge 1 commit into
yc-software:mainfrom
irisfeng:codex/skill-pack-offline-cache
Draft

Add offline skill pack uploads and durable source snapshots#956
irisfeng wants to merge 1 commit into
yc-software:mainfrom
irisfeng:codex/skill-pack-offline-cache

Conversation

@irisfeng

@irisfeng irisfeng commented Sep 5, 2026

Copy link
Copy Markdown

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.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

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