Skip to content

feat(sdk): record recoverable snapshot uploads and typed completion - #173

Closed
tee8z wants to merge 1 commit into
tee8z/sandbox-snapshot-extractfrom
tee8z/sandbox-snapshot-metadata
Closed

tee8z wants to merge 1 commit into
tee8z/sandbox-snapshot-extractfrom
tee8z/sandbox-snapshot-metadata

Conversation

@tee8z

@tee8z tee8z commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Parked 2026-11-10: outside the core daemon slice.

Record recoverable ciphertext uploads before object storage effects, without publishing a blob key. Add typed snapshot completion parsing for the exact agent and owner approval.

The planned upload and outcome use separate coordinates. Both retain the original approval, acceptance ID, ciphertext hash, size, and expiry after sandbox loss. Neither has NIP-40 expiration. Historical metadata never grants current access. Media retention can be indefinite; this change adds no deletion promise.

flowchart LR
    A[Owner approval] --> B[Atomic acceptance]
    B --> C[Durable upload intent]
    C --> D[Single ciphertext PUT in consumer]
    D --> E[Separate upload outcome]
Loading

Depends on #172 (6a3d8956149ce39efb8e193a1627af172e5ed666). The worker and ACP runtime follow in separate draft layers; this SDK does not export workspaces itself.

Validation: 361 SDK tests, all-target SDK Clippy with warnings denied, formatting and diff checks. Four production parser/coordinate guard mutations failed their expected assertions before restored checks. Actual export/upload/restore integration remains a dependent runtime check.

Human command testing and explicit confirmation remain pending. Keep this PR draft.

Loading
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