Skip to content

Surface handoff parse failures instead of silent empties #82

@pheidon

Description

@pheidon

Problem / intent

icloud-cli handoff list currently treats malformed cache files as if the directory were simply empty. That hides schema drift and makes debugging much harder because a broken handoff cache and a genuinely empty cache look the same from the operator's point of view.

Acceptance criteria

  • Distinguish between "no activities present" and "cache present but unreadable/unparseable".
  • Keep the command read-only and local only.
  • Return a clear error when files exist but none decode into valid activities.
  • Add fixtures for malformed json and plist inputs that prove the command reports a parse failure instead of a silent empty list.

Validation commands

bash scripts/ci/run-fast-checks.sh
swift test

Notes

  • It is fine to ignore individual bad files if at least one valid activity can still be recovered.
  • The failing case should trigger when the directory has content but the parser cannot extract anything valid at all.

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:dataData, schema, storage, privacy, or migration surface.kind:bugBug fix.risk:domainDomain correctness risk requiring subject-matter review.state:ready-for-agent

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions