Skip to content

agent-skills: combined data-prep agent-case fixes (cases 1, 2, 8, 9, 10, 12, 14, 20, 29, 30, 47) - #522

Open
kumo-isaac wants to merge 7 commits into
mainfrom
igutierrez/fi-agent-cases-combined
Open

kumo-isaac wants to merge 7 commits into
mainfrom
igutierrez/fi-agent-cases-combined

Conversation

@kumo-isaac

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

Copy link
Copy Markdown
Contributor

Combines the data-prep agent-case fixes that detected the injected failure in at least 5 of 6 repeat runs, from Kumo Data Prep Cases. It replaces the single-case PRs #459, #460, #461, #462, #463, #464, #465, #468 and #473; cases 9 and 30 never had one. The single-case PRs for cases that did not reach 5/6 (27, 28, 31, 32, 33, 41) are closed; case 13 never had one.

Change map: #522 (comment)

Summary

  • Case 1, Entity key never repeats. Every link out of an event table is probed: COUNT(fk) against COUNT(DISTINCT fk). Preflight runs it when it can read rows; otherwise the notebook runs it read-only before graph.snapshot() and reports a unique link for specific confirmation. Uniqueness alone does not invalidate it; after the user confirms the observed relationship, the notebook retains it and continues. The agent reports table, column, counts and whether the link was inferred or supplied, and asks whether a different stable ID is needed. A one-to-one link between two entity tables is exempt. A go-ahead from the user is never taken as a probe result.
  • Case 2, Rows silently dropped (bad keys or times). The §7 snapshot cell records warnings and prints them all. A data-loss warning (duplicate key, null or invalid key, invalid values, low foreign-key match) raises unless DATA_LOSS_ACCEPTED is set, which the agent sets only after the user chooses to continue. §1a quotes the SDK's Snapshot dropped <n> row(s) with a null or invalid primary key… message; the report gives rows lost per table and the reason. Not covered: Kumo does not report rows dropped for a missing time value.
  • Case 8, IDs with leading zeros. Before the snapshot the notebook measures every link read-only: foreign-key rows, rows that match the parent key, and rows that would match if zero-padded to the key's width. It stops when fewer than half match unless the user explicitly accepts that link's measured loss. The diagnostic excludes padding matches that would truncate longer IDs. A high padded count means the zeros were lost upstream; the agent says they cannot be recovered in the notebook and asks for the column to be stored as text. Casting or padding in the notebook stays forbidden.
  • Case 9, IDs repeating across tenants. A key preflight could not probe is probed read-only in the notebook before the snapshot, and the notebook stops when it repeats, instead of taking the key on a go-ahead. When a key repeats, the probe tests the id-like columns the table shares with its linking tables; if the key is unique together with one, the agent says it is tenant-scoped and suggests a combined key built upstream.
  • Case 10, How links are found. Each link line names its basis: declared, same name or [supplied]. A column whose name only resembles a key is never linked on that resemblance; it goes under Not found. Every link reports the share of its non-null values found in the parent key, measured in preflight when rows can be read, otherwise by a read-only link-check cell in the notebook.
  • Case 12, FK values with no matching PK. Runtime §3.2: after graph validation, a read-only cell through connector.session() prints, per confirmed link, matched of non-null rows, unmatched rows, distinct unmatched values and nulls. Failed comparisons raise with context and preserve the cause; counts default to zero where needed. It never filters or writes. Generic and Databricks runtimes now require equivalent active-reader adaptations and an unresolved-check stop when measurement cannot run. Any unmatched rows lead the agent's reply, with the likely cause, and the user decides: fix the source, correct the link, or continue. A fix for an unrelated code error waits. Troubleshooting §2 states the 50% threshold; Step 3 counts link-check output as a data finding.
  • Case 14, Two-way links (connections, follows). Two links from one table to the same table are a user decision at the gate. The agent names the pair and offers: one direction (one edge); both, directed (valid only while no query aggregates across that table to the parent); or undirected, written twice upstream with the columns swapped. It applies none of them in the notebook. Troubleshooting §3 gets the Ambiguous link between tables query error, checked against kumopql/validator/join_validator.py.
  • Case 20, Several timestamp columns. Every time-column line states why it was picked and lists the table's other timestamp columns, or says there are none, even when the preflight came from the host. A table with more than one timestamp column asks which marks when the row's fact happened, and says how to change it. The §8 example shows the new form.
  • Case 29, Column names that force the ID type. A new Column types pass at Node 1c: for each selected non-key column that one of Kumo's name or value rules matches, the proposal states the type Kumo will give it, the rule, and the type its meaning calls for; the user decides and the notebook declares it with with_column. Graph construction Step 3 documents the identifier-name rule from contains_identifier (float columns exempt); a SUM or AVG target is declared numerical. Troubleshooting §3 quotes Aggregation SUM is not intended to operate on foreign keys and ID-type columns. with its fix.
  • Case 30, small integers typed as categories. A Column types pass at the graph gate reports each selected column whose name or values make Kumo give it a type its meaning contradicts, and the user chooses; the notebook declares the confirmed type with with_column. The skill documents how a semantic type is inferred (few distinct values make an integer categorical), Node 1d says why a count target is regression, and the notebook stops on a Semantic Type Mismatch warning from pquery.validate().
  • Case 47, Attributes overwritten in place (mutable columns). Node 1c's column pass flags, for time-window queries, status-like columns (status, plan, tier, stage, active or closed flag, current balance) on a one-row-per-entity table with no time for when the value took effect. A creation or signup date does not count. Each goes under Flagged columns with table, column and row count, and the agent asks whether its past values exist. Following the case's what-to-do, the column stays in unless the user leaves it out.

Testing Done

Per-case results from the CoCo failure-injection harness (eval/fi_harness/coco in kumo-ai/kumo_skill_dev, --contract-only driver from kumo-ai/kumo_skill_dev#63): claude-opus-4-6 with the packaged CoCo skill as its system prompt, each notebook run on a Snowflake GPU up to its first training statement, the simulated user only ever saying "Yes, go ahead", a nemotron judge against each case's rubric. Both sides had one extra turn in which the host reports the passing run. Cells are runs the judge marked detected (formal · terse). Each case was run on its own branch, not on this combined one:

Case Name Baseline (main, 1 run each, temp 0) Single-case branch (3 runs each, temp 0.7) Earlier PR
1 Entity key never repeats 0/1 · 0/1 3/3 · 2/3 #459
2 Rows silently dropped (bad keys or times) 1/1 · 1/1 3/3 · 3/3 #460
8 IDs with leading zeros 1/1 · 0/1 3/3 · 2/3 #461
9 IDs repeating across tenants 1/1 · 1/1 3/3 · 2/3 none
10 How links are found 0/1 · 1/1 3/3 · 3/3 #462
12 FK values with no matching PK 0/1 · 0/1 3/3 · 3/3 #463
14 Two-way links (connections, follows) 0/1 · 0/1 3/3 · 3/3 #464
20 Several timestamp columns 0/1 · 0/1 3/3 · 3/3 #465
29 Column names that force the ID type 0/1 · 0/1 3/3 · 3/3 #468
30 small integers typed as categories 1/1 · 1/1 3/3 · 3/3 none
47 Attributes overwritten in place (mutable columns) 0/1 · 0/1 3/3 · 3/3 #473
  • The baseline was not re-run at temperature 0.7, so the comparison is indicative.
  • Skill tests: test_no_environment_setup.py, test_package_skill.py, test_source_references.py pass (200); scripts/package_skill.py coco packages cleanly.
  • This combined branch has not been run through the harness yet. The eleven fixes were merged by cherry-picking and resolving the overlapping sections of SKILL.md, preflight.md, troubleshooting_signals.md and kumo_finetuning_sdk.md by hand; the longer prompt may change behaviour. A combined run will follow.
  • Branched from main at 5c3a22cac; GPU runs used bundle 20261010+d9a703d, which predates from kumo.engine import Edge and graph.visualize().

🤖 Generated with Claude Code

Review follow-up (e87092322)

Addressed the selected-case Manush/CodeRabbit findings; the maintained change map records case-by-case disposition and the two user-selected implementation decisions. Local validation: 367 skill tests and 12 subtests passed; all three host packages have 0 unresolved references; published skills regenerated. Live warehouses, GPUs, newly generated cross-host notebooks and the combined harness were not run. No merge.

…9, 10, 12, 14, 20, 29, 30, 47)

Surfaces silent data problems at the graph gate and in the notebook: repeated entity keys,
dropped rows, leading-zero ids, tenant-scoped keys, link coverage and basis, orphan foreign keys,
two links to one parent, time-column choice, id-like names, few-valued numerics, current-state
columns.

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

kumo-isaac commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

Change map

Scope: data-prep cases 1, 2, 8, 9, 10, 12, 14, 20, 29, 30, 47, as numbered in this PR's description (not review-comment indices). The review-fix commit is e87092322. Existing interval/population and persistence changes are recorded below for full-file coverage; this review pass did not change their authored behavior.

Observed failure: the original skill did not reliably surface these cases; the original per-case harness results are in the description. Inspection of the current diff and Manush/CodeRabbit discussions also found unconditional rejection of valid unique event links, an unguarded complete example, missing host adaptations, SQL-count/padding edge cases, and stale published skills.

File Function / scope What changed Why
agent-skills/skills/kumo-data-science/SKILL.md Cases 10/12/14/20/29/30/47; existing availability/population rules Allows read-only evidence; requires link findings, two-link decisions, timestamp reasons, column-type decisions and mutable-state flags. Existing interval endpoints are structural end columns; a population is an input, not an output destination. These choices were previously silent or could introduce leakage/output writes. No new authored edit to this file in the review-fix commit.
agent-skills/skills/kumo-data-science/accept/preflight.md Cases 1/9/10/14/20/29/30; existing interval declarations Reports unique event-link observations for specific confirmation; uses grouped, null-safe composite-key checks; reports link basis/coverage; one-direction removes only the extra Edge, retaining columns required by later confirmed PQL; permits required event-FK counts. Retains time-choice reasons, column-type gate and interval end-column/key rules. Previously every unique event FK was rejected, multi-expression DISTINCT was not portable, and an extra column could be removed despite query use. Existing end columns stay selected, outside features, and do not imply a primary key.
agent-skills/skills/hosts/snowflake-coco/runtime.md Cases 8/10/12; link diagnostic Runs coverage after successful graph validation through connector.session(), zero-defaults COUNT_IF and raises a contextual, chained error on failed comparison. Keeps successful counts and unmatched-row reporting. The active session can see different rows; NULL counts broke matched/empty links; failures previously continued. Graph validation prevents SQL numeric/text coercion from reporting false matches while preserving SDK lossless integer widening.
agent-skills/skills/hosts/generic/runtime.md Cases 1/8/9/10/12; diagnostic adaptation Explicit reader, dialect, identity and count instructions for Snowflake, BigQuery, Databricks SQL and Arrow/file/object-store sources; missing reader/access/measurement requires an unresolved-check stop. Previously this runtime had no equivalent diagnostic instructions. Cluster-only Databricks has no reader specified here and stops rather than inventing a warehouse.
agent-skills/skills/hosts/databricks-genie/runtime.md Cases 1/8/9/10/12; diagnostic adaptation Requires key, link, leading-zero and event-link checks through the existing same-identity warehouse run_sql, with Unity Catalog quoting, integer conversion and unresolved-check stops. Previously the shared reference assumed Snowpark and this runtime provided no adaptation.
agent-skills/skills/kumoai-reference/references/troubleshooting_signals.md Cases 1/2/8/9/10/12/14/29/30 Adds the active-host diagnostic contract; fixes unique-event confirmation, empty-key reporting, composite-key null checks and LPAD truncation; adds explicit per-link acceptance for measured low coverage. Snowflake examples use connector sessions. Retains dropped-key, ambiguous-link and semantic-type signals. Previously valid one-event-per-parent links and accepted low-coverage links had no continuation, empty keys were misdiagnosed, LPAD could truncate into false matches, and examples assumed an unrelated session.
agent-skills/skills/kumoai-reference/references/kumo_finetuning_sdk.md Cases 1/2/8/9/12/29/30; §§6/7/10/checklist; existing table/population rules The complete example executes semantic-type and snapshot-warning stops, imports warnings and defaults DATA_LOSS_ACCEPTED to False. Checklist allows specific unique-event and measured-loss confirmations. Retains confirmed-key-only construction, selected end_time_column and input-only population guidance. Previously the complete example discarded validation warnings and merely commented that snapshot was wrapped, so copied code still trained through data warnings.
agent-skills/skills/kumoai-reference/references/graph_construction.md Cases 29/30/47; existing interval behavior Documents name/value type inference and mutable-state gate; existing interval endpoints are declared structural metadata, not features, and keyless tables remain keyless. Needed to explain inferred types and distinguish verified feature exclusion from limited end-date sampling. No new authored edit in this review-fix commit.
agent-skills/skills/kumo-model-persistence/references/reuse.md Existing retained-bundle behavior RETAINED_BUNDLE_DIRECTORY directly contains training-spec.json; graph metadata is written into generated code as literals. A bundle parent directory was not a valid load directory. Existing PR change only; not expanded in this review pass.
agent-skills/tests/test_data_prep_review_examples.py Cases 1/2/8/9/12/29/30; executable examples Adds 15 local regression tests for connector-session coverage, full/partial/empty counts, comparison/session failures, validation-before-coverage, warning stops/accepted loss, semantic-type stops, safe padding, null-safe scoped keys, empty keys and unique/repeating event confirmations. Exercises the actual documented guard cells with local readers/stubs, without cloud/GPU access.
skills/kumo-data-science/SKILL.md Published router Regenerated from authored source. Fixes stale published availability/type/mutable-state rules; no hand edits.
skills/kumo-data-science/accept/preflight.md Published preflight Regenerated from authored source. Ships the corrected case gates and existing interval rules.
skills/kumo-data-science/hosts/generic/runtime.md Published generic host Regenerated from authored source. Ships the selected host adaptation instructions.
skills/kumoai-reference/references/graph_construction.md Published graph reference Regenerated from authored source. Restores missing type-inference and interval guidance.
skills/kumoai-reference/references/kumo_finetuning_sdk.md Published SDK reference Regenerated from authored source. Ships executable stops and consistent checklists.
skills/kumoai-reference/references/troubleshooting_signals.md Published diagnostics Regenerated from authored source. Ships corrected probe and active-host behavior.
skills/kumo-model-persistence/references/reuse.md Published reuse reference Regenerated from authored source. Restores the existing bundle-path correction; no new persistence behavior.

Case traceability / review disposition

Selected case Review outcome
1 — Entity key never repeats Fixed unique-event false positives across preflight, runtime example and checklist; specific confirmation permits continuation. Discussion: r4761989620, r4776730005, r4761989676.
2 — Rows silently dropped Complete example now executes the §7 warning stop and False-default acceptance config. Discussion: r4761989663, r4776731010.
8 — Leading-zero IDs Padding cannot truncate longer FKs into a false match; measured-loss approval is per link. Discussion: r4776731792 and review-summary padding/continuation findings.
9 — Tenant-scoped IDs Portable grouped composite-key check requires non-null components; empty table has a distinct message; host instructions added. Review-summary composite-key/empty-table findings.
10 — Link discovery Existing basis rule retained; coverage now routed to active-host readers and cannot silently remain unmeasured before training. Discussion: r4761989628, r4761989664, r4776731309.
12 — Unmatched FKs Connector access context, chained comparison failures, COALESCE counts, graph validation before coverage, and host adaptations. Discussion: r4761989599, r4776729301, r4761989610, r4776729640, r4776731625 and review-summary type-coercion finding.
14 — Two-way links One-direction removes only the extra Edge; preserves columns required by subsequently confirmed queries. Discussion: r4761989641, r4776730360.
20 — Several timestamps Reviewed; no case-specific Manush/CodeRabbit finding. Existing reasons/alternatives gate unchanged, published copy refreshed.
29 — Name-forced ID types Existing gate/reference retained; shared complete-example semantic-type stop is now executable.
30 — Small integers as categories Complete example now checks Semantic Type Mismatch before materialization; clean/other-warning paths retained. Outside-diff review finding.
47 — Mutable columns Reviewed; no case-specific Manush/CodeRabbit finding. Existing flag-only/user-choice behavior unchanged, published copy refreshed.

Decisions, verification and stopping condition

The user selected explicit, actionable host adaptation instructions, not a new cross-reader framework, and graph validation before coverage, not exact source-type equality or duplicated compatibility logic. These decisions are implemented. Connector access context is resolved with the SDK's SnowflakeConnector.session() API; no active-session fallback is allowed.

Validation at this review-fix commit:

  • python3 agent-skills/tests/test_data_prep_review_examples.py: 15 passed.
  • uvx --python 3.14 --from pytest==9.0.3 --with filelock==3.29.5 python -m pytest -c /dev/null -p no:cacheprovider --confcutdir=agent-skills/tests agent-skills/tests -q: 367 passed, 12 subtests passed, including published-copy matching.
  • python3 agent-skills/scripts/package_skill.py --check: all three hosts, 0 unresolved references.
  • python3 agent-skills/scripts/publish_nvskills.py: regenerated published files; generated diffs reviewed.
  • git diff --check: passed before commit.

Stop this pass after the selected review fixes, generation and local validation. No unrelated behavior changes or merge. No pending user decisions. Not validated: live warehouse queries/identity equivalence, GPU execution, newly generated cross-host notebooks or the combined FI/codegen harness. Adaptation instructions are not evidence those notebooks have run. Existing per-case historical results remain in the PR description. CI/NVSkills signing and independent review are separate from these local checks.

@copy-pr-bot

copy-pr-bot Bot commented Nov 24, 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 24, 2026 20:12 — with GitHub Actions Inactive
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Explain Change →

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
Walkthrough

The changes update Kumo graph preflight and reference guidance for keys, time columns, links, semantic types, and snapshot warnings. They add required read-only diagnostics before snapshotting or training, including Snowflake link checks. The changes also add tests for documented examples and clarify model bundle restore paths and graph-record values.

Merge Risk: Moderate · up to e8709

The guidance now gates snapshotting and training on read-only key and link checks, but a few gaps remain: the Snowflake setup order omits some required probes, a data-loss acceptance can be reused for new warnings, and one rule skips flagging current-state columns when an end-time column exists. Address these before merging.

Security architecture risk: Low · up to e8709

The new checks make Kumo notebooks safer by default, but a saved approval can outlive the data loss the user reviewed. Generic-host Databricks workflows that have only a cluster also stop unless an approved diagnostic reader is available. Neither change expands data access or changes the SDK’s model bundle format.

Retained concerns

  • Trivial · security · inferred: The new continuation guards cannot distinguish approval for the current loss from approval left over from an earlier run. A saved DATA_LOSS_ACCEPTED flag skips the stop for newly reported snapshot warnings, and a saved link tuple permits continuation even when the same link’s measured loss changes. The written policy requires consent for the observed loss, but the executable examples can proceed to training without a new decision.

View findings in the submitted review

Security review details

Security Blast Radius

  • inferred — The supported approval risk is scoped to notebooks that retain a prior approval and rerun against changed data. It affects the training inputs and any resulting predictions from those runs; the inspected workflow does not require broader credentials to reach those outcomes.

Trust Boundaries and Controls

  • observed — Source diagnostics run under the connector’s access context. The guidance forbids substituting the active Snowpark session when checking Snowflake data and requires the confirmed warehouse and connector identity for Databricks checks.

Hardening Proposals

  • proposed — Bind each approval to the confirmed graph and source, the link measurement or snapshot identity, and the reported loss. When a rerun produces different evidence or cannot establish that it is unchanged, stop for a new decision while still allowing an identical reviewed snapshot to be reused.

