Skip to content

feat(analytics): flag-gated slices for spikes 616/617/618/619 (#479 #480 #481 #482) - #594

Merged
Darkvader-ship-it merged 1 commit into
PHASE-STELLAR:mainfrom
devonahi:feat/spikes-616-617-618-619
Oct 20, 2026
Merged

Darkvader-ship-it merged 1 commit into
PHASE-STELLAR:mainfrom
devonahi:feat/spikes-616-617-618-619

Conversation

@devonahi

Copy link
Copy Markdown
Contributor

Summary

Delivered per spike:

Verification: 45 new tests all pass. Typecheck, lint, and full-suite failures were each confirmed pre-existing on main via stash-and-retest (duplicate viewerSignatureShort export, faucet-route syntax error, flaky compliance test) — no regressions from this branch.

Docs: 4 spike findings, 4 PROJECT_ARCHITECTURE.md §10 rows, 4 docs/TECHNICAL.md §24–27 sections, .env.local.example block, vercel.json crons.

…STELLAR#479 PHASE-STELLAR#480 PHASE-STELLAR#481 PHASE-STELLAR#482)

phase-178 (PHASE-STELLAR#479): leaderboard integrity — multiplicative scoring
decayed × farmPenalty × sybilDiscount (7d half-life decay, event-burst /
counterparty-concentration / point-velocity rules floored at 0.15, sybil
band discounts with missing band = caution), public GET + admin-keyed
POST /api/leaderboard scoring before persisting.

phase-179 (PHASE-STELLAR#480): retention and GDPR erasure — TTL sweeps for expired
SEP-10 sessions, consumed challenges and 90-day notifications (fail-safe
on missing timestamps); POST /api/user/erasure gated by legal hold (423),
fingerprint-only receipts in gdpr-erasure-log.json, consent ledger
deliberately retained per Art. 17(3)(b).

phase-180 (PHASE-STELLAR#481): analytics warehouse export — flat row model with
unconditional redaction, schema-versioned manifest emitted as NDJSON
header or Parquet key_value_metadata (hyparquet-writer), admin-keyed
GET /api/analytics/export streaming downloads with checksum headers.

phase-181 (PHASE-STELLAR#482): anomaly detection — robust z-score (median+MAD) on
volume and per-run counter deltas, deterministic balance-drop tiers,
detect-before-push baselines, hourly cron routing findings to webhooks
with distinct kind+metric titles.

All behind default-off flags; 45 tests, findings docs, flag rows and
technical sections updated.
@drips-wave

drips-wave Bot commented Oct 20, 2026

Copy link
Copy Markdown

@devonahi 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

@devonahi devonahi changed the title feat(analytics): flag-gated slices for spikes 616/617/618/619 (#479 #… feat(analytics): flag-gated slices for spikes 616/617/618/619 (#479 #480 #481 #482) Oct 20, 2026
@Darkvader-ship-it
Darkvader-ship-it merged commit 54e3d67 into PHASE-STELLAR:main Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment