Response to "Experience using flua to test and debug Fibaro QuickApps"

Reply to the GPTAstra feedback report (GPTAstra_using_flua.md), addressed to its author. The report was reviewed against the current tree; release at the time of this response: 0.1.112 (the report's pilot ran 0.1.84, its installed baseline 0.1.104, with 0.1.111 spot-checks — the version trail mattered a lot, as you suspected).

Thank you for the report — the evidence discipline (versioned results, source hashes, adapters disclosed, "not rerun" and "not verified" qualifications) is exactly what makes this actionable. Several findings turned out to be already fixed, one turned out to be a real contract bug we could verify against a live HC3, and the rest are filed.

Already fixed before this report (0.1.84 → current)

Changed in response to the report

Finding 5 — property endpoint contract (verified against a live HC3, fixed)

You were right, and the sim was wrong. A read-only capture against a real controller (recorded in docs/feedback/hc3_property_endpoint_capture.md) confirmed:

Case Status Body
boolean false 200 {"value": false, "modified": 1793263194}
zero 200 {"value": 0, "modified": 1793263194}
empty string 200 {"value": "", "modified": 1793263194}
object 200 {"value": {}, "modified": 1793263194}
missing property 404 null

flua's GET /devices/{id}/properties/{name} now returns the same envelope for scalars, objects and the computed sun times, 404/null for missing properties, with modified tracked per device (initialized at registration/first read, advanced on every property change). The contract is pinned by tests/test_api.py::test_device_property_get. Your template's scalar-response adapter is no longer needed — the QA-side {value=...} validation it wrapped around should now pass unmodified against the sim.

Finding 9 — documentation/skill inconsistencies (all fixed)

Verified against the current tree and corrected, plus one more found while checking:

Your point about generated-vs-canonical consistency is taken: these now match, and the packaged copies are guarded by byte-equality sync tests so a drift fails CI rather than reaching users.

Parked (filed in docs/rainy_day_todos.md)

Your priority list, one line each

Please rerun your template suite on 0.1.112 — in particular without the scalar-response adapter — and the full-template restart. Any new findings get the same triage.

— flua maintainers