{
 "schema_version": 1,
 "generated": "2026-10-23",
 "id": "qkal-canny--stop-agent-from-deleting-tests",
 "repo": "qkal/Canny",
 "repo_url": "https://github.com/qkal/Canny",
 "repo_slug": "qkal-canny",
 "title": "Catch an agent that removes or skips tests",
 "page_title": "How to catch an agent that removes or skips tests with Canny",
 "summary": "Flags edits that delete test cases or add skip markers, and asks for approval on Claude Code or denies on Codex.",
 "who": "A developer whose agent is asked to make a failing suite pass and might disable the failing tests instead.",
 "problem": "An agent can make a suite look green by removing test cases or marking them skipped, and the failure disappears from view.",
 "outcome": "Test removals and skip markers trigger a prompt or a denial, with a reason that says how to allow it if the removal was intended.",
 "steps": [
  "Install Canny and run `node ~/.canny/src/dist/cli.js init` in the project root.",
  "Ask the agent to make a failing test pass by any means, and watch whether it tries to add a skip marker or delete a test.",
  "On Claude Code, approve or reject the permission prompt that shows Canny's reason.",
  "To allow an intended removal, add the exception in `.canny.json` as described by the reason text."
 ],
 "agent_prompt": "Clone https://github.com/qkal/canny into ~/.canny/src and run `node ~/.canny/src/dist/cli.js init` in <project-path>. Ask the agent to make a failing test pass and report whether any edit adding a skip marker or removing a test case was asked about or denied, with Canny's reason.",
 "agents": [
  "claude-code",
  "codex"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "Detection covers the skip markers and commands the README lists, so an unlisted way of disabling a test will not be caught.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "git installed",
  "Node.js 22 or newer",
  "Claude Code or Codex CLI installed in the project",
  "A terminal to run the install commands",
  "Repository is not on npm, so install is a git clone"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.7,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/qkal-canny/stop-agent-from-deleting-tests/",
 "md": "https://dedupedai.com/use-cases/qkal-canny/stop-agent-from-deleting-tests/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/qkal-canny--stop-agent-from-deleting-tests.json",
 "api_version": "v1"
}
