






















@@ -652,7 +652,6 @@ run_profile() {
652652trap cleanup_profile EXIT
653653 phase_mark_passed "Start gateway ($profile)"
654654655- TURN1_JSON="/tmp/agent-${profile}-1.json"
656655 TURN2_JSON="/tmp/agent-${profile}-2.json"
657656 TURN2B_JSON="/tmp/agent-${profile}-2b.json"
658657 TURN3_JSON="/tmp/agent-${profile}-3.json"
@@ -676,9 +675,6 @@ run_profile() {
676675677676 phase_mark_start "Agent turns ($profile)"
678677679- TURN1_SESSION_ID="${SESSION_ID_PREFIX}-read-proof"
680-local prompt1
681- prompt1="Use the read tool (not exec) to read ${PROOF_TXT}. Reply with the exact contents only (no extra whitespace)."
682678local prompt2
683679 prompt2=$'Use the write tool (not exec) to write exactly this string into '"${PROOF_COPY}"$':\n'"${PROOF_VALUE}"$'\nReply with exactly: WROTE'
684680local prompt3
@@ -691,10 +687,11 @@ run_profile() {
691687 TURN3_SESSION_ID="${SESSION_ID_PREFIX}-exec-hostname"
692688 TURN3B_SESSION_ID="${SESSION_ID_PREFIX}-write-hostname"
693689 TURN4_SESSION_ID="${SESSION_ID_PREFIX}-image-write"
690+# The read tool is verified below by reading the generated copy. Keep the
691+# initial parallel batch focused so slow hosted providers do not burn one
692+# redundant agent turn during release package acceptance.
694693if [[ "$AGENT_TURNS_PARALLEL" == "1" ]]; then
695694local turn_pids=()
696- run_agent_turn_bg "read proof" "$profile" "$TURN1_SESSION_ID" "$prompt1" "$TURN1_JSON"
697- turn_pids+=("$RUN_AGENT_TURN_BG_PID")
698695 run_agent_turn_bg "write proof copy" "$profile" "$TURN2_SESSION_ID" "$prompt2" "$TURN2_JSON"
699696 turn_pids+=("$RUN_AGENT_TURN_BG_PID")
700697 run_agent_turn_bg "exec hostname" "$profile" "$TURN3_SESSION_ID" "$prompt3" "$TURN3_JSON"
@@ -705,22 +702,12 @@ run_profile() {
705702 turn_pids+=("$RUN_AGENT_TURN_BG_PID")
706703 wait_agent_turn_batch "${turn_pids[@]}"
707704else
708- run_agent_turn_logged "read proof" "$profile" "$TURN1_SESSION_ID" "$prompt1" "$TURN1_JSON"
709705 run_agent_turn_logged "write proof copy" "$profile" "$TURN2_SESSION_ID" "$prompt2" "$TURN2_JSON"
710706 run_agent_turn_logged "exec hostname" "$profile" "$TURN3_SESSION_ID" "$prompt3" "$TURN3_JSON"
711707 run_agent_turn_logged "write hostname" "$profile" "$TURN3B_SESSION_ID" "$prompt3b" "$TURN3B_JSON"
712708 run_agent_turn_logged "image write" "$profile" "$TURN4_SESSION_ID" "$prompt4" "$TURN4_JSON"
713709fi
714710715- assert_agent_json_has_text "$TURN1_JSON"
716- assert_agent_json_ok "$TURN1_JSON" "$agent_model_provider"
717-local reply1
718- reply1="$(extract_matching_text "$TURN1_JSON" "$PROOF_VALUE" | tr -d '\r\n')"
719-if [[ "$reply1" != "$PROOF_VALUE" ]]; then
720-echo "ERROR: agent did not read proof.txt correctly ($profile): $reply1" >&2
721-exit 1
722-fi
723-724711 assert_agent_json_has_text "$TURN2_JSON"
725712 assert_agent_json_ok "$TURN2_JSON" "$agent_model_provider"
726713local copy_value
@@ -774,7 +761,6 @@ run_profile() {
774761 phase_mark_start "Verify tool usage via session transcript ($profile)"
775762# Give the gateway a moment to flush transcripts.
776763 sleep 1
777- assert_session_used_tools "$(session_jsonl_path "$profile" "$TURN1_SESSION_ID")" read
778764 assert_session_used_tools "$(session_jsonl_path "$profile" "$TURN2_SESSION_ID")" write
779765 assert_session_used_tools "$(session_jsonl_path "$profile" "$TURN2B_SESSION_ID")" read
780766 assert_session_used_tools "$(session_jsonl_path "$profile" "$TURN3_SESSION_ID")" exec
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。