mrg.sandbox¶
The single surface available to a sandboxed agent. It holds no key and reaches
real silicon only by handing a candidate to a broker with promote.
manhattan_reasoning_gym.sandbox ¶
Sandboxed-agent silicon — reach a real board through the broker.
For an agent running in the locked-down sandbox (no API key, no network). Having
vetted a candidate locally with mrg.build, it promotes the design; the
trusted side (outside the container) runs it on silicon. This is the ONLY way a
sandboxed agent reaches hardware — it never holds a key or calls the
orchestrator directly (that's mrg.cloud).
promote ¶
promote(design: str | Path, report: Any, *, agent: str = 'default', workspace: str | Path | None = None, timeout: float = 900.0, poll_interval: float = 0.5) -> dict
Request a silicon run for design, blocking until the broker responds.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
design
|
str | Path
|
path to the design.py being promoted. |
required |
report
|
Any
|
the local BuildReport for it (object or dict), forwarded to the
trusted side (e.g. for a custom |
required |
agent
|
str
|
caller id (forwarded to the trusted side; e.g. for a guard). |
'default'
|
workspace
|
str | Path | None
|
shared dir (default: $MRG_WORKSPACE or /work). |
None
|
timeout
|
float
|
seconds to wait for the broker. |
900.0
|
Returns:
| Type | Description |
|---|---|
dict
|
The broker's response dict: |