Cerebro Source Integration
Instructions
- Start from the closest existing integration under
sources/. - Implement config parsing with safe defaults, strict validation, and clear error mapping.
- Add preview behavior and runtime sync behavior only within the requested scope.
- Protect network-facing settings against loopback, unsafe schemes, malformed URLs, unbounded responses, and pagination loops.
- Expose the exact attributes any downstream finding rule will use, with tests for label-quality fields, fallback IDs, absent optional fields, and future/deadline timestamps.
- Add package tests for config validation, preview decoding, pagination, and error handling.
- Run focused source package tests, then
make changed-check, thenmake verifywhen feasible.
Boundaries
- Do not introduce new external dependencies unless explicitly requested.
- Do not add live-service tests unless they are opt-in behind environment variables.
- Canonicalize provider-controlled identifiers before they reach URNs, event IDs, or fingerprints — see the finding-rule design notes in AGENTS.md.