[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77RGS32Z9JJKWWZS22ACVED":3,"skill-same:01M77RGS32Z9JJKWWZS22ACVED":58},{"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":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M77RGS32Z9JJKWWZS22ACVED","anvil-serving-secret-hygiene",null,"Audit and remediate secret exposure in the Anvil Serving repository and its deployment artifacts. Use for credential reviews, public-evidence redaction, env-only configuration checks, Gitleaks setup or triage, pre-publish security gates, suspected token leaks, multi-host OpenClaw credential rotation, and decisions about credential rotation or Git-history cleanup.","fakoli\u002Fanvil-serving","fakoli","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1631326?v=4","01M77RFVS9JSVF3PFEJ4114QDT","Sekou Doumbouya","01M77RFVT2YT7DTK045N6XFE5G",1,"MIT","https:\u002F\u002Fgithub.com\u002Ffakoli\u002Fanvil-serving\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fanvil-serving-secret-hygiene\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: anvil-serving-secret-hygiene\ndescription: Audit and remediate secret exposure in the Anvil Serving repository and its deployment artifacts. Use for credential reviews, public-evidence redaction, env-only configuration checks, Gitleaks setup or triage, pre-publish security gates, suspected token leaks, multi-host OpenClaw credential rotation, and decisions about credential rotation or Git-history cleanup.\n---\n\n# Anvil Serving Secret Hygiene\n\nProtect the current tree without overstating what has been proven about Git history or live credentials. Never print, quote, copy, or commit a secret while investigating it.\n\n## Safety invariants\n\n- Preserve unrelated dirty work. Record `git status --short` before editing.\n- Keep credentials in environment variables or an operator-local ignored env file. Repository files may contain variable names and placeholders, never values.\n- Treat everything under `docs\u002F` as public. Apply the repository's published-topology policy as well as credential redaction.\n- Report findings as kind, path, line, and count only. Never include the matched value, a credential-bearing URL, or surrounding text that reveals it.\n- A clean current snapshot does not imply clean Git history, and neither proves a leaked live credential was rotated.\n- Use the standing remediation authority below; preserve any narrower user limits or host exclusions.\n\n## Standing remediation authority\n\nWhen the user requests secret or private-operator-data remediation in Anvil\nServing, this skill has standing authority to complete the necessary cleanup:\nsanitize public records, preserve operational evidence in `anvil-serving-ops-private`,\ncommit and push the fixes, replace affected Git history with exact-lease\nforce-pushes, and rotate or revoke confirmed exposed credentials through their\nidentified owner's supported management interface. Do not ask again for these\nactions merely because they mutate external state. Explicit user authorization\nand restrictions persist across turns.\n\nThis authority covers the identified exposure and its affected refs, owners,\nand consumers. It does not authorize unrelated credential changes, identity\nreplacement, broad filesystem cleanup, access-control bypass, or model\npromotion. Credentials stay in protected storage outside both repositories;\nprivate operational details and raw evidence stay in the private operator\nrepository; public interfaces and examples remain generic.\n\nBefore mutation, prepare the concrete cleanup and recovery plan, verify private\nbackups, and record affected refs and credential owners without secret values.\nUse an exact expected remote object ID for every rewritten ref and stop on\nunexpected drift. Verify replacement history from a fresh fetch and verify\ncredential rejection plus consumer health after rotation. Ask only when an\nunresolved owner, scope, or service impact prevents a bounded safe action, or\nwhen the user has explicitly withheld the needed authority. A missing fact is\nnot a reason to repeat an already answered permission question.\n\n## Workflow\n\n### 1. Orient and inventory\n\nRead `AGENTS.md`, `README.md`, `CLAUDE.md`, `.gitignore`, and every file to be changed. Then inspect, without exposing values:\n\n1. Tracked and untracked files from Git, including sensitive filenames.\n2. Whether local env files are ignored and untracked.\n3. Whether any Git remote URL contains embedded credentials; report only a boolean\u002Fcount.\n4. The current diff and existing secret-scanner configuration.\n\nRun the bundled semantic check from the repository root:\n\n```powershell\npython .agents\u002Fskills\u002Fanvil-serving-secret-hygiene\u002Fscripts\u002Fsemantic_secret_scan.py\n```\n\nIt scans tracked and non-ignored untracked files and emits metadata-only JSON. Use `--scope tracked` or `--scope untracked` to isolate a surface.\nTracked text files that are unreadable, symlinked, binary despite a text\nextension, or larger than the bounded scan limit are findings; the semantic\ngate must never silently skip them.\n\n### 2. Run independent signature scans\n\nAfter committing the candidate, run the existing scanner's snapshot mode:\n\n```text\npython .agents\u002Fskills\u002Fanvil-serving-secret-hygiene\u002Fscripts\u002Fsemantic_secret_scan.py --signature-snapshot\n```\n\nIt exports the exact committed HEAD to a fresh temporary directory and uses the\nGitleaks image pinned in that revision's workflow. It refuses tracked edits\nand reports the scanned commit and actual exit code. Untracked candidate files\nstill require the separate semantic\u002Funtracked review before staging; this mode\nclaims only committed snapshot coverage. Test output, `site\u002F`, caches and logs\nfrom a used test checkout cannot enter this signature scan. A clean snapshot\nis not a full-history result.\n\nUse the repository's pinned Gitleaks container digest and `.gitleaks.toml`. Keep reports in an ignored scratch directory and do not display raw reports because they may contain secret material.\n\nScan these surfaces separately:\n\n1. A clean candidate snapshot containing tracked files plus the intended change.\n2. Non-ignored untracked files.\n3. Full Git history with `gitleaks git`.\n\nUse `--redact` and summarize the resulting report programmatically by rule, path, and count. Do not run a mutable floating image tag when a repository-pinned digest exists.\n\n### 3. Triage findings\n\nClassify each finding as an actual credential, an intentionally synthetic fixture, or a false positive. Inspect the smallest possible masked context.\n\n- Prefer exact-value or narrowly scoped path-and-field allowlists for verified fixtures.\n- Never add a broad directory, extension, or generic-token allowlist merely to make a scan pass.\n- Treat capability-bearing URLs, session tokens, device tokens, and private-key material as secrets even when a generic scanner misses them.\n- Record separate states for current tracked snapshot, untracked files, Git history, and live credential rotation.\n\n### 4. Remediate the current snapshot\n\nUse `apply_patch` when the secret is not present in the patch text. If a patch would echo an actual secret, use a bounded redaction operation that does not print command input or output, then immediately rescan.\n\n- Replace exposed values with `\u003Credacted>` or an env reference as appropriate.\n- Replace capability-bearing URLs with a non-capability placeholder.\n- For published docs, also replace real network identities with the generic values required by `AGENTS.md`.\n- Keep `.env.example` limited to names and safe placeholders.\n\nTreat an exposed credential as compromised even after current-file redaction. Identify its owning system and record rotation as incomplete until independently confirmed.\n\n### 5. Handle destructive or external actions\n\nCredential rotation\u002Frevocation can terminate sessions or services. Establish\nthe exact credential owner, affected consumers, and recovery path before acting\nunder the standing authority. Resolve uncertain ownership or impact before\nmutation; do not rotate an unrelated credential as a precaution.\n\nGit-history rewriting is destructive and is covered by the standing authority\nfor requested remediation. Before proceeding, prepare a coordinated plan\ncovering private backup, affected refs, collaborator coordination, exact-lease\nforce-push, fresh-clone verification, and credential rotation. Record branch\nreplacement and recovery instructions in the authorized PR or operator record;\nsend direct messages only when separately authorized. Do not claim that a\nforce-push erases hosting-provider caches, old PR views, or forks. Never claim\nthe repository is fully clean while historical findings remain.\n\n### 6. Rotate live OpenClaw credentials\n\nTreat every OpenClaw host as an independent credential owner until live inventory proves otherwise. A machine may run its own gateway, consume another gateway, run a node service, or combine those roles. Respect an explicit host exclusion even when that host appeared in an earlier rotation.\n\n#### Inventory without values\n\nOn each in-scope host, record only:\n\n1. Host identity and installed OpenClaw version.\n2. Gateway mode, bind mode, service state, and RPC readiness.\n3. Whether `gateway.auth.token` is plaintext, an env SecretRef, or a file SecretRef; for a reference, record only `source`, `provider`, and `id`.\n4. Secret-provider type, config\u002Fsecret-store modes, and whether the expected env variable name is present. Never emit its value.\n5. Paired device IDs, display names, roles, scopes, and pending count with all token fields removed.\n6. Local `identity\u002Fdevice-auth.json` device ID, token roles, metadata timestamps, and file mode without token values.\n\nClassify credentials before mutation:\n\n- The shared gateway token authenticates gateway clients but has no device identity or administrative device scope by itself.\n- Device-role tokens belong to a specific device and role.\n- Capability-bearing URLs are short-lived bearer secrets; invalidate and probe them separately.\n- Provider credentials such as Discord, Brave, router, controller, or model API keys are separate systems. Do not rotate them merely because they are consumed by OpenClaw.\n- The device private key is identity material. Do not replace it unless compromise or explicit identity replacement is in scope.\n\n#### Rotate a gateway token transactionally\n\n1. Read the current token only inside the owning host process and retain it in memory for rollback and a negative probe.\n2. Generate the replacement on the owning host.\n3. If configuration uses a file SecretRef, atomically update only the referenced JSON pointer in the owner-only secret store and preserve mode `0600`. Keep the config reference unchanged.\n4. If configuration uses an env source, stage the owner-only service env first. While the old credential source still works, refresh the installed service plan and prove the service actually loads that file\u002Fkey. Only then change `gateway.auth.token` to the env reference and restart again. Switching config before launchd knows the new key can trigger an immediate hot-reload crash loop. Schema validation alone is not runtime proof.\n5. If configuration uses plaintext, prefer migration to an already proven SecretRef provider. If the installed OpenClaw release validates but cannot boot with that reference, roll back and rotate through the known-working `0600` configuration; report the runtime limitation explicitly.\n6. Refresh the managed service plan only when its environment inputs changed, restart the gateway, and wait through a bounded startup window.\n7. Require all of: new-token health succeeds, old-token health fails, service is running, config is valid, and RPC is ready.\n8. On any failure, atomically restore the original config\u002Fsecret bytes and service plan, restart with the prior credential, and report whether rollback health passed.\n9. After acceptance, replace the revoked value only in narrowly matched OpenClaw-generated config or secret backups. Do not broadly rewrite the home directory.\n\nOpenClaw runtime behavior is version-sensitive. A controlled `2026.7.1-2` loopback probe proved both explicit env and file SecretRefs can boot and authenticate. The observed Mini production failure happened because config changed to an env reference before the installed launchd plan carried the new env key; config hot reload entered a restart loop and rollback restored service. Do not misclassify this as a SecretRef runtime defect. When an owner-only JSON provider already exists, prefer the simpler file reference used by the working deployment: store the value at `\u002Fgateway\u002FauthToken`, point `gateway.auth.token` to that file provider, restart, and migrate plaintext-bearing config backups.\n\n#### Rotate a device-role token through its authorization boundary\n\nBefore calling `openclaw devices rotate`, inspect the installed gateway's authorization behavior and the caller's device ID, role, and scopes.\n\n- Rotation must be performed through a supported authenticated device-management path. Do not edit OpenClaw's SQLite pairing tables.\n- Capture rotation JSON to memory or an owner-only temporary file, extract the replacement without printing it, atomically update the matching role in `identity\u002Fdevice-auth.json`, preserve mode `0600`, then restart the node\u002Fclient service.\n- Verify the same device ID reconnects after the rotation timestamp with the expected authentication reason. Confirm unrelated paired devices and pending requests are unchanged.\n- If the server token rotates but local persistence fails, immediately self-rotate once more using the returned token, persist that recovery token, and restart. Never restore the now-invalid original token.\n\nObserved OpenClaw `2026.7.2` policy requires special care:\n\n- A shared gateway token has no `callerDeviceId`, even though it can list devices.\n- A non-admin caller may manage only an `operator` role token. Rotating a `node` token requires an authenticated `operator.admin` device.\n- Self-rotation returns the replacement only when the caller device ID matches the target device ID.\n\nWhen the required admin device is absent, stop after the denial, preserve the existing working node credential, and report `human_required`. Use an approved admin device or OpenClaw's supported bootstrap\u002Fre-pair flow; do not bypass the policy with direct database writes.\n\n#### Sequence multiple hosts\n\nFor a gateway plus remote clients, rotate the gateway owner first, securely update authorized consumers, then rotate device-role tokens one client at a time. For hosts that each own a gateway, use independent transactions and independent old-token rejection probes. Never reuse one replacement across hosts.\n\nRestarting a gateway invalidates process-bound capability URLs. Probe any known exposed capability path after restart and require a rejection such as HTTP 401\u002F403\u002F404\u002F410; a connection error is not proof. End with gateway, node, MCP\u002Fcontroller, and paired-device checks appropriate to that host.\n\n### 7. Add prevention\n\nWhen requested or missing, maintain:\n\n- `.gitleaks.toml` extending defaults with only evidence-backed narrow allowlists.\n- A CI workflow pinned to an immutable Gitleaks image digest.\n- Current-snapshot scanning that includes the proposed committed state.\n\nDo not enable a blocking full-history CI gate until known historical findings are cleaned or intentionally baselined through a reviewed policy.\n\n### 8. Verify and report\n\nRun:\n\n1. The bundled semantic scanner; require zero unexplained findings.\n2. Pinned Gitleaks against the candidate current snapshot; require zero unexplained findings.\n3. JSON\u002FYAML parsing, relevant tests, and `git diff --check` for changed artifacts.\n4. A full-history scan, reported independently from the current-snapshot gate.\n\nFinish with a compact matrix showing `clean`, `findings remain`, `human_required`, or `not run` for current tracked files, untracked files, history, each host's gateway token, each device-role token, capability URLs, CI guard, and publication state. State exactly what was changed, what remains risky, whether rollback was exercised, and whether anything was committed or pushed.\n","# Anvil Serving Secret Hygiene\n\nProtect the current tree without overstating what has been proven about Git history or live credentials. Never print, quote, copy, or commit a secret while investigating it.\n\n## Safety invariants\n\n- Preserve unrelated dirty work. Record `git status --short` before editing.\n- Keep credentials in environment variables or an operator-local ignored env file. Repository files may contain variable names and placeholders, never values.\n- Treat everything under `docs\u002F` as public. Apply the repository's published-topology policy as well as credential redaction.\n- Report findings as kind, path, line, and count only. Never include the matched value, a credential-bearing URL, or surrounding text that reveals it.\n- A clean current snapshot does not imply clean Git history, and neither proves a leaked live credential was rotated.\n- Use the standing remediation authority below; preserve any narrower user limits or host exclusions.\n\n## Standing remediation authority\n\nWhen the user requests secret or private-operator-data remediation in Anvil\nServing, this skill has standing authority to complete the necessary cleanup:\nsanitize public records, preserve operational evidence in `anvil-serving-ops-private`,\ncommit and push the fixes, replace affected Git history with exact-lease\nforce-pushes, and rotate or revoke confirmed exposed credentials through their\nidentified owner's supported management interface. Do not ask again for these\nactions merely because they mutate external state. Explicit user authorization\nand restrictions persist across turns.\n\nThis authority covers the identified exposure and its affected refs, owners,\nand consumers. It does not authorize unrelated credential changes, identity\nreplacement, broad filesystem cleanup, access-control bypass, or model\npromotion. Credentials stay in protected storage outside both repositories;\nprivate operational details and raw evidence stay in the private operator\nrepository; public interfaces and examples remain generic.\n\nBefore mutation, prepare the concrete cleanup and recovery plan, verify private\nbackups, and record affected refs and credential owners without secret values.\nUse an exact expected remote object ID for every rewritten ref and stop on\nunexpected drift. Verify replacement history from a fresh fetch and verify\ncredential rejection plus consumer health after rotation. Ask only when an\nunresolved owner, scope, or service impact prevents a bounded safe action, or\nwhen the user has explicitly withheld the needed authority. A missing fact is\nnot a reason to repeat an already answered permission question.\n\n## Workflow\n\n### 1. Orient and inventory\n\nRead `AGENTS.md`, `README.md`, `CLAUDE.md`, `.gitignore`, and every file to be changed. Then inspect, without exposing values:\n\n1. Tracked and untracked files from Git, including sensitive filenames.\n2. Whether local env files are ignored and untracked.\n3. Whether any Git remote URL contains embedded credentials; report only a boolean\u002Fcount.\n4. The current diff and existing secret-scanner configuration.\n\nRun the bundled semantic check from the repository root:\n\n```powershell\npython .agents\u002Fskills\u002Fanvil-serving-secret-hygiene\u002Fscripts\u002Fsemantic_secret_scan.py\n```\n\nIt scans tracked and non-ignored untracked files and emits metadata-only JSON. Use `--scope tracked` or `--scope untracked` to isolate a surface.\nTracked text files that are unreadable, symlinked, binary despite a text\nextension, or larger than the bounded scan limit are findings; the semantic\ngate must never silently skip them.\n\n### 2. Run independent signature scans\n\nAfter committing the candidate, run the existing scanner's snapshot mode:\n\n```text\npython .agents\u002Fskills\u002Fanvil-serving-secret-hygiene\u002Fscripts\u002Fsemantic_secret_scan.py --signature-snapshot\n```\n\nIt exports the exact committed HEAD to a fresh temporary directory and uses the\nGitleaks image pinned in that revision's workflow. It refuses tracked edits\nand reports the scanned commit and actual exit code. Untracked candidate files\nstill require the separate semantic\u002Funtracked review before staging; this mode\nclaims only committed snapshot coverage. Test output, `site\u002F`, caches and logs\nfrom a used test checkout cannot enter this signature scan. A clean snapshot\nis not a full-history result.\n\nUse the repository's pinned Gitleaks container digest and `.gitleaks.toml`. Keep reports in an ignored scratch directory and do not display raw reports because they may contain secret material.\n\nScan these surfaces separately:\n\n1. A clean candidate snapshot containing tracked files plus the intended change.\n2. Non-ignored untracked files.\n3. Full Git history with `gitleaks git`.\n\nUse `--redact` and summarize the resulting report programmatically by rule, path, and count. Do not run a mutable floating image tag when a repository-pinned digest exists.\n\n### 3. Triage findings\n\nClassify each finding as an actual credential, an intentionally synthetic fixture, or a false positive. Inspect the smallest possible masked context.\n\n- Prefer exact-value or narrowly scoped path-and-field allowlists for verified fixtures.\n- Never add a broad directory, extension, or generic-token allowlist merely to make a scan pass.\n- Treat capability-bearing URLs, session tokens, device tokens, and private-key material as secrets even when a generic scanner misses them.\n- Record separate states for current tracked snapshot, untracked files, Git history, and live credential rotation.\n\n### 4. Remediate the current snapshot\n\nUse `apply_patch` when the secret is not present in the patch text. If a patch would echo an actual secret, use a bounded redaction operation that does not print command input or output, then immediately rescan.\n\n- Replace exposed values with `\u003Credacted>` or an env reference as appropriate.\n- Replace capability-bearing URLs with a non-capability placeholder.\n- For published docs, also replace real network identities with the generic values required by `AGENTS.md`.\n- Keep `.env.example` limited to names and safe placeholders.\n\nTreat an exposed credential as compromised even after current-file redaction. Identify its owning system and record rotation as incomplete until independently confirmed.\n\n### 5. Handle destructive or external actions\n\nCredential rotation\u002Frevocation can terminate sessions or services. Establish\nthe exact credential owner, affected consumers, and recovery path before acting\nunder the standing authority. Resolve uncertain ownership or impact before\nmutation; do not rotate an unrelated credential as a precaution.\n\nGit-history rewriting is destructive and is covered by the standing authority\nfor requested remediation. Before proceeding, prepare a coordinated plan\ncovering private backup, affected refs, collaborator coordination, exact-lease\nforce-push, fresh-clone verification, and credential rotation. Record branch\nreplacement and recovery instructions in the authorized PR or operator record;\nsend direct messages only when separately authorized. Do not claim that a\nforce-push erases hosting-provider caches, old PR views, or forks. Never claim\nthe repository is fully clean while historical findings remain.\n\n### 6. Rotate live OpenClaw credentials\n\nTreat every OpenClaw host as an independent credential owner until live inventory proves otherwise. A machine may run its own gateway, consume another gateway, run a node service, or combine those roles. Respect an explicit host exclusion even when that host appeared in an earlier rotation.\n\n#### Inventory without values\n\nOn each in-scope host, record only:\n\n1. Host identity and installed OpenClaw version.\n2. Gateway mode, bind mode, service state, and RPC readiness.\n3. Whether `gateway.auth.token` is plaintext, an env SecretRef, or a file SecretRef; for a reference, record only `source`, `provider`, and `id`.\n4. Secret-provider type, config\u002Fsecret-store modes, and whether the expected env variable name is present. Never emit its value.\n5. Paired device IDs, display names, roles, scopes, and pending count with all token fields removed.\n6. Local `identity\u002Fdevice-auth.json` device ID, token roles, metadata timestamps, and file mode without token values.\n\nClassify credentials before mutation:\n\n- The shared gateway token authenticates gateway clients but has no device identity or administrative device scope by itself.\n- Device-role tokens belong to a specific device and role.\n- Capability-bearing URLs are short-lived bearer secrets; invalidate and probe them separately.\n- Provider credentials such as Discord, Brave, router, controller, or model API keys are separate systems. Do not rotate them merely because they are consumed by OpenClaw.\n- The device private key is identity material. Do not replace it unless compromise or explicit identity replacement is in scope.\n\n#### Rotate a gateway token transactionally\n\n1. Read the current token only inside the owning host process and retain it in memory for rollback and a negative probe.\n2. Generate the replacement on the owning host.\n3. If configuration uses a file SecretRef, atomically update only the referenced JSON pointer in the owner-only secret store and preserve mode `0600`. Keep the config reference unchanged.\n4. If configuration uses an env source, stage the owner-only service env first. While the old credential source still works, refresh the installed service plan and prove the service actually loads that file\u002Fkey. Only then change `gateway.auth.token` to the env reference and restart again. Switching config before launchd knows the new key can trigger an immediate hot-reload crash loop. Schema validation alone is not runtime proof.\n5. If configuration uses plaintext, prefer migration to an already proven SecretRef provider. If the installed OpenClaw release validates but cannot boot with that reference, roll back and rotate through the known-working `0600` configuration; report the runtime limitation explicitly.\n6. Refresh the managed service plan only when its environment inputs changed, restart the gateway, and wait through a bounded startup window.\n7. Require all of: new-token health succeeds, old-token health fails, service is running, config is valid, and RPC is ready.\n8. On any failure, atomically restore the original config\u002Fsecret bytes and service plan, restart with the prior credential, and report whether rollback health passed.\n9. After acceptance, replace the revoked value only in narrowly matched OpenClaw-generated config or secret backups. Do not broadly rewrite the home directory.\n\nOpenClaw runtime behavior is version-sensitive. A controlled `2026.7.1-2` loopback probe proved both explicit env and file SecretRefs can boot and authenticate. The observed Mini production failure happened because config changed to an env reference before the installed launchd plan carried the new env key; config hot reload entered a restart loop and rollback restored service. Do not misclassify this as a SecretRef runtime defect. When an owner-only JSON provider already exists, prefer the simpler file reference used by the working deployment: store the value at `\u002Fgateway\u002FauthToken`, point `gateway.auth.token` to that file provider, restart, and migrate plaintext-bearing config backups.\n\n#### Rotate a device-role token through its authorization boundary\n\nBefore calling `openclaw devices rotate`, inspect the installed gateway's authorization behavior and the caller's device ID, role, and scopes.\n\n- Rotation must be performed through a supported authenticated device-management path. Do not edit OpenClaw's SQLite pairing tables.\n- Capture rotation JSON to memory or an owner-only temporary file, extract the replacement without printing it, atomically update the matching role in `identity\u002Fdevice-auth.json`, preserve mode `0600`, then restart the node\u002Fclient service.\n- Verify the same device ID reconnects after the rotation timestamp with the expected authentication reason. Confirm unrelated paired devices and pending requests are unchanged.\n- If the server token rotates but local persistence fails, immediately self-rotate once more using the returned token, persist that recovery token, and restart. Never restore the now-invalid original token.\n\nObserved OpenClaw `2026.7.2` policy requires special care:\n\n- A shared gateway token has no `callerDeviceId`, even though it can list devices.\n- A non-admin caller may manage only an `operator` role token. Rotating a `node` token requires an authenticated `operator.admin` device.\n- Self-rotation returns the replacement only when the caller device ID matches the target device ID.\n\nWhen the required admin device is absent, stop after the denial, preserve the existing working node credential, and report `human_required`. Use an approved admin device or OpenClaw's supported bootstrap\u002Fre-pair flow; do not bypass the policy with direct database writes.\n\n#### Sequence multiple hosts\n\nFor a gateway plus remote clients, rotate the gateway owner first, securely update authorized consumers, then rotate device-role tokens one client at a time. For hosts that each own a gateway, use independent transactions and independent old-token rejection probes. Never reuse one replacement across hosts.\n\nRestarting a gateway invalidates process-bound capability URLs. Probe any known exposed capability path after restart and require a rejection such as HTTP 401\u002F403\u002F404\u002F410; a connection error is not proof. End with gateway, node, MCP\u002Fcontroller, and paired-device checks appropriate to that host.\n\n### 7. Add prevention\n\nWhen requested or missing, maintain:\n\n- `.gitleaks.toml` extending defaults with only evidence-backed narrow allowlists.\n- A CI workflow pinned to an immutable Gitleaks image digest.\n- Current-snapshot scanning that includes the proposed committed state.\n\nDo not enable a blocking full-history CI gate until known historical findings are cleaned or intentionally baselined through a reviewed policy.\n\n### 8. Verify and report\n\nRun:\n\n1. The bundled semantic scanner; require zero unexplained findings.\n2. Pinned Gitleaks against the candidate current snapshot; require zero unexplained findings.\n3. JSON\u002FYAML parsing, relevant tests, and `git diff --check` for changed artifacts.\n4. A full-history scan, reported independently from the current-snapshot gate.\n\nFinish with a compact matrix showing `clean`, `findings remain`, `human_required`, or `not run` for current tracked files, untracked files, history, each host's gateway token, each device-role token, capability URLs, CI guard, and publication state. State exactly what was changed, what remains risky, whether rollback was exercised, and whether anything was committed or pushed.\n",{"name":5,"description":7},"main","c02ba7c047f81b9e5fcc2a26434f6b5bfb82f5b0",".agents\u002Fskills\u002Fanvil-serving-secret-hygiene",0,"https:\u002F\u002Fgithub.com\u002Ffakoli\u002Fanvil-serving","https:\u002F\u002Fgithub.com\u002Ffakoli","https:\u002F\u002Fsekoudoumbouya.com","2026-11-14 02:44:30",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add fakoli\u002Fanvil-serving --skill anvil-serving-secret-hygiene",{"tool":38,"command":39},"bunx","bunx skills add fakoli\u002Fanvil-serving --skill anvil-serving-secret-hygiene",{"tool":41,"command":42},"pnpm","pnpm dlx skills add fakoli\u002Fanvil-serving --skill anvil-serving-secret-hygiene","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ffakoli\u002Fanvil-serving\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fanvil-serving-secret-hygiene\u002FSKILL.md",true,[46,52],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"agents\u002Fopenai.yaml","REFERENCE","参考文档",286,"https:\u002F\u002Fgithub.com\u002Ffakoli\u002Fanvil-serving\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fanvil-serving-secret-hygiene\u002Fagents\u002Fopenai.yaml",{"path":53,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":57},"scripts\u002Fsemantic_secret_scan.py","SCRIPT","脚本",27855,"https:\u002F\u002Fgithub.com\u002Ffakoli\u002Fanvil-serving\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fanvil-serving-secret-hygiene\u002Fscripts\u002Fsemantic_secret_scan.py",[59,65,71,76,81,88],{"skillNo":60,"name":61,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M77RK15F1RY23K6YY54W7YQC","voice","https:\u002F\u002Fgithub.com\u002Ffakoli\u002Fanvil-serving\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fcli_reference_audit\u002Finput\u002Fskills\u002Fvoice\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M77RK06RC7DDZQE1MEZHA9NQ","workbench","https:\u002F\u002Fgithub.com\u002Ffakoli\u002Fanvil-serving\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fcli_reference_audit\u002Finput\u002Fexamples\u002Fopenclaw\u002Fskills\u002Fworkbench\u002FSKILL.md",[],[],{"skillNo":72,"name":67,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M77RJY4CSSN04B1MRGPMSFH8","https:\u002F\u002Fgithub.com\u002Ffakoli\u002Fanvil-serving\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fcli_reference_audit\u002Finput\u002F.claude\u002Fskills\u002Fworkbench\u002FSKILL.md",[],[],{"skillNo":77,"name":67,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M77RJX2C6VRHYS7F452WTFKX","https:\u002F\u002Fgithub.com\u002Ffakoli\u002Fanvil-serving\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fcli_reference_audit\u002Finput\u002F.agents\u002Fskills\u002Fworkbench\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M77RJSYENH9ERF4RB3P8Y0DY","anvil-serving-voice-ops","Operate topology-owned anvil-serving voice audio and Realtime proxy lifecycle, Mini-to-Dark loopback forwarding, profiles, sidecars, and bounded voice benchmarks. Use for voice status, logs, start\u002Fstop\u002Frestart, OpenClaw Talk topology checks, and voice evidence that must remain separate from LLM serve qualification evidence.","https:\u002F\u002Fgithub.com\u002Ffakoli\u002Fanvil-serving\u002Fblob\u002Fmain\u002Fskills\u002Fanvil-serving-voice-ops\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M77RJP56J64R6Y73WZCDJ03D","anvil-serving-stt-benchmark","Prepare, validate, execute, compare, and publish reproducible multi-sample speech-to-text qualifications in anvil-serving. Use for STT model bakeoffs, corpus-based WER\u002FCER and latency testing, candidate overlays, concurrency tests, restoration checks, and fail-closed stt-benchmark-evidence\u002Fv1 artifacts. Do not use for a single voice-pipeline turn or LLM qualification.","https:\u002F\u002Fgithub.com\u002Ffakoli\u002Fanvil-serving\u002Fblob\u002Fmain\u002Fskills\u002Fanvil-serving-stt-benchmark\u002FSKILL.md",[],[]]