Skip to content

feat(feeds): Trust402 listing for forex/composite daily fetcher snapshots - #705

Merged
aggre merged 2 commits into
mainfrom
cursor/forex-composite-trust402-listing-27a7
Jul 26, 2026
Merged

feat(feeds): Trust402 listing for forex/composite daily fetcher snapshots#705
aggre merged 2 commits into
mainfrom
cursor/forex-composite-trust402-listing-27a7

Conversation

@aggre

@aggre aggre commented Jul 26, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds an idempotent feeds script that fetches …/forex/composite/latest via @lemmaoracle/fetcher fetchAndCommit, archives the envelope by request.date, and publishes a Trust402 dataset listing.
  • Listing content = fetcher envelope; commitment = fetcher Merkle root (data-commitment-v1.1), so pre-purchase proofs of $["request"]["url"] / $["request"]["date"] work.
  • Default fetch is in-process (Node). Workers /fetch is opt-in (USE_FETCHER_WORKERS=1) — the suite payload (~100 leaves) currently exceeds Worker limits.
  • Trust402 publish() now submits prover proof.inputs (with commitment fallback) and exports list.

Usage

cd packages/feeds
# after forex-proof-pipeline.ts
DRY_RUN=1 pnpm list:forex-composite-trust402
LEMMA_API_KEY=… pnpm list:forex-composite-trust402
# optional: DATE=YYYY-MM-DD (past dates require an existing archive)

Test plan

  • pnpm --filter @lemmaoracle/feeds test / type-check / lint
  • pnpm --filter @trust402/sdk test / type-check / lint
  • DRY_RUN=1 pnpm list:forex-composite-trust402 (live suite fetch + archive)
  • Live sandbox publish with LEMMA_API_KEY (operator)
Open in Web Open in Cursor 

Add an idempotent post-pipeline script that fetches suite latest via
fetcher Workers, archives the envelope by request.date, and publishes a
Trust402 dataset listing whose commitment is the fetcher Merkle root.

Co-authored-by: aggre <hiroyuki.aggre@gmail.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 26, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
fetcher bf05b79 Commit Preview URL

Branch Preview URL
Jul 26 2026, 02:43 PM

Fetcher Workers fails on the ~100-leaf composite suite payload; default
to in-process fetchAndCommit (Node), keep Workers behind USE_FETCHER_WORKERS.

Co-authored-by: aggre <hiroyuki.aggre@gmail.com>
@aggre
aggre marked this pull request as ready for review July 26, 2026 15:01
@cursor

cursor Bot commented Jul 26, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@aggre

aggre commented Jul 26, 2026

Copy link
Copy Markdown
Member Author

Reviewed and approved. Clean implementation: openspec docs, well-tested idempotency logic, proper Trust402 SDK fix for proof.inputs. CI all green. Merging.

@aggre
aggre merged commit 069c11d into main Jul 26, 2026
3 checks passed
@aggre
aggre deleted the cursor/forex-composite-trust402-listing-27a7 branch July 26, 2026 20:02
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.

2 participants