Skip to content

Agent guards: one pattern each for written rules that cost a lot when broken once #1220

Done

Description

@scuttletoby

What: add small patterns to the agent-guards kit for rules that are only written down today and cost a lot when broken once. Each is one pattern. Repo names and commands come from the machine's config.

  • a CI-skip marker in a commit message (even quoted, it skips PR CI);
  • git stash in a shared worktree;
  • running the T3 CLI from any binary but the running server's (another version opens the live database);
  • any write to the upstream repository;
  • a whole-repo knip run or a full test suite run on the local machine;
  • an unquoted heredoc that writes a brief (backticks inside it run as commands).

Evidence: one local whole-repo knip run used 3.4 GB for 14 minutes and filled a machine. The CLI and heredoc slips each happened once and are now prose rules. None of these patterns are in the guards code today.

Done when: each pattern refuses with a plain reason and the fix. It has contract tests on both the fast path and the full guard (#1094). Text that only mentions a command (echo, grep, a heredoc into a file) is not refused.

Related: #1094, #866, #926.

🤖 Generated with Claude Code

Activity

  1. added
    area:guards
    size:medium
    type:feature
    on Nov 29, 2026
  2. scuttletoby commented on Nov 29, 2026

    @scuttletoby
    OwnerAuthor

    Claim: a writer from the minors sweep is taking this (all six patterns), branch fix/guards-1220-patterns.

    🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:guardssize:mediumtype:feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions