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
[5] Scaffold fixture and offline assembly eval harness - #33
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.
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.
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.
The reason will be displayed to describe this comment to others. Learn more.
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.
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.
…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.
The reason will be displayed to describe this comment to others. Learn more.
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.
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.
The reason will be displayed to describe this comment to others. Learn more.
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.
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.
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
Implements Agent Assembly Plan Phase 5 — synthetic scaffold + offline eval harness.
recipes/scaffold-cf-minimal/(Glass Wing) — empty-ish composition root with optional@pegma/healthprobe; pinned spine/health versions in catalog recipestatic-brochure-minimalfixture statusgreen(scaffold citation)evals/assembly-cases.ts+assembly-eval.tsscoreplan_compositionon four prompts (static brochure, passkeys on Workers, health only, no passwords)Phase exit criteria
Test evidence
npm run test:node— 179 passed (includes scaffold + eval)tsc -p recipes/tsconfig.json --noEmit— cleanastro check— 0 errorsResidual
/api/mcpif not yet operator-deployed after Phase 4.Plan
docs/AGENT_ASSEMBLY_PLAN.mdPhase 5