Skip to content

Clarify literal final-response format checks (partial mitigation) - #509

Merged
rng1995 merged 6 commits into
mainfrom
naren/grader-explicit-format-judgments
Nov 13, 2026
Merged

rng1995 merged 6 commits into
mainfrom
naren/grader-explicit-format-judgments

Conversation

@rng1995

@rng1995 rng1995 commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Draft — partial mitigation; not ready to merge. Retained judge output accepts prose, labels and Markdown fences as number-only answers. Clarify shared and packaged Accuracy/Behavior prompts to inspect every final-response line, distinguish format from factual correctness, and keep Behavior booleans consistent with their reasons.

The revised candidate improves Accuracy format judgments on the bounded development diagnostic. Behavior remains unresolved:

Target Baseline main f62ab6e Revised 4e47f8e
Accuracy FORMAT_FOLLOWED false passes 6/12 0/12
Accuracy FORMAT_FOLLOWED false fails 0/18 0/18
Behavior format-step false passes 9/12 9/12
Behavior format-step false fails 3/18 3/18

Actual measurement receipt, frozen inputs, all target verdicts/scores and selected verbatim failures. Three cohorts made 180 actual packaged-judge HTTP requests across ten distinct synthetic development cases, two judges and three dependent repeats, using explicit nv_build/Bolt with zero errors, retries or fallbacks. The intermediate candidate and all failures are retained. These are development criterion/step outcomes, not representative reliability or whole-Accuracy/Overall acceptance rates. The combined development exit criterion failed; the independently authored/reviewed eight-case blind assessment remains unopened and uncalled.

Production changes are prompt text only. Schemas, evidence construction, retry policies, five-criterion Accuracy arithmetic, Behavior null/denominator semantics, thresholds, Goal, Overall and routing remain unchanged. A format-only Accuracy failure still scores 0.8 and passes its existing threshold. An unlabeled ACTION_CORRECT change also moved the wrong-fact control from 0.6 to 0.8; no whole-Accuracy improvement or absence of collateral semantic effects is established. Original reference/pilot bytes and labels are unchanged. Token/billed-cost accounting is unavailable.

Verification: initial RED/GREEN and 646 focused tests; the reviewed refinement has RED 10 failures → GREEN 12 checks, 450 focused contract/semantics/arithmetic tests, Ruff/format/diff checks and prompt-only AST preservation. Unit checks establish prompt/evidence delivery, not model accuracy. All 15 hosted CI jobs passed at 4e47f8e8, including Python 3.12–3.14, packaging and native-platform contracts. Python 3.14 passed 32,008 tests with 81 skipped.

Independent initial and follow-up reviews, different subagent's resolution attempt, scoped source re-review, and final semantic review are posted. The semantic-readiness finding remains open. Keep draft while the unresolved Behavior interpretation is addressed separately; CI success cannot discharge that finding.

Tracks SKILLEVAL-23 and SKILLEVAL-99, both still In Progress. No merge, auto-merge, critical-failure gate or default release policy is included.

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Independent code review: explicit final-format judgment clarification

