Skip to content

[5] Scaffold fixture and offline assembly eval harness - #33

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

FlyOverCoderKY merged 5 commits into
mainfrom
grok/agent-assembly-phase-5

Conversation

@FlyOverCoderKY

Copy link
Copy Markdown
Contributor

Summary

Implements Agent Assembly Plan Phase 5 — synthetic scaffold + offline eval harness.

  • Scaffold: recipes/scaffold-cf-minimal/ (Glass Wing) — empty-ish composition root with optional @pegma/health probe; pinned spine/health versions in catalog recipe
  • Catalog: static-brochure-minimal fixture status green (scaffold citation)
  • Eval: evals/assembly-cases.ts + assembly-eval.ts score plan_composition on four prompts (static brochure, passkeys on Workers, health only, no passwords)
  • Measured improvement: baseline (no catalog) pass rate 0; catalog planner pass rate 1.0 on the synthetic Pegma-shaped eval catalog in CI

Phase exit criteria

  • Public synthetic starter with pinned known-good versions and empty-ish composition root
  • Offline/CI eval set for the four plan prompts, scored on package selection and refusal compliance
  • Measured improvement catalog planner vs baseline (no planner)

Test evidence

  • npm run test:node — 179 passed (includes scaffold + eval)
  • tsc -p recipes/tsconfig.json --noEmit — clean
  • astro check — 0 errors

Residual

  • Live multi-agent LLM A/B (web-search-only vs skill+catalog+MCP) remains optional outside CI; the offline harness is the automated gate.
  • Worker deploy still required for /api/mcp if not yet operator-deployed after Phase 4.

Plan

docs/AGENT_ASSEMBLY_PLAN.md Phase 5

Add a minimal Cloudflare-shaped Glass Wing composition root under
recipes/scaffold-cf-minimal and an offline plan_composition eval that
measures package selection and password-refusal compliance against the
Phase 5 prompt set. Catalog recipe static-brochure-minimal is green.
Copilot AI review requested due to automatic review settings July 29, 2026 16:50
@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.

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

This pull request completes Agent Assembly Plan Phase 5 with a green synthetic scaffold, catalog citation, and an offline assembly eval gated in CI. The ambient-item coverage rule in plan_composition correctly prevents host-only tags from selecting the static brochure scaffold under mixed core-capability requests, and the eval harness measures catalog planner improvement against an empty no-catalog baseline without overstating the scope of that measurement. Scaffold pins, recipe metadata, and fixture tests are consistent. No defects requiring changes were identified.

Reviewed commit ce0c6e5 · workflow run

@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: 2ef72a4636

ℹ️ 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
Comment thread evals/assembly-eval.test.ts Resolved
Comment thread evals/assembly-eval.ts Resolved

@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

The scaffold fixture and offline eval harness are structurally sound and meet the mechanical Phase 5 checklist: pinned composition root, green catalog citation, and a deterministic planComposition scorer. Two defects remain in catalog metadata and documentation. First, promoting static-brochure-minimal to green with a bare health capability tag causes production health-only plans to select the Glass Wing static-brochure recipe as primary while health-public-liveness is still pending. Second, the machine recipe source was updated without updating the declared narrative backlog, so agent-facing docs still describe the recipe as pending with no packages.

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

Reviewed commit 2ef72a4 · workflow run

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

Implements Agent Assembly Plan Phase 5 by adding a synthetic “Glass Wing” scaffold recipe, promoting the corresponding catalog entry to a green scaffold fixture, and introducing an offline/CI eval harness that scores plan_composition across four assembly prompts.

Changes:

  • Added a minimal Cloudflare-shaped scaffold composition root (recipes/scaffold-cf-minimal/) with optional health probe and Vitest coverage.
  • Updated catalog/backlog + tests to mark static-brochure-minimal as a green scaffold fixture and to include it in the “green” allowlist.
  • Added offline assembly eval cases + runner + CI test, plus a dedicated npm run eval:assembly script.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
vitest.config.ts Includes evals/**/*.test.ts in the Node Vitest run.
src/data/recipe-backlog.ts Promotes static-brochure-minimal to a green scaffold fixture with pinned packages/tags.
src/data/compile-catalog.test.ts Asserts the scaffold recipe is green + cited, and updates the “green IDs” set.
recipes/scaffold-cf-minimal/composition.ts Adds the “Glass Wing” scaffold composition root with optional health handler.
recipes/scaffold-cf-minimal/composition.test.ts Tests scaffold behavior (no-health default, optional health probe, no invented wiring).
recipes/README.md Adds the scaffold to the recipe index table.
public/llms.txt Documents the scaffold link for agents.
package.json Adds eval:assembly script to run the harness test.
evals/assembly-eval.ts Implements deterministic scoring of plan_composition against eval cases.
evals/assembly-eval.test.ts Adds CI test + synthetic Pegma-shaped catalog for offline eval runs.
evals/assembly-cases.ts Defines the four Phase 5 assembly prompts and assertions.
docs/AGENT_ASSEMBLY_PLAN.md Marks Phase 5 as shipped and documents scaffold + eval surfaces.

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

Comment thread src/data/recipe-backlog.ts Resolved
Comment thread evals/assembly-eval.test.ts Resolved
Comment thread evals/assembly-eval.test.ts Resolved
…aseline

Drop health from static-brochure-minimal capability tags so static_host
plans select the scaffold without capturing pure-health traffic. Score the
eval against compileCompositionCatalog with fixed npm pins. Baseline is an
empty plan scored with the same assertions, not a forced fail.
@FlyOverCoderKY

Copy link
Copy Markdown
Contributor Author

@codex review

@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

The Phase 5 scaffold and offline eval harness are structured correctly and exercise the real compiled catalog path. Promoting static-brochure-minimal to a green production recipe with ambient-only tags that include cloudflare creates a primary-recipe selection regression for common host-tagged plans. The scaffold fixture also statically depends on @pegma/health while the catalog install set lists only spine, so agents following the catalog and the citation will not get a consistent package set.

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

Reviewed commit 060b64a · workflow run

Comment thread src/data/recipe-backlog.ts Resolved

@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: 060b64a142

ℹ️ 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
Comment thread evals/assembly-eval.ts Resolved
Ambient-only recipes match only ambient-only requests so cloudflare does
not steal primary for storage plans. Scaffold no longer imports
@pegma/health (catalog packages stay spine-only). Clarify offline baseline
as no-catalog, not a simulated web-search LLM.
@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: 81329cf70e

ℹ️ 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/mcp-tools.ts Resolved

@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

The scaffold fixture, catalog green citation, and offline assembly eval harness are largely sound and align with Phase 5 intent. The ambient-only change in plan_composition is over-broad and regresses multi-capability plans that explicitly request logging (or other ambient capabilities) alongside core tags. Two documentation defects remain: recipes/README.md still claims every composition root requires a Store, and AGENT_ASSEMBLY_PLAN.md marks Phase 5 complete while Exit still requires a web-search baseline that this PR does not implement.

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

Reviewed commit 81329cf · workflow run

Comment thread src/data/mcp-tools.ts Resolved
Comment thread recipes/README.md Resolved
Comment thread docs/AGENT_ASSEMBLY_PLAN.md Resolved
Allow ambient-only components that share non-host ambient tags (logging)
on mixed plans while still blocking host-only scaffold theft. Qualify the
Store requirement for storage fixtures only. Align Phase 5 exit criteria
with the offline no-catalog gate.
@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: 001bf078eb

ℹ️ 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
Drop bare cloudflare from static-brochure-minimal capability tags so a
host-only plan does not recommend the static scaffold.
@FlyOverCoderKY

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: ce0c6e575d

ℹ️ 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 2d2a740 into main Jul 29, 2026
2 checks passed
@FlyOverCoderKY
FlyOverCoderKY deleted the grok/agent-assembly-phase-5 branch July 29, 2026 17:46
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