feat: corpus-back echo recipe loader + hello-world#90
Merged
KailasMahavarkar merged 1 commit intomainfrom Apr 21, 2026
Merged
Conversation
Adds corpus support to `src/plugins/echo/tools/get-recipe.ts`. Tool now reads per-recipe slices from `corpus/backend/echo/<name>.yaml`, validates required fields (category, description, when, code), and falls back to the in-file RECIPES registry when the corpus entry is missing or invalid. Creates the echo corpus namespace: - `corpus/backend/echo/index.yaml` registers the `backend.echo` namespace and recipe files - `corpus/backend/echo/hello-world.yaml` captures the minimal routing recipe (echo.New() + GET + e.Start gotchas) - `corpus/index.yaml` registers the new namespace New `tests/echo-recipe-corpus-backed-tools-behaviour.test.ts` asserts corpus source for hello-world and fallback for crud-api. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
KailasMahavarkar
added a commit
that referenced
this pull request
Apr 22, 2026
Destructive reset of repo tree to 62f487e (feat: expand platform support to 12 IDEs/CLIs with format-aware patching) from 2026-04-15. Wipes all work merged to main after 62f487e including PRs #63..#92: docker-primary fixes, topology manifest introduction, routing/artifact contracts, workspace-first routing, all corpus-backed slice PRs (#81..#90), corpus/tests removal (#91), MCP runtime deletion + topology enforcement (#92). Tree equals 62f487e exactly. This is a destructive reset expressed as a single forward commit because branch protection on main forbids non-fast-forward push; the admin-merge path is used instead. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
src/plugins/echo/tools/get-recipe.tswith a generic per-recipe loader (validates name/category/description/when/code) that falls back to the in-file RECIPES registry when the slice is missingbackend.echocorpus namespacebackend.echoincorpus/index.yamltests/echo-recipe-corpus-backed-tools-behaviour.test.tsasserts corpus source for hello-world and fallback for crud-apiTest plan