Skip to content

feat(simulation): introduce unit-consistent objective semantics#23

Merged
div0rce merged 2 commits into
mainfrom
pr10-unit-consistent-objective
Apr 28, 2026
Merged

feat(simulation): introduce unit-consistent objective semantics#23
div0rce merged 2 commits into
mainfrom
pr10-unit-consistent-objective

Conversation

@div0rce

@div0rce div0rce commented Apr 28, 2026

Copy link
Copy Markdown
Owner

Summary

  • Introduces objectiveUtilityCents and utility_usd_cents as the explicit live ranking unit while keeping legacy score as a compatibility alias.
  • Converts cashback and issuer points through documented objective utilities, adds interpreted score components, and labels liquidity pressure as bounded heuristic contribution.
  • Adds objective semantics docs, a narrow guardrail for mixed-unit objective math, regression tests, and engine behavior v6 replay coverage.

This PR does not make Cherry globally optimal. It makes live candidate ranking unit-consistent, interpretable, and guardrailed against mixed-unit scoring.

Testing

  • CHERRY_TMP_ROOT="$HOME/.cherry-tmp" npm run lint
  • CHERRY_TMP_ROOT="$HOME/.cherry-tmp" npm run check
  • npm run typecheck
  • npm run typecheck:scripts
  • CHERRY_TMP_ROOT="$HOME/.cherry-tmp" npm test
  • CHERRY_VINE_SIGNATURE_MODE=enforce npm run build
  • CHERRY_TMP_ROOT="$HOME/.cherry-tmp" CHERRY_VINE_SIGNATURE_MODE=enforce npm run verify:repo-closure

Risk

  • Changed domains: engine objective scoring, solver payload shape, objective docs, guardrail registry, replay behavior version.
  • Compatibility: existing score remains present as an alias for objectiveUtilityCents; legacy components remain present alongside scoreComponents.
  • Possible regressions: consumers that assume only the old decision fields may see additional serialized fields; ranking can change where issuer points now have explicit objective value.

@vercel

vercel Bot commented Apr 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cherry Ready Ready Preview, Comment Apr 28, 2026 10:02pm

@div0rce div0rce merged commit ec2038c into main Apr 28, 2026
4 checks passed
@div0rce div0rce deleted the pr10-unit-consistent-objective branch April 28, 2026 23:20
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.

1 participant