Non-urgent, nice-to-have improvements — agreed as valuable but parked until a natural moment (or a second user request). Each entry keeps the rationale from the triage so the context survives. Remove an entry when it ships; the date marks when it was parked.
Parked 2026-10-31, from the forum feedback triage (docs/feedback/):
--network-policy deny|loopback (and a
--no-user-config for inherited credential/config discovery) applied at
flua's transport boundary — HTTP/WebSocket/TCP/UDP. Deny before connect.--manifest-only (Change 07)flua export ... --manifest-only — the files and variable
names the package would ship, value origins (expression/config file),
and whether values would be embedded — without printing resolved secret
values.--resource-summary — pending timers, owned HTTP requests,
subscriptions, queue lengths, before/after stop or restart. Leak and
lifecycle debugging.--trace
api,ui,net,timer + syslog/timeline already cover most of it.LC_CTYPE=C.UTF-8 (falling back to C) before the Lua runtime exists
(the plua 1.2.79 fix: Lua's pattern classes are libc ctype lookups, so
Polish/Windows locales split multibyte characters in %S+; C.UTF-8
rather than plain C so embedders keep locale.getencoding()=UTF-8);
--version --machine reports both locale and the effective ctype.
Known platform limit, documented: macOS's C.UTF-8 still classifies
high bytes as %a. Remaining: a short doc on byte-pattern
classification and UTF-8 handling on Windows (interpreter selection,
-X utf8 for the MCP setup subprocess).--trace channel wins on maintenance cost.The author framed these as optional, non-defect proposals. Honest verdict:
they are harness-layer features, and most of them are better built on
top of flua's primitives than inside the emulator. flua already offers the
foundations: scripted transports via local mock servers (the tests do this
everywhere), --strict-tests + --result-json, --%%replay/flua record,
--%%db seeding, the migrate tool, --check, and --trace
api,ui,net,timer. None of A01–A10 blocks real work.
plugin.restart and the restart tests exist;
the checkpoint/sequence-number injection harness does not. Park.--%%db seeding + the migrate
tool; the synthetic-inventory builder + before/after comparison is new.
Park.--trace timer,net; the
stage-by-stage operation-ID correlation is new. Park.--%%replay/flua record.
Park.--check and the uiView
machinery; the validation rules (unique names, callback targets, update
budgets) are new and modest — shortlist alongside A04.From the "Python plugin mode with SDK?" discussion. Verdict: build targeted edge hooks, not a general plugin framework — flua's moat is trustworthiness, and every plugin boundary risks it.
LuaEngine (constructor,
api.dispatch, state access, the bridge rules) is already the de-facto
SDK (the MCP server, the tools and external harnesses all drive it); the
pain point in feedback is that it is internal and may change. Document
it, name what is stable, keep the rest internal.--tool plugin directory — auto-discover tool modules from a user
directory alongside the in-package registry (the registry already
auto-discovers; pointing it at an extra path is trivial).api.registerEndpoint(method, pattern, handler[, override]) with
built-in override and cross-QA routing (a mock panel deployed as a QA
answers every QA's calls). What remains deferred from this item:
transport/server-kind registration (new net.*Server protocols — the
engine's server dispatch is hardcoded).require path/preload injection — a plugin dir on the QA's
package.path/preload registry, so shared Lua libraries come from a
plugin instead of per-project copies.net.*Server protocols — the engine's server dispatch
is hardcoded).asyncio.Event
set by enqueue_outbound (with call_soon_threadsafe from the worker
threads) so the pump sleeps until there is actual work.get_nowait() drain loop exists
because wait_for(queue.get(), timeout) lost messages on Python <= 3.12
(ADR 0006, CI failures) — an event wake-up must keep the drain semantics
and earn trust on the full 3.11-3.15 CI matrix._PUMP_POLL_IDLE when no timers are pending); the event-driven version
removes the remaining ~20 wakeups/sec but rewrites the most delicate
part of the engine.api/state.py:is_plugin_device() uses
id >= 5000; replace with device-shape markers (quickAppVariables /
view / uiView), which also makes everything base-agnostic.
3. Configurable base: a qaIdBase knob (.flua.lua / CLI flag) for
users who want a clean id band — the seed point is a single line
(engine.py:_next_qa_id).From docs/feedback/flua-feedback_copilot_skoda.md — a from-scratch agent
build of the Skoda pair in a pip-only workspace, with the bundled example
excluded. Already shipped from that report: the generic mock-QA recipe in
quickapp-patterns, the flua-setup default-mode wording fix, and structural
assertion totals in flua test --json.
docs_search (excerpts + stable section
ids), docs_read with heading/line ranges and output caps, task-oriented
entry points ("mock an HTTP service"). docs_list is 51 KB today; the
agent did filesystem archaeology instead of MCP reads.--step advances while socket
I/O is pending; an eventually(predicate, timeout) helper and an
awaitable request helper for test QAs. Reconfirmed by the Sonos offline
suite report (docs/feedback/sonos_flua_26_11_13.md): the #1 friction —
at --speed 50 a 300 ms virtual delay is ~6 ms wall, shorter than a
localhost round-trip, so fixed-delay waits fail everywhere; wall-paced
messages spread out in virtual time, so poll timeouts must scale with
--speed. Ask shape: a t:waitFor(cond, timeout, cb) in flua-test plus
the (now added) skill warning. The pipe-buffering false-hang note is
documented in the test skill.ws:reply(conn, data) would enable reply-latency/
reordering/timeout tests against the client's request queue (SonosLib's
30 s command timeout is untestable without it). Event latency already
mocks via setTimeout + ws:send.grep FAIL pipelines cleaner (CI use).--tool inspectFQA FILE [--json] (metadata, file inventory, the
apiVersion marker, placeholder-vs-baked variables, UI surface, IP leak
scan) and --tool pack --verify (the same inspection right after
packing plus the declared-placeholder check). The remaining sliver, if
ever wanted: a full source-aware diff of the packed main against the
source (byte-compare is wrong — the bake rewrites --%%var lines)._FLUA removal tests branch
logic, not firmware).initialProperties.apiVersion
in every flua-packed .fqa (the real HC3 format marker, live-verified),
the tools could drop the multipart /quickApp/import path and use the
plain JSON create like plua does. Parked by decision (2026-11-11): the
import endpoint stays as belt-and-braces. When revisited: switch
uploadFQA/uploadQA/installHelper/proxy to the JSON create, keep
Hc3Remote.multipart only if still needed, keep the sim's multipart
parsing + the skill's multipart recipe as the marker-less-package
fallback.Parked 2026-11-12, from the custom-icon work (User
api.get("/icons") -> filter deviceType ==
self.type and iconSetName starting with User; fetch each candidate's
state file via net.HTTPClient from
http://127.0.0.1/assets/userIcons/devices/<set>/<set><state>.png
and byte-compare with the bundled icon; match -> already installed ->
updateProperty("deviceIcon", id); no match -> uploadExternalIconSet
-> new id. Replaces the quickVar/internalStorage "already downloaded?"
bookkeeping that went stale on QA reinstall (duplicate sets, lost ids)./assets/userIcons/devices/; the
fibaro tree is placeholder art for User sets; binary/multilevel sets have
no base file, only state files; the named shutter states serve under the
same <set><state>.png naming (live-verified with a baseShutter set,
id 1111); custom ROOM/SCENE icons serve FLAT —
/assets/userIcons/rooms/<iconName>.<ext> and
/assets/userIcons/scenes/<iconName>.<ext>, no <set>/ directory
(live-verified: room id 1001, scene id 1001 — each category has its
own id sequence); icons must be >= ~128x128
(INVALID_ICON_SIZE otherwise); POST /api/icons multipart contract:
type=device, deviceTemplate=<type>, file fields per the provider
(icon/icon0+icon100/icon0..100/iconOpening...), response
201 {"id":N,"iconSetName":"User<N>","fileExtension":"png"}.
DELETE contract (mined from the web UI's Angular bundle + live-verified):
DELETE /api/icons?type=<device|room|scene>&id=N&name=<set>&fileExtension=<ext>
— type is the icon CATEGORY (not deviceType; WRONG_TYPE otherwise),
id is required (MISSING_PARAMETER); 200 + empty body on success. POSTs
to unknown /api/icons/* paths HANG the connection — never guess there.
(flua --tool icons ui — the icon manager — builds on all of this.)api.get("/proxy?url=http://localhost:PORT/<path>"), 11112
is the full local API — JSON bodies that api.get decodes into Lua
tables (synchronous + credential-free recipe for GETs). 11111
answers 200 with non-JSON bodies for such GETs (nil, 200 after the
decode step); its one established use is Fibaro's own uploadIconFiles
(POST http://127.0.0.1:11111/api/icons). Neither port serves the
asset tree — net.HTTPClient to 127.0.0.1:11112/assets/... 404s
("The requested method does not exist"), 11111 501s. The real icon
source is the plain web server: http://<hc3>/assets/userIcons/devices/...
on port 80, served by nginx credential-free (verified both from a QA
on the controller and externally) — that is the canonical icon-fetch
recipe, and flua online rewrites 127.0.0.1 to the controller keeping
port 80 with no auth.net.HTTPClient and the /proxy fetcher corrupted binary bodies (the
utf-8-replace decode inflated a 2442B PNG to 4829B of mojibake):
responses now travel as raw bytes (lupa carries them into Lua strings
unchanged; a str channel cannot be byte-faithful — even latin-1 doubles
up at the bridge). Pinned by binary /blob tests. (2) flua rewrites
11111 and 11112 identically to the standard API — faithful for 11112,
too lenient for 11111 GETs (the controller answers non-JSON there).
(3) api.get("/proxy?...") of a binary body returns the raw bytes
where the HC3 nils it — kept as a deliberate flua extension (the bytes
are what recipes need); document it. (4) flua's /proxy route ignores
the HC3's username/password query parameters (Fibaro's own
getProxyUri(uri, login, password) helper — the undocumented
target-auth surface; no user code seen using it yet). Fix when needed:
prepend them as userinfo in proxy_get so fetch_url's existing
userinfo→Basic path applies; pin with a mock-server test./api/icons + the 11111
loopback; the sim has the catalog route but no asset tree — degrade
gracefully). Testable against the mock HC3. Related parked options from
the same session: a _FLUA.saveIcon(set, file, bytes) bridge call and
lazy fetch+cache in the icon channel (online/proxy) so the viewer warms
the cache on demand — both "wait for now".--check (HassQA field report, 2026-11-17)A luacheck-style pass over the --%%file closure — known flua/HC3 globals
whitelisted — would have caught three real bugs statically (an undefined
PCALL, a d.state typo, a wrong variable in an error path) that
--check passed. Highest-value single item in the report. Needs a real
static-analysis pass over compiled bytecode (a mini-linter), not a patch;
the runtime --%%warn:stubApi/bridge-debug channels catch the dynamic
half meanwhile.
list element (SHIPPED in flua; HC3-blank for QAs — live-verified 5.22x)list — data pushed via
updateView(name, "data", rows), the item template in components
with {{data.field}} templating, per-item direct-action bindings.
Implemented in the compiler (verbatim template passthrough), the viewer
(substitution + per-item args), and examples/list.lua /
list-child.lua (2026-11-24).json/v2/view.json), not from a QA's
or child's uiView — both blank there. Lists stay a flua sim/dev
surface; an HC3-bound QA needs the plugin-view route. The separate
onElementReleased list-item event was not needed for the shipped
subset.deviceAction bindings now execute in flua's viewer as real
device actions (the child-UI path — --tool ui --as-lua --child,
live-verified HC3 delivery: actionName = the child class's method).updateClientView / updateDeviceProperty bindings
and {{device.properties.x}} / {{data.x}} argument templating — the
HC3 client resolves them, flua's viewer does not. Same trigger as before:
promote when a QA ported from the new firmware needs them offline.