Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion agent-skills/skills/hosts/snowflake-coco/adapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ must be kept. Never relabel natural-language content as categorical to dodge the
is a host restriction, not a portable Kumo restriction.

Preflight cannot predict Kumo's sampled type inference, so a column name is not proof either way:
at the graph gate, exclude only columns whose text semantics are already established. The
at the graph gate, exclude only columns whose text semantics are already established, and put an
open-vocabulary string whose type is not settled to the user as a `Column types` line
(`kumoai-reference/references/graph_construction.md` *How a semantic type is inferred*). The
generated code carries the runtime guard, because the user may run it without the agent: after
`infer_metadata()` and the `with_column` corrections, and before `graph.snapshot()`, emit a cell
that fails on any retained `Stype.text` column.
Expand Down
10 changes: 10 additions & 0 deletions agent-skills/skills/kumo-data-science/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,16 @@ Carry the confirmed exclusion set into code generation: a table with any exclusi
with an explicit positional column list, because omitting it silently restores every source
column.

**Column types.** `infer_metadata()` types each column from its name, its physical type and its
sampled values (`kumoai-reference/references/graph_construction.md` *How a semantic type is
inferred*), and those rules can contradict what a column means. Add a `Column types` section to
the proposal with one line for every selected non-key column a rule there matches: the type Kumo
will give it, the rule behind it, and the type its meaning calls for. Where the two differ, the
choice is the user's, at this gate; the notebook declares the confirmed type with
`with_column(...)`. A type confirmed here is a declaration, like a foreign key's `ID` — not a
change made to silence a data message (`kumoai-reference/references/troubleshooting_signals.md`
§1a).

Comment on lines +210 to +219

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 · Quick win

Refresh skills/ with the publish script before merge.

test_the_published_copy_matches_the_source fails in the Agent Skills CI job. This PR edits three sources that publish to the repository-root skills/ tree, and skills/ is not updated. stale() reports these files as changed:

  • kumo-data-science/SKILL.md
  • kumo-data-science/accept/preflight.md
  • kumoai-reference/references/graph_construction.md

Three other entries also differ: kumo-custom-populations/references/populations.md, kumoai-reference/references/kumo_finetuning_sdk.md, and kumoai-reference/references/task_journeys.md. They were out of date before this PR. The same refresh updates them.

Run python3 agent-skills/scripts/publish_nvskills.py from the repository root. Commit the resulting changes under skills/.

Tools

SkillSpector (2.12.0)

[warning] 96: [RA2] Session Persistence: Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Remediation: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.

(Rogue Agent (RA2))


[warning] 152: [EA2] Autonomous Decision Making: Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Remediation: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.

(Excessive Agency (EA2))


[warning] 314: [EA2] Autonomous Decision Making: Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Remediation: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.

(Excessive Agency (EA2))

**Assert what preflight could not find.** The proposal must state these explicitly rather than
leaving them unmentioned, because each one changes whether the task is expressible:

Expand Down
8 changes: 6 additions & 2 deletions agent-skills/skills/kumo-data-science/accept/preflight.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,10 @@ Excluded columns
- fraud_events.DAYS_TO_RESOLVE [inferred] — duration of an interval that has not ended yet
- ...

Column types
- <table>.<column> [inferred] — Kumo: <stype> (<rule>); its meaning: <stype> — <the user's choice>
- ...

Not found
- payments: no primary key inferred [inferred] — treated as keyless; edge source only unless corrected
- events: no usable time column [inferred] — a time-ranged target cannot reference this table
Expand All @@ -225,8 +229,8 @@ Not found
Confirm, or correct any line (your values take precedence).
```

`Excluded columns` and `Not found` are local availability-gate extensions to the confirmation
format.
`Excluded columns`, `Column types` and `Not found` are local availability-gate extensions to the
confirmation format. `Column types` follows router Node 1c, *Column types*.

## 9. Never

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,29 @@ Rules:
- Both `dtype` and `stype` must be resolved before a table is used in a `PredictiveQuery`;
`infer_metadata()` resolves whatever is missing.

### How a semantic type is inferred

For a column with no declared type, `infer_metadata()` reads, in order: its role (a primary key
is `ID`, a time column `timestamp`), its physical type (date, time, boolean and list types decide
on their own), its **name**, and then its **values**, in a sample of up to 10,000 rows. The first
that decides wins. The name and value rules below can contradict what a column means; the graph
gate reports each selected column they match (router Node 1c, *Column types*), and a confirmed
correction is declared with `with_column`.

- **A string is a category or free text by its distinct count.** A string column that is not a
key, not typed by its name and not split as a list is typed `categorical` with at most 4,000
distinct sampled values and `text` above that. The count decides, not the meaning: an
open-vocabulary attribute — a place name, a job title, a product or company name, a short
description — is a category in a small table and free text in a large one, and can change type
when the data grows. Closed sets (a status, a tier, a channel) are categorical either way and
need no line. For each selected open-vocabulary string, report the type you expect and the
4,000 cut-off behind it, ask whether it is a category or free text, and declare the answer
(`Stype.categorical` or `Stype.text`) so a refresh cannot flip it. Above 4,000 distinct values
a category exceeds what the categorical encoder represents. Where the host adapter makes text
features unavailable, a column the user calls free text is excluded, and the proposal says so.

Source: shipped package (`kumo_core.stype_inference`, `kumo.engine.table`)

---

## Step 4: build the graph
Expand Down
Loading