Skip to content

fix(model-fit): keep active steering admitted - #29

Merged
TorinAsakura merged 3 commits into
masterfrom
fix/active-turn-steering
Dec 2, 2026
Merged

TorinAsakura merged 3 commits into
masterfrom
fix/active-turn-steering

Conversation

@TorinAsakura

@TorinAsakura TorinAsakura commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Task

How to verify

Before the fix

  1. Context: The native turn is running after Model Fit kept its profile or bound its replay.
    Action: Add another user message to that same native turn, including an opaque attachment.
    Expected result: Model Fit creates a new assessment generation and puts the running turn back behind the assessment gate.

After the fix

  1. Context: The hook tests use native-shaped UserMessage items and a deterministic controller.
    Action: Run uv run --project evals/model-fit --locked pytest evals/model-fit/switch/tests/test_submission.py evals/model-fit/switch/tests/test_tool_admission.py -q.
    Expected result: Additional input stays on the admitted turn, including a confirmed replay. The admission stays valid under lock contention and the profile and queue receipt are untouched. Input accepted during the initial assessment reaches its successor generation fully and exactly once. A distinct native turn goes through normal assessment even when its text matches the previous turn. Running the technical assess command after the additional input returns successful JSON without calling the evaluator, including after an earlier fail-open assessment.

Proofs

  • Synthetic UserPromptSubmit request after admission of the same turn
{"hook_event_name":"UserPromptSubmit","session_id":"fixture-thread","turn_id":"fixture-turn","prompt":"Add the annotated detail"}
  • The hook emits no assessment or blocking output for this admitted input. The deterministic test confirms one assessment result and one steering observation for the turn.
{"assessment_count":1,"steering_count":1,"additional_queue_submissions":0}

@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-02T20:25:07.423819Z 661f78d New commits
ℹ️ 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. 🎉

Reviewed commit: 19bab14c19

ℹ️ 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".

@TorinAsakura
TorinAsakura merged commit e112dd9 into master Dec 2, 2026
3 checks passed
@TorinAsakura
TorinAsakura deleted the fix/active-turn-steering branch December 2, 2026 20:36
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] Repeated profile assessment on steering input during an active turn

1 participant