Skip to content

sandboxes/kits: require startup commands to be idempotent#24959

Open
dvdksn wants to merge 1 commit intodocker:mainfrom
dvdksn:sbx-kits-startup-idempotent
Open

sandboxes/kits: require startup commands to be idempotent#24959
dvdksn wants to merge 1 commit intodocker:mainfrom
dvdksn:sbx-kits-startup-idempotent

Conversation

@dvdksn
Copy link
Copy Markdown
Contributor

@dvdksn dvdksn commented May 5, 2026

Summary

Document that kit startup commands must be idempotent. They run on
every sandbox start and, with the upcoming container-restart replay
support, on every container restart too.
The framework can't enforce this, so kit authors carry the contract.

Startup commands replay on every sandbox start and, with the upcoming
container-restart replay support in docker/sandboxes#2541, on every
container restart too. The framework can't enforce idempotency, so kit
authors carry that contract themselves.

Call it out in the introduction to startup commands and add a paragraph
in the startup spec reference with practical guidance (existence
checks, upserts, convergence).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@netlify
Copy link
Copy Markdown

netlify Bot commented May 5, 2026

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 453d86a
🔍 Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/69f99e018a32ac00094791fa
😎 Deploy Preview https://deploy-preview-24959--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@dvdksn dvdksn added the status/review Pull requests that are ready for review label May 5, 2026
@dvdksn dvdksn requested a review from a team May 5, 2026 07:36
@dvdksn dvdksn added this to the sbx/v0.28.4 milestone May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status/review Pull requests that are ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants