- • Key-name regex: api_key, token, secret, bearer, sk-, ghp_, xox…
- • Value heuristic: high-entropy tokens (32+ chars)
- • env / headers maps treated as secret by default
- • Each strip recorded as SecretRef{name, location}
- • { all: true } or named skills/mcp/hooks/instructions
- • Throws on unknown artifact names
- • Re-redacts artifacts missing secretRefs
- • Aggregates SecretRequirement[] (names only)
- • skills/ mcp/ hooks/ instructions/ checks/
- • gem.json (manifest) + gem.lock (hashes + digest)
- • Deterministic: sorted paths, fixed mtime
- • Serialize to a directory or a .tar.gz buffer