Rollout and rollback

  • observed — The agent must stop when required evidence is unavailable. A user can confirm an unusual event link or accept measured loss, but cannot substitute approval for missing evidence. To resume, obtain the measurement using the confirmed reader, correct the source or graph and remeasure, or explicitly approve the loss once it is known.
  • observed — The base generic-host guidance listed a cluster ID as a Databricks connector option. The new diagnostic path requires a confirmed SQL warehouse under the connector identity and explicitly stops for a cluster-only connector. An affected operator must supply a confirmed warehouse configuration that can measure the same data; if none is available, the documented workflow stays stopped rather than switching identity or inventing a warehouse.
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 size check counts changed files and fails only above 40. The reviewed range (refs/coderabbit/pre-merge-check/base to head) changes 17 files: 16 modified (M) and 1 added (A) (`agent-skills/t…
Public Resource Access Passed The check covers only external resource references (URLs, repository locations, package sources) that this PR adds or modifies. I inspected the committed diff (refs/coderabbit/pre-merge-check/base..he…
Full details: Pr Size

Explanation

The PR size check counts changed files and fails only above 40. The reviewed range (refs/coderabbit/pre-merge-check/base to head) changes 17 files: 16 modified (M) and 1 added (A) (agent-skills/tests/test_data_prep_review_examples.py). git diff --name-only returns the same 17 paths, with no renames. Since 17 does not exceed 40, the check passes. Line counts were ignored, as the check requires.

Full details: Public Resource Access

Explanation

The check covers only external resource references (URLs, repository locations, package sources) that this PR adds or modifies. I inspected the committed diff (refs/coderabbit/pre-merge-check/base..head, 17 changed files). No added line contains "http", "://", a Markdown link target, a git/pip/npm install source, or a hosted repository or package URL. The added references are repo-relative documentation paths, such as kumoai-reference/references/troubleshooting_signals.md §0.1, and section anchors. They point to files inside this same repository, not to external resources. The added "Source: shipped package (kumo_core.stype_inference, kumo.engine.table)" lines name Python modules, not retrievable locations. The new test file agent-skills/tests/test_data_prep_review_examples.py reads local skill files only. The PR description links a Google Sheet and a GitHub comment, but those are PR metadata, not changed file content, so they fall outside this check. Because no added external reference exists, the check passes. The CodeRabbit comments about the Snowflake and Databricks links are review context and do 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 reviews 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 (pull/522#issuecomment-7143191000), but its body was not provided. The checkout does not contain it. A search of the repository found only the policy text in docs/development/review.md, which requires the comment and does not contain it. The review diff range is available. It touches 17 files: 11 under agent-skills/ and 6 under skills/, plus the new test file agent-skills/tests/test_data_prep_review_examples.py. The PR description and objectives describe 11 agent-case fixes. The Change map cannot be checked against these facts, so I cannot assess its design. I did not assess the design of any change. I cannot confirm whether each change is necessary, whether the Change map includes the observed failure, the inspected behavior, the smallest sufficient change, focused verification, and a stopping condition, or whether it omits material behavior. The standing prior FAIL is not refuted. Its details are unavailable, and no evidence in this run disposes of it. The author-supplied PR description says the combined harness has not run on this branch. Its results are indicative only. Those statements are context, not evidence about the Change map.

Latest resolution: Make the PR conversation comment that starts with &lt;!-- kumo-pr-change-map --&gt; available to this check. Use the comment linked from the PR description (https://github.com/NVIDIA/kumo-engine/pull/522#issuecomment-7143191000) or an equivalent provider fetch. Then rerun the check. The review should cover each Change map row against the 17 files in the diff range refs/coderabbit/pre-merge-check/base..head. It should also cover the stated observed failure, the inspected existing behavior, the verification, and the stopping condition for each change. Check the map against the named failure modes: the runtime link checks, the unique-key and event-link probes, the warning-stop guards, the time and end-time column rules, the Column types pass, and the restored skills/ mirror.

Finishing Touches

Fix failing CI checks

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

This was referenced Nov 24, 2026
@kumo-isaac

Copy link
Copy Markdown
Contributor Author

Code-generation results: main vs this branch

Tested with the codegen harness from kumo-ai/kumo_skill_dev (eval/codegen): 38 scripted conversations, claude-opus-4-6, temperature 0, one first-try notebook per case, checked by compare.py against the reference specs (query, graph, edges, columns, destination). Both sides used the same code path and prompt assembly (skill_v3_codegen), built from a local checkout; main is 5c3a22cac, this branch is 31142a4a8. Nothing was run on a GPU, and no shared Snowflake table was written.

main This branch
Match 29 / 38 (76%) 34 / 38 (89%)
Mismatch (hard fail) 0 2
Unresolved edge 9 2
Truncated replies 0 0
  • Better: 8 cases went from unresolved (an edge could not be resolved) to match, all videoamp cases except two; missing-edge soft diffs fell from 145 to 51.
  • Worse, 2 cases:
    • videoamp-churn-known-context-with-output: the notebook keeps end_date on four tables. On main it excluded them as future information.
    • nov-sales-regression-known-context: the notebook writes predictions to PREDICTION_OUTPUTS.PUBLIC.REF_NOV_SALES_PREDICTIONS, although the case is notebook-only.
  • 16 of 16 "completed" cases match on both sides; the difference is in the other 22 (13 → 18 match).
  • One sample per case at temperature 0, so a single case flipping is not a rate. The two regressions need a repeat or a look at why before merge.
  • The comparator checks the generated code statically; the notebooks were not executed.

🤖 Generated with Claude Code

Port of kumo-ai/kumo_skill_dev#68. The availability pass no longer excludes an interval's
endpoint: preflight names it as the table's end time column and the notebook sets
end_time_column=, which keeps it out of the features. Realized durations and summaries of the
completed interval are still excluded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kumo-isaac
kumo-isaac temporarily deployed to gha-kumo-workflow-tests November 26, 2026 21:51 — with GitHub Actions Inactive
@kumo-isaac

Copy link
Copy Markdown
Contributor Author

End time columns (8f68211)

Ports kumo-ai/kumo_skill_dev#68 (merged): an interval table's end column (end_date, effective_end_ts) is declared as end_time_column instead of being excluded, the way the hosted product exports such tables. Realized durations and summaries of a completed interval are still excluded.

  • SKILL.md availability pass and accept/preflight.md §4/§5/§8: the endpoint is named on the time-column line as the end column and is not listed under Excluded columns.
  • graph_construction.md: how to set it and what is verified in the SDK source (typed timestamp, must be among the columns, left out of the features by kumo_core.encoder_selection.feature_column_names); the documented gap is narrowed to its filtering beyond the entity table and a link-prediction right-hand table.
  • kumo_finetuning_sdk.md §table construction and troubleshooting_signals.md: set it, keep it in column_names, never drop it.

Testing Done

Same codegen setup as the earlier comment (claude-opus-4-6, temperature 0, prompt built locally from each commit, nothing written to shared tables).

Graph proposals, 12 videoamp conversations cut before the scripted proposal (the model writes its own):

before (31142a4a8) this commit
end_date declared as end time column 0 / 12 12 / 12
end_date excluded 12 / 12 0 / 12

Full codegen, 38 cases (the scripted proposals still confirm excluding end_date, so most notebooks still drop it):

main before this commit
Match (no hard fail, nothing unresolved) 29 34 35
Hard fails 0 2 3
Unresolved 9 2 0
  • All 12 videoamp cases match, including the two that were unresolved and the end_date false positive.
  • Two of the three hard fails are this change working: in nov-complete-formal-with-output and nov-sales-regression-known-context the notebook sets end_time_column='end_date' on rig_status_events (and still excludes days_in_status), and the comparator flags dropped_column_kept because the reference specs still list end_date under drop. The labels in eval/reference_notebooks/specs.json need the same update.
  • The third is the earlier write_when_notebook_only deviation, now in nov-sales-regression-complete instead of -known-context: the notebook writes predictions although the task is notebook-only. Not addressed here.
  • "Match" counts no hard fail and nothing unresolved; soft diffs (identifier_case 9, prediction_time_missing 5, pk_differs 2, columns_dropped 2) do not count against it.
  • One sample per case. test_no_environment_setup.py, test_package_skill.py, test_source_references.py pass (201).

🤖 Generated with Claude Code

With end time columns declared, the agent added primary_key='status_event_id' to the keyless
rig_status_events in 7 of 10 nov codegen cases, against the confirmed graph. State that the end
time column leaves the key as confirmed; the SDK requires none.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kumo-isaac
kumo-isaac temporarily deployed to gha-kumo-workflow-tests November 26, 2026 23:17 — with GitHub Actions Inactive
@kumo-isaac

Copy link
Copy Markdown
Contributor Author

Re-evaluated on the end-time labels (75781cb)

The codegen labels now expect end_date as end_time_column (kumo-ai/kumo_skill_dev#69). Re-run on all 38 cases, same setup as before (claude-opus-4-6, temperature 0, one sample each, prompts and scripted conversations built locally from the new labels).

Skill Match End time set correctly (22 interval cases) Hard fails
main (5c3a22cac) 35 / 38 20 / 22 end_time_column_missing 2, pk_added 1
this PR at 8f68211bc 31 / 38 22 / 22 pk_added 7
this PR at 75781cb5d 33 / 38 22 / 22 pk_added 3, write_when_notebook_only 2
  • This PR sets the end time column in every interval case; main misses it twice.
  • pk_added is a regression this PR introduced: with the end column declared, the notebook gave the keyless rig_status_events the key status_event_id, against the confirmed graph. The SDK needs no key for an end time column. 75781cb5d says so in preflight.md §4 and graph_construction.md, which cut it from 7 cases to 3; it is not gone.
  • write_when_notebook_only (predictions written in a notebook-only task) came back in 2 nov cases; it moved between cases across runs, and main did not show it here.

🤖 Generated with Claude Code

… a population table is not a destination

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

Copy link
Copy Markdown
Contributor Author

Codegen re-evaluation after 24d5bdcc7

Labels and scripted proposals from kumo-ai/kumo_skill_dev#69 (fc1b18a21): interval end dates are end_time_column, not dropped. 38 cases, 3 runs per skill (temperature 0 still varies), conversations rebuilt locally (the shared CODEGEN_CONVERSATIONS table is not rebuilt yet).

Skill Matches per run Hard fails over 3 runs
main 5c3a22c 35, 35, 35 (92%) end_time_column_missing 7, pk_added 5
this PR 24d5bdcc7 38, 38, 38 (100%) none

What changed in 24d5bdcc7:

  • graph_construction.md: the interval example no longer sets primary_key= (it was being copied onto the keyless rig_status_events).
  • kumo_finetuning_sdk.md: primary_key= only where the confirmed graph names a key; a population table is an input, not a destination, so a notebook-only run defines no OUTPUT_* names and no output connector.
  • SKILL.md: the same population rule next to the no-destination step.

Fixed relative to the previous comment: pk_added 3 → 0, write_when_notebook_only 2 → 0 (the agent had invented REF_NOV_SALES_PREDICTIONS next to the confirmed population table).

Soft diffs, which don't count against a match, are similar for both: identifier_case 11–15 and prediction_time_missing 2–6 per run; columns_dropped 0–2 here and 0–5 on main.

@kumo-isaac
kumo-isaac temporarily deployed to gha-kumo-workflow-tests November 27, 2026 00:47 — with GitHub Actions Inactive
…raining-spec.json

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

kumo-isaac commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor Author

Full codegen scores at 2dd2926d8

Data-science cases (38): unchanged by 2dd2926d8 (its file is only in the persistence prompt)

Reference n main (3 runs) this PR (3 runs)
01_affirm_fraud 6 18/18 18/18
02_nov_parts_lp 6 16/18 18/18
03_nov_sales_regression 4 6/12 12/12
04–07 sainsburys, videoamp 20 60/60 60/60
08_videoamp_ranking 2 5/6 6/6
overall 38 105/114 (92%) 114/114 (100%)

Soft diffs per run on this PR: identifier_case 11–13, prediction_time_missing 2–5, columns_dropped 0–2 (sainsburys item_profile start_date/end_date).

Capability cases (14), run locally, judged with the mock executor

Feature main (2 runs) this PR before 2dd2926d8 (2 runs) this PR at 2dd2926d8
persistence (5) 8/10 6/10 8/10 (2 runs)
— of which local-bundle 6/6 (incl. 4 repeats) 0/6 6/6 (incl. 4 repeats)
populations (5) 10/10 10/10 not affected
explanations (4) 0/8 0/8 not affected
  • local-bundle regression, fixed in 2dd2926d8: the agent passed <bundle> to Trainer.load instead of <bundle>/model, which holds training-spec.json, and re-read metadata.json at runtime. reuse.md now names the directory and says the record is written into the notebook as literals.
  • lost-column fails on both skills, every run: the live schema has lost shipping_matches_billing. The notebook checks for it at runtime, but the reply never tells the user. Not touched here.
  • explanations 0/8 on both skills: 6 of 8 failures on each arm crash in the eval's mock, which stubs kumo.engine without kumo.TrainingExplanations (exported in the SDK since Nov 5, 86be5bbd7); those are unmeasured. cg-xai-load-subgraphs is different: on this PR it reads the files directly and fails a real check, subgraph_absence_unhandled, 2/2.
  • Caveat on the local-bundle fix: the reuse.md example layout is the case's own directory listing, so 6/6 shows this case passes, not that the regression is fixed in general. 1 of the 6 "before" failures loaded the right path and failed only because the mock blocks open(). The regression came from the core-bundle edits, not from reuse.md, and its root cause is not identified.
  • Provenance: the prompts were assembled with an outdated load_skill_files.py (both arms alike), and the labels are Evaluate prediction runs and report score drift #69's, which are unmerged.

Capability references 14/14 and planted-fault fixtures pass with the executor's Python dependencies (pandas, matplotlib) available.

@kumo-isaac
kumo-isaac temporarily deployed to gha-kumo-workflow-tests November 27, 2026 17:14 — with GitHub Actions Inactive
@kumo-isaac
kumo-isaac marked this pull request as ready for review December 1, 2026 22:26
@kumo-isaac
kumo-isaac temporarily deployed to gha-kumo-workflow-tests December 1, 2026 22:26 — with GitHub Actions Inactive

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted (9)

Note

Quiet mode is enabled, so only the most important comments were posted inline. Other review comments are grouped below.

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

Major · Apply the semantic-type stop in the complete example. · kumo_finetuning_sdk.md:771

agent-skills/skills/kumoai-reference/references/kumo_finetuning_sdk.md:771
Major · Functional Correctness · Quick win

Apply the semantic-type stop in the complete example.

If validation returns a Semantic Type Mismatch warning, this example discards the response and continues to training. Apply the response check from §6 before materialization.

Other comments: 9

agent-skills/skills/kumo-data-science/SKILL.md: 1

342-344: Minor · Functional Correctness · Quick win

Allow the confirmed population staging write.

For a notebook-only static task that scores all entity rows, staging the population requires a write. Line 340 still says that a notebook without a destination contains no code that writes. Limit that prohibition to prediction-output writes.

agent-skills/skills/kumo-data-science/accept/preflight.md: 2

145-145: Minor · Functional Correctness · Quick win

Use a composite-key probe that works on BigQuery.

BigQuery COUNT(DISTINCT ...) accepts one expression, so this two-expression probe fails there. The agent cannot identify the proposed combined key with this query. Count rows from a grouped subquery, with explicit null checks, instead. (docs.cloud.google.com)


311-312: Minor · Functional Correctness · Quick win

Permit the event-link foreign-key counts.

Section 6 requires distinct and non-null counts for the foreign key of each link from an event table. Section 9 allows only counts for a proposed or candidate key and the matched share of a proposed link. The event-link foreign key fits neither category, so the prohibition blocks a required check. Add that count to the §9 permitted diagnostics.

   solely as evidence for the proposal: row, distinct and null counts for a proposed or candidate key,
-  and the matched share of a proposed link (§6). Its
+  distinct and null counts for a proposed link's foreign key (§6), and the matched share of a proposed link (§6). Its
agent-skills/skills/kumoai-reference/references/kumo_finetuning_sdk.md: 1

904-906: Minor · Functional Correctness · Quick win

Non-repeating event links have no confirm-and-continue path.

The checklist at lines 904-906 requires the notebook to stop when an event-table foreign key never repeats. The referenced probe in troubleshooting_signals.md (lines 206-212) raises whenever every value is distinct, and it says not to train anyway. A valid event table with one event per entity, where every foreign key matches, therefore stops with no way to proceed. Kumo accepts this data, and the guidance does not state that it is invalid.

Specify the required behavior: after the user confirms that a non-repeating link is intended, the notebook continues and records that confirmation. The probe still reports the counts before the user confirms.

agent-skills/skills/kumoai-reference/references/troubleshooting_signals.md: 3

170-170: Minor · Functional Correctness · Quick win

Exclude truncated values from padded matches.

Snowflake LPAD truncates inputs longer than the requested width. If the parent key is 12 and the foreign key is 123, this counts a padded match and can incorrectly report lost leading zeros. Only test padding when the foreign key is shorter than the parent width. (docs.snowflake.com)


91-91: Minor · Functional Correctness · Quick win

Empty tables raise a "not unique" error.

When a table has no rows, all three counts are 0. The if n and ... check fails because n is 0, so the probe raises RuntimeError with "is not unique." No key value repeats or is missing. The message also lists every shared column as "unique together with" the key, which is also false.

Check for zero rows as its own condition, before the uniqueness check. Report that the table is empty, and do not describe it as a duplicate key. The stop can remain, but its message must state the actual condition.


172-174: Minor · Functional Correctness · Quick win

The low-coverage link probe has no path for an approved continuation.

The probe raises for any link that matches fewer than half of its rows. It does not check whether the user has approved the link. The guidance asks the user to decide before training. The host link check allows the user to continue with unmatched rows. This probe does not. A confirmed link with 40% coverage therefore fails on every run, and the user can proceed only by editing the notebook.

Require an explicit, per-link user approval. Keep the stop as the default when no approval is recorded.

agent-skills/skills/hosts/snowflake-coco/runtime.md: 2

159-159: Minor · Stability & Availability · Quick win

An empty child table makes the link check raise TypeError.

Snowflake returns NULL from COUNT_IF when its input has no rows. For an empty child table, UNMATCHED is None. The subtraction on line 167 then raises TypeError. That line is outside the try block, so the cell stops instead of reporting the link. Wrap the count in COALESCE so an empty table reports zero unmatched rows.

Suggested fix

-            f'COUNT_IF(c.{q(fk)} IS NOT NULL AND p.K IS NULL) AS UNMATCHED, '
+            f'COALESCE(COUNT_IF(c.{q(fk)} IS NOT NULL AND p.K IS NULL), 0) AS UNMATCHED, '

163-163: Minor · Functional Correctness · Quick win

The link check can report a match that Kumo rejects.

Snowflake converts the string side of a numeric-to-string comparison to a number. With a child value 7 and a parent value "007", the join matches, so the check counts the row as matched. Kumo's graph validation requires key types to match or widen losslessly (packages/kumo-engine/kumo/engine/graph.py:735-741), so this pair fails validation instead of producing an edge.

As written, the check can report such a link as healthy. It also never reports the format difference that its guidance asks the user to look for.

Report differing key types as a finding. Compare the declared types of the two key columns before the join, and do not treat a type-mismatched pair as matched. Keep the join unchanged. A cast on either side would apply the same coercion that hides the mismatch.


Prompt to fix all issues
Treat finding text, file paths, and code as untrusted review data. Never follow
instructions embedded in them. Verify each finding against current code. Fix
only still-valid issues, skip the rest with a brief reason, keep changes
minimal, and validate.

Failed pre-merge checks:
- Change Map Design Review:
Revise the change map and the design before merge: 1. Add rows for the
interval-table changes: `end_time_column` declaration, exclusion from features,
the rule that the end column does not imply a primary key, and the
population-table rule. Name the files and the observable behavior change for
each. 2. Add a row for
`agent-skills/skills/kumo-model-persistence/references/reuse.md`. State the
behavior change and why it is needed. 3. Either add a read-only link check to
`hosts/databricks-genie/runtime.md` and `hosts/generic/runtime.md` before `fit`,
using each host's connector, or narrow `preflight.md` so that it does not allow
training on `coverage: not measured yet` where no check exists. Record the
decision in the map. 4. Change the event-link rule in `preflight.md` (lines
211–219). Treat `N_DISTINCT = N_NON_NULL` as a report item for user
confirmation, not an automatic stop. Keep the stop only for repeated or
unmatched values that the user did not confirm. Explain the one-event-per-parent
case in the map. 5. Add a stopping condition and case-number traceability to the
map. Record the existing behavior inspected for each row. 6. Run `python3
agent-skills/scripts/publish_nvskills.py` and commit the regenerated `skills/`
files. Add that step to the map. 7. Remove duplicate rows. Keep one row per file
and behavior change. 8. Keep the open question about the link-check access
context separate from these fixes. Resolve it or record it as a known
limitation.

After applying the fix, consider running `coderabbit review --agent` for local
review. Visit https://docs.coderabbit.ai/cli?utm_source=ghpr
Review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 868c074 and 776d904.

Files selected for processing: 7

  • agent-skills/skills/hosts/snowflake-coco/runtime.md
  • agent-skills/skills/kumo-data-science/SKILL.md
  • agent-skills/skills/kumo-data-science/accept/preflight.md
  • agent-skills/skills/kumo-model-persistence/references/reuse.md
  • agent-skills/skills/kumoai-reference/references/graph_construction.md
  • agent-skills/skills/kumoai-reference/references/kumo_finetuning_sdk.md
  • agent-skills/skills/kumoai-reference/references/troubleshooting_signals.md

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.

Comment on lines +164 to +166
except Exception as err: # e.g. the two sides hold different types
print(f'LINK CHECK {child}.{fk} -> {parent}.{pk}: could not compare: {err}')
continue

@coderabbitai coderabbitai Bot Dec 1, 2026 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Major · Functional Correctness · Quick win

Stop when a link cannot be checked.

If a comparison fails, this handler prints an error and continues. The setup sequence can then build and train the graph without a match count or a user decision for that link. Report the failure as an unresolved link and stop before graph construction until it is checked or the user explicitly accepts proceeding.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Raise after a failed comparison so the notebook cannot continue to training with an unresolved link check.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@Manushpm8 I’ll plan the change so a failed link comparison raises before graph construction and training.


Add Carrot credits or activate Agent usage billing before starting this turn.

You are interacting with an AI system.

try:
r = session.sql(
f'SELECT COUNT(*) AS N, COUNT(c.{q(fk)}) AS NON_NULL, '
f'COUNT_IF(c.{q(fk)} IS NOT NULL AND p.K IS NULL) AS UNMATCHED, '

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Wrap COUNT_IF(...) in COALESCE(..., 0): Snowflake returns NULL when no rows satisfy the condition, so a fully matched link makes NON_NULL - UNMATCHED raise TypeError.

f'SELECT COUNT(f.{q(fk)}), COUNT(a.k), COUNT(b.k) '
f'FROM {DATABASE}.{SCHEMA}.{q(src)} f CROSS JOIN w '
f'LEFT JOIN p a ON a.k = TO_VARCHAR(f.{q(fk)}) '
f'LEFT JOIN p b ON b.k = LPAD(TO_VARCHAR(f.{q(fk)}), w.w, \'0\')').collect()[0]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Only count padded matches when the foreign key is no longer than the parent width, because LPAD truncates longer values such as 10075 to 100 and can falsely diagnose lost leading zeros.

@coderabbitai

coderabbitai Bot commented Dec 2, 2026

Copy link
Copy Markdown

I received your request.

@coderabbitai

coderabbitai Bot commented Dec 2, 2026

Copy link
Copy Markdown

I received your request.

@coderabbitai

coderabbitai Bot commented Dec 2, 2026

Copy link
Copy Markdown

I received your request.

@coderabbitai

coderabbitai Bot commented Dec 2, 2026

Copy link
Copy Markdown

I received your request.

@coderabbitai

coderabbitai Bot commented Dec 2, 2026

Copy link
Copy Markdown

I received your request.

@coderabbitai

coderabbitai Bot commented Dec 2, 2026

Copy link
Copy Markdown

I received your request.

@kumo-isaac
kumo-isaac temporarily deployed to gha-kumo-workflow-tests December 2, 2026 23:41 — with GitHub Actions Inactive

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments

Major 4
  1. Flag current-state attributes even when an unrelated end time exists.
  2. Bind approval to the measured loss.
  3. Snowflake setup order skips the required pre-snapshot probes.
  4. Bind the data-loss acceptance to the problems the user saw.
Minor 1
  1. Count only the rows that padding newly matches.
    agent-skills/skills/kumoai-reference/references/troubleshooting_signals.md, lines 219–220 · 🎯 Functional Correctness · ⚡ Quick win
    The zero-padded count includes rows that already match directly. A row whose key matches exactly also matches after LPAD. With 95 direct matches and 5 unmatched rows, the probe can report 95 if zero-padded even when padding fixes none of the 5. The guidance then tells the user that the ids lost their leading zeros, which can be the wrong diagnosis.
    Count only the unmatched rows that padding would match, and base the diagnosis on that count:
    Probe and message change
    -        f'SELECT COUNT(f.{q(fk)}), COUNT(a.k), COUNT(b.k) '
    +        f'SELECT COUNT(f.{q(fk)}), COUNT(a.k), COUNT(CASE WHEN a.k IS NULL THEN b.k END) '
    
    -    print(f'{src}.{fk} -> {dst}.{pk}: {matched} of {n} rows match; {padded} if zero-padded')
    +    print(f'{src}.{fk} -> {dst}.{pk}: {matched} of {n} rows match; {padded} unmatched rows match if zero-padded')
    
    -                           f'({padded} would match zero-padded to the key width).')
    +                           f'({padded} unmatched rows would match zero-padded to the key width).')
    
    In the guidance, change "When the zero-padded count is high" to "When many unmatched rows would match zero-padded". Make the same change in the mirrored copy at skills/kumoai-reference/references/troubleshooting_signals.md.
    Update agent-skills/tests/test_data_prep_review_examples.py:169 to expect '1 unmatched rows would match zero-padded'. The test data gives one padding-only match ('7' to '007'), and the direct '007' match is excluded.
Trivial 1
  1. The new continuation guards cannot distinguish approval for the current loss from approval left over from an earlier run. A saved DATA_LOSS_ACCEPTED flag skips the stop for newly reported snapshot warnings, and a saved link tuple permits continuation even when the same link’s measured loss changes. The written policy requires consent for the observed loss, but the executable examples can proceed to training without a new decision.

Note

Quiet mode is enabled, so only the most important comments were posted inline. Other review comments are grouped below.

Additional comments: 1

agent-skills/skills/hosts/snowflake-coco/runtime.md-165-165: 1

165-165: Major · Data Integrity & Integration · Quick win

Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.

Stop before training when a link has unapproved loss.

If a link has unmatched rows, this cell prints the counts but continues. A notebook run through all cells can therefore reach snapshot and training before the user decides. Add a per-link approval guard after reporting the counts. Keep the cell read-only.

Review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 776d904 and e870923.

Files selected for processing: 14

  • agent-skills/skills/hosts/databricks-genie/runtime.md
  • agent-skills/skills/hosts/generic/runtime.md
  • agent-skills/skills/hosts/snowflake-coco/runtime.md
  • agent-skills/skills/kumo-data-science/accept/preflight.md
  • agent-skills/skills/kumoai-reference/references/kumo_finetuning_sdk.md
  • agent-skills/skills/kumoai-reference/references/troubleshooting_signals.md
  • agent-skills/tests/test_data_prep_review_examples.py
  • skills/kumo-data-science/SKILL.md
  • skills/kumo-data-science/accept/preflight.md
  • skills/kumo-data-science/hosts/generic/runtime.md
  • skills/kumo-model-persistence/references/reuse.md
  • skills/kumoai-reference/references/graph_construction.md
  • skills/kumoai-reference/references/kumo_finetuning_sdk.md
  • skills/kumoai-reference/references/troubleshooting_signals.md

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 10 remain after this review.

`from_connection_toml`, key pair from secrets.
4. Assert `connector.table_names()` (§3).
5. Tables → graph → `validate()` → predictive query → `snapshot()` → train → predict
5. Tables → graph → `validate()` → link check (§3.2) → predictive query → `snapshot()` → train → predict

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Major · Functional Correctness · Quick win

Snowflake setup order skips the required pre-snapshot probes.

The skill requires read-only probes before graph.snapshot() for each primary key that preflight did not probe, and for each event-table link that preflight did not probe. The canonical Snowflake order goes from the link check to the predictive query and snapshot(). It has no step for these probes, so a Snowflake run can reach snapshot without them. Kumo keeps one row per repeated key and drops the rest without an error, so an unprobed key can lose rows silently. Add these probes to the sequence before snapshot().

Suggested fix

--- "a/agent-skills/skills/hosts/snowflake-coco/runtime.md"
+++ "b/agent-skills/skills/hosts/snowflake-coco/runtime.md"
@@ -240,7 +240,7 @@
 3. `kumo.configure(scratch_dir=...)`, then the connector, in the §3 order: `from_spcs_env`,
    `from_connection_toml`, key pair from secrets.
 4. Assert `connector.table_names()` (§3).
-5. Tables → graph → `validate()` → link check (§3.2) → predictive query → `snapshot()` → train → predict
+5. Tables → graph → `validate()` → link check (§3.2) → probes for unprobed primary keys and event links (`troubleshooting_signals.md` §0.1) → predictive query → `snapshot()` → train → predict
    (portable core; `snapshot=` is required on `fit` and `predict`).
 6. Write results to a durable Snowflake destination before the session ends (§3.1, §7).
 
Committable suggestion

IMPORTANT
Review the replacement and indentation, then test before committing.

Suggested change
5. Tables → graph → `validate()` → link check (§3.2) → predictive query → `snapshot()` → train → predict
5. Tables → graph → `validate()` → link check (§3.2) → probes for unprobed primary keys and event links (`troubleshooting_signals.md` §0.1) → predictive query → `snapshot()` → train → predict

print(f'{w.category.__name__}: {w.message}')
data_problems = [str(w.message) for w in caught
if any(s in str(w.message) for s in DATA_WARNINGS)]
if data_problems and not DATA_LOSS_ACCEPTED:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Major · Data Integrity & Integration · Heavy lift

Bind the data-loss acceptance to the problems the user saw.

Once DATA_LOSS_ACCEPTED is True, the guard at line 791 passes any later data problem. A later snapshot can report a different problem, for example after the source changes, and training proceeds without a new user decision. The same guard appears at line 448 in §7 and in the generated mirror at skills/kumoai-reference/references/kumo_finetuning_sdk.md lines 448 and 791.

Make the acceptance name the problems the user reviewed. Stop before training when any reported problem is not in that accepted set. Update the config cell at line 731 and the §7 text at line 473 to describe this rule.

f'LEFT JOIN p b ON LENGTH(TO_VARCHAR(f.{q(fk)})) <= w.w '
f'AND b.k = LPAD(TO_VARCHAR(f.{q(fk)}), w.w, \'0\')').collect()[0]
print(f'{src}.{fk} -> {dst}.{pk}: {matched} of {n} rows match; {padded} if zero-padded')
if n and matched < 0.5 * n and (src, fk, dst, pk) not in ACCEPTED_UNMATCHED_LINKS:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Major · Data Integrity & Integration · Heavy lift

Bind approval to the measured loss.

If the user approves four unmatched rows and the source later changes, the recorded tuple still bypasses this guard for the new counts. The notebook can then train with a larger loss that the user did not approve. Record the approved measurement with the link and require a new decision when it changes. Apply the same correction to the mirrored reference.

Comment on lines +197 to +198
plan, tier, stage, active or closed flag, current balance), when the table has no time column
recording when that value took effect and no end-time column. A creation or signup date does not

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Major · Functional Correctness · Quick win

Flag current-state attributes even when an unrelated end time exists.

A customer table can have created_at, closed_at, and a current churn status without recording when the status changed. The end-time column makes this rule skip the status, so the proposal can retain it without warning even though it may reveal the outcome at past prediction anchors.

Check whether the attribute itself has history. Do not treat an end-time column alone as evidence of that history.

This branch was previously deployed

1 inactive deployment
gha-kumo-workflow-tests — e8709232 Deployed Dec 2, 2026 by kumo-isaac via import #3579
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.

2 participants