Skip to content

feat: add error taxonomy and UI state contract (issue #12)#38

Merged
thundermiracle merged 4 commits intomainfrom
codex/issue-12-error-ui-contract
Feb 26, 2026
Merged

feat: add error taxonomy and UI state contract (issue #12)#38
thundermiracle merged 4 commits intomainfrom
codex/issue-12-error-ui-contract

Conversation

@thundermiracle
Copy link
Copy Markdown
Owner

Summary

  • add error/UI contract schema: schemas/error-ui-contract.schema.json
  • add canonical contract sample: docs/spec/error-ui-contract.v1.json
  • add human-readable contract doc: docs/spec/error-ui-contract.md
  • add unit tests: tests/error-ui-contract.test.mjs

Scope covered

  • canonical categories: parse/permission/validation/conflict/io/unknown
  • deterministic UI state transitions for detection/read/write flows
  • explicit loading/empty/partial/full/error outcome mapping
  • elimination of non-actionable generic MVP errors through actionable policy

Validation

  • pnpm test (14/14 passed)

Closes #12

@thundermiracle thundermiracle merged commit 11713ed into main Feb 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

P0-REQ: Error taxonomy and UI state contract

1 participant