Review target: f62ab6e248fb857ab7b7d87ba78b2f7fc1fcc884..d129b98bb2028ba911b19bcce7ed18706d7001b9 (PR #509).
Reviewed the entire five-file branch diff, requirements/design, implementation report, relevant evidence builders, both judge implementations, new tests, and existing scoring/contract coverage. Checkout was read-only. No provider calls, heldout cases, historical fixture contents, or subagents were used.

Strengths

  • Shared Accuracy/Behavior and packaged template prompts receive the same focused clarification (llm_judge.py:706, llm_judge.py:899, template eval.py:3121, eval.py:3510). They require the entire final response to satisfy the actual stated contract, disallow substituting a correct tool/reference value, and explicitly preserve required prefixes, units, and prose.
  • Conditional FINAL RESPONSE framing retains direct unsectioned caller compatibility. Existing no-format wording leniency and no-answer/refusal rules remain intact. Behavior explicitly preserves null for missing/incomplete evidence while distinguishing an established format violation from an evidence gap.
  • The new regressions (tests/tier3/test_judge_contracts.py:153, :214) exercise real shared/template evidence construction and capture both rendered prompts at the provider boundary. They cover complete text, distracting tool/reference values, seven format/control inputs, runtime parity, and direct callers without inventing semantic verdicts.
  • Production changes are prompt text only. Inspection of the full diff confirms no changes to schemas, APIs, evidence construction, validation/retries, five-criterion averaging, Behavior denominator/status mapping, Goal, thresholds, Overall, routing, or policy defaults.
  • Documentation accurately discloses the unchanged 0.8 format-only Accuracy result and avoids an unsupported model-accuracy improvement claim.

Actionable findings by severity

  • Critical: none.
  • Important: none.
  • Minor: none.

No actionable introduced defect was found; no inline change request is warranted.

Validation evidence and limits

The implementation report records 9 new prompt-delivery checks passing, 646 focused tests passing, Ruff/format/diff checks passing, and Fern validation exiting 0 with its documented unauthenticated redirect-check warning. I inspected the test changes and relevant existing contract coverage. Per the review instruction, I did not repeat those tests. These records establish provider-free contracts, not improved semantic model accuracy. I independently checked the exact branch diff and current HEAD identity; live model measurements and full CI are pending and are not certified by this review.

Declined to judge

  • Actual model compliance, measured false-pass/false-fail rates, and reliability improvement: require the controller's pending real-provider measurements; prompt-capture tests cannot establish them.
  • Heldout labels, case quality, and historical reference/pilot semantics: excluded by the review's blindness constraint; no contents were accessed.
  • Broad scoring acceptance and a critical-failure gate: expressly deferred by the accepted design. The unchanged possibility that a format-only Accuracy failure passes at 0.8 is documented, not an introduced defect.
  • Existing evidence clipping/stripping, section-heading ambiguity, and extraction limitations: outside this prompt-only implementation; the reviewed diff does not alter those mechanisms.
  • Full-suite/platform readiness and provider cost/coverage acceptance: controller/CI responsibilities not established by the local implementation report or this read-only source review.

Verdicts

Spec compliance: compliant. The implementation matches the agreed narrow prompt-only scope and preserves its named invariants.

Whole-branch quality: acceptable; no actionable findings. Prompt changes are aligned across runtimes, regressions verify real framing/delivery, and documentation states the practical scoring limitation.

Merge recommendation: source review supports merging once required CI and the planned live measurement assessment are complete and accepted by the controller. Keep the PR draft while those checks remain pending. This is a COMMENT review, not an approval, merge, or auto-merge action.

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Follow-up independent COMMENT review at d129b98

Addendum: development measurements supersede the earlier readiness condition

This addendum reviews only baseline-development/{summary.json,results.json} and candidate-development/{summary.json,results.json} in the task scratch root. No new source reads, provider calls, heldout access, or historical fixture reads were made. It supersedes the earlier conditional merge recommendation now that actual development results are available.

Evidence

Both cohorts recorded all 60 expected judgments (10 cases, two judges, three dependent repeats), using nvidia/nemotron-3.5-bolt-e4b; each has zero unjudgeable results, rejected-reply attempts, transport errors, or judgment errors.

Target judgment Baseline Candidate
Accuracy false passes / expected format violations 6/12 3/12
Accuracy false fails / expected format-compliant inputs 0/18 0/18
Behavior false passes / expected format violations 9/12 8/12
Behavior false fails / expected format-compliant inputs 3/18 3/18

These are criterion/behavior verdicts, not whole-Accuracy or Overall acceptance rates. Candidate Accuracy improves the code-fence case from three incorrect passes to three correct failures; that is a bounded observed improvement. The repeats are dependent, the cases are synthetic, and this is not a representative reliability estimate or evidence of statistically established general improvement.

Important finding: target semantics remain unresolved

Relevant implementation locations previously reviewed: src/skillevaluator/tier3/eval_core/llm_judge.py:706 and :899, mirrored in template eval.py:3121 and :3510. These identify the intended prompt behavior; the measurements do not establish a faulty Python implementation or an introduced regression.

  1. Entire-final-response format checking still fails on an explicit target case. Candidate dev-second-line retains FINAL RESPONSE\n42\nCalculation complete and the requirement “Return only the numeric answer, with no label, prose, or Markdown.” Accuracy reports FORMAT_FOLLOWED=true and Behavior reports passed=true in all three repeats. The Accuracy reason claims “only the numeric answer 42”; Behavior claims “The final response was '42'.” Complete contradictory text is present in the retained prompt, so missing/truncated input does not explain this failure. Both baseline judges also fail this case three times.
  2. Behavior retains additional format false passes. Candidate dev-code-fence passes three of three repeats; dev-label passes two of three. For the latter two accepted replies, the raw model explanation acknowledges the label/prose or violation while its boolean remains true. The validated result faithfully retains that boolean; this is not evidence for a parser or arithmetic fix.
  3. Behavior still conflates format with factual correctness. Candidate dev-wrong-fact has final response 41, a correct numeric-only format for the format-only expected behavior. All three Behavior replies fail it because the factual answer is 42, contrary to the intended independent format judgment. Accuracy correctly separates FORMAT_FOLLOWED=true from FACTUALLY_ACCURATE=false in all three. The Behavior failure also exists in baseline.

Impact: the candidate demonstrably leaves the central “accept prose as number-only” problem unresolved for both judges and leaves most tested negative Behavior inputs accepted. Provider-free prompt parity and schema tests cannot discharge this semantic acceptance issue.

Action: keep the PR draft and do not describe the correction as complete. The controller/resolver should make a bounded development decision: improve and remeasure the prompt within the authorized scope, or explicitly rescope the change as a partial mitigation with these residual failures disclosed. Preserve the unopened heldout for the final selected candidate and obtain scoped semantic re-review. No deterministic override, schema change, retry change, or scoring-policy change is justified by this finding.

Proposed review-contract change (new recommendation)

Before any additional provider calls, explicitly adopt or reject a development exit criterion for this correction: both judges should reject the known second-line/label/fence violations and preserve the intended format-only controls across the planned dependent repeats, with any exceptions documented and justified. This is a newly recommended acceptance criterion, not a previously specified zero-error gate or a rule silently imposed after observing the data. A passing development diagnostic still would not establish general reliability.

Revised verdicts and declined scope

  • Source/spec conformance: the narrow prompt-text implementation remains aligned with the accepted design; no new source defect is established.
  • Semantic task completion: not established; the actual evidence shows unresolved target behavior.
  • Merge recommendation: not ready to merge as a completed format-judgment correction. Keep draft while the controller resolves the development decision; CI alone is insufficient to close this finding.
  • Heldout assessment: remains unopened. This review recommends resolving the development readiness question before spending the single frozen-candidate assessment.
  • Declined to judge: a particular prompt repair or internal model mechanism (not determined by these outputs); representative reliability/statistical significance (small synthetic cohort, dependent repeats); additional model/provider choices, cost acceptance, broader policies, and critical-failure gates (outside this authorized scope); heldout performance/labels (blindness preserved).

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Scoped source re-review at 4e47f8e

Range: d129b98bb2028ba911b19bcce7ed18706d7001b9..4e47f8e83666042fc232fdce84b5128a650fcea2. Read the complete three-file refinement diff, commit metadata, and finalized resolution-report.md. No source writes, provider calls, heldout access, or repeated test runs.

Strengths and scope compliance

  • The prompt refinement directly addresses each observed development failure: every-line inspection and retained fence/label characters; per-behavior requirements with format separated from factual correctness; and agreement between the Behavior boolean and its reason.
  • The factual-control wording expressly preserves behaviors that also require correctness. Existing valid prefixes/units/prose, conditional FINAL RESPONSE framing, no-format/no-answer handling, direct caller behavior, and missing/incomplete evidence rules remain in the prompt.
  • Shared and packaged additions align. The entire production diff is additions inside the existing Accuracy and Behavior prompts; no schema, API, evidence, validator/retry, score formula/denominator/status, threshold, Overall, Goal, routing, or policy changes appear.
  • Tests add wrong-value and extra-line trajectories plus a separate two-behavior prompt capture, using the real evidence builders. They verify prompt delivery/parity without manufacturing model verdicts.
  • The finalized resolver report records the expected RED 10 failures/2 passes, GREEN 12 passes, 450 focused passes, Ruff/format/diff checks, and a whole-module AST comparison with only the two target prompts normalized. I reviewed these records and did not duplicate the runs.

Actionable introduced source findings

Critical: none. Important: none. Minor: none.

The refinement is a reasonable prompt-side response to the review finding. This source assessment does not establish that the configured model follows it.

Open semantic finding and recommendation

The earlier P2 semantic-readiness finding remains OPEN. The revised 60-call development results have not yet been reviewed here. Keep PR #509 draft; do not resolve the finding or call the correction complete based on source/tests alone.

The resolver report says the controller adopted the newly proposed bounded development exit rule before this retest: all ten format targets for both judges and the separately labeled Accuracy factual control must match across three dependent repeats. This is a task-specific diagnostic acceptance rule, not a general reliability guarantee. Review the actual revised retained prompts/replies and results against that rule before the final untouched heldout assessment.

Declined to judge

  • Revised semantic outcomes: pending completed development evidence.
  • Model internal mechanism or general reliability/statistical significance: source inspection and dependent synthetic repeats cannot establish them.
  • Heldout case contents, labels, or performance: blindness constraint preserved.
  • Full-suite/platform readiness and broader policy acceptance: not established by the focused resolver checks; unchanged and outside this scoped review.

Source/spec verdict: aligned with the authorized prompt-only refinement; no introduced regression found.

Semantic/merge verdict: pending; the open readiness finding prevents a completed-correction merge recommendation. This is a COMMENT review, not an approval or thread resolution.

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Final semantic follow-up at 4e47f8e

Reviewed only the completed revised-candidate-development/summary.json and results.json, with the previously reviewed baseline/original-candidate development results for comparison. No provider calls, source writes, heldout access, or further prompt proposal.

Recorded evidence

All 60 revised judgments were recorded, with zero unjudgeable results, rejected replies, transport/judgment errors, or exceptions. Every retained prompt contains the new every-line instruction; all 30 Behavior prompts contain both the format-only/factual separation and boolean/reason-consistency instructions. The requested model is nvidia/nemotron-3.5-bolt-e4b throughout, with no recorded fallback.

Development target Baseline First candidate d129b98 Revised candidate 4e47f8e
Accuracy format false passes / 12 violations 6/12 3/12 0/12
Accuracy format false fails / 18 compliant inputs 0/18 0/18 0/18
Behavior format false passes / 12 violations 9/12 8/12 9/12
Behavior format false fails / 18 compliant inputs 3/18 3/18 3/18

These are format-criterion or format-step verdicts, not whole-metric/Overall pass rates. There are ten synthetic development cases with three dependent repeats, so these counts do not estimate representative reliability or establish statistically significant improvement/worsening.

What improved

Accuracy matches all 30 format targets in the revised seen development cohort. In particular, it now rejects the complete 42\nCalculation complete response three of three times, while preserving its correct label/fence/prefix judgments. The separately labeled factual control also matches three of three: final 41 has FORMAT_FOLLOWED=true and FACTUALLY_ACCURATE=false. This supports a bounded observed Accuracy improvement on development data.

What remains unresolved

The P2 semantic-readiness finding remains OPEN for Behavior.

  • Second-line prose, labels, and code fences are each accepted three of three times, accounting for all nine false passes. Complete retained final sections respectively contain 42\nCalculation complete, Total: 42, and fenced 42; replies instead describe only the numeric answer.
  • The numeric-only wrong factual value 41 is rejected three of three times for the format-only behavior. Two summaries explicitly call an incorrect value an implicit format violation, despite the newly supplied instruction to separate these judgments.
  • These are accepted raw model verdicts with complete contradictory evidence; this review does not establish a Python evidence/parser/formula defect or an introduced deterministic regression. The additional prompt instructions did not resolve this Behavior failure pattern in the bounded retest.

The controller-adopted combined development exit rule therefore fails (targeted_all_matches=false). Passing the Accuracy portion does not close the combined finding or establish Behavior readiness.

Disposition

Keep PR #509 draft and leave the semantic review thread unresolved. The controller's decision to stop this bounded iteration, preserve the eight heldout cases unopened, and explicitly describe the change as a partial mitigation is supported by the actual evidence. This review requests no third prompt change or additional provider run.

The earlier source/spec re-review remains valid: the prompt-only refinement introduces no identified source regression and preserves schemas, evidence construction, scoring formulas, thresholds, Overall, Goal, routing, and policy. Semantic completion remains partial. An Accuracy format-only failure still scores 0.8 and may pass the unchanged threshold; these format diagnostics do not establish whole-Accuracy or Overall correctness.

Declined to judge

Heldout performance/labels (unopened); general model capability or internal cause (not established by ten seen synthetic cases and dependent repeats); broader acceptance/cost/coverage or scoring-policy changes (outside this scoped task); and an alternative prompt repair (this bounded iteration has stopped).

Final recommendation: partial mitigation with demonstrated development Accuracy improvement, unresolved Behavior failures, no semantic signoff, no merge recommendation at this time. COMMENT only; no approval, finding resolution, merge, or auto-merge.

@rng1995

rng1995 commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator Author

Actual development measurement receipt for PR #509 at 4e47f8e83666042fc232fdce84b5128a650fcea2.

Outcome: partial mitigation; keep this PR draft. Accuracy format judgments match all 30 repeated development targets after refinement. Behavior still accepts all nine label/fence/second-line violations and rejects the valid-format wrong-fact control in all three repeats. The combined development exit criterion failed; the independently authored/reviewed eight-case blind assessment remains unopened and has sent zero requests.

Development cohort Source Accuracy format FP Accuracy format FF Behavior format FP Behavior format FF
baseline-development f62ab6e2 6/12 0/18 9/12 3/18
candidate-development d129b98b 3/12 0/18 8/12 3/18
revised-candidate-development 4e47f8e8 0/12 0/18 9/12 3/18

Each cohort has ten distinct synthetic cases, two real packaged judge functions and three dependent repeats: 60 accepted binary judgments, 60 actual HTTP entries, zero unknown/schema/transport errors, zero blocked extra requests, and unchanged source throughout. All 180 calls used explicit nv_build / nvidia/nemotron-3.5-bolt-e4b, concurrency two, zero retries/fallbacks, a 45-second socket/judge budget and a 1200-second hard cohort wall limit. The same frozen cases, runner and shuffled schedule were used across sequential cohorts. Source-order/model-service effects are not controlled. Shared-runtime prompts/evidence match in provider-free checks; only packaged-runtime functions were called live.

These are FORMAT_FOLLOWED / individual format-step outcomes, not whole-Accuracy or Overall acceptance rates. Corrected format-only failures still yield Accuracy 0.8 and pass its unchanged threshold. The unlabeled ACTION_CORRECT criterion for the wrong-fact development control changed false to true from baseline to the first candidate (Accuracy 0.6 to 0.8); it is not relabeled or tuned here. Both sources retained FACTUALLY_ACCURATE=false. No whole-Accuracy improvement or absence of collateral semantic changes is established.

No token/billed-cost accounting or general error-rate bound is available. Synthetic development data and dependent repeats do not establish representative reliability. Original reference/pilot artifacts and labels remain unchanged. No threshold/formula/schema/Overall/Goal/routing/release-gate change, provider substitution, merge or auto-merge is included.

Frozen development inputs (inert trajectories; not executed)
[
  {
    "id": "dev-plain",
    "question": "Calculate 6 * 7. Return only the numeric answer, with no label, prose, or Markdown.",
    "ground_truth": "42",
    "expected_behaviors": [
      "Return only the numeric answer, with no label, prose, or Markdown."
    ],
    "trajectory": {
      "steps": [
        {
          "source": "user",
          "message": "Calculate 6 * 7. Return only the numeric answer, with no label, prose, or Markdown."
        },
        {
          "source": "agent",
          "tool_calls": [
            {
              "tool_call_id": "calc-1",
              "function_name": "Bash",
              "arguments": {
                "command": "python3 -c 'print(6 * 7)'"
              }
            }
          ],
          "observation": {
            "results": [
              {
                "source_call_id": "calc-1",
                "content": "42",
                "is_error": false
              }
            ]
          }
        },
        {
          "source": "agent",
          "message": "42"
        }
      ]
    },
    "expected_format_followed": true,
    "expected_behavior_passed": true,
    "oracle_pattern": "[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)"
  },
  {
    "id": "dev-label",
    "question": "Calculate 6 * 7. Return only the numeric answer, with no label, prose, or Markdown.",
    "ground_truth": "42",
    "expected_behaviors": [
      "Return only the numeric answer, with no label, prose, or Markdown."
    ],
    "trajectory": {
      "steps": [
        {
          "source": "user",
          "message": "Calculate 6 * 7. Return only the numeric answer, with no label, prose, or Markdown."
        },
        {
          "source": "agent",
          "tool_calls": [
            {
              "tool_call_id": "calc-1",
              "function_name": "Bash",
              "arguments": {
                "command": "python3 -c 'print(6 * 7)'"
              }
            }
          ],
          "observation": {
            "results": [
              {
                "source_call_id": "calc-1",
                "content": "42",
                "is_error": false
              }
            ]
          }
        },
        {
          "source": "agent",
          "message": "Total: 42"
        }
      ]
    },
    "expected_format_followed": false,
    "expected_behavior_passed": false,
    "oracle_pattern": "[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)"
  },
  {
    "id": "dev-second-line",
    "question": "Calculate 6 * 7. Return only the numeric answer, with no label, prose, or Markdown.",
    "ground_truth": "42",
    "expected_behaviors": [
      "Return only the numeric answer, with no label, prose, or Markdown."
    ],
    "trajectory": {
      "steps": [
        {
          "source": "user",
          "message": "Calculate 6 * 7. Return only the numeric answer, with no label, prose, or Markdown."
        },
        {
          "source": "agent",
          "tool_calls": [
            {
              "tool_call_id": "calc-1",
              "function_name": "Bash",
              "arguments": {
                "command": "python3 -c 'print(6 * 7)'"
              }
            }
          ],
          "observation": {
            "results": [
              {
                "source_call_id": "calc-1",
                "content": "42",
                "is_error": false
              }
            ]
          }
        },
        {
          "source": "agent",
          "message": "42\nCalculation complete"
        }
      ]
    },
    "expected_format_followed": false,
    "expected_behavior_passed": false,
    "oracle_pattern": "[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)"
  },
  {
    "id": "dev-code-fence",
    "question": "Calculate 6 * 7. Return only the numeric answer, with no label, prose, or Markdown.",
    "ground_truth": "42",
    "expected_behaviors": [
      "Return only the numeric answer, with no label, prose, or Markdown."
    ],
    "trajectory": {
      "steps": [
        {
          "source": "user",
          "message": "Calculate 6 * 7. Return only the numeric answer, with no label, prose, or Markdown."
        },
        {
          "source": "agent",
          "tool_calls": [
            {
              "tool_call_id": "calc-1",
              "function_name": "Bash",
              "arguments": {
                "command": "python3 -c 'print(6 * 7)'"
              }
            }
          ],
          "observation": {
            "results": [
              {
                "source_call_id": "calc-1",
                "content": "42",
                "is_error": false
              }
            ]
          }
        },
        {
          "source": "agent",
          "message": "```\n42\n```"
        }
      ]
    },
    "expected_format_followed": false,
    "expected_behavior_passed": false,
    "oracle_pattern": "[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)"
  },
  {
    "id": "dev-wrong-fact",
    "question": "Calculate 6 * 7. Return only the numeric answer, with no label, prose, or Markdown.",
    "ground_truth": "42",
    "expected_behaviors": [
      "Return only the numeric answer, with no label, prose, or Markdown."
    ],
    "trajectory": {
      "steps": [
        {
          "source": "user",
          "message": "Calculate 6 * 7. Return only the numeric answer, with no label, prose, or Markdown."
        },
        {
          "source": "agent",
          "tool_calls": [
            {
              "tool_call_id": "calc-1",
              "function_name": "Bash",
              "arguments": {
                "command": "python3 -c 'print(6 * 7)'"
              }
            }
          ],
          "observation": {
            "results": [
              {
                "source_call_id": "calc-1",
                "content": "42",
                "is_error": false
              }
            ]
          }
        },
        {
          "source": "agent",
          "message": "41"
        }
      ]
    },
    "expected_format_followed": true,
    "expected_behavior_passed": true,
    "oracle_pattern": "[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)",
    "expected_factually_accurate": false
  },
  {
    "id": "dev-signed-decimal",
    "question": "Calculate -15 / 2. Return only the numeric answer, with no label, prose, or Markdown.",
    "ground_truth": "-7.5",
    "expected_behaviors": [
      "Return only the numeric answer, with no label, prose, or Markdown."
    ],
    "trajectory": {
      "steps": [
        {
          "source": "user",
          "message": "Calculate -15 / 2. Return only the numeric answer, with no label, prose, or Markdown."
        },
        {
          "source": "agent",
          "tool_calls": [
            {
              "tool_call_id": "calc-1",
              "function_name": "Bash",
              "arguments": {
                "command": "python3 -c 'print(-15 / 2)'"
              }
            }
          ],
          "observation": {
            "results": [
              {
                "source_call_id": "calc-1",
                "content": "-7.5",
                "is_error": false
              }
            ]
          }
        },
        {
          "source": "agent",
          "message": "-7.5"
        }
      ]
    },
    "expected_format_followed": true,
    "expected_behavior_passed": true,
    "oracle_pattern": "[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)"
  },
  {
    "id": "dev-no-format",
    "question": "Calculate 6 * 7.",
    "ground_truth": "42",
    "expected_behaviors": [
      "Provide a nonempty final response; no particular response format is required."
    ],
    "trajectory": {
      "steps": [
        {
          "source": "user",
          "message": "Calculate 6 * 7."
        },
        {
          "source": "agent",
          "tool_calls": [
            {
              "tool_call_id": "calc-1",
              "function_name": "Bash",
              "arguments": {
                "command": "python3 -c 'print(6 * 7)'"
              }
            }
          ],
          "observation": {
            "results": [
              {
                "source_call_id": "calc-1",
                "content": "42",
                "is_error": false
              }
            ]
          }
        },
        {
          "source": "agent",
          "message": "The result is 42."
        }
      ]
    },
    "expected_format_followed": true,
    "expected_behavior_passed": true,
    "oracle_pattern": "(?s).+"
  },
  {
    "id": "dev-prefix-present",
    "question": "Calculate 6 * 7. The final response must be exactly TOTAL= followed immediately by the numeric answer.",
    "ground_truth": "42",
    "expected_behaviors": [
      "The final response must be exactly TOTAL= followed immediately by the numeric answer."
    ],
    "trajectory": {
      "steps": [
        {
          "source": "user",
          "message": "Calculate 6 * 7. The final response must be exactly TOTAL= followed immediately by the numeric answer."
        },
        {
          "source": "agent",
          "tool_calls": [
            {
              "tool_call_id": "calc-1",
              "function_name": "Bash",
              "arguments": {
                "command": "python3 -c 'print(6 * 7)'"
              }
            }
          ],
          "observation": {
            "results": [
              {
                "source_call_id": "calc-1",
                "content": "42",
                "is_error": false
              }
            ]
          }
        },
        {
          "source": "agent",
          "message": "TOTAL=42"
        }
      ]
    },
    "expected_format_followed": true,
    "expected_behavior_passed": true,
    "oracle_pattern": "TOTAL=[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)"
  },
  {
    "id": "dev-prefix-absent",
    "question": "Calculate 6 * 7. The final response must be exactly TOTAL= followed immediately by the numeric answer.",
    "ground_truth": "42",
    "expected_behaviors": [
      "The final response must be exactly TOTAL= followed immediately by the numeric answer."
    ],
    "trajectory": {
      "steps": [
        {
          "source": "user",
          "message": "Calculate 6 * 7. The final response must be exactly TOTAL= followed immediately by the numeric answer."
        },
        {
          "source": "agent",
          "tool_calls": [
            {
              "tool_call_id": "calc-1",
              "function_name": "Bash",
              "arguments": {
                "command": "python3 -c 'print(6 * 7)'"
              }
            }
          ],
          "observation": {
            "results": [
              {
                "source_call_id": "calc-1",
                "content": "42",
                "is_error": false
              }
            ]
          }
        },
        {
          "source": "agent",
          "message": "42"
        }
      ]
    },
    "expected_format_followed": false,
    "expected_behavior_passed": false,
    "oracle_pattern": "TOTAL=[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)"
  },
  {
    "id": "dev-failed-tool",
    "question": "Calculate 6 * 7. Return only the numeric answer, with no label, prose, or Markdown.",
    "ground_truth": "42",
    "expected_behaviors": [
      "Return only the numeric answer, with no label, prose, or Markdown."
    ],
    "trajectory": {
      "steps": [
        {
          "source": "user",
          "message": "Calculate 6 * 7. Return only the numeric answer, with no label, prose, or Markdown."
        },
        {
          "source": "agent",
          "tool_calls": [
            {
              "tool_call_id": "calc-1",
              "function_name": "Bash",
              "arguments": {
                "command": "python3 -c 'raise SystemExit(3)'"
              }
            }
          ],
          "observation": {
            "results": [
              {
                "source_call_id": "calc-1",
                "content": "Calculation process exited with code 3; no result was produced.",
                "is_error": true
              }
            ]
          }
        },
        {
          "source": "agent",
          "message": "42"
        }
      ]
    },
    "expected_format_followed": true,
    "expected_behavior_passed": true,
    "oracle_pattern": "[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)"
  }
]
All target predictions and judged scores, in repeat order 1–3
{
  "baseline-development": {
    "commit": "f62ab6e248fb857ab7b7d87ba78b2f7fc1fcc884",
    "cases_sha256": "7dd98b9ce5a45937ad86353d36b760d3394310c8f33b04b896d11ee3aaf32d74",
    "runner_sha256": "de97367f334c4d76da256e2d78bf13a6266cc4f34c7f7b784395d801d193b410",
    "results_sha256": "5f80576c89b767b933a9541bac048a4d8c38d54052cd8951ea0805c3ce7ca00e",
    "cases": {
      "dev-plain": {
        "accuracy": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        },
        "behavior_check": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        }
      },
      "dev-label": {
        "accuracy": {
          "target": [
            false,
            false,
            false
          ],
          "scores": [
            0.8,
            0.8,
            0.8
          ]
        },
        "behavior_check": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        }
      },
      "dev-second-line": {
        "accuracy": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        },
        "behavior_check": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        }
      },
      "dev-code-fence": {
        "accuracy": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        },
        "behavior_check": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        }
      },
      "dev-wrong-fact": {
        "accuracy": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            0.6,
            0.6,
            0.6
          ]
        },
        "behavior_check": {
          "target": [
            false,
            false,
            false
          ],
          "scores": [
            0.0,
            0.0,
            0.0
          ]
        }
      },
      "dev-signed-decimal": {
        "accuracy": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        },
        "behavior_check": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        }
      },
      "dev-no-format": {
        "accuracy": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        },
        "behavior_check": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        }
      },
      "dev-prefix-present": {
        "accuracy": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        },
        "behavior_check": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        }
      },
      "dev-prefix-absent": {
        "accuracy": {
          "target": [
            false,
            false,
            false
          ],
          "scores": [
            0.8,
            0.8,
            0.8
          ]
        },
        "behavior_check": {
          "target": [
            false,
            false,
            false
          ],
          "scores": [
            0.0,
            0.0,
            0.0
          ]
        }
      },
      "dev-failed-tool": {
        "accuracy": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        },
        "behavior_check": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        }
      }
    }
  },
  "candidate-development": {
    "commit": "d129b98bb2028ba911b19bcce7ed18706d7001b9",
    "cases_sha256": "7dd98b9ce5a45937ad86353d36b760d3394310c8f33b04b896d11ee3aaf32d74",
    "runner_sha256": "de97367f334c4d76da256e2d78bf13a6266cc4f34c7f7b784395d801d193b410",
    "results_sha256": "e1b804647cdfb32a4c2931b3e52a5afb474f19879211e6f520c91e797e5699f4",
    "cases": {
      "dev-plain": {
        "accuracy": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        },
        "behavior_check": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        }
      },
      "dev-label": {
        "accuracy": {
          "target": [
            false,
            false,
            false
          ],
          "scores": [
            0.8,
            0.8,
            0.8
          ]
        },
        "behavior_check": {
          "target": [
            true,
            false,
            true
          ],
          "scores": [
            1.0,
            0.0,
            1.0
          ]
        }
      },
      "dev-second-line": {
        "accuracy": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        },
        "behavior_check": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        }
      },
      "dev-code-fence": {
        "accuracy": {
          "target": [
            false,
            false,
            false
          ],
          "scores": [
            0.8,
            0.8,
            0.8
          ]
        },
        "behavior_check": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        }
      },
      "dev-wrong-fact": {
        "accuracy": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            0.8,
            0.8,
            0.8
          ]
        },
        "behavior_check": {
          "target": [
            false,
            false,
            false
          ],
          "scores": [
            0.0,
            0.0,
            0.0
          ]
        }
      },
      "dev-signed-decimal": {
        "accuracy": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        },
        "behavior_check": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        }
      },
      "dev-no-format": {
        "accuracy": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        },
        "behavior_check": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        }
      },
      "dev-prefix-present": {
        "accuracy": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        },
        "behavior_check": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        }
      },
      "dev-prefix-absent": {
        "accuracy": {
          "target": [
            false,
            false,
            false
          ],
          "scores": [
            0.8,
            0.8,
            0.8
          ]
        },
        "behavior_check": {
          "target": [
            false,
            false,
            false
          ],
          "scores": [
            0.0,
            0.0,
            0.0
          ]
        }
      },
      "dev-failed-tool": {
        "accuracy": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        },
        "behavior_check": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        }
      }
    }
  },
  "revised-candidate-development": {
    "commit": "4e47f8e83666042fc232fdce84b5128a650fcea2",
    "cases_sha256": "7dd98b9ce5a45937ad86353d36b760d3394310c8f33b04b896d11ee3aaf32d74",
    "runner_sha256": "de97367f334c4d76da256e2d78bf13a6266cc4f34c7f7b784395d801d193b410",
    "results_sha256": "a049d35e70df8a25918df7fe02c59ba0d61a4a13c0ab09373cc94773beba846c",
    "cases": {
      "dev-plain": {
        "accuracy": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        },
        "behavior_check": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        }
      },
      "dev-label": {
        "accuracy": {
          "target": [
            false,
            false,
            false
          ],
          "scores": [
            0.8,
            0.8,
            0.8
          ]
        },
        "behavior_check": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        }
      },
      "dev-second-line": {
        "accuracy": {
          "target": [
            false,
            false,
            false
          ],
          "scores": [
            0.8,
            0.8,
            0.8
          ]
        },
        "behavior_check": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        }
      },
      "dev-code-fence": {
        "accuracy": {
          "target": [
            false,
            false,
            false
          ],
          "scores": [
            0.8,
            0.8,
            0.8
          ]
        },
        "behavior_check": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        }
      },
      "dev-wrong-fact": {
        "accuracy": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            0.8,
            0.8,
            0.8
          ]
        },
        "behavior_check": {
          "target": [
            false,
            false,
            false
          ],
          "scores": [
            0.0,
            0.0,
            0.0
          ]
        }
      },
      "dev-signed-decimal": {
        "accuracy": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        },
        "behavior_check": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        }
      },
      "dev-no-format": {
        "accuracy": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        },
        "behavior_check": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        }
      },
      "dev-prefix-present": {
        "accuracy": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        },
        "behavior_check": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        }
      },
      "dev-prefix-absent": {
        "accuracy": {
          "target": [
            false,
            false,
            false
          ],
          "scores": [
            0.8,
            0.8,
            0.8
          ]
        },
        "behavior_check": {
          "target": [
            false,
            false,
            false
          ],
          "scores": [
            0.0,
            0.0,
            0.0
          ]
        }
      },
      "dev-failed-tool": {
        "accuracy": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        },
        "behavior_check": {
          "target": [
            true,
            true,
            true
          ],
          "scores": [
            1.0,
            1.0,
            1.0
          ]
        }
      }
    }
  }
}
Selected verbatim revised Behavior replies and complete second-line prompt
{
  "dev-second-line": {
    "prompt": "You are evaluating whether an AI agent showed each expected behavior during a task. Read the conversation and decide, for each numbered behavior, whether it was observed.\n\nCONVERSATION:\nFINAL RESPONSE\n42\nCalculation complete\n\nUSER REQUEST\nCalculate 6 * 7. Return only the numeric answer, with no label, prose, or Markdown.\n\nCOMPACT TOOL HISTORY\nUser: Calculate 6 * 7. Return only the numeric answer, with no label, prose, or Markdown.\nAgent called: Bash({\"command\": \"python3 -c 'print(6 * 7)'\"})\nTool returned: 42\nAgent: 42\nCalculation complete\n\nEXPECTED BEHAVIORS:\n1. Return only the numeric answer, with no label, prose, or Markdown.\n\nFor each numbered behavior, check only what that behavior requires.\nA format-only behavior does not require the answer's value to be factually correct: a wrong value can still satisfy its format. If a behavior also requires factual correctness, evaluate that requirement too.\nFor a behavior about final-response format, judge the entire final response literally against only the stated format requirement, independently of factual correctness.\nWhen a FINAL RESPONSE section is supplied, its contents are the final answer; other section headings, tool results, history, and artifacts are context, not part of that answer.\nInspect every line of the final response, including text after an initially valid answer. Line breaks do not end the final response. Do not mentally remove labels or Markdown fence characters when checking the stated format.\nDo not extract a compliant answer from surrounding noncompliant text or substitute a correct value from tool output or the expected answer.\nIf only a number is required, extra prose, a label, or a code fence violates that requirement.\nRequired prefixes, units, or prose are valid when they match the stated format.\nWhen the complete final response establishes a format violation, mark that behavior false; keep null when missing or incomplete evidence prevents checking it.\nBefore returning, ensure each passed value agrees with its reason: a reason establishing a violation requires false, not true; an evidence gap that prevents checking requires null.\n\nRespond with ONLY one JSON object. \"results\" must hold exactly 1 entries, one per expected behavior: \"step\" is the behavior's number (each number from 1 to 1 exactly once), \"passed\" is true (observed), false (evidence supports a violation or absence), or null when missing or incomplete evidence prevents checking the behavior. Missing artifact contents, unavailable tool output, or a truncated trace require null, NOT false, for checks that depend on that evidence. A missing observation alone is not proof the behavior failed. Explain that evidence gap in \"reason\" (under 15 words). An unrelated task can be a valid negative control: evaluate its stated behavior without requiring skill use. Add a one-sentence \"summary\". Do not include a score: it is computed from the results.\nExample of the shape for this task's 1 behaviors (the values are only an illustration):\n{\"results\": [{\"step\": 1, \"passed\": true, \"reason\": \"Seen in the transcript.\"}], \"summary\": \"A short summary of what was and was not observed.\"}",
    "kwargs": {
      "max_tokens": 16384,
      "response_schema": {
        "type": "object",
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "step": {
                  "type": "integer"
                },
                "passed": {
                  "type": [
                    "boolean",
                    "null"
                  ]
                },
                "reason": {
                  "type": "string"
                }
              },
              "required": [
                "step",
                "passed",
                "reason"
              ],
              "additionalProperties": false
            }
          },
          "summary": {
            "type": "string"
          }
        },
        "required": [
          "results",
          "summary"
        ],
        "additionalProperties": false
      },
      "schema_name": "behavior_check_judgment",
      "allow_model_fallback": false
    },
    "reply": "{\"results\": [{\"step\": 1, \"passed\": true, \"reason\": \"The final response is '42' which is only a numeric answer.\"}], \"summary\": \"The AI agent successfully returned only the numeric answer as requested.\"}",
    "error": null
  },
  "dev-label": {
    "prompt": "You are evaluating whether an AI agent showed each expected behavior during a task. Read the conversation and decide, for each numbered behavior, whether it was observed.\n\nCONVERSATION:\nFINAL RESPONSE\nTotal: 42\n\nUSER REQUEST\nCalculate 6 * 7. Return only the numeric answer, with no label, prose, or Markdown.\n\nCOMPACT TOOL HISTORY\nUser: Calculate 6 * 7. Return only the numeric answer, with no label, prose, or Markdown.\nAgent called: Bash({\"command\": \"python3 -c 'print(6 * 7)'\"})\nTool returned: 42\nAgent: Total: 42\n\nEXPECTED BEHAVIORS:\n1. Return only the numeric answer, with no label, prose, or Markdown.\n\nFor each numbered behavior, check only what that behavior requires.\nA format-only behavior does not require the answer's value to be factually correct: a wrong value can still satisfy its format. If a behavior also requires factual correctness, evaluate that requirement too.\nFor a behavior about final-response format, judge the entire final response literally against only the stated format requirement, independently of factual correctness.\nWhen a FINAL RESPONSE section is supplied, its contents are the final answer; other section headings, tool results, history, and artifacts are context, not part of that answer.\nInspect every line of the final response, including text after an initially valid answer. Line breaks do not end the final response. Do not mentally remove labels or Markdown fence characters when checking the stated format.\nDo not extract a compliant answer from surrounding noncompliant text or substitute a correct value from tool output or the expected answer.\nIf only a number is required, extra prose, a label, or a code fence violates that requirement.\nRequired prefixes, units, or prose are valid when they match the stated format.\nWhen the complete final response establishes a format violation, mark that behavior false; keep null when missing or incomplete evidence prevents checking it.\nBefore returning, ensure each passed value agrees with its reason: a reason establishing a violation requires false, not true; an evidence gap that prevents checking requires null.\n\nRespond with ONLY one JSON object. \"results\" must hold exactly 1 entries, one per expected behavior: \"step\" is the behavior's number (each number from 1 to 1 exactly once), \"passed\" is true (observed), false (evidence supports a violation or absence), or null when missing or incomplete evidence prevents checking the behavior. Missing artifact contents, unavailable tool output, or a truncated trace require null, NOT false, for checks that depend on that evidence. A missing observation alone is not proof the behavior failed. Explain that evidence gap in \"reason\" (under 15 words). An unrelated task can be a valid negative control: evaluate its stated behavior without requiring skill use. Add a one-sentence \"summary\". Do not include a score: it is computed from the results.\nExample of the shape for this task's 1 behaviors (the values are only an illustration):\n{\"results\": [{\"step\": 1, \"passed\": true, \"reason\": \"Seen in the transcript.\"}], \"summary\": \"A short summary of what was and was not observed.\"}",
    "kwargs": {
      "max_tokens": 16384,
      "response_schema": {
        "type": "object",
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "step": {
                  "type": "integer"
                },
                "passed": {
                  "type": [
                    "boolean",
                    "null"
                  ]
                },
                "reason": {
                  "type": "string"
                }
              },
              "required": [
                "step",
                "passed",
                "reason"
              ],
              "additionalProperties": false
            }
          },
          "summary": {
            "type": "string"
          }
        },
        "required": [
          "results",
          "summary"
        ],
        "additionalProperties": false
      },
      "schema_name": "behavior_check_judgment",
      "allow_model_fallback": false
    },
    "reply": "{\"results\": [{\"step\": 1, \"passed\": true, \"reason\": \"Final response is only the numeric answer 42.\"}], \"summary\": \"The agent successfully returned only the numeric answer as requested.\"}",
    "error": null
  },
  "dev-code-fence": {
    "prompt": "You are evaluating whether an AI agent showed each expected behavior during a task. Read the conversation and decide, for each numbered behavior, whether it was observed.\n\nCONVERSATION:\nFINAL RESPONSE\n```\n42\n```\n\nUSER REQUEST\nCalculate 6 * 7. Return only the numeric answer, with no label, prose, or Markdown.\n\nCOMPACT TOOL HISTORY\nUser: Calculate 6 * 7. Return only the numeric answer, with no label, prose, or Markdown.\nAgent called: Bash({\"command\": \"python3 -c 'print(6 * 7)'\"})\nTool returned: 42\nAgent: ```\n42\n```\n\nEXPECTED BEHAVIORS:\n1. Return only the numeric answer, with no label, prose, or Markdown.\n\nFor each numbered behavior, check only what that behavior requires.\nA format-only behavior does not require the answer's value to be factually correct: a wrong value can still satisfy its format. If a behavior also requires factual correctness, evaluate that requirement too.\nFor a behavior about final-response format, judge the entire final response literally against only the stated format requirement, independently of factual correctness.\nWhen a FINAL RESPONSE section is supplied, its contents are the final answer; other section headings, tool results, history, and artifacts are context, not part of that answer.\nInspect every line of the final response, including text after an initially valid answer. Line breaks do not end the final response. Do not mentally remove labels or Markdown fence characters when checking the stated format.\nDo not extract a compliant answer from surrounding noncompliant text or substitute a correct value from tool output or the expected answer.\nIf only a number is required, extra prose, a label, or a code fence violates that requirement.\nRequired prefixes, units, or prose are valid when they match the stated format.\nWhen the complete final response establishes a format violation, mark that behavior false; keep null when missing or incomplete evidence prevents checking it.\nBefore returning, ensure each passed value agrees with its reason: a reason establishing a violation requires false, not true; an evidence gap that prevents checking requires null.\n\nRespond with ONLY one JSON object. \"results\" must hold exactly 1 entries, one per expected behavior: \"step\" is the behavior's number (each number from 1 to 1 exactly once), \"passed\" is true (observed), false (evidence supports a violation or absence), or null when missing or incomplete evidence prevents checking the behavior. Missing artifact contents, unavailable tool output, or a truncated trace require null, NOT false, for checks that depend on that evidence. A missing observation alone is not proof the behavior failed. Explain that evidence gap in \"reason\" (under 15 words). An unrelated task can be a valid negative control: evaluate its stated behavior without requiring skill use. Add a one-sentence \"summary\". Do not include a score: it is computed from the results.\nExample of the shape for this task's 1 behaviors (the values are only an illustration):\n{\"results\": [{\"step\": 1, \"passed\": true, \"reason\": \"Seen in the transcript.\"}], \"summary\": \"A short summary of what was and was not observed.\"}",
    "kwargs": {
      "max_tokens": 16384,
      "response_schema": {
        "type": "object",
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "step": {
                  "type": "integer"
                },
                "passed": {
                  "type": [
                    "boolean",
                    "null"
                  ]
                },
                "reason": {
                  "type": "string"
                }
              },
              "required": [
                "step",
                "passed",
                "reason"
              ],
              "additionalProperties": false
            }
          },
          "summary": {
            "type": "string"
          }
        },
        "required": [
          "results",
          "summary"
        ],
        "additionalProperties": false
      },
      "schema_name": "behavior_check_judgment",
      "allow_model_fallback": false
    },
    "reply": "{\"results\": [{\"step\": 1, \"passed\": true, \"reason\": \"Final response is only the numeric answer 42.\"}], \"summary\": \"The AI agent successfully returned only the numeric answer as requested.\"}",
    "error": null
  },
  "dev-wrong-fact": {
    "prompt": "You are evaluating whether an AI agent showed each expected behavior during a task. Read the conversation and decide, for each numbered behavior, whether it was observed.\n\nCONVERSATION:\nFINAL RESPONSE\n41\n\nUSER REQUEST\nCalculate 6 * 7. Return only the numeric answer, with no label, prose, or Markdown.\n\nCOMPACT TOOL HISTORY\nUser: Calculate 6 * 7. Return only the numeric answer, with no label, prose, or Markdown.\nAgent called: Bash({\"command\": \"python3 -c 'print(6 * 7)'\"})\nTool returned: 42\nAgent: 41\n\nEXPECTED BEHAVIORS:\n1. Return only the numeric answer, with no label, prose, or Markdown.\n\nFor each numbered behavior, check only what that behavior requires.\nA format-only behavior does not require the answer's value to be factually correct: a wrong value can still satisfy its format. If a behavior also requires factual correctness, evaluate that requirement too.\nFor a behavior about final-response format, judge the entire final response literally against only the stated format requirement, independently of factual correctness.\nWhen a FINAL RESPONSE section is supplied, its contents are the final answer; other section headings, tool results, history, and artifacts are context, not part of that answer.\nInspect every line of the final response, including text after an initially valid answer. Line breaks do not end the final response. Do not mentally remove labels or Markdown fence characters when checking the stated format.\nDo not extract a compliant answer from surrounding noncompliant text or substitute a correct value from tool output or the expected answer.\nIf only a number is required, extra prose, a label, or a code fence violates that requirement.\nRequired prefixes, units, or prose are valid when they match the stated format.\nWhen the complete final response establishes a format violation, mark that behavior false; keep null when missing or incomplete evidence prevents checking it.\nBefore returning, ensure each passed value agrees with its reason: a reason establishing a violation requires false, not true; an evidence gap that prevents checking requires null.\n\nRespond with ONLY one JSON object. \"results\" must hold exactly 1 entries, one per expected behavior: \"step\" is the behavior's number (each number from 1 to 1 exactly once), \"passed\" is true (observed), false (evidence supports a violation or absence), or null when missing or incomplete evidence prevents checking the behavior. Missing artifact contents, unavailable tool output, or a truncated trace require null, NOT false, for checks that depend on that evidence. A missing observation alone is not proof the behavior failed. Explain that evidence gap in \"reason\" (under 15 words). An unrelated task can be a valid negative control: evaluate its stated behavior without requiring skill use. Add a one-sentence \"summary\". Do not include a score: it is computed from the results.\nExample of the shape for this task's 1 behaviors (the values are only an illustration):\n{\"results\": [{\"step\": 1, \"passed\": true, \"reason\": \"Seen in the transcript.\"}], \"summary\": \"A short summary of what was and was not observed.\"}",
    "kwargs": {
      "max_tokens": 16384,
      "response_schema": {
        "type": "object",
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "step": {
                  "type": "integer"
                },
                "passed": {
                  "type": [
                    "boolean",
                    "null"
                  ]
                },
                "reason": {
                  "type": "string"
                }
              },
              "required": [
                "step",
                "passed",
                "reason"
              ],
              "additionalProperties": false
            }
          },
          "summary": {
            "type": "string"
          }
        },
        "required": [
          "results",
          "summary"
        ],
        "additionalProperties": false
      },
      "schema_name": "behavior_check_judgment",
      "allow_model_fallback": false
    },
    "reply": "{\"results\": [{\"step\": 1, \"passed\": false, \"reason\": \"Final response '41' does not match expected answer 42.\"}], \"summary\": \"The agent returned an incorrect numeric answer, violating the format requirement implicitly by not being the correct result.\"}",
    "error": null
  }
}

Full redacted prompt/reply, provenance, attempt and outer-wall receipts remain in the task-local evidence archive. The public blocks above retain all frozen development inputs and every target verdict/score, plus the selected verbatim failures; they are not a claim that the complete local corpus is hosted on GitHub.

@rng1995 rng1995 changed the title Clarify explicit final-response format judgments Clarify literal final-response format checks (partial mitigation) Nov 13, 2026
@rng1995
rng1995 marked this pull request as ready for review November 13, 2026 17:19
@rng1995
rng1995 enabled auto-merge (squash) November 13, 2026 17:29
rng1995 and others added 3 commits November 13, 2026 10:00
Retain the prompt-format clarification and incoming behavior evidence gate without changing scoring semantics. Keep both adjacent Unreleased fix notes.

Signed-off-by: Narendran Raghavan <[email protected]>

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Independent review of merge resolution at 31b5033b7b43398059f12782e82dc1e242866adc only.

Spec/preservation verdict: PASS. Merge-quality verdict: PASS. No actionable findings within this scope.

I independently checked the index/tree and merge parents: PR b2d6d752 and main be88fa81, producing tree ce2a03be. A full-tree blob/mode comparison found no non-changelog deviations from the intended parents, and the PR's non-changelog patch is byte-for-byte unchanged. The sole manual conflict in CHANGELOG.md retains both the Accuracy/Behavior final-answer-format clarification and main's folder-validation advisory entry under Unreleased / Fixed. No conflict markers or whitespace errors remain. All five pre-existing untracked process notes retain their recorded hashes and remain untracked.

The implementer's verification record reports 376 tests passed, Ruff passed, and Fern returned 0 errors with the existing unauthenticated redirects-check warning. I did not repeat those tests.

This COMMENT covers conflict resolution and preservation only. It does not approve new judging semantics, resolve prior semantic-review concerns, or establish PR acceptance/closure. No provider or heldout calls, historical diagnostic review, threshold changes, PR state changes, history rewrite, main merge, or auto-merge were performed as part of this review.

@rng1995
rng1995 merged commit 868de68 into main Nov 13, 2026
27 checks passed
@rng1995
rng1995 deleted the naren/grader-explicit-format-judgments branch November 13, 2026 18:46
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.

1 participant