Skip to content

test(store)+docs(api): gas-tank race test, poll backoff boundaries, payment-link flow, audit taxonomy - #380

Merged
Emmyt24 merged 3 commits into
Octo-Protocol-org:dev-branchfrom
DaniellaNwagu:test-and-docs-327-330
Sep 28, 2026
Merged

Emmyt24 merged 3 commits into
Octo-Protocol-org:dev-branchfrom
DaniellaNwagu:test-and-docs-327-330

Conversation

@DaniellaNwagu

@DaniellaNwagu DaniellaNwagu commented Sep 26, 2026 •

Copy link
Copy Markdown

Summary

No production code changed and neither test surfaced a bug.

Testing

cargo test -p octo-store --test store_tests -- concurrent_set_gas_tank wallets_due_for_poll — 6 passed. The wider suite was not run since this adds only tests and docs.

Boundary tests seed ±2s around each tier boundary rather than exactly on it, because the query's now() can't be frozen.

Closes #327
Closes #328
Closes #329
Closes #330

…tiers

set_gas_tank's WHERE guard defends against concurrent double-provisioning but had no test
exercising concurrent calls; adds one (8 racers, exactly one wins, the rest get Conflict).

wallets_due_for_poll's active/idle/dormant backoff lived in one dense SQL CASE with no
boundary coverage; adds tests for the never-polled case, both tier boundaries, and an idle
wallet polled within vs past its interval.

Closes Octo-Protocol-org#327
Closes Octo-Protocol-org#328
…nomy

Adds an end-to-end payer curl sequence (get link, intent, signing-info, submit, status) to
docs/api.md, and a new docs/audit-log.md cataloguing every audit category, all 13
audit::record call sites, and the convention for adding a new one. Linked from README.

Closes Octo-Protocol-org#329
Closes Octo-Protocol-org#330
@drips-wave

drips-wave Bot commented Sep 26, 2026

Copy link
Copy Markdown

@DaniellaNwagu Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Emmyt24
Emmyt24 merged commit 9eaea6a into Octo-Protocol-org:dev-branch Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment