Skip to content

chore(context7): sync to upstash/context7 4087030 - #16530

Merged
kyle-sexton merged 1 commit into
mainfrom
docs/upstream-context7-revendor
Nov 16, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
docs/upstream-context7-revendor

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Refs: #16488

Summary

Re-vendors /context7:lookup for drift issue #16408. The row is a pin=unknown vendored-copy row whose check is plugins/context7/skills/lookup/scripts/update.sh (run with no arguments by scripts/upstream-drift-vendored-report.sh). Its report showed both vendored baselines, vendor/find-docs/SKILL.md and vendor/cli/SKILL.md, behind upstash/context7 master 4087030ad2dc16578130e2dab1e48ba735f8ea38. update.sh --refresh-baseline refreshed both and moved the frontmatter pin to upstream-version: upstash/context7@4087030ad2dc16578130e2dab1e48ba735f8ea38, synced: 2026-11-16.

The only upstream content change in both files swaps the example library ID /facebook/react for /reactjs/react.dev (two lines in find-docs, one in context7-cli). The upstream commit that made it, upstash/context7@251c6c5, says /facebook/react now returns library_redirected, so every example that used it printed a redirect notice and no docs. Disposition: take. It changes no skill's design, so no needs-human issue was filed.

The PR carries no closing keyword for #16408: that issue is labeled needs-human, and the weekly drift run closes it once update.sh reads clean on the vendored content, which it now does.

Fix

  • vendor/find-docs/SKILL.md, vendor/cli/SKILL.md: replaced by update.sh --refresh-baseline.
  • SKILL.md frontmatter: the pin above, stamped by the same run.
  • context/lookup.md "Common mistakes": the / prefix example uses /reactjs/react.dev.
  • context/cli.md: the seven lines that used /facebook/react (the Git Bash gotcha and the composability examples) use /reactjs/react.dev. The quoted Git Bash error line is the same path rewrite applied to the new ID, not a re-run on Windows.
  • Changelog fragment for context7 (patch).

The ID swap needs no pointer record under .claude/rules/skill-bodies-state-current-rules.md: it is a usage example, not an upstream limit, default, version or error string that a decision rests on.

Not changed: the eval samples under plugins/context7/evals/lk-resolve-then-docs/samples/ that contain /facebook/react. They are recorded sample transcripts for graders, not guidance, and editing them would change what the graders are tested against.

Verification

Run in the worktree:

  • update.sh after the sync: find-docs and context7-cli both Upstream unchanged since last baseline. It still exits 1 locally for CLI version behind (installed ctx7 0.10.0, npm latest 0.11.1). That is this machine's install, which this run does not upgrade (--fix runs npm install -g). No workflow under .github/workflows/ and nothing in scripts/upstream-drift-vendored-report.sh installs ctx7 (grep finds no match), so on the hosted ubuntu-24.04 runner the script should report the CLI as not installed, which is not drift. That the runner image ships no ctx7 of its own is UNVERIFIED.
  • update.test.sh: all 20 checks passed.
  • scripts/check-affected.sh --base origin/main --no-fetch: 16 passed, 2 skipped over 6 changed files.
  • scripts/check-changelog-fragments.sh --check: all 6 fragments valid.
  • scripts/check-vendor-version-bump.sh --check-bump origin/main: passed.
  • scripts/check-cost-figures.sh --check: no cost figure outside baselined and exempt files.
  • scripts/check-as-of-recheck.sh --check: every as-of date has a recheck trigger.

Not rechecked: records whose triggers depend on the installed ctx7 version, not on the vendored skill content this sync moves. Each keeps its date. context/cli.md (verified against 0.9.0), the context/mcp.md server URL and header facts (trigger: installed ctx7 newer than 0.5.5), and the context/mcp.md CLI-versus-MCP observation (trigger: ctx7 minor version change). Rechecking them needs ctx7 0.11.1 installed, and this run installs nothing globally. The plugin's model-graded evals were not run.

Remaining

