Repository navigation
[0] Catalog schema, gap inventory, recipe backlog - #25
Conversation
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.
|
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. |
|
@codex review |
There was a problem hiding this comment.
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_VERSION0.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.
There was a problem hiding this comment.
💡 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".
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.
|
@codex review |
There was a problem hiding this comment.
💡 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".
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.
|
@codex review |
There was a problem hiding this comment.
💡 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".
recipePackagesReady parses scoped package specifiers so pinned recipes match catalog package names, and parseCompositionCatalog checks dependency shape and DependencyKind instead of casting.
|
@codex review |
There was a problem hiding this comment.
💡 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".
Trailing name@ is not a bare package. Fixture status green requires a real fixture kind so catalog clients cannot treat backlog citations as proven.
|
@codex review |
There was a problem hiding this comment.
💡 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".
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.
|
@codex review |
There was a problem hiding this comment.
💡 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` | |
There was a problem hiding this comment.
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 } : {}), |
There was a problem hiding this comment.
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 👍 / 👎.
Plan
docs/AGENT_ASSEMBLY_PLAN.md— Phase 0 (catalog schema and gap inventory).What
src/data/catalog-schema.ts, v0.1.0)PegmaComponent, prioritized synthetic recipe backlogdocs/catalog/example-catalog.json(not a public compile artifact)Exit criteria
Test evidence
npm run test:node— 114 passed (includes 6 catalog schema tests)npm run check— cleannpm run build— static site buildsResidual risk