Skip to content

apple plist parse reasons are documented but never reach the wire #4992

Open

Description

@thymikee

Purpose

APPLE_PLIST_PARSE_REASONS is published as a ReasonTable, so website/docs/docs/error-reasons.md lists apple_plist_malformed and apple_plist_unsupported_type under error.details.reason. ApplePlistParseError is a plain Error carrying a reason field. normalizeError wraps it as UNKNOWN with no details, so on the routes that reach it — plugin-host parsePlist and the Limrun log reader — neither reason reaches the wire. The docs promise a reason a caller cannot observe.

Required behavior

Pick one and make the docs match it:

  • Throw AppError(code, message, { reason }) where the parse crosses a caller boundary, so the reason survives normalizeError, or
  • Drop the table, the .reason field, and the two error-reasons.md rows, keeping the error type and message only.

Completion conditions

  • error-reasons.md lists a reason only if a caller can observe it on the wire.
  • A test asserts the observable shape on at least the Limrun readInfoPlist route.
  • pnpm check:affected --run passes.

Dependencies

None. Follows #4989, which introduced the reader.

Activity

  1. apex-sentinel-staging commented on Nov 22, 2026

    @apex-sentinel-staging

    Apex Sentinel · Issue review

    Suggested label: bug

    The report identifies a mismatch between documented observable error reasons and actual behavior: normalizeError wraps ApplePlistParseError as UNKNOWN with no details, so listed reasons do not reach the wire. It includes concrete routes, required behavior, and acceptance criteria.

    Required sections

    • Steps to reproduce (missing)
    • Expected and actual behavior (missing)
    • Version or environment (missing)
  2. added
    bug
    on Nov 23, 2026
  3. added 2 commits that reference this issue on Nov 24, 2026
    5e030e1
    d61adc9
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions