Skip to content

Credit staged Strata weights during resume preflight - #123

Merged
Ooooze merged 1 commit into
mainfrom
codex/strata-staging-resume
Nov 18, 2026
Merged

Ooooze merged 1 commit into
mainfrom
codex/strata-staging-resume

Conversation

@Ooooze

@Ooooze Ooooze commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Changes

  • Accept optional staged_bytes on POST /atomic/v1/models/strata/check when checking a source descriptor. Require a non-negative safe integer no larger than the descriptor's total source size.
  • Subtract reusable staging bytes from the remaining source bytes in the disk estimate. Continue to account for derived files and temporary space during preparation, and continue to check device memory.
  • Keep descriptor-only and installed-model checks compatible with existing callers.

This is the core-side fix for AtomicBot-ai/atomic-server#110. The client measures reusable bytes for the same pinned sources on the destination volume. Core still verifies the complete inputs during preparation.

Validation

  • Targeted estimate test for a partially staged model that fits, the remaining preparation-space floor, and an independent memory refusal.
  • Targeted loopback control contract test for accepted, invalid, and out-of-range counts and the existing model_id request.
  • No model weights downloaded. No full suite or live smoke run.

@Ooooze
Ooooze merged commit 9655b15 into main Nov 18, 2026
15 checks passed
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