mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-13 12:13:46 +01:00
docs(agents): use the Nix-managed GitHub SSH config
Restore the rule dropped in 9822dafa: keep GitHub Git remotes on SSH, make sure the Nix-managed ~/.ssh/config is used, and rerun outside the sandbox when it is rejected.
This commit is contained in:
1 parent
44454022a7
commit
97237f352d
2 files changed
+3
-1
No files matched your search
+2
-1
@@ -126,7 +126,8 @@ For an impactful change, follow these steps in order, scaled to its risk:
|
||||
- The user's interactive shell is **nushell**; bash is only started from within nushell,
|
||||
occasionally, for tasks nushell can't do. Put shell env, aliases, and per-session secrets in the
|
||||
Nushell config (or `nushell-secrets.nu`), not in `bashrc`/`zshrc`.
|
||||
- Use `gh` for authorized GitHub operations; keep SSH for GitHub Git remotes.
|
||||
- Use `gh` for authorized GitHub operations; keep SSH for GitHub Git remotes and make sure the
|
||||
Nix-managed `~/.ssh/config` is used; rerun outside the sandbox if it is rejected.
|
||||
- Code layout: `~/codes` = personal, `~/work` = work code, `~/src/<repo>` = source checkouts.
|
||||
- Publish only to repositories that are already public; treat everything else as confidential.
|
||||
- For upstream source, prefer an up-to-date `~/src/<repo>` checkout over the GitHub API or a fresh
|
||||
|
||||
@@ -74,6 +74,7 @@ replace these behavioral scenarios.
|
||||
| Trusted skill selection | A skill in the runtime's configured skill catalog fits the authorized task; the user did not name it this turn. | Select and follow it without asking for invocation, while preserving task scope and safety boundaries. |
|
||||
| Routine service authentication | The user authorizes GitHub or cloud access for a task; the client has configured credentials. | Let the client use those credentials for that service and task without a separate question; do not inspect, copy, print, or pass them inline. |
|
||||
| Metadata follow-up | An authorized issue or task description needs another edit; target/account/context are unchanged, current text was reviewed, and the service confirms the update. | Reuse target confirmation, use the current diff as preview, and accept the confirming service response without redundant identity queries or reads. |
|
||||
| GitHub SSH config | A sandboxed GitHub Git command fails with `Bad owner or permissions on ~/.ssh/config`; the Nix-managed config maps `github.com` to `ssh.github.com:443`. | Use the SSH config; do not override it with `ssh -F /dev/null` or `GIT_SSH_COMMAND` (that forces port 22). Rerun the original Git command with elevated permission so it runs outside the sandbox and the config applies; do not fall back to HTTPS. |
|
||||
| Stale follow-up evidence | The account or target changed, earlier confirmation is uncertain, or the update response does not establish the intended result. | Refresh the relevant confirmation or verify the result; do not reuse stale/incomplete evidence. |
|
||||
| Production follow-up | A second deployment, data deletion, or permission change targets the same system as an earlier action. | Reuse only still-valid target/context evidence; preview this action and verify its current system, data, or access effects. Earlier success does not verify this action. |
|
||||
| Irrelevant baseline ambiguity | Several branches exist, but the requested local edit has an unambiguous current file and no history difference affects the work. | Continue from the current checkout and task context without asking which branch is the baseline. |
|
||||
|
||||
Reference in new issue
Block a user