#Limits and defaults
Use this reference when a review or Run reaches a resource limit. Find the affected task, then use its supported control. Values apply independently unless the table describes a shared budget. A larger package allowance does not increase a Run's memory, deadline, or retained storage.
MiB means 1,048,576 bytes. File counts include alias records where dependency preparation records them. The tables are checked against their implementation owners during documentation checks. Exact admission and execution requirements remain in project policy.
#Override dependency preparation limits
PACKAGE_BUN_PROJECT_COUNT_LIMIT means review reached its allowance for distinct dependency preparations.
For a larger Flow library, increase only the count in jig.ts:
Or select the allowance for one review through the operator environment:
The count includes Flow dependencies, declared npm Flow adoption, and evaluation recipes that require preparation. Each distinct captured preparation input counts once during that review. Reusing admitted dependencies consumes no preparation count. The count can therefore differ from the number of Flows.
The diagnostic reports the first rejected count as a lower bound, the effective limit, and its source.
Review stops at that boundary, so the diagnostic does not establish the library's total preparation count.
The aggregate content and deadline limits below still apply when you increase maxPreparations.
PACKAGE_BUN_OUTPUT_LIMIT means one package's prepared runtime dependency tree exceeded its byte or file allowance.
Check its production dependencies first.
When the complete tree is necessary, set the affected output allowance under limits.dependencies:
The corresponding environment variables accept decimal integers in bytes or file counts:
Each field resolves independently: environment variable → jig.ts → built-in
default. An invalid explicit value fails, including an empty environment
variable. Jig does not load project .env files automatically.
All three fields must be positive safe integers within the supported maxima below. The byte and file combination must also fit the canonical artifact capacity, including maximum-length paths and archive metadata. Reduce either output allowance if that combination exceeds capacity. File content alone does not measure archive size.
When preparation exceeds an allowance, its diagnostic reports the effective
limit and source. Project limits form part of the reviewed configuration. An
environment override applies to that review's preparation. Later Runs consume
the retained bytes without preparing dependencies again. These controls grant
no network access or additional Run powers. Fresh resolution still requires
--allow-resolution-network.
#Choose the appropriate control
An explicit Run option does not replace a reviewed grant. Each owner enforces its allowance, and descendants share the remaining root deadline.
Linux enforces hard aggregate memory, process, and CPU ceilings. Mac applies the same requested values through supervised sampling and termination. Short overshoot is possible. Wall-clock deadlines and confirmed descendant fencing still apply on both hosts. See host enforcement.
#Prepare runtime dependencies
The preparation count covers one review. Byte and file controls apply to each production package. Fixed aggregate content and deadline bounds still apply.
Policy owners: project/limits.ts, internal/bun-native-preparation-protocol.ts, internal/bun-native-preparation-budget.ts, internal/bun-execution-layout.ts, internal/workspace-source-roots.ts.
#Retain captured packages
Archive capacity includes metadata and retained evidence. These fixed store bounds prevent unbounded durable growth. Dependency settings do not enlarge them.
Policy owners: package/capacity.ts, internal/package-artifact-store.ts.
#Bound a Run and its child work
The Run deadline covers its descendants. Fixed process budgets and derived branch reservations keep concurrently owned work inside the root allocation.
Policy owners: internal/root-run-timeout-policy.ts, internal/root-operation-limits.ts, internal/native-agent-turn-policy.ts.
#Capture and deliver files
Binding-retained reads and per-run attachments share the invocation input allowance. Fixed path and capture bounds protect descriptor traversal, transport and delivery.
Policy owners: internal/file-input-policy.ts.
#Delegate HTTP requests
Request, response and deadline allowances belong to the reviewed HTTP grant. The original root deadline and supported maxima continue to apply.
Policy owners: project/grants.ts.
#Run project commands and evaluations
These fixed profiles bound reviewed tools and their collected outputs. Evaluation phases also share the evaluation deadline and original root lifetime.
Policy owners: internal/private-project-command.ts, internal/project-evaluation-policy.ts, internal/project-evaluator-policy.ts.
#Exchange Agent protocol messages
These fixed ACP bounds protect one finite conversation. Additional reviewed turns share its byte and frame budgets. Environment variables cannot change the wire contract.
Policy owners: internal/finite-acp-policy.ts.
#Save checkpoints
The fixed checkpoint profile bounds retained evidence during one root lifetime. Checkpoint success does not reset any Run allowance.
Policy owners: internal/private-run-checkpoint.ts.
#Inspect application composition
Each live snapshot carries one complete admitted composition or an explicit unavailable state. Fixed display bounds protect observation without changing execution authority.
Policy owners: packages/display-model/src/types.ts, internal/inspection-policy.ts.
#Explore before execution
Fixed exploration bounds retain complete approved configuration and bounded launch intent. Ordinary Run input, authority, and execution limits still apply.
Policy owners: packages/display-model/src/types.ts, cli-explore-policy.ts.
#Represent JSON values
JSON/0 is an interoperable value contract. Its representation bounds remain fixed, including when another configurable allowance is larger.
Policy owners: json.ts.
#Related constraints and recovery
The dependency count setting covers distinct new preparations in one review, including evaluation recipes. The byte and file settings cover each production preparation, including assembly with reused dependencies. They do not change source capture, evaluation output, alias layout, aggregate review content, deadlines, or artifact storage. Reused admitted packages consume none of the new-preparation count or aggregate output allowance.
Within one review, several Flow selectors can share a newly prepared capture. Its files count once toward the aggregate limit. Each selector's retained execution layout counts separately.
The captured package store retains evidence from declined and superseded reviews. It performs no implicit garbage collection and offers no selective reclamation command. State deletion is not a capacity-recovery instruction. Follow retained-state troubleshooting when retained state prevents progress.
Workspace discovery also bounds members, manifests, locks, patches, and tree traversal. See workspace capture for those exact rules. A format's larger upper bound does not enlarge a host task's smaller allowance.
Separately mounted workspace dependencies require explicit review source-root selections. Their fixed count and path bounds limit source authority and directory acquisition. They have no override and do not enlarge capture budgets. See mounted workspace roots for selection and diagnosis.
For resource setup, see Agent settings, HTTP access, files, and checkpoints. Terminal and installation preferences belong in Settings and configuration.