Skip to content

feat: Add eda-analyst kit - #319

Open
081rishu wants to merge 13 commits into
Lamatic:mainfrom
081rishu:feat/eda-analyst-kit
Open

feat: Add eda-analyst kit#319
081rishu wants to merge 13 commits into
Lamatic:mainfrom
081rishu:feat/eda-analyst-kit

Conversation

@081rishu

@081rishu 081rishu commented Aug 3, 2026

Copy link
Copy Markdown

EDA Analyst — autonomous exploratory-data-analysis agent

Point it at a CSV and it returns a self-contained interactive dashboard — after profiling, cleaning, and analyzing the data, checking its own work at every step.

Principle: code computes every number; the LLM only makes decisions (what to clean, how to impute, which analyses to run). The model never sees raw rows and never emits a statistic, so the output can't be silently hallucinated.

Pipeline

Extract → Profile → Sanitize (chunked LLM clean-planning → apply → validation gate that reverts on any regression) → Analyze (plan → validate → conditional re-plan → execute → findings gate) → Visualize (self-contained HTML + Chart.js).

Two guarantees: cleaning is fail-safe (reverts to the original data if it would degrade it), and cost is adaptive (extra LLM calls only fire on wide data / incomplete plans).

Contents

  • flows/eda-analyst.ts — the flow, exported from Lamatic Studio (prompts / model-configs / scripts / constitution all @referenced).
  • apps/ — a Next.js app: enter a CSV URL → view the dashboard in-page → download it as .html.

Verified

  • App builds cleanly (npm run build).
  • Flow call is live-verified (Titanic → chartCount: 5, validated: true).
  • All @reference paths resolve; PR touches only kits/eda-analyst/.

Test input: { "fileUrl": "https://raw.githubusercontent.com/datasciencedojo/datasets/master/titanic.csv" }

  • Added the eda-analyst kit configuration, documentation, constitution, environment templates, and ignore rules.
  • Added a Next.js app for CSV URL submission, Lamatic workflow execution, validation status, dashboard embedding, and HTML report download.
  • Added Tailwind CSS, shadcn/ui components, TypeScript, Next.js, PostCSS, and dependency configuration.
  • Added a flow with triggerNode, extractFromFileNode, codeNode, instructorLLMNode, and responseNode nodes.
  • The flow extracts CSV data, profiles columns and statistics, detects duplicates and correlations, and chunks profile metadata.
  • The flow uses LLM nodes to create chunked cleaning plans and exploratory-analysis plans.
  • Code nodes clean data through column removal, imputation, and deduplication.
  • The flow validates cleaning results and rolls back invalid changes.
  • The flow validates, merges, and conditionally replans analysis tasks based on dataset capabilities.
  • The flow computes findings and removes invalid findings and charts.
  • The flow renders a self-contained Chart.js dashboard with profiles, cleaning logs, findings, and data-quality notes.
  • The flow returns dashboard HTML, chart count, and validation status.
  • Added three gpt-5.1 model configurations and six prompts for cleaning, analysis planning, and plan refinement.
  • Added code-node scripts for extraction, profiling, chunking, cleaning, validation, task merging, findings generation, findings validation, and dashboard rendering.

@coderabbitai

coderabbitai Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@081rishu, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 20 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: ffcc47cd-7406-418c-a427-68bd9b3c9bef

📥 Commits

Reviewing files that changed from the base of the PR and between 6b63d83 and 05d4152.

📒 Files selected for processing (1)
  • kits/eda-analyst/scripts/eda-analyst_code-node-459_code.ts

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Walkthrough

The PR adds an EDA Analyst kit. It profiles and cleans CSV data, validates and executes analysis plans, generates dashboards, and exposes the workflow through a Next.js application with setup documentation.

Changes

EDA Analyst

