{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "no-human-ai-no-human--block-test-weakening-in-ai-diffs",
 "repo": "no-human-ai/no_human",
 "repo_url": "https://github.com/no-human-ai/no_human",
 "repo_slug": "no-human-ai-no-human",
 "title": "Stop AI changes that delete or weaken tests",
 "page_title": "How to stop AI changes that delete or weaken tests with No Human",
 "summary": "Count deleted tests, new skips, and tautological assertions before any review runs.",
 "who": "A maintainer who accepts AI-assisted pull requests and needs a mechanical check for tests quietly removed to make a build pass.",
 "problem": "A coding agent can go green by deleting or skipping failing tests, and a human reviewer may miss it in a large diff.",
 "outcome": "Attempts that delete or weaken tests are stopped before review unless the change is justified against your acceptance criteria.",
 "steps": [
  "Run `uv sync` in a source checkout of No Human to install the `nh` entry point.",
  "Run `(cd web && npm install && npm run build)` to build the board.",
  "Run `uv run nh init` to set the token, config, and first repo.",
  "Run `uv run nh doctor` to verify the install before relying on it.",
  "Add a task with `uv run nh task add <issue-url> --repo <local-repo-path>` and watch the run in the event stream. (inferred, check the README)"
 ],
 "agent_prompt": "Using the no_human repo at <checkout-path>, add the task <issue-url> for the repo at <local-repo-path>. Report whether the tamper guard stopped any attempt for deleted or weakened tests, and cite the event that shows the result.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "45 minutes",
 "basis": "readme",
 "caveat": "The guard counts deletions and weakened assertions mechanically, so it does not judge whether the remaining tests are correct, and a source build requires Node and npm.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "Python 3.12+",
  "uv",
  "git",
  "Node with npm, for the board build from source",
  "An Anthropic credential: an ANTHROPIC_API_KEY or a Claude subscription OAuth token from claude setup-token",
  "A git repository you want changed, and a GitHub or GitLab issue URL or a configured tracker"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/no-human-ai-no-human/block-test-weakening-in-ai-diffs/",
 "md": "https://dedupedai.com/use-cases/no-human-ai-no-human/block-test-weakening-in-ai-diffs/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/no-human-ai-no-human--block-test-weakening-in-ai-diffs.json",
 "api_version": "v1"
}
