Skip to content

fix(tier3): keep case actions from weakening dataset requirements - #588

Merged
chrisknvidia merged 12 commits into
mainfrom
fix/christopherk/case-action-requirement-preserving
Nov 15, 2026
Merged

chrisknvidia merged 12 commits into
mainfrom
fix/christopherk/case-action-requirement-preserving

Conversation

@chrisknvidia

@chrisknvidia chrisknvidia commented Nov 15, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

The Tier 3 case-action prompt invited the model to edit "the eval case in evals/evals.json if the case expects something the skill does not provide". On a real run with a positive case that asks for a feature the skill lacks, the canonical recommendation became "remove the expectation for syllable_count from the syllable-positive case", which drops a deliberately tested requirement without saying so, and contradicted the other suggestions to implement the feature.

Now:

  • the prompt asks for fixes that preserve dataset expectations and assertions;
  • case actions (LLM or deterministic) that remove, drop, skip, disable or loosen an expectation/assertion/requirement are rejected and replaced by a deterministic action, using the existing requirement-preserving check from the insights judge (extended to recognise these verbs and named expectations such as "the syllable_count expectation");
  • the canonical recommendation records where its action came from: source: "llm" for an accepted model action, source: "deterministic" otherwise, plus fallback_reason (llm_unavailable_or_invalid or requirement_weakening) when a model action was expected but not used.

Re-running the same real scenario: with the recommender reachable the action is to implement the missing field (source: "llm"); with the recommender configured but unreachable the run completes with the deterministic action and fallback_reason: "llm_unavailable_or_invalid".

Verification

  • I am familiar with the Contributing Guidelines
  • Added or updated focused tests (tests/test_tier3_case_summary.py: new regressions fail before the fix; focused suites pass after)
  • Updated documentation for user-visible changes (no doc change needed)
  • Ran ruff check and ruff format --check
  • Ran make test (focused suites only)
  • Ran make build
  • Did not add credentials, private datasets, or proprietary benchmark content

Release Impact

  • No user-visible release note needed
  • Updated CHANGELOG.md

Devin Review

Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
devin-ai-integration[bot]

This comment was marked as resolved.

Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
…han the expectation

Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
devin-ai-integration[bot]

This comment was marked as resolved.

…so fixes a mismatch

Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
devin-ai-integration[bot]

This comment was marked as resolved.

… cases or case failures

Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
devin-ai-integration[bot]

This comment was marked as resolved.

… before or after the word case

Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
…se takes a dataset case out, and keep advice that avoids it

Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
devin-ai-integration[bot]

This comment was marked as resolved.

…to the verb, and ignore identifiers that are not case ids

Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
devin-ai-integration[bot]

This comment was marked as resolved.

…h as first, outright and having to

Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
devin-ai-integration[bot]

This comment was marked as resolved.

…bition of the verb it introduces

Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
@chrisknvidia
chrisknvidia merged commit 53dfb34 into main Nov 15, 2026
27 checks passed
@chrisknvidia
chrisknvidia deleted the fix/christopherk/case-action-requirement-preserving branch November 15, 2026 06:19
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