Conversation
Readiness: poll GET /v1/machines/{id} until ready is true and stop on
state error with the provider's reason, instead of treating started as
usable (api-reference "Readiness and lifecycle", lifecycle guide).
Output: request ?output=b64 and decode stdoutB64/stderrB64, which the
API documents as byte-exact and untruncated, dropping the in-guest
spool files and the 1 MiB text cap workaround. A control plane without
the byte streams still fails closed on a truncated text field.
Egress: with SMOLMACHINES_EGRESS_PROXY_URL set, machines are created
with network.mode allowCidrs and hosts limited to the proxy, the profile
claims domain enforcement, and an existing machine created open fails
closed rather than running with only the proxy env. Without the knob
machines stay open and config warns, as for sprites.
Lifecycle: scratch machines carry ttlSeconds so a crashed core cannot
leave them running; SMOLMACHINES_AUTOSTOP_SEC sends autoStopSeconds on
create and the profile only claims idle stop when it is configured. The
unused exec stdin field is gone.
Recovery: SMOLMACHINES_SNAPSHOT_S3_BUCKET and _INTERVAL_SEC wire the
shared home tar snapshot at teardown, hydrate a replacement machine from
it, expose persistHomeSnapshot and status recovery, and record failures.
Bookkeeping lives in the artifact store. The export endpoint is a
whole-disk registry artifact with no documented restore contract, so it
was not used.
Profile: the OS line names the configured image instead of an
unverified distribution, and cpus/memoryMb fall back to the documented
4 vCPU / 8192 MB defaults.
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.
Aligns the Smolmachines backend with the Smolmachines documentation.
Docs: https://smolmachines.com/docs/cloud/api-reference https://smolmachines.com/docs/cloud/lifecycle-storage-networking https://smolmachines.com/docs/guides/agent-sandboxes-ci
Needs live QA before merge.