Skip to content

[P0][S] agent:統一 parser 事件契約並修正測試漂移 / agent: normalize parser event contract and fix test drift #27

Description

@VladChang

中文標題

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions