Skip to content

Surface handoff parse failures instead of silent empties #82

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

Labels

area:dataData, schema, storage, privacy, or migration surface.autonomy:review-gatedClass 2; autonomous work allowed, review/gate required.kind:bugBug fix.lane:hermesHermes macOS/native lane.review:architectureNeeds architecture review.risk:domainDomain correctness risk requiring subject-matter review.state:needs-reviewPR needs review.status:agent-buildingAgent implementation is in progress.

Type

No type

Fields

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