Skip to content

fix(security): gitignore guards for the #424 credential-debris class - #2296

Merged
joelteply merged 1 commit into
canaryfrom
fix/gitignore-credential-debris-guards
Aug 14, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/gitignore-credential-debris-guards

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Closes the guard gap behind the 2026-08-14 credential-workspace leak (audit card #424): an escaped agent workspace at repo root (work-team-wordstats/) carried a live .airc/identity.key and required manual quarantine because git offered no protection.

Two rules, both positive-controlled with git check-ignore:

  • /work-*/ — root-level agent/persona scratch dirs can never be tracked (mirrors the existing /core/work-*/)
  • **/.airc/identity.key — a nested airc scope's credential is untrackable anywhere in the tree (the root-anchored .airc/* rule never covered nested scopes)

Root .airc whitelist (POLICY.md, manifest.json) verified unaffected. Substrate half already fixed in-tree (ensure_engine citizen-layer rooting + ensure_shell follows the engine root). Quarantine deleted and key destroyed per owner authorization; the enrolled peers are tier=untrusted, so no live trust referenced the key.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…— root work-*/ + nested .airc/identity.key

The 2026-08-14 audit found an escaped agent workspace at the repo root
(work-team-wordstats/) carrying a live .airc/identity.key. Manual quarantine
was required because git offered no guard: the root-anchored `.airc/*` rule
does not cover scopes minted inside subdirectories, and only /core/work-*/
(not root-level work-*/) was ignored.

Two rules close the class, both positive-controlled with git check-ignore:
- /work-*/          root-level agent/persona scratch can never be tracked
- **/.airc/identity.key  a nested scope's credential is untrackable anywhere

The root .airc whitelist (POLICY.md, manifest.json) is unaffected. The
substrate half is already fixed in-tree: ensure_engine roots persona hands at
the citizen layer and ensure_shell follows the engine root (both carry their
own regression comments). The quarantined dirs are deleted and the key
destroyed per owner authorization; enrolled peers were tier=untrusted, so no
live trust referenced it.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit 26f9018 into canary Aug 14, 2026
2 checks passed
@joelteply
joelteply deleted the fix/gitignore-credential-debris-guards branch August 14, 2026 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant