Skip to content

[2] Synthetic recipe fixtures for agent assembly - #27

Merged
FlyOverCoderKY merged 7 commits into
mainfrom
grok/agent-assembly-phase-2
Jul 29, 2026
Merged

FlyOverCoderKY merged 7 commits into
mainfrom
grok/agent-assembly-phase-2

Conversation

@FlyOverCoderKY

Copy link
Copy Markdown
Contributor

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

  • P1 cf-passkey-accounts (Northshelf Branch) — Identity + Sessions + durable rate limits + claims projection under recipes/cf-passkey-accounts/
  • P2 storage-audit-mail-outbox (Yard Loan) — inventory + audit + mail job in one transact under recipes/storage-audit-mail-outbox/
  • Catalog marks both fixtures green / recipe_package
  • /examples recipe index + ?raw excerpts from fixtures only
  • Synthetic domains only; not pegma.dev production account routes

Test 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/P2

Residual risks

  • P3–P6 fixtures still pending; deferred D1–D2 await package publication
  • Fixture tests use memory store; production adapter choice is documented, not exercised in Workers pool for these recipes

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.
Copilot AI review requested due to automatic review settings July 29, 2026 13:08
@cursor

cursor Bot commented Jul 29, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 204312f19a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/pages/examples.astro Resolved

Copilot AI 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.

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).
recipes/storage-audit-mail-outbox/composition.ts Adds Yard Loan fixture: single-partition transact that commits loan+audit+mail outbox together.
recipes/storage-audit-mail-outbox/composition.test.ts Tests atomic commit and rollback/no-orphans behavior for the Yard Loan fixture.
recipes/README.md Documents fixture rules and lists available recipes.
recipes/cf-passkey-accounts/composition.ts Adds Northshelf fixture: Identity + Sessions + durable rate limits + claims projection wiring.
recipes/cf-passkey-accounts/composition.test.ts Tests composition wiring and a few Identity flows; validates secret requirement.
public/llms.txt Updates agent-facing index to point to recipe fixtures under recipes/.
package.json Extends check to typecheck recipes and adds @pegma/audit.
package-lock.json Locks new @pegma/audit dependency tree.
docs/catalog/RECIPE_BACKLOG.md Marks P1/P2 fixture entries as green and links to recipes/ paths.
docs/catalog/GAP_INVENTORY.md Updates /examples and Phase status notes to reflect Phase 2 fixture landing.
docs/AGENT_ASSEMBLY_PLAN.md Marks Phase 2 complete for P1/P2 and documents recipes/ as the chosen home.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Use systemClock by default in the Northshelf composition (tests inject fixedClock),
clarify secret validation errors, and excerpt whole fixture functions on /examples.
@FlyOverCoderKY

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4f0e396cf0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

openNorthshelfSession no longer accepts a separate principalId argument that
could disagree with claims.subject and create a cross-account session.
@FlyOverCoderKY

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9df6a11f00

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/pages/examples.astro Resolved
Return object-literal types broke brace matching on /examples; use CheckoutResult
and skip the parameter list before locating the function body brace.
@FlyOverCoderKY

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 304ecce610

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Memory is no longer a silent default for Northshelf or Yard Loan; tests pass
createMemoryStore() and production hosts must inject a durable adapter.
@FlyOverCoderKY

Copy link
Copy Markdown
Contributor Author

@codex review

1 similar comment
@FlyOverCoderKY

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 706c38959a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/data/recipe-backlog.ts Resolved
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.
@FlyOverCoderKY

Copy link
Copy Markdown
Contributor Author

@codex review

@github-actions

github-actions Bot commented Jul 29, 2026 •

Copy link
Copy Markdown

Grok Grok Build Review — no issues

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.

Reviewed commit 67d5027 · workflow run

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: 26145bfd6b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grok 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.

🐞 0 bugs · ⚠️ 1 warnings · 🤏 0 nits

Reviewed commit 26145bf · workflow run

The fixture partitions by desk, not per loan; the type comment now matches
storage-core single-partition transaction scope.
@FlyOverCoderKY

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 67d502706a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@FlyOverCoderKY
FlyOverCoderKY merged commit be45d03 into main Jul 29, 2026
2 checks passed
@FlyOverCoderKY
FlyOverCoderKY deleted the grok/agent-assembly-phase-2 branch July 29, 2026 14:26
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.

2 participants