Repository navigation
Description
Current status (17 October 2026)
Pet-scoped memo list/detail/create/edit actions and contracts are implemented with account membership, owner checks, explicit IDs, raw wall-clock validation and preservation of omitted fields/reminder metadata. validate_memos.py provides dedicated live runs/app comparison. Selected memo lifecycle and app date/reminder observations remain in #42; attachments are not claimed.
Delivered: implementation/contracts and dedicated validation tooling. PR #43 consolidates the fixes, 666 passing tests on HA 2026.10.1/2026.3.0, strict mypy/Ruff and the coverage guide. This implementation ticket closes on merge; outstanding external acceptance is explicitly retained in #42, with #21/#22/#41 covering their separate work. Closing this ticket does not certify unperformed physical/app tests.
Historical audit and earlier development notes
The integration retrieves memo lists/counts as related pet data but has no detailed memo retrieval or explicit creation/editing actions.
APK evidence
view/tabs/cats/memo/memo_detail/memo_detail_controller.dart: getDetail uses /pet/memo_detail/ (0xbf7c00); addOrUpdateMemo chooses /pet/add_memo (0xca7078) or /pet/edit_memo (0xca7084).
Evidence source: NOTTY Smart Pet 1.1.30, SHA-256 3b6dc21037f2802e92233ecd9f685e76b03a79afa2d82dd52a5dfcd689a18e6a, decoded locally with Blutter. These are inspected request-construction paths, not just URL-string matches. Decoded app files and private captures remain outside the public repository.
Integration baseline
api.py at commit 9b1b7c3.
Acceptance criteria
- Establish memo IDs, supported fields, timestamps and any attachment requirements from the app.
- Expose documented pet-scoped actions for supported text/data fields; do not claim attachment support without evidence.
- Preserve pet/device associations and identify add versus edit unambiguously.
- Use invented pet/memo content in contract tests and verify API error handling.
Validation boundary
This is missing integration functionality backed by an app code path. Exact schemas, model support and live behavior still need verification before exposing writes.
No hardware actions or cloud-setting changes were performed while creating this issue.
Implementation update (2026-10-17)
Implemented in PR #39.
Adds notty.pet_memo list/detail/create/update actions for owner pets, with fresh selected-pet membership before global memo-ID lookup. Text fields/title/content and raw YYYY-MM-DD HH:MM dates are validated; remind/expired and omitted fields are preserved on edit. Creation uses memo_id=0 and the add path; edits use the explicit listed ID and edit path. Attachments are excluded. Live memo lists were empty, so detail/create/edit acceptance and date/reminder semantics still need validation.
Validation: 607 synthetic/mocked tests pass on HA 2026.10.1 and the exact minimum HA 2026.3.0; Ruff and strict mypy pass, including scripts. APK addresses and read/write boundaries are documented in docs/apk-pet-maintenance.md and docs/apk-firmware.md. No new cloud write, hardware operation, firmware install or statistics deletion was performed for this batch. Implementation is separate from live acceptance; this issue remains open for the outstanding validation.
Activity