Repository navigation
fix(install): require explicit force for JSON overwrites - #884
Merged
runkids merged 4 commits intoNov 13, 2026
Merged
Conversation
Machine-readable output must not grant destructive consent. Preserve existing skills and agents unless force is explicit, and report existing skip decisions in the JSON result while retaining selection and audit behavior. Cover edited copies in global and project modes, and update help, automation guidance, and translated command documentation. Refs: runkids#877
Read-only discovery must work before replacement consent, including existing single skills and cross-path installs. Keep overwrite checks on write paths. Require existing update or force intent to advance installed project copies to a changed lock pin. Preserve ordinary CLI and dashboard lock following, while JSON alone leaves local edits and incoming pins unchanged. Cover existing-destination previews, edited locked copies and dashboard lock following. Clarify translated docs and make the consent runbook step runnable. Refs: runkids#877
JSON previews must resolve recorded sources without requiring overwrite consent. Permit metadata lookup for dry runs and restore the original unforced preview regression in global and project modes.
The global local-skill integration case already covers JSON overwrite refusal and explicit forced replacement. Remove the duplicate runbook step and restore its 18-step numbering while retaining the existing purity setup and assertion corrections.
salmonumbrella
marked this pull request as ready for review
November 13, 2026 11:42
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
salmonumbrella
marked this pull request as draft
November 13, 2026 11:50
salmonumbrella
marked this pull request as ready for review
November 13, 2026 11:50
4 of 9 tasks
runkids
added a commit
that referenced
this pull request
Nov 13, 2026
After #884, an install without --force keeps existing skills and agents and names them in the --json skipped array, but the operation log recorded only installed and failed names, so `ss log` could not show what an install kept. Record the kept names as skipped_skills for CLI installs and for the dashboard's install-from-config action, and list them in `ss log`. The config install starts with an empty list, so the dashboard log shows no "null" when nothing was kept.
This was referenced Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type
proposals/only — see CONTRIBUTING.md)approvedlabel)Linked Issue
#877
What changed
install --jsonpreserves existing skills and agents in global and project mode. Overwriting requires explicit--force. JSON still selects all when no--skillor--agentfilter is given, and audit blocking still applies.skippedarray for duplicate skips. Other conflicts retain theirerrororfailedresult.--dry-run --jsonstill previews existing destinations and cross-path duplicates without changing them. Previews can resolve an installed skill by its saved name.--jsonpreserve existing copies even when the lock points to another commit. Explicit--forcefollows that pin. Ordinary project installs and the dashboard's config-install action keep following changed pins.Why
A script asking for machine-readable output could overwrite locally edited skills or agents because
--jsonimplicitly setForce. Output format should not grant overwrite consent. This changes previously documented behavior: scripts that relied on JSON mode to replace existing copies must add--force.fix-install-require-explicit-force-for-JSON-overwrites.mp4
Usage
--forcealso retains its existing audit-override behavior. Review findings before using it.Verification
CI at
c72f7862: all 7 executed jobs passed.docker-sandbox-onlineandredteam-signalwere skipped by the workflow.GitHub Codex review at
c72f7862completed with no findings.Local runtime checks passed:
Not run locally: full test suites,
make check, Windows or native Herdr runtime validation.AI-assisted implementation and drafting. Author attestations remain pending.
Checklist
make check) — for code changes;make checkwas not run locallyCloses #877