Add private activity accounting and harden launcher/trading displays #1537

Merged
PlasticDigits merged 6 commits from fix/issues-1206-1512 into main 2026-10-18 05:59:45 +00:00
Owner

The indexer lacked an anonymous UTC-day activity digest and immutable fee-payer cohorts. Trading displays could synthesize USD from absent marks and lose campaign parameters, while caller-provided token origin could grant launcher invoice privileges.

This change adds bounded read-only daily counts/fee mix and aggregate-only cohort rollups, ratifies launcher origin and created-token membership, removes implicit USD fallbacks, and preserves inert campaign parameters through retries. It documents the third-party adapter/security design without enabling unsupported routes.

  • #1206: UTC bounds, canonical ten-source enum (original seven retained), no actors/transactions, bounded token mix, OpenAPI and privacy/abuse fixtures.
  • #1211: immutable historical registry classification, trusted source binding, unknown on unavailable evidence, atomic source/token/cohort publication and cached read snapshots.
  • #1229: sender-ratified origin, launcher-owned creation gate, invoice/AutoLP rejection, optimized artifacts and owned LocalTerra acceptance.
  • #1330: campaign retention, one-action retry and accessible hop narration; third-party architecture/security plan.
  • #1512: indexed USD plus matching human ratio only, pair binding, honest unavailable values and stable historical charts.

Validation: 72 focused backend checks plus the actual owned-chain ingestion/API case; seven digest checks; three catalog checks; 151 contract/audit tests; five operator-wrapper tests; 57 complete query-parameter tests plus route-summary controls; 64 focused USD tests and relevant #524/#680 regressions; TypeScript, lint, Clippy and normal hooks. Every actual test process is bounded below 60s; compilation is separate. Final optimized WASM passed owned LocalTerra in 4.19s. make verify-issue-1505 is PASS WITH SKIPS (7 pass, 8 explicit skips); native runtime source is unchanged and long live windows remain unverified.

Deployment requires the separate 20261018110000 migration before the indexer starts. The exact SQLx 67→68 migration/backup/restore rehearsal passed in 11.957s with history, startup seed, runtime login and permission-denial controls; the standalone rollout has 19 focused control tests. Production token/launcher migration requires unavailable custody; a secure one-command cl8y-pm card is created. Migrated legacy/adopted tokens deliberately remain outside the launcher creation set and retain direct manager invoicing. Third-party adapters/2.9% settlement and full live acceptance are incomplete. No issue is automatically closed.

Evidence and remaining criteria: coordinated release checklist. Refs #1206 #1211 #1229 #1330 #1505 #1512.

The live QA observers also now distinguish the original accessible 30-minute
signing expiry from the separately required 20-second producer snapshot age at
quote construction. All 76 focused observer checks pass; the original failed
live receipt is retained, and a new short baseline passes without claiming the
four 190-second windows. This includes the QA-only follow-up originally opened
as #1538. Hosted CI also found an ingestion fixture that counted required H−1
cohort reads as forbidden optional hydration; it now verifies the exact pinned
read, immutable unknown on outage, no replay retries and unchanged accounting.
Its corrected targeted case passes in 0.78s. No runtime safety guard changed.

The indexer lacked an anonymous UTC-day activity digest and immutable fee-payer cohorts. Trading displays could synthesize USD from absent marks and lose campaign parameters, while caller-provided token origin could grant launcher invoice privileges. This change adds bounded read-only daily counts/fee mix and aggregate-only cohort rollups, ratifies launcher origin and created-token membership, removes implicit USD fallbacks, and preserves inert campaign parameters through retries. It documents the third-party adapter/security design without enabling unsupported routes. - [x] #1206: UTC bounds, canonical ten-source enum (original seven retained), no actors/transactions, bounded token mix, OpenAPI and privacy/abuse fixtures. - [x] #1211: immutable historical registry classification, trusted source binding, unknown on unavailable evidence, atomic source/token/cohort publication and cached read snapshots. - [x] #1229: sender-ratified origin, launcher-owned creation gate, invoice/AutoLP rejection, optimized artifacts and owned LocalTerra acceptance. - [x] #1330: campaign retention, one-action retry and accessible hop narration; third-party architecture/security plan. - [x] #1512: indexed USD plus matching human ratio only, pair binding, honest unavailable values and stable historical charts. Validation: 72 focused backend checks plus the actual owned-chain ingestion/API case; seven digest checks; three catalog checks; 151 contract/audit tests; five operator-wrapper tests; 57 complete query-parameter tests plus route-summary controls; 64 focused USD tests and relevant #524/#680 regressions; TypeScript, lint, Clippy and normal hooks. Every actual test process is bounded below 60s; compilation is separate. Final optimized WASM passed owned LocalTerra in 4.19s. `make verify-issue-1505` is PASS WITH SKIPS (7 pass, 8 explicit skips); native runtime source is unchanged and long live windows remain unverified. Deployment requires the separate `20261018110000` migration before the indexer starts. The exact SQLx 67→68 migration/backup/restore rehearsal passed in 11.957s with history, startup seed, runtime login and permission-denial controls; the standalone rollout has 19 focused control tests. Production token/launcher migration requires unavailable custody; a secure one-command cl8y-pm card is created. Migrated legacy/adopted tokens deliberately remain outside the launcher creation set and retain direct manager invoicing. Third-party adapters/2.9% settlement and full live acceptance are incomplete. No issue is automatically closed. Evidence and remaining criteria: [coordinated release checklist](docs/qa/issues-1206-1512/README.md). Refs #1206 #1211 #1229 #1330 #1505 #1512. The live QA observers also now distinguish the original accessible 30-minute signing expiry from the separately required 20-second producer snapshot age at quote construction. All 76 focused observer checks pass; the original failed live receipt is retained, and a new short baseline passes without claiming the four 190-second windows. This includes the QA-only follow-up originally opened as #1538. Hosted CI also found an ingestion fixture that counted required H−1 cohort reads as forbidden optional hydration; it now verifies the exact pinned read, immutable unknown on outage, no replay retries and unchanged accounting. Its corrected targeted case passes in 0.78s. No runtime safety guard changed.
fix: harden launcher and repair trading evidence
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline was canceled
b16c0c815c
Add anonymous UTC-day activity aggregates and immutable fee-payer cohorts. Ratify launcher creation before feature invoices and AutoLP binding. Remove synthetic USD fallbacks and preserve campaign parameters through quote retries. Document invariants, focused verification, release artifacts and incomplete live acceptance.
fix: preserve tiny cohort amounts and prepare bounded rollout checks
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
47ebbc2df6
Serialize cohort USD and percentage values as plain decimals. Add independently reviewed read-only schema preflight and bounded public API/browser verification with credential cleanup and failure controls. Retain explicit incomplete production criteria.
fix: initialize cohort history and bind actual native depositors
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
7bc04522a1
Seed aggregate cohort snapshots from the existing published fee clock and recognize the mapper depositor field. Add owned LocalTerra ingestion proof and a reviewed standalone migration with real backup, restore, role and history controls. Align third-party planning with the measured ask-delta fee protocol and stabilize the campaign retry regression.
fix: align quote observers with accessible signing window
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline was canceled
3389d3dc5c
test: distinguish historical cohorts from live registry hydration
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline was canceled
aff96c33b1
test: bind live price checks to deployed browser and API data
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2ed57ffdbb
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
code/cl8y-dex-terraclassic!1537
No description provided.