Repository navigation
chore(mcp): guard the conformance script and close the gaps left by #905 - #911
Merged
Merged
Conversation
Follow-up to #905. The conformance script builds and serves skillshare and runs npm ci, which the repository only allows inside a container, but nothing stopped it from running on the host. It now refuses outside a container, with the same check scripts/hooks/git-e2e.sh uses. Nothing referred to the script either, so the testing topic now says when and how to run it. The translated mcp reference pages left out the example URI the English page gives for a skill root. All four now carry it. The streaming UTF-8 check in the package loader was only exercised with a rune split one byte before the read boundary. Two fixtures in the existing directory test add the 2+2 and 3+1 splits, so a mistake in the carried-over bytes shows up as a wrong MIME type.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
Type
proposals/only — see CONTRIBUTING.md)approvedlabel)Linked Issue
Follow-up to #905. No issue.
What changed
scripts/mcp/skills-conformance.shnow exits before doing anything when it is not inside a container.wiki/testing.mdsays when to run it and what it needs.mcpreference pages gain the example URIskill://_team/tools/pdfthat the English page already has.TestServer_DirectoryBrowsingAndResourceMetadatagains two fixtures that put a 4-byte character across the loader's 32 KiB read boundary at 2+2 and 3+1 bytes. The existing fixtures covered only a 1+3 split.Why
npm ci. The repository allows those only in the devcontainer, and the script's own comment said so without enforcing it. No doc, runbook, Makefile target or workflow mentioned the script, so nobody would find it.No product behaviour changes.
Validation
In temporary containers from the devcontainer image:
make checkpassed on this branch.SUCCESS(enumeration 32, manifest 6, directory 7).python3 scripts/ai-context.py checkpassed on the host.Not run: the website production build. Each locale changes one sentence.
Not covered
/.dockerenv, likescripts/hooks/git-e2e.sh. A Podman container has/run/.containerenvinstead and would be refused.utils.ParseFrontmatterMap, whichhub indexalso uses for tags.Checklist
make check) — for code changes