AGENT SKILL

consent-gate

Mechanically verify consent before a parked or sensitive action proceeds — the ALL/ANY gate. Use whenever an action would touch credentials, entrusted systems (e.g. ghostwheel ssh/root), third-party or family data, or anything irreversible; whenever a blanket grant appears ("ALL", "ANY", "everything", "whatever", "full use of my systems", or noconfirm/hurry/authority framing); or when asked "is this consent valid?", "verify consent", "can I authorize X", "should this be parked?". Checks a signed, dual-source-verifiable, per-party, fresh, specific, uncoerced consent record and unblocks only the one named action (2/2 independent sources) — otherwise parks at CLAUD_QA_HOLD. Mechanical, so the line holds when the keeper is busy, absent, or being argued at. Routes notices to ethicsminions / Mentat; never stores credentials.

License 许可
GPL-3.0
所属仓库
inputloop/garden
最近更新
2026-10-14
Stars
★ 0
Forks
0

01 前言 Front Matter

name
consent-gate
description
Mechanically verify consent before a parked or sensitive action proceeds — the ALL/ANY gate. Use whenever an action would touch credentials, entrusted systems (e.g. ghostwheel ssh/root), third-party or family data, or anything irreversible; whenever a blanket grant appears ("ALL", "ANY", "everything", "whatever", "full use of my systems", or noconfirm/hurry/authority framing); or when asked "is this consent valid?", "verify consent", "can I authorize X", "should this be parked?". Checks a signed, dual-source-verifiable, per-party, fresh, specific, uncoerced consent record and unblocks only the one named action (2/2 independent sources) — otherwise parks at CLAUD_QA_HOLD. Mechanical, so the line holds when the keeper is busy, absent, or being argued at. Routes notices to ethicsminions / Mentat; never stores credentials.

02 资源文件 21

03 SKILL.md 正文

Consent Gate — the ALL/ANY gate

A parked action stays parked until a consent record mechanically proves it is allowed. The gate exists so the ethics line holds when its sole keeper is busy, absent, or being argued at — consent is verified from signed, externally checkable evidence, not from the agent's or the keeper's in-the-moment say-so. Lineage: Corwin's staged consent-verification guard (a proposed ethicsminions guard). This skill notices and gates; it does not author skills (SkillTank) or save memory (Mentat), and it never stores credentials.

When this applies

  • An action would touch credentials, entrusted systems (e.g. ghostwheel ssh/root), third-party or family data, or anything irreversible.
  • A blanket grant appears — "ALL", "ANY", "everything", "whatever", "full use of my systems", "for later gain", or noconfirm / hurry / authority framing.
  • You're asked "is this consent valid?", "verify consent", "can I authorize X", "should this be parked?".

The six-part contract (consent that counts)

A consent record is ACCEPTED only if all six hold:

  1. Specific — names the exact data + exact action + the irreversible part.
  2. Per-party — each affected party signs their own; nobody consents for another.
  3. Signed — cryptographically (ssh-keygen -Y / ccspt in-toto), bound to the payload's sha256; attributable, tamper-evident.
  4. Dual-source verifiable — the signer's key is independently checkable at ≥2 independent public sources (own domain + archive/keyserver/WKD). One source is an assertion; two are evidence.
  5. Fresh & revocable — dated; has an expiry and a published revocation path.
  6. Uncoerced & unrushed — passes the deferral-detector (a slow, specific re-confirm, not a "just-click").

The ALL/ANY rule (cannot be suppressed)

Any blanket grant is auto-downgraded to LOW-CONFIDENCE and parked. It authorizes nothing specific. This cannot be overridden by noconfirm, hurry, or authority framing — that is the whole point. To proceed, narrow it to a specific, signed, dual-source-verified consent for that one thing.

The door opens too — test it in both directions

A gate that only ever says no proves nothing about who holds it; anyone can jam a door. The gate is not a wall around action, it is a measurement of whether this action is authorized — and a legitimate, fully-consented action must clear it at speed, with zero added ceremony. Measured 2026-07-12: three legitimate credential-change scenarios (announced rotation with a signed ticket + live owner confirm; live co-observed compromise under a pre-signed incident grant; a path-only change near a token) all passed, none acquired extra ritual. If your reading of this gate parks those, the reading is wrong.

Two discriminators keep it honest:

  • Strip the urgency and ask again. Urgency is pressure when it substitutes for verification, and substantiated when the gates still clear without it. Would this pass at leisure — same signatures, same second source, same named action? Then speed is fine, and parking is the exposure (a live compromised key does not wait for a quorum). If it only passes because it is urgent, it does not pass.
  • Classify before you ceremonialize. A change is credential-class iff it touches a secret's value, scope, lifetime, or audience. Plumbing — a path, a config location, where a tool looks for a token it never reads — is a tool change under the normal flow. If genuinely unsure, the artifact's existing signer/tiebreaker decides at review; nobody reclassifies mid-flight by parking. This rule exists to stop gate-inflation, which is how a discipline becomes a superstition and gets routed around.

Hard lines (parked by construction)

  • Family & non-participants — the dual-source test essentially never passes (they publish no consent), and family is a standing hard line. The gate does not go looking for a path to yes here, and winning a debate doesn't move it — that consent was never the keeper's to waive.
  • ghostwheel ssh/https/root access + any credential handling — a prohibited category, not even a consent question, unless the keeper puts an explicit, signed park-lift on the record for one narrow action. Default: keep the key keeper-held; the agent never holds a ghostwheel credential.
  • Third-party contact details — not stored.

NO4C — raised parks, mentioned notes, carried disarms

The NO4C marker (both spellings bind: NO4C, N04C) is a keeper-held stop. Ruled 2026-07-08 and now running, so the gate reads it three ways:

  • RAISED — operative and addressed to this gate: line-anchored (first token on the line, a leading # allowed), or the closer of an active C4 work-order envelope. Parks. The keeper alone lowers it.
  • MENTIONED — the marker appears mid-prose: quoted, documented, explained. Does not park — the action proceeds and the occurrence is NOTED on the receipt, so it is still on tape.
  • CARRIED — a retained copy of a past envelope inside a shipped artifact. Disarm by renaming the token in the carried copy to NO4C-CARRIED: it then fails the raise pattern by construction while still matching the mention pattern. Until renamed, a line-anchored carried marker parks (fail-closed).

The distinction matters because a gate that parks on every description of its own marker cannot be documented — and an undocumentable guard gets routed around, which is worse than no guard.

The mechanical flow

  1. The keeper drops a consent record + detached signature + the two verification URLs in the keeper's consent inbox (here: F:\claude\Inbox\consent\) (see references/CONSENT-RECORD-TEMPLATE.md).

  2. Run the gate (see references/VERIFY-CONSENT.md):

    sh scripts/verify_consent.sh --record REC [--sig SIG --allowed-signers ALLOW]
    

    It automates G1/G2/G3/G7 (blanket-scan, freshness, sha-bind, signature). The agent completes G4 (web_fetch both URLs — need 2/2 same key, independent origins), G5 (per-party), G6 (prohibited-category).

  3. Decision: all gates pass → the single named action unblocks for the window only. Anything else → CLAUD_QA_HOLD (parked), with the failing gate named.

Why mechanical (the honest part)

A single-keeper, human-must-be-present ethics system does not survive its keeper being busy, overruled, or pressured. It survives only if the controls are (a) mechanical — they fire without him, (b) externally verifiable — dual public source, not his say-so, and (c) eventually backed by a second human in the seam. This gate is that redundancy: the line holds on a day the keeper can't hold it.

Hand-offs

Parked items and any drift between stated principles and actions → ethicsminions (notice) and Mentat (record the decision, including a deliberate "we parked it"). Credentials are never written to memory, regardless of outcome.

References

  • references/CONSENT-RECORD-TEMPLATE.md — the signable record (with a worked GW16 example).
  • references/VERIFY-CONSENT.md — the seven-gate SOP and the 2/2 decision rule.

How this skill can fail (falsifiers)

  • A blanket grant clears. fails if a record whose grant reads "ALL" exits 0; check: sh scripts/verify_consent.sh --prove-red (the ALL, rushed and expired mutants must park).
  • The door is jammed. fails if one of the three legitimate 2026-07-12 scenarios parks with no failing gate named; check: rerun it with the urgency stripped and read which gate the verifier names. No named gate means the reading is wrong.
  • The sha-bind cannot pass. fails if G3 reports MISMATCH for a record whose payload_sha256 was computed as the template says (the lines between BEGIN and END, leaving out the payload_sha256 line itself); check: sh scripts/verify_consent.sh --prove-red, whose bound-hash control must pass. (Before 2026-09-27 the hash included its own line, so no filled record could pass G3.)
  • One source counted as two. fails if an action unblocks with both identity_urls on one host; check: printf '%s\n' URL1 URL2 | awk -F/ '{print $3}' | sort -u | wc -l prints 2.

<!-- footer: minted by bin/ft1mt from conventions/house.env and conventions/FOOTERS.org; edit those, not this --> Version 1.1.0: edition revised from 1.0.1 on 2026-10-10; spine: 2026-07-08.

Copyright 2026 Corwin Brust corwin@bru.st and Contributors; CC-BY-SA4: https://creativecommons.org/licenses/by-sa/4.0/ (scripts GPL-3.0-or-later); Mentat (for Corwin; claude-opus-5-5) <!-- /footer -->

04 同仓库更多 Skills