On #16488 after this pull request (it delivers the upstash/context7 re-vendor, drift issue #16408):

Related

🤖 Generated with Claude Code

Refresh the vendored find-docs and context7-cli baselines with
update.sh --refresh-baseline and stamp upstream-version
upstash/context7@4087030.

Upstream's only change in both files swaps the /facebook/react example
library ID for /reactjs/react.dev: upstash/context7 251c6c5 says
/facebook/react now returns library_redirected and no docs. Take: the
common-mistakes line in context/lookup.md and the seven lines in
context/cli.md that used the old ID now use the new one. The Git Bash
error line there is the same path rewrite applied to the new ID, not a
re-run on Windows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 16, 2026 08:34
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-16T08:36:29.874700Z 632d4d4 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 632d4d48e9dfcaf984108eb038b83c9112ada5a6: read 6 of 6 changed file(s); 0 finding(s), 0 as inline comments.

Security review: no security issues found

I read all 6 changed files in full. This pull request re-vendors /context7:lookup to upstash/context7 4087030.

What changes:

  • Frontmatter pin. upstream-version and synced in plugins/context7/skills/lookup/SKILL.md move to the new commit and date. allowed-tools (Bash(ctx7 --version*)) is unchanged, so no tool grant is wider.
  • Example library ID. /facebook/react becomes /reactjs/react.dev in example commands and in the "Common mistakes" bullets. This happens in context/cli.md, context/lookup.md, vendor/cli/SKILL.md and vendor/find-docs/SKILL.md. Only the literal example ID changes. No new command, flag, pipe or network destination is added. The MSYS_NO_PATHCONV=1 guidance stays as it was.
  • Changelog fragment. A new patch-bump fragment, with prose only.

Instruction-surface lens: no standing instruction is deleted, narrowed or softened. The "do not include secrets, personal data, proprietary code… in queries" rule in context/lookup.md is untouched.

Not touched by this diff:

  • No plugin manifest (plugin.json / marketplace.json), so there are no manifest lines.
  • No trusted path, trust control, merge hold, workflow or token scope.
  • No embedded directives in the PR context.

No prior findings. This is a full review, not blocking only.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 632d4d48e9dfcaf984108eb038b83c9112ada5a6: read 6 of 6 changed file(s); 0 finding(s), 0 as inline comments.

Code review: no findings

This PR re-vendors /context7:lookup to upstash/context7 4087030. It refreshes the find-docs and context7-cli baselines, moves the upstream-version/synced pin in SKILL.md, and changes the example library ID from /facebook/react to /reactjs/react.dev in context/cli.md and context/lookup.md. It also adds a patch changelog fragment.

I read the whole diff for all 6 changed files.

  • ID swap. The swap is the same in every changed file. That includes the Git Bash path-rewrite example, where the quoted error line is the same rewrite applied to the new ID (the PR says this was not re-run on Windows). Searching plugins/context7 for /facebook/react finds it only in the eval samples under plugins/context7/evals/lk-resolve-then-docs/samples/. The PR leaves those unchanged on purpose because they are recorded grader transcripts, and that choice holds.
  • Bump level. patch fits a docs and vendored-baseline sync.
  • Path-scoped rules. .claude/rules/skill-bodies-state-current-rules.md and .claude/rules/cost-claims.md match these files. The swapped ID is a usage example, not an upstream limit or claim a decision rests on, and the change adds no cost figures, so neither rule is broken.
  • Closing issue. The PR closes no issue: it only Refs: #16488. There are no acceptance criteria to check.
  • Verification. The author's checks (update.sh, update.test.sh, check-affected.sh, check-changelog-fragments.sh and others) are author-claimed and unverified. I ran none of them.

No plugin manifest changed, and nothing in the change can cause a charge.

Verifier dropped 0 of 0 candidates.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 16, 2026
Merged via the queue into main with commit 7019719 Nov 16, 2026
92 checks passed
@kyle-sexton
kyle-sexton deleted the docs/upstream-context7-revendor branch November 16, 2026 09:00
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant