Skip to content

feat: accept € amounts, nudge bare integers instead of silence - #4

Merged
Schroedingberg merged 1 commit into
mainfrom
currency-trigger
Jul 12, 2026
Merged

feat: accept € amounts, nudge bare integers instead of silence#4
Schroedingberg merged 1 commit into
mainfrom
currency-trigger

Conversation

@Schroedingberg

Copy link
Copy Markdown
Owner

Fixes the three usage bugs:

  1. Currency symbols work: 50€ Pizza, 50 € Pizza, €50 Pizza, € 50,50 X, and decimals+currency (50.00€ Rewe, €12,30 Drogerie) all record. € on either side makes the intent unambiguous, so bare integers with € are accepted.
  2. Bare integers (50 Pizza) nudge instead of silence — decided tradeoff: 2 Minuten bin ich da has the same shape and now draws one nudge too (it still never records, preserving the CLAUDE.md invariant).
  3. The nudge explains the format: "⚠ not recorded — start with the amount, with decimals or €: …" replacing the misleading 'expenses start with the amount' (which was exactly what 50.00€ Rewe did).

Full trigger/nudge/silent matrix covered in parse-msg-accepts-currency-symbol + updated loud-failure tests; € never leaks into descriptions. CONTRACT.md updated. 53 tests / 191 assertions green under bb and JVM.

🤖 Generated with Claude Code

- 50€ Pizza / €50 / € 50,50 / 50.00€ / €12,30 all record — a currency
  symbol on either side makes the intent unambiguous, so integers are ok
- bare integers (50 Pizza) nudge instead of staying silent; accepted
  tradeoff: '2 Minuten bin ich da' now draws the nudge too (it still
  never records)
- unified nudge text teaches the format instead of the misleading
  'expenses start with the amount'

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Schroedingberg
Schroedingberg enabled auto-merge (squash) July 12, 2026 10:54
@Schroedingberg
Schroedingberg merged commit 7c823da into main Jul 12, 2026
5 checks passed
@Schroedingberg
Schroedingberg deleted the currency-trigger branch July 12, 2026 10:55
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