Repository navigation
feat(analytics): flag-gated slices for spikes 616/617/618/619 (#479 #480 #481 #482) - #594
Merged
Darkvader-ship-it merged 1 commit intoOct 20, 2026
Conversation
…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.
|
@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! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.