entrypoint

command
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Command ax-mast-entry runs a one-shot mast turn as an AX task command.

AX's runner starts the task command on every boot of the sandbox, and Agent Substrate also runs it once in the template's golden boot, where egress is denied and /workspace is empty. This wrapper makes a mast turn safe under those rules:

  • With --wait-for-egress it blocks until a TLS handshake to that address succeeds, so no turn starts inside the golden boot.
  • It skips the run when --state-dir holds a done marker from an earlier boot, so a resumed task does not repeat a finished turn. The marker is checked after the egress wait, because /workspace is only populated once the real actor is running.
  • It copies mast's stdout to result.txt in --state-dir, since AX has no channel for reading a command's output back.

Everything after "--" is the mast command line, run as given.

ax-mast-entry --wait-for-egress=generativelanguage.googleapis.com:443 -- \
  mast --task=review --session-db=/workspace/.mast/sessions.db "..."

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL