Skip to content

[1] Compile catalog.json for agent composition - #26

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

FlyOverCoderKY merged 3 commits into
mainfrom
grok/agent-assembly-phase-1

Conversation

@FlyOverCoderKY

Copy link
Copy Markdown
Contributor

Plan

docs/AGENT_ASSEMBLY_PLAN.md — Phase 1 (compiled catalog artifact).

What

  • compileCompositionCatalog: registry + plan stage + npm latest pins + enrichment + recipe backlog
  • Static endpoint src/pages/catalog.json.ts → https://pegma.dev/catalog.json
  • Recipe backlog as src/data/recipe-backlog.ts (synthetic intents; fixtures pending)
  • Component enrichment (deps, adapters, hostMustProvide, capability tags)
  • llms.txt links the catalog without inlining it
  • Plan status: Phase 1 complete

Exit criteria

  • Agent can HTTP-fetch a complete, dated composition catalog
  • Unpublished packages explicitly flagged (published: false / publishUsability)

Test evidence

  • npm run test:node — 125 passed (includes compile-catalog tests with mocked npm/stages)
  • npm run check — clean
  • npm run build — emits dist/catalog.json (12 components, 8 recipes; support-desk + webhooks unpublished)

Residual risk

  • npm registry fetch at build time is fail-soft (null version if unreachable)
  • Recipe fixtures remain pending (Phase 2); no green fixture wiring in catalog
  • Release-projection Store not yet wired as version authority (npm only for Phase 1)

Add a build-time compiler over the component registry, plan stages, npm
pins, enrichment edges, and recipe backlog; prerender /catalog.json and
point llms.txt at it so agents can fetch dated package facts without
inventing versions.
Copilot AI review requested due to automatic review settings July 29, 2026 04:25
@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.

@FlyOverCoderKY

Copy link
Copy Markdown
Contributor Author

@codex review

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

This PR implements Phase 1 of the agent assembly plan by compiling and publishing a machine-readable composition catalog (/catalog.json) at site build time, so agents can fetch authoritative component/package metadata (including publishability and pins) instead of inventing package sets.

Changes:

  • Adds a prerendered src/pages/catalog.json.ts endpoint that emits the compiled catalog at https://pegma.dev/catalog.json.
  • Introduces a build-time catalog compiler (compileCompositionCatalog) that merges the component registry, plan stage aggregation, npm “latest” version resolution, enrichment, and a synthetic recipe backlog.
  • Adds schema-driven enrichment and tests to validate unpublished/partial publish states and recipe intent inclusion.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/pages/catalog.json.ts New prerendered JSON endpoint for the compiled composition catalog.
src/data/recipe-backlog.ts Adds prioritized synthetic recipe intents (fixtures pending) for catalog output.
src/data/compile-catalog.ts Implements the build-time compiler: registry + stage aggregation + npm pins + enrichment + recipes.
src/data/compile-catalog.test.ts Adds unit tests for schema emission, publishability flags, recipe intent inclusion, and enrichment.
src/data/catalog-enrichment.ts Defines curated component enrichment (deps, adapters, host responsibilities, capability tags).
public/llms.txt Links agents to catalog.json without inlining it; documents unpublished-package flags.
docs/AGENT_ASSEMBLY_PLAN.md Updates plan status to Phase 1 complete and documents new artifacts/endpoint.

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

Comment thread src/data/compile-catalog.ts Resolved
Comment thread src/data/compile-catalog.test.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: 2a49e51dc9

ℹ️ 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/compile-catalog.ts Resolved
Resolve package pins concurrently across components so a slow or flaky
registry cannot serialize the static catalog prerender.
@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: 1ab3d3510f

ℹ️ 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
storage-audit-mail-outbox needs durable inventory, audit, and outbox rows;
leave adapter selection to the host rather than recommending memory.
@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: 49c5d814b3

ℹ️ 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 7309c09 into main Jul 29, 2026
1 check passed
@FlyOverCoderKY
FlyOverCoderKY deleted the grok/agent-assembly-phase-1 branch July 29, 2026 04:44
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