Skip to content

[DIRECT] Add ready-to-earn inventory filter regression test (#683) - #735

Open
elevasyncsolutions-jpg wants to merge 1 commit into
NSPG13:mainfrom
elevasyncsolutions-jpg:add-rte-inventory-filter-test
Open

[DIRECT] Add ready-to-earn inventory filter regression test (#683)#735
elevasyncsolutions-jpg wants to merge 1 commit into
NSPG13:mainfrom
elevasyncsolutions-jpg:add-rte-inventory-filter-test

Conversation

@elevasyncsolutions-jpg

Copy link
Copy Markdown

Summary

Deterministic regression test proving the public ready-to-earn inventory excludes canonical bounties with:

  • verification_ready=false
  • Recovery-reserved state
  • Invalid terms
  • Terminal status (settled, paid, expired, cancelled)

Changes

  • scripts/test_ready_to_earn_inventory.py — 16 deterministic tests (no network, no secrets, no wallet)
  • scripts/fixtures/rte_inventory_healthy.json — Committed fixture with 1 healthy + 4 excluded bounties

Acceptance criteria

  • Covers one healthy funded/claimable/verification-ready bounty and 4 excluded states
  • Excluded bounties never appear in ready-to-earn projection
  • Source contract and exclusion reason remain visible in broader lifecycle feed
  • Exits 0, offline, replayable, no live write

Closes #683

Add deterministic Python test verifying the ready-to-earn inventory
projection excludes canonical bounties with:
- verification_ready=false
- recovery-reserved state
- invalid terms
- terminal status (settled, paid, expired, cancelled)

Uses committed fixture only — no network, no secrets, no wallet.
@NSPG13

NSPG13 commented Aug 4, 2026

Copy link
Copy Markdown
Owner

The PR is in the manual-security-review lane because it changes earning-inventory behavior. What passed: it targets the ready-to-earn filter request. What blocks main: inventory must suppress unfunded, unverifiable, stale, or non-canonical records without hiding valid work. Action: run cargo run -p cli -- docs-contract-check and focused inventory tests, then add positive and negative fixtures for funding, verification readiness, cursor freshness, and canonical settlement evidence. Done when the feed result is deterministic and the evidence source is named. Thanks for helping the community grow, and sorry for the review friction. This is not merge, bounty, or payment approval.

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.

[DIRECT] Add a ready-to-earn inventory filter regression test

2 participants