Consume the platform capability map: capability_ids, developer resources panel, checks - #34
Merged
Conversation
…ces panel, checks lib/capabilities.snapshot.json is a committed copy of https://developers.nextcommerce.com/capabilities.json (npm run sync-capabilities refreshes it), so the build stays deterministic and offline. 39 pages the map cites now declare capability_ids; pages with ids render a developer resources panel with the developer guides for the same capability. check-capabilities.mjs (in prebuild and CI) verifies every merchant page the map cites exists here and every cited page declares its id. llms.txt, AGENTS.md, and the 404 page link the map and the domain bundles. Frontmatter schema gains audience, capability_ids, status, last_verified. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
next-devin
marked this pull request as ready for review
September 3, 2026 09:31
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
nextcommerce-docs | 9eed9d5 | Commit Preview URL Branch Preview URL |
Sep 03 2026, 10:09 AM |
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (1 changed file in incremental diff)
Previously reported findings — all resolved
Notes and assumptions
Previous Review Summaries (2 snapshots, latest commit dc9a2ce)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit dc9a2ce)Status: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)SUGGESTION
Files Reviewed (4 changed files)
Previously reported findings — now resolved
Notes and assumptions
Fix these issues in Kilo Cloud Previous review (commit adef38b)Status: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)SUGGESTION
Files Reviewed (4 changed files)
Previous review status:
Reviewed by minimax-m3 · Input: 34.7K · Output: 1.6K · Cached: 259.5K |
…ect impossible last_verified dates Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
next-devin
added a commit
to NextCommerceCo/developer-docs
that referenced
this pull request
Sep 3, 2026
… last_verified dates Same two fixes as the NextCommerceCo/docs#34 review, applied to this repo's copies. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…s; hoist the counts filter in the panel Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…t the whole file Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…ities depends on Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
next-devin
added a commit
to NextCommerceCo/developer-docs
that referenced
this pull request
Sep 3, 2026
…on, first CI workflow (#50) * Capability map: source, generator, JSON route, readable page, domain bundles content/capabilities.yaml is the hand-authored index; generate-capability-map.mjs validates it against the stable Admin API spec (operations by tag or id, webhook events), the content tree (developer pages), and the skills table, then writes lib/generated/capabilities.json and the generated /docs/capabilities page. Served at /capabilities.json (schema at /capabilities.schema.json) and rendered into six plain-Markdown bundles at /llms/<bundle>.txt: capability records for one domain followed by the full text of the developer pages they cite, with MDX components converted to Markdown. llms.txt lists the map and the bundles before the full corpus. Frontmatter gains audience, capability_ids, status, last_verified. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Deterministic validation: regenerate before validate-links, all heading fragments, first CI workflow validate-links now regenerates the reference trees first (same sequence locally and in CI) and accepts fragments for every heading level, which clears the standing h4 false alarm in apps/guides/fulfillment-service.mdx:150. check-agent-surfaces gains assertions for the capability map, the readable page, the bundles (size budget 400 KB, no MDX residue, absolute links), and llms.txt ordering. .github/workflows/ci.yml: npm ci, build, check. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Page metadata: descriptions on 60 authored pages, capability_ids derived from the map Counting rule (frozen): git-tracked content/docs/**/*.{md,mdx}; generated trees are ignored. 67 authored pages, 60 lacked a description. check-frontmatter.mjs requires a description on every authored page, validates the new fields, and keeps capability_ids consistent with the map (--write inserts them). Also fixes two typos found in passing (nak push, Submitting). Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Reciprocal merchant links on developer pages, live surface checks Every developer page the map cites (or that declares capability_ids) renders a panel linking the merchant guides for the same capability; the post-build check asserts the panel on every cited page. AGENTS.md and the 404 page point at the map and bundles. check-live-surfaces.mjs runs against the deployed sites weekly: sitemap, robots, llms.txt, map and bundle integrity, 404 recovery, the merchant search budget, and the deterministic half of the 10-question smoke set. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Review fixes: dedupe merchant links, escape bundle text in llms.txt, fail on unmatched operation tags, least-privilege workflows Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Keep file line endings when writing capability_ids; reject impossible last_verified dates Same two fixes as the NextCommerceCo/docs#34 review, applied to this repo's copies. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * check-frontmatter: detect line ending from the frontmatter block, not the whole file Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Consumes the platform capability map that NextCommerceCo/developer-docs#50 publishes at
https://developers.nextcommerce.com/capabilities.json. Step 6 of the docs agent-accessibility work that #32 started.What to look at
lib/capabilities.snapshot.jsonis a committed copy of the map;npm run sync-capabilitiesrefreshes it. The build stays deterministic and offline, and the diff of a sync is reviewable.scripts/check-capabilities.mjsruns inprebuildand CI: every merchant page the map cites must exist here, every cited page must declare the id incapability_ids, and every declared id must exist in the map.--writeinserts missing ids; that is how the 39 page edits were made.capability_idsrender a "Developer resources" panel (components/developer-resources.tsx) listing the developer guides for the same capability, mirroring the merchant-guide panel on the developer site.llms.txtgains a closing "Capability map and domain bundles" section;AGENTS.mdand the 404 page link the map.audience,capability_ids,status,last_verified(optional).Sequencing
Branched from
main; trial-merges cleanly on top of #33. The snapshot was taken from the #50 branch build, so the map URL returns 404 until #50 deploys; nothing here fetches it at build time.Decision needed from: none.
🤖 Generated with Claude Code