Skip to content

API response schema breaking changes break released clients #638

Closed

Description

@groksrc

Description

The dev branch has made breaking changes to API response schemas that cause released clients (homebrew v0.18.5) to fail when connecting to a cloud server running the dev version.

Breaking Changes Identified

1. entity_type renamed to note_type

  • Migration j3d4e5f6g7h8_rename_entity_type_to_note_type.py renamed the field
  • EntityResponse in the released client requires entity_type
  • Cloud server now returns note_type
  • Affected tool: write-note — response parsing fails

2. Fields removed from GraphContext response models

  • entity_id, observation_id, relation_id, title, generated_at fields removed/changed
  • Released client's Pydantic models require these fields
  • Affected tools: build-context (7 validation errors), recent-activity (27 validation errors)

Regression Test Results (homebrew 0.18.5 → cloud dev server)

Tool Result Details
write-note FAILS entity_type required, cloud returns note_type
read-note WORKS
search-notes WORKS
recent-activity FAILS 27 validation errors for GraphContext
build-context FAILS 7 validation errors for GraphContext
continue-conversation WORKS

Impact

3 of 6 CLI tools fail when a released client connects to the dev cloud server. This will affect all existing users when the dev branch is deployed to production.

Recommendation

Consider API versioning or backward-compatible response models that include both old and new field names during the transition period.

Activity

  1. added
    bug
    on Feb 28, 2026
  2. claude commented on Feb 28, 2026

    @claude
    Contributor

    Claude encountered an error —— View job


    I'll analyze this and get back to you.

  3. phernandez commented on Mar 1, 2026

    @phernandez
    Member

    Fixed in commit 1659d20c. Restored backward compatibility for v0.18.x clients by:

    1. Adding entity_type computed_field to EntityResponse (mirrors note_type)
    2. Removing exclude=True from 13 fields in GraphContext summary schemas
    3. Adding generated_at field_serializer to MemoryMetadata
    4. Adding v0.18 backward-compat contract tests (5 tests)

    All 111 schema tests pass.

  4. added this to the v0.19.0 milestone on Mar 1, 2026
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

    bug

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions