Skip to content

guardrail CLI: planting-only flow — flat verbs, catalog, drop attack#6

Merged
qyli00 merged 4 commits into
mainfrom
feat/cs/assistant-pro-cli
Jul 7, 2026
Merged

guardrail CLI: planting-only flow — flat verbs, catalog, drop attack#6
qyli00 merged 4 commits into
mainfrom
feat/cs/assistant-pro-cli

Conversation

@charliespy

Copy link
Copy Markdown
Collaborator

What

Aligns the aicodinggym guardrail CLI with the Assistant Pro redesign: the attacker only plants; victim routines are triggered on the web cockpit, never the CLI.

  • Removed attack (and the POST /turn caller).
  • Added catalog (GET /catalog) — lists everything you can plant, grouped by surface, plus the victim routines.
  • Flattened the plant verbs (no plant prefix), each mapping to the right backend plantKind:
    • injection: email · note · event · message · webpage
    • tool misuse: payee · contact · request
    • auth bypass: consent · policy
  • Group help + README rewritten for the planting-only flow; medals now /3.

Tests

  • 78 passing (pytest); the API layer is mocked (no network).

Depends on

  • The AICodingGym backend PR (POST /routine, GET /catalog, expanded /plant kinds). Those endpoints don't exist until it's deployed, so merge/deploy the backend PR first — until then guardrail catalog/plant verbs return a clean 404.

A planted contact defeats Favor's "send only to saved contacts" guard but can
never produce a tool-misuse (money) capture — the judge freezes safe
destinations at seed and never reads env.contacts. Relabel the verb docstring
and the README surface table accordingly (matches the backend /catalog group).

78 pytest pass.
@charliespy charliespy requested a review from qyli00 July 7, 2026 05:08
@qyli00 qyli00 merged commit 37864cf into main Jul 7, 2026
@qyli00 qyli00 deleted the feat/cs/assistant-pro-cli branch July 7, 2026 22:50
qyli00 added a commit that referenced this pull request Jul 7, 2026
Ships the guardrail CLI planting-only flow (PR #6): catalog command,
flat plant verbs, attack/plant removal.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

3 participants