中文標題
agent:統一 parser 事件契約並修正測試漂移
English Title
agent: normalize parser event contract and fix test drift
Metadata
- Priority:
P0
- Size:
S
- Repo labels:
bug
- Suggested labels:
priority:P0, size:S, area:agent
Summary
The agent parser contract has naming drift between implementation and tests.
Problem
parseOperationCompletedMessage returns type: 'operationsCompleted', while the test expects type: 'operationCompleted'.
This kind of mismatch is small but risky because the agent loop depends on exact event names.
Proposed Change
Define a single canonical event naming scheme for parser output and update implementation, tests, and downstream consumers to match it.
Consider centralizing event type literals to avoid future drift.
Acceptance Criteria
- Parser implementation and tests agree on one event name.
- All parser tests pass.
- Event type literals are defined in one place or otherwise made harder to drift.
References
中文標題
agent:統一 parser 事件契約並修正測試漂移English Title
agent: normalize parser event contract and fix test driftMetadata
P0Sbugpriority:P0,size:S,area:agentSummary
The agent parser contract has naming drift between implementation and tests.
Problem
parseOperationCompletedMessagereturnstype: 'operationsCompleted', while the test expectstype: 'operationCompleted'.This kind of mismatch is small but risky because the agent loop depends on exact event names.
Proposed Change
Define a single canonical event naming scheme for parser output and update implementation, tests, and downstream consumers to match it.
Consider centralizing event type literals to avoid future drift.
Acceptance Criteria
References