Skip to content

fix(repos): a new worktree gets the pinned Node tools #7233

Done

Description

@dan-petty

Problem or Motivation

In a new worktree the openspec row of devops ci fails until a person or an agent runs npm ci --ignore-scripts:

version: The openspec command at ~/.local/bin/openspec prints 2.1.0, and package-lock.json pins 2.2.0.

devops repos worktrees add makes the worktree and the Python environment, but it does not install the Node tools of package-lock.json. The gate then finds the older openspec of the image on PATH (src/devops_cli/openspec/gate.py, version_finding). Seen two times on 2026-11-25, in the worktrees of #7217 and #7229.

Proposed Solution

Disposition: change the code.

devops repos worktrees add runs npm ci --ignore-scripts when the checkout holds package-lock.json, as it runs uv sync. A failure of the install is a warning that names the command, and the worktree stays.

Proof: a test with the process fake: the add command starts npm ci --ignore-scripts in the new worktree when the lock file is present, and starts no npm when it is absent.

Existing Tool Considered

npm with the lock file of the repository. No new code beyond the one call.

Alternatives check of 2026-11-25: in-use.
The repository already uses this tool.
Tool: npm/cli (https://github.com/npm/cli), NOASSERTION, last activity 2026-11-23, maintained.
Reason: Searches found no worktree manager that installs Node dependencies by itself; npm's ci command installs exactly the versions that package-lock.json pins, and the issue already names npm and that lock file.

Covers:

  • ci installs exactly the versions pinned in package-lock.json
  • --ignore-scripts skips lifecycle scripts, as the issue asks
  • A lock mismatch fails instead of rewriting the lock file

Lacks:

  • No worktree hook; worktrees add must call it
  • Does nothing when the checkout holds no lock file
  • Installs into node_modules, not the ~/.local/bin on PATH

Proposed design

Problem statement

A new worktree lacks the Node tools pinned in package-lock.json. The openspec row of devops ci then fails until a person runs npm ci --ignore-scripts. devops repos worktrees add must install the pinned Node tools when the checkout holds the lock file.

Acceptance criteria

Requirement: Install pinned Node tools

The devops repos worktrees add command SHALL run npm ci --ignore-scripts in the new worktree when the checkout holds package-lock.json.

Scenario: Lock file present

  • WHEN A test uses the process fake to run devops repos worktrees add for a checkout that holds package-lock.json.
  • THEN The fake records one npm ci --ignore-scripts call with the new worktree as its working directory.

Requirement: Skip the Node install without a lock file

The command MUST start no npm process when the checkout holds no package-lock.json.

Scenario: No lock file

  • WHEN A test uses the process fake to run the command for a checkout that holds no package-lock.json.
  • THEN The fake records no npm call.

Requirement: Warn on a failed Node install

The command SHALL write a warning that names npm ci --ignore-scripts and keep the new worktree when the install fails.

Scenario: Install failure

  • WHEN The process fake makes npm ci --ignore-scripts exit with a non-zero code.
  • THEN The command writes a warning that contains npm ci --ignore-scripts, and the new worktree still exists.

Existing Tool Considered

npm/cli (https://github.com/npm/cli), verdict in-use. The alternatives check in the issue body records what the tool covers and lacks. The repository already uses this tool. The proposal adds the missing worktree hook: it runs npm ci --ignore-scripts in the new worktree when package-lock.json exists, and it skips the call when the file is absent.

Key questions

None.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    type/bug
    source/agent
    on Nov 25, 2026
  2. dan-petty commented on Nov 25, 2026

    @dan-petty
    OwnerAuthor
  3. added
    status/new
    effort/low
    value/high
    scope/repos
    priority/p0-critical
    on Nov 25, 2026
  4. devops-cli-service commented on Nov 25, 2026

    @devops-cli-service
    Contributor

    The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.

    Searches (9)

    Tools considered:

    Searches run:

    • git worktree runner setup command npm ci per worktree, results: 5
    • automatically install npm dependencies in new git worktree tool, results: 5
    • git-wtr worktree runner github, results: 5
    • "npm ci" worktree post-checkout hook install dependencies automatically, results: 5
    • worktree manager tool runs install script after creating worktree github open source, results: 5
    • npm ci clean install from package-lock.json documentation, results: 5
    • git-worktree-runner GitStart automate worktree setup, results: 5
    • npm cli github repository, results: 5
    • docs.npmjs.com cli v11 commands npm-ci, results: 5

    Sources:

  5. added
    status/ready
    and removed
    status/new
    on Nov 25, 2026
  6. devops-cli-service commented on Nov 25, 2026

    @devops-cli-service
    Contributor

    Next step: the stage job writes the plan of the item. See the section Proposed design of the body.

  7. added
    owner/service
    on Nov 25, 2026
  8. devops-cli-service commented on Nov 25, 2026

    @devops-cli-service
    Contributor

    Plan state: branch fix/7233-a-new-worktree-gets-the-pinned, draft pull request #7260. The pull request plans the item and closes no issue. The stage job and the step fix-plan edit this comment, and a comment of each run tells what the run did.

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

    1. Run npm ci in the new worktree when the lock file is present: 42135 tokens
    2. Say that the command installs the pinned Node tools: 42133 tokens

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

    • major criterion_dropped at issue (A test uses the process fake to run devops repos worktrees add for a checkout that holds package-lock.json.): The issue's proof is a test that runs the command with the process fake and asserts the npm call in the new worktree, but the plan's tests call install_node_tools directly. Nothing proves that worktrees_add calls the helper or prints its warning, so the command wiring could be broken while every new test passes; the spec delta's scenarios repeat the helper-only shape. Evidence: "A test uses the process fake to run devops repos worktrees add for a checkout that holds package-lock.json."
    • minor false_premise at proposal (feasibility): The plan says the issue states that the command runs uv sync, but the issue says only that the command makes the Python environment and never names uv sync; the probe of the command that the plan cites shows no uv call either. Evidence: "The issue says the command runs uv sync"
    • minor false_premise at proposal (feasibility): The plan says _run turns a missing program into a warning, but _run raises a GitOperationError on any non-zero code, a missing program included. Only the new helper's direct run_subprocess(..., check=False) call turns the 127 into a warning. Evidence: "A missing program is no exception: src/devops_cli/git/worktree_add.py:def _run calls run_subprocess with check=False"
    • minor other at tasks (1): The install is called only inside the table-output branch of worktrees_add, so a run with --json or --format json creates the worktree and starts no npm, contrary to the plan's own requirement that the command SHALL install whenever the worktree holds package-lock.json. Evidence: "In the table branch of worktrees_add of src/devops_cli/commands/repos.py, after _render_add_report(report) and when is_plan is false, call install_node_tools(Path(report.path))"
  9. devops-cli-service commented on Nov 25, 2026

    @devops-cli-service
    Contributor

    The stage job staged the plan of draft pull request #7260. The plan state comment of #7260 holds the branch, the task groups and the findings.

    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:

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

    1. list_files({"directory":"src/devops_cli/commands"})
    2. read_spec({"capability":"repos-worktrees-add"})
    3. find_issues({"terms":"worktrees add npm"})
    4. file_symbols({"path":"tests/core/test_repos_worktrees_add.py"})
    5. search_code({"text":"uv sync"})
    6. file_symbols({"path":"src/devops_cli/commands/repos.py"})
    7. search_code({"text":"WorktreeAddReport"})
    8. search_code({"text":"def add_worktree"})
    9. read_file({"path":"src/devops_cli/commands/repos.py","start_line":840,"end_line":960})
    10. file_symbols({"path":"src/devops_cli/git/worktree_add.py"})
    11. search_code({"text":"package-lock.json"})
    12. read_file({"path":"src/devops_cli/git/worktree_add.py","start_line":440,"end_line":620})
    13. search_code({"text":"\"uv\", \"sync\""})
    14. search_code({"text":"worktree_venv"})
    15. read_file({"end_line":240,"path":"src/devops_cli/git/worktree_add.py","start_line":180})
    16. search_code({"text":"node_modules/.bin"})
    17. search_code({"text":"bootstrap_checkout"})
    18. search_code({"text":"worktrees add"})
    19. read_file({"path":"src/devops_cli/openspec/gate.py","start_line":100,"end_line":175})
    20. read_file({"path":"src/devops_cli/git/worktree_add.py","start_line":1,"end_line":120})
    21. references({"name":"add_worktree"})
    22. read_file({"path":"tests/core/test_repos_worktrees_add.py","start_line":1,"end_line":100})
    23. read_file({"end_line":120,"path":"tests/git/test_repos_worktrees.py","start_line":1})
    24. read_file({"end_line":360,"path":"tests/git/test_repos_worktrees.py","start_line":150})
    25. read_file({"end_line":1200,"path":"tests/core/test_repos_worktrees_add.py","start_line":1075})
    26. search_code({"text":"def process_fake"})
    27. read_file({"end_line":120,"path":"tests/support/fakes/process.py","start_line":1})
    28. read_file({"end_line":520,"path":"tests/support/fakes/process.py","start_line":380})
    29. read_file({"end_line":380,"path":"tests/support/fakes/process.py","start_line":230})
    30. search_code({"text":"passthrough"})
    31. search_code({"text":"process_fake, git"})
    32. search_code({"text":"real_subprocess"})
    33. search_code({"text":"def git("})
    34. read_file({"end_line":760,"path":"tests/support/git_scenarios.py","start_line":715})
    35. read_file({"end_line":345,"path":"tests/roadmap/test_roadmap_runner_tools.py","start_line":290})
    36. read_file({"end_line":575,"path":"tests/roadmap/test_roadmap_runner_tools.py","start_line":520})
    37. search_code({"text":"call.argv, capture_output"})
    38. read_file({"end_line":830,"path":"src/devops_cli/commands/repos.py","start_line":740})
    39. read_file({"path":"src/devops_cli/openspec/tool.py"})
    40. search_code({"text":"CONST_NPM_LOCKFILE"})
    41. search_code({"text":"npm\", \"ci\""})
    42. read_file({"path":"src/devops_cli/openspec/gate.py","start_line":120,"end_line":175})
    43. file_symbols({"path":"src/devops_cli/git/worktree_add.py"})
    44. search_code({"text":"install_node_tools"})
    45. search_code({"text":"CONST_NPM_LOCKFILE"})
    46. search_code({"text":"def worktrees_add"})
    47. search_code({"text":"npm ci --ignore-scripts"})
    48. search_code({"text":"print_warning"})
    49. read_file({"path":"src/devops_cli/git/worktree_add.py","start_line":520,"end_line":600})
    50. read_file({"path":"src/devops_cli/commands/repos.py","start_line":840,"end_line":960})
    51. file_symbols({"path":"tests/core/test_repos_worktrees_add.py"})
    52. search_code({"text":"def run_subprocess"})
    53. read_file({"end_line":100,"path":"tests/core/test_repos_worktrees_add.py","start_line":55})
    54. search_code({"text":"process_fake"})
    55. search_code({"text":"def process_fake"})
    56. read_file({"end_line":120,"path":"tests/core/test_subprocess_env_uv_npm.py","start_line":1})
    57. search_code({"text":"fakes.process"})
    58. read_file({"end_line":80,"path":"tests/support/fakes/process.py","start_line":420})
    59. search_code({"text":"passthrough"})
    60. read_file({"end_line":60,"path":"tests/support/fakes/process.py","start_line":1})
    61. read_file({"end_line":185,"path":"src/devops_cli/openspec/tool.py","start_line":60})
    62. read_file({"end_line":55,"path":"docs/DESIGN.md","start_line":40})
    63. read_spec({"capability":"repos-worktrees-add"})
    64. read_file({"end_line":40,"path":"src/devops_cli/git/worktree_add.py","start_line":1})
    65. read_file({"end_line":270,"path":"src/devops_cli/git/worktree_add.py","start_line":255})
    66. search_code({"text":"CONST_NPM_BIN_DIR"})
    67. search_code({"text":"NPM_PROGRAM"})
    68. search_code({"text":"worktrees_add_needs_branch_options"})
    69. read_file({"end_line":760,"path":"src/devops_cli/lang/en/messages.py","start_line":690})
    70. callers({"symbol":"add_worktree"})
    71. read_file({"end_line":120,"path":"src/devops_cli/git/worktree_add.py","start_line":85})
    72. search_code({"text":"add_worktree("})
    73. search_code({"text":"print_warning"})
    74. read_file({"end_line":80,"path":"src/devops_cli/commands/repos.py","start_line":1})
    75. search_code({"text":"def bootstrap_checkout"})
    76. read_file({"end_line":422,"path":"docs/ROADMAP_WORKFLOW.md","start_line":410})
    77. references({"name":"uv sync"})
    78. search_code({"text":"worktree_add"})
    79. search_code({"text":"SUBPROCESS_ALLOWED"})
    80. repo_map({"directory":"src/devops_cli/git"})
    81. search_code({"text":"claims the issue for an agent"})
    82. read_file({"path":"src/devops_cli/openspec/gate.py","start_line":120,"end_line":180})
    83. read_file({"path":"src/devops_cli/openspec/tool.py","start_line":70,"end_line":95})
    84. read_file({"path":"src/devops_cli/openspec/tool.py","start_line":160,"end_line":180})
    85. read_file({"path":"src/devops_cli/config/constants.py","start_line":218,"end_line":232})
    86. read_file({"path":"src/devops_cli/commands/repos.py","start_line":55,"end_line":75})
    87. read_file({"path":"src/devops_cli/commands/repos.py","start_line":905,"end_line":945})
    88. read_file({"end_line":40,"path":"tests/support/fakes/process.py","start_line":25})
    89. read_file({"end_line":490,"path":"tests/support/fakes/process.py","start_line":470})
    90. read_file({"end_line":62,"path":"CONTRIBUTING.md","start_line":50})
    91. read_file({"end_line":415,"path":"src/devops_cli/roadmap/runner_tools.py","start_line":398})
    92. read_file({"path":"tests/core/test_repos_worktrees_add.py","start_line":1,"end_line":80})
    93. read_file({"path":"src/devops_cli/git/worktree_add.py","start_line":1,"end_line":60})
    94. list_files({"directory":"tests/lang"})
    95. list_files({"directory":"docs"})
    96. search_code({"text":"uv sync"})
    97. list_files({"directory":"docs/commands"})
    98. search_code({"text":"worktrees_add_dry_run_needs_options"})
    99. read_spec({"capability":"repos-worktrees-add"})
    100. read_file({"path":"src/devops_cli/commands/repos.py","start_line":870,"end_line":1020})
    101. read_file({"path":"src/devops_cli/openspec/tool.py","start_line":60,"end_line":190})
    102. read_file({"path":"src/devops_cli/openspec/gate.py","start_line":120,"end_line":165})
    103. search_code({"text":"uv sync"})
    104. read_spec({"capability":"repos-worktrees-add"})
    105. read_file({"path":"src/devops_cli/config/constants.py","start_line":215,"end_line":240})
    106. read_file({"path":"src/devops_cli/commands/repos.py","start_line":40,"end_line":80})
    107. read_file({"path":"src/devops_cli/roadmap/runner_tools.py","start_line":390,"end_line":440})
    108. read_file({"path":"tests/support/fakes/process.py","start_line":460,"end_line":520})
    109. search_code({"text":"worktrees_add_"})
    110. read_file({"path":"CONTRIBUTING.md","start_line":45,"end_line":70})
    111. search_code({"text":"npm ci --ignore-scripts"})
    112. callers({"symbol":"bootstrap_checkout"})
    113. search_code({"text":"install_node_tools"})
    114. read_file({"path":"src/devops_cli/git/worktree_add.py","start_line":470,"end_line":640})
    115. search_code({"text":"\"ci\", \"--ignore-scripts\""})
    116. search_code({"text":"worktrees add"})
    117. search_code({"text":"worktrees add"})
    118. search_code({"text":"ci docs"})
    119. search_code({"text":"REGENERATE_DOCUMENTS"})
    120. search_code({"text":"generated"})
    121. search_code({"text":"docs/commands"})
    122. search_code({"text":"stage_problem_generated"})
    123. search_code({"text":"Create the worktree of an issue"})
    124. read_file({"path":"tests/core/test_repos_worktrees_add.py","start_line":1,"end_line":40})
    125. read_file({"path":"tests/support/fakes/process.py","start_line":26,"end_line":42})
    126. read_file({"path":"src/devops_cli/lang/en/messages.py","start_line":635,"end_line":690})
    127. search_code({"text":"def print_warning"})
    128. read_file({"path":"src/devops_cli/commands/repos.py","start_line":760,"end_line":830})
    129. search_code({"text":"BIN_NPM"})
    130. search_code({"text":"CONST_NPM_LOCKFILE"})
    131. read_file({"path":"src/devops_cli/roadmap/stage/stage_criteria.py"})
    132. search_code({"text":"def git("})
    133. read_file({"path":"tests/support/fakes/git.py","start_line":1,"end_line":60})
    134. search_code({"text":"def git(tmp_path"})
    135. list_files({"directory":"tests/core"})
    136. search_code({"text":"def git("})
    137. list_files({"directory":"tests"})
    138. read_file({"path":"tests/support/git_scenarios.py","start_line":715,"end_line":770})
    139. search_code({"text":"def run_subprocess("})
    140. read_file({"path":"src/devops_cli/core/process.py","start_line":1096,"end_line":1180})
    141. search_code({"text":"IMAGE_TOOLS"})
    142. read_file({"path":"src/devops_cli/roadmap/runner_tools.py","start_line":80,"end_line":170})
    143. read_spec({"capability":"repos-worktrees-add","requirement":"A new worktree starts at the fetched main"})
    144. read_file({"path":"docs/commands/repos.md","start_line":200,"end_line":240})
    145. search_code({"text":"unused"})
    146. search_code({"text":"MESSAGES.repos"})
    147. list_files({"directory":"tests/git"})
    148. search_code({"text":"worktree_add"})
    149. search_code({"text":"uv sync"})
    150. search_code({"text":"node_modules"})
    151. search_code({"text":"openspec/specs/repos-worktrees-add"})
    152. list_files({"directory":"openspec/specs/repos-worktrees-add"})
    153. search_code({"text":"Node"})
    154. search_code({"text":"def existing_test_problems"})
    155. search_code({"text":"def record_module_tests"})
    156. read_file({"path":"src/devops_cli/roadmap/stage/stage_paths.py","start_line":560,"end_line":700})
    157. list_files({"directory":"tests/lang"})
    158. list_files({"directory":"tests/lang/en"})
    159. read_file({"path":"src/devops_cli/output/console.py","start_line":430,"end_line":480})
    160. list_files({"directory":"tests/core"})
    161. file_symbols({"path":"src/devops_cli/commands/repos.py"})
    162. read_file({"path":"src/devops_cli/commands/repos.py","start_line":750,"end_line":960})
    163. read_file({"path":"tests/core/test_repos_worktrees_add.py","start_line":1,"end_line":120})
    164. read_file({"end_line":960,"path":"src/devops_cli/commands/repos.py","start_line":921})
    165. read_file({"end_line":260,"path":"tests/core/test_repos_worktrees_add.py","start_line":120})
    166. file_symbols({"path":"tests/support/fakes/process.py"})
    167. read_file({"end_line":140,"path":"tests/support/fakes/process.py","start_line":1})
    168. read_file({"end_line":340,"path":"tests/support/fakes/process.py","start_line":160})
    169. file_symbols({"path":"src/devops_cli/git/worktree_add.py"})
    170. read_file({"end_line":270,"path":"src/devops_cli/git/worktree_add.py","start_line":176})
    171. read_file({"end_line":600,"path":"src/devops_cli/git/worktree_add.py","start_line":490})
    172. search_code({"text":"process_fake"})
    173. read_file({"end_line":520,"path":"tests/core/test_repos_worktrees_add.py","start_line":260})
    174. search_code({"text":"process_fake: ProcessFake"})
    175. read_file({"end_line":520,"path":"tests/support/fakes/process.py","start_line":340})
    176. search_code({"text":"side_effect=subprocess.run"})
    177. search_code({"text":"real subprocess"})
    178. search_code({"text":"def cli("})
    179. search_code({"text":"def isolate_data_dir"})
    180. read_file({"path":"tests/support/cli.py"})
    181. read_file({"path":"tests/conftest.py","start_line":900,"end_line":960})
    182. read_file({"end_line":495,"path":"src/devops_cli/git/worktree_add.py","start_line":120})
    183. read_file({"end_line":470,"path":"src/devops_cli/git/worktree_add.py","start_line":400})
    184. search_code({"text":"side_effect=lambda call"})
    185. search_code({"text":"CompletedProcess(side_effect"})
    186. read_file({"end_line":500,"path":"tests/k8s/test_k8s_argocd_gate.py","start_line":455})
    187. callers({"symbol":"add_worktree"})
    188. search_code({"text":"def get_repo_origin_name"})
    189. search_code({"text":"add_worktree("})
    190. read_file({"end_line":700,"path":"src/devops_cli/core/repo.py","start_line":674})
    191. read_file({"end_line":470,"path":"src/devops_cli/roadmap/runner_tools.py","start_line":330})
    192. search_code({"text":"\"--ignore-scripts\""})
    193. search_code({"text":"BIN_NPM"})
    194. read_file({"end_line":232,"path":"src/devops_cli/config/constants.py","start_line":218})
    195. search_code({"text":"worktrees_add_created"})
    196. read_file({"end_line":690,"path":"src/devops_cli/lang/en/messages.py","start_line":640})
    197. search_code({"text":"def _cached_repo_origin"})
    198. read_file({"end_line":1240,"path":"tests/core/test_repos_worktrees_add.py","start_line":1150})
    199. read_file({"end_line":675,"path":"src/devops_cli/core/repo.py","start_line":630})
    200. file_symbols({"path":"src/devops_cli/commands/repos.py"})
    201. read_file({"path":"src/devops_cli/openspec/gate.py","start_line":120,"end_line":150})
    202. read_file({"path":"src/devops_cli/commands/repos.py","start_line":900,"end_line":955})
    203. search_code({"text":"class ToolExecutionError"})
    204. read_spec({"capability":"repos-worktrees-add"})
    205. search_code({"text":"install_node_tools"})
    206. read_file({"path":"src/devops_cli/config/constants.py","start_line":218,"end_line":232})
    207. read_file({"path":"src/devops_cli/lang/en/messages.py","start_line":648,"end_line":664})
    208. read_file({"path":"src/devops_cli/git/worktree_add.py","start_line":248,"end_line":265})
    209. read_file({"path":"tests/support/fakes/process.py","start_line":28,"end_line":40})
    210. read_file({"path":"tests/support/fakes/process.py","start_line":360,"end_line":372})
    211. read_file({"path":"tests/core/test_repos_worktrees_add.py","start_line":1,"end_line":90})
    212. file_symbols({"path":"src/devops_cli/git/worktree_add.py"})
    213. search_code({"text":"uv sync"})
    214. read_file({"path":"src/devops_cli/git/worktree_add.py","start_line":494,"end_line":600})
    215. search_code({"text":"sync_environment"})
    216. search_code({"text":"BIN_UV"})
    217. read_file({"path":"src/devops_cli/commands/repos.py","start_line":776,"end_line":800})
    218. read_file({"path":"CONTRIBUTING.md","start_line":40,"end_line":80})
    219. read_file({"path":"src/devops_cli/openspec/tool.py","start_line":1,"end_line":80})
    220. file_symbols({"path":"tests/support/fakes/process.py"})
    221. read_file({"path":"tests/support/fakes/process.py","start_line":228,"end_line":260})
    222. read_file({"path":"tests/support/fakes/process.py","start_line":470,"end_line":510})
    223. list_files({"directory":"src/devops_cli/lang"})
    224. search_code({"text":"worktrees_add_created"})
    225. read_spec({"capability":"openspec-check","requirement":"Added requirement length"})
    226. search_code({"text":"npm ci --ignore-scripts"})
    227. read_file({"path":"src/devops_cli/roadmap/runner_tools.py","start_line":325,"end_line":445})
    228. search_code({"text":"def git("})
    229. search_code({"text":"side_effect="})
    230. read_file({"path":"tests/support/roadmap_implement.py","start_line":580,"end_line":625})
    231. search_code({"text":"git_for_real"})
    232. read_file({"path":"tests/support/implement_step.py","start_line":130,"end_line":165})
    233. search_code({"text":"FileNotFoundError"})
    234. search_code({"text":"127"})
    235. file_symbols({"path":"src/devops_cli/core/process.py"})
    236. read_file({"path":"src/devops_cli/core/process.py","start_line":830,"end_line":880})
    237. list_files({"directory":"docs/commands"})
    238. read_file({"path":"tests/support/fakes/process.py","start_line":260,"end_line":320})
    239. read_file({"path":"src/devops_cli/config/commands.py","start_line":34,"end_line":40})
    240. read_file({"path":"src/devops_cli/git/worktree_add.py","start_line":135,"end_line":150})
    241. search_code({"text":"ToolExecutionError"})
    242. references({"name":"ToolExecutionError"})
    243. read_file({"path":"src/devops_cli/exceptions/tools.py","start_line":1,"end_line":60})
    244. search_code({"text":"CONST_NPM_LOCKFILE"})
    245. search_code({"text":"BIN_NPM"})
    246. read_file({"path":"src/devops_cli/git/worktree_add.py","start_line":240,"end_line":275})
    247. read_file({"path":"src/devops_cli/commands/repos.py","start_line":905,"end_line":960})
    248. search_code({"text":"npm ci --ignore-scripts"})
    249. read_file({"end_line":800,"path":"src/devops_cli/commands/repos.py","start_line":750})
    250. search_code({"text":"def _claimed"})
    251. search_code({"text":"class WorktreeAddReport"})
    252. read_file({"path":"src/devops_cli/git/worktree_add.py","start_line":85,"end_line":115})
    253. read_file({"path":"tests/core/test_repos_worktrees_add.py","start_line":1,"end_line":80})
    254. read_file({"path":"src/devops_cli/lang/en/messages.py","start_line":648,"end_line":668})
    255. read_spec({"capability":"repos-worktrees-add"})
    256. file_symbols({"path":"src/devops_cli/git/worktree_add.py"})
    257. file_symbols({"path":"tests/core/test_repos_worktrees_add.py"})
    258. search_code({"text":"worktrees_add_created"})
    259. search_code({"text":"def worktrees_add"})
    260. read_file({"path":"src/devops_cli/git/worktree_add.py","start_line":74,"end_line":130})
    261. read_file({"path":"src/devops_cli/git/worktree_add.py","start_line":250,"end_line":270})
    262. read_file({"path":"src/devops_cli/lang/en/messages.py","start_line":645,"end_line":670})
    263. read_file({"path":"src/devops_cli/commands/repos.py","start_line":760,"end_line":960})
    264. read_file({"end_line":1010,"path":"src/devops_cli/commands/repos.py","start_line":928})
    265. read_file({"path":"tests/core/test_repos_worktrees_add.py","start_line":1,"end_line":110})
    266. read_file({"path":"tests/core/test_repos_worktrees_add.py","start_line":860,"end_line":930})
    267. search_code({"text":"CONST_NPM_LOCKFILE"})
    268. search_code({"text":"BIN_NPM"})
    269. search_code({"text":"process_fake"})
    270. search_code({"text":"git_for_real"})
    271. read_file({"end_line":180,"path":"tests/support/implement_step.py","start_line":130})
    272. file_symbols({"path":"tests/support/fakes/process.py"})
    273. read_file({"end_line":150,"path":"src/devops_cli/openspec/gate.py","start_line":125})
    274. read_file({"end_line":95,"path":"src/devops_cli/openspec/tool.py","start_line":60})
    275. search_code({"text":"installed_program"})
    276. search_code({"text":"npm ci --ignore-scripts"})
    277. search_code({"text":"def run_subprocess"})
    278. read_file({"end_line":1180,"path":"src/devops_cli/core/process.py","start_line":1096})
    279. search_code({"text":"FileNotFoundError"})
    280. search_code({"text":"CONST_EXIT_COMMAND_NOT_FOUND"})
    281. read_file({"end_line":70,"path":"tests/support/fakes/process.py","start_line":30})
    282. read_file({"end_line":330,"path":"tests/support/fakes/process.py","start_line":232})
    283. read_file({"end_line":515,"path":"tests/support/fakes/process.py","start_line":470})
    284. read_file({"end_line":880,"path":"src/devops_cli/core/process.py","start_line":855})
    285. read_file({"end_line":55,"path":"docs/DESIGN.md","start_line":40})
    286. read_file({"end_line":45,"path":"docs/DEVCONTAINER_USAGE.md","start_line":38})
    287. read_file({"end_line":66,"path":"CONTRIBUTING.md","start_line":50})
    288. list_files({"directory":"docs/commands"})
    289. search_code({"text":"Create the worktree of an issue on"})
    290. search_code({"text":"uv run devops docs generate"})
    291. read_file({"end_line":435,"path":"src/devops_cli/roadmap/runner_tools.py","start_line":395})
    292. search_code({"text":"def print_warning"})
    293. find_issues({"terms":"worktrees add npm node tools"})
    294. read_issue({"number":5374})
    295. read_spec({"capability":"repos-worktrees-add"})
    296. file_symbols({"path":"src/devops_cli/git/worktree_add.py"})
    297. read_file({"path":"src/devops_cli/git/worktree_add.py","start_line":80,"end_line":120})
    298. read_file({"path":"src/devops_cli/git/worktree_add.py","start_line":255,"end_line":270})
    299. file_symbols({"path":"src/devops_cli/commands/repos.py"})
    300. read_file({"path":"src/devops_cli/commands/repos.py","start_line":759,"end_line":860})
    301. read_file({"end_line":955,"path":"src/devops_cli/commands/repos.py","start_line":860})
    302. read_file({"end_line":160,"path":"src/devops_cli/openspec/gate.py","start_line":120})
    303. read_file({"end_line":100,"path":"src/devops_cli/openspec/tool.py","start_line":60})
    304. search_code({"text":"installed_program("})
    305. search_code({"text":"CONST_NPM_LOCKFILE"})
    306. read_file({"end_line":185,"path":"src/devops_cli/openspec/tool.py","start_line":160})
    307. search_code({"text":"worktrees_add_created"})
    308. read_file({"end_line":700,"path":"src/devops_cli/lang/en/messages.py","start_line":630})
    309. search_code({"text":"BIN_NPM"})
    310. search_code({"text":"def run_subprocess"})
    311. read_file({"end_line":1140,"path":"src/devops_cli/core/process.py","start_line":1096})
    312. read_file({"end_line":435,"path":"src/devops_cli/roadmap/runner_tools.py","start_line":390})
    313. read_file({"end_line":880,"path":"src/devops_cli/core/process.py","start_line":845})
    314. search_code({"text":"npm_config"})
    315. read_file({"path":"tests/core/test_subprocess_env_uv_npm.py","start_line":1,"end_line":60})
    316. read_file({"end_line":120,"path":"tests/core/test_repos_worktrees_add.py","start_line":1})
    317. search_code({"text":"def _add("})
    318. search_code({"text":"process_fake"})
    319. search_code({"text":"def process_fake"})
    320. search_code({"text":"def git_for_real"})
    321. search_code({"text":"git_for_real"})
    322. read_file({"end_line":170,"path":"tests/support/implement_step.py","start_line":120})
    323. read_file({"end_line":520,"path":"tests/support/fakes/process.py","start_line":440})
    324. search_code({"text":"uv sync"})
    325. search_code({"text":"\"uv\""})
    326. read_file({"end_line":80,"path":"CONTRIBUTING.md","start_line":40})
    327. search_code({"text":"worktree"})
    328. read_file({"end_line":215,"path":"src/devops_cli/git/worktree_add.py","start_line":180})
    329. read_file({"end_line":600,"path":"src/devops_cli/git/worktree_add.py","start_line":519})
    330. read_file({"end_line":55,"path":"docs/DESIGN.md","start_line":36})
    331. read_file({"end_line":50,"path":"docs/DEVCONTAINER_USAGE.md","start_line":30})
    332. search_code({"text":"def test_the_add_claims_the_issue"})
    333. list_files({"directory":"docs/commands"})
    334. search_code({"text":"def test_"})
    335. read_file({"path":"src/devops_cli/openspec/gate.py","start_line":120,"end_line":170})
    336. file_symbols({"path":"src/devops_cli/git/worktree_add.py"})
    337. read_file({"path":"src/devops_cli/git/worktree_add.py","start_line":255,"end_line":268})
    338. read_file({"path":"src/devops_cli/openspec/tool.py","start_line":75,"end_line":90})
    339. read_file({"end_line":875,"path":"src/devops_cli/core/process.py","start_line":852})
    340. read_file({"end_line":662,"path":"src/devops_cli/lang/en/messages.py","start_line":648})
    341. read_file({"end_line":790,"path":"src/devops_cli/commands/repos.py","start_line":770})
    342. read_file({"end_line":945,"path":"src/devops_cli/commands/repos.py","start_line":845})
    343. file_symbols({"path":"src/devops_cli/openspec/gate.py"})
    344. file_symbols({"path":"src/devops_cli/openspec/tool.py"})
    345. read_file({"end_line":68,"path":"CONTRIBUTING.md","start_line":58})
    346. read_file({"end_line":50,"path":"docs/DESIGN.md","start_line":40})
    347. read_file({"end_line":46,"path":"docs/DEVCONTAINER_USAGE.md","start_line":36})
    348. read_file({"end_line":80,"path":"tests/core/test_repos_worktrees_add.py","start_line":30})
    349. search_code({"text":"def run_subprocess("})
    350. read_file({"path":"tests/core/test_repos_worktrees_add.py","start_line":1,"end_line":29})
    351. read_file({"end_line":1135,"path":"src/devops_cli/core/process.py","start_line":1096})
    352. read_file({"end_line":152,"path":"tests/support/implement_step.py","start_line":136})
    353. read_file({"end_line":520,"path":"tests/support/fakes/process.py","start_line":470})
    354. search_code({"text":"def answer"})
    355. search_code({"text":"class ProcessFake"})
    356. read_file({"end_line":300,"path":"tests/support/fakes/process.py","start_line":167})
    357. search_code({"text":"side_effect"})
    358. read_file({"end_line":42,"path":"src/devops_cli/config/commands.py","start_line":30})
    359. read_file({"end_line":230,"path":"src/devops_cli/config/constants.py","start_line":220})
    360. read_file({"end_line":432,"path":"src/devops_cli/roadmap/runner_tools.py","start_line":400})
    361. list_files({"directory":"docs/commands"})
    362. list_files({"directory":"tests/lang"})
    363. list_files({"directory":"tests/core"})
    364. find_issues({"terms":"worktrees add npm node tools"})
    365. read_issue({"number":5374})
    366. list_files({"directory":"src/devops_cli/lang/en"})
    367. file_symbols({"path":"src/devops_cli/git/worktree_add.py"})
    368. read_file({"path":"src/devops_cli/git/worktree_add.py","start_line":190,"end_line":270})
    369. read_file({"path":"src/devops_cli/git/worktree_add.py","start_line":494,"end_line":600})
    370. search_code({"text":"worktrees_add_created"})
    371. file_symbols({"path":"src/devops_cli/commands/repos.py"})
    372. read_file({"path":"src/devops_cli/commands/repos.py","start_line":755,"end_line":960})
    373. read_file({"path":"src/devops_cli/lang/en/messages.py","start_line":630,"end_line":690})
    374. read_file({"end_line":620,"path":"src/devops_cli/lang/en/messages.py","start_line":580})
    375. read_file({"path":"tests/core/test_repos_worktrees_add.py","start_line":1,"end_line":80})
    376. search_code({"text":"def git_for_real"})
    377. search_code({"text":"def process_fake"})
    378. search_code({"text":"process_fake"})
    379. read_file({"path":"tests/support/fakes/process.py","start_line":460,"end_line":520})
    380. search_code({"text":"git_for_real)"})
    381. read_file({"end_line":160,"path":"tests/support/implement_step.py","start_line":130})
    382. search_code({"text":"def git("})
    383. read_file({"end_line":780,"path":"tests/support/git_scenarios.py","start_line":720})
    384. read_file({"path":"src/devops_cli/config/constants.py","start_line":222,"end_line":230})
    385. read_file({"path":"src/devops_cli/config/commands.py","start_line":34,"end_line":42})
    386. list_files({"directory":"tests/lang"})
    387. list_files({"directory":"tests/roadmap/stage"})
    388. search_code({"text":"install_node_tools"})
    389. list_files({"directory":"tests/commands"})
    390. list_files({"directory":"tests/roadmap/refine"})
    391. search_code({"text":"npm ci"})
    392. search_code({"text":"def print_warning"})
    393. list_files({"directory":"docs/commands"})
    394. read_file({"end_line":470,"path":"src/devops_cli/output/console.py","start_line":447})
    395. read_file({"end_line":955,"path":"src/devops_cli/commands/repos.py","start_line":921})
    396. file_symbols({"path":"src/devops_cli/openspec/tool.py"})
    397. read_file({"end_line":150,"path":"src/devops_cli/openspec/gate.py","start_line":120})
    398. search_code({"text":"docs generate"})
    399. read_spec({"capability":"repos-worktrees-add"})
    400. file_symbols({"path":"src/devops_cli/git/worktree_add.py"})
    401. search_code({"text":"npm ci"})
    402. search_code({"text":"CONST_NPM_LOCKFILE"})
    403. search_code({"text":"worktrees_add_created"})
    404. read_file({"path":"src/devops_cli/git/worktree_add.py","start_line":180,"end_line":270})
    405. read_file({"path":"src/devops_cli/commands/repos.py","start_line":700,"end_line":880})
    406. read_file({"path":"src/devops_cli/lang/en/messages.py","start_line":640,"end_line":670})
    407. read_file({"path":"src/devops_cli/config/commands.py","start_line":30,"end_line":45})
    408. read_file({"end_line":985,"path":"src/devops_cli/commands/repos.py","start_line":880})
    409. search_code({"text":"def process_fake"})
    410. search_code({"text":"def bootstrap_checkout"})
    411. search_code({"text":"CONST_EXIT_COMMAND_NOT_FOUND"})
    412. read_file({"end_line":560,"path":"tests/support/fakes/process.py","start_line":430})
    413. search_code({"text":"def answer("})
    414. read_spec({})
    415. search_code({"text":"uv run devops ci docs"})
    416. read_spec({"capability":"repos-worktrees-add"})
    417. search_code({"text":"uv sync"})
    418. read_file({"end_line":290,"path":"tests/support/fakes/process.py","start_line":225})
    419. search_code({"text":"ignore-scripts"})
    420. search_code({"text":"class RepoMessages"})
    421. read_file({"end_line":450,"path":"src/devops_cli/roadmap/runner_tools.py","start_line":395})
    422. search_code({"text":"BIN_NPM"})
    423. search_code({"text":"npm"})
    424. search_code({"text":"def cli("})
    425. search_code({"text":"\"@fission-ai/openspec\""})
    426. search_code({"text":"style-dictionary"})
    427. search_code({"text":"generated"})
    428. read_file({"path":"tests/support/cli.py"})
    429. search_code({"text":"style-dictionary\": \"5.8.0"})
    430. search_code({"text":"docs/commands"})
    431. read_file({"end_line":600,"path":"src/devops_cli/git/worktree_add.py","start_line":494})
    432. search_code({"text":"venv"})
    433. search_code({"text":"standard_dir"})
    434. search_code({"text":"def git("})
    435. read_file({"end_line":385,"path":"tests/core/test_repos_worktrees_add.py","start_line":200})
    436. search_code({"text":"generated document"})
    437. search_code({"text":"CONST_DOCS_INVENTORY"})
    438. search_code({"text":"\"worktrees\""})
    439. search_code({"text":"worktrees add"})
    440. read_file({"end_line":760,"path":"tests/support/git_scenarios.py","start_line":700})
    441. search_code({"text":"from tests.support.git_scenarios import"})
    442. search_code({"text":"def test("})
    443. search_code({"text":"\"test\""})
    444. search_code({"text":"worktrees add"})
    445. read_file({"end_line":340,"path":"src/devops_cli/git/worktree_add.py","start_line":318})
    446. search_code({"text":"worktrees"})
    447. search_code({"text":"devops repos worktrees"})
    448. read_file({"end_line":420,"path":"docs/commands/repos.md","start_line":300})
    449. list_files({"directory":"docs/commands"})
    450. search_code({"text":"introspect_all_groups"})
    451. read_file({"end_line":304,"path":"docs/commands/repos.md","start_line":200})
    452. read_file({"end_line":540,"path":"src/devops_cli/docs/generator.py","start_line":470})
    453. search_code({"text":"bootstrap_checkout"})
    454. search_code({"text":"runner_tools"})
    455. read_spec({"capability":"repos-worktrees-add","requirement":"A new worktree starts at the fetched main"})
    456. read_spec({"capability":"repos-worktrees-add","requirement":"A new worktree claims the issue for an agent"})
    457. search_code({"text":"installed_program"})
    458. read_file({"end_line":200,"path":"src/devops_cli/openspec/tool.py","start_line":160})
    459. search_code({"text":"npm"})
    460. search_code({"text":"test_add_installs"})

    Tool calls: callers=3 (empty=0), file_symbols=24 (empty=0), find_issues=3 (empty=0), list_files=25 (empty=0), read_file=203 (empty=0), read_issue=2 (empty=0), read_spec=14 (empty=0), references=3 (empty=0), repo_map=1 (empty=0), search_code=182 (empty=16)

    The stage job read the open pull requests and their files in 1 GraphQL request(s).

    The plan request held these comments of the item whole: #7233 (comment), #7233 (comment), #7233 (comment).

  10. added
    owner/service
    status/in-progress
    and removed
    owner/service
    status/ready
    on Nov 25, 2026
  11. added
    status/in-review
    and removed
    status/in-progress
    on Nov 26, 2026
  12. devops-cli-service commented on Nov 26, 2026

    @devops-cli-service
    Contributor

    The draft pull request #7260 holds the final title and body. In mode on of roadmap.fix_checks.mode, the watch row marks it ready when its checks pass, and a fix-checks Job repairs a failed check whose name gives the class test, lint or types. In each other case the watch row stops the item: another failed check, a cancelled check, a conflict, a fix-checks Job that ended with no repair, or another mode.

    Spend: 77 model requests, 7104157 input tokens, 17835 output tokens.

  13. removed
    status/in-review
    on Nov 26, 2026
  14. devops-cli-service commented on Nov 26, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-26 00:43 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/lowpriority/p0-criticalscope/repossource/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions