Repository navigation
Closed
Labels
Description
Source PR: #382
Branch: fix/373-conflict-paths
Head reviewed: 4ed52ab
Push the fixes to the branch above; do not open a new pull request. Comment on the PR and on this issue when done.
Blocking findings
- Explicit-runtime update conflicts still lack the exact relative paths (issue install/uninstall/update ownership conflicts fail closed without naming the conflicting asset paths or drift cause #373 criterion 1) (
internal/cli/update.go:400): Issue install/uninstall/update ownership conflicts fail closed without naming the conflicting asset paths or drift cause #373 expected outcome: "uninstall/install/update conflicts list the exact conflicting relative paths." This PR appends conflict_paths= in runInstall/runDirectoryInstall (coveringcortex installand barecortex update) and on the uninstall line, butcortex update --runtime <rt> --catalog <dir>renders conflicts through writeUpdateOperations (plan: update.go:131, apply: update.go:441), which prints onlyoperation=<logicalID> action=conflict(update.go:400) plusstatus=conflict- a logical ID is not the exact relative path (skills/requirements-analyst vs the actual skills/cortex-requirements-analyst/SKILL.md), and neither update call site appends conflict_paths. The PR body's claim that "cortex install/updatestatus lines append conflict_paths" does not hold for this update path, so criterion 1 remains unmet for update's own conflict output after this chain merges.- Failure scenario: A user-created file occupies a path the new catalog targets (no prior Cortex record for it), then
cortex update --runtime opencode --catalog ./catalogruns: the plan printsoperation=skills/requirements-analyst action=conflictandstatus=conflict(exit 3) with no conflict_paths= and no relative path; the operator must reconstruct skills/cortex-requirements-analyst/SKILL.md from the logical ID by hand - the exact manual step install/uninstall/update ownership conflicts fail closed without naming the conflicting asset paths or drift cause #373's expected outcome forbids.
- Failure scenario: A user-created file occupies a path the new catalog targets (no prior Cortex record for it), then
Acceptance criteria
- Fixed: Explicit-runtime update conflicts still lack the exact relative paths (issue install/uninstall/update ownership conflicts fail closed without naming the conflicting asset paths or drift cause #373 criterion 1) (internal/cli/update.go:400). The scenario below no longer reproduces: A user-created file occupies a path the new catalog targets (no prior Cortex record for it), then
cortex update --runtime opencode --catalog ./catalogruns: the plan printsoperation=skills/requirements-analyst action=conflictandstatus=conflict(exit 3) with no conflict_paths= and no relative path; the operator must reconstruct skills/cortex-requirements-analyst/SKILL.md from the logical ID by hand - the exact manual step install/uninstall/update ownership conflicts fail closed without naming the conflicting asset paths or drift cause #373's expected outcome forbids.
Activity
fix(cli): name conflicting asset paths in update conflict output
barbatdev commentedon Nov 12, 2026
Fixed on the #382 branch in f5144ba: update conflict lines now carry
conflict_paths=.feat(cli): name conflicting asset paths on install and uninstall conf…
barbatdev commentedon Nov 12, 2026
Fixed by #382 (merged 348966d): update conflict lines now carry conflict_paths=, covered by TestUpdateConflictNamesUserOwnedPaths.