12 Commits
Author SHA1 Message Date
rickandCursor 8e02215f01 openspec: add Purpose sections to all five main specs
OpenSpec 1.16 requires ## Purpose; the specs predate that. Purposes are reconstructed from the 2026-04-13 greenfield proposal and the current requirements. Plain validation now passes 5/5; strict still flags two over-long requirements, tracked in PROJECT_HYGIENE.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-08 12:11:15 +01:00
rickandCursor be00125465 openspec: archive add-french-translation, sync hacs-packaging spec
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-07 18:43:34 +01:00
rickandCursor 89783da7af openspec: archive add-keg-48180, sync specs
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-07 12:26:10 +01:00
rickandCursor 8f2bced6ee openspec: archive fix-cognito-signin, sync specs
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-07 12:26:10 +01:00
rickandCursor 82062da60c openspec: archive add-keg-47792, sync specs
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-07 12:26:10 +01:00
rickandCursor 4f82d9a4ac openspec(add-keg-48050): sync entities spec + archive
Ratchet the keg catalog floor to 115 to match the shipped 0.3.3
catalog. Archive the change that added Anheuser-Busch Bud (48050).

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-17 15:09:02 +02:00
rick 94f45999fa openspec(backport-keg-catalog): sync entities spec + archive
Syncs the delta into openspec/specs/entities/spec.md, retrofitting the
Keg name sensor and Keg product ID sensor requirements that PR #2 shipped
without ever updating the spec, and adding both to the entity-name
translations scenario.

Note that openspec validate --specs still fails on all five spec files
for a missing "## Purpose" section. That is pre-existing and repo-wide,
not caused by this sync — verified by stashing the change and re-running.
Left alone rather than fixed across five files here.

PROJECT_HYGIENE learnings, three of them found while doing this work:

  - Never add a non-numeric key to keg_catalog.json. The loader's
    {int(k): v ...} raises on it and the except clause returns an empty
    dict, so the whole catalog dies silently at debug level. This is a
    trap precisely because embedding provenance in that file is the
    obvious next idea.

  - test_harness.py is stale: it reads a user_id key that
    .credentials.json no longer has, so it exits immediately.

  - All five openspec/specs files already fail validation, so a failing
    spec validation does not imply you broke something.

Group 5 (on-device) is recorded as verification debt rather than marked
done. The catalog was replaced wholesale and verified statically only;
the live resolve path is unexercised because no HA is reachable from the
dev host and the harness refresh token has expired. v0.3.2 exists so
that check can happen through HACS.
2026-09-06 16:26:28 +02:00
rickandCursor de326cb3ad openspec(filter-temperature-sentinels): sync entities spec + archive
Temperature sensor requirement now mandates rejecting out-of-range
firmware sentinels and reporting no value, with scenarios covering the
-128 case, the fallback chain, and non-numeric input.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-06 16:14:20 +02:00
rickandCursor 913490389f openspec(fix-reauth-flow): verification follow-up tasks + spec update
Records section 8 (the already_in_progress finding and its fix) and
renames the translation requirement to cover every abort reason, with
scenarios for the concurrent-flow path and source-derived enumeration.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-06 15:39:27 +02:00
rickandCursor f124b46f0a openspec(fix-reauth-flow): apply tasks complete + sync config-flow spec
Marks sections 1-5 and the automated verification in 6 done, syncs the
config-flow delta into the main specs, and records the deferred
Cognito-token-persistence item in PROJECT_HYGIENE.md.

Archive (7.5/7.6) is deliberately held until on-device verification
(6.4-6.7) confirms the fix against the live machine.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-06 15:27:36 +02:00
rickandCursor 43d9a3e818 openspec(improve-keg-change-detection): on-device verified + sync specs
Task 5.3 confirmed on-device (Mark Keg Changed button and volume-jump
detection both work). Applied the entities delta to the main spec: the
keg freshness sensor now documents the volume-jump triggers and
last_volume restore, plus the new Manual keg-change button requirement.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-31 21:22:36 +02:00
rick 73559b7bd2 Write comprehensive main specs from scratch
5 capability specs covering the integration as-built:
- api-client: sign-in, Cognito refresh, auto-retry, endpoints
- config-flow: credentials, token paste, reauth, options flow
- data-coordinator: single poller, dynamic interval, error handling
- entities: 9 sensors (temp, keg %, freshness, connection, door,
  pours, last pour, firmware, mode), device model, translations
- hacs-packaging: repo structure, manifest, brand icon, README,
  GitHub mirror, translation constraints

331 lines of testable requirements with scenarios.

Made-with: Cursor
2026-04-18 15:41:29 +02:00