Repository navigation
Conversation
The warehouse command now finds the ORM and SQL files in the project and reads the commit at HEAD. The prompt gives both to the data-warehouse-source-setup skill in a "Catalog hints" section. The agent then reads the models and sends table and column descriptions through external-data-sources-catalog-hints-create. The warehouse scope set adds warehouse_table:write, because the tool needs it. The default integration flow shares this set. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🧙 Wizard CIRun the Wizard CI and test your changes against wizard-workbench example apps by replying with a GitHub comment using one of the following commands: Test all apps:
Test all apps in a directory:
Test an individual app:
Show more apps
Test against a Context Mill branch:
Add Results will be posted here when complete. |
A run on a large Django repo listed `models.py` files that hold no ORM models, and numbered migration SQL, so the agent described the wrong tables. A Django models file now counts only when its app folder has a `migrations/` folder. SQL files in a `migrations/` folder or with a numbered name no longer count. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A program can grant its pi subagents PostHog MCP tools with `subagentPosthogTools`. A granted subagent gets `call_posthog_tool`, which calls only those tools. - The warehouse program grants `external-data-sources-catalog-hints-create`. When the main agent had to copy the subagents' results into its own call, it sent 5 to 41 of about 300 descriptions. - `dispatch_agent` names the granted tools, and the child's tool list includes them. pi activates only the tools that the list names. - The `## Catalog hints` section lists each ORM once, without its files. Agents that saw the detected model files read only those files. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ints The PostHog catalog hints tool no longer takes source citations, so the Wizard does not read the HEAD commit or compute a repository path prefix. The catalog hints prompt section now lists only the ORM and SQL signals. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Subagents may also call `data-catalog-join-candidates-create`, so they send the joins that the code states. - `wizard warehouse` asks for `data_catalog:write`, which that tool needs. The default integration flow does not. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The intro now asks before login, and only a yes adds the two write scopes, the subagents' PostHog tools, and the step in the prompt. A run that cannot ask, such as --ci, skips the step. The question shows only with the wizard-warehouse-catalog-hints flag on. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Detection decides whether to ask about the tables, and it needs a flag request. A fast Continue started the run without the question. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sinan-ku
marked this pull request as ready for review
December 3, 2026 13:48
|
✅ Security review complete — 5 findings posted as a review, in 7 min. Add the |
- Block the two catalog tools for the parent agent when the user did not choose the step. - Check subagent PostHog calls against the program's tool lists, and scan their text before it leaves. - Stop a subagent and its PostHog call when the run is cancelled. - Name a SQL file to the agent only when it defines tables and holds no rows. - Give the e2e driver a separate action that says yes to the question. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019N3KXzMusrHH4bReAdKTw7
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019N3KXzMusrHH4bReAdKTw7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
When a user connects their app's database with
wizard warehouse, PostHog's AI enrichment sees only column names and types. The meaning of a column stays in the ORM models, which the setup agent can read but does not use.Changes
.sqlfiles. It skips tests, fixtures, and migration SQL..sqlfile counts only when it defines tables and holds no rows, so the prompt never names a database dump.## Catalog hintssection with one line for each ORM. Only SQL lines name a file, because agents that saw the detected model files read only those files.subagentPosthogTools. A granted subagent getscall_posthog_tool, which calls only those tools.wizard warehousegrantsexternal-data-sources-catalog-hints-createanddata-catalog-join-candidates-create(feat(data-catalog): store join candidates from the setup agent posthog#146020), so each subagent sends the descriptions it wrote and the joins it found.warehouse_table:writeanddata_catalog:writeto the login, the subagents' tools, and the step in the prompt. The default integration flow asks for neither scope.wizard-warehouse-catalog-hintsflag on, and only when the project has ORM models and an app database. The flag is read before login, so it can target a percentage or a version, not a person.--ci, skips the step.deniedPosthogToolssetting blocks both catalog tools for the parent agent too. A personal API key can already hold the scopes.call_posthog_toolagainst the program's tool lists and scans its text for secrets. A cancelled run stops its subagents and their calls.Note
The same pi rule means the subagent's scrubbed
bashwas never active. This PR leaves that unchanged.The tool and its flag come from PostHog/posthog#144563 and PostHog/posthog#144739. The skill side is PostHog/context-mill#577.
Test plan
🤖 Generated with Claude Code