commit 770a692202248eb87736714b95853b6c8425d1ce
parent 396fa9accb82ca5404c051ffe15a06c116d1e317
Author: Michael Camilleri <[email protected]>
Date: Tue, 20 Oct 2026 15:31:59 +0900
Update design document
Diffstat
| M | Notes/Design.md | | | 39 | +++++++++++++++++++++++++-------------- |
1 file changed, 25 insertions(+), 14 deletions(-)
diff --git a/Notes/Design.md b/Notes/Design.md
@@ -11,6 +11,11 @@ random times during the day, each prompting a short survey about the user's
current state. Each report also captures context automatically (location,
weather, motion, device state). The accumulated data is the product.
+The aim is a great life-logging app in its own right. Carrying on the
+Reporter archive comes second: the importer exists and stays, but further
+work on Reporter data, such as backfilling it, waits until the app itself is
+settled.
+
This note describes the design: the data model, how each subsystem works, and
how the Reporter archive maps in.
@@ -27,7 +32,7 @@ how the Reporter archive maps in.
in later) and **Snooze**. Tapping the notification opens the full survey.
- Automatic context: location and placemark, weather, Health data (sleep,
activity rings, steps, heart rate and so on), and device state (ambient noise,
- battery, connectivity, photos taken).
+ battery, connectivity). Photos taken aren't recorded.
- CloudKit sync between iPhone and Watch.
- Lossless import of the full Reporter archive.
- On-demand JSON export with a documented, versioned format.
@@ -40,6 +45,9 @@ how the Reporter archive maps in.
- The Apple Watch app. Mirrored notifications already bring prompts and
**Instant Report** to the wrist, which covers most of what it was for. See
[Passive Reports and the Watch](#passive-reports-and-the-watch).
+- Backfilling the Reporter archive: the weather gap from April 2023, Health
+ from 2014, and location answers skipped since Reporter lost venue lookup.
+ See [Backfills](#open-questions).
- In-app visualisations. Export comes first and charts come later. The data
model should not get in the way of Swift Charts later on.
- iPad and Mac apps.
@@ -376,7 +384,8 @@ more than one provider exists over time.
relative altitude.
- `device`: battery level and state, connectivity (`wifi`, `cellular`, `none`).
- `photos`: count and lightweight metadata of photos taken since the previous
- report.
+ report. Only reports imported from Reporter have it; Reportage doesn't record
+ photos itself.
Health context isn't part of `Context`. It's a local cache kept beside the
report and never synced (see [Health](#health)).
@@ -387,8 +396,8 @@ Context fields fall into two groups, and this shapes the whole capture design:
history, ambient noise from the microphone, battery, connectivity. These are
captured immediately or not at all.
- **Derivable**: fields that can be computed afterwards for any timestamp:
- Health samples, historical weather, photos taken in a time window. These are
- filled in lazily when possible, and can be backfilled.
+ Health samples and historical weather. These are filled in lazily when
+ possible, and can be backfilled.
## Entries
@@ -663,9 +672,9 @@ enabled. The report detail view shows the Apple Weather mark and a link to its
data sources beneath the Weather section of reports with WeatherKit weather.
WeatherKit's historical hourly data goes back to August 2021, so the gap in
-the Reporter archive from April 2023 can be backfilled (about 5,000 requests,
-well within the free quota). Backfilled values are tagged `source: weatherKit` and
-`backfilled: true`.
+the Reporter archive from April 2023 could be backfilled (about 5,000
+requests, well within the free quota), with values tagged `source: weatherKit`
+and `backfilled: true`. This is deferred with the rest of the Reporter work.
### Health
@@ -752,11 +761,11 @@ check verified on a device. Health noise isn't among the first Health values
either, so ambient noise isn't recorded yet, and both are reconsidered when
Health grows.
-### Device and photos
+### Device
-Battery from `UIDevice`, connectivity from `NWPathMonitor`. Photos come from
-PhotoKit: assets created between the previous report's date and this one's.
-This is derivable, and limited-library access is enough to get a count.
+Battery from `UIDevice`, connectivity from `NWPathMonitor`. Photos taken
+between reports aren't recorded: the user doesn't want them logged. The
+`photos` field stays for metadata imported from Reporter.
## Sync
@@ -912,8 +921,9 @@ the app as a fresh install has it. Prompt settings are kept.
4. **Quick logging.** `LogPassiveReportIntent` and the iOS surfaces it drives:
the Control Center control, Lock Screen widget, Action button, Siri and
Shortcuts. The Watch app is deferred.
-5. **Derived context.** Health, photos, and backfilling them and historical
- weather. Live weather is part of capture (see [Weather](#weather)).
+5. **Derived context.** Health. Live weather is part of capture (see
+ [Weather](#weather)). Backfills are deferred (see
+ [Open Questions](#open-questions)).
6. **Visualisations.**
7. **Synced schema.** Settle the [open questions](#open-questions) that change
synced data before the record formats are fixed: missed prompts, keeping
@@ -936,7 +946,8 @@ the app as a fresh install has it. Prompt settings are kept.
- **Backfills.** Weather from August 2021 onwards and Health from 2014 onwards.
Both are optional and can be done at any time. Location answers skipped
since Reporter lost venue lookup (2026-09-01) could be filled in from each
- report's location context.
+ report's location context. Deferred: the app comes first, and Reporter data
+ is worked on later.
- **Pre-filling places.** If the report's location is inside a saved place's
area, should that place be pre-selected? It would save many taps, but a
confirmed default may be weaker data than a deliberate choice.