Repository navigation
Description
Problem
devops openspec new and devops openspec archive work on the devops-cli checkout when a person or an agent runs them from the checkout of another repository with the devcontainer install of devops-cli.
Evidence (2026-11-26, devops-cli 0.222.0, working directory = a git worktree of dan-petty/danielpetty.com, command /workspaces/devops-cli/.venv/bin/devops):
devops openspec new 93 --repo dan-petty/danielpetty.com --title "..."printedCreated openspec/changes/93-give-the-rule-of-a-user on branch main. The folder was in/workspaces/devops-cli/openspec/changes/, and the worktree of the other repository had no new file. The option--repodid not change the place.devops openspec archive 93-give-the-rule-of-a-userfrom the same worktree stopped withChange '93-give-the-rule-of-a-user' not found. Available changes: 1327-infra-commands-edge-fakes, ...: it listed the changes of devops-cli.
Effect: the file AGENTS.md that devops repos onboard gives to a repository tells the agent to plan each item as an OpenSpec change and to archive it with devops openspec archive <change>. From the devcontainer, that command cannot do it for the other repository. The scaffold also leaves an untracked folder in the devops-cli checkout.
Workaround used: move the scaffold folder into the other checkout, and run openspec archive <change> --yes and openspec validate --all --strict there with the opt-out environment of devops_cli.openspec.tool.
Expected
The two commands work on the repository of the working directory (its git root), or stop with a message when that repository has no openspec/config.yaml.
Acceptance
- From a checkout of another repository that has
openspec/config.yaml,devops openspec new <issue>writes the folder into that checkout, anddevops openspec archive <change>archives it there.
Activity
dan-petty commentedon Nov 26, 2026
openspec, and .github/labels.yml declares no scope/openspec label. Add the label to the file to give the scope to this item.devops openspec new and devops openspec archive operate on the working directory's repository instead of the devops-cli checkoutas the change that both ask for.Both items ask for the same fix: the two commands must target the working directory's repository rather than the devops-cli checkout.A person closes one of the two if that is so.dan-petty commentedon Nov 26, 2026
Duplicate of #7311, which another session filed 13 minutes before this item with the same defect. The evidence of this item is in a comment on #7311.