Skip to content

docs: PRIVACY.md covers the dbt Power User features - #48

Merged
hkaltai merged 13 commits into
mainfrom
feat/privacy-mods-section
Nov 24, 2026
Merged

hkaltai merged 13 commits into
mainfrom
feat/privacy-mods-section

Conversation

@hkaltai

@hkaltai hkaltai commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

What changes

PRIVACY.md gets a "dbt Power User features" section, a short-version bullet, a new "Last revised" date and a dated entry in "Changes to this policy". The section says, from what the hooks do:

  • Model and column text in Claude's context: the model context note (description cut at 300 characters, up to 40 columns with type, tests and a description cut at 160) and team comments (thread position, highlighted text, the last 6 messages with author names, cut at 600 characters), both reaching the model provider; commentsInContext keeps comments out; replies and resolves are sent only on a button press.
  • Run records: what the /runs history stores (fields, 50 runs per project, about 1 MB, secret handling in the stored command), where (Claude Code's plugin store), that it has no expiry or clear button and how to remove it.
  • Unattended --allow-write runs: which features pass it without asking (cost estimate, project health, SQL graph, CTE timing, comment posts) and when each runs.
  • A table of each feature (cost check, health, SQL graph, CTE timing, /to-model, defer, lineage pane) with what it reads or runs and where it goes, including the SQL graph's call to the Altimate backend and the lineage pane's table name sent to a connected table_lineage MCP server.
  • The "Direct local data tools" sentence moves to the start of "Data flows for workspace tools", where it belongs.

Documentation only; no code changes.

How it was tested

  • Each statement was checked against plugins/altimate-code/hooks/features/* and hooks/dbt-mods*.
  • claude plugin test plugins/altimate-code: all pass except, on separate runs under load, "a dbt call that starts while another call reads its artifact" and a timing test in cost.test.tsx, both of which also fail on an unchanged main.
  • bash tests/*.sh: all pass. claude plugin validate --strict .: passed.

🤖 Generated with Claude Code

What team comments, the model context, the dbt run history, the cost check,
project health, the SQL graph, CTE timing, /to-model, defer and the lineage
pane read and where it goes, the run records kept in the plugin store, and
the tools run with --allow-write without asking.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hkaltai
hkaltai marked this pull request as ready for review November 23, 2026 10:07
hkaltai and others added 6 commits November 23, 2026 15:43
…ow-write, and what each feature sends

Corrects the model context trigger and frequency, the cost check's compile-time
queries, off switch and estimate lines reaching Claude, the SQL graph's request
fields, the CTE baseline query, and adds docs coverage and /propagate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…the write-permission wording

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… other paths and the health artifact folder

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r project, and the sql-graph request in the summary

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ion and names the cost recheck and the CTE Tell Claude route

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

hkaltai commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

review-loop: APPROVED at 8429919 (reviewers: Claude, Codex)

Comment thread PRIVACY.md Resolved
Comment thread PRIVACY.md Resolved
@kilo-code-bot

kilo-code-bot Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Code Review Summary

Status: 3 Issues Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 1
SUGGESTION 2
Issue Details (click to expand)

WARNING

File Line Issue
PRIVACY.md 198 healthBlocksPush also makes unattended sessions run the project health check, which the bullet denies ("only adds the push gate").

SUGGESTION

File Line Issue
PRIVACY.md 44 The features never reach altimate-code's dbt tools through the plugin's MCP server (every call passes cliOnly or write); the README says "never the plugin's MCP server".
PRIVACY.md 52 Project health has no pane; its issues are shown in the band, a toast and /health's reply.
Files Reviewed (4 files)
  • PRIVACY.md - 3 issues (lines 44, 52, 198)
  • plugins/altimate-code/README.md - item 4 checked against the five write: true call sites and their triggers; accurate
  • plugins/altimate-code/CHANGELOG.md - the 0.12.12 entry and the status-line notice checked against MIN_ALTIMATE_CODE and integrations.test.tsx; accurate
  • plugins/altimate-code/hooks/altimate-cli.ts - the write option comment checked against its callers and SKILL.md; accurate

The previous review's duplication suggestion (PRIVACY.md:62) was re-checked; the author declined it, so it is not re-raised.

Fix these issues in Kilo Cloud

Previous Review Summaries (3 snapshots, latest commit ca007ea)

Current summary above is authoritative. Previous snapshots are kept for context only.

Previous review (commit ca007ea)

Status: 1 Issue Found | Recommendation: Merge

No new findings in 59c9c28..ca007ea. The remaining item is the previous suggestion, re-verified as still present; the author declined it in-thread, so it is informational only.

Overview

Severity Count
CRITICAL 0
WARNING 0
SUGGESTION 1
Issue Details (click to expand)

SUGGESTION

File Line Issue
PRIVACY.md 61 The five-tool --allow-write list is restated in README item 4, the short-version bullet (line 19), this paragraph and the feature table (plus the CHANGELOG), which invites drift. Author declined: each copy serves a different reader. Still present.
Files Reviewed (4 files)
  • PRIVACY.md - changed lines 43, 48, 51, 57, 59 checked against the code; no new issues
  • plugins/altimate-code/hooks/features/comments.tsx - read for verification: MODEL_FILE accepts .yaml, so the new extension list is correct
  • plugins/altimate-code/hooks/features/health.tsx - read for verification: isModelFile/MODEL_FILE accept .yaml, so the health trigger wording is correct
  • plugins/altimate-code/hooks/features/runs.tsx - read for verification: pairHoldsSecret exempts unquoted numbers/booleans/null, withRun keeps 50 runs per project per session folder, Re-run/Re-run failed call prompt.fill
  • plugins/altimate-code/hooks/lineage.tsx - read for verification: Ask Claude (a) submits the model and, when set, column name

Fix these issues in Kilo Cloud

Previous review (commit 4c6da96)

Status: 1 Issue Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 0
SUGGESTION 1
Issue Details (click to expand)

SUGGESTION

File Line Issue
PRIVACY.md 61 The five-tool --allow-write list is restated in README item 4, the short-version bullet (line 19), this paragraph and the feature table, which invites drift.
Files Reviewed (5 files)
  • PRIVACY.md - 1 issue (previous line 43 finding fixed by 4c6da96; new wording checked against features/cost.tsx and features/comments.tsx)
  • plugins/altimate-code/README.md - no new issues
  • plugins/altimate-code/hooks/features/cost.tsx - read for verification: limitBytes <= 0 skips only the automatic gate, /scan-cost still estimates
  • plugins/altimate-code/hooks/features/comments.tsx - read for verification: commentsInContext off only sets inContext, polling continues
  • plugins/altimate-code/.claude-plugin/plugin.json - read for verification: no full off switch for these features

Fix these issues in Kilo Cloud

Previous review (commit 8429919)

Status: 2 Issues Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 0
SUGGESTION 2
Issue Details (click to expand)

SUGGESTION

File Line Issue
PRIVACY.md 43 commentsInContext and maxScanBytes are presented as off switches although both only limit the feature (polling and /scan-cost continue).
PRIVACY.md 61 The five-tool --allow-write list is duplicated in README item 4, line 19, this paragraph and the feature table, which invites drift.
Files Reviewed (4 files)
  • PRIVACY.md - 2 issues
  • README.md - no issues (write-permission wording verified against the five write: true call sites)
  • plugins/altimate-code/CHANGELOG.md - no issues
  • plugins/altimate-code/hooks/altimate-cli.ts - no issues (doc comment only)

Fix these issues in Kilo Cloud


Reviewed by deepseek-v4.1-flash-1017 · Input: 139.1K · Output: 34K · Cached: 3M

…its, not off switches

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

hkaltai commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

review-loop: APPROVED at 4c6da96 (reviewers: Claude, Codex)

@sahrizvi sahrizvi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Consensus review: Claude (lead) and Codex (independent pass, then cross-check). Requesting changes for one statement that the code contradicts.

Blocking

  • PRIVACY.md:48: "Claude has no way to post" is false. Claude can post a comment reply or resolve through altimate-code's CLI with --allow-write after the person approves it. Only the MCP route refuses. A user who asks Claude to reply to a comment would hit this in normal use. It is a one-sentence fix.

Also open

  • PRIVACY.md:59 (major, edge case): a --vars secret written as a bare number ({password: 123456}) is recorded. Fix the wording or the check.

Minors that do not block

  • 50 runs counted per session folder, not per project: an edge case, and the 1 MB cap holds.
  • The lineage ask Claude prompt is not named in its row: it only sends identifiers and needs a press.
  • Re-run filling the prompt: a draft of Claude's own command.
  • End-of-task files under target/.altimate-lineage/: existed before this PR, stay on the machine.

Everything else I checked holds against the code, including:

  • the model context numbers (300 / 40 / 160);
  • the comments limits (6 messages, 600 characters, 8 threads, about 6,000 characters; poll 900 s, 30 to 86,400);
  • the five write: true callers, the same five the policy and README list;
  • the SQL graph request (POST /dbt/v3/sql_lineage with compiled_sql, model_info, model_dialect, session_id);
  • the table_lineage / databricks_table_lineage MCP call (only for a model the person asked for);
  • the usage event list, and the store files (mode 0600 on Claude Code 2.1.329).

The hooks/altimate-cli.ts hunk is a comment only.

Checks:

  • claude plugin test: 1263 pass, 1 fail at both head and base. The failing runs test is the same at base, so this PR did not cause it.
  • tests/*.sh: 8/8 pass at both. pytest: 65 pass at both.
  • validate --strict fails at both on ICON_MISSING only.

Nits and the merge-tree results are in a separate comment.

Comment thread PRIVACY.md Outdated
| Feature | What it reads or runs | Where it goes |
|---|---|---|
| **Model context** (a helper) | When Claude reads a model's `.sql` file, a note built from the project's `target/manifest.json`: the model's name, materialization and relation, its parents and children and how deep they go, its tags, its description (cut at 300 characters), its tests, and up to 40 columns with their type, tests and description (each cut at 160 characters). The descriptions are whatever your dbt docs say. The note is framed as data, not instructions. | It goes with the file once per model, manifest revision, turn and agent (a subagent has its own), each time Claude reads that `.sql` file again in a new turn, and reaches your model provider. A toast on your screen shows the model's name and materialization, with the counts of columns and tests and the depth upstream and downstream. Nothing else is sent. |
| **Team comments** (`/comments`, the band, Claude's context) | The dbt project's name (the `name:` of `dbt_project.yml`) is passed to altimate-code's `docs_share_comments` tool, which asks the Altimate service you are signed in to for the open comment threads on your team's shared dbt docs. It asks at session start (or when Claude first reads a model of a project below the session folder) and, in an interactive session, every `commentsPollSeconds` (900 by default, 30 to 86400); a session with nobody at the prompt asks once. When the service answers that you are signed out or refused, it stops polling until you press Refresh or open `/comments`; reading a file of another dbt project still asks once for that project's threads. | When Claude reads or edits a file that has open threads (a model's `.sql`, `.yml` or `.py`, a `.md` or a `.csv`), one block names each thread's line, column or field, highlighted text, and its last 6 messages with the authors' names and text (a message cut at 600 characters, at most 8 threads and about 6,000 characters), and tells Claude that other people wrote it. That text enters Claude's context and reaches your model provider. The plugin setting "Team comments in Claude's context" (`commentsInContext`) off keeps it out of Claude's context; the pane still shows it. The threads and your drafts are kept in the session only, not in the plugin's store. A reply or resolve is sent only when you press its button in the `/comments` pane: the reply text and the thread's ids go to the Altimate service, posted under your name. Claude has no way to post. |

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Major (real case, blocks): "Claude has no way to post" is not true. The plugin's own posting path is button-only, but Claude can post a reply or resolve through altimate-code's CLI. docs_share_comments is on the tool run allow-list (altimate-code tool-cli/allow-list.ts:130). With --allow-write the CLI's askFor lets its docs_share_comments permission through (tool-cli/permissions.ts:36-49). The tool then posts under the signed-in user's name (tools/docs-share-comments.ts:229-300). The threads' ids come from a read-only list call. The skill tells Claude to ask before adding --allow-write (skills/altimate-code/SKILL.md:113), so this needs the person's yes. But a person who asks Claude to "reply to that comment" gets a post the policy says cannot happen. Only the MCP route refuses it: forceReadOnly is set without write (mcp-server/adapter.ts:460-475).

Suggested wording: "The plugin posts only when you press its button. Claude can also post a reply or resolve through altimate-code's CLI (docs_share_comments with --allow-write) when you ask it to and approve the write; the plugin's MCP server refuses it."

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Fixed at d1d0d4dbd7. PRIVACY.md:60: "at most 50 runs per dbt project for each folder you start Claude Code in". This matches the store, which is keyed by session folder (runs.tsx:585-586).

Comment thread PRIVACY.md Outdated
| **Docs coverage and `/propagate`** | After Claude writes a column description in a model's YAML, `impact_analysis` reads the manifest locally to find the downstream columns that carry the same value; after Claude edits a model's SQL, `dbt_docs_coverage` reads the manifest for the model's undocumented columns. The offered copies are held for the session. | A line under the edit names the models and columns and goes to Claude. When you press Apply in the `/propagate` pane, one prompt naming those models and columns (with their unique ids), the project folder and the YAML file is submitted to Claude and reaches your model provider; it carries names and ids, not the description text, which Claude reads from the YAML file. |
| **Lineage pane and edit impact** | `dbt_lineage` and `impact_analysis` read the manifest locally; the pane shows the answers. A line for what an edit reaches downstream goes to Claude with the edit's result (also shown to you when `show_edit_impact` is on). | That line names models and columns and reaches your model provider. When you ask for a model (`/lineage`, a press, or `r`), and another MCP server you connected offers a `table_lineage` or `databricks_table_lineage` tool, the model's relation name (database, schema and table) is sent to that server to draw warehouse lineage, and to no other; a model the pane only followed from Claude's reads is never sent. That server's handling is its own. |

**Run records.** Each record in the dbt runs history holds the artifact's invocation id, the dbt project folder, the command as Claude ran it (with the folder it ran in) and the `dbt retry` line that Re-run failed fills in, the dbt subcommand, the elapsed time, the completion time, the counts of nodes (total, passed, failed, skipped), and up to 50 rows, failures first, each with a node's unique id, name, status, execution time and dbt's message cut at 300 characters. Messages are dbt's, as written, and can name relations or values. A secret-looking `NAME=value` in front of the command is stored as `NAME="$NAME"`, and a command whose `--vars` name a secret, or that holds a URL with a credential in it, is not recorded. The history is kept in Claude Code's plugin store under the Claude Code configuration directory, in files only your user can read, across sessions and `/clear`, and is not sent anywhere by the plugin. It holds at most 50 runs per dbt project and about 1 MB in all; past that the oldest run of the folder with the most runs is dropped. There is no expiry and no clear button, and turning `dbt_mods` off does not delete it: to remove it, delete the plugin's store data (which also makes a new install id).

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Major (edge case): "a command whose --vars name a secret ... is not recorded" does not hold when the secret's value is a bare number. pairHoldsSecret (hooks/features/runs.tsx:168) exempts numeric, boolean and null values, so that token_limit: 3 is not treated as a secret. Run through resultsInvocations, the two cases below give:

  • dbt build --vars '{password: 123456}' is recorded as cd /repo && dbt build --vars '{password: 123456}'
  • dbt run --vars '{db_pin: 482913}' is recorded verbatim

The quoted form '{password: "hunter22"}' is correctly not recorded. This needs an all-digit secret written without quotes, and it stays in the 0600 store file. Either say "names a secret with a text value", or stop exempting numbers for password-type keys.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Fixed at d1d0d4dbd7. PRIVACY.md:58: "The pane's Ask Claude button (a) submits a prompt containing the selected model and, when selected, column name to Claude and your model provider." This matches lineage.tsx:2034. One cosmetic difference: the pane's label is ask Claude.

Comment thread PRIVACY.md Outdated
| **Docs coverage and `/propagate`** | After Claude writes a column description in a model's YAML, `impact_analysis` reads the manifest locally to find the downstream columns that carry the same value; after Claude edits a model's SQL, `dbt_docs_coverage` reads the manifest for the model's undocumented columns. The offered copies are held for the session. | A line under the edit names the models and columns and goes to Claude. When you press Apply in the `/propagate` pane, one prompt naming those models and columns (with their unique ids), the project folder and the YAML file is submitted to Claude and reaches your model provider; it carries names and ids, not the description text, which Claude reads from the YAML file. |
| **Lineage pane and edit impact** | `dbt_lineage` and `impact_analysis` read the manifest locally; the pane shows the answers. A line for what an edit reaches downstream goes to Claude with the edit's result (also shown to you when `show_edit_impact` is on). | That line names models and columns and reaches your model provider. When you ask for a model (`/lineage`, a press, or `r`), and another MCP server you connected offers a `table_lineage` or `databricks_table_lineage` tool, the model's relation name (database, schema and table) is sent to that server to draw warehouse lineage, and to no other; a model the pane only followed from Claude's reads is never sent. That server's handling is its own. |

**Run records.** Each record in the dbt runs history holds the artifact's invocation id, the dbt project folder, the command as Claude ran it (with the folder it ran in) and the `dbt retry` line that Re-run failed fills in, the dbt subcommand, the elapsed time, the completion time, the counts of nodes (total, passed, failed, skipped), and up to 50 rows, failures first, each with a node's unique id, name, status, execution time and dbt's message cut at 300 characters. Messages are dbt's, as written, and can name relations or values. A secret-looking `NAME=value` in front of the command is stored as `NAME="$NAME"`, and a command whose `--vars` name a secret, or that holds a URL with a credential in it, is not recorded. The history is kept in Claude Code's plugin store under the Claude Code configuration directory, in files only your user can read, across sessions and `/clear`, and is not sent anywhere by the plugin. It holds at most 50 runs per dbt project and about 1 MB in all; past that the oldest run of the folder with the most runs is dropped. There is no expiry and no clear button, and turning `dbt_mods` off does not delete it: to remove it, delete the plugin's store data (which also makes a new install id).

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Minor (edge case): "at most 50 runs per dbt project" holds per session folder, not per project. The store is keyed by the session root (runs.tsx:569, :581), and withRun counts projects inside one root's list only (runs.tsx:310-318). Opening the same project from /repo and from /repo/models keeps 50 in each: I ran withRun/fitStore and got 100 runs kept for one project. The 1 MB total cap holds. Suggest "at most 50 runs per dbt project for each folder you start Claude Code in".

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Fixed at d1d0d4dbd7. PRIVACY.md:60: "at most 50 runs per dbt project for each folder you start Claude Code in". This matches the store, which is keyed by session folder (runs.tsx:585-586).

Comment thread PRIVACY.md Outdated
| **Raw SQL to a model** (`/to-model`) | Only when you run it: the SQL (a file you name, or your selection) and the project folder go to `dbt_map_relations`, which maps each table to a `ref()` or `source()` call. | When the command finishes it submits one prompt to Claude, holding the SQL and the replacements; that reaches your model provider. |
| **Defer and target** (`/defer`, `/target`) | `dbt_defer_state` reads the project's dbt Power User defer setting and the profile's target names. The plugin adds `--defer --state <dir>`, `--favor-state` or `--target <name>` to the dbt commands Claude runs that take them. | The plugin sends nothing for it; the setting is read through altimate-code. Claude's tool result says what the command ran as. |
| **Docs coverage and `/propagate`** | After Claude writes a column description in a model's YAML, `impact_analysis` reads the manifest locally to find the downstream columns that carry the same value; after Claude edits a model's SQL, `dbt_docs_coverage` reads the manifest for the model's undocumented columns. The offered copies are held for the session. | A line under the edit names the models and columns and goes to Claude. When you press Apply in the `/propagate` pane, one prompt naming those models and columns (with their unique ids), the project folder and the YAML file is submitted to Claude and reaches your model provider; it carries names and ids, not the description text, which Claude reads from the YAML file. |
| **Lineage pane and edit impact** | `dbt_lineage` and `impact_analysis` read the manifest locally; the pane shows the answers. A line for what an edit reaches downstream goes to Claude with the edit's result (also shown to you when `show_edit_impact` is on). | That line names models and columns and reaches your model provider. When you ask for a model (`/lineage`, a press, or `r`), and another MCP server you connected offers a `table_lineage` or `databricks_table_lineage` tool, the model's relation name (database, schema and table) is sent to that server to draw warehouse lineage, and to no other; a model the pane only followed from Claude's reads is never sent. That server's handling is its own. |

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Minor: the lineage pane's ask Claude button (hotkey a) submits Explain the lineage of <model>[.<column>] and what a change to it would affect. straight to Claude (hooks/lineage.tsx:1750). The section's opening sentence covers it in general, but this row names every other path to Claude and not this one. It only sends identifiers and needs a press. Worth one clause.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Fixed at d1d0d4dbd7. PRIVACY.md:58: "The pane's Ask Claude button (a) submits a prompt containing the selected model and, when selected, column name to Claude and your model provider." This matches lineage.tsx:2034. One cosmetic difference: the pane's label is ask Claude.

Comment thread PRIVACY.md Outdated
| **Raw SQL to a model** (`/to-model`) | Only when you run it: the SQL (a file you name, or your selection) and the project folder go to `dbt_map_relations`, which maps each table to a `ref()` or `source()` call. | When the command finishes it submits one prompt to Claude, holding the SQL and the replacements; that reaches your model provider. |
| **Defer and target** (`/defer`, `/target`) | `dbt_defer_state` reads the project's dbt Power User defer setting and the profile's target names. The plugin adds `--defer --state <dir>`, `--favor-state` or `--target <name>` to the dbt commands Claude runs that take them. | The plugin sends nothing for it; the setting is read through altimate-code. Claude's tool result says what the command ran as. |
| **Docs coverage and `/propagate`** | After Claude writes a column description in a model's YAML, `impact_analysis` reads the manifest locally to find the downstream columns that carry the same value; after Claude edits a model's SQL, `dbt_docs_coverage` reads the manifest for the model's undocumented columns. The offered copies are held for the session. | A line under the edit names the models and columns and goes to Claude. When you press Apply in the `/propagate` pane, one prompt naming those models and columns (with their unique ids), the project folder and the YAML file is submitted to Claude and reaches your model provider; it carries names and ids, not the description text, which Claude reads from the YAML file. |
| **Lineage pane and edit impact** | `dbt_lineage` and `impact_analysis` read the manifest locally; the pane shows the answers. A line for what an edit reaches downstream goes to Claude with the edit's result (also shown to you when `show_edit_impact` is on). | That line names models and columns and reaches your model provider. When you ask for a model (`/lineage`, a press, or `r`), and another MCP server you connected offers a `table_lineage` or `databricks_table_lineage` tool, the model's relation name (database, schema and table) is sent to that server to draw warehouse lineage, and to no other; a model the pane only followed from Claude's reads is never sent. That server's handling is its own. |

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Minor (existing before this PR): the end-of-task band also keeps files on disk. It copies the manifest and writes last-task.json under target/.altimate-lineage/ (hooks/task-impact.tsx:127, :302-342). That file includes column SQL expressions from before and after the task. The existing "lineage report" section names only the HTML file there. The files stay on this machine. Fine as a follow-up.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Still open as a minor at d1d0d4dbd7 (existed before this PR, stays on the machine, not blocking). PRIVACY.md:44 now points to "The lineage report" for the summary's saved reports, but that section names only the HTML file. Neither last-task.json nor the manifest copies are named, and since #44 the copies sit in target/ itself. Details are in the new inline comment on line 44.

Comment thread PRIVACY.md
|---|---|---|
| **Model context** (a helper) | When Claude reads a model's `.sql` file, a note built from the project's `target/manifest.json`: the model's name, materialization and relation, its parents and children and how deep they go, its tags, its description (cut at 300 characters), its tests, and up to 40 columns with their type, tests and description (each cut at 160 characters). The descriptions are whatever your dbt docs say. The note is framed as data, not instructions. | It goes with the file once per model, manifest revision, turn and agent (a subagent has its own), each time Claude reads that `.sql` file again in a new turn, and reaches your model provider. A toast on your screen shows the model's name and materialization, with the counts of columns and tests and the depth upstream and downstream. Nothing else is sent. |
| **Team comments** (`/comments`, the band, Claude's context) | The dbt project's name (the `name:` of `dbt_project.yml`) is passed to altimate-code's `docs_share_comments` tool, which asks the Altimate service you are signed in to for the open comment threads on your team's shared dbt docs. It asks at session start (or when Claude first reads a model of a project below the session folder) and, in an interactive session, every `commentsPollSeconds` (900 by default, 30 to 86400); a session with nobody at the prompt asks once. When the service answers that you are signed out or refused, it stops polling until you press Refresh or open `/comments`; reading a file of another dbt project still asks once for that project's threads. | When Claude reads or edits a file that has open threads (a model's `.sql`, `.yml` or `.py`, a `.md` or a `.csv`), one block names each thread's line, column or field, highlighted text, and its last 6 messages with the authors' names and text (a message cut at 600 characters, at most 8 threads and about 6,000 characters), and tells Claude that other people wrote it. That text enters Claude's context and reaches your model provider. The plugin setting "Team comments in Claude's context" (`commentsInContext`) off keeps it out of Claude's context; the pane still shows it. The threads and your drafts are kept in the session only, not in the plugin's store. A reply or resolve is sent only when you press its button in the `/comments` pane: the reply text and the thread's ids go to the Altimate service, posted under your name. Claude has no way to post. |
| **dbt runs** (`/runs`) | After a `dbt run`, `build`, `test`, `seed`, `snapshot`, `compile`, `retry` or `clone` Claude ran, the plugin reads the project's `target/run_results.json` through `dbt_run_results` (a local read) and records the run. | Kept locally, see below. Claude gets one line per run: the subcommand, the counts, and up to 5 failed node names, as plain identifiers. |

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Minor: Re-run also puts the stored command into the prompt box ($.prompt.fill, hooks/features/runs.tsx:614, :642). The text only reaches the model provider if the person sends it, and it is the command Claude itself ran (with secret-named assignments now "$NAME"). Line 59 mentions this for Re-run failed only. Naming both buttons here would complete the row.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Fixed at d1d0d4dbd7. PRIVACY.md:60: "Re-run and Re-run failed fill the prompt box with the stored command or retry line; that text reaches your model provider only if you send it." This matches runs.tsx:614,642.

@sahrizvi

Copy link
Copy Markdown
Collaborator

Consensus review (Claude + Codex): nits and other notes for #48 at 4c6da969e4

Nits

  • PRIVACY.md:52 (SQL graph row): after an edit of a model's .sql, Claude also gets one line N CTEs · /sql-graph (hooks/features/sql-graph.tsx:318). It only carries a count.
  • PRIVACY.md:48: a reply or resolve also sends the project name again, because the tool lists the project's threads to check the ids before posting (altimate-code tools/docs-share-comments.ts:251-255). The row names only the reply text and the thread's ids.
  • PRIVACY.md:59: run-record messages do not go through the profiles.yml secret redaction the dbt helpers apply. "Messages are dbt's, as written" is accurate. Saying plainly that the helpers' redaction does not apply would stop readers from assuming it does.
  • PRIVACY.md:59: "A secret-looking NAME=value" means a secret-looking name. MYVAR=sk-abc… dbt build is stored with its value. Suggest "a NAME=value whose name looks like a secret".
  • claude plugin validate --strict ./plugins/altimate-code fails on ICON_MISSING at both head and base. This PR did not cause it.

Rejected from the panel: in round 2, Codex said posting needs no --allow-write flag. The code says otherwise. Without write, the MCP adapter sets forceReadOnly (mcp-server/adapter.ts:460-475) and the tool refuses (docs-share-comments.ts:229). So the blocking item above rests on the CLI path with --allow-write only.

Merge-tree against other open PRs

Other PR Head Conflicting files Conflicts
#47 b1d3ec9b47 none merges cleanly
#45 883920da49 PRIVACY.md, plugins/altimate-code/CHANGELOG.md the "Last revised" line, and the CHANGELOG's unreleased entries
#44 6a3d08e207 none merges cleanly
main (cd7e099366) none merges cleanly

No CI workflow or test reads PRIVACY.md.

Comment thread PRIVACY.md
Direct local data tools do not invoke a planning model. Workspace tools have the additional service flows below; delegation uses the separate provider path described later.
## dbt Power User features

The rest of the dbt Power User features run beside the chat from the plugin's hooks module. They call altimate-code's dbt tools through `altimate tool run`, or through the plugin's MCP server when it is connected, and make no model-provider call of their own. What the plugin hands to Claude enters the Claude Code conversation and reaches your model provider. Only the helpers described under [dbt helpers](#dbt-helpers) (compile and validate, the failed-run band, the query results pane and history, the doctor, and the model context below) follow the plugin's `dbt_mods` option; the features in this section have no full off switch of their own; two partial limits are named below (`commentsInContext`, which only keeps comments out of Claude's context, and `maxScanBytes`, which only stops the automatic cost check). Their usage events are listed under [Plugin usage events](#plugin-usage-events). The end-of-task impact summary and `/lineage-report`, including their saved reports and usage events, are described under [The lineage report](#the-lineage-report).

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[SUGGESTION]: The dbt features never call these tools through the plugin's MCP server

Every call the features make to an altimate-code dbt tool passes cliOnly: true or write: true (e.g. hooks/features/runs.tsx:438, hooks/features/comments.tsx:458, hooks/features/cost.tsx:690, hooks/dbt-mods.tsx:536, hooks/lineage.tsx:499), and runTool skips MCP for either (hooks/altimate-cli.ts:210, :217). The README's "How it works" says the same: through altimate tool run, "never the plugin's MCP server". Consider dropping the "or through the plugin's MCP server when it is connected" clause so the policy does not describe a route that does not happen.

Comment thread PRIVACY.md
| **Team comments** (`/comments`, the band, Claude's context) | The dbt project's name (the `name:` of `dbt_project.yml`) is passed to altimate-code's `docs_share_comments` tool, which asks the Altimate service you are signed in to for the open comment threads on your team's shared dbt docs. It asks at session start (or when Claude first reads a model of a project below the session folder) and, in an interactive session, every `commentsPollSeconds` (900 by default, 30 to 86400); a session with nobody at the prompt asks once. When the service answers that you are signed out or refused, it stops polling until you press Refresh or open `/comments`; reading a file of another dbt project still asks once for that project's threads. | When Claude reads or edits a file that has open threads (a model's `.sql`, `.yml`, `.yaml` or `.py`, a `.md` or a `.csv`), one block names each thread's line, column or field, highlighted text, and its last 6 messages with the authors' names and text (a message cut at 600 characters, at most 8 threads and about 6,000 characters), and tells Claude that other people wrote it. That text enters Claude's context and reaches your model provider. The plugin setting "Team comments in Claude's context" (`commentsInContext`) off keeps it out of Claude's context; the pane still shows it. The threads and your drafts are kept in the session only, not in the plugin's store. The plugin sends a reply or resolve when you press its button in the `/comments` pane: the reply text and the thread's ids go to the Altimate service, posted under your name. Claude can also post a reply or resolve through altimate-code's CLI (`docs_share_comments` with `--allow-write`) when you ask it to and approve the write; the plugin's MCP server refuses these writes. |
| **dbt runs** (`/runs`) | After a `dbt run`, `build`, `test`, `seed`, `snapshot`, `compile`, `retry` or `clone` Claude ran, the plugin reads the project's `target/run_results.json` through `dbt_run_results` (a local read) and records the run. | Kept locally, see below. Claude gets one line per run: the subcommand, the counts, and up to 5 failed node names, as plain identifiers. |
| **Cost check** | Before a `dbt run`, `build` or `show` Claude runs that names its query (`dbt show --inline <sql>` or one plain model name), the model name or the inline SQL goes to altimate-code's `dbt_cost_estimate`, which starts the project's dbt adapter, compiles the model or SQL, and asks your warehouse, with your local profile, what the query would scan: a dry run on BigQuery, `EXPLAIN` on Snowflake and Databricks. The estimated query itself is not run and no rows are read, but compiling renders Jinja, so a macro in the model that runs a query (`run_query`) does run it, and a billed warehouse bills it. On Databricks `EXPLAIN COST` can start a stopped SQL warehouse. With `maxScanBytes` set to 0 the automatic check estimates nothing and holds nothing; `/scan-cost <model>` asks the same for a model, and still estimates then. On a warehouse other than those three, the first command makes one such call to find out, and another when 10 minutes have passed or the project may have changed, and a line saying there is no estimate reaches Claude. | The estimate is not sent anywhere, but it reaches Claude: a held command's refusal states it, and a command that runs under the limit gets a line such as `cost · orders would scan 2.0 GiB` with its result, so it reaches your model provider. A command that is held, or that you allow with `/allow-scan`, sends the `cost_gate` usage event. |
| **Project health** (`/health`, the band, the push gate) | At session start (a baseline) and after each turn in which Claude changed a `.sql`, `.yml` or `.yaml` file of the project (a model, or a macro or test), `dbt_health` checks the project with DataPilot, using the config file named by `healthConfigPath` when set. It runs only in an interactive session, or with "Project health blocks git push" on, and only inside a dbt project. It starts the dbt adapter, which can run `dbt deps` and a parse; its artifacts go to `.altimate-plugin/health/` inside the project's target folder (`target/` by default), with a copy of the project's `catalog.json`, so with dbt Core the project's own `manifest.json` is left alone; with dbt Fusion or dbt Cloud, which read the project's own target folder whatever path is requested, the check writes there. Per altimate-code's documentation it runs no warehouse query; the adapter start can still open a connection. | The issues are shown in the band and pane. With the push gate on, a refused `git push` names the issues, and that text enters Claude's context. |

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[SUGGESTION]: Project health shows its issues in the band and in /health's reply, but there is no health pane

hooks/features/health.tsx registers and opens no pane; the issues reach you through the band (bandLine, hooks/features/health.tsx:812-816), a toast (:642) and the text /health returns (:694). The README's feature list also names only "/health, the band, the push gate". Consider "The issues are shown in the band, and /health prints them."

Comment thread PRIVACY.md
- **Don't enable the plugin** — no plugin MCP server is launched and no tasks are delegated while it is disabled.
- **Use BYOK for delegation** — route CLI agent prompts directly to your own provider. MCP tool results are handled by Claude Code's configured model provider independently.
- **Disable telemetry** — see above.
- **Limit the dbt Power User features** — `commentsInContext` off keeps team comments out of Claude's context, `maxScanBytes` 0 turns the automatic cost check off, the project health check has no off switch ("Project health blocks git push" only adds the push gate), and `dbt_mods` off turns off the dbt helpers (including the model context note). See [dbt Power User features](#dbt-power-user-features).

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

WARNING: healthBlocksPush does more than add the push gate: it also makes unattended sessions run the health check

hooks/features/health.tsx:717 sets eligible = e.isInteractive || healthBlocksPush, and enable() (:722-727) starts the baseline from that flag. A non-interactive (-p/SDK) session with "Project health blocks git push" on therefore starts the project's dbt adapter without anyone at the prompt, which this bullet rules out ("only adds the push gate"); the table row above states it correctly ("It runs only in an interactive session, or with "Project health blocks git push" on"). Consider "the project health check has no off switch in an interactive session, and "Project health blocks git push" both adds the push gate and makes unattended sessions run the check".

@sahrizvi sahrizvi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Round 2 re-review of d1d0d4dbd7: APPROVE. Panel: Claude (lead) and Codex (codex exec, read-only, default model). Both agree on every item.

Both round-1 blockers are fixed:

  • M1: the team-comments row (PRIVACY.md:49) now says the plugin's button posts, that Claude can post a reply or resolve through altimate-code's CLI (docs_share_comments with --allow-write) once you ask and approve the write, and that the MCP server refuses these writes. This matches altimate-code (tool-cli/allow-list.ts, tool-cli/permissions.ts, the adapter's forceReadOnly).
  • M2: the run-records paragraph (PRIVACY.md:60) now calls the --vars check a heuristic and says unquoted numbers, booleans and null are exempt. I ran resultsInvocations again at this head. dbt build --vars '{password: 123456}' is still recorded as written, and a quoted value is still left out. The code did not change, and the text now matches it.

m1, m2 and m3 are fixed too. The merges of main (74791e2b41, 09bc9880b6) resolve conflicts in CHANGELOG.md and PRIVACY.md only. Against main, the PR still changes 4 files, and hooks/altimate-cli.ts differs by a JSDoc comment only.

One minor is still open and does not block:

  • m4 (inline): the band's last-task.json and its manifest copies are not named. This existed before this PR, the files stay on the machine, and it is safe to fix in a follow-up.

The nits and the test results are in the comment below.

Comment thread PRIVACY.md
Direct local data tools do not invoke a planning model. Workspace tools have the additional service flows below; delegation uses the separate provider path described later.
## dbt Power User features

The rest of the dbt Power User features run beside the chat from the plugin's hooks module. They call altimate-code's dbt tools through `altimate tool run`, or through the plugin's MCP server when it is connected, and make no model-provider call of their own. What the plugin hands to Claude enters the Claude Code conversation and reaches your model provider. Only the helpers described under [dbt helpers](#dbt-helpers) (compile and validate, the failed-run band, the query results pane and history, the doctor, and the model context below) follow the plugin's `dbt_mods` option; the features in this section have no full off switch of their own; two partial limits are named below (`commentsInContext`, which only keeps comments out of Claude's context, and `maxScanBytes`, which only stops the automatic cost check). Their usage events are listed under [Plugin usage events](#plugin-usage-events). The end-of-task impact summary and `/lineage-report`, including their saved reports and usage events, are described under [The lineage report](#the-lineage-report).

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Minor (existed before this PR, stays on the machine, not blocking): this sentence sends the reader to The lineage report for the end-of-task summary's "saved reports". That section names only the HTML report. Two other kinds of file are not named:

One sentence in that section naming both would close this. Raised by Codex, confirmed by Claude.

@sahrizvi

Copy link
Copy Markdown
Collaborator

Round 2 re-review of d1d0d4dbd7: nits, merge check and tests (Claude + Codex)

Nits still open from round 1

None of these blocks.

  • n1: after an edit of a model's .sql, Claude still gets the line N CTEs · /sql-graph (hooks/features/sql-graph.tsx:313-318). The SQL graph row does not name it. It carries counts only.
  • n2: a reply or resolve also sends the project name, because the tool lists the threads to check the ids (comments.tsx:555; altimate-code docs-share-comments.ts:251-255). The row names only the reply text and the ids.
  • n3: "Messages are dbt's, as written" is accurate. It could also say that run-record messages do not get the profiles.yml secret redaction described under dbt helpers (runs.tsx:302-305).
  • n4: "A secret-looking NAME=value" means the name looks secret (runs.tsx:139,184). "An assignment whose name looks like a secret" would be exact.

New nits from this round

What I checked in the new commits

  • .yaml in the comments and health rows: holds (comments.tsx:37 /\.(sql|ya?ml|py|md|csv)$/i; health.tsx:482).
  • The lineage report pointer (PRIVACY.md:44): holds for the usage events and the HTML report. The other saved files are m4.
  • The model-context toast, "With info_toasts on (the default)": holds. The toast goes through infoToast (dbt-mods.tsx:1823-1824,2022), and the setting defaults to true (plugin.json:69-73).
  • Ask Claude (a): it submits Explain the lineage of <model>[.<column>] … (lineage.tsx:2034). Holds.
  • Re-run and Re-run failed fill the prompt box (runs.tsx:614,642). Holds.
  • "For each folder you start Claude Code in": the store is keyed by the session folder (runs.tsx:585-586). Holds.

Consistency

Merges

  • 74791e2b41 and 09bc9880b6 resolve conflicts in CHANGELOG.md and PRIVACY.md only (git show --cc).
  • git diff origin/main d1d0d4dbd7 touches PRIVACY.md, README.md, CHANGELOG.md and a JSDoc comment in hooks/altimate-cli.ts, and nothing else.

Test results at head and base

Head is d1d0d4dbd7; base is main at 863dc08bf7.

Check Head Base
claude plugin validate --strict . pass pass
claude plugin validate --strict ./plugins/altimate-code fail, ICON_MISSING only fail, the same
claude plugin test plugins/altimate-code 1424 pass, 1 fail 1424 pass, 1 fail, the same test
tests/*.sh (8 scripts) 8 pass not run
pytest tests/test_sync_workspace_skills.py 65 pass not run

The one test failure is the same at head and base, so this PR did not cause it. The failing test is "a dbt call that starts while another call reads its artifact…". No CI step reads PRIVACY.md.

@hkaltai
hkaltai merged commit 62b711b into main Nov 24, 2026
4 checks passed
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