Skip to content

fix: address audit findings from PR #74 - #94

Open
lmilbaum wants to merge 1 commit into
polarsquad:mainfrom
lmilbaum:fix/pr-74-audit-fixes
Open

lmilbaum wants to merge 1 commit into
polarsquad:mainfrom
lmilbaum:fix/pr-74-audit-fixes

Conversation

@lmilbaum

@lmilbaum lmilbaum commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Supplies a real fetch closure on the verifiable probe in TestSweepRunOwnership, pairing verifiable: true with a GetNetworkDetails wrapper on the fake API as required by the invariant introduced in test: mark the ownership probe verifiable and document the default #74.
  • Adds an allProbesGone assertion to exercise the new fetch and fail if the verifiable invariant is removed.
  • Corrects docs/development.md to credit allProbesGone (not waitForGone) as the function that gates polling on the verifiable field.

Fixes issues identified in the #74 audit.

Reviewer summary

Both audit findings are fully resolved with no new issues introduced:

  • MEDIUM (e2e_ownership_test.go): probe now has a real fetch; allProbesGone assertion guards the invariant.
  • LOW (docs/development.md): attribution corrected from waitForGone to allProbesGone.

🤖 Generated with Claude Code

- Supply a real fetch closure on the verifiable probe in TestSweepRunOwnership,
  pairing verifiable: true with a GetNetworkDetails wrapper on the fake API
- Add an allProbesGone assertion to exercise the new fetch and fail if
  the verifiable invariant is removed
- Correct docs/development.md to credit allProbesGone (not waitForGone)
  as the function that gates polling on the verifiable field

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@lmilbaum
lmilbaum marked this pull request as ready for review October 3, 2026 08:35

This branch has not been deployed

No deployments
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