mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-26 12:26:38 -06:00
b41d5293b2
* refactor(mantis): replace Telegram proof compiler with frozen visible replay * refactor(mantis): let Codex own Telegram proof scenarios * fix(mantis): isolate proof publication * fix(mantis): bind baseline cache to revision * chore(mantis): remove stale scenario-designer wording * fix(mantis): align readable worktrees with trusted proof * fix(mantis): register proof collector tooling * refactor(mantis): keep collector functions private * fix(mantis): publish agent-selected Telegram proof * fix(mantis): trim proof media to final turn * fix(mantis): fence lanes before evidence collection * fix(mantis): verify lane termination before unlock
32 lines
1.3 KiB
Bash
Executable File
32 lines
1.3 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
codex_bin="$(command -v codex)"
|
|
output_file="$CODEX_HOME/final-message.txt"
|
|
agent_output_dir="$GITHUB_WORKSPACE/$MANTIS_OUTPUT_DIR"
|
|
scripts/mantis/run-with-lease-fence.sh "$LEASE_LOST_MARKER" -- \
|
|
timeout --signal=TERM --kill-after=30s 60m \
|
|
sudo -u codex -- env \
|
|
CODEX_HOME="$CODEX_HOME" \
|
|
CODEX_INTERNAL_ORIGINATOR_OVERRIDE="$CODEX_INTERNAL_ORIGINATOR_OVERRIDE" \
|
|
BASELINE_SHA="$BASELINE_SHA" CANDIDATE_SHA="$CANDIDATE_SHA" \
|
|
GITHUB_WORKSPACE="$GITHUB_WORKSPACE" \
|
|
MANTIS_BASELINE_ROOT="$MANTIS_BASELINE_ROOT" \
|
|
MANTIS_CANDIDATE_ROOT="$MANTIS_CANDIDATE_ROOT" \
|
|
MANTIS_BASELINE="$MANTIS_BASELINE" \
|
|
MANTIS_CANDIDATE="$MANTIS_CANDIDATE" \
|
|
MANTIS_FIXTURE_BASELINE="$MANTIS_FIXTURE_BASELINE" \
|
|
MANTIS_FIXTURE_CANDIDATE="$MANTIS_FIXTURE_CANDIDATE" \
|
|
MANTIS_INSTRUCTIONS="$MANTIS_INSTRUCTIONS" \
|
|
MANTIS_PR_CONTEXT="$MANTIS_PR_CONTEXT" \
|
|
MANTIS_OUTPUT_DIR="$agent_output_dir" \
|
|
"$codex_bin" exec \
|
|
--skip-git-repo-check \
|
|
--cd "$GITHUB_WORKSPACE" \
|
|
--output-last-message "$output_file" \
|
|
--model gpt-5.6-sol \
|
|
--config 'model_reasoning_effort="high"' \
|
|
-c 'service_tier="fast"' \
|
|
--sandbox danger-full-access \
|
|
- < .github/codex/prompts/mantis-telegram-visible-proof.md
|
|
test -f "$agent_output_dir/agent-evidence.json"
|