feat: Size runs by the memory fields of .actor/actor.json - #74
Merged
Merged
Conversation
Runs without an explicit memory now get the Actor's defaultMemoryMbytes (a number or a memory expression, evaluated with the platform's own evaluator), and every run is clamped to minMemoryMbytes/maxMemoryMbytes, as on the platform. Out-of-schema values fail the build. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0193NwjsBx8A6BZKTS4dsziu
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0193NwjsBx8A6BZKTS4dsziu
512 MB for the TypeScript and Python samples, 4096 MB for the Playwright ones. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0193NwjsBx8A6BZKTS4dsziu
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0193NwjsBx8A6BZKTS4dsziu
…xPages Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0193NwjsBx8A6BZKTS4dsziu
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0193NwjsBx8A6BZKTS4dsziu
…2e test Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0193NwjsBx8A6BZKTS4dsziu
Pijukatel
pushed a commit
that referenced
this pull request
Sep 24, 2026
Clean merge of #74 (run memory from .actor/actor.json). No conflicts: its edits to runs.ts and SKILL.md land away from this branch's. No change to the OpenAPI document. Memory sizing is platform-faithful behaviour on the emulated /v2 surface, not runtime behaviour grafted onto an endpoint, so it warrants no x-actor-runtime-platform-notes entry - the same call made for input validation (#72), pay-per-event charging (#69) and the runs/last shortcuts (#68). Its local differences (log notes, no plan cap, a bad memory field failing the build) are emulation-fidelity notes, which live in requirements/actor-driver.md, where #74 put them. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016VvUV6661cyYbxoHZv2Pby
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.
Runs now get their memory the way they do on the platform:
defaultMemoryMbytesfrom.actor/actor.json(a number or a dynamic memory expression over the input and run options) when the caller sets none, clamped tominMemoryMbytes/maxMemoryMbytes.A failed expression or an applied bound is noted in the run log; an out-of-schema memory field fails the build.
The TypeScript and Python samples size by
maxPages(default now 10); the Playwright samples default to 4096 MB.The run disk limit is listed as unsupported.
Generated by Claude Code