Layer / File(s) Summary
Kit contracts and model instructions
kits/eda-analyst/lamatic.config.ts, kits/eda-analyst/constitutions/default.md, kits/eda-analyst/model-configs/*, kits/eda-analyst/prompts/*, kits/eda-analyst/.env.example, kits/eda-analyst/.gitignore, kits/eda-analyst/apps/.env.example, kits/eda-analyst/apps/.gitignore
Defines kit metadata, safety rules, model settings, prompts, environment templates, and repository ignore rules.
CSV profiling and cleaning validation
kits/eda-analyst/scripts/*579*, kits/eda-analyst/scripts/*941*, kits/eda-analyst/scripts/*773*, kits/eda-analyst/scripts/*781*, kits/eda-analyst/scripts/*629*, kits/eda-analyst/scripts/*458*, kits/eda-analyst/flows/eda-analyst.ts
Extracts and profiles rows, chunks metadata, applies cleaning actions, merges batch plans, and validates cleaned results.
Insight planning and analysis execution
kits/eda-analyst/scripts/*459*, kits/eda-analyst/scripts/*443*, kits/eda-analyst/scripts/*159*, kits/eda-analyst/scripts/*706*, kits/eda-analyst/flows/eda-analyst.ts
Validates analysis tasks, supports replanning, executes supported analyses, and filters invalid findings.
Dashboard rendering and workflow wiring
kits/eda-analyst/scripts/*396*, kits/eda-analyst/flows/eda-analyst.ts
Connects downstream workflow stages and generates escaped HTML with charts, profiles, cleaning details, and validation status.
Web application and operating documentation
kits/eda-analyst/apps/*, kits/eda-analyst/README.md, kits/eda-analyst/agent.md
Adds the Next.js interface, workflow invocation, dashboard display and download behavior, styling, configuration, setup guidance, and troubleshooting documentation.

Suggested reviewers: amanintech, d-pamneja

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 17.95% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the primary change: adding the eda-analyst kit.
Description check ✅ Passed The description clearly explains the kit, pipeline, contents, validation evidence, and scope, although it omits the repository checklist.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

:robot_face: AgentKit Structural Validation

New Contributions Detected

  • Kit: kits/eda-analyst

Check Results

Check Status
No edits to existing kits ✅ Pass
Required root files present ✅ Pass
Flow .ts files present ✅ Pass
lamatic.config.ts valid ✅ Pass
No changes outside kits/ ✅ Pass

🎉 All checks passed! This contribution follows the AgentKit structure.

@coderabbitai coderabbitai Bot left a comment

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.

Actionable comments posted: 21

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@kits/eda-analyst/.gitignore`:
- Around line 3-4: Update the environment-file ignore rules in
kits/eda-analyst/.gitignore (lines 3-4) and kits/eda-analyst/apps/.gitignore
(lines 14-17) to use the broad .env* pattern, while explicitly allowing
.env.example with !.env.example in both files.

In `@kits/eda-analyst/agent.md`:
- Around line 11-15: Update the “Processing (three guarded stages)” heading in
the pipeline description to state “four guarded stages,” leaving the Profile,
Sanitize, Analyze, and Visualize stage descriptions unchanged.

In `@kits/eda-analyst/apps/actions/orchestrate.ts`:
- Around line 11-22: Update analyze to import ../../lamatic.config and resolve
the workflow step definition from that config instead of reading EDA_ANALYST
directly from process.env. Use the configured step’s flow identifier when
executing the GraphQL workflow, while preserving the existing API URL, project
ID, and API key handling.
- Around line 32-43: Update the direct fetch call in the action to pass an
AbortSignal.timeout deadline, then check res.ok before calling res.json(). For
non-success responses, throw a clear request error without attempting JSON
parsing; preserve JSON parsing only for successful responses.
- Around line 27-29: Strengthen URL validation in the orchestration handler
before the server-side fetch: resolve the hostname and reject loopback, private,
link-local, metadata, and other non-public network targets, including redirects
if the HTTP client follows them. Also require the URL path or response content
type to identify a CSV, while preserving the existing invalid-input error
response and fetch flow for valid public CSV URLs.

In `@kits/eda-analyst/apps/app/page.tsx`:
- Around line 68-84: Update the AnalyzeResult handling in the page component to
explicitly cover incomplete results: failed responses must display a fallback
message when res.error is absent, and successful responses must display a
fallback when res.dashboardHtml is absent instead of silently rendering nothing.
Prefer defining a discriminated success/error union for AnalyzeResult and keep
the existing dashboard rendering only for successful results with dashboardHtml.
- Around line 45-60: Update the input in the page component to provide a
programmatic accessible name via a label or aria-label, and replace each
clickable sample span rendered by SAMPLES.map with a keyboard-accessible button
type="button" while preserving its setUrl behavior and styling.
- Around line 17-23: Update run() to validate the trimmed URL before submitting,
handle both rejected and thrown analyze() failures without leaving the UI stuck,
and move setLoading(false) into a finally block so loading always resets.
Preserve the existing result reset and successful setRes flow.
- Line 20: Harden the URL handling around analyze() by parsing fileUrl and
rejecting non-public schemes before the workflow is contacted; resolve the
hostname and reject loopback, private, link-local, and cloud-metadata
destinations, revalidating every redirect target. Add bounded request timeouts
and response-size limits, and ensure the existing analyze() flow proceeds only
after all URL and network checks pass.
- Around line 43-84: Replace the page’s useState-driven native form and
handwritten styling with the mandated Tailwind CSS v4+, shadcn/ui,
react-hook-form with zod validation, and lucide-react UI stack. Update the form
and submit flow around the visible URL input, Analyze button, loading state, and
sample controls while preserving their existing behavior, and add the required
dependencies and configuration for these packages.

In `@kits/eda-analyst/flows/eda-analyst.ts`:
- Around line 146-174: The duplicated buildProfile implementations in
eda-analyst_code-node-941_code.ts and eda-analyst_code-node-781_code.ts must
remain synchronized. Add matching comments to both scripts identifying them as a
mirrored pair and explicitly naming the authoritative file; if the runtime
supports shared script references, replace the duplicate with a reference to the
authoritative script.
- Around line 87-129: Update the extractFromFileNode_202 configuration in the
eda-analyst flow to replace maxRows "0" with a finite default CSV row limit.
Preserve the existing extraction settings and choose a limit that bounds payload
size before profiling and analysis.

In `@kits/eda-analyst/prompts/eda-analyst_instructor-llmnode-400_system_0.md`:
- Line 1: Restrict ID-based dropping to columns explicitly identified by a
name-matched or non-continuous profile signal, not isLikelyId=true alone. Update
the drop guidance in
kits/eda-analyst/prompts/eda-analyst_instructor-llmnode-400_system_0.md:1 and
the analysis-exclusion guidance in
kits/eda-analyst/prompts/eda-analyst_instructor-llmnode-740_system_0.md:12, and
apply the same tightened heuristic in both profiling copies,
kits/eda-analyst/scripts/eda-analyst_code-node-941_code.ts and
kits/eda-analyst/scripts/eda-analyst_code-node-781_code.ts, so continuous
all-distinct numeric columns remain eligible.

In `@kits/eda-analyst/prompts/eda-analyst_instructor-llmnode-740_user_1.md`:
- Line 1: Update
kits/eda-analyst/prompts/eda-analyst_instructor-llmnode-740_user_1.md: put
{{codeNode_458.output.profile}} on its own line and place “Plan the analysis
tasks.” on the following line. Update
kits/eda-analyst/prompts/eda-analyst_instructor-llmnode-832_user_1.md: add a
newline after “titles:” so {{batchNode_695.output.currentValue}} begins on its
own line.

In `@kits/eda-analyst/scripts/eda-analyst_code-node-159_code.ts`:
- Around line 36-42: Update the compare result construction around keys, data,
and the returned summary to handle keys.length === 0 before accessing keys[0] or
the final data element. Return an explicit no-data finding in that case,
including an empty chart payload as appropriate, while preserving the existing
chart and summary behavior for non-empty groups.
- Around line 69-71: Ensure failed analyses produced by the catch block in
kits/eda-analyst/scripts/eda-analyst_code-node-159_code.ts at lines 69-71 set
error to String(e) while retaining a user-readable summary. Keep the existing
f.error check unchanged in
kits/eda-analyst/scripts/eda-analyst_code-node-706_code.ts at line 8; it
requires no direct modification.

In `@kits/eda-analyst/scripts/eda-analyst_code-node-396_code.ts`:
- Line 70: Update the script-data construction around SPECS so the serialized
specs are safe for embedding in an HTML script block: escape literal “<”
characters and JavaScript line-separator characters U+2028 and U+2029 after
JSON.stringify and before concatenation. Preserve valid JSON parsing and the
existing dashboard behavior while preventing CSV-controlled values from
terminating the script element.

In `@kits/eda-analyst/scripts/eda-analyst_code-node-443_code.ts`:
- Line 22: Update the deduplication key in the add function to include t.agg
alongside the existing task fields, ensuring tasks with different aggregations
such as mean and sum are retained as distinct analyses.

In `@kits/eda-analyst/scripts/eda-analyst_code-node-629_code.ts`:
- Line 21: Guard the late-stage upstream outputs before property access: in
kits/eda-analyst/scripts/eda-analyst_code-node-629_code.ts lines 21-21, assign
chunker to a fallback object such as ch and read dedupe fields from ch; in
kits/eda-analyst/scripts/eda-analyst_code-node-458_code.ts lines 36-37, assign
applied to a fallback object such as app and read profile, cleanedRows, and
changelog from app.

In `@kits/eda-analyst/scripts/eda-analyst_code-node-781_code.ts`:
- Around line 33-37: Update the row construction in the map callback to use a
null-prototype object, or explicitly skip the dangerous __proto__, constructor,
and prototype keys during source copying. Ensure copied CSV columns still flow
through imputation and downstream processing without allowing header names to
mutate the object prototype.

In `@kits/eda-analyst/scripts/eda-analyst_code-node-941_code.ts`:
- Around line 7-85: Make buildProfile in
kits/eda-analyst/scripts/eda-analyst_code-node-941_code.ts#L7-L85 the sole
profiling implementation, moving it to a shared kit script if supported;
otherwise keep both copies synchronized and document their pairing. Remove the
duplicate buildProfile from
kits/eda-analyst/scripts/eda-analyst_code-node-781_code.ts#L47-L86 and reuse the
reference. Make validateTask in
kits/eda-analyst/scripts/eda-analyst_code-node-459_code.ts#L10-L20 the single
reason-returning validation rule set, and replace the boolean reimplementation
in kits/eda-analyst/scripts/eda-analyst_code-node-443_code.ts#L12-L19 with it.
🪄 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: Repository UI (base), Organization UI (inherited)

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: e1bae604-2906-4040-96c4-7ff3943f49b4

📥 Commits

Reviewing files that changed from the base of the PR and between 8b5b00c and 46b6c6b.

⛔ Files ignored due to path filters (1)
  • kits/eda-analyst/apps/package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (35)
  • kits/eda-analyst/.gitignore
  • kits/eda-analyst/README.md
  • kits/eda-analyst/agent.md
  • kits/eda-analyst/apps/.env.example
  • kits/eda-analyst/apps/.gitignore
  • kits/eda-analyst/apps/actions/orchestrate.ts
  • kits/eda-analyst/apps/app/globals.css
  • kits/eda-analyst/apps/app/layout.tsx
  • kits/eda-analyst/apps/app/page.tsx
  • kits/eda-analyst/apps/next.config.mjs
  • kits/eda-analyst/apps/package.json
  • kits/eda-analyst/apps/tsconfig.json
  • kits/eda-analyst/constitutions/default.md
  • kits/eda-analyst/flows/eda-analyst.ts
  • kits/eda-analyst/lamatic.config.ts
  • kits/eda-analyst/model-configs/eda-analyst_instructor-llmnode-400_generative-model-name.ts
  • kits/eda-analyst/model-configs/eda-analyst_instructor-llmnode-740_generative-model-name.ts
  • kits/eda-analyst/model-configs/eda-analyst_instructor-llmnode-832_generative-model-name.ts
  • kits/eda-analyst/prompts/eda-analyst_instructor-llmnode-400_system_0.md
  • kits/eda-analyst/prompts/eda-analyst_instructor-llmnode-400_user_1.md
  • kits/eda-analyst/prompts/eda-analyst_instructor-llmnode-740_system_0.md
  • kits/eda-analyst/prompts/eda-analyst_instructor-llmnode-740_user_1.md
  • kits/eda-analyst/prompts/eda-analyst_instructor-llmnode-832_system_0.md
  • kits/eda-analyst/prompts/eda-analyst_instructor-llmnode-832_user_1.md
  • kits/eda-analyst/scripts/eda-analyst_code-node-159_code.ts
  • kits/eda-analyst/scripts/eda-analyst_code-node-396_code.ts
  • kits/eda-analyst/scripts/eda-analyst_code-node-443_code.ts
  • kits/eda-analyst/scripts/eda-analyst_code-node-458_code.ts
  • kits/eda-analyst/scripts/eda-analyst_code-node-459_code.ts
  • kits/eda-analyst/scripts/eda-analyst_code-node-579_code.ts
  • kits/eda-analyst/scripts/eda-analyst_code-node-629_code.ts
  • kits/eda-analyst/scripts/eda-analyst_code-node-706_code.ts
  • kits/eda-analyst/scripts/eda-analyst_code-node-773_code.ts
  • kits/eda-analyst/scripts/eda-analyst_code-node-781_code.ts
  • kits/eda-analyst/scripts/eda-analyst_code-node-941_code.ts

Comment thread kits/eda-analyst/.gitignore Outdated
Comment thread kits/eda-analyst/agent.md Outdated
Comment thread kits/eda-analyst/apps/actions/orchestrate.ts Outdated
Comment thread kits/eda-analyst/apps/actions/orchestrate.ts Outdated
Comment thread kits/eda-analyst/apps/actions/orchestrate.ts Outdated
Comment thread kits/eda-analyst/scripts/eda-analyst_code-node-396_code.ts Outdated
Comment thread kits/eda-analyst/scripts/eda-analyst_code-node-443_code.ts Outdated
Comment thread kits/eda-analyst/scripts/eda-analyst_code-node-629_code.ts Outdated
Comment thread kits/eda-analyst/scripts/eda-analyst_code-node-781_code.ts
Comment thread kits/eda-analyst/scripts/eda-analyst_code-node-941_code.ts

@coderabbitai coderabbitai Bot left a comment

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.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@kits/eda-analyst/apps/app/page.tsx`:
- Around line 60-74: Update the URL input and buttons in the page component so
they cannot change the URL while loading is true: disable the input and each
sample button using the existing loading state, while preserving the current run
behavior and submitted URL display.

In `@kits/eda-analyst/scripts/eda-analyst_code-node-443_code.ts`:
- Line 25: Update the deduplication key inside the add function to include
t.action alongside the existing task fields, ensuring tasks with different
actions such as impute and drop-column produce distinct keys while preserving
current validation and deduplication behavior.

In `@kits/eda-analyst/scripts/eda-analyst_code-node-781_code.ts`:
- Line 34: Update the loop handling `drops` so membership is determined with an
own-property check, such as `Object.prototype.hasOwnProperty.call(drops, k)`,
instead of truthiness from `drops[k]`. Preserve dropping keys whose stored value
is an empty string and retain the existing protected-key exclusions.
🪄 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: Repository UI (base), Organization UI (inherited)

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 33138689-ac62-4ff4-94c2-d4063899b3d8

📥 Commits

Reviewing files that changed from the base of the PR and between 46b6c6b and 54f89cc.

📒 Files selected for processing (18)
  • kits/eda-analyst/.env.example
  • kits/eda-analyst/.gitignore
  • kits/eda-analyst/agent.md
  • kits/eda-analyst/apps/.gitignore
  • kits/eda-analyst/apps/actions/orchestrate.ts
  • kits/eda-analyst/apps/app/globals.css
  • kits/eda-analyst/apps/app/page.tsx
  • kits/eda-analyst/flows/eda-analyst.ts
  • kits/eda-analyst/prompts/eda-analyst_instructor-llmnode-740_user_1.md
  • kits/eda-analyst/prompts/eda-analyst_instructor-llmnode-832_user_1.md
  • kits/eda-analyst/scripts/eda-analyst_code-node-159_code.ts
  • kits/eda-analyst/scripts/eda-analyst_code-node-396_code.ts
  • kits/eda-analyst/scripts/eda-analyst_code-node-443_code.ts
  • kits/eda-analyst/scripts/eda-analyst_code-node-458_code.ts
  • kits/eda-analyst/scripts/eda-analyst_code-node-459_code.ts
  • kits/eda-analyst/scripts/eda-analyst_code-node-629_code.ts
  • kits/eda-analyst/scripts/eda-analyst_code-node-781_code.ts
  • kits/eda-analyst/scripts/eda-analyst_code-node-941_code.ts

Comment thread kits/eda-analyst/apps/app/page.tsx Outdated
Comment thread kits/eda-analyst/scripts/eda-analyst_code-node-443_code.ts Outdated
Comment thread kits/eda-analyst/scripts/eda-analyst_code-node-781_code.ts Outdated

@coderabbitai coderabbitai Bot left a comment

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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@kits/eda-analyst/scripts/eda-analyst_code-node-443_code.ts`:
- Line 25: The deduplication key built in add must avoid collisions when task
fields contain the "|" separator. Replace the concatenated key construction in
add with an encoded tuple of the same task fields, such as JSON serialization,
while preserving validation and duplicate filtering behavior.
🪄 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: Repository UI (base), Organization UI (inherited)

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: e977d9af-36af-4c04-b83c-7343cdd393bf

📥 Commits

Reviewing files that changed from the base of the PR and between 54f89cc and d896d1f.

📒 Files selected for processing (3)
  • kits/eda-analyst/apps/app/page.tsx
  • kits/eda-analyst/scripts/eda-analyst_code-node-443_code.ts
  • kits/eda-analyst/scripts/eda-analyst_code-node-781_code.ts

Comment thread kits/eda-analyst/scripts/eda-analyst_code-node-443_code.ts Outdated
@081rishu

081rishu commented Aug 4, 2026

Copy link
Copy Markdown
Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor
⚠️ Action not completed

Already reviewed.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@akshatvirmani

Copy link
Copy Markdown
Contributor

@081rishu there are still some comments left by coderabbit. Can you check?

@akshatvirmani

Copy link
Copy Markdown
Contributor

/validate

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

📡 Running Studio validation — results will appear here shortly.

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Studio Runtime Validation (Phase 2)

Studio validation passed. The kit loaded successfully in Lamatic Studio.

This PR is ready for final review and merge.

@coderabbitai coderabbitai Bot left a comment

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.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@kits/eda-analyst/apps/components/ui/input.tsx`:
- Around line 5-19: Update the Input component to use React.forwardRef,
accepting the input element ref alongside its existing props and attaching it to
the rendered <input>. Preserve the current className, type, prop spreading, and
component behavior so form.register("url") can retain React Hook Form’s ref
path.

In `@kits/eda-analyst/apps/package.json`:
- Around line 12-23: Add the required lamatic dependency to the package
manifest, then update the workflow orchestration in orchestrate.ts to use the
lamatic SDK instead of the custom GraphQL fetch. Preserve the existing workflow
inputs and behavior while routing the call through the SDK’s supported
integration.
🪄 Autofix

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: Repository UI (base), Organization UI (inherited)

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 4585fe9e-2889-40b3-b804-fe13d26b8199

📥 Commits

Reviewing files that changed from the base of the PR and between 68c56f2 and bfb3f71.

⛔ Files ignored due to path filters (1)
  • kits/eda-analyst/apps/package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (13)
  • kits/eda-analyst/apps/app/globals.css
  • kits/eda-analyst/apps/app/layout.tsx
  • kits/eda-analyst/apps/app/page.tsx
  • kits/eda-analyst/apps/components.json
  • kits/eda-analyst/apps/components/ui/badge.tsx
  • kits/eda-analyst/apps/components/ui/button.tsx
  • kits/eda-analyst/apps/components/ui/card.tsx
  • kits/eda-analyst/apps/components/ui/input.tsx
  • kits/eda-analyst/apps/components/ui/label.tsx
  • kits/eda-analyst/apps/lib/utils.ts
  • kits/eda-analyst/apps/package.json
  • kits/eda-analyst/apps/postcss.config.mjs
  • kits/eda-analyst/apps/tsconfig.json

Comment thread kits/eda-analyst/apps/components/ui/input.tsx Outdated
Comment thread kits/eda-analyst/apps/package.json
- isLikelyId flags all-distinct columns only when id-named, text, or
  integer-valued, so continuous numeric columns stay analytic (941 + 781)
- add trailing newline to two system prompts (MD047)
- remove deprecated baseUrl; @/* resolves via moduleResolution bundler
- add lamatic dependency; new lib/lamatic-client.ts (lazy, build-safe client)
- orchestrate.ts uses client.executeFlow(flowId, { fileUrl })
- preserves inputs, output mapping, validation, timeout and error handling
@081rishu

081rishu commented Aug 5, 2026

Copy link
Copy Markdown
Author

@CodeRabbit review

@coderabbitai

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai coderabbitai Bot left a comment

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.

Actionable comments posted: 2

♻️ Duplicate comments (1)
kits/eda-analyst/scripts/eda-analyst_code-node-941_code.ts (1)

48-51: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Keep all-distinct integer measures eligible for analysis.

Both profilers still use allInteger as an ID signal. This removes valid integer-valued measures when the downstream prompts drop or exclude isLikelyId columns.

  • kits/eda-analyst/scripts/eda-analyst_code-node-941_code.ts#L48-L51: require an ID-like name or another independent ID signal.
  • kits/eda-analyst/scripts/eda-analyst_code-node-781_code.ts#L65-L66: apply the identical heuristic change and keep both Code node copies synchronized.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@kits/eda-analyst/scripts/eda-analyst_code-node-941_code.ts` around lines 48 -
51, The all-distinct integer heuristic incorrectly classifies valid integer
measures as IDs. In
kits/eda-analyst/scripts/eda-analyst_code-node-941_code.ts:48-51 and
kits/eda-analyst/scripts/eda-analyst_code-node-781_code.ts:65-66, update the
isLikelyId logic so allInteger alone is not sufficient; require an ID-like
column name or another independent ID signal, and keep both Code node copies
identical.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@kits/eda-analyst/apps/components/ui/button.tsx`:
- Around line 37-56: Preserve React 18 ref forwarding across the public UI
primitives: in kits/eda-analyst/apps/components/ui/button.tsx lines 37-56, wrap
Button with React.forwardRef and pass the ref to Comp; in
kits/eda-analyst/apps/components/ui/card.tsx lines 5-62, wrap each Card
primitive with React.forwardRef<HTMLDivElement> and pass the ref to its rendered
div; in kits/eda-analyst/apps/components/ui/label.tsx lines 8-22, wrap Label
with React.forwardRef and pass the ref to LabelPrimitive.Root.

In `@kits/eda-analyst/prompts/eda-analyst_instructor-llmnode-740_system_0.md`:
- Line 14: Update the task-mix instruction in the EDA analyst prompt to make
requirements schema-dependent: require a “compare” task only when a categorical
or boolean column is available, and require a “relationship” task only when at
least two eligible numeric columns exist. Continue requiring a “distribution”
task when applicable, and allow fewer than 4–6 tasks when the schema cannot
support the full mix; never invent column names or emit invalid tasks.

---

Duplicate comments:
In `@kits/eda-analyst/scripts/eda-analyst_code-node-941_code.ts`:
- Around line 48-51: The all-distinct integer heuristic incorrectly classifies
valid integer measures as IDs. In
kits/eda-analyst/scripts/eda-analyst_code-node-941_code.ts:48-51 and
kits/eda-analyst/scripts/eda-analyst_code-node-781_code.ts:65-66, update the
isLikelyId logic so allInteger alone is not sufficient; require an ID-like
column name or another independent ID signal, and keep both Code node copies
identical.
🪄 Autofix

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: Repository UI (base), Organization UI (inherited)

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 6de19587-a55f-4056-966b-11c291e76d68

📥 Commits

Reviewing files that changed from the base of the PR and between 68c56f2 and d4ee10a.

⛔ Files ignored due to path filters (1)
  • kits/eda-analyst/apps/package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (18)
  • kits/eda-analyst/apps/actions/orchestrate.ts
  • kits/eda-analyst/apps/app/globals.css
  • kits/eda-analyst/apps/app/layout.tsx
  • kits/eda-analyst/apps/app/page.tsx
  • kits/eda-analyst/apps/components.json
  • kits/eda-analyst/apps/components/ui/badge.tsx
  • kits/eda-analyst/apps/components/ui/button.tsx
  • kits/eda-analyst/apps/components/ui/card.tsx
  • kits/eda-analyst/apps/components/ui/input.tsx
  • kits/eda-analyst/apps/components/ui/label.tsx
  • kits/eda-analyst/apps/lib/lamatic-client.ts
  • kits/eda-analyst/apps/lib/utils.ts
  • kits/eda-analyst/apps/package.json
  • kits/eda-analyst/apps/postcss.config.mjs
  • kits/eda-analyst/prompts/eda-analyst_instructor-llmnode-400_system_0.md
  • kits/eda-analyst/prompts/eda-analyst_instructor-llmnode-740_system_0.md
  • kits/eda-analyst/scripts/eda-analyst_code-node-781_code.ts
  • kits/eda-analyst/scripts/eda-analyst_code-node-941_code.ts

Comment thread kits/eda-analyst/apps/components/ui/button.tsx Outdated
Comment thread kits/eda-analyst/prompts/eda-analyst_instructor-llmnode-740_system_0.md Outdated
- prompt requires compare/relationship only when the schema supports them
- validator gates the missing-method re-plan on _planCapabilities so it never
  demands an impossible task; Titanic behavior unchanged (all caps true)
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Hi @081rishu! 👋

Before this PR can be reviewed by maintainers, please resolve all comments and requested changes from the CodeRabbit automated review.

Steps to follow:

  1. Read through all CodeRabbit comments carefully
  2. Address each issue raised (or reply explaining why you disagree)
  3. Push your fixes as new commits
  4. Once all issues are resolved, comment here so we can re-review

This helps keep the review process efficient for everyone. Thank you! 🙏

@081rishu

081rishu commented Aug 7, 2026

Copy link
Copy Markdown
Author

@CodeRabbit review

@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai coderabbitai Bot left a comment

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.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@kits/eda-analyst/prompts/eda-analyst_instructor-llmnode-740_system_0.md`:
- Around line 14-16: Align validateInsightPlan with the prompt’s capability
rules: require a low-cardinality groupBy column for compare tasks, require at
least two eligible numeric columns for relationship tasks, and allow
distribution for any analyzable column. Remove the unconditional replan
requirement for fewer than three tasks so sparse schemas terminate with their
valid smaller plan, while still rejecting invalid or invented tasks.

In `@kits/eda-analyst/scripts/eda-analyst_code-node-459_code.ts`:
- Around line 13-17: The _planCapabilities function must require an eligible
measure for compare: track numeric/boolean measure columns separately from
categorical group-by columns, and set compare true only when both a
low-cardinality category and an eligible measure exist, matching validateTask’s
measure criteria. Add a regression case covering a profile with no eligible
measure column.
🪄 Autofix

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: Repository UI (base), Organization UI (inherited)

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 5f4fd37b-985d-4dee-aa20-121f60d6ab21

📥 Commits

Reviewing files that changed from the base of the PR and between d4ee10a and fdfbd56.

📒 Files selected for processing (5)
  • kits/eda-analyst/apps/components/ui/button.tsx
  • kits/eda-analyst/apps/components/ui/card.tsx
  • kits/eda-analyst/apps/components/ui/label.tsx
  • kits/eda-analyst/prompts/eda-analyst_instructor-llmnode-740_system_0.md
  • kits/eda-analyst/scripts/eda-analyst_code-node-459_code.ts

Comment thread kits/eda-analyst/scripts/eda-analyst_code-node-459_code.ts
- validateInsightPlan uses a capability-aware task target (min(3, analyzable +
  compare + relationship)) so sparse profiles terminate with a valid smaller plan
- _cat requires a low-cardinality (<=20) groupBy in 459 and its 443 mirror,
  matching the validator message and the prompt
- prompt compare eligibility reworded to low-cardinality; Titanic unchanged
_planCapabilities now sets compare only when BOTH a low-cardinality groupBy and
a numeric/boolean measure exist, matching validateTask, so a categorical-only
profile no longer advertises compare support and cannot trigger an impossible
re-plan. Verified via simulation incl. the no-measure case; Titanic unchanged.
@081rishu

081rishu commented Aug 7, 2026

Copy link
Copy Markdown
Author

@CodeRabbit review

@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai coderabbitai Bot left a comment

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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@kits/eda-analyst/scripts/eda-analyst_code-node-459_code.ts`:
- Around line 42-48: Update the replanning logic around target and replanNeeded
to count unique valid tasks rather than valid.length. Reuse the merge node’s
canonical task fields and deduplication semantics before comparing against
target, so duplicate planner output cannot satisfy the target prematurely; add a
regression case covering repeated identical tasks.
🪄 Autofix

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: Repository UI (base), Organization UI (inherited)

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 2d8b72c8-8a96-4100-ae78-dd3ab157f520

📥 Commits

Reviewing files that changed from the base of the PR and between fdfbd56 and 6b63d83.

📒 Files selected for processing (3)
  • kits/eda-analyst/prompts/eda-analyst_instructor-llmnode-740_system_0.md
  • kits/eda-analyst/scripts/eda-analyst_code-node-443_code.ts
  • kits/eda-analyst/scripts/eda-analyst_code-node-459_code.ts

Comment thread kits/eda-analyst/scripts/eda-analyst_code-node-459_code.ts Outdated
Duplicate valid tasks no longer satisfy the target: count uniques with the exact
canonical key the merge node (443) dedupes on, so three copies of one task can't
stop replanning and produce a single-analysis plan. Verified via simulation.
@081rishu

081rishu commented Aug 7, 2026

Copy link
Copy Markdown
Author

@CodeRabbit review

@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor
⚠️ Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants