Conversation
📝 WalkthroughWalkthroughDocumentation for the onboarding agent and onboarding-metadata command was updated. The agent documentation title changed to reflect its role, and two interactive ordering checkpoints were added to the onboarding-metadata command to prompt humans for explicit display ordering of observation levels and tables. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (2)
.claude/commands/onboarding-metadata.md (2)
71-79: Add explicit validation rules before applying OL reordering.Please document a guard: only run
reorder_observation_levelswhen the provided order is a complete permutation of the created OL set (no missing/extra/duplicate items), otherwise ask for correction. This prevents accidental bad ordering writes from malformed human input.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.claude/commands/onboarding-metadata.md around lines 71 - 79, Add a validation guard before calling reorder_observation_levels: when the human replies with a requested order for OLs (for the prompt about "Should I set a specific display order..."), parse the provided identifiers and verify they form an exact permutation of the created OL set (same length, same unique IDs, no duplicates, no missing or extra items); if the check fails, do not call reorder_observation_levels and instead prompt the human to correct the order (show expected IDs and the detected problems). Implement this check in the logic that handles the human reply—compare the reply list against the created OL IDs, return validation errors for duplicates/missing/extra, and only invoke reorder_observation_levels(reordered_ids) when validation passes.
153-163: Require full table-order validation before callingreorder_tables.Please add the same safeguard here: validate that the provided slug list exactly matches the registered tables for the dataset (same members, no duplicates) before reordering; if not, pause and request a corrected list.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.claude/commands/onboarding-metadata.md around lines 153 - 163, When handling the "Table ordering checkpoint" reply (the user response parsing code that triggers reorder_tables), validate the user's slug list exactly matches the registered table slugs for the dataset: fetch the canonical list of registered slugs for dataset_slug, parse the user-provided order (support newline or comma-separated), trim and dedupe entries, then check that the set of provided slugs equals the set of registered slugs and that the provided list length equals the registered count (no missing or duplicate items). Only call reorder_tables(dataset_slug, requested_order) if that strict equality holds; otherwise pause/ask the human for a corrected list showing the expected slugs and explain the mismatch. Ensure this logic is added where the code currently calls reorder_tables after receiving the human reply.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.claude/agents/onboarding.md:
- Line 60: The note incorrectly refers to ordering being handled in
onboarding-metadata steps 7–8; update the text that mentions
`onboarding-metadata` so it points to the correct location where ordering logic
is documented (the section right after step 2 in `onboarding-metadata`) and
rephrase to say ordering is handled in onboarding-metadata immediately after
step 2 (and that you should prompt the human to adjust ordering here only if
they didn’t specify order in that section).
---
Nitpick comments:
In @.claude/commands/onboarding-metadata.md:
- Around line 71-79: Add a validation guard before calling
reorder_observation_levels: when the human replies with a requested order for
OLs (for the prompt about "Should I set a specific display order..."), parse the
provided identifiers and verify they form an exact permutation of the created OL
set (same length, same unique IDs, no duplicates, no missing or extra items); if
the check fails, do not call reorder_observation_levels and instead prompt the
human to correct the order (show expected IDs and the detected problems).
Implement this check in the logic that handles the human reply—compare the reply
list against the created OL IDs, return validation errors for
duplicates/missing/extra, and only invoke
reorder_observation_levels(reordered_ids) when validation passes.
- Around line 153-163: When handling the "Table ordering checkpoint" reply (the
user response parsing code that triggers reorder_tables), validate the user's
slug list exactly matches the registered table slugs for the dataset: fetch the
canonical list of registered slugs for dataset_slug, parse the user-provided
order (support newline or comma-separated), trim and dedupe entries, then check
that the set of provided slugs equals the set of registered slugs and that the
provided list length equals the registered count (no missing or duplicate
items). Only call reorder_tables(dataset_slug, requested_order) if that strict
equality holds; otherwise pause/ask the human for a corrected list showing the
expected slugs and explain the mismatch. Ensure this logic is added where the
code currently calls reorder_tables after receiving the human reply.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 62b07949-ffad-4d0c-b346-a5256051abb5
📒 Files selected for processing (2)
.claude/agents/onboarding.md.claude/commands/onboarding-metadata.md
| Reply "approved" to promote to prod, or describe what needs fixing. | ||
| ``` | ||
|
|
||
| Note: ordering steps are handled inside `onboarding-metadata` (steps 7–8 of that command). If the human did not specify an order during step 8, you may ask here whether they want to adjust ordering before promoting to prod. |
There was a problem hiding this comment.
Fix inaccurate step reference to ordering logic.
This line says ordering is handled in onboarding-metadata steps 7–8, but OL ordering is documented in that command right after step 2. Please update this reference to avoid operator confusion during the checkpoint flow.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In @.claude/agents/onboarding.md at line 60, The note incorrectly refers to
ordering being handled in onboarding-metadata steps 7–8; update the text that
mentions `onboarding-metadata` so it points to the correct location where
ordering logic is documented (the section right after step 2 in
`onboarding-metadata`) and rephrase to say ordering is handled in
onboarding-metadata immediately after step 2 (and that you should prompt the
human to adjust ordering here only if they didn’t specify order in that
section).
Summary by CodeRabbit
Release Notes
Documentation
New Features