Skip to content

Wire Mastra populate through self-healing#34

Draft
giaphutran12 wants to merge 1 commit into
codex/mastra-self-healing-runtimefrom
codex/mastra-self-healing-wiring
Draft

Wire Mastra populate through self-healing#34
giaphutran12 wants to merge 1 commit into
codex/mastra-self-healing-runtimefrom
codex/mastra-self-healing-wiring

Conversation

@giaphutran12
Copy link
Copy Markdown
Collaborator

@giaphutran12 giaphutran12 commented May 22, 2026

Summary

  • route protected POST /populate through the self-healing populate runner instead of the old pre-clear Mastra workflow
  • add a durable default recipe author, filesystem-backed runner default, and Convex row writer
  • replace dataset rows with one internal Convex mutation after validation passes, so rejected candidates do not clear app data
  • persist Docker dev recipe manifests on a named volume via POPULATE_RECIPE_STORE_DIR
  • move the Mastra benchmark adapter onto the self-healing service with an isolated in-memory recipe store per prompt
  • fail fast on missing Convex/OpenRouter/TinyFish runtime keys before spending populate agent work

Verification

  • npm --prefix backend test: 30/30 pass
  • npm --prefix backend run build: pass
  • node --check benchmarks/dataset-agent/adapters/mastra-populate-adapter.mjs: pass
  • benchmark mcp-docs-pages without keys: blocked cleanly with missing OPENROUTER_API_KEY + TINYFISH_API_KEY
  • bun run build in frontend: blocked on existing missing frontend/convex/_generated/api; convex codegen also blocked because CONVEX_DEPLOYMENT is not configured in this shell

Reviewer fixes

  • added one-call Convex replaceByDataset mutation instead of clear then insert calls
  • added fail-fast admin/OpenRouter/TinyFish key preflight before expensive self-healing/runtime work
  • made Docker recipe state durable with populate_recipe_data volume and explicit store dir

Notes

@giaphutran12 giaphutran12 self-assigned this May 22, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 22, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: a5df7488-0586-4fa5-8f56-1a6164512dc5

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/mastra-self-healing-wiring

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 and usage tips.

@giaphutran12 giaphutran12 force-pushed the codex/mastra-self-healing-wiring branch from 9cb7209 to 654eb3a Compare May 22, 2026 12:23
@giaphutran12 giaphutran12 force-pushed the codex/mastra-self-healing-wiring branch from 654eb3a to 823fa38 Compare May 22, 2026 12:29
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.

1 participant