Skip to content

Phase 3-C: quality + confirm XP - #40

Merged
eigger merged 3 commits into
masterfrom
feat/phase3-quality-xp
Aug 5, 2026
Merged

Phase 3-C: quality + confirm XP#40
eigger merged 3 commits into
masterfrom
feat/phase3-quality-xp

Conversation

@eigger

@eigger eigger commented Aug 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • Quality XP (layer 1): weighted useful fields; ASSET never scored on expiry/minQuantity; PATCH awards deltas only
  • Confirm XP (layer 2): audit PENDING→FOUND when location in scope and/or qty matches expected
  • Household total in Setting (HOUSEHOLD_XP_TOTAL); no backfill, shop, levels, or ranks
  • /scan create returns XP without awaiting Setting write; dashboard + toasts show what paid

Test plan

  • Sparse vs rich create — toast XP differs; asset without expiry is not penalized
  • PATCH same field twice — second grant is 0
  • Audit confirm at recorded location + matching qty awards confirm XP; re-confirm does not
  • Continuous scan still snappy
  • lint / test / build / npm audit --omit=dev

Reward useful field completeness at entry and accuracy when an audit confirms location/qty. Household total only — no shop, levels, or leaderboard.

Co-authored-by: Cursor <cursoragent@cursor.com>
eigger and others added 2 commits August 5, 2026 14:17
Stop accumulating quality points (fixes empty-fill farming and restore wipe). Confirm XP uses SQL upsert increment so concurrent grants cannot drop updates.

Co-authored-by: Cursor <cursoragent@cursor.com>
Note that Setting/AuditSession exclusion makes rebuilding confirm XP impossible; quality XP still re-derives from restored items.

Co-authored-by: Cursor <cursoragent@cursor.com>
@eigger
eigger merged commit e770b4b into master Aug 5, 2026
3 checks passed
@eigger
eigger deleted the feat/phase3-quality-xp branch August 5, 2026 05:22
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