feat(web): /calc expression evaluator -- pipeline-ab card 2 Arm B (STREAMLINED)#12
feat(web): /calc expression evaluator -- pipeline-ab card 2 Arm B (STREAMLINED)#12eksno wants to merge 2 commits into
Conversation
|
🚅 Deployed to the testing-pr-12 environment in testing
|
…ed core, Opus-gated) Hand-rolled precedence-climbing parser for + - * / ^ with right-assoc ^, unary minus binding looser than ^, parens, decimals, scientific notation. Pure core (tokenize/parse/evaluate/formatNumber/calculate) with a CalcError boundary; graceful inline errors (no crashes), div-by-zero gated before Infinity, 12-sig-digit float formatting (0.1+0.2 -> 0.3). Live-result /calc page with a capped (10) most-recent-first history, per-row copy-result button + auto-dismiss toast (timer-leak cleanup on unmount), theme-aware, nav-wired, prerender-safe. Adds vitest+jsdom and a 7-file/89-case test floor. Core code authored by Cursor Composer 2.5 (ADR 0042) against an Opus-written test floor it never saw; reviewed, applied, and gated by the Opus seat. All 89 tests pass; check + build + format green. Station-Trailer-Version: 1 Station-Run-Id: k57f4ntnpwy60x26dyfqnx6tsd88h2va
|
Warning Review limit reached
More reviews will be available in 1 minute and 31 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more credits in the billing tab to continue. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (24)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Final review (advisory -- not a merge gate)/calc Arm B (lean, Composer-authored / Opus-gated) -- review reportONLY review gate. Advisory; never blocks ship. Whole-diff red-team across three VerdictCore is correct and spec-faithful. Every grammar/precedence/associativity rule, Lens 1 -- spec gapsNo correctness gaps.
Lens 2 -- standards
Lens 3 -- quality
Gate evidence
|
/calc Arm B -- triage dispositionFindings: 1. Acted-on: 0. Left: 1. Advisory gate -- never blocks ship. ACTED-ON (applied in worktree)(none -- the single finding is out of allowed scope to fix) LEFT (judgement calls / out-of-scope)
No-finding lenses
Fix commitsnone (no fix applied; nothing committed; nothing pushed). |
EXPERIMENT PR (card 2: harder, separating) -- DO NOT MERGE. pipeline-ab Arm B (STREAMLINED).
Streamlined lean layout: Composer 2.5 hands + review-reconcile only.
Correctness-deep card (expression parser/evaluator) chosen to separate Composer-hands-vs-Opus-hands. Both arms build from ONE shared plan. Stays OPEN for eyeball evaluation against its live Railway preview.
Need help on this PR? Tag
/codesmithwith what you need. Autofix is disabled.