Skip to content

24 โ€” The Roborock Adapter

Scope. How the second brand answers the contract, and what it cost to be second. Read 23 โ€” The Eufy Adapter first โ€” this brand paid the bill for the residual default described there.

Roborock had to say out loud everything Eufy gets for free by having been first. Three of its six data modules exist only because a framework answer was Eufy's answer, and two more exist because of the shape of the upstream HA roborock integration rather than the device. That is the useful lens for the whole package โ€” most of what looks like verbosity is a name Eufy already occupied.


1. What the adapter computes

adapters/roborock/adapter.py::register_roborock_adapter_for_vacuum computes six things at runtime โ€” the model profile, mop settability, dock capabilities, detected capabilities, resolved entity ids, and the mop pre-call list โ€” and otherwise emits a roughly 600-line literal dict into adapters/registry.py::register_adapter_config. Nothing in the file executes during a clean; the framework reads the dict.

Its only upward coupling is one row in adapters/brands.py::BRAND_REGISTRARS. Everything else is downward, into its own package and four core helpers.


2. Identity is data, not a callable

The package declares adapters/roborock/const.py::UPSTREAM_PLATFORMS and core compares it against the entity registry's platform. What it replaced was a per-brand detector โ€” a function core called in table order, which read the device registry's manufacturer and a model prefix โ€” and the deleted function is kept in place as a commented block so the next porter does not reinvent it.

The replacement is better evidence, not just a cleaner shape. platform is set by HA from the providing integration's domain and is never blank; manufacturer and model are free text and are routinely empty on real installs, which is why Eufy never had a detector at all.

What it fixed is the more important half. A function-pointer table lets a brand express "probably me", and it had a default arm. Removing that arm is what let a Dreame stop being silently registered as a Eufy.


3. The dock is resolved live, and three cheaper probes were measured wrong

adapters/roborock/dock.py::dock_profile reads the second device the Roborock integration creates โ€” the dock โ€” takes its model_id integer, and runs it through python-roborock's own capability table. This is the strongest work in the package, and its value is mostly in what it refuses.

find_dock_device reaches that device by identifier, (roborock, {duid}_dock), through one dev_reg.async_get_device_by_identifier call scoped to the vacuum entity's own config entry (read from the entity registry); a core older than 2026.8 has no such method, so there it falls back to the unscoped async_get_device โ€” not deprecated on those cores โ€” the same measured shim entity_helpers.device_config_entry_ids uses. Until ISSUE #69 it walked vacuum_device.config_entries and scanned every device in each entry looking for the same identifier. Two things were wrong with that: the read is deprecated from HA 2026.8 and removed in 2027.10, and the config-entry scoping it bought was never load-bearing โ€” the duid is the robot's own id, so the suffixed identifier already excludes every other robot's dock. [RD-2] now pins that claim directly, with both robots in the same entry, which the old scoping could not have distinguished. The unscoped async_get_device that replaced the walk was itself deprecated by HA 2026.10 (removed in 2027.8.0: identifiers are unique only within a config entry now), so the lookup names the entry โ€” the duid still does the robot-vs-robot work, the entry scope does the entry-vs-entry work. [RD-4] pins that a same-identifier dock under another entry is never returned, and [RD-5] pins that the lookup trips no registry deprecation, so the next one HA schedules surfaces in the suite before it surfaces in a production log. [RD-6] pins that a registry without the new method still resolves the dock, so the 2025.6.0 floor holds.

How that resolution went is recorded on the config as _dock_detection โ€” resolved and source (the live device, or the catalogue fallback), plus the vendor's dock_type / dock_type_name and dock.py's own reason. It exists because the three booleans alone cannot say which branch ran: see 40 ยง1.

Three cheaper probes were each tried against real hardware and each measured wrong:

probe why it fails
"a dock device exists" satisfied on a charger-only S6 by a single drying binary sensor, admitted because the product schema declares the DPS
model_id != o0_dock a dockless unit reports the string "Unknown", not "0"
"probe for dock entities" HA publishes a cleaning-brush countdown on any washable dock, even where the vendor's own support flag is false

They over-report in both directions, so neither a presence test nor an absence test is safe. Vendoring the library's no-dock set was also rejected: a copied vendor set goes stale silently, which is the exact failure this module exists to prevent.

Two design properties follow:

  • The return is tri-state. None means undetermined, never no dock, and falls back to the catalog's conservative default. A missing library, or a dock newer than the installed one, would otherwise decide a capability by accident.
  • Three flags are asked separately โ€” washable, dryable, collectable โ€” rather than riding one blanket has_dock. An auto-empty dock collects but cannot wash; another washes but cannot collect. A blanket flag is not a simplification, it is a wrong answer on two dock types, and the wrong answer offers a mop wash on a dock with no water in it.

Every model profile in adapters/roborock/model_catalog.py::MODEL_PROFILES declares has_dock False on purpose, as the undetermined-fallback only. The same robot model ships with several station tiers, so a per-model dock column cannot answer the question and would diverge silently the first time a model shipped with a different station.


3b. The #67 narrowing, and the rung that reopened it

An uncatalogued model takes DEFAULT_PROFILE's optimistic mop_settable: True. That optimism is justified in the catalogue โ€” a wrong guess costs a rejected call that is caught and logged โ€” but it does not hold for the safest-water pre-call, which aborts dispatch on a missing target by design (issue #51). On a mopless uncatalogued model every clean died, including the plainest all-vacuum batch. ISSUE #67.

The narrowing asks resolve_with_reason, and the four answers do not divide two ways:

reason mop control? why
resolved yes a state exists; the profile decides, unchanged
registered_no_state yes boot window on a device that may really mop โ€” narrowing here is the one branch that can wet-mop a dry room
disabled no can never receive select_option; unlike the boot window it does not resolve by waiting
absent no the integration never created it

The first cut got disabled wrong and #67 was reported again. It ORed the state machine with a bare EntityRegistry.async_get, which answers for a disabled entry too โ€” so a disabled mop select read as a live control, the guess survived, and every clean still aborted with the identical error, because the dispatcher's check is a state check and a disabled entity fails that too. The reporter's workaround was to add their model to this catalogue, which bypasses the narrowing entirely (profile is DEFAULT_PROFILE goes False) and is why it worked.

resolve_with_reason had drawn that four-way for months (core/capabilities.py, live:ENT-2). The correction is simply to ask it instead of re-deriving a boolean โ€” the shorter copy of a predicate is the bug. [MS-8] pins disabled, [MS-9] pins that the boot window is untouched.

3c. The probe must survive a LOCALIZED entity id โ€” ISSUE #81

The narrowing above asks whether a water box exists, and until 2026-11-15 it asked using a derived English id: build_entity_id(vid, SUFFIX_WATER_BOX, โ€ฆ) โ†’ binary_sensor.<vac>_water_box_attached. HA slugs an entity id from the translated name at creation time, so on a German install the entity is binary_sensor.<vac>_wasserkasten_angebracht and the derived id does not exist. The probe read absent, and on an uncatalogued model that is precisely the input that narrows mop_settable to False. Reported on a Roborock S7 MaxV (roborock.vacuum.a27, not in MODEL_PROFILES): the card offered vacuum-only commands.

Nothing failed, which is why it took a contradiction to find. The READ path already has the translation_key rung, so mop_active, mop_mode and mop_intensity all rescued and logged at INFO โ€” the same install's diagnostics carried mop_active: True and can_wash_mop: True sitting beside supports_water_control: False. Two resolution paths, one with the rescue and one without; the shorter copy was the bug.

The probe now offers the rescued id as a second candidate and still lets resolve_with_reason decide what it means, so the four-way table above is untouched โ€” rescue_sibling_by_translation_key returns an id, never a verdict. It is a caller of the three rescue primitives, not a fourth copy of the decision (the replica set RNF2RCXP is already three).

Two conditions must hold together, which is why this was rare: an uncatalogued model (the narrowing only applies to DEFAULT_PROFILE) and localized entity ids. An English S7 MaxV was fine; a catalogued German model was fine.

The safest-water pre-call needed no change โ€” it already targets "target_role": "mop_intensity" rather than a frozen id, so the dispatcher reads the resolved (German) select at call time. Had it baked in an id, fixing this probe alone would have turned "no mop controls" into "every clean aborts", which is strictly worse.

[MS-14] pins the German water box; [MS-15] pins that language changes nothing but the slug, across present / disabled / absent. Ablating the rescued candidate turns only the GERMAN rows red โ€” the English fixtures cannot see it, which is how it shipped. The fixture now also registers the vacuum entity itself: it was state-only, so every sibling sweep anchored on it found nothing, and that gap is what kept the English tests blind.

The select is not a device claim โ€” and that is why there are two signals

Measured in python-roborock 7.12.3. get_water_modes() opens with supported_modes = [WaterModes.OFF] and unconditionally extends it, so it can never return an empty list. HA creates the select on if api.status.water_mode_options else None. Therefore every V1 Roborock gets select.<obj>_mop_intensity, mop or no mop โ€” its existence is a library default, not something the device said.

Two sibling functions in that same file do guard on features.is_support_water_mode and return [] / None; get_water_modes is the copy missing it. (Upstream is python-roborock/python-roborock, not core โ€” worth a PR, but not ours to depend on.)

So keying the narrowing on the select alone had a second failure mode beyond the disabled one: it degrades to a no-op as installs upgrade, because the control is then present on every V1 device and the guess always survives. #67 would return silently.

The signal that is a device claim is device_features.is_support_water_mode, true only when the device reports MOP_ELECTRONIC_MODULE / MOP_SHAKE_MODULE / MOP_SPIN_MODULE in get_init_status. We read it off the entity surface, because upstream gates the water-box binary sensors on exactly that flag (support_fn=lambda api: api.device_features.is_support_water_mode). The sensor's presence IS the flag.

Both must hold for the optimistic guess to survive:

a mop module is claimed and a control exists that could receive the call.

Either missing and the safest-water pre-call could only ever abort. [MS-11] is the case a current library produces on a mopless Q5 โ€” select present, water box absent โ€” which the select-only test could not even express. [MS-12] is the no-regression guard.

Measured, not assumed, that this is a no-op for a real mop device: a live Roborock carries binary_sensor.<obj>_water_box_attached (reading unavailable) alongside select.<obj>_mop_intensity. Two existing tests had fixtures that registered only the select โ€” a shape no mop device produces โ€” and the swap is what exposed them.

Only "no mop module" narrows โ€” reachability must not

The matrix below is measured, one clean registry per cell:

water box mop select pre-call why
registered, no state registered, no state armed boot window on a mop device
absent registered, no state narrowed mopless โ€” the shape a current library gives a Q5
state registered, no state armed module claimed, control not up โ†’ #51's case
state absent armed module claimed, no control at all
state state armed working device
absent absent narrowed nothing claimed

Row four is the one that was wrong, and it was wrong from the original #67 fix rather than from the signal swap. The rule was select absent โ‡’ treat as mopless, which is unarguable while the select is the only signal and false the moment the water box can contradict it. On a device whose water box is live the hardware does mop, so narrowing there skips the safe-water push and lets a mixed batch wet-mop the vacuum-only rooms โ€” silently. #67 traded a loud failure on mopless hardware for a quiet one on real mop hardware; rarer, and worse when it lands.

So the narrowing keys on _mop_module_claimed alone. An unreachable control on a module-claiming device keeps the optimistic guess and falls through to the abort, which is precisely what that abort is for.

[MS-6], [MS-8] and [MS-10] all asserted the opposite before this. They are the same rule seen from three shapes โ€” water box with no select, water box with a disabled select, disabled water box with no select โ€” and having it written down three times is why it read as settled. A green suite cannot see a rule that is consistently wrong.

The disabled case gets a better refusal rather than an exemption. A disabled entity has no state, so it lands in the same missing-target branch as one that never existed, and "does not exist" is useless to the person looking at the entity they switched off themselves โ€” #67's reporter spent an upgrade cycle on that sentence. dispatch/manager.py now reads disabled_by at the point of failure and says so, with what to do about it. The refusal is unchanged; only the explanation is. [GPC-6f] pins the wording, [GPC-6d] pins that the abort still fires.

And the rule stops at mop_settable. has_mop asks whether the hardware HAS a mop, where a water-box sensor someone switched off is still evidence that it does; mop_settable asks whether we can SEND a command, where disabled is a definite no. [MS-10] pins the difference. Collapsing them is the conflation this catalogue exists to prevent: the S6 has a mop and cannot be told to use it.


3a. The dock controls are switches, and that is why they were unreachable

The dock is resolved live (ยง3). Driving it was a separate problem, and the answer had been written down backwards.

.claude/notes/REFERENCE-roborock-dock-detection.md ยง9 ruled: "No wash/dry/empty BUTTONS exist in the Roborock integration โ€” our four dock_controls are Eufy's vocabulary; Roborock drives them through the vacuum entity. A real 'no' with a mechanism. Do not chase it." Half of that is right and half is not, and the half that is wrong is the half that mattered.

Measured on the vendor's own simulator (harness roborock-dock-sweep, HA 2026.10.0b2 / python-roborock 7.12.0, dock_type=o4_dock), and matching a reporter's real Saros 20 Sonic entity-for-entity:

entities on the config entry 45, across two devices โ€” the dock is its own device
buttons 6, all reset_*_consumable, all disabled
wash / dry / empty switch.<obj>_dock_mop_washing ยท _dock_mop_drying ยท _dock_dust_emptying

So there are no dock buttons โ€” ยง9 was right โ€” and the functions are switches on the dock device, not vacuum-entity commands. The act path was hardcoded to the button domain at both the resolver and the send, so nothing an adapter declared could have reached them; that is what dock_events.action_controls fixed (41 ยง4b).

The route axis is gated on a USABLE value, not on the entity existing. The first version of that gate asked only whether select.<obj>_mop_mode was present, and the maintainer's own S6 falsified it on contact: the S6 publishes that select and it sits at unavailable forever, because its mop is observe-only (SET_MOP_MODE returns RoborockUnsupportedFeature). Presence alone would therefore have turned supports_path_control True on the one model whose catalogue entry says False and records it owner-confirmed โ€” offering a Cleaning Path picker the firmware can only reject. unavailable and unknown both disqualify; the catalogue half still wins unconditionally, so a model declared to have the axis keeps it. Covered by [RT-5]/[RT-6].

Gated per function, not on has_dock. An o1/oc collects but cannot wash and an o2 washes but cannot collect, so each control rides the capability it depends on. Verified across all 44 dock types: 38 full, 4 partial (o1/oc empty-only, o2 wash-only, o3 wash+empty), 2 with no dock_events block at all.

Two suffixes per control. The first is the English derived id; the second is the upstream translation_key, which is the rung that carries a localized install. That rung is not optional here: of the 49 languages HA ships for roborock, 17 translate these three switch names and 32 translate none โ€” no partials โ€” and both reporters sit in the translated 17 (de, es). Verified against the real translated ids for all 17.

Still not declared: enabled and triggers. Those are the EVENT path โ€” which state strings mean a wash happened โ€” and they need a real device's vocabulary. The simulator reports whatever RoborockStateCode the library defines, and that enum annotates five members per model with no a279 among them. Declaring enabled without triggers opens the Base Station tab with activity counters that can only read zero.

NOW DECLARED โ€” and triggers was the wrong shape for this brand. Issue #62's reporter exported a full run from a German Saros 20 Sonic, which supplied the vocabulary and showed why the declaration could not be a triggers map:

06:55:05 status washing_the_mop, mop-wash switch on โ€” a PRE-RUN wash, which is the norm
07:06:14 status emptying_the_bin, dust-empty switch on
07:06:41 status washing_the_mop again, after the return
07:12:37 status charging, DRY switch on

triggers is matched against entities.dock_status, and this brand declares no such role โ€” wash and empty are in the VACUUM's status sensor, and drying is in no status string at all. The status goes back to charging at the same instant the dry switch turns on, so a status-watching detector cannot see drying however the vocabulary is written. Declaring only what a status string carries would have left the dry counter at a confident zero, which is the failure the paragraph above was avoiding.

dock_events.extra_watches is the generic answer: a list of {role|action, triggers}, each naming its own source. A role is a declared entity role (here task_status); an action is a dock action, resolved through DockManager's three-rung ladder so it still binds on a localized install where the entity id is in another language. Eufy is untouched โ€” the dock_status entity still reads triggers live, and an entity absent from the extra map takes exactly the path it always did.

Each watch is gated on the dock having that function, so a wash-only dock gets no dry watch. entities.dry_duration is deliberately NOT declared: the countdown exists on the device (3.0 h, falling 1/60 per minute) but its upstream translation_key was not in the harness dump, and guessing it is how a localized install silently reads nothing. The event records; only its duration is absent.

One thing this does NOT turn on: the active-job mop-wash observation in listeners/lifecycle.py, which gates on dock_events.enabled AND requires the firing entity to BE entities.dock_status. It has never fired on this brand and does not start now. Pinned by [LS-20]โ€“[LS-23].

A SECOND READER since #76: BOTH watches above are now read by dock/manager.py::get_dock_action_status as well, to decide whether a dock action is available. Declaring them here was already necessary to count the events; they turned out to be the only things on this brand that can say a dock service is happening at all, because there is no dock_status string to ask. Before that, every one of the three status gates was inert here: Stop Dry was permanently unavailable on every Roborock dock that can dry, and Wash / Empty read ready while the dock was already doing them. Pinned by [DK-21] (the action form) and [DK-22] (the role form).


4. Where the reverse port sent the bill

Five places where being second cost a declaration, a new name, or a change to core.

The canonical name for water was already taken

Roborock's mop-intensity select is not mapped into the framework's existing water_level entity role โ€” the slot a porter would reach for. core/capabilities.py::detect_capabilities derives station-water support from that slot's presence, so filling it with a robot-side mop select reports station water on a dockless unit. The select is bound to a new role instead, and mop support is asserted through a capability hint.

This is the clearest vocabulary collision the reverse port produced: water_level is Eufy's station-water sensor, so the second brand's water control cannot use the canonical word for water.

Completion could not use the framework's secondary signal

The framework's default secondary check is the cleaning target reaching a sentinel, which is what Eufy declares. Roborock's current-room sensor reverts to the dock room's name at the end, never a sentinel, so that check can never pass and a run would never finalize. Roborock keys on the job-active binary clearing instead โ€” it stays on through a mid-job recharge dock and clears only at the true finish.

An omitted engine declaration does not mean inert

job_segmenter and mapping.segmenter_engine are declared explicitly as no-ops rather than omitted, because the framework's fallback for an absent job segmenter is Eufy's counter-plateau detector. Omitting the block runs Eufy's algorithm over Roborock's counters and fabricates phantom room boundaries โ€” in the observed run trace, the only area plateaus were obstacle stalls.

This is the sharpest form of the failure mode: an omitted declaration does not fail, it silently runs the other brand's algorithm.

The room-profile catalog had to be declared in full

Omitting it โ€” which this adapter originally did, on the documented reasoning that framework defaults suffice โ€” handed every Roborock room Eufy's display vocabulary. That shipped: a new room's suction value was not in this brand's option list, so dispatch's option filter dropped it and an unedited Roborock room applied no suction at all, while the card's strict equality chip row rendered nothing selected.

The keys are deliberately kept identical to Eufy's; only the values differ. That is what lets a stored room and the profile picker survive a brand switch. And empty is not absent: adapters/registry.py::register_adapter_config fails an absent block as "not written yet", while a per-key empty dict is a brand stating it has none.

String error codes forced a change in core

Roborock declares error codes as lowercase enum strings. Core's three classification entry points each opened by coercing the code to an exact integer and bailing on None โ€” Eufy surfaces numbers, so nobody noticed โ€” which meant all five Roborock tables were unreachable at runtime and the shipped fault labels never resolved, regardless of what the adapter declared. core/error_tracker.py::_code_key now normalizes, keeping the float and bool guards while resolving numeric strings. The brand additionally declares that the message carries the code, because for Roborock the code lives in the entity state rather than a numeric attribute.


5. Declarations that look redundant and are not

PATH_TYPE_OPTIONS is declared unconditionally, though no catalogued model exposes path control. Capability gating decides whether an axis is offered; the option list decides whether a stored value is valid, and those are different questions. While no list existed, a fossil string written by an old core backfill was both un-droppable (the field is declared by the profiles) and un-resettable (rooms/vocabulary_migration.py can only reset a value it can check against a list), so it sat on every room. This is also why tidying "callerless option lists" in this file is dangerous โ€” adapters/roborock/vocabulary.py::PATH_TYPE_OPTIONS looks exactly like adapters/roborock/vocabulary.py::MOP_MODE_OPTIONS, and only one of them is dead.

Two lifetime entity suffixes are declared that bind to no role, purely to arm a collision guard. Suffix matching is endswith, so a lifetime counter's suffix matches a per-run metric's; until both halves were declared, the guard was unarmed and replaying its own predicate against this adapter's map returned the lifetime counter where the same predicate on Eufy returned the right answer. Both halves of a collision must be declared.

One role carries a declared upstream translation key. Roborock publishes a binary sensor whose translation key is one word off from its suffix, and on a localized install the entity id is in the user's language, which no suffix rescue can reach. Without the escape hatch the only signal that arms completion never resolves, the run never observes an active lifecycle, and the stranded-run reaper marks the job interrupted about fifteen minutes after dispatch โ€” possibly mid-clean, with nothing reaching learning.

The mop pre-call targets its entity by role, not by id. Pre-call blocks are built before the entity rescue runs, so a baked-in id is the pre-rescue guess. On a localized install the real select has a translated object id, so every water push named an entity that does not exist โ€” and because HA logs a missing service target at warning rather than raising, the push silently did nothing.


6. Nine declarations are byte-identical to core's default

Worth stating plainly, because the natural way to measure the seam's necessity is to count what the second brand had to declare โ€” and that count is nine too high.

The low-battery threshold, the error-code attribute name list, the unknown-error message, the task-status error value, three dispatch field names, the discovery room-id key, and two setup-drift values all equal what core would have used anyway. Five of the six phase-timing keys equal core's constants; only the confirmation window differs, and that is the one the block's own comment argues for.

None of these is wrong. But in three cases the core default is Roborock's word rather than Eufy's, which is worth knowing before treating every core default as residue.


7. The model tables disagree with each other

The package carries two model tables keyed by the same vendor strings, with nothing comparing them, and both reach the user.

adapters/roborock/model_catalog.py::MODEL_PROFILES supplies the display name that becomes the registered config's, while adapters/roborock/upkeep_catalog.py::ROBOROCK_MODEL_NAMES feeds the maintenance card. They disagree on at least one code: one names it the base model, the other names it the Pro Ultra and tiers it as a wash station. The model catalog's own hedge โ€” "if a code is wrong the profile simply never matches" โ€” does not cover this, because the code is real and does match; it just names a different device. So one owner sees two different model names in one UI, while the model that name belongs to has no capability profile at all.

A second code is described in the model catalog as charge-only with no station to model, and tiered in the upkeep catalog as having a dust-collection dock. Most likely the code covers both a docked and a dockless variant and each file assumed one. It stopped being cosmetic when the guide tiers went live: the family gate now renders a dock-dust-bag guide on the charge-only unit.

The consumable count is stated three times and is wrong in all three. It says twelve; there are fourteen. It has drifted twice before, and the correction note itself is now stale โ€” the commit that added the last two components updated none of the prose copies. The pinning test enumerates all fourteen, so the count is right only where a machine checks it and wrong everywhere a reader looks.


8. Surfaces that do not do what they say

โœ… CORRECTED 2026-08-23. All nine are annotated at their sites; the section is kept as the record of what was found. Two corrections worth carrying here because the numbers changed:

  • The unbacked count was two numbers, not one. Re-measured by AST: the sets below that comment hold 86 entries / 49 distinct, and 31 distinct codes are classified. Neither "60 declared" nor "44 of the 53 classified" reproduces under any rule, so both were removed rather than replaced โ€” a count that licenses trusting a whole table is worse wrong than absent. The "53 enum states" figure is a live-instance reading and is left as recorded.
  • The zone-clean seam is now CLOSED, not just documented (D18): the adapter passes the hint from the model profile, so a catalog entry declaring False reaches the dispatch refusal. It defaults True, so no catalogued model changes.

The dock-capability contradiction keeps its behavioural remainder โ€” the three literals are annotated with both fix shapes but left in place, because changing them is a capability surface decision rather than a comment edit.

The dock investment cannot reach the UI. adapters/roborock/dock.py::dock_profile resolves the vendor's answers, passes them to core/capabilities.py::detect_capabilities as hints โ€” and the same config's capabilities block then hardcodes wash, dry and empty to False about five hundred lines later, at brand level, from one model's behaviour. The two dictionaries agree only when no dock is found. Worse, the hints cannot survive a refresh: this brand persists neither its capability hints nor its model family, so a capability refresh re-derives from that hardcoded block, and dock support is a hint OR a wash-entity presence with no wash entity among the declared candidates. The card hides the Base Station tab on those same literals, so the whole truth table cannot turn that tab on.

A safety reassurance is inverted for the one entry it is about. A comment states that a rejected select is caught, logged, and never aborts the run. The water pre-call declares the safest mixed-mode policy, and that path fires whenever the batch contains any non-mop room โ€” including the plainest case, an all-vacuum batch. On that path both a missing target entity and any exception from the select raise and abort the dispatch. Since an uncatalogued model defaults to mop-settable, this is reachable on any Roborock not in the catalog whose mop set is actually rejected.

CLOSED by issue #67, which is what this paragraph had been predicting. A plain Q5 โ€” mopless, and not the catalogued Q5 Pro โ€” failed every clean with global pre-call target 'select.<obj>_mop_intensity' does not exist, an all-vacuum batch included. The catalogue's optimism was justified on the grounds that a wrong guess "costs a rejected call that is caught and logged"; that absorber exists only when the select exists, and nothing had joined the two statements.

The adapter now narrows the guess alone โ€” identity-tested against DEFAULT_PROFILE, so a catalogued entry is never touched โ€” using the same three-state check rooms/room_discovery.py::get_active_map_id makes. In the state machine: the profile decides. In the registry but not the state machine: a boot window on a device that really does mop, so the guess stands and the abort still fires; collapsing this branch is the one change that could wet-mop a dry room. In neither: the integration never created the entity, so there is no mop to make safe and the pre-call is not declared. Pinned by [MS-1..4].

It also produced a wrong turn worth recording, because the wrong answer looked like the right one. Making the contract fixture mopless tripped test_new_room_defaults_use_only_this_brands_declared_vocabulary: the vocabulary withholds water_level_options / clean_mode_options when the mop is unsettable, while the room profiles carry those fields unconditionally, so the profiles appeared to store a value against an axis with no options. The fix attempted was to strip the mop-only fields from the declared profiles.

That is the one edit this area must not make. profiles/room_profiles.py::declared_profile_fields is the single answer to "does this brand have such an axis at all?", it reads THOSE PROFILES, and it is shared by _finalize_room_update (every room save) and rooms/vocabulary_migration.py (the one-shot repair) precisely so the two cannot diverge. Emptying the profiles therefore does not satisfy a test โ€” it tells both of those that the axis is gone, and they drop the field from stored rooms. The migration's Safety note names the outcome exactly: it "would strip water_level and clean_mode from every room on an S6". clean_mode is not inert there; it is the owner's vacuum/mop choice and it drives may_wet_floor. Caught by the pre-release audit, after the strip had been committed and deployed.

Absence of an OPTION LIST is a capability statement, per model. Absence from the PROFILES is an axis statement, per brand. The contract test now keys its "no axis" branch on declared_profile_fields and treats a withheld option list as "cannot judge the value", which is what the migration's Safety note had said all along. The profiles are unchanged, and so is every stored room.

The rest of the table was then audited for the same shape, and two more were found. The hazard is not optimism as such โ€” it is an optimistic guess whose stated absorber does not hold on some path. has_dock, has_path_control and supports_clean_sequence_write all default False and can only ever hide a capability, so they are not in this class.

has_mop was the second real one. It feeds the supports_mop_features hint, so an uncatalogued mopless device reported a mop it does not have โ€” inert for dispatch, but wrong in the vacuum-list snapshot and in diagnostics, which this project has been bitten by before. It is narrowed the same way, with one deliberate difference: has_mop and mop_settable are distinct (the S6 has a mop and cannot be told to use it), so narrowing keys on BOTH mop signals being absent โ€” the water-tank binary sensor (presence) and the intensity select (control). Keying it on the control alone would erase a real capability, which is what [MS-6] exists to catch.

supports_segments was the third, and it was not a hazard but a lie: declared True on every profile of two brands and read by nobody. Core computes its own (supports_segments = supports_rooms) and the profile key was never consulted nor forwarded as a hint. Removed from both catalogues rather than left looking authoritative; [MS-7] stops it drifting back. The core capability is unchanged and is the one every caller already used.

One capability seam is open at the core end and unconnected at the brand end. A comment explains that zone-clean support is read from capabilities so a model catalog entry can declare it False and be believed. No model profile carries that key and the hints dict never forwards one, so a catalog entry declaring False is silently ignored โ€” the exact failure the core mechanism's own docstring says it exists to prevent.

The package README describes a dead mechanism under its live name. The module docstring sends readers there first. It states that the brand is auto-detected by manufacturer and model prefix โ€” the detector ยง2 documents as removed, and which the package's own __init__.py says is gone on purpose โ€” along with a consumable count, three blocks listed as deferred that are all now declared, and a pruned key listed as pending.

The localization note is flatly inverted. A declaration-site comment says the guide translations are empty today so guides render in English. The directory holds seventeen language modules transcribed from the vendor's own manuals. A reader deciding whether localization work is outstanding is told it is, at the site that would tell them otherwise.

A verification number that licenses trusting the whole fault table is unbacked. The comment claims sixty declared strings; the four sets declare fifty, forty-four of them distinct. The number matches nothing under any counting rule and was already wrong in the commit that wrote it. The two other figures in the same sentence are both exactly right, which is what makes the third read as measured.

A fossil corroborates a decision that did not need it. The fan-speed option list is documented as ordered to match a dispatch global pre-call rank. There is no fan-speed pre-call โ€” there was one, and it was replaced by per-room live settings. The ascending order still has a real justification; the fossil clause adds a false second reason. Core carries the same fossil in a docstring that still uses a fan-speed rank as its worked example.

path_type is attributed to the wrong owner. A comment calls it Roborock's name for pass density, each brand declaring the axis under its own name. It is neither brand's word: it was invented in this project's initial release, three weeks before adapters or a second brand existed, as a duplicate of an axis already carried. Roborock later adopted the field that was already canonical, which is why it now reads as Roborock's โ€” and the giveaway is that one value appears in both brands' option lists for the axis.

Partly resolved (issue #66). The field name is still this project's invention and the paragraph above stands. What changed is the values: the list was wide/narrow, which no Roborock has ever offered, and it is now standard/deep/deep_plus โ€” read off select.<obj>_mop_mode, which both reporting devices publish. The axis had been declared but never OFFERED (has_path_control is False on every catalogued model, correctly so for the S6), while room_manager defaults the field, so every Roborock room on every install was persisted carrying path_type: "wide" โ€” a value nobody chose on a picker that never rendered. No alias is declared, on purpose: an alias would dress a default up as a decision.

โš  This paragraph used to say rooms/vocabulary_migration resets it. It did not, for two months. room_vocabulary_v1 latches on first boot and shipped in v2.0.0, so on every install that predates this list change the one shot was already spent; measured on the maintainer's box, all twelve of vacuum.ivy's rooms still carried wide with room_vocabulary_v1: True beside them. Replacing an option list is not enough โ€” it needs its own key. room_path_type_residue_v1 (rooms/vocabulary_migration.py::migrate_path_type_residue, 2026-10-18) is that key, scoped to this one axis and to RESETS only, so it cannot re-adjudicate anything else on the way past. supports_path_control is now the catalogue value OR a live usable value from the select, so the device decides and the catalogue can only add. Covered by [RT-1]..[RT-7].

โš  This said "live presence of the select โ€ฆ the S6 has no such select and is unchanged", and both halves were wrong. Presence was the FIRST draft of the gate and was rejected: the S6 publishes select.<obj>_mop_mode and that entity sits at unavailable forever (its mop is observe-only โ€” SET_MOP_MODE returns RoborockUnsupportedFeature), so mere presence would have flipped the flag True on the one model whose catalogue entry says False and records it owner-confirmed. The shipped gate asks for a usable value, which excludes unavailable AND unknown. The S6 is unchanged โ€” by the usability test, not by an absence. Re-measured on the live box 2026-10-18: registered, enabled, permanently unavailable, and its options are standard/deep โ€” two, where this adapter declares three. A porter who copies "presence decides" re-implements the rejected draft.

A correct exclusion is defended by a mechanically wrong reason. A sentinel is excluded on the grounds that a Roborock error code could legitimately contain the word. The test is exact set membership after strip and lowercase, not containment, so only a state exactly equal to it was ever at risk, and none of the upstream enum states is. The exclusion is right as hygiene; a porter copying the reasoning to a third brand would over-narrow their sentinel set on a false premise.

Cross-reference line numbers in this package are not maintained. Three in-file pointers to a single declaration are stale by ninety to two hundred and thirty lines. On its own that is minor, but it is the same drift signature as the consumable count and the guide-tier note: follow names in this package, never line numbers.

One comment in this package was checked because it is the most assertive one in it โ€” the callerless-by-design block over the mop-mode option list โ€” and every checkable clause holds. Its only drift is that an unscoped repository search now returns a second hit, a notes file quoting the symbol. Recorded here so a later reader does not discover that and discard the whole block.


Registries

00b-invariants.md ยท 00c-replicas.md