mirror of
https://github.com/bitbaum/openclaw.git
synced 2026-12-06 04:57:36 +01:00
* feat(mantis): add exec and restart lane primitives Give the proof agent a developer shell inside each SUT container and an in-container gateway restart so it can design scenarios like a local developer: patch openclaw.json and restart, stage plugins and fixtures, run node/tsx against the read-only repo root, inspect SQLite state. - container script: exec (docker exec as mantis-sut, bounded by timeout), restart (request file + TERM), sut_command becomes a relaunch supervisor - lane CLI: exec returns bounded stdout/stderr/exitCode and records a redacted invocation; restart waits for a fresh [gateway] ready marker - MAX_SENDS 12 -> 40 (shared-QA-bot flood safety, not a scenario bound) - runtime root chown root:mantis-proof, mode 1770 so the agent can stage files while root-owned attestation stays unreplaceable * docs(mantis): let the proof agent design scenarios like a local developer Lead with developer-shell parity, allow reading whatever code the scenario needs (PR text still untrusted, PR code only inside SUT lanes), document exec/restart shapes, and reserve block for hard impossibilities. * fix(mantis): keep the SUT exec result type local * fix(mantis): resume the agent when it ends without a manifest Run 32615428295 (exec branch on #127950) hit Codex context compaction at 03:52:11 and the model answered with a confabulated "handoff" message instead of continuing; codex exec exited 0 with no mantis-evidence.json and the trusted-evidence step failed the run with no verdict. The agent step now checks for the manifest after codex exits and, when it is missing, resumes the same thread (`codex exec ... resume --last -`, verified against codex-rs/exec/src/lib.rs at rust-v0.149.0: cwd-matched latest thread, `-` reads the prompt from stdin) with a short correction prompt, bounded to three resumes. The main prompt states that a handoff/summary is never an acceptable final message.