You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[2] Synthetic recipe fixtures for agent assembly - #27
Phase 2 of docs/AGENT_ASSEMBLY_PLAN.md: CI-tested synthetic recipe fixtures so the composition catalog can cite green wiring and /examples can grow without inventing code.
Add CI-tested Northshelf accounts and Yard Loan outbox compositions under
recipes/, mark those catalog entries green, and grow /examples into a recipe
index that quotes only fixture and package sources.
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Adds Phase 2 “synthetic recipe fixtures” to the site repo so the catalog and /examples can cite CI-tested composition wiring (instead of invented snippets), with P1/P2 marked green and backed by Vitest coverage.
Changes:
Introduces two synthetic recipe fixtures under recipes/ (Northshelf accounts; Yard Loan storage+audit+mail outbox) with new Vitest tests and a dedicated recipes tsconfig.
Updates catalog/metadata and docs to mark P1/P2 fixtures as green / recipe_package with citations pointing at recipes/.
Expands /examples, vitest.config.ts, and npm run check to index/quote recipe fixtures and include recipe tests in CI.
Reviewed changes
Copilot reviewed 15 out of 16 changed files in this pull request and generated 1 comment.
Show a summary per file
File
Description
vitest.config.ts
Includes recipes/**/*.test.ts in the node Vitest suite.
src/pages/examples.astro
Adds recipe index and renders excerpted ?raw snippets from CI-tested fixtures.
src/data/recipe-backlog.ts
Marks P1/P2 fixtures as recipe_package + green and updates citations to recipes/.
src/data/compile-catalog.test.ts
Updates assertions to require green fixtures only for CI-tested recipes and keeps others non-green.
recipes/tsconfig.json
Adds strict TS config for recipe fixtures (noEmit).
Use systemClock by default in the Northshelf composition (tests inject fixedClock),
clarify secret validation errors, and excerpt whole fixture functions on /examples.
Northshelf composition requires host mail ports and exposes createMailWorker;
tests drain a recording provider. Catalog green recipes publish name@version
pins matching the fixture lockfile.
Review complete. No issues found — the changes look solid.
Phase 2 exit criteria are met with technically sound work. The P1 and P2 fixtures under recipes/ exercise real package composition, are covered by vitest, and are the only sources quoted on /examples; the catalog correctly promotes both entries to green recipe_package with exact 0.x pins. Composition roots require an injected Store, keep synthetic domains isolated from production account routes, and document durable adapter choice without claiming memory durability. Residual gaps (P3–P6, D1 pool coverage for these recipes) are already stated and do not undermine this change set.
The reason will be displayed to describe this comment to others. Learn more.
Grok Build Review
This pull request delivers the required Phase 2 fixtures with explicit composition roots, CI coverage, and catalog//examples citations that track real recipe sources. The Northshelf and Yard Loan wiring matches the backlog intents and avoids inventing example code. One documentation defect remains: the Yard Loan record type comment misstates the partition scope that defines the atomic transaction boundary.
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
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
Phase 2 of docs/AGENT_ASSEMBLY_PLAN.md: CI-tested synthetic recipe fixtures so the composition catalog can cite green wiring and /examples can grow without inventing code.
Exit criteria
cf-passkey-accounts(Northshelf Branch) — Identity + Sessions + durable rate limits + claims projection underrecipes/cf-passkey-accounts/storage-audit-mail-outbox(Yard Loan) — inventory + audit + mail job in onetransactunderrecipes/storage-audit-mail-outbox/green/recipe_package/examplesrecipe index +?rawexcerpts from fixtures onlyTest evidence
npm run check— pass (astro + worker + recipes tsc)npm test— 131 node + 1 d1 tests green (includes 6 recipe tests)npm run build— static site + catalog.json with green P1/P2Residual risks