Skip to content

chore(agents): refresh the 21 audit agents and add terminal-fidelity-auditor - #393

Merged
thierryvm merged 1 commit into
mainfrom
chore/agents-refresh-2026-09
Sep 26, 2026
Merged

thierryvm merged 1 commit into
mainfrom
chore/agents-refresh-2026-09

Conversation

@thierryvm

Copy link
Copy Markdown
Owner

Summary

Refresh of the 21 audit agents in .claude/agents/, plus one new agent and a generator for the theory ratchet.

  • Agents brought up to date. Descriptions and procedures match the current codebase: THI-353 ratchets (lessonFidelity, lessonTheory), the age-gate, the support form. Stale counts and paths removed.
  • Model doctrine. Five agents that audit real data or access move from sonnet to opus: route-attack-auditor, vercel-firewall-auditor, rbac-flow-tester, classroom-workflow-auditor, user-forensics-auditor. Result: 13 opus / 8 sonnet, no haiku. agentFrontmatter.test.ts now requires model: opus|sonnet and a README entry for every agent.
  • Secret hygiene. No curl -I on protected URLs (the _vercel_jwt cookie carries the bypass token); no reads inside .secrets/.
  • PII. A real user's identifier is replaced by "utilisateur A" in an agent, STORY.md, ADR-009 and the B2B strategy doc. Git history is not rewritten (decision recorded with @Thierry).
  • New terminal-fidelity-auditor. Runs lesson commands in the engine and in real GNU bash / PowerShell 7 inside a throwaway sandbox mirroring createInitialState, and classifies each difference. First run found two PowerShell gaps (Get-Location header, Get-Content missing-file message), queued for the next terminal PR.
  • npm run theory:gaps. The theory replay moves to src/test/lessonTheoryReplay.ts, shared by the test and a new generator. The generator refuses to add a gap or raise BASH_SHOWN_ON_WINDOWS_MAX without --allow-new.
  • CLAUDE.md. Supabase migrations go through the Management API with the DevContext token (token renewed today, scoped to this project only); supabase projects api-keys output is piped to gh secret set, never printed.

Test plan

  • tsc --noEmit, eslint src, vitest run (2724 passed, 20 skipped; no .skip/.only added by this diff), vite build
  • npm run theory:gaps → 162 -> 162 (removed 0, added 0), Windows count 37 → 37; an injected gap was refused (checked before this commit)
  • Diff scanned for secret-like values and e-mail addresses: none
  • feature-dev:code-reviewer: no finding at confidence ≥ 80; its one suggestion (the generated header is owned by the script) is applied
  • CI green, Sourcery checked, preview smoke test (no runtime code changes: agents, docs, tests and a dev script only)

🤖 Generated with Claude Code

…auditor

- Every agent brought in line with the current codebase (THI-353 ratchets,
  age-gate, support form); stale counts and paths removed.
- Five agents that audit real data or access move to opus: route-attack,
  vercel-firewall, rbac-flow, classroom-workflow, user-forensics
  (13 opus / 8 sonnet). agentFrontmatter.test.ts now requires model
  opus|sonnet and a README entry for every agent.
- Two secret-leak paths removed: no `curl -I` on protected URLs, no reads
  inside .secrets/.
- A real user's identifier replaced by "utilisateur A" in an agent, STORY,
  ADR-009 and the B2B strategy doc.
- New terminal-fidelity-auditor: runs lesson commands in the engine and in
  real GNU bash / PowerShell 7 inside a throwaway sandbox, and classifies
  each difference.
- Theory replay extracted to src/test/lessonTheoryReplay.ts, shared by the
  test and the new `npm run theory:gaps` generator, which refuses to add a
  gap or raise BASH_SHOWN_ON_WINDOWS_MAX without --allow-new.
- CLAUDE.md: Supabase migrations go through the Management API with the
  DevContext token; api-keys output is piped, never printed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@vercel

vercel Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
terminal-learning Ready Ready Preview Sep 26, 2026 2:35pm UTC

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @thierryvm, your pull request is larger than the review limit of 150,000 diff characters

@thierryvm
thierryvm merged commit 46180d1 into main Sep 26, 2026
4 checks passed
@thierryvm
thierryvm deleted the chore/agents-refresh-2026-09 branch September 26, 2026 14:36

This branch was successfully deployed

1 active deployment
Preview — 98d995e2 Deployed Sep 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant