Skip to content

Instantly share code, notes, and snippets.

View mcomisso's full-sized avatar

Matteo Comisso mcomisso

View GitHub Profile
@mcomisso
mcomisso / issue-94-resolution.md
Created August 5, 2026 01:00
Seasons Backend issue 94 resolution evidence

Issue #94 resolution evidence

Implemented and deployed the authoritative, membership-selected Visible Plan projection for map #93.

Delivered contract

  • GET /v2/visible-plan selects Family whenever Family Membership exists, otherwise Personal. Readiness never changes scope.
  • POST /v2/visible-plan/family-actions provides review-first, idempotent Family action confirmation with current-snapshot and responsible-member enforcement.
  • The OpenAPI V2 artifact is version 2.9.0 and publishes normalized scope, readiness, immutable snapshot identity, rolling 90-day viewport, subscription states, responsible Family members, included titles, provider-confirmed releases, pricing completeness, and reviewable actions.
  • Projections are materialized atomically in the Personal or Family plan publication transaction and stored by source plan plus projection-schema version. Stale reads retain the settled snapshot while disabling actions.
@mcomisso
mcomisso / issue-86-production-database-topology-2026-08-02.md
Created August 2, 2026 21:57
Seasons production database connection and region topology research

Issue 86 research: production database connection and region topology

Research date: 2026-08-02
Ticket: Seasons-Backend #86
Scope: Planning evidence only. No application, deployment, database, or GitHub state was changed.

Executive finding

The lowest-risk production topology is:

@mcomisso
mcomisso / canonical-artist-logo-resolution.md
Created August 2, 2026 21:57
Wayfinder resolution: Define canonical artist resolution and live logo propagation

Define canonical artist resolution and live logo propagation

Approved resolution for Define canonical artist resolution and live logo propagation.

Runtime ownership

  • One app-scoped, @MainActor, @Observable ArtistLogoResolver is the sole runtime owner of effective artist-logo state.
  • The same resolver instance is injected into the main app hierarchy and secondary iPad detail windows.
  • Artist, Record Details, Discovery, Insights, Today, and Scrobbler observe the resolver instead of retaining independent logo snapshots.
  • Keep the existing MV and dependency-injection style. Do not introduce TCA, a notification bus, or per-screen logo stores.
@mcomisso
mcomisso / cloudkit-logo-selection-resolution.md
Created July 31, 2026 23:59
Wayfinder resolution: Define CloudKit logo-selection ownership and conflict rules

Define CloudKit logo-selection ownership and conflict rules

Approved resolution for Define CloudKit logo-selection ownership and conflict rules.

Ownership

  • The selection belongs to the user's iCloud private database.
  • It is keyed logically only by canonical Discogs artist ID.
  • Discogs account switches, logout, and account removal do not alter or delete selections.
  • Changing iCloud accounts reveals the selection set belonging to the newly active iCloud account.
@mcomisso
mcomisso / .issue73-verification.md
Created July 29, 2026 14:31
Seasons issue 73 verification record

Issue 73 verification record

Ticket: Complete Android Family Planning Inputs

Delivered scope

  • Android commit 32c73ca adds focused Family Planning Policy, Family Priorities, and Shared Subscriptions destinations, plus contextual movie and opened Season Details priority editors.
  • Backend commit a74be31 publishes familyResources/changed alongside Family Plan invalidation for real policy, priority, and shared-subscription changes.
  • The Android contract is pinned to backend commit 09f2ae3, OpenAPI 2.6.0, SHA-256 312eed115b6b79cc2b28a70255eb4074a092f89f7c268606d322671a4445b568. No unrelated later Timeline or Calendar contract changes are included.
@mcomisso
mcomisso / issue-72-verification.md
Created July 28, 2026 19:04
Seasons issue 72 Android Family verification

Complete Android Family Overview and Invitations

Resolution

Android now has one account-scoped authenticated Family context with focused overview and invitation repositories. The native surface owns revision-aware rename, ownership transfer, safe leave, member removal, Family deletion, invitation issue, replacement, revoke, preview, accept, decline, explicit confirmations, scoped conflict recovery, secret-free persisted projections, and Update Coordinator refresh.

@mcomisso
mcomisso / seasons-71-verification.md
Last active July 29, 2026 13:15
Seasons Android V2 Title Catalog verification for issue 71

Android V2 Title Catalog verification

Verified 2026-07-29 against Android branch feature/server_sync at 79587fa on Pixel 9 Pro API 37 (emulator-5554). No app, emulator, or production data was wiped.

Final implementation

  • afdda08 preserves a persisted V2 session as locally authenticated when profile restoration fails for a transient network reason.
  • 38f1bc0 makes profile identity reconciliation conditional on the expected session still being current and represents the offline account explicitly in Preferences.
  • 570e820 prevents an authenticator-cleared or revoked session from being revived by a late restore failure.
  • db91255 synchronizes the selected Android region through the generated GET and PUT /v2/catalog/regions operations before marking the local settings edit complete.
@mcomisso
mcomisso / seasons-issue-60-verification.md
Last active July 28, 2026 18:30
Seasons issue 60 canonical Progress and Rating convergence verification
@mcomisso
mcomisso / seasons-issue-70-verification.md
Created July 28, 2026 17:47
Seasons issue 70 verification record
@mcomisso
mcomisso / ESP+mqtt.ino
Created February 11, 2019 00:46
ESP+OneWire temperature
#include <ESP8266WiFi.h>
#include <OneWire.h>
#include <PubSubClient.h>
#include <DallasTemperature.h>
const char* ssid = "SSID";
const char* password = "PASSWORD";
const char* mqtt_server = "X.X.X.X";
#define ONE_WIRE_BUS 2