Skip to content

fix(toolchain): a check whose tool or runtime is missing runs anyway and reads FAIL #16646

Closed

Description

@kyle-sexton

Problem

When a recorded check needs a tool or runtime the host does not have, toolchain runs the check anyway and reports FAIL for the wrong reason. A record has no way to say "this check cannot run here".

Owner's ruling (2026-11-16, in a session, about exactly this): "when something needs a tool or runtime the host lacks, it can't do its work ... It definitely shouldn't try to proceed without it." Together with #15703 ("Unattended lanes: no install"; AC5 "installs nothing"), a missing prerequisite means the check is reported as not run, with the reason: never run and failed, never installed.

Seen on an operator host, where the local loop lanes and builder sessions that read these records run:

  • github-iac, yaml record, runner-policy check. Its script needs a pinned Node runtime package. On a fresh checkout /toolchain:lint reads Overall: FAIL (1 of 5 ecosystems failed; yaml: Lint FAIL (runner-policy.mjs: Cannot find package ajv, its pinned runtime is not installed)). With the runtime installed by hand the same command prints Runner policy passed.
  • ci-workflows, yaml record, actionlint. CI pins a fork at 1.17.0; the host has the standard build 1.7.12, which rejects syntax only the fork accepts, so lint reads FAIL. The tool is on PATH, so the existing tool missing class does not apply: the wrong build is present.
  • The right shape exists once: ci-workflows' govulncheck gate reads skip (tool missing: govulncheck).

Why a record cannot express it today (toolchain 1.4.3; reported by a worker, UNVERIFIED by the filing session)

  • The ecosystem-commands schema has opt-in (one condition for a whole phase) and install-hint (display text), and no per-check prerequisite.
  • tool missing tests only whether the invoking tool is on PATH (here node, present).
  • Lint never emits dependencies missing; check answers that class by installing.
  • unsupported applies to gates only.
  • Splitting the check into its own record with an opt-in naming the runtime would print skip (opt-in unmet), which does not count against "done", so lint would read PASS while the check went unverified.

Related, same rule one level up: the check skill's own dependency step runs npm ci --ignore-scripts when dependencies are missing, and the merged ci-workflows TypeScript record runs npm ci inside its test-cmd. Both are installs under #15703's AC5.

Done when

  • A record can declare what a command needs beyond the invoking tool on PATH: a runtime package that must be present, or a tool at a pinned version or build.
  • With a declared prerequisite absent, check and lint do not run that command, print a not-run cell naming the missing prerequisite, and the overall line does not read PASS for it.
  • No path in an unattended run installs anything to satisfy a prerequisite, the check skill's own dependency step included, or the owner records an exception.
  • The github-iac yaml record declares the runner-policy runtime, and the ci-workflows yaml record declares the actionlint build; on a host without them each run shows the not-run cell and no FAIL from a crashed or wrong tool.
  • The npm ci in the ci-workflows TypeScript record is removed or covered by the owner's exception.

Design choices left to the owner

The mechanism is not decided: a new schema field against reuse of an existing class, and whether a not-run cell makes the overall line INCOMPLETE or a new state.

Related

Refs: #15703 (the rule), #15713 and #15717 (both wait on this to close without a misleading FAIL), melodic-software/github-iac#904 (drift-only fix, held).

session: GitHub Work

Activity

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

    @github-actions
    Contributor

    Size: Small
    Complexity: Low
    Uncertainty: Known
    Flags: none
    Blocked by: none
    Blast radius: the toolchain plugin's confirm skill direct path and ecosystem-specialist agent text, read by the operators and lanes that run them.
    Reversible: yes; revert the edits.
    Open questions: none

    Decision recorded.

    Owner, 2026-11-17, typed in the GitHub Work session in answer to "eval-16646 has no compare verdict; register a second run?", verbatim: "go w/ recomendations". The recommendation shown to him was to accept the VOID record above and run nothing more; the alternatives shown were a second run at 6 runs a side, or an unchanged second run at 3 a side.

    Result: no second eval run for the change #16687 merged. This issue stays open for that pull request's remaining items (the confirm skill's direct path and the ecosystem-specialist agent). Posted by an agent session.

    #16646 (comment)

    This decision settles the open questions: no second eval run, and the remaining work is the confirm skill's direct path and the ecosystem-specialist agent, left over after merged #16687.

    Automated triage. A maintainer reviews it.

  3. added
    needs-owner-decision
    on Nov 16, 2026
  4. melodic-automation-lanes commented on Nov 16, 2026

    @melodic-automation-lanes
    Contributor

    The latest triage verdict holds nothing: the issue is at status: ready.

  5. melodic-automation-lanes commented on Nov 16, 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: Toolchain gains a per-command prerequisite declaration (runtime package or tool build) so check and lint print a not-run cell naming the missing prerequisite, never run or install it, and the overall line does not read PASS.

    Related work

    Open questions

    1. Mechanism: add a new per-command prerequisite field to the ecosystem-commands schema, or reuse an existing class such as tool missing?
      RECOMMENDED: Add a new field. The existing classes only test PATH presence, and opt-in is a phase-wide skip that does not count against done. Basis: plugins/toolchain/reference/resolution-ladder.md:25
    2. Overall line: does a not-run cell make the overall line INCOMPLETE, or a new state?
      RECOMMENDED: INCOMPLETE. Lint already reports tool-missing skips as INCOMPLETE, so readers know it and it never reads PASS. Basis: plugins/toolchain/hooks/result-gate.test.sh:107
    3. Installs: remove the check skill's own npm ci --ignore-scripts step and the npm ci in the ci-workflows TypeScript test-cmd for unattended runs, or does the owner record an exception?
      RECOMMENDED: Remove both for unattended runs, with no exception, per #​15703 AC5 (installs nothing). Basis: 15703
    4. Which prerequisite kinds must the field express, and how is a pinned tool build detected (a version command plus a pin compared to the tool-pin map)?
      RECOMMENDED: Support two kinds: a runtime package resolvable from the repo, and a tool whose reported version matches a pin. Reuse the existing tool-pin key for pins. Basis: plugins/toolchain/reference/resolution-ladder.md:25
    5. The github-iac and ci-workflows records live in other repositories. Should this issue change only toolchain, with those record edits tracked as separate follow-ups?
      RECOMMENDED: Yes. Keep this issue to toolchain schema, behavior and skill changes, and file the record edits in each repository after the field lands. Basis: judgment

    Sources read

    • /home/runner/work/claude-code-plugins/claude-code-plugins/refine-data/context.json: issue body, triage and candidate list; no maintainer Decision recorded comment exists
    • plugins/toolchain/reference/resolution-ladder.md:25: lists the record keys opt-in, install-hint and tool-pin, with no per-command prerequisite
    • plugins/toolchain/hooks/result-gate.test.sh:107: a tool-missing skip already yields Overall: INCOMPLETE
    • plugins/toolchain/reference/ecosystems/yaml.yaml:14: install-hint is display text only

    To answer, post a comment that starts with this line:

    **Decision recorded.** <answer>
    

    Automated refinement by the lanes App. Answer with a comment whose first line is **Decision recorded.**.

  6. kyle-sexton commented on Nov 16, 2026

    @kyle-sexton
    MemberAuthor

    Two more records are affected by the same gap: the yaml records of melodic-software/songwriting and melodic-software/agent-automations run actionlint pinned to the kjanat fork 1.17.0, and on a host with the standard build 1.7.12 the check ran and read PASS (their workflows use no fork-only syntax). A PASS from the wrong build is the same defect as a FAIL from it: the check ran without the tool it needs. #15720 and #15721 are reopened and wait on this issue, with #15713 and #15717. melodic-software/codex-plugins is not affected: its yaml record runs no command.

  7. kyle-sexton commented on Nov 17, 2026

    @kyle-sexton
    MemberAuthor

    Decision recorded. Owner, 2026-11-16, typed in the GitHub Work session after three interview rounds, verbatim: "Yes, go with recommendations. You got it." (rounds 1 and 2) and "The rest of these go with recommendations." (round 3). Posted by an agent session. The decisions, each the recommendation shown to him:

    1. Mechanism: a new top-level requires field in a record, a map keyed by command key, each a list of entries with a name, a probe and an optional hint; a gate may carry its own. One missing prerequisite skips the whole command, tools bundled beside it included; he accepted that cost.
    2. Probe: one read-only command the record writes; exit 0 means present. Toolchain compares no version or checksum. A record that needs a specific build probes against the pin the repository already keeps for CI. tool-pin stays a warning. (This replaces the round 2 answer that a version would be read from tool-pin: a version cannot identify the actionlint fork.)
    3. Report: the cell reads skip (prerequisite missing: <name>), an environment skip, and the Overall line reads INCOMPLETE. No new overall state.
    4. Installs: the check never installs a declared prerequisite, in any run; it shows the install hint. The existing lockfile install stays for attended runs and stops for unattended ones. The ci-workflows TypeScript record declares its package and drops npm ci. No exception to Resolve ecosystem specifics from the consumer repository and align the enforcement ladder with the talk's pyramid #15703 AC5.
    5. Unattended is read from lint's existing signals (CLAUDE_CODE_REMOTE, claude -p, an autonomous loop) in both skills for now; Resolve ecosystem specifics from the consumer repository and align the enforcement ladder with the talk's pyramid #15703 owns the "unsure means unattended" default.
    6. Scope: this issue changes toolchain; the four record repositories follow in their own pull requests.
    7. Two follow-up issues, outside this one: moving records from .claude/ecosystems/ to the convention home (his words: "We need some sort of provider-agnostic location to put this stuff"), and automated provisioning of declared prerequisites ("there has to be some automated process").

    Settled from the code and his answers, not asked: a probe that errors, cannot start or passes 30 seconds reads as the same skip, never FAIL; the tool-presence check runs first; a probe runs from the repository root unless the entry gives run-from; the run continues after a skipped command.

  8. removed
    needs-owner-decision
    on Nov 17, 2026
  9. removed
    needs-triage
    on Nov 17, 2026
  10. melodic-automation-lanes commented on Nov 17, 2026

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"f940d82e2fe0715c24c0c67ba626003c04822cd828963d76e5ca89f7c7c80fe4","body_sha256":"f6d0bf7ac2156b4352ff41801acd87ed006512ca90c0f783dada5c91d85798c8"}

  11. 11 remaining items

  12. kyle-sexton commented on Nov 17, 2026

    @kyle-sexton
    MemberAuthor

    Eval record for the change #16687 merged (toolchain 1.6.0): VOID, no verdict. Posted by an agent session.

    Registered before any run: case ck-prerequisite-missing-incomplete, Sonnet, 3 runs a side, Claude Code 2.1.326, no judge (regex and tool-use graders only). After = b24ad2e98b (the #16687 merge), before = its parent 4fc2ba5266 with the same case files, so only five toolchain skill and reference files differ. A batch needs at least 2 counted runs of 3; a run with a permission denial the eval's validity check counts is excluded; no reruns.

    What ran:

    Batch Side Runs Counted Reading
    smoke before 1 1 lint-skip-prerequisite-missing failed; the other five graders passed
    smoke after 1 1 all six graders passed
    compare before 3 1 VOID: runs 2 and 3 each made a Grep on the plugin copy's root that the sandbox denied
    compare after 0 0 not launched: the chain stops on a void batch

    Spent 0.64 USD of an 11.01 USD cap.

    Read with it:

    • The smoke runs were registered as setup checks and count toward no reading. For information only: the after run printed the skip (prerequisite missing: ...) cell and an Overall line reading INCOMPLETE that names the cause, ran the test command and never ran the policy lint.
    • On the before side, in all four runs (smoke and compare), only the cell grader failed. The registration expected five graders to fail before the change. So on this case the old text already reported INCOMPLETE and did not run the policy lint; the measured difference is the wording of the cell.
    • The denied call is a search of the plugin's own directory, the same kind of plugin-copy denial fix(verification): #16228 reads a Sonnet case drop and a plugin-copy denial asymmetry in the #16063 compare #16356 recorded. It is a property of the eval sandbox, not of the changed text.

    Not done: no compare verdict exists for this change. Whether to register a second run is with the owner.

  13. kyle-sexton commented on Nov 17, 2026

    @kyle-sexton
    MemberAuthor

    Decision recorded.

    Owner, 2026-11-17, typed in the GitHub Work session in answer to "eval-16646 has no compare verdict; register a second run?", verbatim: "go w/ recomendations". The recommendation shown to him was to accept the VOID record above and run nothing more; the alternatives shown were a second run at 6 runs a side, or an unchanged second run at 3 a side.

    Result: no second eval run for the change #16687 merged. This issue stays open for that pull request's remaining items (the confirm skill's direct path and the ecosystem-specialist agent). Posted by an agent session.

  14. updated Work status needs-triage and Priority high on Nov 17, 2026
  15. melodic-automation-lanes commented on Nov 17, 2026

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"f940d82e2fe0715c24c0c67ba626003c04822cd828963d76e5ca89f7c7c80fe4","body_sha256":"f6d0bf7ac2156b4352ff41801acd87ed006512ca90c0f783dada5c91d85798c8"}

  16. kyle-sexton commented on Nov 17, 2026

    @kyle-sexton
    MemberAuthor

    Status of the two remaining items (the confirm skill's direct path and the ecosystem-specialist agent): built and pushed on branch fix/16646-confirm-and-specialist-prerequisites (head eead102ee0), no pull request yet.

    Its eval is VOID, no verdict. Registered before any run: one new case, confirm-prerequisite-missing-not-verified, Sonnet, 3 runs a side, smoke of 1 run a side first, a run with a permission denial the validity check counts is excluded, no reruns. The before-side smoke run listed the plugin copy's own directory with ls, the sandbox denied it, the run was excluded, and the chain stopped before the after side ran. Spent 0.28 USD.

    For information only (an excluded smoke run counts toward nothing): in that before-side run only the lint-skip-prerequisite-missing grader failed, and no toolchain plugin was loaded, so the case does reach the direct path.

    This is the second eval on this issue voided by a denied read of the plugin copy that the graded behaviour does not depend on. Whether the exclusion rule changes, or this change merges without a compare, is with the owner. The branch stays without a pull request until then. Posted by an agent session.

  17. github-actions commented on Nov 17, 2026

    @github-actions
    Contributor
    No description provided.
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

    needs-triage

    Priority

    medium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions