Skip to content

B2 — Typed errors end-to-end #22

Description

@yashranaway

Backlog item §B · B2 — mirrored from docs/roadmap/improvements-backlog.md.

What the audit found

Replace message.contains("ELEMENT_NOT_FOUND")
string matching (both hosts; Host/AgentBridge.swift:416-418) with an error
enum carrying the protocol code.


Milestone: Phase 2 — One host, written once

Before changing behaviour here, read docs/roadmap/what-is-excellent.md — the contracts listed there must survive the fix — and AGENTS.md for build, test, and review conventions.

Definition of done: the change ships with the test named above (or an equivalent), CI is green, and the corresponding line in the backlog file is checked off in the same PR.

Metadata

Metadata

Assignees

Labels

area:core-protocolHeadlessProtocol: wire protocol, validation, transportbacklogTracked in docs/roadmap/improvements-backlog.mdpriority:highBlocks a roadmap phasetype:refactorRestructuring without behaviour change

Type

No type

Projects

Status
Done

Relationships

None yet

Development

No branches or pull requests

Issue actions