You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci(contracts): run slither + aderyn against the post-PR-#684 contract suite and resolve findings #690
PR #684 rewired the bulk of the contract suite (CapacityBond replacing StakingRegistry; new SafetyReserve, BuybackBurner, ContentBlacklist, FeeRouter distributor; DecdnGovernor rewired to ADR 036 served-bytes voting). The test plan deferred slither / aderyn static analysis to a follow-up.
Scope
Run the workflow's two analyzers locally and in CI against the new contracts:
(cd contracts && slither . --config-file slither.config.json) — fail-on: medium
Triage findings: fix or suppress with an in-line directive (slither disable-next-line / aderyn ignore-next-line) per the placement rules in CLAUDE.md § Solidity CI gotchas.
Confirm the GitHub Actions workflow's static-analysis jobs (the ones gated on the thresholds noted above) pass against main.
This is a well-scoped CI/security hygiene task: run slither and aderyn against the new contract suite introduced in PR #684 (CapacityBond, SafetyReserve, BuybackBurner, ContentBlacklist, FeeRouter, DecdnGovernor), triage any findings, and confirm the static-analysis CI jobs pass. The task was explicitly deferred from PR #684's test plan and is a prerequisite for CI green on main.
📊 Assessment
Dimension
Value
Reasoning
Type
Task
Defined workflow task with clear completion criteria; not a bug report or feature request
Labels
unchanged (security, technical, testing)
Existing labels are accurate — static analysis is security-adjacent and the work is technical + test infrastructure
Coding agent
Suitable
Clear commands, explicit success criteria (CI jobs pass), well-documented suppression patterns in CLAUDE.md § Solidity CI gotchas; no design decisions required
Run (cd contracts && aderyn -o /tmp/aderyn.md --no-snippets --skip-update-check) locally; review /tmp/aderyn.md for high-severity findings.
Run (cd contracts && slither . --config-file slither.config.json) locally; review for medium+severity findings.
For each finding: either fix the root cause or suppress with a correctly-placed inline directive:
Slither: // slither-disable-next-line <detector> must be the immediate predecessor of the flagged line (no intervening comments).
Aderyn: // aderyn-ignore-next-line(<detector>) likewise must be the immediate predecessor.
Watch for the W5740 (unreachable code) trap in nonReentrant functions that always revert — drop nonReentrant on those stubs or restructure to avoid inlining.
Confirm FOUNDRY_PROFILE=ci forge build --sizes --deny warnings still passes after any suppressions (forge-lint warnings are fatal under CI profile).
Push and verify both the slither and aderyn GitHub Actions jobs pass on main.
Common slither detectors likely to fire on this contract surface:
reentrancy-eth / reentrancy-no-eth — new contracts with external calls
unused-return on tuple destructuring — suppress at function level if safe by construction
divide-before-multiply in FeeRouter distribution math — check for precision loss
Aderyn high-severity detectors to watch:
centralization-risk — admin/owner patterns in CapacityBond, SafetyReserve
Activity
github-actions commentedon May 28, 2026
🎯 Triage report
This is a well-scoped CI/security hygiene task: run slither and aderyn against the new contract suite introduced in PR #684 (
CapacityBond,SafetyReserve,BuybackBurner,ContentBlacklist,FeeRouter,DecdnGovernor), triage any findings, and confirm the static-analysis CI jobs pass. The task was explicitly deferred from PR #684's test plan and is a prerequisite for CI green onmain.📊 Assessment
security,technical,testing)🔗 Similar issues
updateRegione2e tests rather than static analysis💡 Notes and suggestions
Execution checklist:
(cd contracts && aderyn -o /tmp/aderyn.md --no-snippets --skip-update-check)locally; review/tmp/aderyn.mdfor high-severity findings.(cd contracts && slither . --config-file slither.config.json)locally; review for medium+severity findings.// slither-disable-next-line <detector>must be the immediate predecessor of the flagged line (no intervening comments).// aderyn-ignore-next-line(<detector>)likewise must be the immediate predecessor.nonReentrantfunctions that always revert — dropnonReentranton those stubs or restructure to avoid inlining.FOUNDRY_PROFILE=ci forge build --sizes --deny warningsstill passes after any suppressions (forge-lint warnings are fatal under CI profile).main.Common slither detectors likely to fire on this contract surface:
reentrancy-eth/reentrancy-no-eth— new contracts with external callsunused-returnon tuple destructuring — suppress at function level if safe by constructiondivide-before-multiplyinFeeRouterdistribution math — check for precision lossAderyn high-severity detectors to watch:
centralization-risk— admin/owner patterns inCapacityBond,SafetyReserveunchecked-return— any low-level callsAdd this agentic workflows to your repo
To install this agentic workflow, run
chore(contracts): triage slither + aderyn findings (closes #690) (#692)