Skip to content

feat: Size runs by the memory fields of .actor/actor.json - #74

Merged
Pijukatel merged 7 commits into
masterfrom
claude/confident-bardeen-8app0y
Sep 24, 2026
Merged

Pijukatel merged 7 commits into
masterfrom
claude/confident-bardeen-8app0y

Conversation

@Pijukatel

Copy link
Copy Markdown
Collaborator

Runs now get their memory the way they do on the platform: defaultMemoryMbytes from .actor/actor.json (a number or a dynamic memory expression over the input and run options) when the caller sets none, clamped to minMemoryMbytes / 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

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
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
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
Pijukatel merged commit fa27181 into master Sep 24, 2026
51 of 52 checks passed
@Pijukatel
Pijukatel deleted the claude/confident-bardeen-8app0y branch September 24, 2026 08:59
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
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.

3 participants