Skip to content

[0] Catalog schema, gap inventory, recipe backlog - #25

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

FlyOverCoderKY merged 6 commits into
mainfrom
grok/agent-assembly-phase-0

Conversation

@FlyOverCoderKY

Copy link
Copy Markdown
Contributor

Plan

docs/AGENT_ASSEMBLY_PLAN.md — Phase 0 (catalog schema and gap inventory).

What

  • TypeScript composition catalog schema (src/data/catalog-schema.ts, v0.1.0)
  • Schema docs, gap inventory vs PegmaComponent, prioritized synthetic recipe backlog
  • Illustrative docs/catalog/example-catalog.json (not a public compile artifact)
  • Vitest coverage for schema helpers + example catalog shape
  • Plan status updated; Phase 1 compile decisions recorded

Exit criteria

  • Schema documented (types + example JSON)
  • Recipe backlog prioritized (P1 accounts / P2 audit-mail outbox first)
  • No production architecture disclosure in recipe intents
  • Registry field gaps inventoried

Test evidence

  • npm run test:node — 114 passed (includes 6 catalog schema tests)
  • npm run check — clean
  • npm run build — static site builds

Residual risk

  • Example catalog is incomplete by design; Phase 1 must compile the full set from registry + version authority
  • Recipe fixtures remain pending (Phase 2)

Define schema 0.1.0 types, document the catalog shape, inventory registry
gaps, and prioritize synthetic recipe intents for published packages so
Phase 1 can compile catalog.json without inventing structure.
Copilot AI review requested due to automatic review settings July 29, 2026 03:46
@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

Introduces a Phase 0 “composition catalog” schema and supporting documentation to enable agent-facing package selection/wiring without inventing package facts. This establishes the typed contract, an illustrative example document, and a prioritized synthetic recipe backlog to drive Phase 1+ compilation and fixture work.

Changes:

  • Added TypeScript schema/types for a machine-readable composition catalog (CATALOG_SCHEMA_VERSION 0.1.0) plus small helper functions.
  • Added catalog documentation: schema spec, registry gap inventory, and a prioritized synthetic recipe backlog, along with an illustrative example-catalog.json.
  • Expanded Vitest scope to run site (src/) tests in addition to Worker tests, and added Vitest coverage for schema helpers + example catalog shape.

Reviewed changes

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

Show a summary per file
File Description
vitest.config.ts Expands Vitest include patterns to run src/**/*.test.ts tests alongside Worker tests.
src/data/catalog-schema.ts Adds the Phase 0 catalog schema types/constants and helper functions.
src/data/catalog-schema.test.ts Adds tests that validate schema constants and the example catalog’s shape/content constraints.
docs/catalog/SCHEMA.md Documents the catalog schema fields and design constraints for Phase 0.
docs/catalog/RECIPE_BACKLOG.md Adds prioritized synthetic recipe intents and constraints for future fixture work.
docs/catalog/GAP_INVENTORY.md Inventories gaps between current registry data and the new catalog schema, and records Phase 1 compile decisions.
docs/catalog/example-catalog.json Provides an illustrative (non-authoritative) example catalog document used for shape checking.
docs/AGENT_ASSEMBLY_PLAN.md Updates Phase 0 status and links to the newly added catalog artifacts.

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

Comment thread docs/catalog/RECIPE_BACKLOG.md Resolved
Comment thread docs/catalog/SCHEMA.md Resolved
Comment thread src/data/catalog-schema.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: 136e4e0c6a

ℹ️ 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 docs/catalog/GAP_INVENTORY.md Resolved
Comment thread src/data/catalog-schema.ts Resolved
Comment thread src/data/catalog-schema.test.ts Resolved
Quote fixture status literals, align SCHEMA.md types, pin schemaVersion to
the 0.1.0 constant, mark hand registry status as a compile gap, and allow
empty requiresPublished for brochure-style recipes.
@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: 2b95fccd53

ℹ️ 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 docs/catalog/GAP_INVENTORY.md Resolved
Comment thread src/data/catalog-schema.test.ts Resolved
Comment thread src/data/catalog-schema.ts Resolved
Drop the hand-copied component usability matrix from the gap inventory so
status stays compiled. Make isPublishUsable strict, add package-level and
recipe package readiness helpers, and parse example-catalog.json as unknown
with structural checks.
@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: 9b0cb62243

ℹ️ 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/catalog-schema.ts Resolved
Comment thread src/data/catalog-schema.test.ts Resolved
recipePackagesReady parses scoped package specifiers so pinned recipes match
catalog package names, and parseCompositionCatalog checks dependency shape
and DependencyKind instead of casting.
@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: 363f4aaffd

ℹ️ 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/catalog-schema.ts Resolved
Comment thread src/data/catalog-schema.test.ts Resolved
Trailing name@ is not a bare package. Fixture status green requires a real
fixture kind so catalog clients cannot treat backlog citations as proven.
@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: 35fc887c92

ℹ️ 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 docs/catalog/example-catalog.json Resolved
Comment thread src/data/catalog-schema.test.ts Resolved
Comment thread src/data/catalog-schema.ts Resolved
Replace real Pegma lifecycle facts in example-catalog.json with example-*
shape data, require componentId+adapterId on recipe adapters, and validate
fixture kinds plus capability tags in structural parsing.
@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: 49d84942a5

ℹ️ 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".

| | |
| --- | --- |
| **Intent** | A small Cloudflare Worker host for a fictional community library (“Northshelf Branch”) offers first-party accounts: passkey sign-in, email one-time codes for enrollment and recovery, server-side sessions, and durable rate limits on expensive auth paths. No passwords. |
| **Packages (published)** | `@pegma/identity`, `@pegma/sessions`, `@pegma/mail`, `@pegma/rate-limit`, `@pegma/authorization-identity`, `@pegma/storage-core`, `@pegma/storage-cloudflare-d1`, `@pegma/spine` |

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Compile publication claims instead of hard-coding them

The Packages (published) row embeds current lifecycle facts in a hand-maintained document. If any listed package is unpublished or renamed upstream, this backlog will continue advertising it as available until this repository is manually updated, bypassing the required build-time compilation from component plans. Generate this availability label from the catalog’s version authority or remove the publication claim.

AGENTS.md reference: AGENTS.md:L28-L30

Useful? React with 👍 / 👎.

return {
schemaVersion: CATALOG_SCHEMA_VERSION,
generatedAt: doc.generatedAt,
...(typeof doc.snapshotDate === 'string' ? { snapshotDate: doc.snapshotDate } : {}),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Reject malformed optional fields instead of dropping them

When an optional property is present with the wrong type, this purported structural validator silently omits it rather than rejecting the catalog; for example, { snapshotDate: 123 } passes even though CompositionCatalog.snapshotDate must be a string. The same pattern affects several optional component and recipe fields, so malformed JSON can satisfy the schema test and lose data during parsing. Validate present optional fields before constructing the result.

Useful? React with 👍 / 👎.

@FlyOverCoderKY
FlyOverCoderKY merged commit 9ca7dcd into main Jul 29, 2026
1 check passed
@FlyOverCoderKY
FlyOverCoderKY deleted the grok/agent-assembly-phase-0 branch July 29, 2026 04:21
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