Skip to content

Harden the last three audit P2s#26

Merged
4nkur merged 1 commit into
mainfrom
harden-p2s
Apr 26, 2026
Merged

Harden the last three audit P2s#26
4nkur merged 1 commit into
mainfrom
harden-p2s

Conversation

@4nkur
Copy link
Copy Markdown
Owner

@4nkur 4nkur commented Apr 26, 2026

CI workflow at .github/workflows/ci.yml — install + lint + test on Node 20 and 22, on every PR and push to main. Manual checks before merge stop being the only line of defense.

Anthropic SDK maxRetries goes from its default 2 to 4. The SDK already handles 429 / 5xx / network retries internally; the audit suggested wrapping our own retry but that's redundant with existing SDK behavior. Bumping the SDK's own knob covers more transient blips with less code.

scan-cache.json gains a cacheVersion field. When we change scan output shape later (new field, renamed key), bumping CACHE_VERSION in src/utils/scan-cache.js makes old caches miss instead of poisoning downstream commands with stale shapes.

CI workflow at .github/workflows/ci.yml — install + lint + test
on Node 20 and 22, on every PR and push to main. Manual checks
before merge stop being the only line of defense.

Anthropic SDK maxRetries goes from its default 2 to 4. The SDK
already handles 429 / 5xx / network retries internally; the audit
suggested wrapping our own retry but that's redundant with
existing SDK behavior. Bumping the SDK's own knob covers more
transient blips with less code.

scan-cache.json gains a cacheVersion field. When we change scan
output shape later (new field, renamed key), bumping
CACHE_VERSION in src/utils/scan-cache.js makes old caches
miss instead of poisoning downstream commands with stale shapes.

Closes audit P2 #4, #6, #7. All seven P2s now closed.
@4nkur 4nkur merged commit 3acf056 into main Apr 26, 2026
2 checks passed
@4nkur 4nkur deleted the harden-p2s branch April 26, 2026 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant