[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C500DDBWSXWW7WK8NRHHN1":3,"skill-same:01M7C500DDBWSXWW7WK8NRHHN1":235},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7C500DDBWSXWW7WK8NRHHN1","human-confirm-gate",null,"Mechanical confirmation for destructive Git and repository administration commands.","EtanHey\u002Fgolems","EtanHey","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F93338119?v=4","01M7C4SKC9HJC3B9TAX0D9MZ1E","Etan Heyman","01M7C4SKCT59Z49TTN4WWDDEYD",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: human-confirm-gate\ndescription: Mechanical confirmation for destructive Git and repository administration commands.\n---\n# Human confirmation gate\nStatus: source implementation; install only from hooks-live after lead review\u002Fmerge.\nA chat turn, send_to, sender stamp, or model assertion is never approval.\nThe Claude PreToolUse hook classifies shell commands with `_shared\u002Fshell_parse`.\nSimple literal assignments resolve command\u002Fargument words (including #500);\nunresolved protected executable scope and xargs Git\u002FGH\u002Fshell executors deny.\nIt blocks force\u002Flease pushes (except own-branch leases below), positive-force refspecs, remote deletes, mirror\u002Fprune,\nfilter-repo\u002Ffilter-branch\u002Freplace (conservatively even local rewrites), replacement\nref pushes, every `gh repo edit` plus repo delete\u002Farchive\u002Funarchive\u002Frename\u002F\nforced-sync and deploy-key add\u002Fdelete, `gh secret|variable set\u002Fdelete`,\n`gh ssh-key|gpg-key add\u002Fdelete`, `gh workflow disable`, and GitHub API writes\noutside routine collaboration. Repository writes are settings by default: only\npulls, issues, commit comments, statuses, check runs\u002Fsuites, dispatches,\nmerges, forks, Actions run\u002Fjob reruns, cache deletes and workflow dispatches,\ngit object\u002Fref creation pass. Org\u002Fuser\u002Fteam\u002Fenterprise\u002Fapp writes are settings.\nOrdinary pushes with redirects\u002Fpipes, PR comments\u002Freviews\u002Flabels, read-only\nGit global options and config overrides pass. Unknown cwd\u002Fexecutable\u002Fconfig\nscope denies when it could affect a protected operation. The gate inspects\nknown wrappers, shell -c\u002Ftrap and literal stdin payloads, Git executors and\nsame-call config mutations; opaque shell stdin sources deny. Unclosed input\nand policy\u002Fimport\u002Fruntime errors deliberately deny (exit 2).\n\n**Fleet false positives.** `tests\u002Ffleet_commands.json` holds about 5,000\nvalues-stripped shapes of real Claude and Codex Bash commands. The gate must\ndeny at most 0.5% of them, and every deny carries a reason category. What\nthe gate treats as data:\n- **Quoted heredoc bodies** (`\u003C\u003C'EOF'`): prose such as backticks or\n  apostrophes is not a substitution. This applies only when the shared parser's\n  line view and a bash-faithful scan agree on every heredoc; otherwise the\n  whole command is scanned. Unquoted bodies are never masked.\n- **Prose arguments** with an apostrophe, unless they carry a Git\u002FGH payload.\n- **Script operands:** `bash file` reads its script from the file, and\n  `bash -n` runs nothing. A shell with no operand, `-s`, `-`, a stdin path or\n  process substitution reads stdin, so it is opaque and denies. A bare\n  interactive shell denies too. Options are read per shell (bash\u002Fsh, dash,\n  ksh, zsh, fish), including which ones take a value. An unknown long option\n  denies. fish's `-C`\u002F`--init-command`\u002F`--command` are code, like `-c`.\n- **Prefix assignments** (`X=\"$HOME\u002Fy\" cmd`) are not the executable.\n- **`command -v\u002F-V`** only looks a name up.\n- **Local-only git commands** (merge-base, check-ignore, …): no alias lookup.\n- **`gh api` with a shell id:** the endpoint may use a shell value only as a\n  whole id segment under pulls\u002Fissues\u002Fcomments\u002Freviews\u002Fcommits\u002Fruns\u002Fjobs\u002F\n  check-runs of a literal `repos\u002F\u003Cowner>\u002F\u003Crepo>`. A dynamic GET route is a\n  read only if it starts with a literal, is the only endpoint word, and no\n  expansion in the call can word-split. An expansion can split if it is\n  unquoted, or if its quoting was lost through a wrapper or an alias. A word\n  led by an expansion makes the method unknown: the shell value may be a gh\n  flag.\n- **GraphQL:** a `$name` the query declares is GraphQL syntax only if every\n  `$name` in the command is single-quoted, so the shell never expands it.\n  Values of fields other than `query`\u002F`operationName` are variables and cannot\n  change the operation.\n\n**`gh api` routes:**\n- **Flags are read the way gh reads them** (pflag): short clusters such as\n  `-iX`, a value attached with `=` or the rest of the cluster, and `--flag=v`.\n  An unknown flag denies. A second endpoint word denies unless the request is a\n  read. A method-override header makes the method unknown.\n- **The route is what gh requests:** `?query` and `#fragment` are dropped,\n  and any `.`\u002F`..` segment or a non-`api.github.com` URL host denies.\n- **GraphQL mutations deny by default.** Only routine review\u002Fcomment fields\n  pass (comments, reviews, review threads, reactions, labels, review requests,\n  draft\u002Fready). A fragment spread at the top of a mutation, an unreadable\n  mutation document, `--input`, and a `-F query=@file`\u002F`@-` document all\n  deny.\n\n**Git routes:**\n- Executable names are case-folded (APFS is case-insensitive), so `GIT`,\n  `Git`, `GH` and absolute paths in any case are the same commands.\n- git's per-subcommand executables are treated as the matching git subcommand.\n- At push time the gate evaluates the *effective* route: the remote picked by\n  `--repo`, `branch.\u003Cb>.pushRemote`, `remote.pushDefault` or `branch.\u003Cb>.remote`,\n  plus that remote's configured `push` refspecs and `mirror`, when the command\n  names none. So a stored force\u002Fdelete refspec or mirror needs a token on the\n  plain push that uses it. (`:` alone is git's \"matching\" refspec, not a delete.)\n- Tokens bind a digest of that route's config (URLs included, values never\n  copied), so changing the remote after issuance invalidates the token.\n- Storing a destructive route needs a token too:\n  - `git config` setters of a force\u002Fdelete `remote.\u003Cr>.push` or a true `mirror`;\n  - Write\u002FEdit\u002FMultiEdit whose resulting git config (`.git\u002Fconfig`,\n    `config.worktree`, or the repo's common-dir config) would hold one. The\n    edit is simulated on the current file.\n- Other writers to git config (shell redirects, includes) are judged at push\n  time instead.\nLike the other policy gates, this gate runs through the launcher's\n`--fail-closed` mode (#656): a missing or unparseable hook, a launcher crash, a\nmissing pinned interpreter (the installer's `\u002Fbin\u002Fsh` guard) and a hang past\nthe watchdog budget (manifest timeout 10 s, budget 9 s) all deny with the\nstatic reinstall hint. This hook also catches evaluator\u002Fimport errors itself.\nInstaller status must still be checked before calling this an installed\nmechanical gate.\nCodex seats run it through the Codex adapter (`scripts\u002Fhooks\u002Fcodex-policy-hook.py\nhuman-confirm`, fail-closed, 7 s budget under Codex's 10 s). The token binds the\nCodex payload's `session_id`, which is the root thread id (stable across\n`codex resume`, shared by subagents, new on a fork), so issue with `--session\n\u003Croot thread id>`. `apply_patch` is never read as a command: the whole patch is\nreplayed in order, as Codex applies it, over a virtual file map keyed by\ncanonical path (so `.git\u002F..\u002F.git\u002Fconfig` is `.git\u002Fconfig`). Each touched path is\njudged once: a git config file on its final content (section context and\nremoved lines matter), anything else by path. Hunks are placed with Codex's own\nfour seek passes (exact, trailing-whitespace, full-trim, unicode punctuation),\nso a CRLF or loosely matching file replays to what Codex writes. An ordinary\nfile that no pass can place is never denied for it; a git config file that no\npass can place, or such content moved onto one, is denied. The installer refuses this Codex registration while the anchor pin is\nempty, as on Claude. A new registration only runs after the owner trusts it in\n`\u002Fhooks`.\n## Trust and issuance\nUnsigned file metadata cannot identify a human under the shared macOS UID.\nTokens are SSH-signed JSON, mode 0600, in\n`~\u002F.config\u002Fgolems\u002Fhuman-confirm\u002F\u003C32-lowercase-hex-nonce>.json`, with an adjacent\n`.json.sig`. The owner provisions mode-0600\n`~\u002F.config\u002Fgolems\u002Fhuman-confirm-anchor\u002Fallowed_signers` out of band, with SSH allowed\nsigners principals `human` and `lead` (separate keys). The `human` signing key\nmust be unavailable to agents: a separate owner-controlled signer or hardware\nkey requiring owner presence. Only the owner creates\u002Fsigns human tokens;\nworkers never mint them. A software private key in the shared workspace\u002FHOME\nis insufficient. The lead signer must be unavailable to workers; under one UID\nthis is an operational trust boundary, not enforced key isolation.\nDetectable Bash writes\u002Fdeletes and Write\u002FEdit\u002FMultiEdit\u002FNotebookEdit attempts\nto the policy directory deny, including case variants. Monitor commands use\nthe same evaluator as Bash.\nA file copied by an agent cannot gain approval without the issuer's signature.\nThe same-UID threat frontier remains: this hook is not an OS sandbox; a malicious\nprocess can replace the hook, configuration, or tombstones. Arbitrary interpreter\ncode, sourced files and external shell startup aliases remain outside static\ninspection. Unknown wrappers carrying recognizable protected Git\u002FGH argv deny.\nUnregistered tool surfaces remain outside this hook. No owner-origin claim\nis made from PID, timestamps, mode, or chat provenance.\nUse `scripts\u002Fgolems-confirm \u003Crepo> \u003Cref> \u003Caction> --session \u003Cid>` from a\nseparate owner terminal; lease also needs `--sha \u003Cfull-sha>`. See README for\n1Password SSH-agent public-key setup and required per-request authorization.\nCached application\u002Fall-process authorization is insufficient human proof.\nThe helper uses ssh-keygen -U to require the agent; ancestry checks are only\nadvisory detection. The per-request signer prompt is the owner-presence control.\n### Trust anchor integrity\nThe anchor lives in its own directory, `~\u002F.config\u002Fgolems\u002Fhuman-confirm-anchor\u002F`,\nso locking it never touches the other files under `~\u002F.config\u002Fgolems`.\nIt holds exactly one plain key for `human` and at most one for `lead`.\nOptions are not allowed, so no `cert-authority` and no shared principals.\n\n**Provisioning (owner terminal):**\n1. Create the directory mode 0700 and place the allowed signers file there.\n2. Run `scripts\u002Fgolems-confirm-pin` from the pinned tree (the golems repo's\n   `.worktrees\u002Fhooks-live`). Do not run it from a dev checkout an agent can edit.\n3. It prints each principal with its key's `SHA256:` fingerprint. Compare\n   them with your signer, then type `PIN`. Only then does it set macOS `uchg`\n   on the file and the directory and print one pin line.\n4. That line lands in this skill's `anchor.pins` through a reviewed PR.\n\nThe pin lives in the pinned hooks-live tree, not the policy directory, so\nclearing flags and rewriting the anchor cannot also re-pin it.\n\n`anchor.pins` grammar is shared with `install-hooks` (`tests\u002Fpin-vectors.json`):\nASCII, LF lines; each line is empty, a printable `#` comment, or 64 lowercase\nhex plus an optional ` label` (`[A-Za-z0-9._-]+`). Anything else voids the pin.\n\n**Every token check** denies every human and lead token, with the hook's\nstatic message, unless all of these hold:\n- `anchor.pins` in the hook tree is byte-identical to its blob at that\n  tree's git HEAD, so uncommitted edits in hooks-live never re-pin. Git is\n  pointed at the tree root explicitly, with object replacement off and\n  discovery stopped at the root. Any repository marker between the pin and\n  the root denies;\n- the anchor, opened fd-relative with no symlinks, has `uchg` on the file and\n  the directory, mode 0700\u002F0600, owner UID and a single link;\n- its SHA-256 is pinned, and its principals pass the grammar above.\n\nSSH verifies the checked bytes through a pipe and never reopens the path.\n\n**Hook imports.** The installer runs this gate as `\u003Cpinned python3> -I -B` through the\nshared launcher, like every golems Python hook. The launcher loads what\n`runpy` needs first, and adds every hook directory LAST on `sys.path`, never\nfirst. The gate then:\n- takes its own directory and `_shared` off `sys.path` while the stdlib loads,\n  and adds them back last;\n- compiles its modules from source, never reading cached bytecode;\n- denies every call while compiled modules, symlinks or shadow packages sit\n  beside its sources.\n\n**Installer.** `install-hooks` never activates this gate while `anchor.pins`\nholds no fingerprint. An `--update` to an unpinned commit unlinks and\nderegisters it, and `--status` reports `refused(unpinned)`. Order: merge, then\nthe owner pins, then the fingerprint PR, then hooks-live install. Key rotation\nmeans an owner-terminal unlock, review and repin, plus a new pin PR. Never\nrepin automatically on a mismatch.\n\n**What `install-hooks --status` detects** (exit 1). Git runs with\nfsmonitor and the untracked cache off, and object replacement disabled:\n- tracked edits, and untracked files that are not gitignored, in hooks-live;\n- index flags (skip-worktree, assume-unchanged) on any path, and any replace refs;\n- for each `requiresPin` gate, its source dir and `_shared` compared\n  byte-for-byte with HEAD. That reports changed, missing and extra files,\n  ignored ones included. `__pycache__` is skipped because the gate never reads it;\n- a hooks-live HEAD that is not on origin\u002Fmaster;\n- a HEAD that differs from the SHA recorded by the last `--apply`, or no\n  recorded SHA.\n\nIt does not cover ignored files outside the gate's import dirs. It cannot see\na same-UID edit that is reverted before it runs, or tampering with git's own\nrefs and recorded SHA together. The hook does not inspect its\nown source at runtime: a same-UID process that rewrites hooks-live's hook code\nor commits there defeats the gate until `--status` flags it.\n\n**Early fail-closed argv checks** are defence in depth, not the boundary. They deny:\n- `chflags`\u002F`SetFile` whose targets are unresolved (glob, brace, variable,\n  substitution, `~user`), relative under an unknown or wrapper-changed cwd,\n  or able to reach the anchor or pinned tree, including `-R` on an anchor ancestor;\n- flag executors fed targets by `xargs`, `parallel` or `find`;\n- non-reader commands whose literal operands name the anchor directory or\n  pinned tree (`ln` also of an anchor ancestor), and Write\u002FEdit to either.\n\nThey do NOT catch:\n- writes through clustered short options, awk\u002Fsed write commands, or relative\n  operands after an unresolvable `cd`;\n- `git` inside hooks-live;\n- removing an ancestor of hooks-live (the fail-closed launcher then denies\n  every matching call until reinstall);\n- interpreter code (`python -c`, `osascript`).\n\nThe anchor's uchg\u002Fhash and the committed pin are what catch these outcomes.\n\n**By-design over-denies:**\n- `chflags` with any glob, or with a relative target under an unknown cwd or a\n  wrapper (e.g. `timeout 5 chflags …`);\n- `--opt=\u003Canchor path>` and copying the anchor out with a non-reader.\n\n`cd -`, `pushd`\u002F`popd` stacks and CDPATH searches make cwd unknown.\nThis is tamper evidence within the tool boundary, not an OS sandbox.\nAnchor provisioning\u002Fruntime are macOS-only. Unsupported hosts refuse tokens;\nCI skips those runtime fixtures explicitly, while structural tests still run.\nPrepare a JSON draft in the repo's `docs.local\u002F` with these fields:\n- `version`: 1; `kind`: `human` or `lead`; `nonce`: random 32 lowercase hex.\n- `issued_at`, `expires_at`: Unix seconds, maximum TTL 300 seconds, no future issue.\n- `command_sha256`: SHA256 of exact hook `cwd` + NUL + exact Bash command.\n- `operations`: output of `hooks\u002Fcommands.py:operations(command, cwd)`.\n- `session_id`: the Claude worker session ID from the hook input.\n- `collab`: collab path, for lead tokens only.\nReview the exact command, repo, remote, refs and operation classes, then the\nissuer copies the draft to the token path, chmods 0600, and signs it:\n\n```sh\nssh-keygen -Y sign -U -f \u003Cissuer-controlled-public-key> -n golems-confirm \u003Cnonce>.json\n```\n\nThe hook verifies raw JSON bytes using `ssh-keygen -Y verify`; there is no model\njudgement. The digest scopes the complete command (including wrappers) and cwd;\noperations scope repo\u002Fref\u002Fclass\u002Flease SHA; session binding prevents cross-worker\nreuse. A valid human token permits its entire scoped command. A `.spent` nonce\nis atomically created before capability deletion; keep tombstones permanently.\nEven a restored token is denied. Failed execution still consumes approval: get\na fresh token for retries. Concurrent callers cannot consume the same nonce.\n\n## Own-branch leases\n\nEtan (2026-11-04): \"it's a 2 way door… it always is reversible, and it's my fork…\nconfusing why the agent says it needs my help to do force with lease\".\nA single literal `git [-C \u003Crepo>] push --force-with-lease=refs\u002Fheads\u002F\u003Cbranch>:\u003Cfull-sha>\n\u003Cremote> \u003Csource>:refs\u002Fheads\u002F\u003Cbranch>` needs no token when all three hold:\n\n- The existing narrow parser identifies exactly one plain lease.\n- The named remote's fetch and push URLs resolve to the same EtanHey GitHub repository;\n  other remotes are fine, but redirects elsewhere and additional push modes deny.\n- GitHub metadata confirms the branch is neither default nor protected, and its name is\n  not main\u002Fmaster\u002Fdevelop\u002Ftrunk\u002Fgh-pages\u002Frelease* (case-insensitive).\n\nOptional `--atomic`, `--verbose` and `-v` flags are accepted.\nMetadata failure or ambiguity denies. Everything else still needs a token.\nThe gate has no non-fatal write-result channel, so this exception writes no audit log.\n\n## Lead tokens\n\n`scripts\u002Fgolems-lead-confirm \u003Crepo> --ref refs\u002Fheads\u002F\u003Cbranch> --sha \u003Cfull-sha> --session \u003Cid> [--remote origin]`\nissues exactly one lead token. The token covers a `--force-with-lease` push of the CURRENT\nbranch to its own open, unmerged, same-repository PR, at that PR's exact remote head SHA.\n- **It refuses** main\u002Fmaster and the default branch (in any letter case, even when the\n  default branch is something else), a checkout with more than one GitHub remote, other refs, short SHAs, a remote that is not one GitHub URL, and\n  any push that config turns into something other than a plain lease.\n- **One rule for both sides.** The issuer and the gate share `tokens.lead_scope`.\n- **It signs** with `~\u002F.config\u002Fgolems\u002Flead-signer\u002Flead_ed25519` (0600 file, 0700 directory;\n  `scripts\u002Fgolems-lead-keygen` creates it once). It uses no agent, no 1Password and no\n  owner terminal: leads are agents, and the scope limits are the control.\n- **Logging.** Each issuance appends one JSON line to\n  `~\u002F.config\u002Fgolems\u002Fhuman-confirm\u002Flead-issued.log`. It also appends the token's\n  `GOLEMS_CONFIRM` line plus a readable `- lead-token issued …` line (with the GitHub\n  `owner\u002Frepo`) to the OSS collab, always. If either write fails, nothing is issued.\n- **Not isolation.** Under one macOS UID the lead key is an operational boundary, not\n  isolation: any process of this user can read the key file.\n\n## Lead scope\n\nThe signed lead token additionally needs an exact line in its signed `collab`.\nThe resolved path must be inside the coordinator's collab directory (see the\nprivate installation handoff for the machine layout). The line contains\n`GOLEMS_CONFIRM ` followed by the token JSON sorted by key, compact separators\n`,` and `:`. Ordinary prose or an unlogged token denies. Signing proves lead\nissuance; the collab line logs the exact session\u002Fref\u002FSHA\u002Fcommand authorization.\n\nOnly a single literal `git [-C \u003Crepo>] push\n--force-with-lease=refs\u002Fheads\u002F\u003Cbranch>:\u003Cfull-sha> \u003Cremote>\n\u003Csource>:refs\u002Fheads\u002F\u003Cbranch>` qualifies. Bare force, bare lease, multiple refs,\nwrapped\u002Fcompound commands and other classes require human tokens.\nThe current local branch must match, source must be HEAD\u002Fcurrent branch,\nremote must resolve to one GitHub URL, and live read-only GH metadata must show\nthat exact remote repo's open, unmerged, same-repository PR at the exact lease\nSHA, on a non-default branch. The signed session\u002Fref grant asserts worker\nownership; branch names and GitHub author alone do not establish worker identity.\nMetadata failures or timeouts deny. Binaries are fixed system Git\u002FSSH, and\ngh from fixed, ownership-checked Homebrew locations, avoiding caller PATH substitution. No real destructive operation is used in\nverification; integration tests invoke the hook subprocess with signed synthetic\ncapabilities and disposable repos under docs.local.\n","# Human confirmation gate\nStatus: source implementation; install only from hooks-live after lead review\u002Fmerge.\nA chat turn, send_to, sender stamp, or model assertion is never approval.\nThe Claude PreToolUse hook classifies shell commands with `_shared\u002Fshell_parse`.\nSimple literal assignments resolve command\u002Fargument words (including #500);\nunresolved protected executable scope and xargs Git\u002FGH\u002Fshell executors deny.\nIt blocks force\u002Flease pushes (except own-branch leases below), positive-force refspecs, remote deletes, mirror\u002Fprune,\nfilter-repo\u002Ffilter-branch\u002Freplace (conservatively even local rewrites), replacement\nref pushes, every `gh repo edit` plus repo delete\u002Farchive\u002Funarchive\u002Frename\u002F\nforced-sync and deploy-key add\u002Fdelete, `gh secret|variable set\u002Fdelete`,\n`gh ssh-key|gpg-key add\u002Fdelete`, `gh workflow disable`, and GitHub API writes\noutside routine collaboration. Repository writes are settings by default: only\npulls, issues, commit comments, statuses, check runs\u002Fsuites, dispatches,\nmerges, forks, Actions run\u002Fjob reruns, cache deletes and workflow dispatches,\ngit object\u002Fref creation pass. Org\u002Fuser\u002Fteam\u002Fenterprise\u002Fapp writes are settings.\nOrdinary pushes with redirects\u002Fpipes, PR comments\u002Freviews\u002Flabels, read-only\nGit global options and config overrides pass. Unknown cwd\u002Fexecutable\u002Fconfig\nscope denies when it could affect a protected operation. The gate inspects\nknown wrappers, shell -c\u002Ftrap and literal stdin payloads, Git executors and\nsame-call config mutations; opaque shell stdin sources deny. Unclosed input\nand policy\u002Fimport\u002Fruntime errors deliberately deny (exit 2).\n\n**Fleet false positives.** `tests\u002Ffleet_commands.json` holds about 5,000\nvalues-stripped shapes of real Claude and Codex Bash commands. The gate must\ndeny at most 0.5% of them, and every deny carries a reason category. What\nthe gate treats as data:\n- **Quoted heredoc bodies** (`\u003C\u003C'EOF'`): prose such as backticks or\n  apostrophes is not a substitution. This applies only when the shared parser's\n  line view and a bash-faithful scan agree on every heredoc; otherwise the\n  whole command is scanned. Unquoted bodies are never masked.\n- **Prose arguments** with an apostrophe, unless they carry a Git\u002FGH payload.\n- **Script operands:** `bash file` reads its script from the file, and\n  `bash -n` runs nothing. A shell with no operand, `-s`, `-`, a stdin path or\n  process substitution reads stdin, so it is opaque and denies. A bare\n  interactive shell denies too. Options are read per shell (bash\u002Fsh, dash,\n  ksh, zsh, fish), including which ones take a value. An unknown long option\n  denies. fish's `-C`\u002F`--init-command`\u002F`--command` are code, like `-c`.\n- **Prefix assignments** (`X=\"$HOME\u002Fy\" cmd`) are not the executable.\n- **`command -v\u002F-V`** only looks a name up.\n- **Local-only git commands** (merge-base, check-ignore, …): no alias lookup.\n- **`gh api` with a shell id:** the endpoint may use a shell value only as a\n  whole id segment under pulls\u002Fissues\u002Fcomments\u002Freviews\u002Fcommits\u002Fruns\u002Fjobs\u002F\n  check-runs of a literal `repos\u002F\u003Cowner>\u002F\u003Crepo>`. A dynamic GET route is a\n  read only if it starts with a literal, is the only endpoint word, and no\n  expansion in the call can word-split. An expansion can split if it is\n  unquoted, or if its quoting was lost through a wrapper or an alias. A word\n  led by an expansion makes the method unknown: the shell value may be a gh\n  flag.\n- **GraphQL:** a `$name` the query declares is GraphQL syntax only if every\n  `$name` in the command is single-quoted, so the shell never expands it.\n  Values of fields other than `query`\u002F`operationName` are variables and cannot\n  change the operation.\n\n**`gh api` routes:**\n- **Flags are read the way gh reads them** (pflag): short clusters such as\n  `-iX`, a value attached with `=` or the rest of the cluster, and `--flag=v`.\n  An unknown flag denies. A second endpoint word denies unless the request is a\n  read. A method-override header makes the method unknown.\n- **The route is what gh requests:** `?query` and `#fragment` are dropped,\n  and any `.`\u002F`..` segment or a non-`api.github.com` URL host denies.\n- **GraphQL mutations deny by default.** Only routine review\u002Fcomment fields\n  pass (comments, reviews, review threads, reactions, labels, review requests,\n  draft\u002Fready). A fragment spread at the top of a mutation, an unreadable\n  mutation document, `--input`, and a `-F query=@file`\u002F`@-` document all\n  deny.\n\n**Git routes:**\n- Executable names are case-folded (APFS is case-insensitive), so `GIT`,\n  `Git`, `GH` and absolute paths in any case are the same commands.\n- git's per-subcommand executables are treated as the matching git subcommand.\n- At push time the gate evaluates the *effective* route: the remote picked by\n  `--repo`, `branch.\u003Cb>.pushRemote`, `remote.pushDefault` or `branch.\u003Cb>.remote`,\n  plus that remote's configured `push` refspecs and `mirror`, when the command\n  names none. So a stored force\u002Fdelete refspec or mirror needs a token on the\n  plain push that uses it. (`:` alone is git's \"matching\" refspec, not a delete.)\n- Tokens bind a digest of that route's config (URLs included, values never\n  copied), so changing the remote after issuance invalidates the token.\n- Storing a destructive route needs a token too:\n  - `git config` setters of a force\u002Fdelete `remote.\u003Cr>.push` or a true `mirror`;\n  - Write\u002FEdit\u002FMultiEdit whose resulting git config (`.git\u002Fconfig`,\n    `config.worktree`, or the repo's common-dir config) would hold one. The\n    edit is simulated on the current file.\n- Other writers to git config (shell redirects, includes) are judged at push\n  time instead.\nLike the other policy gates, this gate runs through the launcher's\n`--fail-closed` mode (#656): a missing or unparseable hook, a launcher crash, a\nmissing pinned interpreter (the installer's `\u002Fbin\u002Fsh` guard) and a hang past\nthe watchdog budget (manifest timeout 10 s, budget 9 s) all deny with the\nstatic reinstall hint. This hook also catches evaluator\u002Fimport errors itself.\nInstaller status must still be checked before calling this an installed\nmechanical gate.\nCodex seats run it through the Codex adapter (`scripts\u002Fhooks\u002Fcodex-policy-hook.py\nhuman-confirm`, fail-closed, 7 s budget under Codex's 10 s). The token binds the\nCodex payload's `session_id`, which is the root thread id (stable across\n`codex resume`, shared by subagents, new on a fork), so issue with `--session\n\u003Croot thread id>`. `apply_patch` is never read as a command: the whole patch is\nreplayed in order, as Codex applies it, over a virtual file map keyed by\ncanonical path (so `.git\u002F..\u002F.git\u002Fconfig` is `.git\u002Fconfig`). Each touched path is\njudged once: a git config file on its final content (section context and\nremoved lines matter), anything else by path. Hunks are placed with Codex's own\nfour seek passes (exact, trailing-whitespace, full-trim, unicode punctuation),\nso a CRLF or loosely matching file replays to what Codex writes. An ordinary\nfile that no pass can place is never denied for it; a git config file that no\npass can place, or such content moved onto one, is denied. The installer refuses this Codex registration while the anchor pin is\nempty, as on Claude. A new registration only runs after the owner trusts it in\n`\u002Fhooks`.\n## Trust and issuance\nUnsigned file metadata cannot identify a human under the shared macOS UID.\nTokens are SSH-signed JSON, mode 0600, in\n`~\u002F.config\u002Fgolems\u002Fhuman-confirm\u002F\u003C32-lowercase-hex-nonce>.json`, with an adjacent\n`.json.sig`. The owner provisions mode-0600\n`~\u002F.config\u002Fgolems\u002Fhuman-confirm-anchor\u002Fallowed_signers` out of band, with SSH allowed\nsigners principals `human` and `lead` (separate keys). The `human` signing key\nmust be unavailable to agents: a separate owner-controlled signer or hardware\nkey requiring owner presence. Only the owner creates\u002Fsigns human tokens;\nworkers never mint them. A software private key in the shared workspace\u002FHOME\nis insufficient. The lead signer must be unavailable to workers; under one UID\nthis is an operational trust boundary, not enforced key isolation.\nDetectable Bash writes\u002Fdeletes and Write\u002FEdit\u002FMultiEdit\u002FNotebookEdit attempts\nto the policy directory deny, including case variants. Monitor commands use\nthe same evaluator as Bash.\nA file copied by an agent cannot gain approval without the issuer's signature.\nThe same-UID threat frontier remains: this hook is not an OS sandbox; a malicious\nprocess can replace the hook, configuration, or tombstones. Arbitrary interpreter\ncode, sourced files and external shell startup aliases remain outside static\ninspection. Unknown wrappers carrying recognizable protected Git\u002FGH argv deny.\nUnregistered tool surfaces remain outside this hook. No owner-origin claim\nis made from PID, timestamps, mode, or chat provenance.\nUse `scripts\u002Fgolems-confirm \u003Crepo> \u003Cref> \u003Caction> --session \u003Cid>` from a\nseparate owner terminal; lease also needs `--sha \u003Cfull-sha>`. See README for\n1Password SSH-agent public-key setup and required per-request authorization.\nCached application\u002Fall-process authorization is insufficient human proof.\nThe helper uses ssh-keygen -U to require the agent; ancestry checks are only\nadvisory detection. The per-request signer prompt is the owner-presence control.\n### Trust anchor integrity\nThe anchor lives in its own directory, `~\u002F.config\u002Fgolems\u002Fhuman-confirm-anchor\u002F`,\nso locking it never touches the other files under `~\u002F.config\u002Fgolems`.\nIt holds exactly one plain key for `human` and at most one for `lead`.\nOptions are not allowed, so no `cert-authority` and no shared principals.\n\n**Provisioning (owner terminal):**\n1. Create the directory mode 0700 and place the allowed signers file there.\n2. Run `scripts\u002Fgolems-confirm-pin` from the pinned tree (the golems repo's\n   `.worktrees\u002Fhooks-live`). Do not run it from a dev checkout an agent can edit.\n3. It prints each principal with its key's `SHA256:` fingerprint. Compare\n   them with your signer, then type `PIN`. Only then does it set macOS `uchg`\n   on the file and the directory and print one pin line.\n4. That line lands in this skill's `anchor.pins` through a reviewed PR.\n\nThe pin lives in the pinned hooks-live tree, not the policy directory, so\nclearing flags and rewriting the anchor cannot also re-pin it.\n\n`anchor.pins` grammar is shared with `install-hooks` (`tests\u002Fpin-vectors.json`):\nASCII, LF lines; each line is empty, a printable `#` comment, or 64 lowercase\nhex plus an optional ` label` (`[A-Za-z0-9._-]+`). Anything else voids the pin.\n\n**Every token check** denies every human and lead token, with the hook's\nstatic message, unless all of these hold:\n- `anchor.pins` in the hook tree is byte-identical to its blob at that\n  tree's git HEAD, so uncommitted edits in hooks-live never re-pin. Git is\n  pointed at the tree root explicitly, with object replacement off and\n  discovery stopped at the root. Any repository marker between the pin and\n  the root denies;\n- the anchor, opened fd-relative with no symlinks, has `uchg` on the file and\n  the directory, mode 0700\u002F0600, owner UID and a single link;\n- its SHA-256 is pinned, and its principals pass the grammar above.\n\nSSH verifies the checked bytes through a pipe and never reopens the path.\n\n**Hook imports.** The installer runs this gate as `\u003Cpinned python3> -I -B` through the\nshared launcher, like every golems Python hook. The launcher loads what\n`runpy` needs first, and adds every hook directory LAST on `sys.path`, never\nfirst. The gate then:\n- takes its own directory and `_shared` off `sys.path` while the stdlib loads,\n  and adds them back last;\n- compiles its modules from source, never reading cached bytecode;\n- denies every call while compiled modules, symlinks or shadow packages sit\n  beside its sources.\n\n**Installer.** `install-hooks` never activates this gate while `anchor.pins`\nholds no fingerprint. An `--update` to an unpinned commit unlinks and\nderegisters it, and `--status` reports `refused(unpinned)`. Order: merge, then\nthe owner pins, then the fingerprint PR, then hooks-live install. Key rotation\nmeans an owner-terminal unlock, review and repin, plus a new pin PR. Never\nrepin automatically on a mismatch.\n\n**What `install-hooks --status` detects** (exit 1). Git runs with\nfsmonitor and the untracked cache off, and object replacement disabled:\n- tracked edits, and untracked files that are not gitignored, in hooks-live;\n- index flags (skip-worktree, assume-unchanged) on any path, and any replace refs;\n- for each `requiresPin` gate, its source dir and `_shared` compared\n  byte-for-byte with HEAD. That reports changed, missing and extra files,\n  ignored ones included. `__pycache__` is skipped because the gate never reads it;\n- a hooks-live HEAD that is not on origin\u002Fmaster;\n- a HEAD that differs from the SHA recorded by the last `--apply`, or no\n  recorded SHA.\n\nIt does not cover ignored files outside the gate's import dirs. It cannot see\na same-UID edit that is reverted before it runs, or tampering with git's own\nrefs and recorded SHA together. The hook does not inspect its\nown source at runtime: a same-UID process that rewrites hooks-live's hook code\nor commits there defeats the gate until `--status` flags it.\n\n**Early fail-closed argv checks** are defence in depth, not the boundary. They deny:\n- `chflags`\u002F`SetFile` whose targets are unresolved (glob, brace, variable,\n  substitution, `~user`), relative under an unknown or wrapper-changed cwd,\n  or able to reach the anchor or pinned tree, including `-R` on an anchor ancestor;\n- flag executors fed targets by `xargs`, `parallel` or `find`;\n- non-reader commands whose literal operands name the anchor directory or\n  pinned tree (`ln` also of an anchor ancestor), and Write\u002FEdit to either.\n\nThey do NOT catch:\n- writes through clustered short options, awk\u002Fsed write commands, or relative\n  operands after an unresolvable `cd`;\n- `git` inside hooks-live;\n- removing an ancestor of hooks-live (the fail-closed launcher then denies\n  every matching call until reinstall);\n- interpreter code (`python -c`, `osascript`).\n\nThe anchor's uchg\u002Fhash and the committed pin are what catch these outcomes.\n\n**By-design over-denies:**\n- `chflags` with any glob, or with a relative target under an unknown cwd or a\n  wrapper (e.g. `timeout 5 chflags …`);\n- `--opt=\u003Canchor path>` and copying the anchor out with a non-reader.\n\n`cd -`, `pushd`\u002F`popd` stacks and CDPATH searches make cwd unknown.\nThis is tamper evidence within the tool boundary, not an OS sandbox.\nAnchor provisioning\u002Fruntime are macOS-only. Unsupported hosts refuse tokens;\nCI skips those runtime fixtures explicitly, while structural tests still run.\nPrepare a JSON draft in the repo's `docs.local\u002F` with these fields:\n- `version`: 1; `kind`: `human` or `lead`; `nonce`: random 32 lowercase hex.\n- `issued_at`, `expires_at`: Unix seconds, maximum TTL 300 seconds, no future issue.\n- `command_sha256`: SHA256 of exact hook `cwd` + NUL + exact Bash command.\n- `operations`: output of `hooks\u002Fcommands.py:operations(command, cwd)`.\n- `session_id`: the Claude worker session ID from the hook input.\n- `collab`: collab path, for lead tokens only.\nReview the exact command, repo, remote, refs and operation classes, then the\nissuer copies the draft to the token path, chmods 0600, and signs it:\n\n```sh\nssh-keygen -Y sign -U -f \u003Cissuer-controlled-public-key> -n golems-confirm \u003Cnonce>.json\n```\n\nThe hook verifies raw JSON bytes using `ssh-keygen -Y verify`; there is no model\njudgement. The digest scopes the complete command (including wrappers) and cwd;\noperations scope repo\u002Fref\u002Fclass\u002Flease SHA; session binding prevents cross-worker\nreuse. A valid human token permits its entire scoped command. A `.spent` nonce\nis atomically created before capability deletion; keep tombstones permanently.\nEven a restored token is denied. Failed execution still consumes approval: get\na fresh token for retries. Concurrent callers cannot consume the same nonce.\n\n## Own-branch leases\n\nEtan (2026-11-04): \"it's a 2 way door… it always is reversible, and it's my fork…\nconfusing why the agent says it needs my help to do force with lease\".\nA single literal `git [-C \u003Crepo>] push --force-with-lease=refs\u002Fheads\u002F\u003Cbranch>:\u003Cfull-sha>\n\u003Cremote> \u003Csource>:refs\u002Fheads\u002F\u003Cbranch>` needs no token when all three hold:\n\n- The existing narrow parser identifies exactly one plain lease.\n- The named remote's fetch and push URLs resolve to the same EtanHey GitHub repository;\n  other remotes are fine, but redirects elsewhere and additional push modes deny.\n- GitHub metadata confirms the branch is neither default nor protected, and its name is\n  not main\u002Fmaster\u002Fdevelop\u002Ftrunk\u002Fgh-pages\u002Frelease* (case-insensitive).\n\nOptional `--atomic`, `--verbose` and `-v` flags are accepted.\nMetadata failure or ambiguity denies. Everything else still needs a token.\nThe gate has no non-fatal write-result channel, so this exception writes no audit log.\n\n## Lead tokens\n\n`scripts\u002Fgolems-lead-confirm \u003Crepo> --ref refs\u002Fheads\u002F\u003Cbranch> --sha \u003Cfull-sha> --session \u003Cid> [--remote origin]`\nissues exactly one lead token. The token covers a `--force-with-lease` push of the CURRENT\nbranch to its own open, unmerged, same-repository PR, at that PR's exact remote head SHA.\n- **It refuses** main\u002Fmaster and the default branch (in any letter case, even when the\n  default branch is something else), a checkout with more than one GitHub remote, other refs, short SHAs, a remote that is not one GitHub URL, and\n  any push that config turns into something other than a plain lease.\n- **One rule for both sides.** The issuer and the gate share `tokens.lead_scope`.\n- **It signs** with `~\u002F.config\u002Fgolems\u002Flead-signer\u002Flead_ed25519` (0600 file, 0700 directory;\n  `scripts\u002Fgolems-lead-keygen` creates it once). It uses no agent, no 1Password and no\n  owner terminal: leads are agents, and the scope limits are the control.\n- **Logging.** Each issuance appends one JSON line to\n  `~\u002F.config\u002Fgolems\u002Fhuman-confirm\u002Flead-issued.log`. It also appends the token's\n  `GOLEMS_CONFIRM` line plus a readable `- lead-token issued …` line (with the GitHub\n  `owner\u002Frepo`) to the OSS collab, always. If either write fails, nothing is issued.\n- **Not isolation.** Under one macOS UID the lead key is an operational boundary, not\n  isolation: any process of this user can read the key file.\n\n## Lead scope\n\nThe signed lead token additionally needs an exact line in its signed `collab`.\nThe resolved path must be inside the coordinator's collab directory (see the\nprivate installation handoff for the machine layout). The line contains\n`GOLEMS_CONFIRM ` followed by the token JSON sorted by key, compact separators\n`,` and `:`. Ordinary prose or an unlogged token denies. Signing proves lead\nissuance; the collab line logs the exact session\u002Fref\u002FSHA\u002Fcommand authorization.\n\nOnly a single literal `git [-C \u003Crepo>] push\n--force-with-lease=refs\u002Fheads\u002F\u003Cbranch>:\u003Cfull-sha> \u003Cremote>\n\u003Csource>:refs\u002Fheads\u002F\u003Cbranch>` qualifies. Bare force, bare lease, multiple refs,\nwrapped\u002Fcompound commands and other classes require human tokens.\nThe current local branch must match, source must be HEAD\u002Fcurrent branch,\nremote must resolve to one GitHub URL, and live read-only GH metadata must show\nthat exact remote repo's open, unmerged, same-repository PR at the exact lease\nSHA, on a non-default branch. The signed session\u002Fref grant asserts worker\nownership; branch names and GitHub author alone do not establish worker identity.\nMetadata failures or timeouts deny. Binaries are fixed system Git\u002FSSH, and\ngh from fixed, ownership-checked Homebrew locations, avoiding caller PATH substitution. No real destructive operation is used in\nverification; integration tests invoke the hook subprocess with signed synthetic\ncapabilities and disposable repos under docs.local.\n",{"name":5,"description":7},"master","3400bc971628f00ab7bf1063993477e211a5508a","skills\u002Fgolem-powers\u002Fhuman-confirm-gate","https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems","https:\u002F\u002Fgithub.com\u002FEtanHey","etanheyman.com","2026-11-15 03:05:08",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add EtanHey\u002Fgolems --skill human-confirm-gate",{"tool":37,"command":38},"bunx","bunx skills add EtanHey\u002Fgolems --skill human-confirm-gate",{"tool":40,"command":41},"pnpm","pnpm dlx skills add EtanHey\u002Fgolems --skill human-confirm-gate","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002FSKILL.md",true,[45,51,57,61,65,69,73,77,81,85,91,95,99,103,107,111,115,119,123,127,131,135,139,143,147,151,155,159,163,167,171,175,179,183,187,191,195,199,203,207,211,215,219,223,227,231],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"anchor.pins","OTHER","其他",577,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Fanchor.pins",{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"hooks\u002Fcommands.py","SCRIPT","脚本",23625,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Fhooks\u002Fcommands.py",{"path":58,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":59,"sourceHtmlUrl":60},"hooks\u002Fforwarding.py",8489,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Fhooks\u002Fforwarding.py",{"path":62,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":63,"sourceHtmlUrl":64},"hooks\u002Fgh_policy.py",19264,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Fhooks\u002Fgh_policy.py",{"path":66,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":67,"sourceHtmlUrl":68},"hooks\u002Fgit_config.py",7418,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Fhooks\u002Fgit_config.py",{"path":70,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":71,"sourceHtmlUrl":72},"hooks\u002Fhuman-confirm-pretooluse.py",5111,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Fhooks\u002Fhuman-confirm-pretooluse.py",{"path":74,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":75,"sourceHtmlUrl":76},"hooks\u002Fsyntax.py",35407,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Fhooks\u002Fsyntax.py",{"path":78,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":79,"sourceHtmlUrl":80},"hooks\u002Ftokens.py",18820,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Fhooks\u002Ftokens.py",{"path":82,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":83,"sourceHtmlUrl":84},"hooks\u002Fwhole_command.py",16517,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Fhooks\u002Fwhole_command.py",{"path":86,"resourceType":87,"resourceTypeDesc":88,"sizeBytes":89,"sourceHtmlUrl":90},"README.md","REFERENCE","参考文档",2335,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002FREADME.md",{"path":92,"resourceType":87,"resourceTypeDesc":88,"sizeBytes":93,"sourceHtmlUrl":94},"tests\u002Ffixtures\u002Ff3-conditional-path-writer.json",1654,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Ftests\u002Ffixtures\u002Ff3-conditional-path-writer.json",{"path":96,"resourceType":87,"resourceTypeDesc":88,"sizeBytes":97,"sourceHtmlUrl":98},"tests\u002Ffixtures\u002Ff3-quoted-writer-data.json",1511,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Ftests\u002Ffixtures\u002Ff3-quoted-writer-data.json",{"path":100,"resourceType":87,"resourceTypeDesc":88,"sizeBytes":101,"sourceHtmlUrl":102},"tests\u002Ffleet_commands.json",2030389,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Ftests\u002Ffleet_commands.json",{"path":104,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":105,"sourceHtmlUrl":106},"tests\u002Fmutation_proof.py",39910,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Ftests\u002Fmutation_proof.py",{"path":108,"resourceType":87,"resourceTypeDesc":88,"sizeBytes":109,"sourceHtmlUrl":110},"tests\u002Fpin-vectors.json",2488,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Ftests\u002Fpin-vectors.json",{"path":112,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":113,"sourceHtmlUrl":114},"tests\u002Ftest_anchor.py",27137,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Ftests\u002Ftest_anchor.py",{"path":116,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":117,"sourceHtmlUrl":118},"tests\u002Ftest_arithmetic_data.py",4453,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Ftests\u002Ftest_arithmetic_data.py",{"path":120,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":121,"sourceHtmlUrl":122},"tests\u002Ftest_binding_allowlist.py",3503,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Ftests\u002Ftest_binding_allowlist.py",{"path":124,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":125,"sourceHtmlUrl":126},"tests\u002Ftest_codex_adapter.py",13804,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Ftests\u002Ftest_codex_adapter.py",{"path":128,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":129,"sourceHtmlUrl":130},"tests\u002Ftest_commands.py",5198,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Ftests\u002Ftest_commands.py",{"path":132,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":133,"sourceHtmlUrl":134},"tests\u002Ftest_conditional_path_prefix.py",4337,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Ftests\u002Ftest_conditional_path_prefix.py",{"path":136,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":137,"sourceHtmlUrl":138},"tests\u002Ftest_conditional_path_writer.py",2770,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Ftests\u002Ftest_conditional_path_writer.py",{"path":140,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":141,"sourceHtmlUrl":142},"tests\u002Ftest_dynamic_command_word.py",3800,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Ftests\u002Ftest_dynamic_command_word.py",{"path":144,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":145,"sourceHtmlUrl":146},"tests\u002Ftest_false_positives.py",13202,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Ftests\u002Ftest_false_positives.py",{"path":148,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":149,"sourceHtmlUrl":150},"tests\u002Ftest_fleet_cleanup_ownership.py",2790,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Ftests\u002Ftest_fleet_cleanup_ownership.py",{"path":152,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":153,"sourceHtmlUrl":154},"tests\u002Ftest_gate.py",14118,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Ftests\u002Ftest_gate.py",{"path":156,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":157,"sourceHtmlUrl":158},"tests\u002Ftest_gh_help.py",2909,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Ftests\u002Ftest_gh_help.py",{"path":160,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":161,"sourceHtmlUrl":162},"tests\u002Ftest_gh_parsing.py",9967,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Ftests\u002Ftest_gh_parsing.py",{"path":164,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":165,"sourceHtmlUrl":166},"tests\u002Ftest_gh_settings.py",4407,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Ftests\u002Ftest_gh_settings.py",{"path":168,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":169,"sourceHtmlUrl":170},"tests\u002Ftest_git_routes.py",6222,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Ftests\u002Ftest_git_routes.py",{"path":172,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":173,"sourceHtmlUrl":174},"tests\u002Ftest_helpers.py",1741,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Ftests\u002Ftest_helpers.py",{"path":176,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":177,"sourceHtmlUrl":178},"tests\u002Ftest_integrity.py",4690,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Ftests\u002Ftest_integrity.py",{"path":180,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":181,"sourceHtmlUrl":182},"tests\u002Ftest_issue.py",5283,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Ftests\u002Ftest_issue.py",{"path":184,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":185,"sourceHtmlUrl":186},"tests\u002Ftest_issuer_bytecode.py",2081,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Ftests\u002Ftest_issuer_bytecode.py",{"path":188,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":189,"sourceHtmlUrl":190},"tests\u002Ftest_lead_issuer.py",20848,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Ftests\u002Ftest_lead_issuer.py",{"path":192,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":193,"sourceHtmlUrl":194},"tests\u002Ftest_metadata_timeout.py",6488,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Ftests\u002Ftest_metadata_timeout.py",{"path":196,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":197,"sourceHtmlUrl":198},"tests\u002Ftest_opaque_execution.py",3912,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Ftests\u002Ftest_opaque_execution.py",{"path":200,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":201,"sourceHtmlUrl":202},"tests\u002Ftest_own_fork_lease.py",12036,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Ftests\u002Ftest_own_fork_lease.py",{"path":204,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":205,"sourceHtmlUrl":206},"tests\u002Ftest_plain_messages.py",1796,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Ftests\u002Ftest_plain_messages.py",{"path":208,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":209,"sourceHtmlUrl":210},"tests\u002Ftest_positional_forwarding.py",12283,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Ftests\u002Ftest_positional_forwarding.py",{"path":212,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":213,"sourceHtmlUrl":214},"tests\u002Ftest_quoted_writer_data.py",2769,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Ftests\u002Ftest_quoted_writer_data.py",{"path":216,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":217,"sourceHtmlUrl":218},"tests\u002Ftest_r2.py",5554,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Ftests\u002Ftest_r2.py",{"path":220,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":221,"sourceHtmlUrl":222},"tests\u002Ftest_surfaces.py",2172,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Ftests\u002Ftest_surfaces.py",{"path":224,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":225,"sourceHtmlUrl":226},"tests\u002Ftest_whole_command_binding.py",9112,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Ftests\u002Ftest_whole_command_binding.py",{"path":228,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":229,"sourceHtmlUrl":230},"tests\u002Ftest_whole_command_defects.py",7332,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Ftests\u002Ftest_whole_command_defects.py",{"path":232,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":233,"sourceHtmlUrl":234},"tests\u002Ftest_xargs_identity.py",9866,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fhuman-confirm-gate\u002Ftests\u002Ftest_xargs_identity.py",[236,243,250,257,264,271],{"skillNo":237,"name":238,"nameZh":6,"description":239,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":240,"categories":241,"keywords":242,"publishedAt":19},"01M7C53JEF6A6SS20Q0D2YJYM8","yash","Push dependency bugs upstream. Triggers: dependency bug, workaround, monkey-patch, fork\u002Ffix. NOT app bugs.","https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fyash\u002FSKILL.md",[],[],{"skillNo":244,"name":245,"nameZh":6,"description":246,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":247,"categories":248,"keywords":249,"publishedAt":19},"01M7C53EPMNSZKHK47VY7WQDP0","whats-new","Diff Claude\u002FCodex\u002FCursor\u002FWispr\u002Fagy changelogs vs local setup. Triggers: whats new, changelog, version bump.","https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fwhats-new\u002FSKILL.md",[],[],{"skillNo":251,"name":252,"nameZh":6,"description":253,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":254,"categories":255,"keywords":256,"publishedAt":19},"01M7C53C4TVQ9G7AB3X57DACPB","weave","Orchestrator convergence: mine JSONLs, cite findings, route actions. Triggers: weave, run weave.","https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fweave\u002FSKILL.md",[],[],{"skillNo":258,"name":259,"nameZh":6,"description":260,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":261,"categories":262,"keywords":263,"publishedAt":19},"01M7C5342EDDN7YH53KKW511V2","unslop","Cut AI tells while keeping every receipt, number, path, and hedge intact. Triggers: unslop, cut the slop, wall of text, too verbose, rambly, make this readable. NOT for delivery cadence (see i-have-adhd), channel choice, or artifact length governance.","https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Funslop\u002FSKILL.md",[],[],{"skillNo":265,"name":266,"nameZh":6,"description":267,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":268,"categories":269,"keywords":270,"publishedAt":19},"01M7C52M0CTDW5DDP4452FJV0G","tmp-block","Guard denying durable writes to \u002Ftmp, \u002Fprivate\u002Ftmp, \u002Fvar\u002Ffolders, $TMPDIR; enforces \u003Crepo>\u002F.worktrees\u002F\u003Cname>. Triggers: tmp guard, TMP-BLOCK deny, WORKTREE-CONVENTION deny, bypass ledger. NOT for storage policy.","https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Ftmp-block\u002FSKILL.md",[],[],{"skillNo":272,"name":273,"nameZh":6,"description":274,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":275,"categories":276,"keywords":277,"publishedAt":19},"01M7C52HN4Q9E1Z74Z11K23E2H","t3-visuals","Show\u002Fvisualize\u002Fchart\u002Fdiagram\u002Fcompare\u002Fstatus board in T3 with compact interactive HTML. Not standalone dashboards.","https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Ft3-visuals\u002FSKILL.md",[],[]]