Skip to content

agent-skills: flag a filter value whose type does not match its column (data-prep case 41) - #472

Closed
kumo-isaac wants to merge 1 commit into
mainfrom
igutierrez/fi-case-41-filter-value-type
Closed

kumo-isaac wants to merge 1 commit into
mainfrom
igutierrez/fi-case-41-filter-value-type

Conversation

@kumo-isaac

@kumo-isaac kumo-isaac commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Data-prep case 41, Filter values with the wrong type, from Kumo Data Prep Cases. The sheet assigns it to the agent ("Tell the agent").

Change map: #472 (comment)

Summary

Why the agent missed it. The card showed the target column as TEXT and the request compared it with the number 1. Both runs quietly re-quoted the value to '1' with a side note, which is the "change the query to make it go away" §1a forbids. No rule asked the agent to check a value against its column's type.

What changes.

  • Node 1d checks every condition value against its column's catalog type (number against text, quoted number against a numeric column, quoted date, word against a boolean).
  • On a mismatch it does not re-quote or cast silently: it adds a Type mismatch: line, gives both fixes (rewrite the value in the column's type, or change the column's type in the source), says which the Outcome line uses, and asks.
  • pql_writing gets the PQL Type Mismatch text, checked against kumopql/validator/type_validator.py.

Testing Done

Tested with the CoCo failure-injection harness (eval/fi_harness/coco in kumo-ai/kumo_skill_dev, with the --contract-only driver from kumo-ai/kumo_skill_dev#63): claude-opus-4-6 with the packaged CoCo skill as its system prompt, on the injected dataset for this case, in two request phrasings. Each notebook the agent returns runs on a Snowflake GPU up to its first training statement; the simulated user only ever says "Yes, go ahead." A judge (nemotron) reads the conversation against the case's rubric.

Run Baseline (main) Baseline + report turn This branch + report turn
formal (sc_coco_19411) missed missed missed
terse (sc_coco_19412) missed missed detected · disclosed · asked
  • Report turn: the contract-only driver ends a conversation as soon as a notebook reaches training, without showing the agent that run's output, so a warning printed in a run that got through never reaches it. Both the baseline and this branch were extended by one turn in which the host reports the passing run, exactly as for a failed run, and the model replies once. The middle column is the fair baseline.
  • Judge notes on this branch:
    • formal:
    • terse: The agent detected the type mismatch in target_label, disclosed it, named the cause, and asked the user to confirm the corrected graph before proceeding.
  • One judge (nemotron). The table above is a single run per phrasing at temperature 0, so it is indicative only. Repeats:

Repeats: 3 per phrasing at temperature 0.7, same setup, host-report turn applied. Runs marked detected by the judge:

Phrasing Baseline (main, 1 run, temp 0) This branch (3 runs, temp 0.7)
formal 0/1 2/3
terse 0/1 2/3

The baseline was not re-run at temperature 0.7, so this comparison is indicative.

  • Skill tests: test_no_environment_setup.py, test_package_skill.py, test_source_references.py pass; scripts/package_skill.py coco packages cleanly.
  • Branched from 815429b64; the baseline ran on 815429b64. GPU runs used bundle 20261010+d9a703d, which predates from kumo.engine import Edge and graph.visualize(), so most runs spent repair turns on those first.

Notes

  • One PR per data-prep case. The sibling PRs (igutierrez/fi-case-*) edit the same sections of SKILL.md, preflight.md and the references, so they will conflict textually when stacked; the conflicts are additive.

🤖 Generated with Claude Code

…n at Node 1d (data-prep case 41)

The agent saw a TEXT column compared with the number 1 and silently re-quoted
the value. It now names the mismatch (table.column, column type, value type),
gives both fixes - rewrite the value or change the column's type in the
source - and asks. pql_writing.md records Kumo's Type Mismatch refusal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kumo-isaac

Copy link
Copy Markdown
Contributor Author

Change map

File Function / scope What changed Why
agent-skills/skills/kumo-data-science/SKILL.md Node 1d check condition values against column types the agent silently re-quoted
agent-skills/skills/kumoai-reference/references/pql_writing.md Gotchas the Type Mismatch error text tie the error to its cause

Observed failure: the agent did not surface data-prep case 41 (Filter values with the wrong type) in the failure-injection runs. Smallest change: the skill rules above. Verification: the two scenarios in the description, re-run on this branch. Stop when the judge marks the failure detected in both.

@copy-pr-bot

copy-pr-bot Bot commented Nov 22, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@kumo-isaac
kumo-isaac temporarily deployed to gha-kumo-workflow-tests November 22, 2026 02:16 — with GitHub Actions Inactive
@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Note

.coderabbit.yaml has unrecognized properties

CodeRabbit is using all valid settings from your configuration. Unrecognized properties (listed below) have been ignored and may indicate typos or deprecated fields that can be removed.

Parsing warnings: 1

Validation error: Unrecognized key: "tone_instructions" at "reviews"
Configuration instructions

  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
Pre-merge checks: Passed 2 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Change Map Design Review Warning (previously flagged, unaddressed) Details from the previous assessment are unavailable.
Passed Passed checks: 2 passed

Check name Status Explanation
Pr Size Passed The PR changes 2 files, which is below the threshold of 40. The check fails only when the count exceeds 40, so it passes. Evidence: - The PR head is commit 0616983, "agent-skills: flag a filter value …
Public Resource Access Passed The check applies only to external resource references (URLs, repository locations, package source locations) added or modified by this PR's diff. The diff 815429b64..HEAD touches two files: `agent-…
Full details: Pr Size

Explanation

The PR changes 2 files, which is below the threshold of 40. The check fails only when the count exceeds 40, so it passes. Evidence: - The PR head is commit 0616983, "agent-skills: flag a filter value whose type does not match its column at Node 1d (data-prep case 41)". The base is 815429b, as stated in the PR description. git merge-base HEAD main returns the same commit, so the base is consistent. - git diff --name-only 815429b..HEAD lists 2 files: - M agent-skills/skills/kumo-data-science/SKILL.md - M agent-skills/skills/kumoai-reference/references/pql_writing.md - No files were added, deleted, or renamed. Line counts were ignored, as the check requires.

Full details: Public Resource Access

Explanation

The check applies only to external resource references (URLs, repository locations, package source locations) added or modified by this PR's diff. The diff 815429b64..HEAD touches two files: agent-skills/skills/kumo-data-science/SKILL.md (+10 lines) and agent-skills/skills/kumoai-reference/references/pql_writing.md (+1 line). Neither added line contains a URL, a link, or a package source location. The added text has three kinds of reference: - kumoai-reference/references/pql_writing.md and kumo-data-science/SKILL.md are relative paths inside this same repository. They are not external resources. - kumopql.validator.type_validator is a module name cited as the source of the Type Mismatch error text. It is not a URL or a repository location. It is a pointer to error text, not a required source location for the changed Markdown. - The PR description contains a Google Sheets link, a PR comment link, and references to kumo-ai/kumo_skill_dev. The description is not repository content changed by the PR, and the check does not reach it. No added or modified external reference was found in the changed files, so there is nothing to test for anonymous access. The primary PR author is kumo-isaac (GitHub, NVIDIA/kumo-engine #472). The author does not affect this check.

Latest assessment: Change Map Design Review

Latest assessment: The latest assessment was inconclusive; the previous failure remains unresolved.

Latest explanation: The check assesses the PR conversation comment that starts with &lt;!-- kumo-pr-change-map --&gt;. That comment is not in the supplied context. The PR description links to it (issuecomment-7072807296), but the context contains only the description and the CodeRabbit review threads, and it states that no review threads were returned. The repository has no copy of the comment: a search for the marker found only docs/development/review.md, which describes the required format. No available tool retrieves PR issue comments. The Change map cannot be reviewed, so no design verdict is possible. Evidence gathered from the code (context only, not a substitute for the map): - Commit 0616983 changes two files, with 11 insertions: agent-skills/skills/kumo-data-science/SKILL.md (a new Node 1d type-check rule) and agent-skills/skills/kumoai-reference/references/pql_writing.md (Gotcha 14). - The PQL error text the references cite (Type Mismatch, Did you forget to add quotes?) exists in packages/kumo-pql/kumopql/validator/type_validator.py. - The previous FAIL has no details. I could not verify or refute its claims, so I cannot PASS. Limits: the change map's necessity, layer, behavior-preservation, verification, and stopping-condition claims are unverified.

Latest resolution: Provide the body of the PR issue comment that starts with &lt;!-- kumo-pr-change-map --&gt; (the link in the description is issuecomment-7072807296), or enable retrieval of PR issue comments for this check. Then re-run the check. The review should confirm that the map: 1. States the observed failure (case 41: a TEXT column compared with 1, silently re-quoted) and the behavior that was inspected. 2. Justifies each of the two changed files, and whether the Node 1d rule belongs in SKILL.md or in preflight. 3. Records the relevant behavior that the change preserves, including the rule to ask the user before any re-quote or cast. 4. Keeps the optional refinements separate from the required change, and states the stopping condition. 5. Explains the test evidence. The description's GPU runs are single-run or 3-run, temperature-dependent judge results on a non-default bundle, so they support only an indicative conclusion.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@kumo-isaac
kumo-isaac marked this pull request as ready for review November 23, 2026 20:44
@kumo-isaac

Copy link
Copy Markdown
Contributor Author

More runs: 3 repeats per phrasing

Same harness and GPU setup as the description, but the model ran at temperature 0.7 (the original runs used 0, so repeats of one scenario were near-identical). Each cell is runs the judge marked the failure detected, with the host-report turn applied to both.

Phrasing Baseline (main, temp 0) This branch (temp 0.7)
formal 0/1 2/3
terse 0/1 2/3
  • Total on this branch: 4/6 detected.
  • The baseline is still one run per phrasing at temperature 0; it was not re-run at 0.7, so the comparison is indicative.
  • Still one judge (nemotron).

🤖 Generated with Claude Code

@kumo-isaac

Copy link
Copy Markdown
Contributor Author

Closed: in 3 repeat runs per phrasing at temperature 0.7 this fix detected the failure in fewer than 5 of 6 runs (see the results in the description), so it is not included in #522. The branch is kept.

@kumo-isaac kumo-isaac closed this Nov 24, 2026

This branch was previously deployed

1 inactive deployment
gha-kumo-workflow-tests — 0616983b Deployed Nov 22, 2026 by kumo-isaac via import #2940
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