Skip to content

Backend: emotional-state GET endpoints don't echo stored metadata — blocks Postmark verification and Ballast #116

Description

@Dithilli

Problem

GET /emotional-state and GET /emotional-state/recent do not echo stored metadata — proven live 2026-07-12: five registers stored the same day (post-0.19.0, where the store path attaches both source: "openclaw_agent_end" and Postmark's channelId) all return empty/absent metadata on GET. Since source has been attached to every store for months, its absence on read proves the endpoint drops metadata entirely rather than Postmark failing to write.

Impact

What we could do

Backend ask (Hyperspell API): include stored metadata in emotional-state GET responses. Client-side is already speculatively mapped (see #68's guide: EmotionalStateLatest.metadata?). This is the highest-leverage single backend change for the emotional-register roadmap.

How we'd test it

Store a register with known metadata, GET it back, assert the keys round-trip — the exact probe run 2026-07-12 that produced this finding (metadata-only output, content suppressed).

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