Repository navigation
Inspect pinned inert documents offline (#844) - #856
Merged
Merged
Conversation
Artifact descriptors list the standard documents they ship (OpenAPI, JSON Schema, Markdown, JSON, YAML). `urlcode artifacts inspect` and the MCP `inspect_extension_artifact` tool share one core function that reads them offline from a pin-verified package: kind and version, sha256, size, origin, resolved local $refs, and bounded diagnostics for remote refs (never fetched), cycles, escapes and limits. Independent artifact packages install by spec or tarball like independent extensions; a local tarball is re-hashed against the lock. The fixed artifact file layout becomes a general inert-file rule. Co-Authored-By: Claude Opus 5.5 <[email protected]>
jimhoyd
enabled auto-merge (squash)
September 28, 2026 19:26
This was referenced Sep 29, 2026
Closed
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.
Delivers #844 operation 1, "inspect pinned inert documents", following #853, which added independent provider packages.
What changes
documents: [{path, mediaType}], at most 32...or hidden segments.documents.store-schemalists its schema, its example and its README.package.json, root notices, and JSON/YAML/Markdown under plain paths. JSON must parse, and YAML must parse under the runtime profile, which refuses anchors, aliases and tags.package-audituses the same rule.urlcode artifacts add <spec|tarball>installs with--ignore-scripts --save-exact.listandremovehandle these packages, andget_extension_artifactsfinds artifacts by descriptor.list --strictand inspect refuse a stale or missing tarball.urlcode artifacts inspect <name> [--json] [--strict]and the MCP toolinspect_extension_artifactshare one core function,inspectInstalledArtifact. A test asserts the two return identical output.$schemadialect)$refs (same-document pointers and relative files inside the package)RIM-ARTIFACT-INSPECT-001card, and the stale "only install catalog" wording inRIM-ADDON-001is fixed.Evidence (macOS, Node 26)
npm run verifyon the branch rebased onto main passes: 1107 root tests, every workspace suite,test:addons6/6 andtest:proof12/12.npm run test:packagepasses. Core packs to about 869 KB, within its budget.test/artifact-inspect.test.ts(11 tests) with the@example/urlcode-petstore-docsfixture: an OpenAPI 3.1 YAML with a file$refto a JSON Schema, plus a standalone schema.list --strictandinspect --strictpassNot in this PR
The gaps found along the way are filed as follow-up issues.
🤖 Generated with Claude Code