Skip to content

feat(instruction-placement): add a quote-check script over the mechanics source list #9697

Description

@kyle-sexton

Part of #6100

Problem

Acceptance criteria 2 to 4 of #6100 need each run to check the stored mechanics quotes against the live docs, and nothing does. The owner decided on 2026-10-13 (#6100 comment): a quote-check script that reads only a fixed (section URL, quote) list checked into the plugin, granted in allowed-tools the way skills/migrate/scripts/cutover-check.sh reads its one page; no Bash(fetch-docs.sh:*) grant and no WebFetch in audit or realign.

Scope

  • plugins/instruction-placement/scripts/quote-check.sh: takes no URL argument; reads context/mechanics-sources.tsv (from the pointer-records slice), fetches each section through the existing scripts/fetch-docs.sh --cache and scripts/docs-cache.sh slice, and prints one line per record: verified <id>, drift <id> <url> followed by the stored and fetched sentences, or unverified <id> as of <as_of> when the fetch fails. Exit 0 in every case; the lines are the result.
  • A fixture hook for tests (an env var or flag pointing at a local directory of section snapshots) so no test touches the network.
  • scripts/quote-check.test.sh: verified, drift and unverified cases from fixture snapshots.
  • Changelog fragment for instruction-placement.

Done when

  • bash plugins/instruction-placement/scripts/quote-check.test.sh exits 0 and covers a matching snapshot (verified), a changed sentence (drift, with both wordings printed) and a missing snapshot (unverified ... as of <date>).
  • grep -nE 'curl|wget' plugins/instruction-placement/scripts/quote-check.sh prints nothing (fetches go through fetch-docs.sh).
  • bash plugins/instruction-placement/scripts/quote-check.sh extra-arg exits non-zero with a usage message (no URL argument is accepted).
  • bash scripts/affected-tests.sh --run exits 0.

Activity

  1. added
    status: ready
    on Oct 24, 2026
  2. github-actions commented on Oct 24, 2026

    @github-actions
    Contributor

    Proposed work class: work-class: scoped
    Basis: automated intake triage; a maintainer confirms or changes it.

    Size: Medium
    Complexity: Medium
    Uncertainty: Known
    Flags: none
    Blocked by: #9696

    Understood: add a no-argument quote-check.sh to instruction-placement that reads context/mechanics-sources.tsv, fetches sections via fetch-docs.sh --cache and docs-cache.sh slice, and prints verified, drift or unverified lines. It also needs a fixture hook, a test script and a changelog fragment. The owner's decision in #6100 already settles the design.

    The script reads the TSV that the pointer-records slice (#9696) creates, so that issue has to land first. Related: #6100 is the parent; the audit/realign/migrate wiring issue is a likely follow-up, not a duplicate.

    Automated triage. A maintainer reviews it.

  3. added
    needs-human
    needs-triage
    on Oct 24, 2026
  4. added
    needs-owner-decision
    and removed
    status: ready
    on Oct 24, 2026
  5. removed
    needs-owner-decision
    needs-human
    on Oct 26, 2026
  6. kyle-sexton commented on Oct 26, 2026

    @kyle-sexton
    MemberAuthor

    Released for re-triage under the owner's 2026-10-26 rule: a person is involved only for "1. A change in original intent/vision 2. Something comes up during implementation ... that alters intent/vision or the primary design 3. If there is a HIGH/CRITICAL security issue". None applies here, so the hold label came off and intake triage runs again now.

    To hold this issue again, add needs-human (or status: needs-decision) and name which of the three applies.

  7. removed
    needs-triage
    on Oct 26, 2026
  8. added
    status: ready
    and removed on Oct 26, 2026
  9. melodic-automation-lanes commented on Oct 26, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane yet: blocker #9696 is not closed by a listed human or a merge.

  10. added
    agent-ready
    on Oct 28, 2026
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

    agent-readystatus: ready

    Fields

    No fields configured for Feature.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions