Full Changelog 2.1.0

Released 2026-10-20 · v7.1.3 · 31 issues · 63 features · 166 fixes

The complete record: every commit in the release, grouped by type, including work that never reaches a customer-facing note. The external changelog is the readable summary of the same release.

Jira References

  • DEV-1351 - LWM2M/MQTT Emulation tool > USP > MQTT > Add separate fields for Endpoint Identifier and Client Identifier

  • DEV-1795 - OneIoT ACS > Group Update > Add USP compatibility for GU Diagnostics as Historical data

  • DEV-1861 - LWM2M/MQTT Emulation tool > Log files are absent

  • DEV-1910 - LWM2M/MQTT Emulation tool > USP > MQTT > Default "MQTT Client ID" > Connect Command > Incorrect default value for "MQTT Client ID"

  • DEV-2001 - LWM2M/MQTT Emulation tool > USP > More than two devices > Register > Part of devices not registered

  • DEV-2003 - LWM2M/MQTT Emulation tool > USP > Device tree from a real device > Registration > Task is stuck

  • DEV-2016 - Emulation tool > Group Update > Add USP compatibility for GU Diagnostics as Historical data

  • DEV-2050 - LWM2M/MQTT Emulation tool > USP > Big device tree > Group of devices > Register > No response on observation tasks

  • DEV-2052 - LWM2M/MQTT Emulation tool > USP > MTP:MQTT > Connection lost > Connection retry not performed

  • DEV-2132 - LWM2M/MQTT Emulation tool > Web version > Add versioning

  • DEV-2156 - LWM2M/MQTT Emulation tool > Docker > USP > MTP:MQTT > X.509 > "FT_TLS_AUTH=0" > Start > TLS connection failed

  • DEV-2162 - LWM2M/MQTT Emulation tool > Docker > USP > Selection of USP version is absent

  • DEV-2163 - LWM2M/MQTT Emulation tool > Docker > USP > Protocol Options > Change > Save > Restart emulator > Changes are not saved

  • DEV-2322 - LWM2M/MQTT Emulation tool > USP > Management Portal > Download > Firmware > "TransferComplete!" > FirmwareUpdated absent > Task in stuck in "Sent" state

  • DEV-2376 - LWM2M/MQTT Emulation tool > LWM2M > Tree with non-default values of /9/0/7 and /9/0/9 > Register > Incorrect values for mentioned resources

  • DEV-2469 - LWM2M/MQTT Emulation tool > Docker > LWM2M > Non-default tree > Start > Error in log

  • DEV-2471 - LWM2M/MQTT Emulation tool > Docker > LWM2M > Start > Protocol Options > All settings are greyed-out

  • DEV-2472 - LWM2M/MQTT Emulation tool > Docker > LWM2M > Start > "fail response" = "true" > Any request > Request not failed

  • DEV-2475 - LWM2M/MQTT Emulation tool > Docker > LWM2M > "rendering" = "FULL" > Initialize tree > Parameters tree > Tree is absent

  • DEV-2479 - LWM2M/MQTT Emulation tool > Docker > LWM2M > Start > Parameters tree > Edit > New value > Update > Error

  • DEV-2481 - LWM2M/MQTT Emulation tool > Docker > LWM2M > TCP > Start > GET with "Observe=0" > Error

  • DEV-2513 - LWM2M/MQTT Emulation tool > Docker > LWM2M > SenML CBOR > SPV on /3/0/13 > Incorrect value stored in the tree

  • DEV-2706 - OneIoT ACS > USP > Firmware update > Timeout > Task isn’t failed

  • DEV-2708 - LWM2M/MQTT Emulation tool > Docker > USP > No reboot after firmware update

  • DEV-3031 - Angular project > Support portal > Diagnostic > add speedtest support by Ookla

  • DEV-3071 - LWM2M/MQTT Emulation tool > Docker > USP > Add OOKLA speed test diagnostic support

  • DEV-3172 - LWM2M/MQTT Emulation tool > USP > "Periodic!" events are absent

  • DEV-3278 - LWM2M/MQTT Emulation tool > USP > Device profile with "Backup" > Activate > "Periodic!" event > Backup task is not completed by the device

  • DEV-541 - CPE Admin > USP > Advanced View > Edit > Any parameter with "WO" access modifier > The parameter value field is not greyed out

  • DEV-765 - LWM2M/MQTT Emulation tool > LWM2M > Monitoring on multiple instances resource > Empty value for instance > Mentioned instance is absent from "Notify" message

  • PROD-584 - [Certificate Management] Phase II: On-Device Key Generation with EST Enrollment

Features

  • Leaf CN override and 24 h leaf validity cap for X.509 (K17)

    FTEMUL_X509_LEAF_MAX_VALIDITY_HOURS caps every minted leaf (default 24, 1..999999, fail closed); lwm2m.x509.leaf.cn sets the leaf common name for the bs CN/endpoint binding. Docs: changelog, installation, scale-mode.

  • Virtual threads on by default for the USP MQTT MTP

    The switch now defaults to ON when neither -Dftemul.virtualThreads nor FTEMUL_VIRTUAL_THREADS is set; an explicit false turns USP back to platform threads, and the property wins over the env. LwM2M keeps its OFF default. The default surefire fork still pins the switch OFF for the OFF cells.

  • Run the MQTT MTP on virtual threads behind ftemul.virtualThreads

    USP MQTT devices cost several platform threads each (Paho comms loops, per-device request and recovery pools, periodic and bulk-push executors). With FTEMUL_VIRTUAL_THREADS / ftemul.virtualThreads on (default off, same switch as the LwM2M emulator, read once) Paho gets one shared virtual-thread ScheduledExecutorService and the per-device pools use virtual-thread factories, so platform threads stay flat as devices grow. With the switch off the executors and the Paho constructor path are unchanged.

    Tests: unit and per-package ON/OFF twins, 1000-device scale arms and an mTLS arm against an embedded HiveMQ CE child-JVM broker (test scope), a ping cell, and an opt-in T4 report (heap per device, RSS, grouped pinned-thread events). Docs: scale-mode.adoc and the changelog.

  • Typed Java client for the emulator control REST API

    New parent-less module ft-oneiot-emulator-client (com.friendly.qa:ft-oneiot-emulator-client:0.1.0, Java 25, Jackson 3, java.net.http). Six API classes map 50 of the 60 /api operations one to one; records for the wire types; one deadline per call over connect, headers and body; EmulatorApiException with method, path, status and a validated code. toString() of a record never prints a secret, a parameter value or a log payload.

    137 unit tests against a canned-byte HTTP fixture; jacoco line and branch at 0.80. Nothing is published: the release workflow is not in this commit.

  • R4b-2 - mode-ON executor views, shared scheduler view, DTLS receive limit

    Mode ON only (ScaleMode.isVirtualThreads()); mode OFF path unchanged (I-2). - C1 scale/DeviceExecutorView: per-device ScheduledExecutorService over ONE JVM timer (carrier-sized, remove-on-cancel); tasks on virtual threads, at most parallelism at once, FIFO; worker exists only while work is queued; own tracked futures (shutdown/shutdownNow isolated). Wired for CoapServer main (protocol_stage_thread_cnt) / secondary (2) via setExecutors and for Leshan’s RegistrationEngine (private final schedExecutor swapped, 1). - C1b ScaleMode.sharedDeviceScheduler ON → a view, parallelism max(4096, N). - C3 DTLS pump receives into limit+1 bytes; over-limit datagrams counted (scale/Lwm2mScaleCounters) and logged event=dtls-datagram-over-limit (WARN, first then every 1000th), check in a finally. Knob lwm2m.scale.dtls.receive_buffer (default 2048, 1500..16490, read once per run, ignored in OFF) - config/DtlsReceiveLimit. - Compact gating set: registration/RegistrationGate (int arrays, one lock). - loadtest: arm INVALID reason=dtls-truncated (rank 20) on the over-limit line; TEST-8 fixture under the 40000 port cap (F-R4a-TEST-10); README documents both mode-ON properties. - Dockerfile runtime eclipse-temurin:27-jre-alpine (owner, bytecode stays 25).

    + Measured (loadtest/emucap-native-measure.sh, native, local, KB/device live heap, slope N=500→2000): | arm | before 1450600 | after R4b-2 | line r4b2 | verdict | | NoSec | 74.6 | 55.7 | ⇐ 62 | PASS | | PSK | 97.2 | 64.6 | ⇐ 72 | PASS | X.509 host-only (unchanged).

  • per-device credentials - minted X.509 leaf, derived PSK (R2)

    SDD lwm2m-load-multidevice v1.5, slice R2 (4.3, D-API-2/3/4, D-SEC-1/2/4, D-REQ-2, D-ARC-1 reopened, D-TEST-16/18).

    • LeafCertificateMinter: with X.509 mode and lwm2m.x509.ca.keystore, one EC P-256 leaf per endpoint (CN = Register ep, UTF8String, ⇐ 64 chars), issuer = CA subject, 159-bit SecureRandom serial, now-1h..now+validity, CA=false + KU digitalSignature critical, EKU clientAuth, SKI/AKI, SHA256withECDSA; chain leaf_and_ca (default) or leaf. Password only from the file FTEMUL_X509_CA_PASSWORD_FILE names; FTEMUL_X509_CA_PASSWORD is ignored with one WARN. Credential cached per lower-cased endpoint for the run (the run = its shared device pool, new at every /api/init).

    • PerDevicePsk: lwm2m.psk.per_device=true → identity = endpoint, key = HMAC-SHA256(hex(template key), endpoint)[0..16); one value feeds /0/0/3, /0/0/5 and the DTLS PSK store.

    • start() refuses a second X.509 source (client keystore or EST) before any EST exchange (EstRegistry.enabledFor creates no entry).

    • bcpkix (and bcprov/bcutil) 1.85 at compile scope; gui drops its direct test-scope bcpkix so the fat jar ships it.

    • Tests: T4 LeafCertificateMinterTest, T5 PerDevicePskTest (KAT), T6 Lwm2mDeviceCredentialTest, T9 X.509 and per-device PSK fleet arms (both scale modes, 50 → 200 devices); start-seam order pin extended.

  • virtual-thread scale mode for many devices (R1)

    Slice R1 of SDD v1.5 (docs/SDD-lwm2m-load-multidevice.md). One JVM-wide switch, FTEMUL_VIRTUAL_THREADS / -Dftemul.virtualThreads, read once and OFF by default: mode OFF keeps every pool exactly as the libraries build it.

    • Shadows of Californium M16 and Leshan M12 NamedThreadFactory: OFF is the library logic line for line, ON returns a virtual thread with the same name. ScaleMode.checkAtStartup refuses mode ON when a factory is not the shadow or Scandium’s private receive method is unreachable.

    • NoSec in mode ON: VirtualUdpConnector (one socket, virtual receiver and sender). DTLS in mode ON: 0 receiver threads plus a DtlsReceivePump bound to the endpoint lifecycle with Scandium’s Worker loop contract; an Error marks the device failed through onError.

    • Passive lifetime scheduler, FOTA execute thread and the shared device pool (ScaleMode.sharedDeviceScheduler, ON core max(4096, planned)) take their threads from ScaleMode.

    • A protocol option posted between /api/init and /api/start now also writes the run template, so the passive runner’s first device sees it.

    • Surefire executions default / scale-on / scale-on-pinning, JaCoCo 0.8.14 on lwm2m-emulator, device-manager and gui.

  • Basic auth, HTTPS trust option and HTTP status on the upload PUT (ED-4)

    Backup()/Upload() send Authorization: Basic when Username is given; a non-2xx status or an I/O/TLS failure now reports TransferComplete! FaultCode 7003 instead of success. Option usp.upload.tls.trust_all for self-signed HTTPS sinks (QA T230874, T230875, T230880). Also relabels the ED-2 option.

  • Device.LocalAgent.AddCertificate() handler (ED-3)

    Synchronous TR-181 command: adds a Device.LocalAgent.Certificate.{i} row with Alias, Enable, SerialNumber and Issuer from the PEM; duplicate serial+issuer or alias → cmd_failure 7022, missing/unparsable PEM → 7004 (QA T230895).

  • Image provenance labels and git.dirty in /api/version (ED-5)

    Dockerfile takes SOURCE_COMMIT / SOURCE_DIRTY build args and sets source.commit, source.dirty and org.opencontainers.image.revision; /api/version gains dirty. Root .gitignore ignores target/ so a build does not make the tree dirty.

  • NSLookupDiagnostics() results and option to omit TotalBytesSent (ED-1, ED-2)

    ED-1: synthetic TR-181 NSLookupDiagnostics() output (Status, SuccessCount, Result.{i}.*) for QA T231704. ED-2: usp.diagnostics.omit_total_bytes_sent (default false) drops TotalBytesSent from diagnostic results for T230885.

  • EST identity drives the emulated device’s X.509 DTLS; REST control

    The device enrolls once at start (factory keystore entry = endpoint), mirrors the EST key and leaf into every X.509 Security instance (where Leshan reads the DTLS identity), re-mirrors after bootstrap, and reboots after an automatic or REST enroll/renew. Public stop() cancels the schedule; stop(false)/reboot keep it. REST: POST /api/devices/{id}/est/enroll|reenroll|options, GET …​/est.

  • EST-coaps client core for the LwM2M emulator

    RFC 9148 /crts, /sen, /sren over a per-exchange Scandium DTLS connector: JDK-only PKCS#10, issued-leaf validation against the same operation’s /crts, pending-key reuse for server Replay, server trust PINNED / EXPLICIT_TA / UNPINNED with a per-operation TA snapshot, per-endpoint registry, pure renewal/retry schedule. New lwm2m.est.* options. Device and REST integration follow.

  • Commit the July rig-support work the e2e image is built from

    Committed as-is on the owner’s instruction (2026-09-30). These changes sat uncommitted from Jul 16-29 while the demo host’s iot-emulator:e2e image was built from them, and 4c7ac0e referenced two of them (UnmodeledObjectModelSynthesizer, DECLARE_UNMODELED_OBJECTS), so the branch did not compile from git.

    Contents: POST /devices/{clientId}/bootstrap (client-initiated Bootstrap-Request), RxTraceInterceptor wiring for the rig RX markers, Security /0/0 bootstrap seeding, unmodeled-object model synthesis (lwm2m.declare.unmodeled.objects, default false), and their unit tests. Build output (target/) and .idea/ are not included.

  • DEV-3031 - Angular project > Support portal > Diagnostic > add speedtest support by Ookla

  • Ship X_T_SpeedTest() in every USP device configuration

    The Docker image bakes gui/configuration and the distribution carries the two emulator-assembly copies; all three now declare the Tozed speed test command and the object that keeps its last result, so an emulated USP device reports the command to the ACS out of the box.

    The command is declared through its argument lines only. UspDevice hands the parameters to the tree from a HashMap, and a bare "…​X_T_SpeedTest()" line reaching the tree after its arguments replaces the command node with a leaf and drops them — the test builds the tree from every shipped file in both orders to keep it that way.

  • Finish X_T_SpeedTest() the way a Tozed device does

    After OPERATE the emulated device now keeps the run going for usp.diagnostics.ooklaDurationMs (5 s by default — a real Ookla run takes tens of seconds, the ACS waits up to 180 s), then writes the result under Device.IP.Diagnostics.X_T_SpeedTest.* and sends OperationComplete.

    The result is stored first and regardless of subscriptions: section II of the protocol has the ACS read the last result with a Get, and the SET it raises is what refreshes the parameter tree in the UI. A failed run, Status=Error in this protocol rather than DiagnosticsState=Error_*, completes after 300 ms like the TR-181 diagnostics do.

  • DEV-1795 - OneIoT ACS > Group Update > Add USP compatibility for GU Diagnostics as Historical data

  • Synthesise the Ookla X_T_SpeedTest() result

    The emulator runs no real speed test, so the OperationComplete of X_T_SpeedTest() is made up the way the TR-181 diagnostics' results are: the twelve output arguments of du-Tozed TR369 Speed Test Protocol V1.2.4 in its order and spelling (SserverName included), Status=Complete, rates and latency with the two decimals of the protocol’s example, the example’s server fields, a fresh ResultID and the time of the run.

    Bandwidth, which appears in the protocol’s example instead of Timestamp, is not sent: the message structure the protocol defines lists Timestamp. A failure injected through usp.diagnostics.errorRate reports Status=Error with only a Timestamp beside it.

  • Extract a device tree from the ACS database in web mode

    Adds POST /api/acs/extract: reads a real CPE’s parameters from the ACS database for the selected protocol and writes them over the active device tree file, the same way the desktop’s Extract CPE from DB does, so the web service gets the feature back. AcsTemplateExtractor wraps an AcsService lookup/init/loadParameters/close cycle and turns its failures into the API’s error codes (CPE_NOT_FOUND, EXTRACT_FAILED, EXTRACT_UNAVAILABLE). The Load Test page gains an "Extract CPE from DB" panel in the left column; extracting asks for confirmation first because it overwrites the active tree file, and Save settings persists the six DB fields alongside the existing connection options.

    Deletes StaticIndexHiddenFeaturesTest: its one remaining assertion guarded the absence of the dbExtractPanel markup, on the grounds that Extract had no web endpoint yet and a control that claims to have done something it did not is worse than no control at all. That endpoint now exists, so the guard’s premise is gone; StaticDbExtractTest takes over as the sentinel for the feature actually being wired end to end (panel present, goes through Busy, asks before replacing the tree, and the REST path stays confined to js/api.js).

    Also fixes two hand-assembled Spring context test slices (EmulatorRestControllerMockMvcTest, EncodedSlashPassThroughTest) that mock EmulatorRestController’s other collaborators because their component scans do not reach com.friendly.emulator.gui.controller: the new @Autowired AcsTemplateExtractor field needed the same treatment or the context failed to load.

  • Add a Rules dialog to the Load Test page

    Task 6 of the web-rules-autoupdate plan. A Rules button in the controls bar (after Clear logs) opens a dialog to edit, compile and save the one JavaScript rule the emulator runs on every parameter update, with the startup compile error and the last runtime error surfaced beside the editor. GET /api/rule now reports both (RuleController.getLastCompileError()/getLastRuntimeError() from task 1), and js/load/rules.js follows the same built-per-opening, Modal.open/Modal.close pattern as the parameters window.

    Sentinel tests changed:

    • StaticRulesDialogTest (new): the brief’s own server_text_is_text, as written, forbids ${rule and ${help anywhere in openRules(), but openRules() legitimately writes ${rule.error || ''} and ${rule.lastRuntimeError} into showStatus(…​) and runtime.textContent — both textContent writes, never markup. Per the controller’s Ruling 1, the test instead scans only the static template assigned to modal.innerHTML for interpolation, and separately checks that server text lands via .textContent/.value. Its functionBody signatures are also spelled with their closing parens (openRules(), compileRule(code)) rather than left open as the brief showed: functionBody requires only whitespace between the signature and the opening brace, so a signature cut before a parameter list or a closing paren lands the search on that text instead and never finds the declaration.

    • StaticModalTest: the Modal.open(/Modal.close( counts outside modal.js move from 5 to 6, and rulesModal is added to the overlay id census (assertMentions, plus assertBuiltAndHandedOver/assertClosedThroughTheComponent in everyOverlayOpensAndClosesThroughTheComponent), the same way paramsModal is covered, per Ruling 2.

    • StaticIndexHiddenFeaturesTest: hasNoRulesTab removed — the Rules mini-tab markup is gone for good, but the rule now runs headless on every update (task 3) and has a web entry point (this task), so the page no longer needs to hide it.

      docs/user-guide.adoc and api.adoc updated per Step 9: the Rules section drops its desktop-only/no-engine NOTEs (the rule engine is standalone Nashorn now, task 1), gains the web dialog’s own paragraph on a failed compile/last runtime error, and the API reference documents lastRuntimeError.

      mvn -o -B -pl gui test: 729/729 green.

  • Bring Autoupdate and History back to the Load Test page

    Adds two collapsible sections under Set value in the right column of the Load Test page — Autoupdate (a form) and History (values, newest first) — wired to the REST endpoints task 4 already shipped (GET/POST …​/autoupdate, GET …​/history). Picking a parameter in the parameters window now loads both panels for it, and Set value refreshes the history after a write. New: css/param-tools.css and js/load/param-tools.js (bindParamTools, syncAutoupdateForm, showParameterTools, applyAutoupdate, refreshParameterHistory). api.js gains getAutoupdate/applyAutoupdate/getParameterHistory. main.js wires apply-autoupdate through Busy, refresh-history and the autoupdate-form change handler, and binds the module on load. params.js hands the picked parameter to param-tools.js from selectParameter() and updateParameter().

    Sentinel tests touched, and why:

    • StaticParamToolsTest (new): pins the wiring above. Its own RED/GREEN cycle uncovered that StaticAssetSupport.functionBody requires the signature text to run through the closing parenthesis (only whitespace may sit between the signature and the opening brace) — so the test asks for "function selectParameter(name, value)" and "function renderHistory(history)" rather than the truncated "function selectParameter(" the brief drafted; the assertions themselves are unchanged.

    • StaticIndexHiddenFeaturesTest: removed hasNoAutoupdateTab, hasNoParamHistoryField and keepsTheUpdateParamEditor — the first two guarded controls that no longer exist to guard (this task adds their headless replacements), and the third is superseded by StaticParamToolsTest.keeps_the_set_value_editor, which pins the same Set value editor plus the new panels beneath it. The class javadoc now says only Rules and Extract stay hidden, until tasks 6 and 7.

    • StaticTerminologyTest: the anchor "=== Autoupdate Tab" became "=== Autoupdate" in both of its uses, matching the doc heading rename in user-guide.adoc (the desktop-only tab is now the web section too).

      Full Static* package (216 tests) and the whole gui module (724 tests) stay green. docs/user-guide.adoc: the Autoupdate section is no longer desktop-only, its field table picks up the web labels (Enabled, Every device with this parameter, Random step direction per device) with the desktop names kept parenthetically, and a new History section documents the reload behaviour and the OFF-rendering case.

  • Serve autoupdate and value history in web mode

    GET/POST …​/autoupdate looked a parameter up in the JavaFX tree item’s parameter set, which stays empty headless (the tree is only ever filled inside runLater). ParameterUpdateController now reads a device’s own parameter map first, falling back to the tree-XML params before Start — the same two sources GET …​/parameters already reads — so autoupdate works in the web service and for devices started from Single mode, not just inside a load-test session.

    isDeviceRunning(clientId) replaces the isStarted() session flag wherever autoupdate decides whether to reschedule at once: a device started from Single mode never sets that flag, so autoupdate silently never rescheduled it. Stopping a Single mode device (stopDevice/deleteDevice) now also takes its parameters off the autoupdater via the new stopAutoupdate, instead of leaving them scheduled against a device the emulator has already stopped.

    Adds GET …​/parameters/{paramName}/history, returning the ParameterHistory task 3 already records, as ParameterHistoryDto.

    Also fixes a stale comment in EmulatorRestController.getDeviceParameters naming addParamIfItDoesntExist, the method task 3 renamed to addParamToTree (with the rule/history binding split out into bindParameter).

  • Report whether a parameter has a scheduled update

    ParameterUpdateController’s web-mode autoupdate code needs to tell whether a parameter is currently on the scheduler, e.g. to decide whether stopping a device actually took it off the autoupdater. ParametersUpdater already tracks this in its addedParameters map internally; isScheduled exposes it.

  • Bind rules and value history to parameters headless

    IotDeviceController.registerListeners used to bind the rule listener (and, on desktop, the value history) inside addParamIfItDoesntExist, which every caller reached only through runLater — silently swallowed by Platform.runLater’s IllegalStateException when no JavaFX toolkit is up, which is always true in --web-mode. Rules and history therefore never ran in the web service, and on desktop the rule was skipped whenever Rendering=OFF.

    Binding now happens synchronously in bindParameter/bindDeviceParameters, called directly from registerListeners and from both DeviceLifecycleObserver branches' onRegistration (so parameters a device never reports through onCreate — MQTT Manufacturer/ModelName, non-ACS LwM2M parameters, CoAP — still get bound once the device has built its own map). The rule now runs whatever the rendering, including OFF, per the 2026-09-15 decision recorded in spec.md; the desktop tree (addParamToTree, renamed from addParamIfItDoesntExist) stays a pure view with no rule/history logic left in it.

    Fixed along the way: - One shared value-listener instance per controller instead of a new lambda per bind: since Parameter keeps its listeners in a Set, a parameter bound twice (once from its tree XML, again when the device creates it on start) now runs the rule once per change instead of twice. - A parameter a protocol creates at runtime without a clientId (USP) is given the owning device’s clientId before it is bound, closing the NPE in Parameter.hashCode and letting the rule find the right device. - setParameterCreationObserver is now set unconditionally (every rendering, including OFF), closing the NPE in MqttDevice.start(), which calls parameterCreationObserver.onCreate(p) without a null check. - createOrUpdateDeviceTreeItem refreshes ctx.devices on every call, not only for a newly seen client id, so a rule reading ctx.devices sees the current device object even after the passive runner rebuilds it on a later wake. - A rule failure is logged and recorded via RuleController.recordRuntimeError unconditionally; it only additionally reaches the desktop status bar (and, through it, the lifecycle API’s lastError) when connectionStatusLbl is non-null, so a rule’s failure can never surface as a lifecycle (init/start) failure in web mode.

    + Adds ParameterHistory: a bounded (default 50 entries), per-(clientId, name) value history recorded only while Rendering != OFF, mirroring the desktop’s JavaFX-tree-backed history that the web service can’t create. It is recorded from the same bindParameter/onParameterValue path, exposed via IotDeviceController.getParameterHistory/isParameterHistoryRecorded, and cleaned up on deleteDevice, createAndStartDevice’s failure path, and dropSessionDevices (retaining only standalone devices), mirroring the existing deviceItems/ctx.devices bookkeeping at each of those sites.

    + No existing test needed changes: no test called addParamIfItDoesntExist by name or asserted never()).setParameterCreationObserver (verified by grep).

  • Run rules on the standalone Nashorn engine

    Nashorn left the JDK in 15, and this project shipped no replacement, so every rule the master branch (built on Java 8) could run compiled to a no-op on the current JDK 25 build without telling anyone. Bring Nashorn back as the org.openjdk.nashorn:nashorn-core:15.7 dependency it now is upstream.

    RuleCompiler.compile now short-circuits blank rules.js to a shared NO_RULE no-op before ever touching the engine, and serialises calls into the one compiled engine instance with a lock per rule, since Nashorn’s factory does not declare itself thread-safe and one engine now serves every device thread.

    The test suite’s FakeScriptEngineFactory registered itself under the same javax.script names (nashorn, js, javascript) the real Nashorn now claims, which would have made engine selection nondeterministic, so it and its META-INF/services registration are gone; the tests that exercised it now run against the real engine.

    isEngineAvailable(), RuleDto.engineAvailable and the surrounding javadoc/API docs previously said this JDK simply has no JavaScript engine; that stopped being true, so their wording changed to what false actually means now: a trimmed build missing the nashorn-core jar.

  • Fill the Load Test Status section with a live summary

    The Status section ended part-way along the toolbar row and left the rest of it empty. It now takes the remaining room and shows what the page did not say anywhere else:

    • the time of the last status that arrived, beside the section title; a failed poll leaves it standing, so it says since when the emulator stopped answering;

    • how many listed devices are in each connection state, drawn with the Connection column’s own badges (Unknown only when there is some);

    • the devices started from Single mode with the protocol, server and client port each runs on, the first in full and the rest by count with every one in the tooltip. The form beside it holds the load-test session’s values, which are not theirs, and is not changed.

      GET /api/devices gains an additive standalone flag for those devices. A Single mode device is now flagged as soon as it is listed rather than after its start returns, so it no longer shows up as a session device while a protocol retries its server.

      The new rules live in css/load-status.css: css/load.css had reached the 800-line cap on static files.

  • Show each device’s server connection on both pages

    Single cards and the Load Test table’s new Connection column show a badge read from dev.connection, never from the status line: Connected, Not connected or Unknown, with a token-coloured dot and a tooltip. The Single header adds how many active devices are connected. The card’s always-green dot claimed every device was fine, so it goes, along with its now unused rule. The Load cells are built once, not per row, because the table can hold thousands of rows.

  • Send each device’s connection state from /api/devices

    DeviceDto gains connection, the ConnectionState name, on the device list and on the single-device answer. A device that throws from getConnectionState(), or answers null, is listed as UNKNOWN rather than failing the whole list. status is unchanged, since the test agent and the MCP read it. Its Swagger example no longer claims "CONNECTED": that example moves to connection, with its allowable values.

  • Report the broker session as the device’s connection

    Paho’s isConnected() turns true only once the broker has accepted the CONNECT, and false again when the session is lost, even though connectionLost leaves the status line reading "connected". MqttDevice answers getConnectionState() from it, and DISCONNECTED with no client (before start, after stop). FSH Hub and Dusun inherit it, and tests pin that: their server is the same broker.

  • Report the registration as the device’s connection

    UspDevice answers getConnectionState() from its registered flag, which the registration listener sets (or the controller’s first Get of Device. with late registration) and stop() clears. It does not use the MTP connector’s isConnected(): STOMP, CoAP and WebSocket hard-code it to true.

  • Report the registration as the device’s connection

    Lwm2mDevice already keeps a connected flag that Leshan’s registration callbacks set, and that resource discovery sets with late registration. Deregistration, a failed deregistration and stop clear it. It now answers getConnectionState() from that flag.

  • Add a per-device connection state to IotDevice

    The pages could say whether the browser reaches the emulator, but nothing said whether a device had reached its own server. The only per-device signal was toString(), a free-text status line that reads differently in every protocol.

    ConnectionState is CONNECTED (the device’s server accepted it, by the protocol’s own confirmation), DISCONNECTED (not connected now) or UNKNOWN (the device cannot tell). IotDevice.getConnectionState() defaults to UNKNOWN, so an implementation without a signal of its own never claims one.

  • Filter and read logs without expanding the panel

    The docked log had no filters — only the fullscreen view had one — no way to tell an error row from any other, a direction shown by colour alone, and a payload split mid-token by break-all with no way to copy it. The page’s own entries (Initialize, heartbeats, snapshots, parameter edits) were logged as IN or OUT, as if they were protocol messages.

    The docked panel now serves Device, Direction and Event filters in its markup, and a change repaints the table without expanding it. Both views go through one predicate: the docked selects are equalities, the fullscreen text is matched against js/dom.js’s filter text of the row as it is shown. The old six-field matcher and the three separate reads of the fullscreen field are gone, and each table is kept equal to the cached entries its filter admits.

    Entries the page writes are a UI direction with a glyph of their own, selectable in the filter; addLog no longer takes a direction. Every direction is a glyph, a word and a colour. Error rows — the page’s Error, LwM2M’s failure and timeout events, CoAP’s Timeout — get a left border and a background that survive hover. Rows are one line at a fixed height in both tables, with Event at 160px and an ellipsis, and the detail dialog wraps by words and has Copy payload: the clipboard API where it exists, and on plain http a selected payload and a toast saying to press Ctrl+C.

  • Timestamp logs with a full ISO date

    The log’s Time column carried two clocks. Server rows showed the record’s H:m:ss:SSS time of day — minutes unpadded, no date, no zone — and rows the page wrote itself showed toLocaleTimeString(). Neither had a date and the two did not compare.

    GET /api/logs now also sends timestamp: ISO-8601 with the date, milliseconds and a numeric offset, read off the moment the record captured through a new, additive MessageRecord.getTimestamp(). The old time field is kept exactly as it was for one release, because the MCP server passes the answer through verbatim. It is marked deprecated in the OpenAPI schema and in api.adoc, whose example and field text now describe what it really carries. getTime() and the desktop Time column bound to it are unchanged.

    The page renders every row, server or client, with one formatter from an instant, in the browser’s zone and with the date; client rows are stamped with an instant in the same ISO shape, and an older server without the field falls back to its time verbatim. The ISO string is the Time cell’s tooltip and the detail dialog’s heading. Time, Device, Options and Payload are monospaced with tabular digits in both tables, and the Time column is wide enough for the date.

  • Give every modal a focus trap and an escape key

    Five overlays, five ways of being one. Only the log entry declared itself a dialog, none kept the focus inside, Escape had three owners on the Load Test page and none on the Single page, and the Single page showed its two by toggling a class from four places, two of them inline onclick attributes.

    js/modal.js is now the one component. Modal.open/Modal.close set role="dialog", aria-modal and the accessible name on the dialog box, move the focus in (the caller’s target or the first stop), trap Tab and Shift+Tab, answer Escape and a backdrop press for the dialog on top only, and give the focus back to the opener or, when a poll has repainted it away, to a caller-supplied fallback. The hidden attribute is the single visibility convention; the Single overlays are served hidden, and the Load Test overlays are removed by their onClose. The filter fields keep clear-then-close by marking the Escape they used.

    The Single Protocol Options window gets a fixed footer (only the list scrolls, so Save is on screen at open) and the filter the Load Test tab already had, through one matching rule moved into js/dom.js. Its close buttons are named. A device card’s Delete now asks through the busy wrapper’s confirm hook, before the button goes out of service.

    StaticModalTest pins the routes, not just the values: a census of every mention of each overlay’s id, the served state against the component’s, and one owner for Escape and Tab.

  • Make the web UI operable from the keyboard

    Both app pages could be driven with a mouse and only with a mouse. The parameter tree, the collapsible section headers, the Insecure badge that opens the transport settings and every log row were divs and spans with a click handler: not in the tab order, so there was no way to reach them at all from the keyboard, and nothing to announce them to a screen reader. 86 of the 96 fields had no programmatic label, so a reader heard "edit text" and had to guess which of the eighteen on the panel it was.

    • Every field is now named: a <label for> where there is a visible caption, an aria-label on the two search boxes that have none. The protocol options are generated at runtime from <protocol>_gui.properties and had a caption pointing at a control with no id, which names nothing; the control now carries an id and the label points at it.

    • Everything that behaves like a button says so and is focusable, and Enter and Space activate it. One delegated handler per page, over role="button", dispatching the click those elements already answer — so a new one gets its keyboard for free. The predicate behind it is shared in js/dom.js so the two pages cannot drift.

    • The tabs are a tablist: role, aria-selected kept in step by switchTab, and aria-controls / aria-labelledby pairing each tab with its panel.

    • Four outline: none rules outranked the *:focus-visible ring in tokens.css on specificity, so the focus was invisible on every field they covered. Removed; the soft halo they were paired with stays.

    • Decorative icons are aria-hidden, and the one control whose only content is an icon — the Single page’s back arrow — gets a name of its own. That arrow was also a 12px hit target, half the --hit-min this project declares; it is a full one now.

    • A main landmark on both pages, an h1 on the Load Test page, which had none, and a title of its own for it — it shared one with the mode chooser, so two tabs open on them were indistinguishable.

      Expanding a tree node rebuilds the tree from innerHTML, which destroys the element that has the focus; from the keyboard that dropped the focus to the document and started the next Tab at the top of the page. The focus is now put back on the row that was acted on.

  • Vendor the icons and drop the CDN dependencies

    The three pages opened with six link tags to cdnjs.cloudflare.com and fonts.googleapis.com. This emulator is deployed into closed customer labs, so in the environment it is built for none of those six requests was ever buttons that carry no text at all and whose icon is the whole label, and the type fell through to whatever face the machine happened to have.

    Icons. static/icons.svg carries 46 symbols, referenced as <svg class="icon"><use href="/icons.svg#name"></use></svg>, at 104 call sites. The set was recounted rather than taken on trust: 47 fa- classes are used, of which fa-spin is a modifier, not an icon. Thirteen of the 46 are Font Awesome 5 aliases, so the path data was taken from whichever 6.0.0 symbol each alias resolves to in the very stylesheet the pages were loading (sync from arrows-rotate, times from xmark, shield-alt from shield-blank and so on), which means each vendored glyph is the one the browser was already drawing rather than one that merely shares a name.

    The height. An icon-only .btn-sm measured exactly the 24px --hit-min the token sheet declares, with nothing to spare: 6px of padding, a 12px content box, 6px of padding. That 12px box was Font Awesome’s doing — its sheet set line-height: 1 on an inline element inheriting the button’s font-size — and an <svg> carries no such rule. Left to a default it would have been a 150px replaced element, or a baseline-aligned inline box with descender space under it. So .icon states its box outright: 1em square, inline-block, flex: none, buttons, icon 12x12.

    Font. Inter is now one 47 KB woff2 in static/fonts: the latin subset of the variable font, byte for byte the file Google was serving for all four weights the pages asked for, so nothing about the rendering changes. Four static cuts would have been nearer 200 KB. The alternative, a system stack, costs nothing but leaves the typography different on every machine, which is half of what this task exists to fix. OFL.txt travels with it as the licence requires, and .gitattributes marks woff2 binary rather than trusting Git’s content sniffing under core.autocrlf.

    withBusy now swaps the symbol inside the icon instead of the element’s class: an <svg>'s className is a read-only SVGAnimatedString, so the old assignment would have failed silently. The width-pinning it did before is gone with the reason for it, since every .icon is the same 1em box whatever it draws.

    --font-mono needed nothing: task 1 had already replaced the JetBrains Mono and Fira Code the brief lists.

    StaticOfflineAssetsTest holds eight invariants, each proved by mutation: no subresource anywhere under static/ comes from off-origin; the sprite defines exactly the symbols that are referenced and no more; every .icon element resolves to one; the sprite parses as XML; and the button height is worked out from --sp-2, --fs-200 and .icon’s own height rather than assumed. That last one is the regression task 1 already shipped once. Two assertions in StaticLifecycleControlsTest and one in StaticResponsiveLayoutTest pinned the old spinner mechanism and now pin the new one.

    The XML check earns its place. The first draft of icons.svg explained itself in this project’s usual prose, double hyphens and all, which XML forbids inside a comment. Chromium fetched it, answered 200, logged nothing, and instantiated no symbol: all 104 icons blank, with every text-level check in the suite green. Only a parser or a browser can see that.

    Also folds in one word from task 2’s small-screen comment: "nothing scrolls inside it" named the document, under which reading it was false, and now names the devices panel it meant.

  • Replace inline alerts with accessible toasts

    Both web pages reported everything through a banner at the top of the body. It shifted the layout when it appeared, had no close button and no live region, and took itself away after three or four seconds — so a failure raised while the user was reading the log panel at the bottom of the screen was never seen at all.

    Feedback now goes to a shared stack fixed to the bottom-right corner (js/toast.js, css/toast.css). A success or an informational message clears itself after 5 s; a failure stays until it is dismissed, because it is usually the only account of why an action did nothing. At most three are on screen at once, each carries a close button, and the two live regions let a failure interrupt a screen reader while a success waits for the next pause. showAlert keeps its name on both pages, so no call site changed.

    Five catch blocks that swallowed the reason for a failed user action now raise one: clearing the server-side log buffer, saving a protocol option, reloading the transport options after a protocol switch, and the device and parameter loads behind the Single device modal. The polling and page-bootstrap fetches stay silent on purpose — a toast there would fire once per poll whenever the backend is down, and a connection indicator is the right answer for those.

    Also folds in two fixes from the review of the delegated-handler work. SingleMain.init() binds its delegated listeners before the first await, so a click landing while the initial fetches are still in flight is no longer dropped; and the escaping guard gained a pattern for handlers built by string concatenation plus a pin on the params-modal delegation, neither of which the interpolation pattern could see.

  • Show the server’s reason for a failed API call

    Both web pages invented their own explanation for a failure: Load Test mode answered a failed init with "May already be initialized." and a failed start with "Initialize first." - guesses from a bare status code, wrong as often as right. Single mode parsed the same errors two ways, sometimes as text and sometimes not at all, so half its endpoints could only say "Failed to …​".

    Both now read the uniform {"code", "message", "details"} body the API returns and show the message the server wrote, falling back to a generic text only when there is no body to read.

  • Report lifecycle failures with a uniform JSON error body

    POST /api/init answered 204 even when initializeEmulatorSession() gave up on an unreadable device tree: the failure went to printErrorMessage() and the method returned before setting initialized, so the Web GUI reported success for a session that does not exist. The state guards on /init, /start, /stop and /reset answered a bare 400 with no body at all, leaving the UI to guess the reason from the status code.

    Every failing API call now answers one shape - {"code", "message", "details"} as application/json - produced by a single @RestControllerAdvice: 409 for a state conflict, 422 for an operation the emulator could not carry out, 501 for a feature missing on this platform, 404 for a missing entity, 400 for bad input and 500 for anything unforeseen. initializeFromApi()/startFromApi() raise INIT_FAILED/START_FAILED carrying the last printErrorMessage() text, so the caller sees the real reason instead of a silent success.

    The advice is scoped to com.friendly.emulator.gui.api: an unscoped one would also catch what the static resource handler throws and turn a missing asset into a 500. Successful lifecycle responses stay 204.

  • Serve a landing page with Load Test and Single Emulator modes

    Web mode dropped the user straight into the Load Test SPA, with no way to discover the per-device UI. The emulator now opens on a landing page that offers both modes, the way the TR-069 emulator and the emul_m branch do.

    GET / landing page with the two mode cards GET /load the existing Load Test SPA (index.html) GET /single the Single Emulator UI

    The pages stay reachable under their file names too, since the static resource handler still serves that directory - as it does for the new /css/single.css and /js/single-*.js.

    The Single Emulator UI itself is the one from feature/single-mode; it needed no adaptation, because every endpoint it calls already exists here: it drives devices through /api/devices/startNew and the per-device lifecycle rather than through a global init/start, which is exactly the API ported in 959aea7. The landing page follows the TR-069 one: the cards link to the readable paths and the footer shows the build from /api/version.

    Verified in a browser against a local emulator in web mode: both cards navigate, the Single page renders its form from /api/config, /api/transportConfig, /api/configFiles and /api/storedDevices, the footer shows v.2.1.0 b.0.0.10, and the console is clean.

  • Port the per-device lifecycle API from feature/single-mode

    Brings the useful half of the long-lived feature/single-mode branch onto emul_docker: managing devices one at a time instead of only as a whole emulator session. The competing web UI (landing/single pages, its own WebOnlyApplication entry point) is deliberately left behind - emul_docker already serves an SPA from --web-mode.

    emulator-api - DeviceConnectionConfiguration gains protocol and parameterFile, so a device can run a different protocol / device tree than the session template; clone() now copies the properties map instead of sharing one instance across every cloned device. - Snapshot.DeviceSnapshot carries serverIp/serverPort/parameterFile/ protocol and tolerates unknown fields, so snapshots written by newer builds still load. - XMLParameterReader.readCached caches a parsed tree and hands out clones, so creating many devices from one XML stays cheap.

    + device-manager

    • RunSessionConfig.DeviceTemplate plus a protocol→factory map; the active and passive runners can build a session out of heterogeneous devices, each with its own ACS, tree file and protocol.

      gui

    • DeviceStorageService persists created devices to devices.json and IotDeviceController brings them back on init.

    • IotDeviceController: createAndStartDevice / startDevice / stopDevice / deleteDevice / createDevicesFromTemplates, a per-device client port counter, a shared thread pool that survives a reset, and the transport/MTP descriptor for the UI.

    • EmulatorRestController: 12 endpoints for per-device lifecycle, stored devices and per-device ACS retargeting.

      Adapted rather than copied verbatim: the default device tree is resolved through getEffectiveConfigFileName() so the activeConfigFile feature keeps working, the storage follows the controller config dir (single-mode wired that up in its own entry point), debug printlns became log statements, and the /lwm2m/deregister endpoint was dropped because emul_docker already exposes one.

      Reverted from the port: the /protocol and /start guard relaxations and the site-local getLocalIpAddress heuristic - all three change existing web-mode behaviour and are unrelated to the device lifecycle.

      61 new tests; full reactor green at 1856 tests.

  • Add a compose deployment with a per-service .env

    The FT_DISK table in the docs portal promises an iot-emulator/.env, and neither a compose file nor an env file existed in this repository — the guide taught docker run -e and run-docker.sh instead.

    Adds both with a single env layer: the emulator has no shared infrastructure, so there is nothing for a root .env to hold. The published host port stays literal in compose.yml, because the application never reads it and Compose cannot interpolate it out of an env_file.

    Defaults match the image, not run-docker.sh — the script deliberately binds to loopback, drops FT_TLS_AUTH to 0 and raises the heap.

  • single-mode headless REST device lifecycle + #88 local-IP/oscore/bootstrap fix + writable multi-instance fixtures

    Single-mode / headless enhancement: REST device lifecycle usable without the JavaFX GUI - DeviceTemplateDto/DeviceCreateDto/ServerUpdateDto, startNew / batch / delete / uploadConfigFile endpoints on EmulatorRestController, DeviceStorageService, WebOnlyApplication (--web-mode), and the single.html / landing.html web console.

    Headless config gap (#88) fixed so a device can actually be created + connect in a - getLocalIpAddress() now enumerates network interfaces and returns a concrete non-loopback site-local IPv4 instead of getLocalHost() (which resolves to 0.0.0.0/127.0.0.1 in a container and made OSCORE + the CoAP client refuse to bind, so startNew failed with "OSCORE won’t work for 0.0.0.0/127.0.0.1"). - configuration defaults: client.ip emptied (so getLocalIpAddress() is used), oscore=false and bootstrap default disambiguated - a headless UNSECURE device now registers directly instead of erroring on the ambiguous "true|false" placeholders. Pass protocolOptions:{"bootstrap":"false"} to force direct registration.

    + Fixtures: seed a WRITABLE multi-instance resource with instances in the default device tree - Portfolio /16/0/0 Identity (RW String, /16/0/0/0, /16/0/0/1) and ACL /2/0/2 (/2/0/2/1) - so an operator can exercise add-instance (Write) and delete-instance (Write-Replace) round-trips against a real emulated device.

  • Selectable DTLS Connection ID version (deprecated draft / RFC 9146)

    Add a 'DTLS Connection ID version' Protocol Option to the web emulator: default preserves today’s exact wire behavior (extension codepoint 54 + deprecated draft record AAD); the new 'current (RFC 9146)' value switches only the record AAD to RFC 9146. Both emit codepoint 54; the toggle is a no-op when CID is disabled. Vendored HelloExtension keeps codepoint 54 and parses both 53/54; vendored Record toggles generateAdditionalData AAD per flavor. Unit tests for the config mapping (default→draft/today).

  • LwM2M FOTA/SOTA demo console for the single-mode web UI

    Turn the emulator’s generic web parameter editor into a live demo console so an operator can drive and watch our ACS/bs FOTA (Object /5) and SOTA (Object /9) flows live from the emulator.

    Frontend (gui/src/main/resources/static/index.html, vanilla JS): - Per-device "Demo" console modal: live FOTA/SOTA state-machine steppers (FOTA /5/0/3 IDLE→DOWNLOADING→DOWNLOADED→UPDATING; SOTA /9/n/7 INITIAL→DL_STARTED→DOWNLOADED→DELIVERED→INSTALLED) + Update Result (/5/0/5, /9/n/9) + Activation State (/9/n/12) + FW/SW versions, refreshed via a 1s poll of the existing GET /api/devices/{id}/parameters. - SOTA instance resolved dynamically (lowest /9/<n> present), never hardcoded. - Fail-next / Update-Result pickers wired to the existing PUT parameters route. - Per-device Reboot (silent reconnect) + Deregister buttons. - Existing Parameters modal made live (polls + re-renders rows, preserving the filter); all pollers cleared on every close path and on a 404 (no leaks).

    + Backend (EmulatorRestController):

    • New POST /api/devices/{clientId}/reboot: 204 (LwM2M device → reboot()), 404 (not found), 409 (present but not a LwM2M device).

      Config:

    • lwm2m_resources.xml: friendly acs_name for the /9/0/* SOTA rows (Root.Software Management.0.*), mirroring the /5 convention.

    • lwm2m_gui.properties: surface fw.exec.reboot.silent, sw.download_package, sw.auto_update, unreachable_resources as Protocol Options; sw.auto_update value-order corrected to true|false so the UI default matches the runtime default (code review finding). notification.type stays a defaulted option so a missing value can’t silently drop Notify (FOTA state changes).

      Tests: reboot endpoint (204/404/409 + reboot-invoked-twice), resources XML acs_name parse, and getProtocolOptionsConfig type/default for the new knobs (guards the value-order == UI-default assumption). gui module 30 tests green.

  • Add silent-reboot FOTA mode (reboot without /5/0/5 result notify)

    Adds lwm2m.fw.exec.reboot.silent (default false). When enabled, the reboot-branch FOTA applies the firmware and reboots IMMEDIATELY without notifying updateResult=1 on /5/0/5 and without the 500ms settle sleep — so the server never sees a pre-reboot result and must reconcile post-reboot by reading the whole /5/0 instance. Exercises the ACS/bs post-reboot reconcile branch in rig e2e. Default-off keeps the original reboot-with-result path byte-for-byte; non-reboot and failure paths untouched.

  • Declutter web layout - taller Protocol Options + filter

    • Protocol Options: sticky filter box + compact multi-column grid + taller panel (was capped at 350px and squeezed to ~3 visible rows by the Quick Actions block below it).

    • Move Quick Actions & Config Files from the cramped left column to the bottom of the right column, so the Protocol Options list uses the full left-column height (~3 → ~11+ options visible at once).

  • Editable combobox for Server IP/Port in web UI

    Replace the <datalist> autocomplete with a visible editable combobox (input + caret + dropdown list) matching the desktop editable ComboBox: click the caret to see the <protocol>_gui.properties defaults, pick one OR type a custom value. applyPointerTargets now feeds the same combobox list instead of a datalist.

  • Server IP/port dropdowns in web UI

    The desktop app fills the Server(IP)/Port editable ComboBoxes with the per-protocol defaults from <protocol>_gui.properties, but the Web UI used plain inputs with no such list. Expose those defaults and offer them as <datalist> dropdowns so the Web UI matches the desktop.

    • IotDeviceController.getServerOptions() reads ProtocolProperties (ip/port non-connection lists), the same source as loadProtocolProperties

    • GET /api/config/serverOptions + ServerOptionsDto

    • index.html: <datalist> on the Server IP/Port fields, populated via loadServerOptions() in fetchConfig()

    • EmulatorRestControllerServerOptionsTest locks in the endpoint contract

  • Close web UI gaps vs desktop (param edit, config file, port pointers)

    Bring the Web GUI closer to desktop parity by wiring up capabilities that were stubbed or missing, and fixing a headless-mode toggle bug.

    • Parameter value editing: updateParameter() now calls the existing PUT /api/devices/{clientId}/parameters/{paramName} endpoint instead of showing a "not implemented" stub; keeps the params modal cache in sync.

    • fix: runtime toggles (logging / param-update / fail-response) never reached devices in web/headless mode. buildConnectionOptions read the null JavaFX checkboxes directly, forcing them to false. Now it uses the getters that fall back to the api* fields, and setFailResponseFromApi live-pushes to already-running devices (mirrors the desktop FX listener).

    • Active device-tree config file: add activeConfigFileName override plus GET/POST /api/activeConfigFile (validated, blocked while running) and a Config Files dropdown that selects which XML loads as the tree. Empty override falls back to <protocol>_resources.xml, so desktop is unchanged.

    • Protocol option →port / →ip expansion: getProtocolOptionsConfig now exposes pointer kind + value→targets map for select options, and the Web UI repopulates the Server Port / Server IP field on change (USP mtp, LWM2M transport), matching the desktop server-port refresh.

  • rig-support hooks - manual reg-update, unreachable-resources, bootstrap discover

    Emulator enhancements that unblock the ACS/bs rig-e2e ITs (no @Disabled fallbacks needed): - POST /api/lwm2m/update triggers a manual Registration Update on running LwM2M devices (mirrors the existing deregister hook) → enables the real Bug 3 "expired update → 4.04" wire proof. - lwm2m.unreachable_resources drop-gate (segment-exact prefix match) so a device can model an unreachable path → Bug 18 instance-delete-hang proof. - Object-level Bootstrap-Discover honored for the version-gate ITs. - Added LwM2M object model definitions (ft_models/*.xml) + Californium.properties.

    + Rebuilt as iot-emulator:e2e for the rig. Not pushed.

  • Make the Logs panel collapsible with a fullscreen viewer

    The inline Logs panel grew unbounded as messages arrived and could not be dismissed. Two complementary upgrades:

    Inline panel: - Height is now clamp(180px, 24vh, 260px) so it scales with the viewport instead of stretching to half the screen. - The panel becomes a panel-collapsible: clicking the header (but not the action buttons) toggles between full and just-the-header. - Collapsed state is persisted to localStorage. - A small "(N)" counter in the header shows how many entries are cached without having to expand.

    + New header actions on the inline panel:

    • Pause / Resume toggles the /api/logs polling. While paused the button highlights yellow; resuming triggers an immediate catch-up.

    • Expand opens a fullscreen viewer.

      Fullscreen viewer (modal):

    • 95vw x 92vh window with a sticky table header.

    • Live filter input filters cached entries by time / device / direction / event / options / payload (case-insensitive). A "M of N (filter)" counter shows hit count.

    • Shows the full payload, not the 200-char-truncated inline view.

    • Mirrors Pause and Clear from the inline panel, kept in sync with the inline Pause button.

    • Esc clears the filter first, then closes. Click on the backdrop also closes.

      A new _logEntries cache (cap 500) backs the filter so the modal can search without round-tripping the backend, and new polled entries are appended to both the inline table and the open modal (subject to the modal’s active filter).

  • Stream real protocol messages into the Web Logs panel

    In the desktop GUI the Logs panel shows every raw IN/OUT protocol message (CoAP/MQTT/USP/…​) via RawMessageObserver. In the Web GUI it was silently broken: registerListeners() attached the observer behind "if (enableLoggingChkBox.isSelected())", and that FXML checkbox is null in headless mode — so the first message NPE’d the lambda and nothing was ever logged. The Logs table only ever showed client-side action metadata ("Init", "Start", etc.) that the JS pushed locally.

    This change replaces the broken plumbing end-to-end:

    Backend: - IotDeviceController.registerListeners detaches the raw-message observer from the rendering guard and uses the existing getLoggingEnabled() helper (null-safe) instead of the FXML checkbox, so headless mode logs by default. - LogController gains a thread-safe in-memory ring buffer (ConcurrentLinkedDeque, cap 500) and a monotonic seq counter; addLog writes to both the buffer and the FXML table (when present); clearLogs() purges the buffer without resetting seq so clients can detect cleared state via the returned lastSeq. - New REST: GET /api/logs?since=<seq> returns incremental batches plus the latest seq for the next poll; POST /api/logs/clear empties the buffer and returns the seq the client should advance to. - DTOs: LogEntryDto, LogsResponseDto.

    + Frontend:

    • Logs table grows to the 6 columns from master: Time / Device / Dir / Event / Options / Payload, with IN/OUT colour accents.

    • pollLogs() runs every 2s from DOMContentLoaded, walks the seq, and appends only new rows (capped at 500 visible).

    • Click on a row opens a detail modal showing Options / Payload / Raw message in full (the analogue of master’s double-click on a row).

    • Clear logs now also calls /api/logs/clear and resyncs lastLogSeq.

      Also reverts the duplicate MTP <select> from the toolbar — the Protocol Options tab already exposes mtp via usp_gui.properties along with the secondary port selector, which the toolbar version did not replicate. And labels the Parameters tree action button with text so it isn’t just an icon.

  • Persist DB Extract creds, expose MTP selector, sort Parameters

    Three Web-GUI gaps versus the desktop app, all in one change:

    1. "Extract CPE from DB" credentials now round-trip through /api/config. ConnectionConfigDto gains dbAddress/dbPort/dbLogin/dbPassword/dbCatalog/ dbCpeSerial. AcsDatabaseConnectionController grows headless get/set helpers (mirroring the security-field pattern in IotDeviceController), and IotDeviceController persists them under the existing acs.* keys in gui_connection_options.properties on save and reloads them on startup. Save button no longer drops these six fields.

    2. MTP selector for USP. A second <select> in the Protocol toolbar section appears only when the active protocol is USP, lists STOMP / CoAP / WebSocket / MQTT via GET /api/mtp, and POSTs to /api/mtp/{type} on change. Pre-selects the current MTP from /api/config.mtp.

    3. Parameters modal now sorts entries alphabetically by name on open (case-insensitive, natural numeric order so "param10" follows "param9" rather than "param1"). The live filter and X-of-Y counter keep working.

  • Expand right column and grow the Update/Autoupdate/Rules tabs

    The right column was 280px wide and the Update param / Autoupdate / Rules mini-tabs were squeezed under "Extract CPE from DB" which ate ~45% of the column height regardless of whether it was being used. The result was ~50px-tall textareas that were unusable for editing param values, viewing history, writing JS rules or filling in autoupdate config.

    Layout changes: - right-panel widens from 280px to 380px (responsive: 340px ⇐1400, 300px ⇐1200) - "Extract CPE from DB" is now a collapsible panel and starts collapsed (click the header / caret to expand) so mini-tabs reclaim the full column height by default - mini-tab-content becomes a flex column with overflow:auto, so its contents stretch to fill available height instead of being capped

    + Content changes inside the mini-tabs:

    • Update param: paramValue textarea grows (min-height 100px, capped at 40% of the tab) and paramHistory grows (min-height 80px), both resizable.

    • Autoupdate: Min/Max/Step/Step type/Period/Deviation laid out as a 4-col CSS grid so labels line up, dataset textarea grows.

    • Rules: jsCode editor jumps from a fixed 140px to a grow-textarea with min-height 200px so writing actual JS is feasible; status pre-block grows from 80 to 100px.

      A small togglePanel(id) helper drives the collapse and a .grow-textarea utility class consolidates the resizable-textarea styling.

  • Enlarge Parameters modal and add live filter

    Parameters modal grows from a 700x400 box to a 90vw / 88vh panel (cap 1200px wide) with a sticky table header so column titles stay visible when scrolling long parameter lists. Long names and values wrap (word-break: break-all) instead of pushing the layout.

    A search input on top filters rows in real time by name / value / type (case-insensitive) without re-hitting the backend; a counter shows "X of Y" matches and an eraser button clears the filter. Esc clears the filter (or closes the modal when already empty), and clicking the dim backdrop also closes it. The modal now has a stable id so the "select parameter" action closes only this dialog instead of any fixed overlay.

    While here, HTML-escape parameter names / values / types when building rows so quotes in values no longer break the Edit button.

  • Port desktop autoupdate, rules, snapshot & rendering to Web UI

    Brings the Web GUI on emul_docker to parity with the desktop (master) FXML UI for settings that were missing or wrong:

    • Param rendering dropdown now matches the GuiRenderingType enum (FULL/LAZY/OFF) instead of the bogus LAZY/EAGER pair; option, plus the footer toggles (param update / logging / fail response), now round-trip through /api/config and are persisted in gui_connection_options.properties. Runtime changes go through the new /api/config/runtime endpoint so they work while the emulator is running.

    • Save/Load snapshot buttons next to Active Devices, backed by POST /api/snapshot/save and /api/snapshot/load delegating to EmulatorSnapshot via headless wrappers in IotDeviceController.

    • Rules mini-tab: full JS editor with Compile/Help buttons matching the desktop rules_pane.fxml, backed by GET/POST /api/rule and GET /api/rule/help; RuleController grows headless compileFromApi / getRuleCode / getHelpText.

    • Autoupdate mini-tab: full set of controls (autoupdatable, global, min/max, step, step type, period, deviation, randomize step type, dataset) plus Apply, replicating param_update_pane.fxml. Backed by GET/POST /api/devices/{clientId}/parameters/{paramName}/autoupdate and the new ParameterUpdateController.applyAutoupdateFromApi / findParameter; StepType is exposed as public enum with parse().

      IotDeviceController gets headless fallbacks for GuiRenderingType / paramUpdate / logging / failResponse so the rendering branches no longer NPE without FXML and the values survive a restart via saveConnectionPropertiesFromApi + loadApiFieldsFromProperties.

      Builds clean; gui module tests stay green (63 passing).

  • Surface transport security mode as a header badge

    The Web GUI exposes Unsecured / PSK / X.509 only inside the Transport Security tab. Users who configured the emulator straight from the toolbar (protocol + server IP + cert paths under the tab) never saw that the security mode itself stayed at Unsecured, so USP MQTT MTP connected via plain tcp:// to a TLS-only broker and failed with an opaque EOFException on the first read of the CONNACK.

    Adds a small, always-visible badge to the toolbar Status section that colour-codes the current mode (orange = Insecure, blue = PSK, green = X.509) and updates live whenever the radio button changes or /api/config is reloaded. Clicking the badge jumps straight to the Transport Security tab so the misconfiguration is one click away from being fixed.

    switchTab() was tightened to scope its querySelector to .tabs so the new badge — which shares the same onclick="switchTab('security')" handler — doesn’t accidentally receive the tab-button active class.

  • Expose FT_TLS_AUTH env var to toggle USP MQTTv5 MTP TLS mode

    Surfaces the existing ft.tls.auth JVM property (release 1.7.207) through a Docker-friendly FT_TLS_AUTH environment variable, defaulting to 1 (mutual auth). Setting FT_TLS_AUTH=0 falls back to server-only auth for the USP MQTTv5 MTP without touching JAVA_OPTS heap settings.

    • Dockerfile: declare ENV FT_TLS_AUTH=1 and pass -Dft.tls.auth to the JVM

    • emulator-assembly/run.sh, run.bat: honour FT_TLS_AUTH for non-Docker runs

    • docs (Antora): document the variable in installation and USP protocol pages

  • Add Device.IP.Interface tree to USP resources

    Declare Device.IP.Interface.{i}.IPv4Address.{i} object placeholders in both usp_resources.xml and USP_resources.xml so ACS can populate the Interface dropdown in the Group Update Diagnostics task picker (POST /iotw/Model/diagnostic/interfaces). Includes a commented-out Device.PPP.Interface tree for optional PPP-based diagnostics testing.

  • DEV-3071 - LWM2M/MQTT Emulation tool > Docker > USP > Add OOKLA speed test diagnostic support

Bug Fixes

  • startNew devices follow the session logging switch

    Devices created through POST /api/devices/startNew (and the start of a stored device, which uses the same method) took their request-logging flag from the desktop logging checkbox. In --web-mode that checkbox is absent, so the flag was always off and their CoAP messages, Register and its response included, never reached GET /api/logs.

    createAndStartDevice now uses the session path’s rule: Boolean.TRUE.equals(getLoggingEnabled()).

    EmulatorRestControllerStartNewLoggingTest starts a real LwM2M device through the startNew handler against an in-process CoAP server: - logging on: the Register (POST rd, ep) and its 2.01 response with the same token appear in GET /api/logs; - logging off, and logging never configured: after the Register is received, GET /api/logs is empty and the device does not log.

  • DEV-765 - LWM2M/MQTT Emulation tool > LWM2M > Monitoring on multiple instances resource > Empty value for instance > Mentioned instance is absent from "Notify" message

  • Racers get threads of their own, not the 2-CPU common pool

    dev’s "Build & Deploy on Docker" has been red since the feature/emulator-main merge (runs 38434383680, 38521759885, 38552383374, identical every time): EstEnrollmentTest$Status 2 errors and EnablerModelInvariantCells$SingleToMultiple 50 of 50 rounds, each at its backstop timeout.

    The cells handed two parties that must run at the same time to the ForkJoin common pool (CompletableFuture’s default, or commonPool().submit). The repo is private, so its GitHub runner has 2 vCPUs and the common pool ONE worker, and on JDK 25 CompletableFuture uses that pool even then. The second party queued behind the first, which was blocked at a barrier or inside a held exchange, until the backstop fired. A laptop has enough cores to hide it. The product is not involved. The reactor stopped at lwm2m-emulator, so nine modules had not run in dev CI since the merge.

    • EnablerModelInvariantCells: each concurrent cell runs its racers on a 2-thread pool of its own. TableUnderTwoWriters had been passing without a race on CI (the writers ran one after the other); it now starts both writers at a barrier.

    • EstEnrollmentTest$Status: the operation and the status() reader get their own threads. A 1 s deadline was the verdict; now it is that status() returns at all while the operation is held, with a 30 s backstop below the 60 s hold.

    • Guard: the root pom sets -XX:ActiveProcessorCount=2 for every test JVM of the modules that inherit it, so a laptop sees the runner’s pool sizes and goes red where CI does.

      Proof (Linux maven:3.9.11-eclipse-temurin-25, --cpus=2): original 85 run / 3 errors as in CI. Full mvn clean package with the fix: every module 0 failures. Guard: original tests + pin on a 14-core Mac 3 errors; fixed tests 0. Mutants synchronized removed (6-10 of 50 rounds), IntSortedMap.put unsynchronized (3-6 of 20 TwoWriters rounds).

  • The masked-template refusal says why, not what the server does

    The client refuses a template that holds the mask in one of the four fixed secrets or as any protocol option value, whatever its key. The message said the server would drop that secret, which is false for a mask under an option key the server does not treat as secret: there it stores the literal. The message now gives the reason that holds in every case: the mask is what the server returns instead of a secret, and a real value cannot be told from a mask that was read back. The Javadoc of maskedSecret() states what the server does in each case and that the client is stricter on purpose. No refusal is added or removed.

    Also: the no-host message names two more authorities java.net.URI cannot parse (a label that starts or ends with '-', a port that is not a number), and a cell pins the refusal of a mask under a key that does not look secret.

    Client module: 167 tests.

  • The control client refuses what it cannot send safely

    A device template read back from the stored devices carries the mask in place of its secrets, and the emulator drops a masked secret of a startNew and createBatch now refuse such a template before any request; DeviceTemplate gains toBuilder() to set the secret again and maskedSecret() to tell which component holds the mask. The Javadoc of the template, the stored-device list and the config update says which of the two the server does.

    create(URI, HttpClient, Duration) refuses a client that follows redirects (a followed redirect re-sends the body, secrets included, to another address) and a call deadline that does not fit a long of nanoseconds (the overflow surfaced after the request was in flight). A null request body fails locally instead of coming back as a 415, an I/O failure names the call, and the no-host message covers a host name with an underscore.

    Client module: 163 tests.

  • Pin the control client to Jackson 3.2.3

    The release gate was red on the 3.0.4 pin: osv-gate on the runner reported 20 vulnerability groups on jackson-core and jackson-databind 3.0.4, 10 of them HIGH/CRITICAL or unscored, with no fix on the 3.0 line. 3.2.3 is the version the FT test kit pins. No ignore entry is

    The job jackson-high becomes jackson-older-line: the client’s unit tests on 3.0.4, the line a consumer may still resolve through its own dependency management. Tests only; that line is never scanned and never published. deploy needs it as it needed its predecessor.

    Local, JDK 25: 137 tests on 3.2.3 (release profile, coverage met), 137 on 3.0.4, and the three contract classes (21 / 3 / 25) with the client compiled against 3.2.3 on the emulator’s Boot-managed 3.0.2.

  • Read the highest per-device port once when a session starts (N4)

    isEmpty() then Collections.max() raced a DELETE of the last held device and threw NoSuchElementException from /api/init. One stream read, configured port when nothing is held. gui 843/0.

  • R4b-2 fix 3 - JDK 27 pinning fork without pollerMode, TEST-4/6

    • TEST-5: the scale-on-pinning argLine takes ${ftemul.scale.pollerArg} (default -Djdk.pollerMode=2, JDK 25 only); a JDK 27 fork passes it empty, as the image runs. pom comment and loadtest README corrected.

    • TEST-4: the TEST-2 cell’s DisplayName names its real cut (both the re-arm guard and the stopped refusal).

    • TEST-6: selftest cell runs start_emulator with a stub docker recording the

  • A load-test stop stops the per-device devices it forgets

    /api/stop dropped devices created through POST /api/devices, POST /api/devices/batch and stored-device recreation from the device list without stopping them: they kept running unreachable and held their ports, so every later /api/init recreated stored devices on new ports and the session start crept upward. dropSessionDevices now stops each of them (a failed stop is logged with deviceId) and releases its port before forgetting it. Devices started on their own (POST /api/devices/startNew, POST /api/storedDevices/{clientId}/start) still survive a stop.

    Declared behaviour change (emul_docker): devices from POST /api/devices, POST /api/devices/batch and recreated stored devices no longer keep running after a load-test stop. Documented under POST /api/stop in api.adoc.

  • Stop per-device port drift; deregister details on request

    • A load session now starts past the highest port a per-device device holds (or at the configured port when none is held), never from the running counter, so sessions no longer creep upward while a Single device runs.

    • A per-device port is recorded only once its device exists, so a failed create (Single, /devices/batch, stored-device recreation) holds nothing.

    • POST /api/lwm2m/deregister keeps the rig’s 204/409; with ?details=true it answers 200 with DeregisterResultDto {deregistered, count} (single-mode shape, restored from 7b16a81). Nothing deregistered answers 409 either way.

      Known limit: a stored device recreated at each /api/init still takes a new port each time, because a session stop forgets batch/stored devices without stopping them (owner decision pending).

  • Keep a load session off the ports of per-device devices

    The previous fix started every /api/init session at the configured client port, which is what the rig expects, but a device created one at a time (Single mode, /devices/batch, a stored device) could already hold that port, and the session device then failed to bind it.

    Every per-device port now comes from allocateDevicePort(), which records it until the device is deleted or its start fails. A session starts at the configured port when no per-device port is held (the rig case, unchanged) and past the held range otherwise.

  • R4b-2 fix 2 - checkpoint F round 1 findings

    • COR-1/PERF-3 DtlsReceivePump.end() waits up to 5 s for the pump virtual thread (skipped from the pump itself; event=dtls-pump-join-timeout), so a PSK/X.509 endpoint stop releases its port before returning.

    • COR-2/SEC-1 emulator-capacity.sh ON JAVA_OPTS (on_java_opts) repeat the image’s --enable-final-field-mutation=ALL-UNNAMED; selftest cells.

    • PERF-1 untrack removes from the ready queue only a cancelled task.

    • SEC-4 over-limit WARN carries peer=<address:port>; SEC-5 the knob refusal echoes the value CR/LF-escaped, cut to 32 chars; SEC-6 enqueue cancels instead of starting work once shutdownNow ran.

    • TEST-1 ScaleMemoryGuardTest ceiling per runtime major, from -am matched 117 KB (108.5 vs 125.8). TEST-2 periodic task running at shutdownNow is not re-run; TEST-3 gate snapshot after one pass.

    • JDK 27: the scale-on executions fork on ${ftemul.scale.jvm} (default the build JDK); ScaleDelayPinningTest’s pollerMode precondition applies below JDK 27 only. README documents -Dftemul.scale.jvm.

    • Clarity: countIfOverLimit, comments, README over-limit row; docs scale-mode.adoc over-limit field list (deviceId, peer, sizeAtLeast, limit, count; first per endpoint start).

      Memory (emucap-native-measure.sh, local): NoSec 56.5 / PSK 64.2 KB per device (lines 62 / 72, PASS).

  • DEV-3172 - LWM2M/MQTT Emulation tool > USP > "Periodic!" events are absent

  • R4b-2 fix 1 - pump counts only received datagrams, UDP stop releases its port

    Adversary pass 1 on 4eece4d. - F1 DtlsReceivePump: the source address is cleared before each receive and only a datagram the socket delivered can count; a receive that returns without receiving (Scandium with no socket, a stopping connector) no longer logs a phantom event=dtls-datagram-over-limit that would invalidate an arm. - F3b VirtualUdpConnector.stop() joins the receiver virtual thread (bound 5 s, event=udp-receiver-join-timeout at WARN): the JDK releases a closed socket’s port only when the blocked receive returns, which a virtual thread does only once a carrier runs it. - F8 Dockerfile JAVA_OPTS: --enable-final-field-mutation=ALL-UNNAMED (the RegistrationEngine executor swap on JDK 27). - Cells: F1 phantom receive; F2 B’s delayed updates and A’s new views fire after A’s reboot (lifetime 4 s); F3 port released at stop() return with all carriers busy (connector + device twin); F4 ScaleMemoryGuardTest ceiling 126 KB between the matched pair (R4b-2 118.7/119.1, R4b-2 without C1 134.2/134.4, 1450600 137.0/137.6); F5 idle devices hold no worker and time on the carrier-sized JVM timer; F6 cancel(true) never interrupts the next task; F7 the knob reaches a real X.509 device’s pump (limit=1500).

  • Checkpoint F residuals R4b-1 + R4a (combined round)

    R4b-1: the GUI-override cell now runs the real ParametersUpdater on A for at least one period (1,000 ms) and then asserts B’s parameter and wire value unchanged; auto-update added to the I-3 cell-to-execution map. The encoder’s two shared escape lists refuse add() (new cells). The unused 5-arg ObjectResourceWrapper constructor is deleted. Comments: reference identity at the shared-model check, getResources is read-only, Lwm2mNetworkConfigs rejects values below 1. Resource.single is cleared after the conversion (readers read single before resources). R4a: TEST-7 pins ON-X509 N_max(K=4,16 GB)=81308 (by hand: 20327/container); TEST-8 pins the ON-NOSEC 8 GB fits 40000 / 17259 per container; TEST-9 the summary.md continuity sentence follows BUDGET_MB. Measure tool: a requested host-only X509 arm prints "VERDICT PASS (X509 not measured)" and exits 3. No operator-visible change in the emulator; loadtest output: summary.md continuity sentence names BUDGET_MB, and emucap-native-measure.sh exits 3 (was 0) when X509 was requested and not measured.

  • R4b-1 fix 2 - root write vs conversion under one monitor, adversary pass 2 cells

    N1: Resource root writes and the single → multiple conversion take the Resource monitor (reads stay lock-free on the volatile fields); the CAS + fold-in that could overwrite a concurrent root write (R1 lost to the copied R0) is gone. Race cell with a third root writer: RED at b83b93c with a yield hook between CAS and fold-in (green without the hook - the window is too narrow to hit unaided), green now. N2: two writers creating disjoint resource ids (RED with IntSortedMap.put unsynchronized). N3: A and B with different /3303/0/5700 - TLV READ, SenML JSON READ and Notify carry each device’s own value (RED with 5700<→5701 swapped in the shared model, and with the encoder wrapper bound to the first device). N4: X.509 cell asserts the presented DTLS leaf equals the device’s own /0/0/3 and differs between devices (RED with the first minted credential reused; a builder-only cache stays green - the presented identity follows /0/0/3). N6/N7: resource-instance DELETE (4.00) and Create-then-reboot (4.04) pinned to goldens captured at 13c933a. N8: the measure tool refuses a sink whose ready line is not bind=127.0.0.1 (exit 2); selftests for 0.0.0.0, a missing bind=, and a non-vacuous URL check. R4b-1 NoSec line 77. Local live heap per device (N=500 → 2000, sink e450580 bound to 127.0.0.1): NoSec 76.2 (line 77 PASS), PSK 95.7 (line 100 PASS).

  • R4b-1 fix 1 - pinning cell precondition, IntSortedMap snapshot, B3 restored, adversary cells

    ScaleDelayPinningTest: root cause measured - on JDK 25 (macOS default jdk.pollerMode=1) with ONE carrier a virtual thread’s timed sleep woke up to 7 s late (probe: Thread.sleep(2000) returned after 9156 ms, 0 pinned events); red identically at c70095b/13c933a, green when forked on JDK 27. The scale-on-pinning argLine now sets -Djdk.pollerMode=2 and the cell asserts it as its precondition (fails naming the JDK when unmet). IntSortedMap publishes keys+values as one immutable snapshot through one volatile field (copy-on-write put); the concurrent-write stress cell was RED 5/20 on 6cefe1d. multipleEntries folds the latest root with put. B3 knob-pushed edge: remainingRegistrationObjectInstances is no longer cleared at registration (pre-R4b behaviour). New cells: IntSortedMap unit, conversion race (10,000 rounds), WRITE-ATTRIBUTES on a server-Created instance (pins a behaviour change: applied now, dropped before - RED at 13c933a), replace-PUT ADD (4.05 today), resource- instance DELETE, Create after reboot, minted X.509 isolation, synthesized-overlay privacy, GUI-style override, gating set, A3 all keys + trim + device-level refusal, every endpoint config is a shared one, READ/DISCOVER /3303/0 goldens (captured at 13c933a). Behaviour change: ack_timeout=0 is now refused at device creation. Measure tool: sink started with -Demucap.sink.bind=127.0.0.1, negative slope → INVALID, static loopback / no-heap-dump selftests. Local live heap per device after this commit (N=500 → 2000): NoSec 76.0 (line 75: MISS by 1.0, the restored B3 set), PSK 95.5 (line 100: PASS).

  • R2 checkpoint F - run snapshot of identity switches, CA load

    • F-R2-COR-1: lwm2m.psk.per_device and lwm2m.x509.ca.keystore are read once per run (RunCredentialSettings, keyed on the run’s shared device pool) so a mid-run protocolOptions push cannot flip an identity on the next reboot or wake (D-API-3)

    • F-R2-COR-3: validity_days ending after 9999-12-31T23:59:59Z is refused at CA load

    • F-R2-PERF-2: a failed CA load is cached for the run: one WARN with the stack, later starts fail fast with the same one-line message

    • F-R2-SEC-N2: per_device refuses a template PSK master under 16 bytes

    • F-R2-TEST-1: mixed-case endpoint cells (CN keeps the case)

    • F-R2-CLR-1/2: run → runKey, WHY comments on the run slot and the Register-endpoint call sites Every new cell shown red by mutating the line it guards.

  • re-send an undelivered send_resp Notify with the Controller’s back-off

    A Notify (Boot! included) sent while the controller was down was lost once the MTP gave up (CoAP: Californium after ~93 s). With Subscription.{i}.NotifRetry true (send_resp=true), an MTP delivery failure now re-sends the same record - same msg_id - after USPNotifRetryMinimumWaitInterval x (USPNotifRetryIntervalMultiplier/1000)^(n-1) seconds, until the subscription’s NotifExpiration would be exceeded or the subscription is deleted. NotifRetry false/absent (the ftacs default) is unchanged: one send, nothing retried. Known limit: a delivered Notify whose NotifyResp never arrives is not re-sent.

  • Join the bulk push query with '&' when HTTP.URL already has one

    The HTTP bulk push always appended "?eid=…​", so a collector URL that carried its own query (a token, a tenant) got a second '?' and its last parameter value was corrupted. The agent’s parameters now follow '?' only when the URL has no query, '&' after an existing one, and nothing when it already ends in '?' / '&'.

  • Restart the bulk data timer when a profile’s interval, phase or Enable changes

    Only an Add of Profile.{i}.ReportingInterval scheduled the profile timer; a USP Set on ReportingInterval, TimeReference or Enable left the old timer running. Those three parameters now restart it on Add, USP Set and the emulator’s own setValue, with the first report aligned to TimeReference + n * ReportingInterval (Unknown Time → a full interval). A restart keeps the data already buffered for the profile; before, schedule() replaced the job and dropped it.

  • Reject an Add whose obj_path is not a table with 7018 / 7026

    The table check in AddMessageHandler was commented out, so an Add on a single-instance object or an unknown path created a fake "<obj>.1." instance. The live tree cannot decide it (an empty table has no node yet), so the supported data model is the authority: a path with no "{i}." table definition fails with 7018 Object not a table when the object exists, else 7026 Invalid path - as an Error (allow_partial=false) or an OperFailure (allow_partial=true).

  • Reconnect the WebSocket MTP with the bounded STOMP back-off

    The WebSocket connector made one connect attempt in start() and threw on failure, and a dropped session was never re-opened. Every failed attempt and every closed session now schedules the next attempt with the TR-181 back-off (MqttConnectRetryPolicy via MtpConfigurator, as STOMP); start() waits up to 20 s for the first connect, then leaves the chain to the background (as STOMP) and fails only when max_attempts is exhausted; onConnection fires on every opened session, off the Tyrus I/O thread, so the agent re-sends its Boot! after a reconnect. Options usp.mtp.ws.retry.initial_interval=1, interval_multiplier=2000, max_interval=30, max_attempts=0 (unlimited), the STOMP defaults. CoAP is connectionless and gets no reconnect: Californium retransmits each confirmable request and re-handshakes DTLS per send.

  • Bound the STOMP and WebSocket MTP connect with a timeout

    The STOMP connector opened its TCP (and TLS) socket with new Socket(ip, port), so a broker that never answers the SYN held an attempt for the OS default (~8 s on macOS loopback, minutes on Linux) and kept the retry chain from moving. It now connects with Socket.connect(addr, timeout). The WebSocket connector waited Tyrus' 30 s default for a peer that accepts TCP but never answers the upgrade; that wait now uses the same timeout. Option usp.mtp.connect_timeout (seconds, default 10). A WebSocket peer that never answers the SYN stays bounded by the Tyrus Grizzly container’s fixed 30 s.

  • Push scheduled HTTP bulk data with TR-181 Method and Basic auth

    A BulkData profile added the way the ACS adds it (Enable=true, HTTP.URL as a relative Add parameter) never pushed: the dispatchers only fired on Enable "1", not on the TR-369 boolean "true". Add also stored relative parameters under a flat dotted name ("HTTP.URL"), so a Get/Set on Profile.N.HTTP.URL failed with 7004 and a seeded (hierarchical) profile could not push. Add now creates the HTTP./MQTT. sub-objects, the dispatchers read Profile.N.HTTP.* by relative path, and the HTTP push honours HTTP.Method (POST default, PUT) and sends Basic auth when HTTP.Username is provisioned.

  • Retry the STOMP MTP connect with bounded TR-181 back-off

    The STOMP client made one connect attempt and never retried: a failed initial (or heartbeat-triggered attempt-0) connect threw inside an executor task and was swallowed, leaving the reconnect guard set forever, and a failed reconnect could not schedule its successor because the same guard was still set. Every failure now schedules the next attempt of the chain with the TR-181 ServerRetry back-off (reusing MqttConnectRetryPolicy); external triggers still fold into one chain; a broker that accepts TCP but never answers CONNECT times out after 10 s and counts as a failed attempt. Options (seconds): usp.mtp.stomp.retry. initial_interval=1, interval_multiplier=2000, max_interval=30, max_attempts=0 (unlimited).

  • Apply HTTPS trust per connection, never JVM-wide

    HttpBulkPushDispatcher installed a trust-all SSLSocketFactory as the JVM default when its class loaded, i.e. whenever a UspClient was built, so every HttpsURLConnection in the emulator trusted any certificate and the ED-4 option usp.upload.tls.trust_all could not be proven strict. The static init is gone; bulk data push now honours its own option usp.bulkdata.tls.trust_all (default true = previous behaviour: any certificate, any host name) per connection through HttpUtils.configureTrust, and the upload keeps usp.upload.tls.trust_all.

    Known delta: the LwM2M HTTP(S) firmware pull no longer inherits trust-all when a USP client happens to share its JVM.

  • Number TR-181 instances from 1 and never reuse a number

    MultiResource.addInstance handed out 0 for the first row of an empty table and reused a deleted top number. TR-181 / TR-369 agents number instances from 1 and do not reuse a number while the agent lives: the allocator now continues from the highest number ever assigned by the table (seeded rows included). InstallDU routes both SoftwareModules tables through the same allocator instead of a hardcoded .0. row. No option: no ftacs USP rig cell depends on instance 0 or on reuse (PR-3 is number-agnostic, AddCertificate cells match by serial).

  • VirtualUdpConnector loop contract, boundary, restart; pump stop log

    Adversary round on R1 (F1-F7), each cell red first: - F1: the virtual receiver and sender follow UDPConnector’s NetworkStageThread contract - any Throwable is logged (ERROR, key=value) and the loop goes on, so a throwing receiver, an unresolved destination or a throwing onSent no longer ends the thread while the connector runs. A message that cannot be sent fails its own callback. - F2: the receive buffer is packet size + 1, as UDPConnector$Receiver, so a 2048-byte datagram is delivered and only a longer one is dropped. - F7: each loop serves the socket it started with and only the sender is interrupted, so a fast stop/start never lets an old loop use the new socket. - F3: a pump failure after deactivation is a normal stop (DEBUG), not the once-only WARN. - F4-F6: mode-ON connector choice and the pumped secured endpoint, a double reboot (NoSec, PSK) with the replaced I/O threads ended, and the shadows resolving on the gui classpath.

  • /api/logs/clear returns the seq read under the clear lock (ED-6)

  • /api/logs reads entries and lastSeq in one locked snapshot (ED-6)

    lastSeq came from a separate unlocked read, so a poller could be handed a seq whose entry was not yet buffered and skip it forever.

  • AddCertificate() as a pure synchronous command (ED-3)

    Empty req_output_args on success, no input echo into the data model, no OperationComplete; rows numbered by the shared MultiResource allocator; execute() serialised.

  • Upload failure paths and trust_all default (ED-4)

    Any exception now reports TransferComplete! 7003 instead of escaping; a failed upload sends no OperationComplete (parity with the pre-ED-4 behaviour). usp.upload.tls.trust_all defaults to true: uploads always inherited the JVM-wide trust-all factory HttpBulkPushDispatcher installs, so strict trust is opt-in.

  • Cap NSLookupDiagnostics() NumberOfRepetitions at 100 (ED-1)

  • Assign log sequence and enqueue atomically (ED-6)

    A getLogsSince(lastSeq) poller could skip an entry enqueued after a higher seq.

  • Keep the saved protocol options across a protocol switch

    Switching the protocol through the API cleared the protocol options and left the saved ones out. The desktop puts them back in loadProtocolProperties, but that runs through Platform.runLater, which headless mode drops. In the Web GUI this had two effects:

    • After LwM2M → USP → LwM2M the Protocol Options tab and a new device used the lwm2m_gui.properties values (lifetime 6000) instead of the saved ones (lifetime 3600).

    • POST /api/protocolOptions saves the whole option map. The first option changed after a switch therefore removed every other saved option from gui_connection_options.properties.

      setProtocolFromApi now restores the saved options right after the clear, as the headless start-up already does.

  • The replaced client never registers after an X.509 bootstrap

    Rig 2026-10-01 (rig-est-t5-dev-01, C5 rerun 4, two runs): bs bootstrapped the device over X.509 (status=SUCCESS) and its Register reached bs, then a second emulator-side register NPEd at CaliforniumLwM2mRequestSenderWrapper.send:84.

    Root cause: restartClientAfterX509Bootstrap runs inside onBootstrapSuccess on the old client’s Leshan bootstrap task; it destroys that client and starts a new one, which registers. Leshan 1.0.0-M12’s ClientInitiatedBootstrapTask then still runs registerWithRetry for the bs-written DM server (destroy’s interrupt is swallowed by awaitTermination on its own thread), and the sender dereferenced getEndpoint(null), which is null once the endpoint is destroyed. Not EST-specific: a factory-certificate X.509 bootstrap hit the same NPE, and so did a registration timeout (onRegistrationTimeout stops the client, the retry sent through it).

    • sender: both send paths go through startedEndpoint(); an absent endpoint is a SendFailedException, which every RegistrationEngine request path handles (no observer call, no retry once stopped): the replaced client’s register is refused unsent

    • tests: composed cells (real start(), real Leshan bootstrap over DTLS X.509 against an in-process bs + DM, Bootstrap-Write + Finish, the real restart), EST and factory-certificate devices; RED at f0e9fbb with the rig NPE; exactly one Register at the DM port; the registration-timeout sibling; re-bootstrap after the restart pinned as a known limit; sender guard cells (stop/destroy, sync/async, started control); each cell named by an executed mutation

  • POST /api/config honours "secure":false

    Rig 2026-10-01 (X509TrustBindingIT NoSec cell, also at 4268774): a device started with "secure":false towards bs:5683 sent DTLS records and bs banned it. POST /api/config never read the secure field; the device’s secure flag is derived from the security mode, so the X509 mode of an earlier X.509 config stuck (the rig’s NoSec body carries no securityMode).

    • ConnectionConfigDto.secure is a Boolean: false selects NoSec (mode NONE) whatever securityMode says; absent keeps the mode (the web UI never sends it); GET /api/config reports secure from the mode

    • the device layer was already right: a NoSec start that still carries an X.509 mode, keystore and valid EST identity opens a plain CoAP endpoint (characterization cells; DeviceChainEndpointFactory and EST not involved)

    • tests: real REST + device controller + StartEndpointProbe (the device start order and Leshan’s real endpoint creation); RED at 66d1f2e with a DTLSConnector on 5683; X.509 and PSK starts unchanged; each cell named by an executed mutation

  • EST identity in a bs-written X.509 instance before finish

    Rig 2026-10-01 (rig-est-t5-dev-01): bs bootstrapped an EST device and wrote /0/1 as X.509 without /0/1/3 and /0/1/5; Leshan 1.0.0-M12 RegistrationEngine runs ServersInfoExtractor.getInfo at bootstrap finish BEFORE onBootstrapSuccess, where the EST mirror ran, and NPEd at getClientCertificate:222. The device never registered.

    • Lwm2mObjectInstanceEnabler.write: a bs write to object 0 calls the device’s Bootstrap-Write seam (EstDeviceLink.bootstrapWrote)

    • the valid EST cert/key go into whichever of /x/3, /x/5 an X.509 instance lacks (absent or empty), at every bs Security write, read as Leshan reads it

    • a non-empty bs-sent /x/3 or /x/5 is kept: never filled over and its instance is left out of every later mirror (supersedes the SDD’s "EST replaces a bs-provisioned identity"); a device without a valid EST identity is unchanged

    • tests: 7 composed cells (objects built as start() builds them, bs writes through Leshan’s enabler, then getInfo); RED at 66d1f2e with the rig NPE; every cell named by an executed mutation; the per-device kept set not being cleared by a later bs session is a declared limit pinned by a live cell

  • Send the X.509 client certificate chain, not the leaf only

    Leshan 1.0.0-M12 CaliforniumEndpointsManager.createEndpoint rebuilds a server’s DTLS identity from /0/x/3 alone, so a device whose keystore entry holds [leaf, issuing, intermediate] sent "client certificate chain [length: 1]" and bs (Scandium 3.14) could not build the path to its root.

    • CaliforniumEndpointsManagerWrapper wraps the endpoint factory and gives the connector back the device builder’s chain when it starts with the same leaf; any other identity (keystore-less, bootstrap-written /0/x/3, PSK) is untouched, Leshan’s server pin and all settings are kept

    • ClientCertificateChain.presentable: leaf + CAs, self-signed roots omitted (RFC 5246 7.4.2), used by the keystore setup and the EST path

    • EST presents the leaf + its /crts issuing CA; CAs above the issuing CA are not sent (known limit, pinned by a live cell and documented)

    • tests: connector config and a real Scandium handshake against a root-only server; each cell names the mutation it kills

  • EST outcomes as events, status built on read, stale-entry and expired-leaf fixes

    • start-time EST failures (incl. CONFIG and endpoint-case-collision) reach the device observers as onEvent, never onError: the fleet runners treated onError as a device failure (port released, next device started twice); a CONFIG refusal is reported once per effective settings

    • EstStatus is built on read, so GET …​/est reflects a fleet URI/pin change, notAfter passing on a stopped device and overrides on a detached entry

    • a device whose endpoint changes detaches its previous registry entry

    • an issued leaf already past notAfter is VALIDATION leaf-expired; the plan after a success is built from the issued validity

    • guards: pin/fault change honoured on start with a retry pending; mirroring asserted per instance; est-unexpected-error logs the class, never the message

  • EST schedule and identity defects found at checkpoint F

    • a changed effective URI/pin/fault is honoured on start even with a renewal pending; a credential counts only for the URI it came from

    • the notAfter switch arms with the delay rounded up and decides the switch from the plan, so a failed /sen still reboots onto the factory identity

    • renew-too-early past the halfway point backs off instead of re-arming now

    • an expired EST identity mirrored into bs-written Security instances is replaced by the factory identity

    • a non-EC factory key (Scandium IllegalStateException at connector build) is CONFIG unsupported-factory-key; an unexpected RuntimeException is recorded and re-armed instead of killing the schedule or the device start

      Each fix has a cell that was red before it.

  • Report a registration again after a refused one

    UspDevice cleared "registered" only on stop(), so once the controller refused an onboarding it had first answered with an empty NotifyResp (the FT ACS’s double reply, now an error since be0b6f3), the next accepted onboarding skipped onSuccess: the device came back CONNECTED but kept showing "→ error". onError now clears "registered".

  • Keep protocol options when the same protocol is re-selected

    The Single page posts /api/protocol/{name} before every startNew. That call cleared every changed protocol option and reset the ports even when the protocol did not change, so a device created from the page never got an option saved in Protocol Options — e.g. the Ookla speed test switch (usp.diagnostics.ookla): the tree came up without X_T_SpeedTest.

    Re-selecting the current protocol is now a no-op; switching to another protocol still resets the options as before.

  • Fail onboarding when the controller answers with an Error

    The FT ACS refuses a registration (e.g. 7003 "Endpoint already exists") by answering the OnBoardRequest twice under one msg id: an empty NotifyResp and a NotifyResp-headed Error body, in either order. UspClient.handleError was a no-op and the onboarding listener removed itself after the first answer, so the empty NotifyResp won and the device showed CONNECTED / "registered" while the ACS had refused it.

    handleError now hands an Error for the current OnBoardRequest to its listener; an accepting answer keeps the listener so a later Error still fails the registration (err_code/err_msg in the reason), the first Error ends it. A new onboarding replaces the previous listener atomically. Also drops the NPE the old listener had on a null record.

  • Apply a Set with allow_partial=false all or nothing

    With allow_partial=false the emulator wrote each parameter while walking the Set and, when a later one failed, answered with the Error but kept the values it had already written (and had told the CRUD listeners about them). TR-369 wants such a Set to change nothing. Since the previous commit this also made a failed Set irreversible for a writeOnceReadOnly empty Alias failed on the read-only Name but left Alias = "fw-a", now read-only, so the Controller’s retry was rejected.

    SetMessageHandler now runs a check pass first when allow_partial=false (same resolution, access and type checks, no value written, no listener called) and applies the Set only when that pass has no failure. allow_partial=true is unchanged.

    Tests: SetMessageHandlerTest - a failed allow_partial=false Set leaves a read-write value and the CRUD listeners untouched, and leaves an empty writeOnceReadOnly parameter settable (both failed before), plus an all-valid allow_partial=false Set is applied once. Run outside Maven with JDK 25 + JUnit 6.0.1 + Mockito 5.20: all 417 tests of com.friendly.usp.client and com.friendly.usp.common pass.

  • Pin the Protocol Options filter bar to the top of its scrollport

    The previous commit pulled the bar over .tab-content’s padding with a negative margin, which was half the answer: sticky holds the MARGIN box at the offset, so with top: 0 the bar simply moved down by the same 10px and the rows still scrolled through the strip above it. Measured on the test server at every scroll position, the gap stayed at 10px and an option row sat in it.

    The offset is now negative by that padding as well, which puts the bar’s border edge on the scrollport edge: the gap is 0 and the strip is the bar’s own padding at every position from 0 to the end of the list.

  • Stop options scrolling through the Protocol Options filter bar

    The filter bar is sticky at the top of the tab it filters, but .tab-content pads itself and a sticky top: 0 pins below that padding. The rows scrolling under the bar stayed visible in the strip above it, which reads as a half-drawn option sitting on top of the filter — with 26 USP options the tab scrolls in the 176px the panel gives it, so it showed on every scroll.

    The bar is pulled over that padding and pads itself back by the same token, side margins included, so what it covers is the whole gap.

  • Store every Ookla result field even if a listener fails

    storeOoklaLastResult walked the result with Map.forEach and fanned each SET out with Set.forEach, so the first data-model listener to throw — on Status, the first key — ended the walk: the other eleven fields never reached Device.IP.Diagnostics.X_T_SpeedTest.*, while the OperationComplete the ACS received carried all of them, and a later Get returned a mix of new and stale values. Each listener is now called on its own and a failure is logged, so it costs neither the remaining fields nor the other listeners.

    The body of the scheduled completion task moves out of the listener lambda into completeDiagnostic(), which takes that lambda back to four levels of nesting. The latch is released in a finally block, so a register() that ever throws cannot leave the single executor thread waiting forever.

  • Keep the Ookla NOTIFY when storing its result fails

    The completion task for X_T_SpeedTest() called storeOoklaLastResult() and notifySubscribers() with no error handling: a RuntimeException from either one (e.g. a data-model listener throwing during the CRUD fan-out) silently killed the scheduled task before the OperationComplete NOTIFY went out, leaving the ACS to wait out its 180 s timeout with nothing in the log to explain why. Both calls are now wrapped so a failure is logged (command path, command key, exception) and the NOTIFY is still sent; notifySubscribers() failures are likewise logged instead of vanishing into the executor. The claim-then-notify latch logic is unchanged.

    Also: a focused test pins store-before-NOTIFY ordering (proven by a swap-and-restore mutation of the two calls); two stale comments now mention the vendor X_T_SpeedTest() alongside the TR-181 diagnostics they used to describe exclusively; and the Ookla rate/latency keys in usp-vendor-extensions.xml are declared as string, matching what a failed run actually stores in them (the PDF defines no types).

  • Register a diagnostic before its completion can run

    With usp.diagnostics.ooklaDurationMs=0 (a legal value: durationMs() allows parsed >= 0), the scheduled OperationComplete task could run on the single-thread periodicExecutorService before the calling thread reached pendingOperations.register() for the same operation. claimForCompletion() then found nothing to remove, so no last result was stored and no OperationComplete was sent — the entry that register() went on to add was never claimed, leaking a pending operation (a later cancel would wrongly send Canceled), and the ACS would wait out its 180 s timeout. Every prior diagnostic delay was >= 300 ms, which made the ordering accidentally safe.

    The scheduled task now waits on a CountDownLatch that register() releases right after storing the future, so claimForCompletion() can never run before the entry exists. cancelOperation() interrupts the future with mayInterruptIfRunning=true; if that interrupt arrives while the task is still waiting on the latch, the task restores the interrupt flag and returns without storing or notifying, leaving the Canceled notification to cancelOperation() as before.

  • Bring an opened panel into view in the column that scrolls it

    Extract CPE from DB is taller than the left column is ever given — 364px of form against the 260px the middle of the page keeps on a 900px window — so opening it left the column scrolled where it was: under the tabs the panel showed its heading and 32px of hint, and nothing else. a09b72b made the column scroll, so the form was reachable, but a panel that answers a click with two lines of grey text reads as one that did not open, which is how it was reported.

    The column is now scrolled so that the panel starts at its top edge, which puts four of the six fields in view and leaves the rest a short scroll away. It is scrolled by hand rather than through scrollIntoView: that scrolls every scrollable ancestor, .app-body among them, and would move the whole page under the pointer to show a panel in one column.

    Bound for every .param-tool in that column, not for the one panel: the rule it answers is the column’s (.left-panel in css/load.css), and the right column’s tools size to their share of their own column and never need it.

  • Give the collapsible panels a scrollbar, and the left column one too

    Opening Extract CPE from DB on the Load Test page took the device form off the screen and put its own Extract button out of reach. Measured in a browser against the deployed test server at 1600x900, where the middle of the page is the 260px floor .main-content carries: the tabs panel — flex: 1 1 auto against min-height: 0 — was squeezed to 2px, so Device, Transport Security and Protocol Options vanished rather than scrolled, and the 364px Extract panel ran 114px past the bottom of a column that clips, with no scrollbar anywhere to bring the button back.

    Underneath that sat a second defect the same page had been carrying in silence. All three of these panels are <details>, and a browser that implements ::details-content — Chrome since 131, Safari since 18.4 — lays everything after the <summary> out inside an anonymous box of its own. That box, not .param-tool-body, is the panel’s flex item: the body’s min-height: 0 and its shrink applied to nothing, it took its natural height, and .panel clipped what fell past the panel’s edge. So overflow-y: auto on .param-tool-body had never once produced a scrollbar, in any of the three. Autoupdate in the right column was a 289px body inside a 117px panel with its Apply button 203px below the

    Two rules answer the two. .param-tool::details-content becomes the flex column the panel used to be, which hands the body the height it is allowed and with it the scroll — that is what fixes Autoupdate and History as well. And .left-panel scrolls rather than clips, with a floor under the tabs panel so that it cannot be handed away to the panel below before that scroll is ever reached for. A browser without ::details-content drops the first rule and keeps the layout it always had.

    Checked in a browser at 1600x900, 1600x700, 1024x768 (stacked) and 760x800 (flow): the column scrolls to the Extract button, the tabs panel holds 180px, the Autoupdate body scrolls 257px of content through 76px, and with the panel closed the column gains no scrollbar. Two guards pin both rules, each proved by reverting the rule it pins. load.css sits on its 800-line cap, so its comments stay terse and the reasoning lives in css/param-tools.css.

  • Give the desktop Extract the sequence the web one has

    Task 7 built AcsTemplateExtractor for POST /api/acs/extract and left the desktop button on its own copy, which spec.md:39-41 listed as defects the plan has to close. That copy deleted the tree file before writing it, so a setup whose tree file is not there yet — a fresh configuration directory, or an active-config-file name never written before — failed the whole extraction through catch (Exception) with "Can’t load a template =⇒ <the path>"; it wrote <protocol>_resources.xml rather than the active device tree, so on a setup using the active-config-file feature it silently filled a file Initialize does not read; it never cleared XMLParameterReader’s cache, so the next Initialize served the old tree anyway; it never closed the AcsService, leaking the JDBC connection; it let a blank serial through to the database, because only null counted as missing; and for a protocol with no AcsService it did nothing at all and said nothing.

    The button now delegates to the extractor, so both paths run one sequence and there is one place to fix the next time. What stays is what the extractor has no business knowing: the running-emulator dialog, the desktop’s messages, and disableSecurity() on success, which has no web equivalent. Failures are now reported through printErrorMessage rather than printStatusMessage — the desktop’s own idiom for a failure, already used two lines up for the missing serial, and the reason the status line shows it in red.

    The extraction moved behind loadParamsTemplate() so it can be tested without a that call. buildAcsConnectionOptions reads the same null-safe getters the REST layer uses instead of the JavaFX fields directly, which is what lets the test drive it, and an empty port box now means 3306, as it does over REST, rather than a NumberFormatException dressed up as a template failure.

  • Stop a rule from reaching arbitrary Java classes

    POST /api/rule takes a JavaScript body from anyone who can reach the port — the emulator ships no authentication of any kind — and runs it on every parameter update. The engine was built through ScriptEngineManager with no ClassFilter, so one line of Java.type('java.lang.Runtime') read the mounted keystores, the ACS database password and anything else the container user can reach. At 20b4106 that was inert because JDK 25 has no Nashorn; this branch brings nashorn-core back and makes it live.

    Nashorn is now looked up as a factory rather than by name, because a ClassFilter can only be given to it when the engine is created, and the filter denies every class. The documented contract is unaffected: param, device and ctx are host objects passed as bindings, which a ClassFilter never sees, and Java.type / Packages. appear nowhere in the sources, the static assets or the docs. -Dft.rules.java=1 restores the old behaviour, read when the engine is built so it takes effect on the next compile — the same idiom as ft.tls.auth.

    The refusal arrives as a bare ClassNotFoundException wrapped in a plain RuntimeException, which names the class but reads like a missing jar, so a blocked rule is now reported as "A rule may not use the Java class X. Start the emulator with -Dft.rules.java=1 to allow it." Every other rule failure is passed on untouched.

    NashornEngines is a separate class so that RuleCompiler still loads on a build without nashorn-core — the trimmed build RuleCompilerNoEngineTest pins — and still takes its "no engine" branch; isEngineAvailable() answers off the same lookup as before.

  • Show that the three collapsed panels open

    Extract CPE from DB, Autoupdate and History are <details> served closed, and their <summary> carries .panel-header, which is display: flex. Any display other than list-item drops the ::marker triangle a browser draws beside a summary, and nothing replaced it: a browser pass on the built image found the pointer cursor to be the only affordance, and that one needs a hover to find. So the features this branch exists to restore read as inert grey headings, while the Logs panel on the same page does carry a caret.

    Each summary now ends with that same caret - #chevron-down from the sprite, turned -90 degrees while the panel is closed, with .panel-collapsible’s transition - so a section that folds looks and moves the same wherever on the page it sits. The rules are scoped to .param-tool > summary, because .panel-header also heads plain <div> panels that never fold, and they go in css/param-tools.css because css/load.css is at the 800-line cap. list-style: none states that the native triangle is unwanted rather than merely absent, so a browser that draws one anyway does not draw it beside ours.

    The two guards that own these panels pin the markup and the closed-state turn, and both failed before the change.

  • Do not let a failed bind cost a device its autoupdate

    Both onRegistration observers bind the device’s parameters before they register the autoupdate schedules and update the tree row. Binding copies the device’s live parameter map, a plain HashMap that the protocol’s IO thread keeps writing to (Lwm2mDevice, CoapDevice), and List.copyOf also rejects a null element, so the copy can throw. Anything thrown there skipped the rest of onRegistration, and that device silently spent the rest of the run with no autoupdate and no row - a failure nobody would connect to its cause.

    The binding is now best effort and logged; registration carries on. Rules and history are not lost for good either: the creation observer binds every parameter the device makes afterwards.

    The third call site, in registerListeners, is left as it was on purpose: it runs before the device starts, when nothing else is touching its maps, and a failure there is a real setup failure that the start path should report rather than swallow.

  • Keep Single mode autoupdate across a session stop

    A session Stop deliberately keeps the devices started through Single mode context and in the parameter history. Their autoupdate did not survive it. stopUpdate(false) went through ParametersUpdater.stop(false), which cancels every schedule there is and clears the registry, so a standalone device came out of a session stop still listed, still connected, still reporting

    The cancellation is now filtered: everything but the parameters of the devices the session does not own. The filter runs over the updater’s own registry rather than over the devices, so a session parameter is cancelled even when its device no longer lists it - the old clear() guaranteed that, and losing it would leak a live schedule per stopped device across a run.

    Both call sites are fixed. The desktop one is reachable too: the REST API serves Single mode while the window is open, as the comment above dropSessionDevices in onReset already says. onExit keeps stopUpdate(true), which is a full shutdown of the pool and must stay global.

  • Answer an unknown CPE serial with no parameters

    getCpeIdBySerial() took .get(0) of the id query’s result unconditionally, so a serial the ACS database has never seen threw ArrayIndexOutOfBoundsException instead of a clean "nothing to extract" answer — the case the web extractor needs to turn into a 404 CPE_NOT_FOUND rather than a 500.

  • Time out an unreachable ACS database

    An extraction now runs from a REST request thread, not the desktop’s own process. Without connectTimeout/socketTimeout on the MySQL JDBC URL, a wrong or unreachable database address held that thread for the operating system’s TCP timeout — minutes on Linux — instead of failing fast with a clear error.

  • Drop a late autoupdate or history answer after a new pick

    loadAutoupdate() and refreshParameterHistory() (js/load/param-tools.js) captured current.clientId/current.name only to fire the request, then wrote the response straight into the Autoupdate form / History list once the await resolved — without checking that current was still the same parameter. Pick parameter A, reopen the Parameters window before A’s /autoupdate or /history answers, and pick parameter B: current becomes B immediately, but A’s late response still overwrote B’s form fields or history list a moment later while Apply/Refresh themselves correctly kept acting on B.

    Both functions now capture const target = current; before the await and compare current !== target after it, in both the success path and the catch, dropping the write (and the error toast) once the pick has moved on. applyAutoupdate() already sends its request for the parameter picked at the moment of the click, so it keeps writing its success toast/log/ status unconditionally, but now names the applied parameter from that captured target rather than from current, which may have changed by the time the response comes back.

    Pinned with a new StaticParamToolsTest test asserting both guarded functions contain "current !== target"; confirmed RED against the pre-fix source (1 failure) and GREEN after the fix, with the rest of the Static* package (216 other tests) unaffected throughout.

  • Give a cloned parameter its own value listeners

  • Keep a rules.js that does not compile from stopping startup

    With no real engine, RuleCompiler.compile could never throw, so RuleController.setConfigDir calling it unguarded was safe. Now that it runs on real Nashorn, a broken rules.js found at startup would throw RuleBadSyntaxException straight out of setConfigDir and take the whole emulator down with it.

    setConfigDir now catches that one exception, logs it, and leaves no rule active instead of failing startup. The failure is recorded on lastCompileError so GET /api/rule can say why, and a lastRuntimeError field (set via the new recordRuntimeError) covers a rule that later fails while running; both are cleared by the next successful compile, whether from the API or the desktop UI.

  • Keep Single mode devices through a load-test init and stop

    A device started from Single mode (POST /api/devices/startNew or /api/storedDevices/{id}/start) runs outside the load-test session, and the session treated it as its own:

    • Init recreated every stored device, Single ones included, and the copy took the running device’s tree item. The running device stayed connected with nothing in the emulator able to reach it. The same replacement was reachable through POST /api/devices/batch.

    • Stop and the desktop Reset cleared the whole device map after the runner had stopped only its own devices, so a Single device vanished from the API (404) without ever being stopped. The desktop Reset also shut down the shared pool that device runs on.

    • The Load Test page read only the session flags and showed "Stopped" beside a connected device.

      The controller now tracks the client IDs started through createAndStartDevice. Recreation on init skips a client ID that is already running, createDeviceFromTemplate refuses one, and both Stop paths drop only the session’s devices from the map and the rule context. The desktop Reset keeps the shared pool while Single devices run. GET /api/status gains an additive standaloneDeviceCount, which the Load Test badge shows as "N devices active" when no session is up; the lifecycle buttons still follow the session alone, and the Stop question no longer counts the devices Stop leaves running.

      Reproduced on test-agent-oracle (5bb8cde): Init replaced the running USP device with an unstarted copy (port 56830 → 56832, CONNECTED → DISCONNECTED), Stop then left it unreachable (404).

  • re-check a stop after writing CONNECTED

    onRegistrationSuccess and onUpdateSuccess checked stopRequested, and then wrote CONNECTED. A stop() that set stopRequested and wrote DISCONNECTED between those two steps was overwritten. With stop(false) no deregistration callback fires to correct it. Both callbacks now read stopRequested again after the write and fall back to DISCONNECTED.

    Also moves the HashMap import in the connection-state test out of the static imports.

  • Clear the confirmation again just before a restart

    The MQTT and STOMP connectors dispatch requests on two-thread pools, and CoAP on Californium’s executor, while a Reboot() or FactoryReset() runs on one of those threads. A controller request served on another thread after revivedStop() had cleared the confirmation confirmed the agent again. That survived the two-second pause and the restart, so the new session read CONNECTED before the controller had said anything.

    reboot() and factoryReset() now restart through restartAfterRevivedStop(), which reports onRestart() once more just before start(). The firmware-activation reboot takes the same path. A test delivers a controller request from the connector’s own stop(), the call revivedStop() makes right after the first clear, and checks that it no longer carries over into the new session.

  • Confirm on any controller request, clear on reboot

    A registration error is reported for any failed MTP send, not only a refused onboarding. After one such error, a device whose MTP recovered, and whose controller kept talking to it, read Not connected until it was restarted.

    UspClient now reports a confirmation from the single place incoming requests are dispatched: any request whose fromId is the configured controller endpoint confirms the agent, in every mode. Responses do not count, and neither does anything the agent sends itself. So with onboarding and late registration both off, a device is UNKNOWN only until the controller first sends it a request.

    A Reboot() or FactoryReset() that UspClient performs by itself now reports onRestart, a new default listener method called from revivedStop(), and it clears the confirmation until the controller confirms again.

  • Reconnect on an accepted update, disconnect after stop

    Leshan 1.0.0-M12 retries a timed-out update once without registering DISCONNECTED, and onUpdateSuccess did nothing, so a healthy device read Not connected until it was restarted. An accepted update now sets CONNECTED again, unless a stop is under way (the same guard as a registration success).

    stop(boolean) wrote DISCONNECTED before it set stopRequested. Stopping the object instances' observations runs in between, and a Register accepted in that window left CONNECTED on a stopped client. The write now follows stopRequested = true and still comes before the client is stopped. The test fires that Register from the observation stop itself.

  • Report connection only on the controller’s confirmation

    getConnectionState() read the registered flag. With onboarding off, the MTP connection event sets that flag on its own: for the CoAP MTP this is a local server starting, before any packet is sent. The device read CONNECTED although the controller had never answered it.

    A separate confirmed flag is now set only by the controller’s two confirmations. The first is its NotifyResp to the OnBoardRequest, reported through a new UspClientRegistrationListener callback, a default method. The second, with late registration, is the agent’s answer to the controller’s Get of Device. A registration error, stop and start clear the flag. While unconfirmed, the state is DISCONNECTED when one of the confirmations is expected, and UNKNOWN when onboarding and late registration are both off. The registered flag behaves as before. A dropped MTP connection is still not detected: UspClient’s disconnection handler is empty.

    The MTP connector is now built behind a package-private seam, so the tests run the real start() on a connector that opens no socket.

  • Report connection from Leshan’s callbacks, not a flag

    getConnectionState() read the connected flag, which only deregistration and stop clear. After the server goes away, an update times out, the client registers again, that Register times out, and the device stops its own Leshan client, yet it still read CONNECTED with a status line saying "registration timeout".

    The state is now its own field, changed only by the Leshan callbacks: a registration success sets CONNECTED, and registration or update failure or timeout, deregistration and stop set DISCONNECTED. It starts DISCONNECTED and is reset on start. The connected flag is untouched, as it still gates late registration. With late registration the device is CONNECTED as soon as the Register is accepted.

    The observer moves from inside start() to a per-device field, which start() registers on each new client, so tests drive the callbacks Leshan calls rather than setting a flag.

  • Shrink the Single protocol field so it fits at 400px

    With six devices across six different protocols — the emulator’s own count — the header’s protocol field alone ran ~9px past a 400px window even after .header-right learned to wrap: flex items default to min-width: auto, which refuses to shrink a box below its content’s width, so wrapping the row does not shrink an unshrinkable item inside it. min-width: 0 on the field’s wrapper lets it shrink; overflow-wrap: anywhere (not break-word, which does not reduce a flex item’s own minimum size) lets its text break inside a protocol name in this worst case, never in a realistic one.

    Also updates the served-markup guard the field’s own class now appears in, and adds Single’s markup to the responsive-layout guards.

  • Let the bottom bar wrap instead of overflowing at 400px

    bottom-bar (four runtime toggles against the build badge, justify-

    stayed one nowrap row at 400px on Load Test, the same defect the header had, in the band below it: the build badge ran past the right edge with nothing to scroll it into view. The docked log table was also suspected, but read from its own container’s overflow: auto correctly and needed no change — confirmed empirically, both before and after this fix, with the log table’s fixed column widths present either way.

    Both rows now wrap. Nothing changes at >=1024px: the log panel and bottom bar measure the same height before and after (288px, 40px at 1440px).

  • Let the app header wrap instead of overflowing at 400px

    header-right on Single were display:flex with no flex-wrap, so at a

    400px viewport the connection indicator, the version badge or the protocol field, API Docs and User Guide stayed on one line and ran past the right edge with nothing to scroll them into view.

    Both now wrap. Above 1024px the row still fits on one line and the header measures the same height as before (61.6px on Load Test, 52px on Single, at 1440px).

  • Label the connection indicator as the page’s own link

    "Connecting…​" / "Connected" / "Disconnected" sat next to the device count, and users read "Connected" as the device being connected to its server — a per-device fact this indicator has never tracked. It is the browser page’s own link to the emulator (js/connection.js’s own header comment says so); only the words misled.

    Online and offline now read "Emulator online" / "Emulator offline", and the indicator carries a title in every state explaining what it is — appending the existing "Last error" detail while offline rather than dropping it. The served initial label on both pages now matches the module’s own spelling of "Connecting…​" instead of the … entity, so first paint and the runtime placeholder agree.

    Updates the two header descriptions in the user guide to match.

  • Show the Single page header’s own device protocols

    The header’s protocol field read status.protocol, the emulator-wide protocol chosen on the Load Test page’s selector. Single Emulator mode runs one device per protocol, independent of that selector, so on a stand with the selector left at LWM2M and a lone USP device running here, the header read LWM2M beside "1 device active".

    The field now reads the distinct protocols of the active device list (GET /api/devices), sorted and joined with ", ", recomputed whenever that list is fetched or repainted rather than only on the next status poll, and shows an em dash with no active devices. Its wrapper carries a title explaining what it shows.

  • Redact a device tree’s path when it fails to parse

    A malformed device tree left the emulator’s absolute configuration directory in the error body. XMLParameterReader wraps any JDOM parse failure, and the resulting JDOMParseException/SAXParseException carry no FileNotFoundException or FileSystemException in their chain — the only shapes FilePathRedaction knew to cut — so the file’s file: system ID, percent-encoded, went out untouched. Reached from an unauthenticated POST /api/devices/startNew, POST /api/init and the other device-create routes once a client uploads a tree that does not parse.

    FilePathRedaction now also collects a SAXParseException’s system ID while walking the cause chain (JDOMParseException.getSystemId() only forwards to it, so no JDOM-specific branch is needed) and percent-decodes a file: URI before cutting it to its file name, so leaking the directory or the escaped form. Covered by new unit tests for the URI shapes and by end-to-end tests that parse a real malformed XML file through startNewDevice and through INIT_FAILED.

    Also fixes a stale test comment that described the shipped configuration where the test actually runs against an empty @TempDir.

  • Read the offline banner’s text colour from the tokens

    The colour guard named its stylesheets one by one, and css/connection.css was not among them: the offline banner painted its text #ffffff by hand with nothing reading the line. The scope is now every sheet under static/, so the next one is read without being listed.

    Two shared sheets keep a hex fallback beside every token they read, so that they stand on their own without css/tokens.css. Exempting fallbacks everywhere would have let a colour back into the four sheets that may carry none, so only those two may, and only as a fallback — and a new test holds each fallback to its token’s own value, or the exemption would hide a colour the palette no longer has.

    The banner now reads var(--text-inverse, #ffffff). The token has one definition, #ffffff, and there is no dark theme, so the colour on screen is the same as before.

  • Give the Load Test tab strip roving tabindex

    The tablist promised one stop in the Tab order (role="tab", arrow-key navigation already worked) but shipped three: every tab carried its own default tabindex, so Tab visited Device, Transport Security and Protocol Options one after another instead of letting the arrows do that job. switchTab() now writes tabIndex alongside aria-selected and the .active class — 0 on the selected tab, -1 on the other two — so a mouse click, an arrow press, and the Insecure badge’s jump into Transport Security all agree on which tab Tab reaches from outside the strip. The initial markup ships tabindex="0" only on the tab that is already aria-selected="true" and .active, so the three sources agree from first paint.

  • Give a failure without a message a sentence of its own

    The controller passes an exception’s message on, and an exception thrown without one was answered {"message": null}. The Web GUI’s readError and the MCP server’s contractError both look for a message, find none and fall back to the body, so the user saw the raw JSON - where the old bodyless answer had at least given the page’s own fallback text.

    errorBody now answers a null or blank message with a sentence made of the code: DEVICE_STOP_FAILED reads "Device stop failed.". It covers every handler that builds the error body, the IllegalArgumentException one included, the same way handleUnexpected already defaults to "Internal server error".

  • Answer every REST failure with the error body

    46 failure answers of EmulatorRestController went around ApiExceptionHandler: bodyless 404s for an unknown device, parameter or stored device, plain-text 400s from the configuration and per-device endpoints, bodyless 409s from the LwM2M deregister and update triggers, and the upload/delete result object with success false. The Web GUI and the MCP server got an empty body or a bare sentence where the contract promises {code, message, details}.

    Each is now thrown as an EmulatorOperationException and answered by the advice, with the status it had before. The code names the reason where it is known (DEVICE_NOT_FOUND, EMULATOR_NOT_STOPPED, CONFIG_FILE_NOT_FOUND, …​); input the endpoint checks itself stays BAD_REQUEST. Messages keep their text, and the create, start, upload and delete messages still have file paths cut. Successful answers, the upload/delete result object among them, do not change. EmulatorOperationException gains badRequest and serverFailure for the 400s and the two 500s.

    The tests that pinned an empty body or a string now pin status, code and message, and a source guard fails the build when a failure answer is built by hand again. POST /api/rule’s compile result, a RuleDto the Rules page renders, is left as it is.

  • Cut file paths from failed upload and delete messages

    POST /api/uploadConfigFile and /api/deleteConfigFile answer an I/O failure with "Failed to …​ file: " plus the exception’s message, and a java.nio failure’s message is the file’s path: the configuration directory in full, which may be an absolute one given on the command line. Both messages now go through FilePathRedaction, as the per-device endpoints' do.

  • Keep the cause of an init failure for the REST answer

    initializeEmulatorSession reports a device tree it cannot read through printErrorMessage, and only that text reached INIT_FAILED. The text is "Can’t create a device. " plus the ParameterParsingException, which names the tree by its absolute path, and with no cause behind it FilePathRedaction had nothing to find the path in: POST /api/init on a protocol whose tree is missing answered with the configuration directory in full.

    The last error is now kept together with the failure it was built from, in one field, and initializeFromApi and startFromApi throw that failure as the cause. The text the status bar and the desktop show is unchanged. The rule-execution error carries its exception the same way.

  • Ship client.ip=0.0.0.0 instead of one machine’s address

    client.ip is the local address the CoAP, LwM2M and USP devices bind to, and an address that is set is used as it is. gui/configuration shipped 192.168.43.51, an address on one developer’s machine, so devices failed to start everywhere else. 0.0.0.0 makes the emulator pick the local address that reaches server.ip, as emulator-assembly/configuration already does. server.ip is left alone: it is the operator’s setting, and Kubernetes overrides it with SERVER_IP.

    The Server IP lists of lwm2m, mqtt and usp offered 192.168.43.51 twice; the second copy is gone.

  • Use the configured directory in the config-file endpoints

    GET /api/configFiles and POST /api/uploadConfigFile, /api/deleteConfigFile and /api/activeConfigFile worked in a hard-coded relative "configuration" directory, while the rest of the application uses deviceController.getConfigDir(), which the first command-line argument overrides. Started with another directory, the emulator loaded its device trees from one place and listed, uploaded and deleted them in another. The endpoints now ask the controller on every call, since setConfigDir can change the answer. Delete still refuses a bad name before anything is looked up.

    EmulatorRestControllerConfigFilesTest ran against the real gui/configuration, wrote probe files there and put back what it had touched. It now works in a @TempDir, and the restore code is gone.

  • Name a file, not its path, in API error messages

    A device that cannot open its keystore or truststore reports the stream’s own message, "/opt/ft/certs/client.ks (No such file or directory)", and the REST layer handed it to the client unchanged: in the plain-text 400 of the per-device create and start endpoints, and in the error body when the failure reached ApiExceptionHandler (START_FAILED, or the USP X509MutualStore’s IllegalArgumentException and IllegalStateException). The API has no authentication, so the layout of the host’s or the container’s file system went to anyone who could reach the port, and into every toast and MCP answer.

    FilePathRedaction now cuts each path that a FileNotFoundException or a java.nio FileSystemException in the cause chain names down to the file name, and logs the full text at WARN. Nothing else in a message changes, and neither do the status or the form of the body. Keystore paths are still accepted wherever they are, and the protocol modules' own messages, which the desktop shows, are left as they were.

  • Answer 409 NOT_STARTED to a parameter write before Start

    PUT /api/devices/{clientId}/parameters/{paramName} read the name out of device.getParams(), and a device builds that map only in start(): after Initialize it is null, so the write failed with a NullPointerException and a 500. It now answers 409 NOT_STARTED in the error body, like the other state conflicts, and the Web GUI and the MCP server show its message instead of an internal error.

    Documented in the endpoint’s @Operation and in api.adoc.

  • Let an encoded slash in a parameter name reach the API

    An LwM2M parameter is named by its path (/3/0/13). The Web GUI and the MCP server put that name into the URL with encodeURIComponent, so it arrives as %2F3%2F0%2F13. Tomcat 11 rejects %2F in a path by default and answered with its own HTML 400 before Spring saw the request, so "Set value" and both autoupdate calls failed for every LwM2M parameter.

    A connector customizer now sets encodedSolidusHandling to PASS_THROUGH. Spring maps on the raw request URI and decodes the captured {paramName}, so the controller receives /3/0/13 unchanged. DECODE would route too, but it turns the %2F into a separator in the path Tomcat decodes and normalises for itself, where an encoded ../ in a name becomes a path step.

    The new test boots a real embedded Tomcat through Spring Boot’s own auto-configuration and sends the encoded requests over a socket. The other tests call the controller directly or through MockMvc and never see the connector.

  • Three small fixes in the shared scripts

    • Dom.clearOnEscape: an Escape pressed while an input method is composing cancels the composition, and it also emptied the whole filter. The key is now left alone while event.isComposing, the way js/modal.js already treats it. StaticModalTest’s pin on the early-return line carries the new condition.

    • The fullscreen log’s Clear chained .then(renderLogFs) on clearLogs(), which already repaints both views: a second repaint, and one after a Cancel as well. The branch is now the bare call, and StaticLogPanelTest pins it that way.

    • Api.uploadConfigFile and deleteConfigFile called response.json() unchecked, so a proxy’s HTML error page surfaced as "Unexpected token '<'". A shared fileResult sends a failed response through apiError, so readError stays the one reader of a failed body, and parses an accepted one inside a try. StaticCrossPageConsistencyTest pins that order for both methods.

  • One heading, glyph and wording for what both pages share

    Task 8 made the parameter write "Set value" on both pages, but the panel above the button still read "Update param" on Load Test and "Edit Parameter" on Single, and the two buttons drew different glyphs. Both panels are now headed "Set value" and both buttons draw the edit glyph; the floppy disk stays Save settings' picture. The docs headings follow ("Set a Parameter Value", "Set value"), with the anchor kept so no xref moves.

    The other pairs the final review found: - Single prefixed every error toast with "Error: " and Load Test did not. The prefix is gone; a toast says it is an error by its colour and role. - The back link went to /landing.html on Single and / on Load Test. Both now go to /, which serves the landing page. - API Docs opened a new tab only from Load Test. It now does from all three pages, with rel="noopener". - The fail-response tooltip and its docs row now say DUSUN inherits MQTT’s manual acks and CoAP has no such mode.

    + StaticTerminologyTest retires the two old headings in markup and docs and holds the back link to "/". The new StaticCrossPageConsistencyTest holds each panel heading to its own button’s name, the two buttons' glyphs to each other, bans a string literal opening with "Error: " and requires the new-tab link on all three pages.

  • Read the last hand-written colours from the token sheet

    Phase 1’s retired greys survived in markup that task 4 moved into script and in a few inline style attributes: the Load Test modals, the "(empty)" value cell, "No parameters match the filter", "No protocol options available", the first-paint "Select a protocol" hint, the device counter and the log Pause button’s old warning pair. #999 on white is 2.85:1, under the 4.5:1 text needs.

    Each literal is now its token: tertiary greys → --text-3, secondary text → --text-2, field and divider borders → --border, white → --surface-0, the Pause pair → --warning-bg / --warning-fg.

    Task 1’s guard named its scope as a list of stylesheets, which is how this slipped. The hex scan now covers what is served: every script under static/js and every page whole, which holds every inline style attribute. Character references such as ▾ read as colours to that scan, so they are stripped first, and a canary proves the stripper keeps the markup around them.

  • Refuse to delete anything but a device tree

    POST /api/deleteConfigFile cut the requested name down to its last path element and deleted whatever it named in the configuration directory. devices.json (the device library), rules.js and every <protocol>_gui.properties were one request away, and "." or ".." named the directory itself.

    The endpoint now takes the bare name of an .xml file and nothing else. ConfigDirFiles gains requireDeviceTreeName next to the requireFileName check the parameterFile fix added, and the name is then resolved inside the directory with resolveInside. A refusal is an IllegalArgumentException, which the advice answers with 400 BAD_REQUEST in the {code,message,details} body, before the active tree is consulted or any file is touched. A directory named x.xml now answers "File not found" instead of being deleted.

    The tests name the real files the defect reached and prove they are still there afterwards, restoring them byte for byte if a regression ever deletes them. A *_resources.xml delete still works.

  • Keep the CPE Amount section still while the total is typed

    The live device total sits in the CPE Amount title, and the section is a flex column sized by its content, so typing moved the page: a ten-digit total widened the section from 360px to 409px, and at 1024px pushed Status from x=391 to x=440. Letting the title wrap instead made a 1,000,000-device total grow the toolbar by 13px.

    The title now carries cpe-amount-title: contain: inline-size, so the fields below decide the section’s width, and nowrap, overflow hidden and an ellipsis, so it stays one line. Measured at 1366x768, 1024x768 and 768px wide: no section, row or toolbar box moves for any value; "20 x 100 = 2000 devices, a large run" shows whole, and a longer total is cut after its number. No responsive floor is changed. StaticDeviceTotalTest pins the served class and the rule.

  • Refuse a parameterFile that is a path, not a file name

    POST /api/devices/startNew and /api/devices/batch handed template.parameterFile to IotDeviceController, which read configDir + "/" + parameterFile. A name such as ../x.xml, ..\x.xml on Windows or an absolute path read any XML file the emulator’s account could reach — the same class of hole as the protocol name, on the same endpoints.

    ConfigDirFiles now accepts only a bare file name (no / or \, no .., no colon, no control character, not ".") and resolves it against the configuration directory, requiring the normalised result to sit directly inside it. Both endpoints refuse anything else with 400 BAD_REQUEST in the phase-1 error body before any file is touched, and the two places the controller builds the path resolve through it too, which also covers stored records recreated on Initialize: such a record is skipped with one warn line, no stack trace. A bare name from the configuration directory, as the Single page’s picker sends, works as before.

  • Pause every poll while its tab is hidden

    A Load Test tab asked for its status every 10 s and for new log entries every 2 s, and a Single tab for its devices and status every 5 s and its device library every 15 s, whether or not anyone could see it — 42 and 28 requests a minute per forgotten tab, against an emulator that is itself the thing under test.

    js/poll.js now starts every interval on both pages, and one visibilitychange listener per page stops them all while the document is hidden. Coming back, each task runs once straight away and then resumes, so a returning tab does not show minute-old state for another interval; a task registered in a tab opened in the background waits until the tab is shown. StaticPollingVisibilityTest pins the scope — the only setInterval anything serves is the mechanism’s — as well as the four registrations, both branches and the load order.

  • Remove the Single page’s dead per-device options chain

    The per-device Protocol Options dialog existed only in script: nothing in single.html declared #deviceProtocolOptionsModal and nothing called openDeviceProtocolOptions, so its one route in handed Modal.open() a null. Its overrides were never read either — buildTemplateFromForm sends only the transport choice — so giving it markup would have built a dialog whose settings reached no device. Removed: its state, open, save and render branches, the override styles and the mask constant only it used.

    saveConfig, heartbeatAll and clearStoredDevices had no caller on the page; they go too, with Api.clearStoredDevices, which nothing else calls. DELETE /api/storedDevices stays for API clients. StaticModalTest now counts five opens and five closes.

  • Show the device total beside Groups and Concurrent

    Initialize creates Groups x Concurrent devices, and the page never said devices, and the first sign was the host running short of memory.

    The CPE Amount title now carries the live total, computed the way IotDeviceController computes it and updated on every keystroke and whenever the form is filled from /api/config, which sets the fields without an input event. An empty or unusable field shows no total rather than NaN, and above 1000 devices — a UI heuristic, not a limit — the total says "a large run" in the warning colour. StaticDeviceTotalTest pins both sources of the fields, the formula and the single writer of the total.

  • Settle the phase-1 leftovers in count, upload and escaping

    The Single page wrote #deviceCount before renderDeviceList decided to defer its repaint for a running card action, so the counter showed the new count over the old cards. It is now written together with them.

    A failed /api/configFiles left knownConfigFiles empty, and the upload’s overwrite question then passed without being asked. The list is now null while unknown, and the upload asks anyway.

    js/dom.js now says where escapeHtml is safe — element text and quoted attribute values — and names the places it is not: unquoted attributes, URL attributes, inline handlers, script and style bodies.

  • Check a device template’s protocol before reading its file

    POST /api/devices/startNew and /api/devices/batch handed template.protocol straight to ProtocolProperties, which builds <dir>/<name>_gui.properties by concatenation. A name such as ../outside read a properties file outside the configuration directory, and an unknown name cost a warn-level stack trace per request.

    Both endpoints now match the name against the Protocol enum, in any case, before anything reads a file. An unknown one is refused with 400 BAD_REQUEST in the phase-1 error body; a known one is written back in its canonical spelling, since the device is then created with the case-sensitive Protocol.valueOf. A stored record naming an unknown protocol is not refused — one bad record must not take GET /api/storedDevices down — but masked by the name rule, with no file read and no stack trace.

  • Refuse a value for a parameter a rule has frozen

    updatable is the rule engine’s freeze flag and the only writability the model has, and Parameter.setValue silently ignores a write to a frozen parameter. PUT /api/devices/{clientId}/parameters/{paramName} still answered 204 and called device.update, so the Web UI, the REST API and the MCP tool all reported a value that was never set.

    The endpoint now answers 409 PARAMETER_NOT_UPDATABLE in the phase-1 error body and leaves the device alone. The Load Test parameters window gains a Writable column whose Edit is disabled for a frozen parameter, and the Single page disables Set value for one; both say why. The new response is documented in the OpenAPI annotations, api.adoc and the user guide.

  • Name the parameter write’s error after Set value

    The fallback message js/api.js raises when a parameter write fails without a body of its own still said "Failed to update parameter", the action’s old Load Test name. It now says "Failed to set the value", like the button and the success toast on both pages.

  • Count devices only from the list the counter labels

    /api/status counts every tree item, one whose device is not built yet included, while the device list counts the devices it shows. Both polls wrote the Load Test counter, so it could disagree with the rows under it until the next device poll. Only fetchDevices() writes it now.

  • Give Upload and Set value one look on both pages

    Uploading a device tree was blue on Load Test and grey on Single, and writing a parameter value was "Update" on one page and "Save" on the other, each confirmed by a different toast. Both Uploads are btn-primary now, and both parameter writes are "Set value", reported by the same toast.

    StaticTerminologyTest holds every action both pages offer — upload, set value, start, stop and heartbeat — to one colour class across the two screens, and to one name where its controls are captioned, rather than pinning one page’s literal.

  • Open the docked log tall enough for five rows

    The docked log opened at clamp(180px, 24vh, 260px): 184px on a 768px-high window, and under the new filter bar that left two rows. The chrome around the rows measures 110px (header, filter bar, table head, border), so five 26px rows need 240px; the default is now clamp(248px, 32vh, 320px), five rows at 1366x768 and at 1024x768.

    The middle of the page keeps its task-2 floor, so on a window too short for both the page scrolls further instead of squeezing either. The guard reads the row height from the row rule, so taller rows would demand a taller default.

  • Insert log filter names in place and toast before selecting

    Every new device or event name emptied its filter list, re-sorted all known names with a per-call localeCompare and appended them all again. A Load Test page has no ceiling on devices and a ramp brings many new names per poll, so this was quadratic on the main thread: 1,000 new device names cost 7.7 s in the browser. A name is now one binary search after All, with one module-level Intl.Collator, and one insert; the same 1,000 names cost 37 ms, and the reader’s pick survives because nothing is removed.

    The copy fallback selected the payload before telling the reader. If the dialog closed while writeText was pending, selecting from a node that was gone threw, the toast never showed and the rejection went unhandled — the console-only outcome the fallback exists to prevent. The toast now comes first, and the selection returns early when the dialog has gone.

    The docked filters' listener finds its bar by id and skips binding when the bar is missing, so the guards now pin that lookup and require all three selects inside the bar, not merely inside the panel.

  • One clear-then-close Escape for every dialog filter

    The two filters in the Single dialogs had no Escape of their own, so the first press in the Protocol Options filter — where the focus lands when the window opens — closed it and lost every unsaved edit. All four dialog filters now go through one Dom.clearOnEscape: a field with something in it clears on the first Escape and marks the key handled, which js/modal.js already honours; an empty field lets the key through and the dialog closes. The Load Test filters' own copies of the rule are replaced by the same call.

    The guard missed routes reached through a variable. The census only sees an overlay’s id spelled out, and the scripts hold overlays in locals, so modal.hidden = false or document.body.removeChild(modal) there went around the component unnoticed. The hidden convention and every way of taking an element out are now counted per file.

    Modal also drops stack entries whose overlay left the document or was hidden without close(): one stray removal used to leave a box with no stops, and every Tab on the page was steered into it until Escape.

  • preflight.listen_ports are host ports, not the container’s (#7)

    Deployment Manager reads this file to decide whether two services can share a server. It compares preflight.listen_ports, so a container port here reads as a claim on that port ON THE HOST.

  • Say the log row is clickable once, in the language that owns it

    The click on a log row is pinned three ways. The cursor and the tooltip that tell anyone it is there were pinned nowhere: deleting all three left the suite green, which is precisely what happened once already, unnoticed, when the listener was made conditional. A control that works and does not look like it works is a control nobody presses.

    The cursor was also said twice — an inline row.style.cursor that applied to both tables, and a .log-fullscreen-modal rule it outranked and left inert — and the copy that won was the one no stylesheet guard could see. It is now one unscoped .log-row rule covering both tables, which works because buildLogRow gives every row that class; .log-row:hover beside it has never needed a scope for the same reason. The tooltip stays in script, because presentation belongs in the sheet and content does not.

    Both are guarded now, along with the absence that makes the third click route harmless: 'open-log-detail' is in neither dispatch table in main.js, and adding it to either would open the dialog twice per press. That was load-bearing and unwritten; it is now stated where someone editing those tables will read it, and asserted.

    Also corrects a figure in a comment: the ~40 tab stops is the cost of reaching Expand, not of reaching an entry. Four more past it, so about 44.

  • Give the fullscreen log its whole-row click back

    Binding the row listener only on the docked table stopped the double build, and took a mouse path away to do it: a fullscreen row no longer opened on a click anywhere in the row, and lost its pointer cursor and its tooltip with it. That is a pointer regression shipped by an accessibility change, on the page’s most-used interaction.

    The listener is bound for every row again and stands aside when the click started inside the Raw message button. Both paths were read rather than the modal, not on body — so the delegated branch finds nothing and returns, and this listener opens the dialog; a button click is skipped here and opened there, which is also the route a keyboard takes, since the browser turns Enter on the button into a click that arrives the same way. open-log-detail is in neither dispatch table in main.js, so the document-level handler finds the button and does nothing.

    The guard moved with the code. It used to pin the shape that delivered the fix — the binding wrapped in !payloadFull — which is now the thing that must not come back. It pins the guarantee instead: one listener, bound for every row, standing aside for the button by target, and payloadFull used three times, all of them deciding what a row renders rather than whether it listens.

  • One dialog build per press, a focus target that still exists

    Three faults in the log, all found by review of the previous round.

    A Raw message press built the detail dialog twice. The click reached the row’s own listener first, as the nearer node, and then the modal’s delegated open-log-detail branch; the second call opens by closing what the first had just built, handing the focus back to the button on the way out, and then building it again. Nothing paints between them so the net state was right and the fault invisible. The row listener is now bound only on the docked rows, where there is no button to collide with. Stopping propagation in the delegated branch would not have helped: it runs after the row listener has already fired. The cost is that a fullscreen row no longer opens on a click anywhere in the row, so the pointer cursor that promised one is gone with it.

    Closing the dialog focused the row that opened it without checking the row was still there. The fullscreen table holds 500 rows and drops the oldest, so an entry read while the log is busy can be polled out from under the dialog showing it; focusing a detached element does nothing, which is the fall to the document this code exists to prevent. It falls back to the fullscreen filter, or to the docked log region.

    The tab strip swallowed Ctrl+Home and Ctrl+End. With a tab focused it preventDefault-ed both and moved along the strip, so the one shortcut for escaping a dense screen stopped working. A modified key is a different key and the handler now says so.

  • Take the log out of the tab order and give its dialog a keyboard

    A tab stop per log row was the wrong answer. Both tables are alive at once — the docked one keeps polling behind the fullscreen overlay and nothing is inert — so it was up to a thousand stops, on rows rebuilt every two seconds, which silently destroys whichever one has the focus. It also replaced the cells' table semantics with a button.

    The stop is now a control inside the row, rendered only on the fullscreen fullscreen one does not, and the detail modal’s one exclusive field is the raw message. The docked table becomes a named region a keyboard can reach and scroll, which is what the row stops were providing by accident.

    The detail modal dead-ended a keyboard: no role, no name, focus left on the row behind the overlay, and the only Escape handler on the page was gated on the fullscreen log being open. It is a dialog now — role, aria-modal, a name, focus moved in on open and handed back on close, and its own Escape, which the page-level one stands down for while it is up.

    Also in this round:

    • outline-offset: -2px on the four focusable controls that sit flush inside a box that clips. The shared ring is drawn 2px outside the element, which on these is 2px outside the clip, so most of it was never painted.

    • Arrow keys, Home and End along the tab strip. role="tab" is a promise about a keyboard, and the strip was announcing itself as a tablist and answering nothing.

    • Server IP and Client IP were two fields both called "IP". The group name is folded into the accessible name with aria-labelledby, so they read as "Server IP:" and "Client IP:" while the visible caption stays.

    • Eleven icon-only controls were named only by title, which is a weak name and the only one they had. They keep the tooltip and gain an aria-label that says which device or which file they act on.

    • The selected parameter row is aria-current, not aria-pressed: it is not a toggle, and one row at a time is the one being edited.

    • Opening the transport settings from the Insecure badge now moves the focus to the tab it opened.

  • Name the Edit button in the parameters modal

    Its only content is an icon, and hiding that icon from assistive technology left it announcing as "button" and nothing else. It names the parameter it edits, so fifty rows are fifty distinct buttons rather than fifty identical ones.

    Found by scanning for controls whose whole content is a now-hidden icon and that carry no aria-label, no title and no text. It was the only one besides the back arrow, and it is pinned here beside it.

  • Keep the stacked panels from spilling over the bars below

    Measured in a browser at 1024x768 rather than reasoned about, and the first commit was only half a fix there. Below 1024px .main-content turns into a column, and in a column the two panels it holds — the devices panel and the update-param panel — are flex: 1 with a zero base, so a parent that is still free to shrink reports its height as if they were not in it. The devices panel drew 203px past the bottom of its parent and across the Config Files row: the same failure as before, one level up and smaller.

    The column now keeps its content height when it is the thing containing the panels (flex-shrink: 0 at that breakpoint; it still grows into spare height), and the two panels get the floor that a zero base otherwise denies them. Beside each other they need none — there it is a cross-axis size that stretches to .main-content, and a floor of its own is exactly what spilled — so the base rules declare none and the breakpoint that changes the axis declares both.

    Measured after the change, no box paints outside a parent that does not clip it, at 2560x1080, 1920x1080, 1366x768, 1280x720, 1024x768, 760x800 or 400x700.

  • Stop the load test layout from truncating on small viewports

    The page was a 100vh frame with an overflow: hidden body, so anything that did not fit was not scrolled to, it was cut off. Below about 1420px of width the nowrap toolbar carried the Status section and the Insecure badge past the right edge, and that badge is the only way into the transport security settings. Below about 850px of height the centre panel’s min-height: 300px kept .main-content taller than the space it had been given; .center-panel has no overflow of its own, so the device table drew over the Config Files row and the log panel — which is what a 1366x768 laptop sees.

    Two containers own the scroll now, one per breakpoint. Above 768px the header and the footer stay fixed and .app-body scrolls between them: every band in that column keeps its own height and .main-content keeps a 260px floor, so a short window overflows the scrollable box instead of squeezing the bands under each other. The floor moved off the centre panel and onto .main-content, the element the column actually hands height to; a floor on a grandchild of a parent that had shrunk is exactly what spilled. Below 768px the frame is dropped altogether — the container grows with its content, .app-body returns to overflow: visible and the document scrolls, so there is one scrollbar and not one inside another.

    Also: the 1600px cap is gone, so the two full-bleed bands span the window rather than floating in a card with 480px of empty page beside them at 2560px; the log panel can be dragged taller, bounded so a drag cannot push the toolbar out of the scrollable area, and collapse now beats the inline height a drag leaves behind; the toast stack is bounded by the window it is anchored to, after three failure toasts were measured leaving the top of the screen with no way to scroll them back; and withBusy pins the width of the glyph before swapping in the spinner, which is not the same width, so the button no longer changes size under the pointer for the length of a request.

  • Restore the small button’s height and the dense line height

    Two values in the shared sheets were wrong, and two guard assertions could not see the thing they were meant to pin.

    btn-sm took var(--sp-1) 4px of vertical padding, which neither page had asked

    sheet invented a third, smaller value. It made an icon-only .btn-sm 20px tall against the 24px --hit-min this very token sheet declares, across 31 call sites, 15 of them on the page that should have looked unchanged. Back to 6px vertical, which measures 24px again.

    body took --lh-base 1.5 because the token set offered only 1.25 and 1.5, and Load Test had been on 1.4. That page is a height:100vh layout with an tenth is the change most likely to cost a row. Adding --lh-ui: 1.4 for interface text and leaving --lh-base to the prose-like blocks that ask for it by name — the empty-state paragraph, the protocol-option hint, the landing card copy.

    On the guard: the rem scan covered css/single.css only, while six of the sizes that depended on the deleted 20px root live in single.html and in the markup single-emulator.js builds; it now covers all three, and still leaves landing.html’s 2.5rem headline alone, since that page never set a root of its own. And projectStylesheets appended the inline <style> to the end of the list whatever its real position, so a page could move its own styles above the token link and still pass the order check; the list is now keyed on position in the document.

    Each amended assertion proved by mutation: a rem back into single.html, a rem back into single-emulator.js, and the token link moved below index.html’s <style> each fail exactly the assertion that names them.

  • Keep password managers off the rendered secret options

    The eight hand-written secret fields were given autocomplete="new-password" because a manager filling one costs the stored secret: the autofill lands on the "*" placeholder, the next save posts it verbatim, and the server reads anything other than the mask as a new secret and writes it.

    The secret protocol-option fields are the same finding. They are built from the API’s secret flag rather than typed into the page, so they do not show up in a markup diff, but they are password fields holding the same mask and resolveIncomingProtocolOptionValue stores what comes back exactly the same way. Defending the connection secrets and leaving the protocol-option secrets open would have been an odd place to stop.

    Marked on the secret ones only. A manager has no reason to fill a transport selector, and putting the attribute on every option field would say something untrue about all of them.

    The guard that already required these fields to be password fields now requires the attribute as well, so it cannot go away unnoticed.

  • Mask the protocol options stored with a device

    DeviceTemplateDto.protocolOptions is a free-form map, and the protocol secrets live in it: the MQTT password, the USP secret, the LwM2M OSCORE master secret are all option keys. GET /api/protocolOptions has masked them since the protocol options were fixed, but GET /api/storedDevices handed the same values back in clear text — maskTemplateSecrets covered only the four named security fields. No UI path writes a secret in there today, so nothing leaks yet; the point is that it cannot start to.

    Both directions move together, because a mask that is only applied on the way out becomes a way to lose a secret on the way back in. A masked option posted to /api/devices/startNew or /api/devices/batch is now dropped from the map rather than stored: an absent key means "inherit the configured value", exactly as null does for the four fixed secrets, while the mask itself would have been applied to the device verbatim and left it failing authentication against "*".

    Which keys count as secret is the same question the protocol options endpoint asks — isSecretOptionKey against the protocol’s gui.properties, so an explicit $key.secret marker is honoured and not just the name. The properties are read once per protocol per request and only for a template that actually carries options.

    On the Single Emulator page, ticking Override on an untouched password field recorded the mask as the device’s own value. That field is written and never read today, but it fed the same map, so it skips the mask too.

  • Keep password managers off the masked secret fields

    The eight secret fields became type="password" so the mask would not be readable over a shoulder. That also made them targets for a password manager, which the text fields they used to be never were: an autofill lands on top of the "*" placeholder, the next Save posts it verbatim, and applySecret reads anything other than the mask as a new secret and stores it. The stored PSK or keystore password is gone, with nothing on screen to say so, and it surfaces days later as "authentication stopped working".

    autocomplete="new-password" is what tells a manager this is not the field it saved. A guard in the static-asset tests pins both the type and the attribute so neither can quietly go away.

    Also records, at the file input that shares its id with the uploadConfigFile function, why that only resolves in a classic script: the function declaration is an own property of window and shadows the named-element access. Under type="module" the inline onclick would be handed the input element instead, the Upload button would stop working, and every test would still pass.

  • Mask protocol option secrets

    GET /api/protocolOptions handed out the MQTT password, the USP secret and the LwM2M OSCORE master secret in clear text to anyone who could reach the port, and the REST API has no authentication. Masking the connection secrets in /api/config left this hole open because protocol option keys are dynamic: password= looks exactly like port= in <protocol>_gui.properties, so nothing said which one holds a secret.

    An option is now a secret when $<key>.secret says so, and the marker wins in both directions — false keeps a key readable even if its name reads like a secret. Only when there is no readable marker does a five-substring name heuristic decide, so a secret key added later without a marker is hidden instead of leaking silently. The three shipped keys are marked in both configuration directories, and a guard test fails the build if a key that would be treated as a secret has no marker, or if the two directories stop agreeing.

    Both directions ask SecretMasking the same question, which is what keeps a save from wiping a password: the Single Emulator modal posts every field it rendered, so the mask comes back on every save the user makes while the password sits untouched in the form. For a secret key * therefore means "keep what is stored", an empty string still clears and anything else still replaces — the same rule /api/config already uses. An option with a fixed choice list is never masked: it publishes every one of its choices in the same response, so masking the selected one would hide nothing while leaving the control matching none of them.

    + The desktop path is untouched. It builds its form from ProtocolConfigOptionsVBox and writes changes straight into changedProtocolProperties, so it never passes through either the masking or the unmasking code and keeps seeing real values.

  • Make the API error body report what actually failed

    Two ways the uniform error body could say the wrong thing.

    ConversionNotSupportedException extends TypeMismatchException, so it landed in the handler that answers 400 for a query parameter the caller got wrong. It means the opposite: the server declared a type it has no converter for, which no corrected request can fix. Spring draws the same line in DefaultHandlerExceptionResolver, which tests the subclass first and answers 500. Unreachable today, since every bound parameter is a String, a long or a MultipartFile, but latent for the first endpoint that takes anything else.

    + Every 4xx Spring itself raised was labelled BAD_REQUEST regardless of the status it kept, so a 415 arrived as {"code":"BAD_REQUEST"} with status 415. The code is the half of the contract screens branch on; it now follows the status for the three that have a name of their own.

  • Show the real connection state and build version

    The header said "Connected" beside a pulsing green dot, and nothing ever changed it: it was static markup. With the emulator stopped the page kept showing the device list and the status it had fetched minutes earlier and kept asserting that all was well - while its own polls were failing every two seconds into the console. The footer made a claim of the same kind from the other end, naming "Web Interface v1.0" next to a header badge that reads the real build out of /api/version.

    js/connection.js now owns that state for both pages. Every poll reports whether it got its data; three consecutive failures, from any poll, turn the indicator red and raise a role="alert" banner; the first success afterwards takes both away and says so through a toast. Three, so that one dropped request cannot repaint the header, and one success to come back, so that a banner that is no longer true does not outlive the outage by a poll interval. A page that has not polled yet says "Connecting…​", never "Connected".

    A poll counts as failed when it did not get its data, not only when the socket was refused: an emulator that has died behind a proxy answers with a 502 and an HTML page. The three Single getters the page polls used to parse any body at all, so such a response became a status object with no fields that rendered as an emulator with no devices; they now throw like the rest.

    Also bounds the toast message. Since a failed request began handing the toast whatever the response body contained, an error page could grow a card off the top of the viewport, taking the close button with it - and a failure toast has no auto-dismiss timer, so a reload was the only way out.

  • Pin the confirmation call path and report a replaced upload

    A question declared as action.confirm is asked by withBusy and by nothing else, so the markup is what makes it happen. The guard checked that the hook exists and that the function body no longer asks, both of which stay green if someone rewires the button to call the function directly — at which point deleting a config file is a one-click destructive action again with a fully green suite. Delete and Upload are now pinned to their wrapper the way StaticLifecycleControlsTest already pins Stop.

    The upload handler printed "uploaded" over a file it had just destroyed, discarding the replaced field one line away from where it read it. It now says which of the two happened, and the guard asserts the field is read.

    And the Stop dialog no longer offers to remove "1 devices".

  • Refuse to delete or overwrite the active device tree file

    The configuration directory is editable over REST and nothing stopped either endpoint from touching the one file the emulator is actually reading. Deleting it left Initialize with nothing to load, and the failure surfaced later and somewhere else — as "Can’t create a device" from a button the user did not press. Uploading over it while a session was initialized left the session holding one tree in memory and the file describing another under the same name.

    POST /api/deleteConfigFile now answers 409 CONFIG_FILE_ACTIVE for that file, whatever the state of the emulator, and POST /api/uploadConfigFile answers 409 CONFIG_FILE_IN_USE when the name collides with it and a session is initialized. Overwriting any other file stays allowed: the page asks before it gets here, and the answer now carries replaced so the client can say which of the two things happened.

    "The file it is actually reading" is IotDeviceController’s effective name — the override chosen in the Config Files dropdown, or the protocol default <protocol>_resources.xml — because that is the name initializeEmulatorSession() joins to the config directory. Reading the same accessor is what keeps the guard from blocking a file the emulator never loads. The comparison ignores case: the directory sits on whatever filesystem the host has, and on Windows a name differing only in case is the same file.

  • Confirm destructive actions in the web UI

    Stop, Clear logs, changing the active device tree and removing a saved device all ran on the first click, with nothing to undo them afterwards. Stop tears down every device of the session; Clear logs empties the server-side ring buffer as well as the view; the Config Files dropdown swaps the device model; a saved device is the only record of its client id, serial and per-device tree. Each now says what it is about to do, naming the count or the file rather than asking "are you sure".

    An upload asks too, but only when it would overwrite: the server copies with REPLACE_EXISTING, so a name already in the list is a file about to be destroyed.

    The questions are declared as action.confirm and asked by withBusy before it disables the button. confirm() is modal and blocks the event loop, so asking from inside the wrapper would spin a disabled button behind the dialog and, on Cancel, unwind a busy state that never had a request behind it. The Delete-file confirmation, which had exactly that shape, moves to the hook with the rest.

    Reset goes away. resetFromApi() is stopFromApi() — one server method behind two buttons in two colours, promising a distinction the emulator does not make. Stop takes over the tooltip; POST /api/reset stays for API clients. Removed with it: resetEmulator(), the .btn-warning rules and the --warning token, which existed in this page for that button alone.

    Two assertions are added to the lifecycle guard while it is open. It never checked that withBusy hands the button back, so deleting one line left Save, both snapshot buttons, upload, delete and both heartbeat buttons dead for the rest of the session with all ten tests still green — only the three lifecycle buttons recovered, through the status poll, which masked it. Nor did it check that the busy hold is released before the state is re-derived from it; reversed, the re-derivation skips the button that just finished and Start stays clickable on a running emulator until the next poll.

  • Match lifecycle buttons to state, block double clicks

    The web UI offered every action at every moment. Start was clickable on a running emulator and Stop on a stopped one, and since /api/init, /api/start and /api/stop each answer 409 in exactly those states, the click could only come back as a failure. The three buttons already carried ids; no code ever touched them. The desktop panel has never behaved this way: root.fxml ships stopBtn disabled and IotDeviceController flips the three on connect and on reset.

    The buttons now mirror the server’s own guards, one condition per button, driven by /api/status: it is polled every 10 s and re-read at the end of every lifecycle call, and it has the final word. Before the first status answers, nothing is offered.

    No button was taken out of service while its own request was in flight either, so a double click sent two POSTs to endpoints that are not idempotent. withBusy() disables the button that fired, shows a spinner in place of its icon and marks it aria-busy until the work settles - on the error path as well - and then hands the lifecycle buttons back to the status rather than blindly re-enabling them. A status poll landing mid request leaves a held button alone.

    Single mode gets the same wrapper for its Start Emulator button and for the per-card Start/Stop/Heartbeat/Delete. That list repaints on a 5 s poll by replacing its innerHTML, which would have put a fresh, enabled button under the cursor mid-request, so a repaint asked for while an action runs is deferred until it finishes.

    Both Start and Stop stay enabled on a device card. There is no honest per-device running state to show: IotDevice has no isRunning(), the controller records nothing when startDevice()/stopDevice() run, and a device that drops its connection tells no one. The only per-device signal is device toString(), free text that differs per protocol. A greyed-out button would be believed; this one is merely unhelpful.

  • Stop readApiError from dropping plain-text failure reasons

    readApiError read the body with response.json(), which is right for the lifecycle endpoints — they answer the ApiErrorDto envelope — and wrong for everything else. Six of the eight branches routed through it in the last commit answer ResponseEntity<String> with one line of text/plain: "Stop emulator before changing protocol", "Only XML files are allowed", "File not found: x". On those, the JSON parse rejected and the user was left with a generic fallback instead of the sentence telling them what to do. Those are the most actionable messages the emulator produces, and a toast that stays until dismissed now carries them.

    It reads the body as text once and unwraps the envelope only if the text turns out to be one, exactly like apiError() in js/single-api.js. A body that never arrived still uses the caller’s fallback.

    The guard that was meant to protect this asserted index.html contains no "response.text()" at all, which forbade the correct repair. It now pins the outcome instead: exactly one function reads an error body, that read lives in readApiError, it unwraps the envelope and returns a plain body rather than discarding it, and no showAlert takes a response body directly.

    The eviction guard had the mirror-image weakness — it only required .timer to appear inside evictionVictim, so inverting the predicate to if (!toasts[i].timer), which reinstates the defect exactly, left it green. It now pins the positive test.

    Also documents why show() assigns entry.timer after the eviction loop and not before: the arriving toast is deliberately not a candidate for its own eviction, or a success arriving over three failures would be removed before anyone saw it.

  • Keep a failure toast on screen and announce the first one

    Two defects in the toast component, plus the raw error bodies it made visible.

    A failure carries no auto-dismiss timer, which makes it exactly the entry that lingers and becomes the oldest in the stack — so plain FIFO eviction let three later successes push it out. Failing an action and then saving the config and toggling two protocol options was enough to lose the only account of what went wrong. Eviction now prefers a toast that was going to leave by itself anyway, and falls back to the oldest only when all three are failures.

    The live regions were created in the same tick as their first child, because the first toast built them. A region inserted together with its content is routinely skipped by screen readers, so the announcement lost was the first toast of a page load — often the failure someone just triggered. The regions are now built when the script runs.

    The seven remaining error branches in index.html read the body with response.text() rather than readApiError(), which parked the raw {"code","message","details"} envelope in front of the user now that a failure toast stays until it is dismissed. An eighth, in updateParameter, had the same shape.

    The guard test was weak in the same way for all of this: it asserted that toast.js "contains dismissAll", which the usage block in the header comment satisfied, so deleting the function outright left it green. It now checks the source with its comments stripped, asserts on code idioms rather than words, and pins the numbers the component promises: three visible, five seconds, and no timer at all for a failure.

  • Escape server data in the web UI and drop inline handlers

    Device names, serial numbers, parameter names and values and protocol option keys were interpolated straight into innerHTML, and the same values were pasted into onclick="fn('…​')" attributes, where they are parsed as JavaScript source. A device tree is uploadable through the API and the API has no authentication, so a parameter value is a viable stored-XSS vector against the operator’s browser; short of that, a bare '&' or a quote in a serial number silently breaks the markup around it. The Single Emulator page had no escaping helper at all — only a crutch that backslash-escaped the apostrophe and let every other character through.

    Adds js/dom.js (window.Dom) with escapeHtml, escapeAttr and an html tagged template that escapes every interpolation except values wrapped in Dom.raw, and loads it first on both pages. index.html keeps its escapeHtml name as an alias so existing call sites read the same.

    The action buttons in the device tables, the device cards, the stored device cards and the parameter tree now carry data-action plus the identifier in a data attribute, and one delegated listener per container — bound once, on containers that are static markup — reads the dataset. Selecting the active tab no longer matches on the text of an onclick attribute; the buttons carry data-tab instead.

    A JUnit guard test reads the static files and fails if an inline handler is rebuilt out of interpolated data, if dom.js stops being loaded, or if the apostrophe-only crutch comes back.

  • Keep the rule error body honest about the engine

    RuleDto.error(…​) never set engineAvailable, so a 400 compile-failure response carried the default false — claiming no JavaScript engine on a request that only reaches that line after the 501 guard passed and a compiler actually reported the syntax error. An engine demonstrably ran. That is the same untruth this change set exists to remove, in the body of the very endpoint that removes it.

    compileRule now fills the field once, from the same reading the guard used, on whichever DTO it returns. The success and failure branches can no longer drift apart, which patching only the error path would have left possible.

    Two tests close the gaps that let this through: the 400 case now asserts the field, and one test deliberately bypasses the test seam to pin the production default against RuleCompiler.isEngineAvailable(). Without the latter, changing the default to a constant would have kept the suite green while POST /api/rule quietly stopped refusing.

  • Hide features that do not work in web mode

    Four controls on the Load Test page reported success without doing anything, which is worse for a tester than a control that is simply absent.

    Rules, Autoupdate and the parameter History all depend on device tree items that IotDeviceController fills inside runLater(…​). That wrapper swallows the IllegalStateException raised when the JavaFX toolkit was never started, so headless the blocks never run: the parameter set stays empty, no rule listener is ever registered, and nothing writes to the History field. Extract CPE from DB went further still — it collected database credentials and then answered "not available in web mode", because no such endpoint was ever written.

    The markup and its scripts are gone rather than disabled; the desktop JavaFX UI keeps all four. Update param stays and becomes a plain panel. The five ACS/DB fields leave the config payload with them; POST /api/config only writes the fields it receives, so the stored values survive.

    No REST endpoint was removed, but the Load Test page was their only endpoints are now reachable only through Swagger or a script.

    POST /api/rule now answers 501 RULES_UNAVAILABLE when the runtime has no JavaScript engine, which on the shipped JDK 25 is always. It used to report "Successfully compiled and saved" for a rule that compiled to a no-op. GET /api/rule carries the same fact as engineAvailable.

  • Report whether a JavaScript engine is available

    Nashorn left the JDK in 15 and GraalJS is not a dependency, so compile() falls through to a no-op lambda: the rule "compiles" and then does nothing on every parameter update. Callers cannot tell the two cases apart, because compilation succeeds either way and the only trace is a WARN in the log.

    isEngineAvailable() exposes the lookup compile() already performs, so a caller that is about to report success — the REST layer above all — can ask first. compile() now shares that lookup instead of repeating it.

  • Mask secrets in configuration API responses

    The REST API has no authentication, so everything GET /api/config returned was readable by anyone who could reach the port — the PSK key, the keystore/truststore/alias passwords and the ACS database password included. GET /api/storedDevices handed out the same secrets for every device persisted in devices.json.

    The five config secrets and the four template secrets now leave the server as "". Because the web form posts back whatever sits in the field, the mask travels back on every save where the user did not touch the password, so on the way in it means "keep the stored value"; an empty string still clears the secret and any other value replaces it. The device-template endpoints (startNew, batch) resolve the mask to "inherit the configured value", which is what a null template secret already meant — without that they would have stored the literal "" as the device’s PSK key.

    The two PSK Key inputs were plain text fields and are now password fields, like the keystore and database password fields next to them.

  • Keep Spring’s own 4xx instead of reporting it as a server fault

    The catch-all Exception handler installed with the error contract swallowed the status Spring had already decided on, so two reachable malformed requests came back as 500 INTERNAL_ERROR: GET /api/logs?since=<non-numeric> (a typed URL, or any caller passing NaN to the 2s log poller) and POST /api/uploadConfigFile with the file part missing. The first also leaked the full conversion dump - "Failed to convert value of type 'java.lang.String' to required type 'long'" - into the response body.

    An exception that implements ErrorResponse now keeps its own status, whatever it is, and answers with its problem detail rather than its message. The value conversion failure needs its own handler: MethodArgumentTypeMismatchException extends TypeMismatchException and is not an ErrorResponse, so it would still have fallen through; it now answers 400 with "Parameter 'since' must be a valid long." The contract is unchanged - same {code, message, details} body, same application/json - and a plain RuntimeException is still a 500.

  • Guard lifecycle state against concurrent REST calls

    The same IotDeviceController instance backs the desktop UI and the web REST layer, so its session flags are written from the JavaFX thread and from Spring MVC worker threads. started was a plain field, and none of the four lifecycle entry points held the monitor that createAndStartDevice already uses, so a per-device create could interleave with an init/start/stop and two concurrent POSTs could both pass the same state check.

    Make started volatile (initialized already was) and synchronize initializeFromApi/startFromApi/stopFromApi/resetFromApi on the controller monitor. Nothing they call waits on a thread that takes that monitor: the only blocking wait is the shutdown latch in ActiveMultiDeviceRunner.stop(), counted down by device-shutdown threads whose callbacks only log and post to Platform.runLater (fire-and-forget), and createAndStartDevice is reached from request threads only. resetFromApi delegating to stopFromApi is a reentrant acquisition.

    Also stop the config form from throwing a TypeError when the server reports a security mode the page has no radio for: match the radios by value, fall back to Unsecured, and warn on the console.

  • Address the review findings on the per-device work

    Six issues found reviewing 5aedb86..8dadfe2, in rough order of how badly they bite.

    Client ports were handed out twice. A session reads the port counter without advancing it, so the first device added afterwards through the Single UI was given a port the session is already listening on and died with "Address already in use". Landing makes both modes reachable side by side, so this is now easy to hit. The session moves the counter past its own devices.

    The PSK key was served over REST. GET /api/devices returned it in clear next to the client ID; the UI never reads it there (it edits the key through /api/config), so it is simply gone from the device DTO. The key identity stays.

    Parameter trees were cached and never invalidated. XMLParameterReader caches a parsed tree under its file name and clearCache() had no caller at all, so a tree re-uploaded under a name already read kept serving the old contents until a restart. Uploading, deleting or switching the active config file clears it.

    devices.json was written in place. Serialising straight into the file truncates it first, so a crash midway leaves JSON that no longer parses; loadAll then reports an empty list and the next save writes that back, losing every stored device silently. It is now written beside the target and moved over it.

    404 was documented, 400 was returned. start, stop and delete of an unknown device answered 400 through a catch-all that also turned genuine failures into 400. They check first and answer 404, catch only the domain exception, and let anything else surface as a 500. A device that exists only in the store can still be deleted - that is what the call is for.

    Debug printlns were left in the ported UI: ten console.log calls in single-api.js and single-emulator.js.

    Also replaced the shared skipStorageSave flag with a parameter, since a device created over REST while stored devices were being restored would have skipped being saved, and made createAndStartDevice synchronized so two requests cannot both pass the duplicate-ID check.

    Verified on a local emulator: a device added after a session gets port 56831 next to the session’s 56830, the device JSON no longer carries pskKey, and start/stop/delete of an unknown ID answer 404. 1869 tests green.

  • Give a device a client IP it can actually bind to

    In web mode nobody fills the JavaFX Client IP field, so unless client.ip is set in the configuration the value stays the 0.0.0.0 wildcard. OSCORE and the CoAP client both reject a wildcard or loopback address, so the device does not merely register from the wrong address - it fails to start:

    java.net.BindException: Cannot assign requested address org.eclipse.californium.oscore.OSException: Derivation failure

    A configured address still always wins. Only when none is usable is the local address worked out, by asking the routing table which interface reaches the server: connecting a datagram socket puts nothing on the wire, it just fixes the route. That is what makes the answer right on a multi-homed host - the emul_m branch scans the interfaces instead and takes the first site-local one, which depends on enumeration order and readily hands back a WSL or Hyper-V address the ACS cannot reach.

    When the route cannot be worked out (no server set, an unresolvable name, a loopback route) the configured value is kept, so nothing changes for the deployments that set client.ip themselves.

    Verified on a local emulator with two interfaces: with client.ip unset the device now binds coap://192.168.50.26 - the LAN address, not the 172.24.x WSL one - and starts instead of failing.

  • Align per-device creation with the session path

    Creating a device through /api/devices/startNew built its configuration differently from the session path, and on a stock LwM2M tree the device then failed to start at all:

    Failed to create device: org.eclipse.californium.oscore.OSException: Derivation failure

    Three defects, all found by driving the new Single Emulator UI against a locally running emulator:

    • Protocol options were seeded from <protocol>_gui.properties by taking the first listed value. Those entries are the list of choices, not a device created this way, and the context derivation then failed. The session path only applies what the user actually selected, so this one does too; an option nobody chose stays unset and the protocol default applies.

    • PSK and keystore material was applied even to an UNSECURE device, which is the other half of the same failure. buildConnectionOptions guards all of it behind isSecure() and skips empty values; so does createAndStartDevice now.

    • A device whose start() threw was left in the device list even though the caller got an error back, so a failed create showed up as a live device. Registration is now rolled back before the exception leaves.

      Verified against a local emulator in web mode: /api/devices/startNew now answers 200, the device is registered with securityMode UNSECURE and no PSK material, and it is persisted to the device store.

      Three regression tests, one per defect.

  • DEV-2513 - LWM2M/MQTT Emulation tool > Docker > LWM2M > SenML CBOR > SPV on /3/0/13 > Incorrect value stored in the tree

  • DEV-2475 - LWM2M/MQTT Emulation tool > Docker > LWM2M > "rendering" = "FULL" > Initialize tree > Parameters tree > Tree is absent

  • Skip unmodeled objects during late registration

    Skipping an unmodeled object only at the Leshan initializer still left a stale entry in Lwm2mDevice.objectInstances, so with lwm2m.late_registration enabled the device waited forever for a resource that was never mounted (silent hang).

    Filter objects with no loaded model out of createLwm2mObjectInstances and the objectIdSet in createLwm2mObjects so they never reach the initializer nor the late-registration tracking. The device still registers with the objects it can model. lwm2m-emulator: 70 tests green.

  • Harden runtime Protocol Options editing

    Follow-up hardening for making Protocol Options editable while running:

    • updateProtocolOptions rejects null option values up-front with 400 so a null never NPEs the running-device ConcurrentHashMap or leaves a partially-applied state; applyProtocolPropertyToRunningDevices null-guards defensively too.

    • deviceItems becomes a ConcurrentHashMap (populated from device IO threads, iterated from the HTTP thread) to avoid ConcurrentModificationException; null-key put/get guarded.

    • Protocol Options panel hints that connection settings (transport, port, IP, version) take effect on next Start, unlike runtime options.

      Extends EmulatorRestControllerProtocolOptionsTest (null-value case); gui: 14 green.

  • Remove nested scrollbar in Protocol Options panel

    The .protocol-options container had its own max-height/overflow-y on top of the parent .tab-content.active scroll, producing two side-by-side vertical scrollbars in the config panel. Drop the inner scroll so the whole tab scrolls as a single scrollbar; the sticky filter toolbar still pins to the top via the parent scroller.

  • Combobox caret shows the full list, not filtered by current value

    renderComboList filtered by the current field value even when opened via the caret, so a pre-filled field (e.g. SERVER_IP=192.168.43.51 in a deployment, and the ip= list contains that address twice) showed only its 2 matches instead of the full list. Caret/browse now shows all options; typing still narrows. Matches the desktop editable ComboBox.

  • Emulator Discover handler ignores the depth URI-query (was NumberFormatException)

    A server Discover (LwM2M 1.1) arrives with a depth query on the URI (bs adds ?depth=<n>; ACS always sends non-null depth). handleDiscoverRequest parsed ids from the FULL request URI (getURI() includes the query) so the last segment became "0?depth=1" → NumberFormatException → device error → Discover task FAILED.

    Fix: derive the target from getRequestOptions().getUriPathString() (query-free) via a new DiscoverLinkFormatter (validates up to 3 int segments, returns null not throws on malformed input, resource-instance → parent resource parity), ignore depth, wrap the handler in try/catch. Empty → BAD_REQUEST, non-empty → CONTENT unchanged. FOTA/SOTA/observe untouched. Rig-proven: ftacs DiscoverSoapIT green; DiscoverLinkFormatterTest 8/0.

  • Encode empty integer multi-instance via TLV bypass

    The previous commit made the enabler emit an INTEGER multiple resource carrying an empty instance as OPAQUE, but a resource-level Read/Observe in TLV still went through Leshan’s model-checked encoder, which throws a CodecException on the OPAQUE runtime type vs the INTEGER model type — so the resource failed to encode at all (worse than the original bug).

    Encode such a resource directly in Lwm2mNodeEncoderWrapper (the same bypass already used for the single-instance TLV path), producing a MULTIPLE_RESOURCE TLV whose empty instance is a zero-length RESOURCE_INSTANCE. Add an encoder-level test that drives the real wrapper against the object model, closing the gap that let the broken encoding pass the enabler-only tests.

  • Complete /9 SOTA device verbs — blank-URI reset (INSTALL) + uninstall Notify

    Three rig-root-caused SOTA gaps in the /9 software object enabler: - INSTALL: a blank /9/0/3 (Package URI) write no longer starts a download. bs’s RESETTING phase writes /9/0/3="" before DELIVERING the real URL; the old handler treated any write as a download → downloadHttp("") → IOException → UpdateResult=52 CONNECTION_LOST. Now a blank (or single 0x00) URI resets the state machine, mirroring the /5 firmware idiom. Fixes SOTA INSTALL end-to-end. - UNINSTALL: Execute /9/0/6 now resets state /9/0/7 → INITIAL and result /9/0/9 → 0 with a batched fireResourcesChange(7,9) Notify (the old resetState never fired the Notify, so bs’s Observe never saw the terminal), and clears activation /9/0/12. - DEACTIVATE: case-11 (Execute /9/0/11 → changeActivationState(false) + Notify /9/0/12) confirmed present; the prior fix image simply predated it.

    + Rig-proven on the from-HEAD image: SOTA INSTALL + ACTIVATE green, UpdateGroupSotaIT (3 devices, type-73) green. lwm2m-emulator tests 17 green.

  • Make emul_docker HEAD build a working --web-mode device (FOTA/SOTA/observe)

    HEAD built a broken headless emulator whose device flow diverged from the (lost) single-mode image the rig depended on. Reconciled HEAD to a working --web-mode device so it can be built from source:

    • Lwm2mConfigurator.getNotifyType: null-safe default (empty → CoAP.Type.CON). THE keystone: in web-mode IotDeviceController.setProtocolFromApi loads lwm2m.notification.type via runLater(), which silently drops the runnable when the JavaFX toolkit is absent, so the property was missing and every observe notification NPE’d in the Californium send path and was dropped → the server never saw firmware state / QoE observes / IPSO notifies. Restores ALL web-mode observe notifications.

    • ParametersUpdater: lazily/synchronized-init the executor so it runs in web-mode (previously started only from the JavaFX initialize() callback → onRegistration auto-update NPE’d the RegistrationEngine thread).

    • gui/configuration/lwm2m_resources.xml: firmware /5 model reconciled (State init 1→0 Idle, add /5/0/8/0=2 HTTP protocol-support, add /5/0/9=0 pull) and the /9 software object populated (12 resources).

    • SoftwareObjectInstanceEnabler / AbstractPackageManagementInstanceEnabler: init /9/0/12 activation state, Execute case-11 Deactivate + notify, dash version-parse.

    • EmulatorRestController: POST /api/lwm2m/deregister (sends DEREGISTER).

      Rig-proven: FotaIT 3/3 green on the from-HEAD image; observe-notify chain matches baseline (probe: baseline green / pre-fix 0 notifies+NPE / fixed green).

  • Pin Quick Actions and scroll long Protocol Options internally

    When the active tab in the Device/Transport Security/Protocol Options panel got taller than the available column height (FSH_HUB and USP options in particular), the whole left column tried to share the space between the tabs panel and Quick Actions. Both panels then got clipped: "Choose File / Upload" disappeared and Quick Actions visibly shrank whenever a longer tab was selected.

    Reshape the left column so the tabs panel grows and scrolls, but the Quick Actions block sits at a fixed natural-content height anchored to the bottom:

    • .left-panel becomes overflow:hidden flex container.

    • The first .panel inside is flex:1 1 auto with its own internal flex column, and the .tab-content.active grows + scrolls (overflow-y: auto, min-height:0). Long Protocol Options content scrolls within the tab.

    • The Quick Actions .panel (any non-first child) is flex:0 0 auto, so it stays put regardless of which tab is active or how much content that tab has.

  • Tidy autoupdate grid so labels and inputs no longer collide

    The 4-col grid (60px 1fr 70px 1fr) was too cramped for the right column: "Period (ms)" wrapped to two lines, the Step type <select> truncated "INCREASE" to "INC", and the numeric inputs were way wider than necessary.

    Switch the grid to "auto minmax(0,1fr) auto minmax(0,1fr)" so labels take their natural width and the inputs share the leftover space evenly with "min-width: 0" so they shrink instead of overflowing. Pull out the styling into a .autoupdate-grid class and drop trailing colons in the labels.

    When the right column collapses below 1200px the grid falls back to a single "label + input" column so nothing stays cramped on narrow viewports.

  • Replace broken callouts with a table in configuration docs

  • Document all required configuration files for Docker deployment

    Docker installation instructions incorrectly suggested mounting a volume by default, which replaced the built-in configuration directory. Users who only placed XML files (as documented) lost all .properties files, causing the emulator to fail. Now the docs list all 18 required files, explain that volume mount is optional, and show how to extract defaults.

  • DEV-3278 - LWM2M/MQTT Emulation tool > USP > Device profile with "Backup" > Activate > "Periodic!" event > Backup task is not completed by the device

  • DEV-2003 - LWM2M/MQTT Emulation tool > USP > Device tree from a real device > Registration > Task is stuck

  • DEV-541 - CPE Admin > USP > Advanced View > Edit > Any parameter with "WO" access modifier > The parameter value field is not greyed out

  • DEV-1910 - LWM2M/MQTT Emulation tool > USP > MQTT > Default "MQTT Client ID" > Connect Command > Incorrect default value for "MQTT Client ID"

  • DEV-1861 - LWM2M/MQTT Emulation tool > Log files are absent

  • DEV-2708 - LWM2M/MQTT Emulation tool > Docker > USP > No reboot after firmware update

  • DEV-2322 - LWM2M/MQTT Emulation tool > USP > Management Portal > Download > Firmware > "TransferComplete!" > FirmwareUpdated absent > Task in stuck in "Sent" state

  • DEV-2706 - OneIoT ACS > USP > Firmware update > Timeout > Task isn’t failed

  • DEV-2376 - LWM2M/MQTT Emulation tool > LWM2M > Tree with non-default values of /9/0/7 and /9/0/9 > Register > Incorrect values for mentioned resources

  • DEV-2472 - LWM2M/MQTT Emulation tool > Docker > LWM2M > Start > "fail response" = "true" > Any request > Request not failed

  • DEV-2469 - LWM2M/MQTT Emulation tool > Docker > LWM2M > Non-default tree > Start > Error in log

  • DEV-2471 - LWM2M/MQTT Emulation tool > Docker > LWM2M > Start > Protocol Options > All settings are greyed-out

  • DEV-2479 - LWM2M/MQTT Emulation tool > Docker > LWM2M > Start > Parameters tree > Edit > New value > Update > Error

  • DEV-2162 - LWM2M/MQTT Emulation tool > Docker > USP > Selection of USP version is absent

  • DEV-2163 - LWM2M/MQTT Emulation tool > Docker > USP > Protocol Options > Change > Save > Restart emulator > Changes are not saved

  • DEV-2156 - LWM2M/MQTT Emulation tool > Docker > USP > MTP:MQTT > X.509 > "FT_TLS_AUTH=0" > Start > TLS connection failed

Documentation

  • Update antora version to 2.1.0

  • STOMP pings every 15 s when the ping interval is 0

    The MTP Ping Interval row said 0 = off for every MTP. That holds for MQTT and WebSocket only; STOMP uses the 15 s default heart-beat.

  • Add the release marker CI/CD Manager inserts under

    Without it the first release entry was appended at the end of the page, below the "No releases have been published" placeholder.

  • SDD v10 records the last review and the continuation rule

    The review of fix round 3: two lenses sound, the security lens found that a scan or tag line continued on the next line was not refused. The SDD records that finding, the rule that answers it, the limits of the workflow gate that stay with review, and the notes left open.

  • SDD v10, the ratified mask rule, the last review round

    The client page lists where the mask is refused and what the server would do with it in each place, and says the client is stricter than the server for protocol options.

    The SDD records the second review round of the code (seven lenses), the fourth test-adequacy pass and its four notes, the decisions and changes of fix round 3, the residuals that stay open, and what was observed about the release path: a tag ruleset guards the release tags, the release environment does not exist, and nothing has run on a real tag.

  • SDD v9 records the second test-adequacy pass

    The test plan gains the cell that ties the client’s masked-secret rule to the emulator’s own masker, the accept side of the deadline bound and the workflow gate’s fifth check (the contract class list and the line that reads it), with the mutation each one answers.

    The named limits are corrected: the class list is no longer one of them, and the test guard is said to read test failures and errors only - a build that is red for another reason is caught by the order of the build today, not by the guard.

  • SDD v9, masked templates are refused, the mask renders as text

    The client page said a listed template had to have its secret set again; the client now refuses it, and the page says how to set the secret (toBuilder) and which components are checked. New on the page: create, createBatch and startNew store their devices and how to clean up; the redirect and deadline rules of a supplied HttpClient; a host name with an underscore; local failures. The mask in the page body is written so that it renders as three asterisks, not as a bold one.

    SDD v9 records the diff review of f8d7c79 and the fix round that answered it: the coordinator’s four decisions with the rejected alternative, the new guard and workflow-gate rules with their named limits, the new test cells and mutation rows, and the corrected lines.

  • SDD v8, masked secrets on write corrected, new gate rules

    A masked secret sent back is kept by the connection config and dropped by a device template: a listed template started again stores no key. The SDD (E12) and the client page said "kept" for both; the client page now tells the reader to set the secret again.

    SDD v8 also records what the test-adequacy review and the simplicity pass changed before the diff review: the new unit and live cells, the mutation rows M20-M24, the guard rule against skipped tests and the workflow gate self-test, with the items that were declined and why.

  • SDD v7, Jackson 3.2.3 pin and ratified contract job scope

    SDD v7 records three coordinator decisions of 2026-10-14: the Jackson pin moves to 3.2.3 with a tests-only job on the older line (4.2.1, 4.6); the v6 contract job scope is ratified, with its cost and the condition to revisit it; the red dev baseline is out of this lane.

    The client page and the module README say which Jackson line the client is built and scanned against and what a consumer on 3.0.x should know.

  • SDD v6 contract job scope, literal mask in a heading

    SDD v6 changes one thing in 4.6: the contract job of the client workflow compiles what gui needs and runs the three contract classes only, instead of the whole reactor. A whole-reactor run stops in lwm2m-emulator on two test classes that are red on dev since c62844c, so gui was skipped and the live contract test never ran on Linux. The tests-run guard gets one required-executions file per kind of job. Not design-verified: a named check of checkpoint F.

    control-client.adoc: the heading "Secrets read back as *" now writes the mask as a literal, so it cannot be parsed as markup.

  • Java control client page, module README, SDD v5

    Antora page control-client.adoc with the API by class, the consumer’s three-part groupId binding, the server behaviours a caller must know and the ten operations that are not covered. SDD v5 records what the implementation found: open items O-1 and O-6 closed, emulator facts in section 13.

  • SDD v4, approved after checkpoint D round 2

    Round 2 closed SOUND on all five lenses on v3. v4 folds its should-fix items and the answers of the probes to open items O-2 to O-5:

    • package root com.friendly.qa.emulator.oneiot, following the groupId

    • javadoc and sources jars in a release profile, so a Javadoc warning in the client cannot stop an emulator image build

    • B1 registers with lifetime=86400 and asserts it, so B2 counts only the Updates the control calls send

    • stored devices need a restart of the child: inside one process a stored device is always a running one

    • the staged digest travels as a job output; self-tests for all three gate scripts; the consumer binding named in its three parts

  • SDD v3 with the gate answers folded in

    Coordinates com.friendly.qa:ft-oneiot-emulator-client, tag namespace oneiot-emulator-client-vX.Y.Z, own version from 0.1.0. Scope grows from 47 to 50 operations: the configFiles / activeConfigFile group selects the device tree a session runs. The rule endpoints stay out, with the reason in section 6.2.

    Not yet re-verified: checkpoint D round 2 runs on this text.

  • SDD v2 for the typed emulator control client

    Design only, awaiting approval. A parent-less module emulator-control-client (com.friendly.emulator, Jackson 3, JDK HttpClient) with 47 of the 60 /api operations, pinned inside the emulator build by an endpoint inventory test, a model parity test and a live contract test against a child-process emulator; a tag-triggered release workflow modelled on ft-acs-test-kit.

    v1 went through checkpoint D round 1 (Architecture SOUND; API-contract, Test-plan, Requirements and Security REFUTED). v2 folds every objection (section 14) and has not been re-verified: the lane was stopped at the approval gate. Gate questions are in section 12.

  • SDD 17.6 - R4b-2 status, JDK 27 runtime line, portal and 17.2 corrections

  • Scale mode, per-device credentials, transport knobs, JDK 27 runtime (Stage 8, R1-R4b-2)

  • SDD 17.4 projection restated from R4b-1 measured numbers

  • SDD - PAUSED marker with exact next step

  • SDD 17.5 correction - pollerMode=2 does not remove the late VT wake-up

  • SDD 17.1 amended - N=1 base step, fit-not-computable ON arms only

  • SDD 17.5 - R4b-1 findings folded (I-6 mutant, B3, pollerMode)

  • SDD 17.4 - Q-3 resolved: 14 GB emulator budget, gate at 14 GB, 9 GB for continuity

  • SDD 17.2b - record Q-R4-1/Q-R4-2 decisions

  • SDD 17.2b - checkpoint D R4b round 3 fold-ins (remove-on-cancel, C1 cells, C3 wording)

  • SDD 17.2a - R4b v3 amendments after checkpoint D round 2

  • SDD 17.2 v2 - R4b after checkpoint D round 1 (one gate, D dropped, invariant cells)

  • SDD 17.2 - R4b slimming design from the measured attribution

  • SDD section 17 - R4 host numbers, R4a harness scope, R4b target

  • SDD - GIVEUP_AFTER_MIN knob name

  • SDD - pause addendum with the R3 executor findings

  • SDD - PAUSED marker with the exact next step

  • SDD v1.6 - one-run host launch, window knob, R2/R3 limits

  • SDD - declared limits found in R1/R2 reviews

  • SDD - unreachable_resources drops the request (R1 finding)

  • SDD v1.5 - fail-closed docker argv check (D-TEST-20)

  • SDD v1.5 for the many-device LwM2M emulator (phase 1)

    Virtual-thread backing of the per-device pools, one UDP socket per device, per-device X.509 mint and PSK derivation, baseline numbers and the 100k fit. Checkpoint D: 5 rounds, 55 objections, 1 open (D-TEST-20). Stopped at the approval gate; no production code.

  • EST IT pinned to ft-est-service 9815176 (v5): image build, server env, I8, first-exchange retry

  • SDD test-plan note after the adversary pass

  • IT I7, CONFIG re-report, finished-operation status, passive-runner timeout limit

  • SDD implementation notes after checkpoint F

    Commit 0 is obsolete (583ce80 supplies the July work); onEvent instead of onError; status built on read; extra tokens; 3 x 10 s bound; BouncyCastle 1.85.

  • EST events not errors, status computed on read, leaf-expired, 3 x 10 s bound

  • EST REST API, protocol facts after the checkpoint-F fixes, changelog

    api.adoc: the four est endpoints with every status and body token, EstStatus fields, the unauthenticated-REST / key-in-/0/x/5 warning. protocols.adoc: URI-bound credential, expiry switch, renew-too-early backoff, unsupported-factory-key, est-unexpected-error. changelog: Unreleased entry for EST and the BouncyCastle 1.85 bump. Vale not run: the repo has no .vale.ini.

  • EST enrollment section in the LwM2M protocol page

    Flow, factory credential, options (fleet vs per-device), trust modes, the automatic schedule, known limits (Scandium M16 SKE signature, key in /0/x/5 over the unauthenticated REST, IT pinned to est bf5cb1f) and the est-it run command the liveness test checks.

  • SDD for EST-coaps enrollment in the LwM2M emulator client

    v3.2 after five checkpoint-D rounds; approved by the coordinator 2026-09-30.

  • Refresh the template files when updating a mounted configuration

    A bind-mounted configuration directory replaces the one in the image, so after "docker compose pull" or "docker pull" the new build ran on the previous release’s *_gui.properties: an option the release added (the USP "Ookla speed test (Tozed X_T_SpeedTest)" switch) was missing while /api/version already showed the new build. Only run-docker.sh overlaid the template files; the Compose and plain Docker update paths did not.

    • Updating: explain the cause, add a Docker Compose path, split both paths into steps with the template refresh and a /api/version check, and note that every build of a release has the same version name.

    • New "Refreshing the template files" section: the run-docker.sh overlay as a standalone script, what it keeps and what it overwrites.

    • Rollback: restore the configuration backup before the older image.

    • Troubleshooting: "An option is missing from Protocol Options after an update", with a grep of the container file against the image file.

      The new text follows the docs-portal "Documentation style" rules; Vale reports nothing on the added lines.

  • Document the Ookla speed test switch

    The USP protocol options table gains the switch, and the Ookla section says what turns the command on — the switch or a device tree that declares it — what the switch adds, and that a tree declaring it keeps its own values.

  • Describe USP diagnostics and the Ookla speed test

    The USP section had no word on the synthesised diagnostics. It now lists the commands the agent answers and describes X_T_SpeedTest(): what GetSupportedDM reports, the req_obj_path acknowledgement, the output arguments and their emulated values, and how to declare the command in a device tree of one’s own without losing its arguments.

    The two JVM properties QA uses to shape the runs — usp.diagnostics.ooklaDurationMs and usp.diagnostics.errorRate — get a section in the installation guide, with how to pass them through JAVA_OPTS in Compose and docker run, and an entry in the navigation.

  • Say the API is open and rules cannot reach Java

    The emulator has no authentication anywhere, so its HTTP port is an operator decision and nothing in installation.adoc said so. Rules now refuse Java classes by default, which an operator of an existing deployment has to be able to find out about, together with the property that turns it back on and what that costs.

    Placed beside the TLS Authentication Mode section, where the other ft.* properties are documented, and following that section’s shape: prose, then the java -D…​ one-liner. No Dockerfile env var — the escape hatch is deliberately awkward.

  • State the history endpoint’s answers the way the file does

    The sentence doubled back on itself - "when there is no such device and 404 PARAMETER_NOT_FOUND when the device has no such parameter" - and spelled the code 404 out twice mid-clause, where every neighbouring endpoint uses the file’s "Responses: …​ * …​" line. It now reads as that list, and its two 404s are worded exactly as the sibling PUT endpoint words the same pair, so a reader meets one description of each code rather than two.

    The 501 EXTRACT_UNAVAILABLE list is deliberately left alone. The review that asked for this also asked for FSH Hub to be added to "(CoAP, DUSUN)" in both places, on the grounds that only Lwm2mAcsService, MqttAcsService and UspAcsService exist. They are not the whole list: fsh-hub-emulator, which gui depends on, carries @Component com.friendly.emulator.fshhub.FshHubAcsService extends MqttAcsService with getProtocol() overridden to FSH_HUB, so AcsTemplateExtractor finds a service for FSH Hub and never answers 501 for it. CoAP and DUSUN have no AcsService of any kind; TR069 has none either, and no factory, so it is not selectable. The docs were right.

  • Make the USP connection rules exact in the user guide

    With onboarding and late registration both off, a USP device that loses its confirmation shows Unknown, not Not connected. That covers a registration or MTP send error, stop, restart, reboot or factory reset. Unknown comes back after every such clear, not only before the controller’s first request. api.adoc now also names the reboot that activates a firmware image as one that clears the confirmation.

  • Restate the LwM2M and USP connection rules

    Rewrites the connection rules in api.adoc, the DeviceDto Swagger description and the user guide to match the code: - LwM2M: an accepted Register or update gives Connected. A failed or timed-out registration or update, deregistration or stop gives Not connected. - USP: there are three confirmations. A confirmation is cleared by a registration or MTP send error, stop, restart, or a reboot or factory reset. - USP with onboarding and late registration both off is Unknown only until the controller first sends a request. - A dropped MTP connection with no further traffic is still not detected.

  • State the per-protocol connection rules exactly

    api.adoc now has a per-protocol table for the connection field: - LwM2M: CONNECTED from the accepted Register until a registration or update fails or times out, deregistration or stop. - USP: CONNECTED on the controller’s confirmation. UNKNOWN when onboarding and late registration are both off. A dropped MTP connection is not detected. - MQTT: follows the broker session. - CoAP: always UNKNOWN.

    + The DeviceDto Swagger description states the same rules, and the user guide’s badge section follows them.

  • Document the device connection state and its badge

    api.adoc documents the connection field: what each value means per protocol, that CoAP is always UNKNOWN, and that for LWM2M and USP a server going quiet after registration does not clear CONNECTED. It fixes the example status to the free text it really is. The user guide describes the badge, the Load Test column and the Single header count.

  • Add the missing 400 responses and fix a stale comment

    Swagger declared only 404 on startDevice, stopDevice, deleteDevice and startStoredDevice, though each can also answer 400 DEVICE_START_FAILED / DEVICE_STOP_FAILED / DEVICE_DELETE_FAILED — already in api.adoc’s code table. Adds the matching @ApiResponse entries.

    js/api.js’s readError comment claimed every failing /api call answers the JSON error body; POST /api/rule’s compile result is the one documented exception. The comment now says so.

  • Say which Pause button is highlighted

    The guide said the Pause button is highlighted and reads Resume. Both the panel header’s button and the fullscreen view’s read Resume, since they share one pause, but only the panel header’s is highlighted (logs.js toggleLogPause); the fullscreen one only changes its label.

  • Name the DEVICE_NOT_FOUND endpoints and the message default

    The DEVICE_NOT_FOUND row said "every endpoint that addresses a live device", but the autoupdate endpoints answer an unknown device with PARAMETER_NOT_FOUND or BAD_REQUEST, and DELETE /api/devices/{clientId} answers it for a client ID that is neither live nor stored. The row now lists the endpoints. The error-body section also says that message is never null or blank, and what stands in for a missing one.

  • Document the error body of every REST failure

    api.adoc said that bodyless 404s, plain-text 400s and the upload/delete result object still answered some failures. Every failure of the documented endpoints now answers with {code, message, details}: each endpoint section names its codes, the code table lists all of them, and a note tells a client that read these bodies as text what changed and that the statuses did not. The file-path paragraph now covers the whole error body instead of a list of plain-text endpoints.

  • State exactly which error messages have file paths cut

    The Error Body paragraph said a message never names a file by its full path, which was broader than the code. It now names the failures whose paths are cut and the answers they are cut from.

  • Describe the log as it is since the timestamp and filter work

    The user guide’s Logs section still described the log before task 7: a Time column of HH:mm:ss.SSS, the IN and OUT directions only, and nothing of the filters, the error rows or the copy button. The branch builds the docs portal, so the merge would have published a log that no longer exists.

    The section now covers, as js/load/logs.js does it: - the Time column: the date and the millisecond in the reader’s zone, with the ISO string, offset and all, in the tooltip and the detail; the timestamp field and the deprecated time; - IN, OUT and UI, and what a UI row is; - the docked Device, Direction and Event filters, which work without opening the fullscreen view; - error rows, the fullscreen view and its text filter, the entry detail and Copy payload with its select-and-Ctrl+C fallback on a plain-http host; - Pause, Clear and the default height and resize.

    + Also: the Getting Started step, the overview table and the feature list no longer say IN/OUT only; api.adoc names the picker by its current label, "Device tree (XML)"; GET /api/storedDevices says a record with an unknown protocol is masked by key name rather than failing the list; and the REST Logs section gains an anchor the guide links to.

  • Name Set value, Save settings and the device set pair

    The Load Test Protocol Options tab still said "click Save", both parameter-edit passages still said Update and Save, and the home page still described snapshots as "Save and restore". They now name the controls the pages show, and the guard reads the web Load Test sections for a plain Save or Update.

  • Correct what Expand costs a keyboard

    The comment beside detailButtonCell called Expand "one keystroke away". It is not: from the top of the page it is roughly 38 tabs to the log panel header, two more to Expand, Enter, focus lands on the fullscreen filter, and four more tabs reach the first Raw message button. The same claim was corrected in the task report; leaving it standing in the source would have left the cheaper of the two readings where a developer looks first.

  • Give the real reason the icon box is inline-block

    The comment on .icon and the assertion pinning it both said the declaration removes the descender space under an inline <svg>. It does the same atomic inline box either way, so the optical seating on the text is entirely the vertical-align beside it.

    The declaration stays — it states the box model rather than leaving it to the UA sheet’s default for <svg>, and that box is what every rule sizing an icon by font-size, and the hit-target arithmetic in the test, is measuring. What changes is that a developer who correctly reaches for vertical-align is no longer sent to display by a test citing a reason that was not true.

  • Correct two comments that describe a layout that no longer ships

    Neither is a behaviour change; both are the code stating something that is not so, which is the one thing this phase is about.

    The small-screen block said "everything sits in flow at its natural height". It does not: the floors the 1024 breakpoint gives .center-panel and .right-panel are not reset below 768, and a floor is a minimum rather than a size, so each of those panels is as tall as its content or its floor, whichever is larger. The comment now says that, with the three cases measured at 760x800 — 260px (the floor, with room to spare inside) at one device, 322px at the empty state, 1655px at forty — and the line about the two panels not clipping gets the reason it was missing.

    css/common.css justified the dense line height by claiming index.html is a row. Both halves stopped being true one commit ago. The value is still right, for a reason that does not depend on the layout: these are dense instrument panels where the extra tenth is paid once per row, dozens of rows deep.

  • Say which page actually lost its focus border

    The note beside the shared field rule claimed neither page’s text fields changed colour on focus. Only Load Test’s did not: its "all inputs are white" layer weighed (0,4,1) and outranked the .form-row input:focus that declared the colour. The Single page had no such layer, so its .form-group input:focus won normally. Correcting the note; no rule changes.

  • Bring the API reference up to the contract that now ships

    The branch changed six things about the REST contract and the reference described one of them. It still documented the lifecycle endpoints as bare verbs with no error section, said nothing about masking, and closed with an error format — {"success", "message"} — that no longer matches what a failing call returns.

    Written from the code, not from the change log: the 409/422 codes with their names, the mask on GET /api/config, /api/protocolOptions and /api/storedDevices and what posting "*" back means, the two config-file 409s, and the "replaced" flag on an upload result. The error body gets its real shape, {"code", "message", "details"}, and an honest note that a few endpoints predating the contract still answer 400 in plain text.

    One change is called out rather than glossed over: POST /api/stop and POST /api/reset used to answer 204 whatever the state and now answer 409 NOT_INITIALIZED, which breaks a caller that stops unconditionally to reach a known state. Documented as it behaves, with a note that it changed; whether to keep it or make stop idempotent is a decision for the team.

  • Mark desktop-only features in the web guide

    The user guide describes the web interface, and it described Extract CPE from DB, Autoupdate, Rules and the parameter History as things the reader could click there. None of them work headless: the first has no endpoint, the other three run inside runLater(…​) blocks that never execute without a JavaFX toolkit. The click-by-click recipes are replaced with a one-line reason and a Desktop-only marker; the field references stay, since the desktop GUI still has all four.

    api.adoc gains the 501 RULES_UNAVAILABLE response and the engineAvailable field, so the documented rule contract matches what the API now answers.

  • Document the two web modes and the per-device REST API

    Brings the Antora docs up to date with everything merged into emul_docker since 0db363fd: the landing page that offers Load Test and Single Emulator mode, and the per-device lifecycle API behind the latter.

    User Guide gains an "Operating Modes" section (landing page, mode table, URLs), a full "Single Emulator Mode" reference — start form, protocol options, active emulators, saved devices backed by devices.json, and the device detail dialog with the parameter tree — plus a workflow recipe for running individual devices side by side. The former "Web Interface Overview" is now labelled Load Test mode so the two screens stay apart.

    REST reference gains "Per-Device Lifecycle" and "Stored Devices" sections covering /api/devices/startNew, per-device start/stop/delete, the batch and server-update endpoints, /api/storedDevices, and GET /api/transportConfig. Response codes and DTO fields were read off the controller, not the @Operation summaries.

    Screenshots are retaken against a running emulator: the landing page, the Single Emulator screen, its start form with Security expanded, the protocol options dialog and the device parameter tree. web-interface.png is refreshed to show Load Test mode with registered devices and a live log stream instead of an empty screen.

  • FT_DISK downloads and the stack way of adding the emulator

    Adds an FT_DISK Downloads table (single-service compose.yml plus .env) and lays the deployment out under /usr/local/ft-system like every other FT service. Replaces the advice to prepend the root .env to the shipped compose.yml: that file is its own Compose project, and iot-emulator/.env is loaded last and would keep its own TZ. On a full-stack host the stack compose.yml already carries the block under the testing profile, with TZ and JAVA_OPTS pinned in environment.

  • Link the third-party versions to FT Version Control

    The portal now publishes FT Version Control: a per-release record of what every FT service and every infrastructure component was built against, plus the upgrade steps between releases.

    Both places that carry third-party versions point at it and state the division of labour — the tables here describe this branch and this component, that page is the platform-wide record across services and releases.

  • List the current external component versions

    The changelog index stated where the external-component block belongs but carried no versions of its own, so the figures existed only in the installation guide. Finalize-Sprint has never run for this component, so there is no release page to hold them either.

    Adds a Current values table taken from Third-Party Components, labelled as the state of the branch rather than a released set. The SNAPSHOT and the three milestone versions are carried over as they are, with the warning explaining why they are not rounded to their release numbers.

  • Fix cross-ref, dependency table, and env comment

    • Point the re-extraction troubleshooting note at the deployment-compose anchor instead of a numbered option, which broke when the Deployment section was renumbered (Compose is now Option 1, run-docker.sh Option 2).

    • Add commons-collections4:4.5.0-M2 (usp-emulator → gui runtime dep) to the Third-Party Components table and bump the milestone-version warning from three to four entries.

    • Add springdoc-openapi-starter-webmvc-ui:2.7.0 as its own row instead of crediting Swagger UI to the Spring Boot row.

    • Correct the SERVER_IP/SERVER_TARGET_PORT '.env' comment and env-vars conditionals, not together.

  • Add revision stamp and document the MySQL dependency

    Add :revnumber: / :revdate: to the installation guide, matching the position and style used in the Java service guides (provision-portal, ft-qoe-web); this guide had never carried a revision stamp.

    Also add the relational database this emulator actually depends on: the optional Extract CPE from DB feature reads the ACS database through AcsDatabaseConnection (emulator-api, plain java.sql.DriverManager) and is used by the LWM2M/MQTT/USP ACS services and the GUI/REST controller. The MySQL driver (com.mysql:mysql-connector-j, version managed by the spring-boot-starter-parent BOM) is declared in lwm2m-emulator/pom.xml and reaches the shipped gui image through gui’s dependency on lwm2m-emulator. emulator-assembly/pom.xml also declares an Oracle driver (com.oracle.database.jdbc:ojdbc8) and MySQL under the retired mysql:mysql-connector-java coordinate under its "all" Maven profile, but that profile builds a separate assembly, not the gui module the Dockerfile packages — neither reaches the documented Docker deployment, so neither is added to this table.

  • Publish under the real component version instead of dev

    The component was published under the placeholder version 'dev', so the portal’s version selector had nothing meaningful to show and every page sat under a /dev/ path that says nothing about what release it documents.

    Takes the version from version.xml, the same source the build and the release notes use, and marks it prerelease the way provision-portal and ft-ui-backend already do.

  • State where the external component versions go

    No release has been published from this branch yet, so the rule is recorded before the first one rather than after: the versions belong in the hand-written release index, never in qa.adoc, external.adoc or all.adoc, which Finalize-Sprint rewrites in full on every run.

  • Document the compose deployment and third-party versions

    The guide taught docker run -e and run-docker.sh while the FT_DISK table promised an iot-emulator/.env, so a customer following the bundle had a file the documentation never mentioned. Compose with a per-service .env is now the primary form; run-docker.sh keeps its place as the developer path, with its three deliberate deviations from the Compose defaults spelled out.

    The Third-Party Components table names the protocol stack version by version, and says outright that three of them are not release versions: Spring Boot is a SNAPSHOT, Californium and Leshan are milestones. A milestone and a release sharing a number are different artifacts, so rounding them would be wrong.

    The run-docker.sh NOTE was also corrected against the script itself: it does not just raise the JVM heap, it replaces JAVA_OPTS wholesale (dropping G1GC, string deduplication and the OOM heap-dump path) and never mounts /app/logs, so logs and any heap dump are lost on every restart via the script’s unconditional docker rm -f.

  • Add the test & coverage dashboard

    Reads every module’s target/site/jacoco/jacoco.xml and the surefire results, and sums them: the build has no aggregate report, so the overall number does not exist anywhere until something adds it up.

    Where the project stands: 73.3% of instructions and 63.5% of branches over 1779 tests. The bulk of what is left uncovered sits in three places — gui/controller (7.6k instructions at 50.9%), the usp package at 45.2%, and the USP transports (CoAP 51.5%, WebSocket 55.6%, STOMP 60.6%).

    The report also says out loud that there is no gate: jacoco:check is not wired into the pom, so nothing stops these numbers from sliding back down.

  • Document SERVER_IP and SERVER_TARGET_PORT env vars

    Headless web-mode reads these to override the target server at startup (Kubernetes/CI), per IotEmulatorGuiApplication.

  • Correct defaults and expand USP MTP, FSH_HUB, DUSUN

    Align protocol options with *_gui.properties: LWM2M lifetime 6000, add USP CoAP MTP and port table, fix MQTT options, fully document FSH_HUB/DUSUN transports, topics and options. Add FSH_HUB/DUSUN to nav.

  • Document /api/version and GET /api/devices/{clientId}

    Both endpoints exist in code (VersionController, EmulatorRestController) but were missing from the REST reference.

  • Add release changelog landing page

    Resolves the broken nav xref to changelog/index.adoc. Mirrors the northbound-api landing page; per-release pages are generated by the CI Finalize-Sprint pipeline.

  • Rework install & usage guides modeled on northbound-api

    Rewrite the Antora installation page to match the northbound-api docs structure and depth, adapted to the emulator’s real artifacts: port 8556, the idempotent run-docker.sh bootstrap, configuration-directory volume semantics, /api/status verification and FT_TLS_AUTH. Add Quick Start, Getting the Docker Image (Harbor / offline / source), Deployment options, Verify, Environment Variables, Container Management, Updating, Production checklist, Troubleshooting and Port Reference. Preserve the existing docker / requirements / manual / configuration / tls_authentication_mode anchors for backward-compatible cross-links.

    Add task-oriented Getting Started and Common Workflows sections to the User Guide, wire deep-link navigation in nav.adoc and index.adoc, and add a anchor in api.adoc for cross-page references.

  • Cover autoupdate, rules, snapshot, MTP, logs and runtime config

    Bring the Antora docs back in sync with what the Web GUI and REST API actually expose on emul_docker:

  • index.adoc — refresh the Key Features bullets to mention the parameter tree viewer, rule engine, snapshots, and live log stream.

  • user-guide.adoc:

    • Active Devices now documents Save/Load snapshot and the Parameters tree action button, plus a new "Parameters Tree Viewer" section explaining the alphabetical sort, live filter, sticky header and keyboard shortcuts.

    • Extract CPE from DB notes it is collapsible / collapsed by default and that the six fields persist through Save (acs.* keys).

    • Update Parameters: replace the placeholder Autoupdate / Rules sections with full coverage of autoupdatable / global / min / max / step / step type / period / deviation / randomize / dataset / Apply, and of the JS editor (Compile, Help, rules.js persistence).

    • Logs: six columns (Time / Device / Dir / Event / Options / Payload), 2-second polling against the server ring buffer, IN/OUT colour accents, and the click-to-detail modal.

    • Footer Options: rendering values are FULL / LAZY / OFF (not the old LAZY / EAGER pair) and changes are persisted immediately via /api/config/runtime.

  • api.adoc:

    • GET /api/config response sample now lists every field including mtp, guiRenderingType, the runtime toggles and the db* group.

    • New sections: POST /api/config/runtime; PUT device parameter; GET/POST autoupdate; MTP (USP) endpoints; Snapshot save/load; Rules get/compile/help; Logs poll + clear with seq semantics.

  • nav.adoc — surface the new Parameters Tree Viewer and Footer Options anchors.

  • installation.adoc — expand the gui_connection_options.properties description with the new runtime flags and acs.* DB keys.

  • DEV-2052 - LWM2M/MQTT Emulation tool > USP > MTP:MQTT > Connection lost > Connection retry not performed

Chores

  • Name the branch dev in the /api/version examples

  • Build and test feature branches on every push

    Same as build-test-upload.yml in northbound-api: every branch except main and dev gets mvn clean package with the full suite and a test summary, so a red test shows up before the merge into dev. No image is pushed. dev is already covered by build-test-docker-deploy.yml.

  • Build and deploy the image from dev instead of emul_docker

    The development branch emul_docker is renamed to dev, like in northbound-api and the other hasDevelop services: dev for development, main for releases. A push to dev now builds, tests and pushes the Harbor image, and the Environment Manager build defaults to dev.

  • Add the deployment/ config tree Deployment Manager mounts

    These are the application config files a generated Compose bundle mounts into this service’s container. They were vendored in ft-internal-tools (deployment-manager/catalogue/services/); this repository now owns them, and Deployment Manager reads them from the tip of this branch.

    Private key material is deliberately NOT here: keys and keystores stay in the one place they already live and are laid over this tree at generation time, so the same private key does not gain a copy per repository.

  • Add deployment.yaml contract for Deployment Manager

    Deployment Manager reads this file from the tip of this branch to know the service’s image, ports, volumes, clustering pattern and the variables an operator must fill in. It was previously vendored in ft-internal-tools (deployment-manager/catalogue/contracts/iot-emulator.yaml); this repository now owns it.

  • Ignore the local run and test artifacts

    Running the emulator in web mode writes logs/iot-emulator.log next to the working directory, and the coap-emulator tests make Californium drop a Californium.properties beside them. Both are regenerated on every run and kept showing up as untracked noise in git status.

    Californium.properties is listed without a path on purpose: Californium writes it into whatever directory the run starts from, so the rule has to match at any depth.

  • Track the .dockerignore the image build relies on

    The file was sitting untracked, so CI built the image with the full repo as context: .git, every module’s target/, the IDE and attachment directories. Keep the context to what the Dockerfile actually copies — gui/target/.jar and gui/configuration — by re-including gui/target after excluding */target.

  • Make the image build runner label an input

    Unlike the other FT services, this project builds against the Spring Boot 4.0 snapshot, so the runner needs to reach repo.spring.io. Keep rd-runner as the default and allow runner=ubuntu-latest to be passed instead of editing the workflow when the self-hosted runner cannot.

  • Add build-dispatch/build-callable for Harbor image builds

    The ft-deployments Environment Manager triggers a per-service image build with POST /actions/workflows/build-dispatch.yml/dispatches, passing ref=<branch> and inputs {branch, tags}. The emulator had no such entry point, so the Environment Manager could only pick an existing Harbor tag for emulator/iot and never build a branch.

    Mirrors TR069_Emulator: build-dispatch.yml is a thin workflow_dispatch wrapper over build-callable.yml, which checks out the requested branch, runs mvn package -DskipTests on rd-runner and pushes hub.friendly-tech.com/emulator/iot:<tags>.

    The existing push-triggered build-test-docker-deploy.yml is left as is.

  • Ship idempotent run-docker.sh for QA bootstrap

    QA bootstrap previously copied the image’s configuration into the host mount only on the first run, gated by a .initialized marker. New protocol options, renamed resource files and template fixes shipped in later images never reached existing stands until somebody manually wiped the folder, which also wiped persisted DB credentials and saved snapshots.

    run-docker.sh replaces that flow with an idempotent overlay that mirrors what the Helm initContainer now does on K8s:

    • pulls the latest image explicitly (no stale local cache)

    • overlays template files on every run: *_gui.properties, *_resources.xml, *_controls_names.properties, profiles.properties, sensor_info.properties, metering_plugin_db_connection.properties

    • seeds user state only when absent: gui_connection_options.properties, snapshot.json, rules.js — so persisted settings, snapshots and rule scripts survive upgrades

    • never touches user-uploaded files outside the whitelist (TLS keystores, custom certificates, anything else QA drops in)

    • drops legacy UPPERCASE resource filenames left over from older bootstraps so the lowercase replacements take effect on Linux

      Add a .gitattributes rule pinning *.sh to LF so the shebang stays "!/bin/sh" rather than "!/bin/sh\r" when the file is checked out on a Windows workstation.

Refactoring

  • Drop dead rules and exports, fix misleading comments

    Dead code the final review listed, checked by grep before removal: - .btn-block (common.css) and .scrollable (load.css): no markup or script uses either class. - five exports no module imports: updateDeviceTotal (config.js), showDeviceCount (devices.js), and pollLogs, toggleLogPause and openLogFullscreen (logs.js). Each is used only inside its module. The guards that slice these functions by signature follow the declarations they pin.

    + Token misuse:

    • .status-text .icon took its font-size from the spacing scale (var(--sp-3)). The 8px dot is now sized as a box, and StaticDesignTokensTest bans a font-size read from --sp-* in every sheet, page and script.

    • toast.css wrote line-height 1.4, a duplicate of --lh-ui; it now reads the token with the sheet’s usual fallback.

      Comments that said something untrue where the next editor reads

    • .btn-sm: both pages had 6px 12px, but the value is 6px 10px.

    • .log-panel: at desktop widths .app-body scrolls, not the page.

    • the device counter (devices.js, lifecycle.js and the guard that pins it): /api/status and /api/devices differ only while a device is being created, because the controller adds an item and gives it its device one statement apart.

  • Use one name and one colour per action

    Stop was red on the Load Test page and orange on the Single page, and Initialize tree, Upload and the Single page’s two Saves were as green as Start. Start is now the only green action, Stop is red everywhere, every heartbeat control wears one blue class with no colour of its own, and btn-warning is gone from the markup, the scripts and the sheet.

    The Load Test page had two heartbeat-all buttons under two names, two API Docs links and two device counters. One of each is left: "Heartbeat all" beside the lifecycle buttons that also act on every device, API Docs in the header, and the counter on the devices panel, pluralised and written by both polls through one function.

    One device tree was "Config Files" on one page and "Parameter File" on the other; it is "Device tree (XML)" on both, in the labels, the upload’s name and the error toasts. The three Saves are Save settings, Export / Import device set (their tooltips say the set stays on the server, in configuration/snapshot.json) and Device library. The Clear logs confirm says "1 log entry".

    Load Test gets the back link to the landing page that Single already had, and both app pages link the versioned user guide beside API Docs. The footer’s rendering, param update and fail response carry tooltips read off the code. The user guide, the installation page and the nav name the new labels; their anchors are unchanged.

    StaticTerminologyTest pins the facts rather than the spellings, over the served markup and the scripts that rewrite it, and holds the guide link’s version to the one docs/src/antora.yml publishes.

  • Drop an export nothing imports

    isOptionChecked is the predicate both pages use to decide whether a boolean protocol option is on, and its comment says so — but the Single page is a classic script and cannot import it, so the export was a promise to a caller that cannot exist.

  • Share one API client between the two pages

    js/single-api.js and the script inside index.html implemented fifteen of the same /api/* paths, and the two had drifted: one encoded the protocol name into the path and the other did not, one treated a response the server refused as an error and the other parsed its body as if it were data — so a 502 from a proxy mid-redeploy became, on one page only, an emulator with no devices and no protocol. Whichever page you happened to be looking at was the one that worked.

    The Single page now loads js/api.js and js/busy.js, single-api.js is gone, and its 28 call sites read Api. rather than SingleApi. Every method kept the stricter of the two behaviours: a non-ok response throws with the server’s own words and its status attached. SingleUI.withBusy is gone too — one wrapper, in js/busy.js, with the confirmation hook the Single copy never had; SingleEmulator.deleteDevice still asks from inside it, which task 6 fixes.

    The landing page made the sixteenth call, a bare fetch of /api/version in an inline script, and now makes it through the same client.

    Two small divergences went with them: Api.uploadConfigFile answers with the whole result rather than just the name, because the other page has to say whether the upload replaced a file; and the two pages asked whether a boolean protocol option was on with two different predicates, one of which accepted a real boolean. The API sends every value as a string, so neither half was wrong — but a predicate that differs between two screens reading one response is the shape of the next bug.

    StaticModuleLayoutTest gains the rule that closes this for good: with comments stripped, no /api path may be spelled anywhere but js/api.js. Its stripper has a canary of its own, because these modules name the endpoints they talk to in their opening paragraphs.

  • Split the load test page into modules

    The page was 2884 lines: a stylesheet, a document and a program in one file, 87 names on the global object, and every control naming one of them in an onclick attribute.

    Its script is now nine ES modules under js/load/ — ui, logs, config, config-files, devices, protocol-options, params, lifecycle and main — plus two files both pages will share: js/api.js, one client for every /api/* path, and js/busy.js, the one-click-one-request wrapper.

    Converting to a module is what makes this dangerous rather than tidy. An inline handler is evaluated in global scope and a module declares nothing there, so every onclick on the page stopped resolving the moment the tag gained type="module" — with no parse error, nothing in the console until the click, and no test the wiser. So the markup names behaviour instead: data-action for a click, data-change for a field, data-tab for a tab, and one delegated listener per kind in main.js. Two tables decide whether a click goes through the busy wrapper, which is also what decides whether its confirmation is asked. Controls inside anything that repaints — the device rows, the three modals, the log panel header — are bound by the module that builds them.

    The tabs had two sources of truth, an onclick for the action and a data-tab for the highlight; data-tab is now both, and the Insecure badge that opens the security tab uses the same attribute rather than a second mechanism.

    readApiError and apiError were the same function twice, one per page; Api.readError is the one, and it carries the response status so the parameter editor can still tell 404 from the rest. The two copies of withBusy had diverged — one had a confirmation hook and a callback that re-derived the lifecycle buttons, the other had neither — and js/busy.js has both as optional extras a page registers for itself.

    StaticModuleLayoutTest is new: no static file over 800 lines, no page hiding a program in a script element, no inline handler on a page that loads a module, and no data-action or data-change in the markup that nothing dispatches. The ten existing guards follow the strings they pin into the files those strings moved to; where a mechanism genuinely changed — the busy hold, the wrapper route — the assertion was rebuilt on the new one rather than relaxed. Each was proved by mutation.

    Two behaviours changed with the merge, both deliberate: an action that fails now shows the same message whether the server refused it or the request never arrived (the "Error: " prefix is gone from this page), and a transport failure during Init/Start/Stop is written to the log panel as those already were for a refusal. The dead no-op renderProtocols and the GET /api/protocols that fed it are gone, saving a request per load.

  • Move the load test styles out of the page and into two sheets

    The Load Test page carried 900 lines of CSS inside a <style> element, so a stylesheet, a document and a program shared one 2884-line file and only the prose between them said which was which.

    css/load.css is the page’s own furniture — the frame, the toolbar, the tabs, the side panels, the bottom bar — and css/log.css is the log panel with its two tables and its fullscreen modal, which is the one part large enough to read on its own and the part the next log work will touch. Both sheets load after css/common.css, in that order, so the scoped surface rules still win.

    Rules and comments moved verbatim; only the indentation changed, because they no longer sit inside an element. The three guards that read the page through its <style> block now read the sheets, in link order, so a rule is still the page’s whichever of the two files carries it.

  • Rename the upload input so it cannot shadow its handler

    The file input was id="uploadConfigFile", the same name as the global function the Upload button hands to withBusy. An id is a property of window under named access, so the two were one bare identifier with two answers, and which one won depended only on how the script was loaded: a classic script’s top-level function declaration is an own property of window and beat the element.

    Under type="module" the declaration stays in the module and the element wins. withBusy would then be handed the input, read no .confirm on it, skip the "Replace existing" question and overwrite the file unasked, then throw inside its own try where nothing surfaces the failure — a dead button with the whole suite still green.

    The id is now configFileInput and StaticConfirmationsTest keeps the two namespaces apart: no element id in the page may equal the name of a function its scripts declare.

  • Give the three pages one set of design tokens

    The landing, Load Test and Single pages each carried their own copy of the design. index.html declared 14 custom properties in its inline <style>, css/single.css declared 12 different ones, landing.html declared none and spelled every colour as a literal; between them they used 78 + 24 + 10 hex values, nine radii and fifteen shadows. A shared component could not rely on any of it: css/toast.css asks for var(--neutral), which only index.html declared, so every toast on the Single page fell back to its hard-coded grey.

    css/single.css also set html { font-size: 20px } and sized everything in rem, so a control declared 0.85rem rendered at 17px there and the identical control at 12px on Load Test. That rule is gone and every size on the page now comes from the shared --fs-* scale; where the two pages disagreed about a component, the Load Test value won, because that screen is the dense one people keep open.

    New css/tokens.css holds the palette, the type scale, spacing, radii and shadows, and is the first stylesheet on all three pages. New css/common.css holds the components both app pages share — buttons, panels, badges, the data table and the appearance of a text field — extracted from the rules that already existed rather than invented.

    The palette is also corrected for contrast: white text on the old --success was 2.54:1, on --warning 2.15:1 and on --danger 3.76:1 against a 4.5:1 threshold; the replacements read 5.48, 5.02 and 4.83. The greys the audit measured at 2.85:1 and 3.54:1 become --border-strong at 3.22:1 for boundaries and --text-3 at 6.54:1 for text, and a green used as text is now its own token rather than the fill that sits behind white.

    index.html’s "unified theme" layer is gone with them. It re-declared the background of .panel, .toolbar-section, .tab.active and .protocol-options-toolbar 300 lines below where each was defined, so the value that shipped was never the one written beside the component. Each surface is now decided once, where it is declared.

    StaticDesignTokensTest pins all of it: the sheet exists and loads first on every page, no page spells a colour out, single.css has neither an html rule nor a rem left, the shared components are declared exactly once, and every custom property any file reads is one the token sheet declares.

  • Quick Actions/Config Files as a grey bottom bar

    Relocate the block to a full-width horizontal bar in the wide bottom area (above Logs), styled as a grey band with white input fields to match the desktop panel look. Frees the left column for a taller Protocol Options list and restores full height to the right-column Update param panel.

Performance

  • R4b-1 device-model slimming, memory only, both modes (SDD 17.2/17.2a A1-A4, B1-B4)

    A1 model/SharedObjectModels: one multiple-instance ObjectModel per (objectId, version) per run (run = the /api/init shared executor, weakly held); synthesized overlays keep a per-device copy. A2 encoder escape lists static final List.of. A3 config/Lwm2mNetworkConfigs: one NetworkConfig per (ack, stage, receiver, sender, tcp) tuple, knobs parsed and range-checked first (IllegalArgumentException naming the key), cap 16 per JVM, beyond → per-device instance + one WARN. A4 one encoder/decoder wrapper per device. B1 single-value Resource holds a volatile Parameter, map only on a 2nd entry (CAS). B2 enabler params in an id-ordered IntSortedMap. B3 instance factory captures the device only; remainingRegistrationObjectInstances cleared at a non-discovery registration. B4 CustomObjectEnabler reads Leshan’s instance map (its stale copy removed). New-contract cells (each mutant shown RED): I-5 unmodifiable + snapshot, A1 holder lifetime, A3 cap/fallback/ validation, A4 one wrapper. I-6 golden bytes unchanged.

    Local live heap per device (emucap-native-measure.sh, mode ON, N=500 → 2000): | arm | before | after R4b-1 | line | | NoSec | 111.9 | 73.2 | 75 | | PSK | 135.3 | 94.3 | 100 | X.509: host-only (minted-CA leg not reproduced locally).

  • Allocate parameter history only when a value changes

    bindParameter seeded a value list for every parameter of every device, and the shipped default rendering is LAZY, not OFF, so this is the production path. An ArrayDeque with its 16-slot array, the map node, the seed entry and its Instant cost about 270 bytes per (device, parameter) before anything has of parameters, against a container default of -Xmx1g. The service allocated nothing per parameter before this branch, and running large load tests is what this tool is for.

    The list is now created by the first change. Parameter.setValue keeps the value it overwrites, so record() seeds an empty list with it and appends the new one: a parameter that has changed reads exactly as before, which history_follows_changes still proves unchanged. A parameter that never changed has no list at all, and the web UI already renders that as "No values recorded yet." recordIfEmpty had no caller left and is gone; record() takes the previous value instead, which is why its unit tests change shape.

    The "recorded" flag the REST answer carries still means "rendering is not OFF" and is computed from the rendering alone, not from a list existing.

Tests

  • Tie the client’s masked-secret rule to the server’s masker

    The components the client refuses in a template were a hand list of four names, checked against the same four names in its tests. A new parity cell masks a stored template with the emulator’s own masker, reads it as the client record and requires the client to name every component the server masked, so a secret added on the server side cannot be missed.

    Also: the live cell checks the text of the refusal, and the longest call deadline the client accepts has a cell of its own.

    Client module: 164 tests. Contract classes: 54.

  • Pin the server’s answer to a masked template past the client

    The typed client now refuses a listed template, so the live cell D3 asserts that refusal and then posts the same template with a plain HTTP call: the emulator still stores no key for it. The device ids of the stored-device cells carry names that say what each is for, and the contract package keeps one definition of the protocol, the mask and the loopback address.

  • Close the test gaps found by the test-adequacy review

    Client module (142 tests): cancellation at the call deadline and on interrupt, the default 64 MiB body limit of a client built with defaults, the percent-encoded path in the exception text, and a closed-world classification of every model component as secret, value, keys-only or plain.

    Live contract test (25 cells): a masked config sent back keeps the stored key; a listed template started again stores no key (the mask is dropped on a template, not kept); per-device heartbeat in a fleet of two; the inclusion side of log paging; a 2xx answer for every endpoint except four that can only refuse here.

    Simplifications without behaviour change: JsonHttp takes its body limit through a package-private constructor instead of a Lombok wither; a one-element set in MaskedText becomes a constant; two unused members of the test support are gone.

  • Pin the control API contract against the real emulator

    Three surefire classes in the gui test tree, one test-scope dependency:

    • ControlClientEndpointInventoryTest: every @RestController mapping under /api is either a client endpoint or on a 10-entry allow-list with a reason

    • ControlClientModelParityTest: each client record against its server type, names and types through Jackson’s own view

    • ControlClientLiveContractTest: the emulator as a child process on loopback, a minimal CoAP registrar in place of the ACS, a recording HTTP delegate; 20 ordered scenarios call all 50 endpoints and compare the raw JSON key set of every answer with the record it is read into

      Whole reactor on JDK 25: BUILD SUCCESS, gui 892 tests (843 before).

  • R4b-1 fix 4 - deterministic guard for the N1 Resource monitor

    A root write and a first single → multiple conversion started while the test holds the Resource monitor must both be BLOCKED on it; released, the keys are {-1, 1} and the root is R1. RED at b83b93c (the pre-N1 CAS code takes no

  • R4a fix 7 - hold rc and budget-label cells, base-step skipped vs failed

    Checkpoint F R4a round 2 residuals: TEST-5 (a stopped steady hold measures nothing), TEST-6 (gate and continuity GB labels follow GATE_BUDGET_MB / BUDGET_MB), N-g (no teardown when nothing started), N-h (base-step-skipped reason=<abort|docker-unresponsive>), CLR-4, API-4. Finished by the orchestrator after the coding lane died mid-round; selftests 181 / 60 ok in 3 modes (scratchpad r4a-fix7-*.log).

  • R4a fix 6 - checkpoint F round 1 findings

    • COR-1: a pending abort is folded into the verdict when the b0 container survives its teardown

    • TEST-1/REQ-2 (SDD 17.1 amended): fit-not-computable applies to ON arms only; an OFF arm without a slope stays on its verdict and its fits read "n/a (no slope)"

    • gate lines name their budget (GATE_BUDGET_MB): "PASS (14 GB)", "…​ MISS at 14 GB (needs ~x GB)", "NOT-EVALUATED at 14 GB (…​)"; the needed budget is rounded UP to 0.1 GB

    • cells: INCOMPLETE ON arm not gated (TEST-2), no gate line for OFF arms (TEST-3), a MISS beyond the largest valid step ends extrapolated (TEST-4)

    • base step: no container starts after an abort or a docker timeout, the steady hold stops at the next 1 s slice, a short sample is read into scalars (no set -u death); the dead "nostart" parameter is gone

    • README: R3 + R4a title, killed-in-teardown string, base0_* = N=1 base step, the gate as its own Results bullet, knob table (BUDGET_MB, GATE_BUDGET_MB, CONCURRENT_MAX, PIDS_LIMIT, SINK_IMAGE, EMUCAP_RESULTS, EMUCAP_TOOL), the full metrics.env key list

  • R4a fix 5 - R4 gate integrity

    • N2: the gate is evaluated only for a VALID arm; any other arm reads

    • N1: no measured base → NOT-EVALUATED (no base=measured fit); a measured base without a slope → NOT-EVALUATED (no slope)

    • N3: the gate lines cover every planned ON arm of $ARMS, not the metrics files found; an ON arm without metrics.env reads NOT-EVALUATED (no metrics)

    • N4: the FAILED and INCOMPLETE done-line cells assert gate=[…​]

    • N5: exactly 100,000 passes (boundary cell); the PASS/MISS line carries " extrapolated" beyond the largest measured step

  • R4a fix 4 - teardown failures logged + listed, SDD 17.4 14 GB gate

    • T4-1: the "; also <step>-teardown-failed" suffix is gone (six later worst_verdict sites dropped it). The verdict is the plain winner; every teardown failure (base, step N, cadence) writes one arm-log line event=teardown-failed step=<s> and summary.md lists the steps under "teardown failures: <list>|none"

    • T4-2: base-teardown-failed sits in the adjacent-pair precedence table between pki-mint-failed and step-25-setup-failed

    • SDD 17.4: the host summary adds the K=4 fit at GATE_BUDGET_MB (14336, gated) beside the unchanged 9 GB columns (BUDGET_MB, continuity) and one gate line per ON arm: PASS, or N_max(K=4,14 GB)=<n> < 100000 MISS (needs ~<x> GB) with the formula solved for the budget. The gate never changes an arm verdict nor the exit code; the host exit line repeats it as gate=[…​]

  • R4a fix 3 - teardown precedence, base-step order, bind sites

    • N1: teardown-failed ranks 41, above the setup failure of the same step, folded last at both sites (step loop, cadence); when a higher verdict wins (an operator stop) it is still reported as "; also <step>-teardown-failed" (fold_teardown in emucap-common.sh)

    • N2: the base-step cells pin the order wait, steady, measure, sample, teardown

    • N3: the sink bind cell checks both exact endpoint sites

    • a docker call that timed out (e.g. in the base step) stops the step loop before the next step; the cadence-step docker fixtures moved to a cadence-only knob

  • R4a fix 2 - metrics seam, teardown policy, sink bind

    • F1: the real metrics.env of a 2-step sweep pins first_valid_* and the fit base; a key-contract cell checks every key the host summary reads is emitted by the tool

    • F2/F7: any container surviving its teardown (base, step N, cadence) ends the arm INCOMPLETE <step>-teardown-failed, ranked 40 with the setup failures; step and teardown outcomes are both kept

    • F3: the base step holds STEADY_S before it is measured

    • F4: wait_registered cells (poll count, STALL_S bound) and an immediate return on an abort or a docker timeout; sink start failure

    • F5/F6: native-side fit-base bounds and the native intercept flag

    • addendum: LwM2mSink takes -Demucap.sink.bind=<host> (default: the wildcard), printed as bind= in its ready line

  • R4a fix 1 - N=1 base step, fit base, teardown checks

    • the base step runs ONE device, started and registered; base0_* are its raw totals and the fit base is those totals minus 1 x the slope, computed after the sweep; below 0 or above the smallest valid step it is NA(implausible) and the fit uses base=declared

    • the real run_base_step has cells (base_step_run): exact values, the configure args, one teardown of b0, and every failure path

    • step_teardown checks that rm -f removed the containers; a surviving b0 is INCOMPLETE base-teardown-failed; a base-step docker timeout is docker-unresponsive

    • host: the 17.1 formula in the summary header, the fit base column and the regression intercepts as a flagged comparison; arm_cost counts the base step

    • precedence pins for the produced killed string and fit-not-computable; the dead rank-10 killed pattern removed; hist_trim on the real jcmd shape

  • R4b characterisation cells + native measure tool, green on pre-R4b code

    I-1 isolation (server Write, Observe-notify, WRITE-ATTRIBUTES, Create/Delete object instance, per-device PSK), I-1b single → multiple incl. the concurrent first conversion, I-1c multiple-resource merge write, I-3 NEW (last-activity per device, pmin/pmax per device - today’s harness sees no periodic pmax Notify, characterised as such), I-6 golden wire bytes (Register, READ /1/0, DISCOVER /3/0, Notify) for one and two devices, mode OFF (default) and mode ON (scale-on); cell-to-execution map in DeviceModelInvariantCells javadoc. loadtest/emucap-native-measure.sh: loopback emulator REST, demo-host refusal, no heap dumps, PSK via 0600 files, per-slice lines with exit 0/1, --selftest. Before R4b (local, N=500→2000): NoSec 111.9, PSK 135.3 KB/device.

  • R4a - N=0 base step, computable fit, histogram head

    • every arm measures an N=0 base step (container initialised with no device): base0_live_mb / base0_native_mb / base0_rss_mb

    • the fit (SDD 17.1 / D-PERF-10) uses the measured base, labelled base=measured, else the declared 64 + 420 MB, labelled base=declared; never n/a while the slope exists; a VALID arm without a slope is INCOMPLETE fit-not-computable (rank 20); regression intercepts are diagnostics only

    • jcmd-*.txt keeps NMT plus the top 60 histogram classes and the Total

    • R3 residuals: the scan failure is its own rank-85 verdict in interrupted_scan and killed_arm_cleanup (secret-scan-not-run, text keeps scan=not-run); the post-reap sweep signals the group only

    • cells for each, mutation table RED; README fit/base text and columns

  • One verdict precedence for every combination (R3 F4)

    The class behind the round-4 findings was verdict combination done ad hoc in six places. emucap-common.sh (sourced by both scripts) now holds ONE verdict_rank/worst_verdict and ONE cpus_overlap_qa: secret-in-* > scan integrity > abort > docker-unresponsive > negative-control-* > pki-mint-failed > step setup failed > cadence-not-measured > quality gates > interrupted/killed > VALID. The step loop, the cadence re-run, apply_gates, the terminal scan, interrupted_scan and the launcher’s killed_arm_cleanup all go through outranks cadence-not-measured, an abort outranks a docker timeout, a secret verdict is never overwritten (killed-in-teardown records scan=not-run). The launcher kills an arm’s orphaned group members and warns when setpgrp fails; stats_loop backs off when docker stats fails. Table-driven precedence cell plus cells per regression, each shown red.

  • Checkpoint F R3 round 3 - demo host, kill cleanup, precedence

    • COR-8: every self-invoking cell states "not a demo host"; a cell runs the whole selftest under a simulated demo-host marker

    • COR-9: an ON arm with no valid step (no cadence) is INCOMPLETE cadence-not-measured; COR-10: an abort beats a docker timeout

    • SEC-7: the on-exit wait defaults to the arm’s worst-case teardown (6 x EMUCAP_TEARDOWN_TIMEOUT_S + 60 s); after a KILL the launcher removes the secrets dir and raw logs and marks killed-in-teardown

    • SEC-8: each arm runs in its own process group, signalled as a group; stats_loop ends with its parent

    • SEC-9: the launcher refuses on the demo host unless pinned off CPUs 0-3; README builds the image with the legacy builder (cpuset honoured)

    • cells: cadence after a docker timeout, cpus_overlap_qa, each shown red

  • Checkpoint F R3 round 2 - verdict wiring, demo guard

    • COR-5: the ON cadence re-run is routed through step_outcome; a failed or row-less cadence step is INCOMPLETE (cadence-not-measured)

    • COR-6: docker-unresponsive is final (apply_gates never relabels it; a timed-out keytool mint is not pki-mint-failed)

    • COR-7: best_rate_bound is NA when a CPU peak was not measured

    • one class function decides the docker bound and the shim embeds it; the per-sample logs --tail is in the short class

    • SEC-5: the demo host is recognised by a persistent marker as well as the lock; direct runs and QA cpusets are refused there

    • SEC-6: on exit a live arm gets TERM, a bounded wait, then KILL

    • main split into sweep / apply_gates / finish_arm; cells drive the real sweep and run_step with docker-facing steps stubbed

    • cell groups named by behaviour; README carries every knob

  • docker-call watchdog - a wedged daemon cannot hang a run

    The argv shim logs the argv first, then runs the real docker under a separate kill watchdog (TERM, KILL after 5 s; perl alarm cannot stop the Go CLI): 600 s for run/build/pull/logs, 120 s for everything else, 30 s in teardown. A timed-out call returns 124 and logs event=docker-call-timeout cmd=<subcommand> after_s=<n> without argv; the arm ends INCOMPLETE reason=docker-unresponsive; teardown logs the failure and still finishes. The launcher bounds its own label teardown (HOST_DOCKER_TIMEOUT_S, 30 s), so a stuck arm still ends non-zero with the DEMO-OPS lock released.

  • Checkpoint F R3 fixes - teardown, rates, gates, docs

    • COR: negatives need a step that ran (NOT-RUN) and keep INCOMPLETE / pki-mint-failed; a second TERM cannot cut teardown short; rate = N/1 when all register at the first sample; the decrypted CA key is removed in the keytool container; the sink mounts only its files

    • PERF: maps lines sampled, native-allocation failures are a knee (native-wall) and an error line; a negative live base is floored; sink JVM CPU sampled, best_rate_bound, steady-window Update note

    • tests: cells for the executor findings 1-10 (verdict-less arm, setup failure, T12 gates, attached -d, partial foreign-ca, NA native fit, QA baseline, arm order, unknown WINDOW, OFF JAVA_OPTS, single-signal knees, parent-label-only teardown, acquired after the give-up)

    • SEC: qa-impact tears the label down at once; on_exit stops a live arm before the lock goes; the tool refuses direct runs on the demo host; taskset in the launch block

    • README: every column, knob and verdict reason; VERDICT file format

  • R3 adversary pass 2 - signed negatives, verdict guards

    • negative controls check their signature: confirmed vs NOT-REJECTED (a lenient sink no longer passes as a rejection)

    • an INVALID secret verdict is never downgraded by a later teardown; an interrupt rewrites summary.md and metrics.env too

    • registered_end comes from the last NUMERIC sample; an absent stats line is NA, never 0; the stats defaults on the step row are NA

    • host: an implausible base yields n/a fits; ON stubs carry the heap-preallocated RSS marker; a qa-impact after a VALID arm has a cell

    • each new cell shown red (red/r3-fix2-*.log)

  • R3 adversary fixes - fail-closed auth, scan, controls

    • auth gate: sink stats keys missing ⇒ NA ⇒ INVALID (auth-unverified); the parser is checked against LwM2mSink.printStats' own format

    • an interrupted run is scanned at teardown; raw emulator/sink logs are scanned before deletion (secret-in-emulator-log); needles add the master’s Base64 and one derived device key

    • implausible intercepts ⇒ NA(implausible); no RSS base in ON arms; the emulator-side registered count is dropped; registered_end + reg-lost

    • host: fits above the largest measured step marked extrapolated, an own-fence composition check, grace-expiry SIGTERM logged, an abort the arms did not report is never VALID

    • negative controls NEGATIVE=shared-identity / foreign-ca

    • new selftest cells (A-G), each shown red, P3 load-hardened

  • Capacity tool v2 - OFF/ON arms, secrets, host launch (R3)

    emulator-capacity.sh measures five arms: OFF-NOSEC, OFF-PSK (as shipped, no heap dump) and ON-NOSEC, ON-PSK, ON-X509 (SDD 4.7 profile, heap and fence from the 4.0c formula). Per step: sink-authoritative registration, t50/t90/t100, rate, platform threads, live heap after a full GC and NMT native via a JDK side container, sysctls, the scale-mode capture line, ParametersUpdater INFO absence, knee type (thread wall, JVM OOME, cgroup OOM, rate); per-device slopes and base; a stated-cadence CPU re-run. Secrets fail closed: docker argv shim, REST bodies on stdin, 0400 files, keytool -*pass:file, inspect snapshots, canary-proven terminal scan.

    LwM2mSink adds PSK_PER_DEVICE (D-API-2 formula, KAT at start) and X509 (run CA as the only anchor, CN != ep counted) and counts CoAP retransmits.

    emucap-host.sh runs all five arms under the DEMO-OPS lock with WINDOW=any (default: give-up 90 min, hard stop at plan + 30 min) or WINDOW=night (22:00-06:00, 23:30 give-up, 05:30 hard stop), QA guard, cpusets, label teardown, non-zero exit on a failed arm, and an OFF-vs-ON summary with the 4.4 fit. Both scripts carry a fake-clock / stub selftest.

  • Secrecy cell checks stored PSK and minted key tail (NEW-1)

    The DEBUG secrecy cell now also looks for the per-device /0/0/5 value, the template key in Base64, and the secret-bearing tail of the minted PKCS#8 (Base64 and hex), not its fixed per-curve head. Shown red by logging psk.keyBase64() at DEBUG in setUpSecurityParams.

  • R2 adversary cells - issuing CA on the wire, race, reboot

    • B1: minted leaf under an issuing CA, server trusting the root only: leaf_and_ca registers presenting [leaf, issuing CA]; leaf is refused

    • B2: 16 racing first starts of one run load the CA once

    • B3: a rebooted device presents the same minted leaf / PSK identity

    • B4: a PSK device restarted in X.509 mode hands no PSK store to DTLS (Lwm2mDevice.applyPskStore extracted as the seam)

    • B5: DEBUG on the root logger leaks no minted key, PSK or CA password

    • B6: a CA without SKI gets an AKI from its public key, PKIX validates Each cell shown red by mutating the line it guards.

  • Pump Error cell throws LinkageError, not a VM error

    A regression in the pump’s Error branch now fails the cell by name instead of crashing the surefire fork (simulated OutOfMemoryError). Shown red by removing onError.accept(e) in DtlsReceivePump: the cell fails at :126.

  • Checkpoint F fixes - wake port, timeouts, dead branch, JaCoCo once

    • T13: the wake must take ANOTHER pool port; a knob pushed into the running device before it sleeps is honoured after the wake (D-REQ-4).

    • The ON fleet and reboot cells and the fleet teardown carry bounded JUnit timeouts (separate thread), so a spinning connector loop fails a named cell instead of hanging the scale-on fork.

    • DtlsReceivePump.started: drop the unreachable previous-pump branch.

    • One shared SleepingWave helper for the T10b cells.

    • ScaleMode import grouped with the other com.friendly imports.

    • JaCoCo 0.8.14 declared once in the parent pluginManagement; the three modules reference it.

  • A throwing onSent is never reported as a send failure (N1)

    The onSent-throws cell now also records any onError of that message and asserts none: a sent message must not be reported as failed because its own success callback threw.

  • Close R1 test gaps - Observe, knobs, changed-line coverage

    • T10 in both modes: Observe → Notify, manual_reg_update (with a lifetime control cell), FOTA simulated Execute progress, SOTA install progress.

    • The in-process server now collects notifications from the endpoint’s NotificationListener: Californium 2.0.0-M16 re-creates a notification’s exchange from the observation store (BaseMatcher.matchNotifyResponse) and never calls the original Request’s MessageObservers, so the earlier harness saw the device’s Notify go by unread.

    • DtlsReceivePump.reportingTo: the device-failed report of a pump Error, extracted from the endpoint factory lambda so it is unit-tested.

    • Coverage of every changed legacy line: TCP connector cell, main’s self-check (refusal stops before Spring; a pass reaches Spring).

    • The delay cell asserts an answer before its code (a serialized run now fails on the assertion, not on a null).

  • Record kernel limits, stop promptly on SIGINT

    summary.md now records vm.max_map_count, kernel.threads-max, kernel.pid_max and ulimit -n/-u read inside the emulator container, plus the knee step’s first error line (named explicitly when it is "unable to create native thread"). A backgrounded run inherits SIGINT as ignored, which bash cannot trap: the script re-execs once with INT restored and sleeps as waited jobs, so INT tears down like TERM. The host launcher defaults STEPS to 25..12800.

  • Emulator LwM2M multi-device capacity baseline tool

    Measures one shipped oneiot-emulator container (NoSec / PSK) against a permissive Californium M16 sink: per step N registration t50/t90/t100 and rate, steady-window threads, RSS, CPU, heap after GC, error signatures and a thread-name census, stopping at the knee. Includes a --selftest for the knee and summary awk, and a demo-host launcher with the night window, DEMO-OPS lock, QA-safe cpusets and a 401 QA guard.

  • Upload logging cell also scans logged stack traces (ED-4)

  • Upload logging cell covers exception messages that echo the URL (ED-4)

  • Pin git.properties provenance limit in linked worktrees, NSLookup wire keys (ED-5, ED-1)

    git-commit-id resolves the main checkout from a linked worktree; images must be built from a regular clone.

  • re-pin the real-server EST IT to ft-est-service 9815176 (v5)

    • est-it defaults: image ft-est-service:it-9815176 (--target runtime, label source.commit=9815176301f95d1d5ee4377bb7dfa86311bb8ecf)

    • server env: software-ca profile + EST_CA_CUSTODY=SOFTWARE (never production), EST_COAP_SERVER_NAME = the host the IT dials (127.0.0.1)

    • import body with exactly one key kind; response asserts keyCustody=SOFTWARE

    • I1: /sen 281 is the leaf only; /crts holds the tenant CA and the DTLS anchor

    • new I8: the second operation authenticates the server through the stored /crts anchor + SAN (EXPLICIT_TA), no unpinned/ta-mismatch WARN

    • EstClient: explicit 64 KiB Californium max resource body size

    • fixture retries a cell’s first exchange once on TIMEOUT no-response, logged; a unit cell proves the bound (second failure propagates)

  • Close the adversary gaps; refusal re-report, finished-outcome status, no config capture

    Tests (each red against its mutation first): the real Lwm2mDevice.start() drives EST (composed cell) and structure checks ignore commented-out seams; server refusal tokens tied to schedule rows in the real-server IT (I6 quota plan, new I7 renew-too-early); real isClientRunning() after stop(true)/stop(false); renewal re-armed when a pin is fixed with a valid credential; no fault affects /sren; restore leaves unrelated X.509 instances alone; trustMode stays the issuing mode; I2 asserts the capped renewal; no key material in any log line. Fixes: a refused CONFIG is reported again after the settings change and revert; status shows the last finished operation and publishes the credential last; the device binding captures only the property map.

  • EstEnrollmentIT against a real ft-est-service (profile est-it)

    Testcontainers MySQL 8.4 + ft-est-service:it (source.commit label pinned to bf5cb1f): enroll with CN == endpoint, re-enroll gives a new serial, bad CSR CN and missing factory credential refused, pin checked, lost /sen response recovered by same-key Replay. Opt-in profile est-it; a surefire liveness test keeps the IT, the profile and the documented run command in step.

  • Pin UNKNOWN as the CoAP device’s connection state

    CoapDevice has no handshake with its server: start() writes "connected" as soon as its own local endpoint opens. So it keeps the interface’s UNKNOWN, with a comment saying why, and a test checks that it stays UNKNOWN while its status line reads "connected".

  • Wait for the shared executor before the async checks

    MqttDevice runs update and init work on one static pool of CPU x 2 threads shared by every device in the test JVM. Tests that start a device leave initializeParams tasks there that sleep 1.5 s. On the 2-CPU GitHub runner the pool has 4 threads, so when update_publishesAsynchronously and initializeParams_subscribesThen- PublishesAsynchronously begin, their own task can wait behind that leftover work past the 1-2 s verify timeout ("Wanted but not invoked", zero interactions). This broke the first emul_docker CI run with tests. Locally the pool is large enough, so the tests were green.

    Both tests now wait, with a 30 s ceiling and a clear failure, until the pool has drained what earlier tests left, and keep their original timeouts for their own task. Reproduced and verified with JAVA_TOOL_OPTIONS=-XX:ActiveProcessorCount=2: red before, green three times at 2 CPUs and once at 1 CPU after. Production code is unchanged.

  • Read the start page and API docs for retired labels

    The retired-label check read the user guide, the installation guide and the nav only, while index.adoc and api.adoc quote the pages too: the feature list names the device set pair, and an endpoint’s prose says what a page calls its control.

    api.adoc is read without the headings of its Endpoints section. Those name REST operations — "List Config Files" is GET /api/configFiles — in the API’s words rather than a page’s, as the desktop sections of the guide keep the desktop’s. The error tables contain no retired label and are read in full. A canary holds the cut to headings alone.

  • Share one helper across the static-asset guards

    Eighteen guard classes each carried private copies of the same helpers, and the copies did not agree: four comment strippers, two function slicers, two CSS rule finders, two counters. Every guard was written and mutation-proved against the copy it had, so StaticAssetSupport keeps each semantic whole under a name or a mode of its own — CommentDialect, functionBody against indentedFunctionBody, firstRuleAtColumnZero against theOnlyRuleFor, countOf against countOverlapping — and every class asks for the one it used. No assertion changes.

    StaticAccessibilityTest had grown to 1225 lines. It is split by concern into StaticAccessibilityTest (names and landmarks, and the stripper’s canary), StaticKeyboardAccessTest, StaticTabStripTest and StaticFocusRingTest. Method names, display names and the test count are unchanged, and the markup scanning the four share lives in the support class rather than in four copies.

  • Catch every hand-built failure spelling in the guard

    The guard matched a line and the next one, so it missed new ResponseEntity<>(status) and new ResponseEntity<>(body, status), ResponseEntity.of(Optional.empty()) and ofNullable(null) (bodyless 404s), unprocessableContent() (the Spring 7 name), a status given as HttpStatusCode.valueOf(…​) or held in a variable, and a builder chain split over three or more lines.

    It now blanks comments and matches each pattern over the whole file, adds those spellings and a static import of ResponseEntity’s builders, and lists every ResponseEntity.status(…​) against an allow-list of exactly one: compileRule(status), the POST /api/rule compile result that api.adoc names as the one exception to the error body. A second status set by hand fails it, and so does that exception going away.

  • Let the failed-delete test run on Linux

    protectFromDeletion asked for the DOS attribute view first. Linux file systems report that view too (ext4 keeps the flags in extended attributes), but dos:readonly does not stop an unlink there, so the probe looked unprotected and a_failed_delete_names_the_file_only was skipped on every Linux account - CI never ran it. Reproduced in WSL on ext4: DOS first skips the test, POSIX first makes Files.delete fail with AccessDeniedException as the test needs.

    POSIX permissions are now asked first and the DOS flag is the fallback, in releaseProtection as well. Windows keeps the read-only flag; the test still skips where the account may delete anyway, which is root.

  • Point the active-tree delete test at a missing directory

    The MockMvc delete test told the endpoint its configuration directory was "configuration", the shipped gui/configuration, and asked it to delete lwm2m_resources.xml. The 409 comes before the file is looked up, but a regression in that check would have deleted the shipped device tree during the build. The directory is now one that does not exist.

  • Strip comments before checking init()'s order

    singleBindsListenersBeforeTheFirstAwait compared positions in the raw body of SingleMain.init(). The comment at the top of init() explains the ordering in words, and the comparison stayed on the code only because that comment writes "await:" rather than "await ". The body is now read with comments removed, and a canary proves the stripper takes that comment and keeps the code.

  • Pin the poll registration that gives the pause its scope

    StaticPollingVisibilityTest left tasks.push(task) unpinned, and it is the line that puts a task into the list the visibilitychange listener stops and catches up. Deleting it — every interval then runs on in a hidden tab and nothing catches up on return — or making it conditional ("if (period < 10000) tasks.push(task);", which pauses two polls of four) left all five tests green.

    The push is now pinned once, at the top level of every(), as a statement of its own rather than the tail of a condition, before the hidden check, into the single tasks list the listener walks: one declaration of it, and no parameter shadowing it.

  • Pin that the filter rule listens on the field, at keydown

    The helper assertion pinned what Dom.clearOnEscape does with an Escape but not how it hears one. Bound at keyup, or on the document, it runs after modal.js’s document keydown listener, which sees an unhandled Escape and closes the dialog first: the first Escape in the Protocol Options filter would lose unsaved edits again with every assertion green. The binding is now pinned, as the Load Test filters' own listener was before they moved onto the shared helper.

  • Pin what gates the backdrop and which end Tab wraps to

    Three assertions in StaticModalTest pinned the presence of a word rather than what it decides, and a mutation survived each: dropping the press check from the backdrop close (the line that resets the flag still satisfied the contains), swapping which end Shift+Tab and Tab wrap to, and putting an inline style back on the Protocol Options body (the "no inline style" lived only in the description).

    Each is now pinned as the gate or the order itself, and the stack push, the splice and the top-only focus hand-back are pinned beside them.

  • Pin a rule’s scope, not just the declaration inside it

    ruleFor matched its selector with indexOf, so re-scoping the row cursor to .log-fullscreen-modal tr.log-row left a sheet that still contained ".log-row {", still satisfied every assertion about it, and silently took the affordance off the docked table. That is round 2’s regression rebuilt out of a change of scope instead of a deletion, and it is the third escape in this task with that shape: a guard written to pin a value keeps admitting a change of where the value applies.

    The selector is now anchored to the start of a line. All six call sites declare their selector at column zero, so nothing else moves, and the anchor rejects one more scope change on the way past — a rule indented into an @media block, which these guards had no other way to notice.

    Its known limitation is written down rather than fixed: a selector that appears only inside a comma-separated group is reported missing. No rule it is called with is written that way.

    The same distinction closes the dispatch guard beside it. Forbidding the action in the two tables left an explicit branch in onClick free to open the dialog a second time, so main.js may not name 'open-log-detail' at all, anywhere, comments stripped.

    Two comments corrected with them: onKeyDown still described a log row as role="button", which it has not been since rows went back to being rows; and the walk to the log panel is about 35 tab stops on the page as served and about 38 once the device table and protocol options have filled in, which is a range rather than the single number it was given as.

  • Pin the three behaviours this round fixed

    The modifier-key handback on the tab strip, the row listener bound only where no button collides with it, and the fallback focus target for a dialog whose opener has been polled away. All three were fixed without a guard; each is proven here by the mutation that removes it.

  • Guard the state the page ships in, not only the code that changes it

    The tab strip could ship all three tabs as aria-selected="true" and the whole suite stayed green — verbatim the fault the assertion’s own message describes, reached through the initial attribute instead of through switchTab. Five checks read js/load/ui.js and not one read index.html. Exactly one tab is now announced as selected, and it must be the one drawn as selected.

    Asked of the rest of the guard, the same question found two more of the identical shape, both fixed here:

    • the panels had it too. switchTab clears .active from every .tab-content and adds it to one; nothing said what the page is served with, so three active panels would have stacked on screen until the first click tidied them up.

    • both collapsible headers. aria-expanded is maintained on toggle and on restore, and never checked against the fold it describes in the markup. A header written closed over a section that is open announces the opposite of the screen, and the first press then flips it the wrong way, because toggleSection derives the new value from the class.

      Three smaller holes, each proven open before it was closed:

    • aria-label="" satisfied the derived name check, which tested only that the attribute was there. A blank value is the absence of a name spelled so that every scan looking for the attribute is happy.

    • outline: 2px solid transparent and outline-color: rgba(0,0,0,0) both draw nothing and both slipped past a pattern anchored at the start of the value. The value is read whole now: none, a zero width anywhere in a shorthand, transparent, or a colour function with zero alpha.

    • that scan skipped every asset that was not a stylesheet, so an are built out of style attributes — was never looked at. A style attribute is a rule of one with the highest specificity there is.

  • Close three holes the guard had, and stop pinning by literal

    Three mutations passed the guard with 112 tests green:

    • outline: 0 is the same rule as outline: none and the check only knew the word "none". It now reads any declaration that removes the ring — none, a zero width, a transparent colour — and deliberately stops short of outline-offset, which moves it rather than removing it.

    • A field with an aria-label and no id was invisible to both halves of the labelling check at once, and single.html already has that shape. The exception list is keyed by id where there is one and by the aria-label text where there is not, so a new one has to be added to it on purpose.

    • Setting aria-selected to true in a loop over every tab satisfied the count and both positions this assertion was rebuilt for last round, and announces all three tabs as selected. Position is not enough; the receiver is pinned as well.

      The icon scan required a class attribute starting with "icon", so a decorative svg with another class, with its class second, or with none was never looked at. It now reads every svg, with the favicon’s data URI taken out first.

      The two icon-only controls that need a name of their own were pinned by literal, so a thirteenth added tomorrow would ship nameless. That is derived now — content is icons and nothing else, and no aria-label or aria-labelledby — and title is not accepted as a name.

      New guards for this round’s work: the log row shape and the docked region, the detail dialog’s role, focus handling and Escape, the tab strip’s arrow keys, the negative outline-offset on the four clipped controls, and aria-current on the selected tree row.

      The canary floors move well under today’s counts. Sitting a floor on the current value turns it red the first time an icon or a field is legitimately removed, for a reason that is not the canary’s subject.

  • Pin where switchTab clears aria-selected, not just that it does

    Found by mutation: moving the clearing out of the loop over every tab and onto the one tab about to be selected leaves the tab you came from still reading as selected, and the count and the ordering check were both satisfied by it. Both halves are positional now — cleared between the walk over .tab and the walk over .tab-content, set after both.

  • Pin the keyboard and the labelling of both app pages

    Thirteen invariants over the static files, since there is no JavaScript test harness here. The ones that matter are the ones a comment cannot targets exactly, so a label pointing at an id nothing has — what a renamed field leaves behind — is as red as a field with no label; and the two fields named by aria-label instead are listed by name, because aria-label is otherwise the way to make the rule pass without labelling anything.

    Everything is scanned with the comments stripped, and theStripperSeesCode is why that is safe to do: css/load.css explains in prose the in the comment above the badge that carries it.

    Function bodies are sliced from their declaration rather than searched for in the whole file — logs.js reads the panel’s collapsed class in five places and writes aria-expanded in one, and a file-wide contains cannot tell them apart. The slice takes the declaration, not the call: init() calls setupEventListeners() forty lines above the method itself.

  • Pin the settle hook inside the binder, not the file

    The middle link of the withBusy guarantee was matched against the whole of lifecycle.js, so moving Busy.onSettle(…​) out of bindStatusToBusyControls to module scope left every guard green while the hook stopped being what the page’s startup call registers. Slice the assertion to the binder’s body, the way the startup half is already sliced to the DOMContentLoaded handler.

    Proved by the mutation it missed: hoisting the call to module scope fails withBusyRestoresOnBothPaths at the new assertion, and the module is green again once it is put back. gui 474 tests, 0 failures.

  • Pin two guarantees the guards had stopped holding

    Both are guards, not defects in the page: a mutation pass found two assertions that survive the change they exist to catch.

    The withBusy-settles-to-the-last-status guarantee lost half its pin when the wrapper was split from the page. The wrapper runs its settle hooks and lifecycle.js registers one, and both were asserted — but nothing asserted that anything ever calls the binder that registers it. Deleting bindStatusToBusyControls() from main.js left all 99 tests green while Init, Start and Stop settled to a bare disabled = false: Start clickable on a running emulator until the next poll. The startup wiring is now sliced out of the DOMContentLoaded handler and asserted there, so importing the binder no longer counts as calling it.

    The three script load-order checks compared substrings, and both pages name the files they load in prose: index.html mentions js/toast.js in a comment beside the toast markup 350 lines above the tag, and the comment above the tags names js/load/main.js. StaticToastTest was therefore comparing one comment to another and stayed green through any reordering. All three now locate the <script> element itself.

    Four more, same kind:

    • the /api scan needed a letter straight after /api/, so a path built out of pieces — fetch(/api/${x}), fetch('/api/' + n) — was invisible, which is the shape a hand-rolled call takes. It now flags the opening quote of any /api string literal outside js/api.js;

    • the inline-script rule is a cap on what its extractor finds, so an extractor that found nothing passed it silently. It now has to find the one inline block left in the tree and none of the six script src elements on the Load Test page;

    • theSlowControlsAreAllWrapped asserted membership of the busy table but, unlike the lifecycle three, not absence from the plain one;

    • mediaBlock took the first block matching a query, and the page’s styles are two sheets read as one string, so a breakpoint answered in the second was invisible rather than checked.

      Each amended assertion is proved by the mutation it used to survive, and every remaining position lookup in the package was checked for the same comment-satisfied defect: eleven of them, all landing on code.

  • Pin the rule that stops the stacked panels clipping

    The small-screen breakpoint had four rules and the guard held three of them. The unpinned one was .left-panel, .right-panel { overflow: visible }: delete that line and both panels go back to the clipping value they carry in the frame layout, where a tab body or a table scrolls inside them and there is a scrollbar behind the clip. Below 768px nothing inside them scrolls, so the same value is a clip with nothing behind it — the failure class this task exists to prevent, and the one rule of the four that could have come back silently.

    Proved by mutation: with the line removed the assertion fails on "rules declaring .left-panel", and on nothing else.

  • Keep the intentional 500 out of the gui test log

    The contract grid provokes a 500 on purpose to check the advice answers it as JSON. The advice logs an unhandled failure at ERROR with its stack trace — right in production, and 101 lines of noise in a module whose whole output a reader is expected to scan. A module that prints full stack traces on a green run teaches its readers to scroll past the ones that mean something.

    Raising the level of that one logger around that one call, and putting it back afterwards, leaves every other test and the production logging configuration exactly as they were. A src/test/resources/logback-test.xml would have changed the level for all 434 tests, and this module has no test resources directory at all.

    The assertions are unchanged. Three stack traces remain in the module output, all from ApiExceptionHandlerTest, which provokes the same handler directly.

  • Correct what the contract grid says about itself

    The class javadoc claimed @WebMvcTest boots the application’s own context and that the advice is found by the application’s component scan. Neither is true: @WebMvcTest is not on this Boot snapshot’s classpath, and the scan base is the test’s own com.friendly.emulator.gui.api, fifteen lines below where the nested slice already said so correctly. It overclaimed on precisely the question the class exists to settle. It now states the mechanism it uses and what that costs.

    The same javadoc said every negative case pins the whole error contract. The 404 for an unknown device does not - it predates the contract and answers a bodyless 404 - so the exception is named.

    stop and reset each folded their 204 and their 409 into one test, so a failure in the first half hid the second, and neither 409 half asserted that the refused call did not reach the emulator anyway. Split, with the verify(never()) the init and start conflicts already carry.

    Also noted in place: scanning the whole api package makes any bean added there later with an unmet dependency fail every test in the class at once, and the @AfterEach restore repeats the production initialiser rather than reading it.

  • Pin the offline threshold and the hidden footer version

    Both guards had a hole a plausible edit walks straight through.

    The threshold test asserted that FAILURES_BEFORE_OFFLINE is 3 and that a success clears the counter, but never that reportFailure compares against the constant. Changing its test to "failures >= 1" left every guard green while turning a single dropped request into a red header - the flapping the threshold exists to prevent.

    The footer test asserted that fetchVersion mentions ".hidden", which the success branch satisfies on its own: deleting the catch branch that hides the footer left it green, and a failed /api/version call would leave the previous build’s number on screen. It now reads the catch block.

    Verified by making both edits first: 11 of 11 green before, 2 red after.

  • Add MockMvc contract tests for the core REST endpoints

    Every existing REST test builds the controller with new and calls a method on it. That covers the method’s logic and nothing around it: not the mapping, not the JSON, not the content type, and above all not that a thrown EmulatorOperationException ever reaches ApiExceptionHandler. The advice is scoped with basePackages, and a selector that stops matching is invisible to a direct call - the handler still returns the right body, it just never runs. Pointing the selector at a package that does not exist leaves all 50 of the method-level tests green and turns 12 of the 23 new ones red.

    Driven through the real DispatcherServlet on the same Spring Boot MVC auto-configuration the service runs, with the /api package scanned as the application scans it, so nothing here names the advice. Spring Boot 4 moved @WebMvcTest into an artifact this build does not depend on, so the slice is assembled by hand; what it costs is that the context is not built by Boot’s own slice machinery.

    Covers status, config, storedDevices, devices, device parameters, logs and protocolOptions on the read side, the four lifecycle calls with their 409 and 422 answers, and the 501, 409, 400 and 500 the contract promises elsewhere. Each negative case pins the whole body - application/json, the code, the message and details present as null - not only the status.

    The 404 for an unknown device is pinned as it behaves: bodyless, no Content-Type. It predates the error contract, and giving it one is an endpoint change rather than a test.

  • Raise coverage from 14% to 73%, and make the number mean something

    The first JaCoCo run read 5.3%, and that number was worthless: 88544 of the 145k instructions it measured were UspMsg and UspRecord — protoc output, 71k lines marked "DO NOT EDIT", which nobody writes by hand and nobody tests by hand. With those and the vendored ActiveMQ STOMP codec out of the denominator, the honest starting point was 14.2%.

    Coverage of hand-written code now, all 1782 tests green:

    coap-emulator 0% → 100% rule-engine 0% → 100% emulator-api 7.5% → 98.7% dusun-emulator 0% → 98.0% fsh-hub-emulator 0% → 94.2% device-manager 0% → 87.2% mqtt-emulator 0% → 86.9% usp-emulator 18.8% → 80.1% lwm2m-emulator 15.5% → 66.1% gui 4.6% → 60.7% usp-protobuf-decoder 0% → 25.9%

    overall 14.2% → 73.3% (44350 / 60545)

    Six of those modules had no test framework at all, which is the mechanical reason they had no tests; spring-boot-starter-test now comes from the root pom.

    The target was 80% and this is not 80%. 4203 instructions are locked behind JavaFX: every Control subclass throws "Toolkit not initialized" in its constructor — so does Mockito.mock(TextField.class) — and the toolkit cannot be started in the default build without breaking CI, which has no display. That is what caps gui at 60.7% and usp-protobuf-decoder at 25.9%, and it is why the FXML methods inside IotDeviceController stay dark while its web-mode API, the code that actually runs in Docker, is covered. Discounting those 4203, coverage of testable logic is 78.7%. The remaining gap is ObjectResourceWrapper and ObservationHandler in lwm2m, reachable with the harnesses already built here.

    Production code is one word: MqttDevice.createMqttClient() is protected rather than private, because start() calls it unconditionally and would otherwise build a real Paho client and open a socket. The other ten modules are covered without touching a line.

    No coverage gate yet. The JavaFX floor has to be settled first, or the gate just fails the build for code no test can reach.

    Five bugs surfaced while writing these tests. They are pinned by tests that assert today’s behaviour, not fixed:

    • Rules are dead on JDK 25. Nashorn was removed in JDK 15 and GraalJS is not a dependency, so RuleCompiler always takes its no-engine branch: every rule in rules.js compiles to a no-op returning null, silently.

    • ResourceRWManager.writeProductClass() writes SerialNumber.

    • MtpWebSocketClientConnector.afterResponse() compares a String to a List<String> header, so "protocol mismatch" always fires.

    • ActiveMultiDeviceRunner never sets isStarted() when the devices divide into groups evenly.

    • AbstractPackageManagementInstanceEnabler.downloadHttp() inits preview to "", so its preview == null guard can never fire and the preview is never kept.

  • Log a greppable RX marker per received CoAP request (wire-trace)

    Emits one INFO line per inbound CoAP request at the handleRequest chokepoint of ObjectResourceWrapper + RootResourceWrapper (before the unreachable-drop, so black-holed requests still trace as received): [<endpoint>] RX <METHOD> /<path> Observe=<0|1|→ Accept=<ctId|→ CF=<ctId|→. Logging only, zero device-behavior change. Enables rig-e2e + live wire-trace assertions on the exact CoAP request sequence a device receives (distinguishes plain GET /5/0 from Observe on /5/0/3, and the Accept format for content-format-fallback coverage).

  • Regression for notify-type NPE on observe in web-mode

    GET with Observe=0 in --web-mode (Docker) used to NPE in Lwm2mConfigurator.getNotifyType (switch over the absent lwm2m.notification.type property) and drop the 2.05 response. Fixed by 3593dc9; this pins the empty/absent → CON fallback.

Build

  • Version 0.1.2 for the tag on the startNew logging fix

    The release gate verify-tag.sh requires the tag version to equal both the module POM version and the root POM property ft-oneiot-emulator-client.version, so a tag oneiot-emulator-client-v0.1.2 needs this bump on dev first. The tag pairs the client with the fix that makes startNew devices follow the session logging switch (#13), which the kit’s Register-response read needs. No client code changes.

  • Pin commons-compress 1.28.0 over the HIGH-CVE 1.12 from hivemq

    hivemq-community-edition-embedded (test scope) pulls commons-compress 1.12 through xodus-compress; 1.12 carries HIGH CVEs (CVE-2021-35515..35517, CVE-2021-36090). The owner rule removes HIGH/CRITICAL CVEs before merge, test scope included. usp-emulator: 814 tests green on JDK 25.

  • Version 0.1.1 for the tag on the empty-resource fix

    The release gate verify-tag.sh requires the tag version to equal both the module POM version and the root POM property ft-oneiot-emulator-client.version, so a tag oneiot-emulator-client-v0.1.1 needs this bump on dev first. The tag pairs the client with d3db3c9 (empty single resources keep their model type), which the qa-program cell W01 needs. No client code changes. The README and the Antora page stop saying that no version has been published.

  • BouncyCastle 1.81 → 1.85 across the emulator

    OSV before (1.81): bcprov-jdk18on GHSA-574f-3g2m-x479 (CRITICAL), GHSA-9pwp-9qqc-pr26 (CRITICAL), GHSA-qp49-qgx5-5m26 (HIGH), GHSA-c3fc-8qff-9hwx (MODERATE); bcpkix-jdk18on GHSA-wg6q-6289-32hp (MODERATE); bctls/bcutil clean. OSV after (1.85): bcprov, bctls, bcpkix, bcutil all clean. mqtt-emulator runtime bctls/bcprov and gui test bcpkix move to 1.85; one BC version in the gui runtime. No code change needed (PSK TLS compiles). Full reactor unit suite identical before/after; est-it IT 6/6.

  • Measure test coverage with JaCoCo

    The build ran tests but never measured what they reached: JaCoCo was not configured anywhere, so "181 tests" was the only number anyone had, and it says nothing about how much of the code those tests touch.

    Added to the root pom, so every module reports its own numbers and emits the XML that CI or a dashboard can read.

    The first measurement is worth stating plainly: 5.3% of instructions and 4.6% of branches across the modules that have any tests at all.

    usp-emulator 3.4% (109 560 instructions — three quarters of the codebase) lwm2m-emulator 15.5% gui 4.5% emulator-api 7.5% rule-engine 0%

    Six more modules — mqtt, fsh-hub, device-manager, dusun, coap, usp-protobuf-decoder — have no tests at all, so JaCoCo produces no report for them and they are not even in the 5.3%.

    No coverage gate here on purpose: at 5% a ratchet protects nothing, it only freezes the status quo as acceptable. It is worth adding once there is something to protect.

CI

  • The workflow gate refuses a continued scan or tag line

    The scan line of the cve job and the tag check line of the verify-tag job are single-line YAML values. A deeper-indented next line is folded by YAML into the same command, so || true written on the line below quieted either one while the whole-line comparison still matched. The self-test now refuses a pinned line whose next non-blank line is indented deeper, in all five jobs.

    The message of the contract package check also names a listed class that holds no test. The header names what the checks do not see.

    Self-test: 43 cases.

  • The workflow gate pins the scan and tag lines and the contract package

    The gate self-test compared the test-guard line of three jobs as a whole line, so an appended || true was refused there. The vulnerability scan line of the cve job and the tag check line of the verify-tag job were not compared: either could be quieted the same way and a tag would still publish. Both lines are now compared as a whole, by the same loop.

    New check: a test class in the contract package that is not in the required-classes list fails the self-test. The contract job runs only the listed classes, so an unlisted one gated nothing.

    The comment of the root POM property reader says what it reads when an element is split over lines.

    Self-test: 39 cases.

  • The workflow gate pins the contract class list

    The contract job takes its test filter from a list file, and nothing tied that file to the gate: a line could be deleted in place and the job ran fewer classes, green. The workflow gate self-test now requires the list to hold exactly the three contract classes and the contract job to read exactly that file.

    One more mutant for the guard-line check (a commented-out guard), and the header no longer says the test guard sees every red build: it reads test failures and errors only.

  • The test guard reads failures, the workflow gate pins the guard

    The tests-run guard judged a build by its test count and skips only: a red build passed it whenever Maven’s exit status was lost before the step ended. It now refuses a required execution or a required class that reports a failure or an error.

    The workflow gate self-test gains a fourth check: no job or step may continue on error, and each of the three test jobs holds exactly one guard line with its own list, ending there.

    Also: the vulnerability gate’s decide step fails closed on an input it cannot read; the tag check refuses a tag while the root POM property differs from the module version; the two executions lists are renamed tests-run-executions-*.txt to tell them from the classes list.

  • Refuse skipped tests and pin the deploy gate of the client workflow

    tests-run guard, part (a): a required execution whose summary shows skipped tests is a red build. A @Disabled client test used to pass the guard and reach the publishing job.

    workflow-gate-test.sh, run in the cve job: the needs list of deploy is exactly the five gate jobs, packages: write appears once and inside deploy, deploy and verify-tag run on a release tag only. Each check is proven on a mutated copy of the workflow.

    Self-tests: tests-run guard 29 cases, workflow gate 15.

  • Release workflow and gates for the control client

    One workflow, oneiot-emulator-client.yml, on a branch push that touches the client or the modules its contract tests run against, and on a tag oneiot-emulator-client-vX.Y.Z. Jobs: verify-tag, cve, stage, jackson-high, contract, deploy. Only deploy may write packages; it runs on a tag, from an empty local repository, and publishes the bytes the stage job built, checked against a digest handed over as a job output.

    Three fail-closed gate scripts with self-tests over committed fixtures: - tests-run-guard.sh: a required execution, or a required contract class, that ran no test or skipped one is a red build - verify-tag.sh: tag format, equality with the module POM version, commit on dev; the tag is read from the environment only - osv-gate.sh: HIGH, CRITICAL and unscored findings block; an ignore needs a reason and a date that has not passed

    + The contract job compiles what gui needs and runs the three contract classes only (SDD v6). Mutation M14: a class-level @Disabled on the live contract class keeps the build green and the execution total at 49; the per-class check turns it red, and that log line is a committed fixture.

    + Not run locally: the osv scan itself (the Docker engine did not answer).

  • Label the image with the commit it was built from

    Deployment Manager reads a service’s deployment.yaml at the commit its image was built from; nothing in the image states that commit today.

    git rev-parse HEAD rather than github.sha: this job checks out inputs.branch, a branch NAME, so the commit actually built is whatever that branch pointed at when the checkout ran.

  • Cap the build job at 30 minutes

    Both pipelines now run the full ~2000-test reactor before the Harbor push, and neither job carried a timeout. The reactor contains MQTT and STOMP reconnect tests that sleep and open loopback socket servers, so a hang is a plausible failure mode rather than a theoretical one — and the callable workflow runs on a shared self-hosted runner, where the platform default of six hours would hold the runner for the rest of the day instead of failing in minutes.

  • Run the test suite in the build pipelines

    Both pipelines built with -DskipTests, so the ~2000 tests in this reactor had never run in CI - including the ones written against bugs that reached the deployed image. build-callable.yml said tests run in a workflow of their own; there is no such workflow.

    They now run where the artifact is produced, which is the only place a red test can stop an image from being pushed. Measured locally on JDK 25: a clean package goes from 47s to 2m25s, and the whole reactor is green.

  • Allow manual workflow_dispatch on emul_docker

    Adds workflow_dispatch trigger so the Docker build/deploy pipeline can be re-run manually from the Actions UI when an automatic push trigger is missed (e.g. a concurrency lock stalls or a previous run hangs).

Docker Images

iot

Image

hub.friendly-tech.com/emulator/iot:v2.1.0

Pull from Registry

docker pull hub.friendly-tech.com/emulator/iot:v2.1.0

Download for Offline Use

docker pull hub.friendly-tech.com/emulator/iot:v2.1.0
docker save hub.friendly-tech.com/emulator/iot:v2.1.0 -o iot-v2.1.0.tar

gzip iot-v2.1.0.tar

Load on Closed Network

gunzip iot-v2.1.0.tar.gz
docker load -i iot-v2.1.0.tar

Dependencies

  • UI Backend → ACS v7.1.3-b0.0.1

  • UI Portals → UI Backend v7.1.3-b0.0.1

  • Northbound API → ACS v7.1.3-b0.0.1

  • Grafana → ACS v7.1.3-b0.0.1