Files
imbad0202__academic-researc…/scripts/cross_model_verification/openai_effort_guard.sh
T
Edward Cheng-I Wu 6b7ee6dcae fix: Astra request compat, no-delegation citation transport, hedge/quota prompt repairs, audit provenance (#823–#826) (#827)
* fix: Astra request compatibility, no-delegation citation transport, hedge/quota prompt repairs, audit provenance (#823 #824 #825 #826)

#823 — OpenAI request builders (smoke entrypoint + documented example) drop
`temperature`, which GPT-6 Astra rejects; the per-model effort vocabulary
lives in scripts/cross_model_verification/openai_effort_guard.sh, sourced by
both, and an unsupported explicit Astra value fails before curl. Hermetic
fake-curl test runs both surfaces.

#824 — the contained Codex citation transport rejects effort=ultra with
REASONING_EFFORT_REQUIRES_DELEGATION before detection/auth/tempdir/launch on
both entry paths (codex-cli 0.153.4 defines ultra as the multiAgentMode
replacement). Model-independent by design.

#825 — hedging can no longer rescue an unsupported claim (writer recovery
tree, CER fallback row, temporal rule 5 in writer + both compiler mirrors,
writer contract D2); universal prose quotas in the writer, compilers,
writing_quality_check.md, academic-paper/SKILL.md, and contract D6 become
diagnostics subordinate to author/venue requirements. Audit inventory
corrected in place; held-out seed evals/heldout/unsupported_claim_recovery
(NOT_RUN) registered.

#826 — run_codex_audit.sh pins gpt-6-astra/xhigh and records both in a new
sidecar `model` block; claim_audit_pipeline binds an unknown judge identity
to a run-local cache key (no cross-run reuse) instead of defaulting to
gpt-5.5-xhigh.

Review: /simplify (4 angles), codex gpt-5.6-sol xhigh 2 rounds (r1: 1 P1 +
1 P2 + 2 P3 fixed; r2: 0 P1/P2), /security-review 0 findings; all 102
spec-consistency steps + pytest manifest replayed locally.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BNKiXpdHx1T5F5RbXT2Ueu

* docs(claude): record the #824 ultra reversal in the v3.21.2 key-additions line

The v3.21.2 bullet still said the contained Codex citation transport accepts
ultra; #824 on this branch rejects it as a delegation request. Add the
reversal so the live instruction surface matches the transport.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01K7emV5r2aqZDJzAyYVuuDo

---------

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-06 08:08:30 +09:00

27 lines
1.2 KiB
Bash

# Canonical per-model reasoning-effort vocabulary for the first-party OpenAI
# Responses route (#823). Sourced by scripts/cross_model_smoke_test.sh and by
# the documented OpenAI example in shared/cross_model_verification.md, so the
# two request builders cannot drift apart. POSIX sh; no bashisms.
#
# ars_openai_effort_check MODEL EFFORT
# Returns 0 when EFFORT may be sent for MODEL (an empty EFFORT always passes:
# the caller omits the field and the provider default applies). Prints a
# CROSS-MODEL-ERROR line and returns 1 for an explicitly configured value the
# model's documentation lists as unsupported. Models without a row are
# permissive here: the provider rejects an unknown value visibly.
#
# Rows (first-party documentation, checked 2026-09-06):
# gpt-6-astra low|medium|high|xhigh|max (none/minimal/ultra are not API values)
ars_openai_effort_check() {
_model="$1"; _effort="$2"
[ -z "$_effort" ] && return 0
case "$_model" in
gpt-6-astra)
case "$_effort" in
low|medium|high|xhigh|max) return 0 ;;
*) echo "CROSS-MODEL-ERROR: invalid_astra_reasoning_effort (${_effort}; accepted: low|medium|high|xhigh|max)"; return 1 ;;
esac ;;
*) return 0 ;;
esac
}