Skip to content

test(web): pin trade history paging, sizes and mint reads - #6

Merged
tractorss merged 2 commits into
masterfrom
issues/2026-10-30-0130-foresight-followup
Oct 31, 2026
Merged

tractorss merged 2 commits into
masterfrom
issues/2026-10-30-0130-foresight-followup

Conversation

@tractorss

Copy link
Copy Markdown
Contributor

Tests only, from the second review of the trade-history paging repair (11d93f7, merged in #4). Its red team found mutants the suite let through; these tests catch them:

  • Sizes: collateral conversion on a session with 4 outcomes, for prediction and external rows.
  • Paging: a literal page size of 20; a prediction listed before an external transaction in the same block; three pages in a row; two trade wallets in one transaction split across a page boundary.
  • Mints: each option's mint read from its own DOWN and UP when two options mint the same number of sets in one transaction.
  • Labels: +n counts, the sender dash, per-wallet steps.

No app code changes. web 3273 passed / 54 skipped, indexer 93, lint and check-types clean; all 12 round-1 mutants are killed at the head.

🤖 Generated with Claude Code

tractorss and others added 2 commits October 30, 2026 17:30
…r-option mints

Tests for the four red-team mutants still alive at 22c39d2: the 1/N
underlying-to-collateral size on prediction and external rows, the issue's
pages of 20, a prediction listed before an external transaction in the same
block, and each option's mint paired from its own DOWN and UP when two options
mint as many sets. Adds a three-page cursor test and two trade wallets sharing
one transaction across a page boundary.

Issue: 2026-10-30-foresight-market-trade-history
Repair 1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r-wallet steps

Tests for the seven red-team mutants still alive at 7fd59bb: Buy and Sell in
the popup and buy and sell on an external row read from the direction, not the
side; +2 for a prediction of three options and an external transaction of
three swaps; a dash for an external swap with no sender; no hover look on an
external row. Each trade wallet's router mints and swaps stay with that wallet
and that transaction when two wallets share one, or one wallet trades twice on
a page.

Issue: 2026-10-30-foresight-market-trade-history
Repair 2

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@netlify

netlify Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for kleros-foresight ready!

Name Link
🔨 Latest commit bce1978
🔍 Latest deploy log https://app.netlify.com/projects/kleros-foresight/deploys/6ae488985c4e2538abd9fbac
😎 Deploy Preview https://deploy-preview-6--kleros-foresight.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@tractorss
tractorss merged commit df43a29 into master Oct 31, 2026
5 checks passed
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