How-to guide / Guides
CLI troubleshooting
Diagnose Solomonar CLI errors, init conflicts and confirmations, uninstall conflicts and retained files, missing initialization, task ownership conflicts, rejected transitions, and exit codes.
On this page
A command is unknown
First run solomonar help to see the command table in your binary. The interface specification includes future commands; the current build does not yet implement doctor, guard, dashboard, or upgrade --diff. An older build may also lack upgrade, extension, uninstall, and runtime.
Use the availability table before following an example from the full design contract. An unknown command exits 2; it does not mean your application needs to be scaffolded again.
The registry is not initialized
not_initialized means refs/heads/workflow-state is missing. Task commands depend on that registry. Run solomonar init in the repository; see Set up a project.
Do not write registry files by hand or create a registry branch to bypass initialization.
The registry is outdated
registry_outdated means the registry was written by CLI 0.1.5 or earlier, with every task in one state.json. Upgrade every machine that writes the registry, then run solomonar task migrate once. The migration keeps the old registry as the parent commit. An older CLI reading the migrated registry reports cli_outdated: install the current release there instead of undoing the migration.
init asks for a confirmation
interactive_required means init had something to write but no terminal to ask. Review the plan with --dry-run, then rerun with --yes. A run that would change nothing needs no confirmation.
init reports a conflict
file_conflict (exit 4) means a file in a target path differs from what init would write: you edited a managed file, or the path held your own file before. The plan lists each conflict, and nothing was written. Decide per file:
solomonar init --keep docs/solomonar/rules.md --yes
solomonar init --overwrite .claude/agents/implementer.md --yes
--keep preserves your bytes; --overwrite writes the framework's version. An existing AGENTS.md is never a conflict: it is adopted, with your content moved under ## Project notes.
init rejects a choice
already_initialized means the project's manifest records a different choice than the one you passed, such as another runtime or other extensions. init never changes recorded choices. Rerun without the differing flag; change extensions with extension add and extension remove. Change runtimes with runtime add and runtime remove, and a runtime's adversarial-reviewer model with runtime add <runtime> --adversarial-model <model>.
unknown_extension (exit 2) means an --ext value is not in the embedded catalog; the error lists the known names. --ext none cannot be combined with another name. init --ext takes catalog names only: activate a project extension after init with extension add <name>.
An extension command rejects the project
framework_outdated (exit 3) means the project's framework is older than this CLI. extension add and extension remove refuse to write until the files match the CLI:
error: extension add rejected (framework_outdated)
check: the project's framework matches this CLI
found: manifest framework 0.1.7, this CLI ships 0.2.0
fix: run solomonar upgrade
nothing was written
Run solomonar upgrade on main, commit the result, then rerun the command. extension list and upgrade accept an older project.
not_initialized from upgrade or extension add|remove means there is no .solomonar/manifest.json; run solomonar init first. extension list works without it.
unknown_extension from extension add means the name is neither in the catalog nor a directory in docs/solomonar/extensions/; run solomonar extension list for the names you can add. invalid_value names the first problem of a project extension, such as applies_when is missing; fix its directory, or ask the extension-authoring skill to validate it, then rerun. name_collision means a project extension reuses a catalog name; rename its directory and its name.
file_conflict (exit 4) from upgrade, extension remove, or runtime add|remove means a managed file was edited. Resolve each listed path with --keep <path> or --take-new <path> for upgrade, and --keep <path> or --overwrite <path> for the extension and runtime commands. On a removal, --keep leaves the edited file on disk, no longer managed, and --overwrite deletes it.
not_a_repository from init means the directory is not inside a Git repository. Run git init -b main first, or pass --git-init.
To add Copilot to a project that already records different Solomonar runtimes, run solomonar runtime add copilot. Do not hand-edit .solomonar/manifest.json, lower its version, or rerun init with different runtime choices.
uninstall stops or leaves files
solomonar uninstall plans from .solomonar/manifest.json alone.
No Solomonar manifest; nothing to uninstall automatically.(exit 0) means the manifest is missing: the project was never initialized, was already uninstalled, or the manifest was deleted. The CLI does not search for framework files without it. If files remain, remove them by hand, or restore the manifest from Git history and rerun.manifest_invalid(exit 1) means the manifest cannot be decoded. Restore it from Git history, for example withgit restore .solomonar/manifest.json; never edit it by hand. A manifest that is a symlink, directory, or special file isfile_conflictbefore any plan; restore it as a regular file.cli_outdated(exit 3) means a newer release wrote the project; install that release or a newer one and rerun.file_conflict(exit 4) lists each edited or unsafe managed file. Rerun with--keep <path>to leave the file, no longer managed, or--overwrite <path>to remove it. A record outside the pathsuninstallremoves can only be kept. If the files changed after the plan was shown, simply rerun.hook entry removal is not supportedmeans the manifest records a runtime hook entry. Neither flag resolves it, so keep the installation until hook entry removal ships with the plannedguardhooks. The current releases write no hook entries.
After a successful run, some content stays on purpose:
- Your
## Project notesinAGENTS.md, project extensions indocs/solomonar/extensions/<name>/, decisions, specifications, and other documents. Delete a project extension's directory by hand if you no longer want it. - The registry
refs/heads/workflow-statewith its task history, task branches, and other worktrees.solomonar task showstill reads the registry. Delete the branch with Git only if you want to discard the history. - Every path passed to
--keep, reported with the warning<path> is kept and no longer managed; remove it by hand if unneeded. - References the command reports with
manual_reference, such as aCLAUDE.mdyou wrote that still imports@AGENTS.md, or a customized framework entry indocs/README.md. Other mentions of Solomonar in your documents are not searched for; edit them yourself.
A rerun of init does not restore the removed docs/README.md index line, because init never rewrites an existing docs/README.md.
If the last error line reads rollback incomplete; recover the paths named above, a failed removal could not restore every file. The found: not restored: … line names the paths. Restore them, for example with git restore, then rerun uninstall.
Copilot does not discover the framework
Check solomonar init --help for copilot; an older build may not include the adapter. Initialize an eligible project with --runtime copilot, then start copilot at its worktree root. The adapter uses .github/skills/<skill>/SKILL.md and .github/agents/<role>.agent.md, while root instructions come from AGENTS.md.
These read-only Copilot CLI commands report instruction and skill discovery:
copilot instruction list --json
copilot skill list --json
The Solomonar skills should point into the selected worktree's .github/skills/. Copilot also reads compatible .agents and .claude skill directories, so inspect the resolved paths. Custom-agent discovery requires a live session: use /agent there. A personal agent in ~/.copilot/agents/ takes precedence over a project agent with the same ID. Check the filename-derived ID, not just its display name. These rules follow GitHub's CLI reference and custom-agent documentation.
Invoke /solomonar yourself in an interactive top-level session. The entry skill disables automatic model invocation, and Copilot does not expand /solomonar in prompt mode (copilot -p), so a prompt-mode session cannot load it. For a non-interactive session, ask Copilot to load docs/solomonar/skills/solomonar/SKILL.md and follow it. Delegated roles opt into repository instructions with include-custom-instructions: true; a session using --no-custom-instructions disables that loading. Do not edit generated stubs to work around discovery; inspect the portable source and use only commands your Solomonar build provides.
Copilot rejects a session or uses another model
Access denied by policy settings means Copilot rejected the session under account, subscription, or organization policy. Follow the error's settings link or contact the account administrator. Regenerating Solomonar adapters does not resolve that rejection.
--adversarial-model copilot=<model> writes a model preference, not proof of which model ran. Session settings, per-agent overrides, automatic selection, and account model access can change the effective model. Inspect the running session and its subagent settings before recording a model in review evidence. Installation performs no account/model access check.
In Copilot CLI, --allow-tool 'shell(...)' rules match only the first word: shell(solomonar:*) allows every solomonar command, while shell(solomonar task show) matches nothing.
No Copilot guard hook is installed. Reviewer shell access still follows the portable read-only contract; generated tool lists do not establish a filesystem security boundary.
The command cannot find the repository
not_a_repository means the current directory, or the directory selected with -C, is outside a Git repository. Run from the intended repository or pass its path with -C.
Git must be version 2.40 or later. gh is optional; missing or unauthenticated forge access means those facts are unknown, never passing.
An owner command is rejected
owner_required means neither --as nor SOLOMONAR_OWNER identifies the acting owner. owner_mismatch means that identity differs from the task's recorded owner.
Inspect the stored record with task show, then act as the correct owner. A handoff requires explicit user instruction and the task handoff command. Do not impersonate an owner to work around a stale session.
A transition or review candidate is rejected
Read the error's check, found, and fix lines before retrying. Typical causes include:
revision_not_full_sha: supply the full 40-character commit hash.revision_not_on_branch: the candidate must be reachable from the task's feature branch.spec_not_found: the spec must exist in the task worktree or at the recorded revision.tier_required: entering a review or integration stage needs the recorded risk tier.blockers_required: a blocked task needs an open blocker; unblocking the last one must also resume the prior status.confirmation_required: the task changed hands or was migrated. Inspect it withtask status, then runtask confirm.plan_not_approvedorplan_invalid: implementation needs the work spec'sStatus: Approvedline and at least one- S-<n>: <subject>step, committed on the task branch.plan_incomplete: a plan step has neither a checkpoint commit with itsStep:trailer nor anOutcome:line.checkpoint_discrepancy: a commit claims a step it does not match.task statuslists each one underplan; correct the commit or amend the plan, never rewrite history to hide it.candidate_not_tiporcandidate_dirty: review starts from the clean tip of the task branch; commit or preserve the remaining changes first.worktree_mismatch: the worktree moved. Record the new path withtask move <ID> --as <owner> --worktree <path>.
A rejected state update leaves the registry unchanged. A failed remote push after a successful local update is different: the local write remains successful and publication is reported as a warning. Inspect the current record before repeating a write.
Exit codes
The exit code table lists every code. Any non-zero code means nothing was written, so fix the cause and rerun. The one exception is an uninstall that ends with rollback incomplete; see above. A 0 with a warning such as push_failed or push_interrupted means the local write succeeded and only publication failed: do not repeat the write.
Report a problem with evidence
Include the CLI version, the command, the error code, and the relevant Git state. Redact secrets and private content. Distinguish an implemented command failure from a planned feature that is not available yet.
The detailed error catalog and corrective actions are in the CLI interface specification.