Skip to content

fix(model-fit): preserve assessment failure diagnostics - #26

Open
TorinAsakura wants to merge 1 commit into
masterfrom
fix/assessment-failure-diagnostics
Open

TorinAsakura wants to merge 1 commit into
masterfrom
fix/assessment-failure-diagnostics

Conversation

@TorinAsakura

Copy link
Copy Markdown
Member

Task

How to verify

Before the fix

  1. Context: The automatic assessment CLI runs against a stub Codex app-server.
    Action: Return an empty skill list in one assessment and a failed evaluator turn in another.
    Expected result: Both failures reach the hook as an indistinguishable RuntimeError. The current profile continues.

After the fix

  1. Context: The deterministic tests run the CLI producer and runtime adapter against the same stub responses.
    Action: Run uv run --project evals/model-fit --locked pytest evals/model-fit/assessment/tests/test_triage.py evals/model-fit/switch/tests/test_submission.py -q.
    Expected result: The failures retain distinct stage and reason codes. An RPC failure retains its method and code. Audit records include the source turn, generation and observed child exit code. The original task continues on its active profile, including when a diagnostic record is missing or malformed.

Proofs

  • Synthetic app-server thread/start request
{"method":"thread/start","id":1}
  • Synthetic app-server error response
{"id":1,"error":{"code":-32603,"message":"fixture only"}}
  • The corresponding audit details include failure_stage=thread_start, failure_reason=native_rpc_error, failure_type=AppServerRPCError, rpc_method=thread/start, rpc_code=-32603 and child_exit_code=1. The RPC error message and raw stderr are omitted.

@TorinAsakura

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-02T18:11:02.659850Z de93095 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: de9309599a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Loss of assessment failure diagnostics

1 participant