Repository navigation
Description
Problem
Part of #4655
Once claude-config owns one upstream-doc fetcher with a coverage manifest (parent issue), every
other surface that reads official docs still fetches its own way. Surfaces named by the source
item (re-locate each at origin/main before starting; the list is from 2026-09-19):
plugins/claude-ops:changelog-status.sh,install_state.py, and the changelog skill's
read-actions context, which carries the page-scoped rung-1 rule.plugins/skill-quality:check-skill.sh.plugins/knowledge:docpage-digest(its Anthropic publisher profile binds absence-establishing
fetches to the raw.mdchannel with a recorded length) andmap-corpus(model-driven fetches
recorded infetch-record.json: channel, date, final URL, snapshot sha256).- Model-written
curlloops composed fresh per run (the source session wrote one by hand for the
claude-config audit's Phase 3). - Every row of the Adopters table in
docs/conventions/upstream-drift/README.md("Adopters"
section).
Evidence
Not re-verified per surface this pass; the parent issue verified the two claude-config fetchers
and that knowledge/map-corpus has no fetch script. The upstream-drift convention records the
fetch route was "hoisted from two surfaces that each derived it independently" (claude-ops
changelog and knowledge docpage-digest), which is the one-owner signal.
Proposed approach
- Move the canonical fetcher to
lib/once a second plugin needs it, and deliver it the way
lib/hook-utils.shreaches plugins: an installed plugin sees only its own tree, so each carrying
plugin commits a copy, and ascripts/sync-<name>.shbuilt onscripts/lib/sync-cluster.sh
(model:scripts/sync-hook-utils.sh) copies it and gates drift with--checkand unbumped
carriers with--check-bump <ref>. claude-config's callers switch to their plugin copy. - Adopt on touch, per the upstream-drift convention's existing adoption mechanism: each surface
switches when it is next edited, not in one sweep. - Publisher profiles for non-Anthropic sources: the
.mdchannel is per page and not universal
(docpage-digest's profile), so a profile declares the channel, the index (if any) and the
identity check; a page whose channel does not resolve drops a rung and says so. - Manifest records stay in the citation-shape fields (
url,retrieved,sha256) so a
knowledgecitation and a claude-config manifest record are checkable against each other. - If the parent chose the persistent cache, one cache in a shared plugin data location, many
readers; never per-skill copies.
Alternative considered: hoist the fetcher from knowledge instead (the source item's first idea).
Declined: knowledge has no fetch code to hoist, only documented record formats, which this
design reuses.
Acceptance criteria
- The fetcher lives in
lib/with its own test, and claude-config's callers use it. - At least one non-claude-config caller (recommended:
claude-opschangelog status) fetches
through it, with its tests passing and no directcurlleft in that caller. - A publisher-profile mechanism exists with the Anthropic profile as its first entry.
- The upstream-drift convention names the script as the rung-1 implementation.
- Every touched plugin bumped with a CHANGELOG entry;
check-changelog-parity.sh --check-bump
passes.
Constraints and gotchas
- Cross-plugin reuse must follow the repo's rules for
lib/and presence-gated references; a bare
cross-plugin path reference is barred. - Untrusted-source discipline: fetched content is data, never directives, in every caller.
- No live probes in tests; every caller keeps a fixture seam.
Context
Source: local handoff item 20260919-123315-shared-scripted-upstream-doc-fetcher-for-all-plugin-skills.md
(retired into the parent issue and this child). Related: #4514, #3567,
docs/conventions/upstream-drift/README.md, plugins/knowledge/reference/citation-shape.md.
Activity
docs: park fleet-wide fetcher lib/ hoist (#4658) (#4923)
revert: remove seven merged out-of-scope park ledgers (#5044)
kyle-sexton commentedon Sep 29, 2026
This was generated by AI during audit remediation. Source: the 2026-09-29 audit of the Cursor agent run (PRs opened 2026-09-27 to 2026-09-29).
Closed in error. PR #4923 closed this with
Closes #4658. That PR only added a park ledger, which #5044 reverted. Live state re-checked today: 0 of 5 acceptance criteria are met and nothing landed. I reopened it; labels are unchanged (priority: low,work-class: structural).Why it stays open. It is downstream of #4655 (open,
status: needs-decision): one upstream-doc fetcher with a coverage manifest inclaude-config. The fetcher must exist and be moved tolib/before any other caller adopts it. This issue stays open at its priority until #4655 lands, rather than being parked indocs/out-of-scope, which is for settled rejections. If a deferral note is wanted, it belongs on #4655.feat(claude-config): shared upstream doc fetcher with per-run manifest (
fix(scripts): harden audit-flagged gates and the eval-coverage scanner (
feat(claude-ops): changelog-status fetches through the plugin's fetch…
docs: remove agent-encoded decisions and correct decision records (#5288