# Cerebro Regression Tests

> Add focused regression coverage for Cerebro review findings, bugs, and security edge cases.

- Skill: `writer/cerebro-regression-tests-2` (Agent Skill)
- Install (CLI): `npx skillmds@latest add writer/cerebro-regression-tests-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/writer/cerebro-regression-tests-2/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Security
- Author: writer (https://skillmd.com/u/writer)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/writer/cerebro-regression-tests-2

---


# Cerebro Regression Tests

## Instructions

1. Reproduce the reported bug class with the smallest package-level test.
2. Prefer table-driven Go tests for parser, validator, projection, graph, and source connector edge cases.
3. Include security boundary cases for URL, host, tenant, auth, pagination, size-limit, and error-mapping fixes.
4. Keep fixtures local to the package unless an existing shared fixture pattern already exists.
5. Run the focused package test with `-count=1 -v`, then run `make verify` when feasible.

## Success Criteria

- The new test fails against the unfixed behavior or clearly asserts the regression boundary.
- The production fix is minimal and covered by the new test.

