docs(agents): ask for SSH access instead of falling back

A missing GitHub SSH key is a credential boundary, not a reason to switch transports silently.

Assisted-by: DeepSeek Harness (deepseek-flash)
This commit is contained in:
Ryan Yin committed 2026-10-29 21:39:16 +08:00
1 parent 13afe01441
commit ba1515f094
1 file changed
+2 -1
+2 -1
View File
@@ -165,7 +165,8 @@ For an impactful change, follow these steps in order, scaled to its risk:
for one-off tools, and the project's existing toolchain (e.g. its flake, `uv`, `pnpm`) for its
dependencies; ask before creating a flake or installing another way.
- Use `gh` for authorized GitHub operations; keep SSH for GitHub Git remotes and make sure the
Nix-managed `~/.ssh/config` is used.
Nix-managed `~/.ssh/config` is used. If SSH authentication is unavailable, stop and ask the user
to grant access; do not silently fall back to HTTPS or another credential.
- Code layout: `~/codes` = personal, `~/work` = work code, `~/src/<repo>` = source checkouts.
- Agents MUST publish only to repositories that are already public or that the user names, and MUST
NOT publish content from private repositories or internal sources to a public repository.