ES /docs

Invalid Formula: Dentaku::AST::Multiplication has too many operands (given 3, expected 2)

Service
cupixworks-api
Occurrences
1
Status
Approved
Confidence
85%
Actionability
60%
Cluster ID
960b0fc9-ced0-474f-ac6e-2048444878d4
First Seen
2026-07-28 09:20 UTC
Last Seen
2026-07-28 09:20 UTC
Actions
현재 상태 approved 에서는 실행할 액션이 없습니다.

Invalid Formula: Dentaku::AST::Multiplication has too many operands (given 3, expected 2)

What Happened#

2026-07-28 18:20:15 KST 에 cupixworks-apiPUT /api/v1/phase_metrics/249 요청 1건이 Cupix::Errors::Parameter (ARG10001) 로 400 응답을 반환했다. 원인은 사용자가 저장한 phase metric formula 를 Dentaku 로 파싱하는 과정에서 Dentaku::AST::Multiplication has too many operands (given 3, expected 2) 예외가 발생했기 때문이며, 이는 formula 문자열에 곱셈 노드 하나에 대해 피연산자가 3개인 잘못된 표현식(예: 연속된 dimension token 사이에 연산자 누락)이 포함되었기 때문이다. 같은 endpoint 는 동일 리소스(id=249)에 대해 12초 전(18:20:03)과 12초 후(18:20:27) 요청 모두 200 으로 성공했다.

Quick Facts#

Field Value
exception.class Cupix::Errors::Parameter
exception.message Invalid Formula: Dentaku::AST::Multiplication has too many operands (given 3, expected 2)
top_frame lib/cupix/util/formula_parser.rb:22 (Dentaku::Calculator#evaluate!)
logged_by Cupix::Util::FormulaParser.calculate! (lib/cupix/util/formula_parser.rb:24)
endpoint PUT /api/v1/phase_metrics/249
env production, us-west-2
tenant cupix
error_code ARG10001

Affected Teams#

Team / Domain Error Count Impact
phase metrics (formula authoring) 1 단일 요청 400 반환; 동일 유저의 이후 요청은 성공 — 사용자 영향 없음

Timeline#

  1. 2026-07-28 18:17:46 KSTPUT /api/v1/phase_metrics/249 성공 (200)
  2. 2026-07-28 18:20:03 KSTPUT /api/v1/phase_metrics/249 성공 (200)
  3. 2026-07-28 18:20:15 KSTPUT /api/v1/phase_metrics/249 실패 (400, Invalid Formula: Dentaku::AST::Multiplication has too many operands). Cupix::Util::FormulaParser.calculate!Cupix::Logger.error 로 기록
  4. 2026-07-28 18:20:27 KSTPUT /api/v1/phase_metrics/249 성공 (200) — 사용자가 formula 를 수정해 재제출한 것으로 보임

Scoring#

Confidence 85% · Actionability 60%

Confidence#

Dimension Score Detail
Evidence completeness 5/5 15 code refs, 5 log queries
Code path explicitness 3/3 15 file:line refs
Log evidence 3/3 section, query, pattern
RCA structure 3/3 3/3 sections
Revision history 0/3 0 revision(s)
Agent execution 3/3 success

Actionability#

Dimension Score Detail
Fix complexity 5/5 trivial
Affected files 1/5 14 file(s)
Single repo 1/3 2 service(s)
Immediate actions 0/3 absent
Testability 2/3 test mentioned
External dependency 3/3 no external deps
Data migration 3/3 no migration