docs(setup): touch the hardware key for signatures, not for ssh transport - #1367
Merged
Merged
Conversation
…port The secure setup recommended a cached touch policy on both the signing and the authentication slot, so every git fetch, pull and push waited for a touch. Fetch and pull are reads, and a push is already confirmed by the git push ask rule and carries only commits signed with a touch, so the transport touch was a prompt that bought no control. Recommend `sig cached` plus `aut off` instead, keep `aut cached` only for gpg.format=ssh (where the aut slot is the one that signs), and update the install and verify skills and the hardware-key evals to match. Generated-by: Claude Opus 5
16 tasks
potiuk
added a commit
that referenced
this pull request
Sep 24, 2026
Reconciles the spec-loop specs with the functionality that shipped between 5c75abd and bcd8b7f: - agent-isolation-sandbox: the hardware-key touch policy (sig cached + aut off with OpenPGP signing, aut cached with gpg.format=ssh) (#1367); touch-watcher owner is the harness (#1365); macOS overlay closes on deactivation (#1325); whole-user git hooks allowRead and dispatcher flavour (#1364, #1322, #1358); agent-guard finds the git subcommand past global flags (#1330); agent-guard plugin counts as a complete install (#1323); per-tool cooldown_days, bubblewrap 0.13.0 (#1360). - sandbox-diagnostics: ten catalogue entries (prek/uv not found, git hooks silently skipped) (#1359, #1364); doctor probes as scripts, with probes 7 and 8 (#1336, #1362, #1364); verify's 12 checks and conditional-checks.md (#1334). - vetted-command-surface: HTTP read backend with the OSV and CVE.org operations (#1326); the vetted-op-read recipe spelling (#1339); the plugin copy resolves standalone (#1357). - cve-tooling: tools/osv (contract:security-cross-ref) and the cve-org check through vetted-ops (#1297, #1326). - security-issue-lifecycle: step 2b proposes going ahead on a quiet reporter (#1340); the post-advisory security-pages update (#1355). - meta-and-quality-tooling: name: must match the skill directory (#1361); skill-evals fixture containment and grader retry (#1315, #1341); optimize-skill budgets, eval gate, rewrite and extract-code passes (#1331, #1332, #1335, #1338); diff-scoped prek CI (#1317). - marketplace-distribution: substrate plugins (#1368, #1357). - adversarial-review (new): the tool and substrate plugin as shipped (#1368), with its known gaps. Generated-by: Claude Opus 5
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.
Summary
cachedtouch policy on both the signing (sig) and the ssh authentication (aut) slot of a hardware key, so everygit fetch,git pullandgit pushwaited for a touch. Fetch and pull are reads; a push is already confirmed by thegit pushask rule and can only carry commits that were signed with a touch. The transport touch was a prompt that bought no control — the prompt-fatigue case the proposed principle in principles: add "Avoiding prompt fatigue" as §1, ahead of the security principle (PMC vote required) #1291 describes.sig cached,aut off. The touch stays on every signature and leaves the transport.gpg.format=sshthe signature is made by theautkey, and the card cannot tell a signature from a login, soautmust staycachedthere. The docs say so and name the two ways out (OpenPGP signing, or an https remote).Type of change
.claude/skills/<name>/) — eval fixtures updated belowtools/<system>/*.md)tools/*/withpyproject.toml)docs/,README.md,CONTRIBUTING.md)projects/_template/)prek, workflows, validators)What changed:
docs/setup/secure-agent-setup.md— rationale,ykmancommands, OpenPGP as the recommended signing form, thegpg.format=sshcaveat, the install / verify walk-throughs and the overlay test.docs/rfcs/RFC-AI-0002.mdLayer 3b — the touch covers signatures, not the transport (heading kept, so existing anchors still resolve).docs/setup/sandbox-troubleshooting.md— the transport-touch hang applies only whenautcarries a policy.setup-isolated-setup-installstep K.1 — proposes the touch on whichever slot signs (fromgpg.format), andaut offfor OpenPGP signers whoseautcarries a policy.setup-isolated-setup-verifycheck 10 — same rule.Test plan
prek runon every changed file passes (includingcheck-doc-syncandlychee)step-hardware-keygraded by agent self-eval against the new K.1 text — all four cases match; a cross-model--clirun is still to docase-4-openpgp-aut-cached(OpenPGP signer withautcached →aut offproposed); newslots_to_clearoutput field;case-2renamed tocase-2-ssh-signing-aut-cachedwith its expectation corrected (ssh signing,autalready cached → no change);case-3now expectssigonlyRFC-AI-0004 compliance
ykmancommands are still handed to the operator; the skill never runs themLinked issues
Refs #1291
Notes for reviewers (optional)
PRINCIPLES.md§1 as the prompt-fatigue principle. That is true only once principles: add "Avoiding prompt fatigue" as §1, ahead of the security principle (PMC vote required) #1291 merges, so this PR should merge after it.git push. The argument is that the push is still gated twice without it (thepermissions.askrule, and the signature touch on every commit it carries); worth a critical read if you disagree.Generated-by: Claude Opus 5
🤖 Generated with Claude Code