Skip to content

chore: move every plugin's page fetches onto the shared docs cache #18298

Done
2 of 2 issues completed
Done

Description

@kyle-sexton

Context

lib/docs-cache.sh and lib/fetch-docs.sh give plugins a shared page cache, so concurrent sessions do not fetch the same page twice (ADR 0057). Several plugins still read web pages through WebFetch or their own curl calls and so miss the cache. Vendor routing moves its own reads onto the cache. Moving every other plugin was split out of that work (interview question Q39).

Proposed work

  • Inventory each plugin's web reads: WebFetch grants, curl or wget in scripts, and agent tool lists.
  • Move each read that fetches a page by URL onto the plugin's fetch-docs.sh --cache copy (registered in scripts/shared-copies.txt).
  • Keep WebFetch only where a read needs it, and record why.

Acceptance criteria

  • An inventory of web reads per plugin, each with a verdict (moved or kept, and why), citing file:line.
  • Moved reads pass the plugin's tests and scripts/sync-shared-copies.sh --check.
  • One changelog fragment per changed plugin.

References

  • lib/fetch-docs.sh, lib/docs-cache.sh, scripts/shared-copies.txt
  • docs/adr/0057-share-a-user-scope-docs-cache-across-plugins.md

Sub-issues

Sub-issues

2 of 2 Issues completed
Loading 2 sub-issues

Activity

  1. added
    needs-triage
    on Nov 23, 2026
  2. github-actions commented on Nov 23, 2026

    @github-actions
    Contributor

    Size: Large
    Complexity: Medium
    Uncertainty: Knowable
    Flags: none
    Blocked by: none
    Blast radius: web-read paths in plugin agents, skills, hooks and scripts, plus scripts/shared-copies.txt, one new audit inventory file and per-plugin changelog fragments. Plugin users and CI read or run these.
    Reversible: yes; revert the commits, since the shared copies and changelog fragments are plain files.
    Open questions: none
    I read this as: inventory every plugin's by-URL web reads, move the ones that fit onto each plugin's fetch-docs.sh --cache copy, and keep WebFetch only where it is needed, with the reason recorded. Vendor routing reads are left to #18297, which is related but not a duplicate and not a blocker. The refinement comment holds exact acceptance criteria. Because the plugin count is high, the issue lane may want to split the work by plugin. I found no merged pull request that already does this.

    Automated triage. A maintainer reviews it.

  3. removed
    needs-triage
    on Nov 23, 2026
  4. melodic-automation-lanes commented on Nov 23, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane yet: sub-issue #18306 is open.

  5. melodic-automation-lanes commented on Nov 23, 2026

    @melodic-automation-lanes
    Contributor

    Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.

    Intended outcome: Inventory every plugin's by-URL web reads (WebFetch grants, curl/wget in scripts, agent tool lists), move each read that fetches a page onto that plugin's registered fetch-docs.sh --cache copy, and keep WebFetch only where needed with the reason recorded; vendor-routing reads (#​18297) are not part of this.

    Acceptance criteria

    • A committed inventory file (for example docs/audits/docs-cache-web-reads.md) lists every plugin web read found under plugins/ in agents, skills, hooks and scripts, one row each with the file:line and a verdict of moved or kept.
    • Every kept row states why WebFetch or curl is still needed (for example the read needs WebFetch's summarising prompt or the page is not a docs page).
    • Every moved read now calls the plugin's own scripts/fetch-docs.sh with --cache, and the old WebFetch grant or curl/wget call for that read is gone from the agent tool list or script.
    • Each plugin with a moved read has fetch-docs.sh, docs-cache.sh and html2md.py registered in scripts/shared-copies.txt, following the existing entries for harness-config and multi-agent.
    • scripts/sync-shared-copies.sh --check exits 0.
    • The test suite of every changed plugin passes, including any test that asserts agent tool lists or hook registration (for example plugins/discovery/scripts/check-hook-registration.sh and plugins/multi-agent/scripts/check-hook-registration.sh where touched).
    • Each changed plugin has exactly one changelog fragment describing the move, following the repository's changelog fragment convention.
    • Plugins whose reads are all kept or that have no web reads get no changelog fragment and no code change; only the inventory lists them.

    External state: none

    Dependencies

    • #​18297 (vendor routing audit) is related; vendor-routing reads move under that work, so this issue skips them and does not wait on it.
    • Existing lib/fetch-docs.sh and lib/docs-cache.sh (ADR 0057) must stay as the canonical sources; no change to them is expected.

    Related work

    Sources read

    • scripts/shared-copies.txt:27-83: fetch-docs.sh, docs-cache.sh and html2md.py copies are registered for 14 plugins (harness-config, harness-ops, discovery, discipline, harness-memory, instruction-placement, knowledge, plugin-quality, attribution, performance, planning, playbooks, session-flow, multi-agent)
    • scripts/shared-copies.txt:66-68: multi-agent is the latest plugin to get the fetch-docs.sh, docs-cache.sh and html2md.py copies
    • plugins/*/scripts/fetch-docs.sh: 14 plugin copies exist, matching the registry
    • plugins/discovery/hooks/webfetch-truncation.mjs: a WebFetch post-tool-use hook exists, so WebFetch may be kept there
    • plugins/multi-agent/hooks/drift-checker-fetch-gate.mjs: a fetch gate for the drift-checker agent exists
    • plugins/firecrawl/skills/firecrawl/context/native-web-tools.md: WebFetch is mentioned (3 hits), likely a kept verdict
    • plugins/context-budget/skills/audit/reference/levers.json: 8 WebFetch mentions that are data, not reads
    • plugins/plugin-quality/agents/auditor.md: 4 WebFetch mentions in an agent tool list or body
    • plugins/knowledge/agents/digest-worker.md: a WebFetch mention in an agent
    • plugins/performance/agents/go-faster-sweeper.md: a WebFetch mention in an agent
    • plugins/implementation/agents/implementer.md: a WebFetch mention in an agent
    • plugins/discovery/agents/research-verifier.md: 5 WebFetch mentions in an agent

    Automated refinement by the lanes App. Intake triages the issue again with it.

  6. melodic-automation-lanes commented on Nov 23, 2026

    @melodic-automation-lanes
    Contributor

    Split at intake (owner Q93). This issue is Size Large, so its done-when is split into 2 sub-issues, each holding its task-list lines as written.

    Automated split by the lanes App. Admission waits on this issue while a sub-issue is open; work-unblock closes it as completed once every sub-issue is closed as completed by a merge or a listed human and its done-when is covered.

  7. melodic-automation-lanes commented on Nov 24, 2026

    @melodic-automation-lanes
    Contributor

    Every sub-issue of this split is closed as completed by a listed human or a merge (#18305, #18306), so the lanes App closes it as completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    Work status

    ready

    Priority

    medium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions