Skip to content

context7/lookup: split model-reachable update action into a non-model-invocable sync skill #954

Closed as not planned

Description

@kyle-sexton

Context

plugins/context7/skills/lookup/SKILL.md bundles its update action into the same
model-invocable skill as the default lookup action (disable-model-invocation: false). That
means the upstream drift-check fetch to raw.githubusercontent.com (and the npm view ctx7 version registry check) is reachable from a non-adversarial prompt with no explicit user
request — e.g. "is context7 still up to date?" could plausibly lead the model to invoke
update on its own initiative. No write occurs (the script is report-only by default), but the
outbound network call itself is exactly the kind of thing a consumer should opt into explicitly,
not have fired implicitly.

This was flagged during the dometrain-mcp plan's formal /devils-advocate stress test
(docs/topics/dometrain-mcp/PLAN.md, Step 4 CRITICAL finding #2) as a fleet-wide gap, not
dometrain-specific: any plugin that tracks/updates external sources via a model-invocable
skill has the same shape. context7:lookup was the only prior update-verb precedent checked
at the time and was found to have this exact issue.

The cost of leaving it: low probability, non-destructive (report-only), but it violates the
principle (already applied to dometrain) that a sync/drift-check network call should only
ever fire on a human's explicit request, never the model's own initiative.

Proposed work

  • Split plugins/context7/skills/lookup/SKILL.md's update action out into a new, separate
    sync skill (mirroring plugins/dometrain/skills/sync/): disable-model-invocation: true,
    shell: bash, wrapping scripts/update.sh.
  • lookup/SKILL.md keeps disable-model-invocation: false but drops the update action from
    its own dispatch — pure lookup usage, no drift-check reachable from a proactive invocation.
  • Update lookup/SKILL.md's "Update" section and README to point at /context7:sync instead of
    /context7:lookup update.
  • Update plugins/context7/CHANGELOG.md with the breaking-change note (invocation moves from
    /context7:lookup update to a new skill).

Acceptance criteria

  • plugins/context7/skills/lookup/SKILL.md has disable-model-invocation: false and no
    update action in its dispatch table.
  • A new plugins/context7/skills/sync/SKILL.md (or equivalent name) exists with
    disable-model-invocation: true and owns the ctx7-CLI-version + upstream-skill-content
    drift check (currently skills/lookup/scripts/update.sh).
  • --refresh-baseline (and any other maintainer-only flag) is never constructed or exposed
    by the new sync skill's own dispatch — only documented for a maintainer to type directly.
  • skill-quality:check passes for both the updated lookup skill and the new sync skill.
  • README and CHANGELOG reflect the new invocation path.

References

  • docs/topics/dometrain-mcp/PLAN.md — Phase 3 "Design correction" section, Step 4 stress-test
    finding fix: correct plugin-system inaccuracies and harden references #2 (the CRITICAL finding this item generalizes from).
  • plugins/dometrain/skills/grounding/SKILL.md + plugins/dometrain/skills/sync/ — the fix
    pattern already implemented and shipped for dometrain; use as the structural template.
  • plugins/context7/skills/lookup/SKILL.md, plugins/context7/skills/lookup/scripts/update.sh,
    plugins/context7/skills/lookup/context/update.md — the files to split.

Metadata

Field Value
Category unspecified (no category: labels defined in this repo)
Area security
Ecosystem unspecified

Activity

  1. added
    area: security
    on Jul 22, 2026
  2. added theissue type on Jul 22, 2026
  3. added
    needs-human
    on Jul 23, 2026
  4. kyle-sexton commented on Jul 27, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by AI (triage lane — gate-audit claim). Claiming this item for one gate-audit cycle: an independent panel re-classifies whether the needs-human / status: needs-decision gate is still warranted, or whether the item is C2/C3 and liftable to agent-ready. Outcome comment follows in this cycle.

  5. kyle-sexton commented on Jul 27, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by AI (triage lane — gate audit). Independent panel: two fresh-context agents (one fable, one opus), each given only the issue content and the repo's own plugins/autonomy/reference/guardrails/work-classes.md, plus the triage lane's own read. This lane never executes work items, authors fixes, or merges.

    Gate audit: GATE UPHELD — lane override of a unanimous panel

    Panel: 2-of-2 LIFT-ELIGIBLE, C3. The triage lane overrode them and is keeping the gate shut. Flagging that disagreement explicitly rather than burying it.

    Both legs made a strong case: the design is already decided and shipped as a template (plugins/dometrain/skills/sync/SKILL.md has exactly the target frontmatter), acceptance criteria are checkbox-verifiable, there is a deterministic gate (skill-quality:check), and — their central argument — the change direction is guard-tightening, adding disable-model-invocation: true. That is the opposite of a guard bypass.

    Why the lane held the gate anyway: this item carries the area: security label, applied by a human. The triage lane operates under a standing rule that a security surface is a hard human floor, and a fail-closed posture means an agent does not get to reason its way past a human-applied security marker — even with a good argument, and even when the change looks protective. Deciding that the label is decorative is itself a human call.

    The cost of being wrong in this direction is one cycle of delay. The cost in the other direction is an autonomous lane talking itself past a security marker, which is a precedent worth more than this item.

    Decision required

    Is area: security on this issue a hard human floor, or a topic tag?

    RECOMMENDED — rule that it is a topic tag here, and lift this item. The panel's reasoning is sound: the change installs a guard rather than bypassing one, touches no auth/secret/isolation boundary, and C3 keeps human merge regardless, so lifting only authorizes an agent to author the PR. Confirm this and it can flip to agent-ready immediately.

    Alternative — rule that area: security is a hard floor fleet-wide, keeping this and every similarly-labelled item human-gated by default. Safer and simpler to enforce, at the cost of gating protective changes alongside risky ones.

    Escalation beyond this issue: whichever way this goes, the answer should be recorded as a general rule, because the triage lane currently has no documented way to tell a topic tag from a floor marker. That ambiguity will recur on every area: security item.

  6. kyle-sexton commented on Jul 27, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by AI (triage lane — claim release). Gate-audit cycle complete for this item; the triage claim posted earlier this cycle is released. No lease is held — another instance or lane may pick this up immediately. The outcome comment above this one carries the classification and either the lift rationale or the decision summary.

  7. kyle-sexton commented on Aug 13, 2026

    @kyle-sexton
    MemberAuthor

    Frontier disposition (drain session)

    Ruling: Close as not planned for this drain wave (frontier consensus).

    Dual-panel drain ruling: advisory, superseded, folded into a program umbrella, or blocked on a host/design carrier without an actionable in-repo slice this session. Re-open with a concrete acceptance brief if a consumer needs the work.

    KEEP set for this wave: standing telemetry; host-physical Class C (#631 family); program umbrellas #530/#531/#532/#535; live design carriers #1500/#1553/#1668/#1695/#1716/#1681/#1718; #1360.

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

    area: securityneeds-human

    Type

    Fields

    No fields configured for Task.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions