Repository navigation
Description
Update 2026-11-26 (infra move): The OpenSpec pin moved to the root package.json.
src/devops_cli/tools_lock/ and tools.lock are gone. The pin is now 2.2.0, not 1.17.0, so record the verb flags again for that version.
Problem or Motivation
The owner asked on 2026-11-12 that a devops command that runs a CLI tool take the names of the tool and pass its arguments through (#5223, ADR 0026). Agents type the verbs of the upstream openspec CLI under devops openspec:
- Loki, 7 days to 2026-11-12:
devops openspec validatefailed 3 times. - feat(cli): track gh-parity names and usage-error capture #4833 study, 2026-09-23 to 2026-11-11:
openspec validateoropenspec listfailed 37 times.
devops has these commands (commands/openspec.py):
check: a gate of several runs.archive.regenerate: it runsopenspec update --force.new: the project scaffold.
A bare openspec run can send telemetry to edge.openspec.dev, so agents must run it through devops (ADR 0010, openspec/tool.py).
Proposed Solution & Architectural Design
devops openspec validate,list,show,statusandinstructionsbecome read entries of the registry of feat(cli): tool commands pass unknown arguments to the tool #5223. The runner isOpenSpecTool.run(openspec/tool.py), with the isolatedXDG_CONFIG_HOMEand the telemetry opt-outs. No request goes out.regeneratebecomesupdate. It keeps the set-up of the custom profile and gives the other upstreamupdatearguments to openspec. An OpenSpec version bump usesdevops openspec update.archivegives the upstream flags (--skip-specs,--json) to openspec. It keeps--yes. It refuses--no-validatewith exit 2, because it validates after the archive.new <issue>stays the project scaffold. Upstreamopenspec new change <name>has another form, and ADR 0026 lists it as an exception.checkstays, because it is a gate of several runs.- Use the verbs of the pinned version (the
@fission-ai/openspecpin of the rootpackage.json). The premise check runsopenspec <verb> --helpfor each verb through the recording oftests/support/openspec_recording.pyand records the flags. build(openspec): move OpenSpec to 2.0.0 and its skill layout #5078 records them again when it moves the pin to 2.0.0. - Add the read-only MCP rows
openspec validateandopenspec list. - Add the hint row
openspec regenerateto the table of feat(cli): usage errors show a hint for known wrong commands #4860, with the targetdevops openspec update. Remove the rowsopenspec validate|list.
Target Subsystem
OpenSpec (devops openspec, src/devops_cli/openspec/).
Existing Tool Considered
The upstream openspec CLI and its verbs. devops adds only the isolated config and the opt-outs. Nothing new is built.
Acceptance Criteria
devops openspec validate --all --strictexits with the exit code of openspec. The process stub shows the isolatedXDG_CONFIG_HOMEand the opt-out variables.devops openspec list --jsonprints the JSON of openspec.devops openspec updatewrites the same skills thatregeneratewrote.devops openspec regenerateexits 2 with the hint line.devops openspec archive <change> --skip-specs --dry-runprints both argvs and runs none.- A test with sockets blocked runs
devops openspec validate, and no connection opens.
Dependencies
Merge first: #5223. #5078 is not a dependency: the pinned 1.17.0 has these verbs, and the flags come from the recording. Open the pull request after the pull request of #4855 merges, because both change the generated command reference.
Source: #4833
Alternatives check of 2026-11-29: in-use.
The repository already uses this tool.
Tool: Fission-AI/OpenSpec (https://github.com/Fission-AI/OpenSpec), MIT, last activity 2026-11-29, maintained.
Reason: Searches found no alternative; the already pinned upstream OpenSpec CLI (2.2.0) itself supplies the validate, list, show, status, instructions, update and archive verbs, so devops only needs to pass arguments through its existing runner.
Covers:
- Upstream read verbs validate, list, show, status and instructions
- Upstream update and archive verbs with their own flags
- Init, config profile and update for skill generation
- JSON output for list and archive
Lacks:
- No isolated XDG_CONFIG_HOME; devops must set it
- Telemetry opt-out variables are not built in
- No read-only MCP rows or hint table entries
- No gate over all open changes, which devops check keeps
Proposed design
Problem statement
Agents type upstream openspec verbs under devops openspec. The read verbs validate, list, show, status and instructions fail because devops exposes only check, archive, regenerate and new. The change adds pass-through read entries, replaces regenerate with update, passes archive flags, and adds the MCP and hint rows. It keeps the isolated config and telemetry opt-outs.
Acceptance criteria
Requirement: Validate passes through
devops openspec validate SHALL run the pinned openspec CLI with the given arguments through OpenSpecTool.run.
Scenario: Validate passes arguments
- WHEN A test runs
devops openspec validate --all --strictwith a process stub. - THEN The stub records
openspec validate --all --strictand the command exits with the stub's exit code.
Requirement: List prints JSON
devops openspec list --json SHALL print the standard output of openspec unchanged.
Scenario: List returns JSON
- WHEN A test runs
devops openspec list --jsonwith a process stub that returns known JSON. - THEN The command prints that JSON and exits 0.
Requirement: Other read verbs pass through
devops openspec show, status and instructions SHALL run the pinned openspec CLI with the given arguments through OpenSpecTool.run.
Scenario: Read verbs pass arguments
- WHEN A test runs
devops openspec show <change>,devops openspec status --change <change>anddevops openspec instructions apply --change <change>with a process stub. - THEN The stub records each matching openspec argv and each command exits with the stub's exit code.
Requirement: Read entries isolate config
Each read entry SHALL run openspec with an isolated XDG_CONFIG_HOME and the telemetry opt-out variables.
Scenario: Read entries use isolated environment
- WHEN A test runs
devops openspec list --jsonanddevops openspec validatewith a process stub. - THEN The stub records a temporary
XDG_CONFIG_HOMEand each telemetry opt-out variable for each run.
Requirement: Update runs openspec
devops openspec update SHALL run openspec update --force after the isolated custom profile set-up and pass the other arguments to openspec update.
Scenario: Update runs upstream update
- WHEN A test runs
devops openspec update --jsonwith a process stub. - THEN The stub records
openspec update --force --jsonafter the custom profile set-up and the command exits with the stub's exit code.
Requirement: Regenerate is refused
devops openspec regenerate SHALL exit 2 with a hint that names devops openspec update.
Scenario: Regenerate is refused
- WHEN A test runs
devops openspec regenerate. - THEN The command exits 2, prints
devops openspec updatein the hint and records no process.
Requirement: Archive passes flags
devops openspec archive SHALL pass --skip-specs and --json to openspec and keep --yes.
Scenario: Archive passes flags
- WHEN A test runs
devops openspec archive <change> --skip-specs --jsonwith a process stub. - THEN The stub records an archive argv that holds
<change>,--skip-specs,--jsonand--yes, and the command exits with the stub's exit code.
Requirement: Archive dry-run shows both argvs
devops openspec archive --dry-run SHALL print the archive argv and the validation argv and MUST run no process.
Scenario: Archive dry-run
- WHEN A test runs
devops openspec archive <change> --skip-specs --dry-runwith a process stub. - THEN The command prints the archive argv and the validation argv, and the stub records no process.
Requirement: Archive refuses no-validate
devops openspec archive SHALL refuse --no-validate with exit 2.
Scenario: No-validate refused
- WHEN A test runs
devops openspec archive <change> --no-validate. - THEN The command exits 2 and the process stub records no process.
Requirement: Read entry opens no socket
A read entry SHALL make no network connection.
Scenario: Sockets blocked
- WHEN A test with sockets blocked runs
devops openspec validatewith a process stub. - THEN No connection opens and the command exits with the stub's exit code.
Requirement: MCP read rows
The MCP server SHALL expose openspec validate and openspec list as read-only tools.
Scenario: MCP rows are read-only
- WHEN A test lists the MCP tools.
- THEN The tools include
openspec validateandopenspec list, each marked read-only.
Requirement: Hint table updated
The hint table of #4860 SHALL hold the row openspec regenerate -> devops openspec update and no row for openspec validate or openspec list.
Scenario: Hint table updated
- WHEN A test asks the hint table of feat(cli): usage errors show a hint for known wrong commands #4860 for
openspec regenerate,openspec validateandopenspec list. - THEN The table returns
devops openspec updatefor regenerate and no entry for validate or list.
Requirement: New remains scaffold
devops openspec new <issue> SHALL remain the project scaffold.
Scenario: New stays scaffold
- WHEN A test runs
devops openspec new <issue>with a process stub. - THEN The command runs the project scaffold and records no
openspec new changeprocess.
Requirement: Check remains gate
devops openspec check SHALL remain the gate over all open changes.
Scenario: Check stays gate
- WHEN A test runs
devops openspec checkwith a process stub. - THEN The stub records the gate runs over the open changes and the command exits with the gate result.
Existing Tool Considered
The alternatives check of 2026-11-19 in the issue body records in-use for Fission-AI/OpenSpec (MIT, maintained, https://github.com/Fission-AI/OpenSpec). The proposal runs that pinned CLI and supplies what the block says the tool lacks: isolated XDG_CONFIG_HOME, telemetry opt-outs, read-only MCP rows, hint rows and the gate over all open changes.
Key questions
- Which OpenSpec version does the repository pin?: The root
package.jsonpins@fission-ai/openspecat 2.2.0. The oldtools.lockandsrc/devops_cli/tools_lock/are gone, so the pin is 2.2.0, not 1.17.0. [sources: package.json] - Is build(openspec): move OpenSpec to 2.0.0 and its skill layout #5078 a dependency of this item?: No. The root
package.jsonalready pins 2.2.0. The premise of build(openspec): move OpenSpec to 2.0.0 and its skill layout #5078, a move to 2.0.0, is stale. Record the flags of 2.2.0 in this item. [sources: package.json] - Does the pinned OpenSpec CLI have the read and update verbs?: The committed skill file names
validate,list,show,status,instructions,archiveandupdate. The recording helper records each openspec run. The premise check records the flags of 2.2.0. [sources: .agents/skills/openspec-apply-change/SKILL.md, tests/support/openspec_recording.py, src/devops_cli/openspec/tool.py] - How should devops expose the upstream read verbs?: Add them as read entries of the registry of feat(cli): tool commands pass unknown arguments to the tool #5223. Each entry calls
OpenSpecTool.runwith the given arguments. Do not implement the verbs in devops. (best practice) [sources: src/devops_cli/commands/openspec.py, src/devops_cli/openspec/tool.py, AGENTS.md]- Chosen: Pass through through the registry of feat(cli): tool commands pass unknown arguments to the tool #5223. It reuses the isolated runner and the upstream verbs.
- Rejected: Implement the read verbs in devops. It duplicates the upstream CLI and its flags.
- Should
regeneratestay as an alias ofupdate?: No. Replaceregeneratewithupdate.regenerateexits 2 with a hint that namesdevops openspec update. (best practice) [sources: src/devops_cli/commands/openspec.py, src/devops_cli/openspec/skills.py]- Chosen: Replace regenerate with update. It matches the upstream verb and keeps one name for one action.
- Rejected: Keep regenerate as an alias. It keeps two names for one upstream verb.
- Should
devops openspec archivepass upstream flags?: Yes. Pass--skip-specsand--jsonto openspec. Keep--yesin the archive argv. (best practice) [sources: src/devops_cli/openspec/archive.py, src/devops_cli/commands/openspec.py]- Chosen: Pass upstream flags through. It gives the upstream flags to openspec and keeps the archive wrapper.
- Rejected: Keep the fixed archive argv. It blocks
--skip-specsand--json.
- Should
devops openspec archiverefuse--no-validate?: Yes.archivevalidates after the archive. It refuses--no-validatewith exit 2. (best practice) [sources: src/devops_cli/commands/openspec.py, src/devops_cli/openspec/archive.py]- Chosen: Refuse --no-validate with exit 2. It keeps the post-archive validation and gives a clear error.
- Rejected: Pass --no-validate through. It turns off the validation that devops runs after the archive.
- Should
devops openspec new <issue>stay the project scaffold?: Yes. Keepnew <issue>as the project scaffold. Upstreamopenspec new change <name>has another form. (best practice) [sources: src/devops_cli/commands/openspec.py, src/devops_cli/openspec/scaffold.py]- Chosen: Keep new as scaffold. It keeps the project form and the upstream
new changeform apart. - Rejected: Map new to upstream
openspec new change. It changes the scaffold form and breaks the existing command.
- Chosen: Keep new as scaffold. It keeps the project form and the upstream
- Should
devops openspec checkstay as a separate command?: Yes.checkruns a gate of several runs. It is not one upstream verb. (best practice) [sources: src/devops_cli/commands/openspec.py, src/devops_cli/openspec/gate.py]- Chosen: Keep check as a gate. It keeps the gate over all open changes.
- Rejected: Replace check with a pass-through read entry. It would remove the gate over all open changes.
- Should the MCP rows for
openspec validateandopenspec listbe read-only?: Yes. Both commands only read. Add both rows as read-only MCP tools. (best practice) [sources: src/devops_cli/commands/openspec.py, tests/ai/mcp/test_mcp_read_only_write_options.py]- Chosen: Mark both rows read-only. Both commands only read and must not write.
- Rejected: Expose the rows as write tools. It gives write permission to a read-only command.
- Should the read entries and update use the isolated environment?: Yes. Every run uses
isolated_openspecandOpenSpecTool.run. They set the telemetry opt-outs and a temporaryXDG_CONFIG_HOME. (best practice) [sources: src/devops_cli/openspec/tool.py, src/devops_cli/commands/openspec.py]- Chosen: Use the isolated environment. It keeps telemetry off and keeps a developer profile out of the run.
- Rejected: Run openspec with the caller environment. It can send telemetry and use the developer profile.
Fit
Fits in one pull request.
Suspected block
None.
The item is in a dependency cycle: #5227 → #5232 → #5228 → #5227. A person removes one edge of the cycle, so that its items no longer wait on each other.
Activity
dan-petty commentedon Nov 12, 2026
Both concern OpenSpec usage in devops, but #3770 adds onboarding setup while this candidate adds CLI verb passthrough and renames regenerate to update.dan-petty commentedon Nov 13, 2026
New evidence of 2026-11-13 (review of failing CLI calls). The failure is a quality risk, not only a cost: half of the agents do not run the plan check after the error.
openspec validate60 errors in 60 agents and 18 sessions,openspec list19,openspec check <change>with an extra argument 9 (88 errors, 20 sessions).validateerrors had a retry in the same group within 3 calls. The other agents left thedevopspath or did not run the check.openspec --help446,openspec new --help126 since 2026-11-08.openspec validate3, with no Click suggestion.openspec --versionwas refused, becauseopenspecis not a program of the step shell.Scope point: agents give a change name to
devops openspec check, because upstreamopenspec validate <change>takes one.check()takes no argument (src/devops_cli/commands/openspec.py, line 29). I propose thatopenspec checktakes an optional change name and checks only that change. If the item does not add it, the error says "check takes no change name; it checks all open changes".Interim step: until this item merges, the hint table of #4860 maps
openspec validatetodevops openspec check.Measure:
unknown_commandrecords foropenspec validateandopenspec listgo to 0 in the 7 days after the release, and the share of agents that run a passingopenspec checkafter the first try goes up.devops-cli-service commentedon Nov 17, 2026
Refine cannot set this item to Ready at 90a3d2a while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.
devops-cli-service commentedon Nov 19, 2026
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 (7)
Tools considered:
Searches run:
Sources:
devops-cli-service commentedon Nov 21, 2026
Owner question: See Suspected block in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence