# CVE Analysis Design Decisions

LLMS index: [llms.txt](https://hummingbird-project.io/llms.txt) | Full content: [llms-full.txt](https://hummingbird-project.io/llms-full.txt)

---

Design Decision Registry (DDR) for the CVE analysis tool — every major design
choice, the alternatives considered, and why the chosen approach won. For
operational usage, see [CVE Analysis](https://hummingbird-project.io/l/cve-analysis).

## DDR-1: Sentry stack-frame-local scrubbing via denylist mode

**Decision**: Initialize Sentry without `send_default_pii` and with
`data_collection={"stack_frame_variables": {"mode": "denylist"}}`, filtering
local variables with sensitive names out of captured stack frames.

**Context**: sentry-sdk 3.x removed `send_default_pii` and no longer scrubs
stack-frame local variables by default. The tool holds the Jira API token in
a local (`args.jira_token` unpacked into `token`) for the whole analysis run
while it transitions tickets and posts comments, so an uncaught exception
would otherwise send the token value to Sentry.

**Alternatives**: (a) Plain removal of `send_default_pii=True` — the 3.x
defaults collect a comparable amount of data overall, but stack-frame locals
go out unscrubbed, exposing the token. (b) The restrictive
`data_collection` dict — turns off most collection, discarding debug value
for an analysis tool whose Jira/API failures need local context. (c)
`stack_frame_variables: False` — disables local-variable capture entirely.

**Rationale**: The denylist keeps the error context the tool needs for
debugging while filtering variables whose names match the built-in
sensitive-term list; the token lives in a local named `token`, which the
denylist filters. This scrubs strictly more than the previous 2.x
configuration with `send_default_pii=True`, which scrubbed nothing.
