Skip to content

feat: structured per-item details in --json import failures #161

Closed

Description

@ryanlewis

Follow-up to #145 (PR #151) and the JSON error contract from #152 (PR #157). Under --json, an import refusal (repeating target) or a read-back failure renders as the generic {"error":"error","message":"..."} with the per-item detail flattened into the message. A batch failure wants an items array of {path, id, title, blocked} (refusal) or {path, id, title, wanted, got} (read-back) so an agent can act per item. Add an items field with omitempty to the error payload, typed errors for both import failures, the two cases in errorPayload, docs in README and SKILL.md. Backward compatible: existing fields unchanged.

Activity

  1. added
    enhancement
    on Sep 5, 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

    enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions