Repository navigation
Description
MikroTik keeps moving property definitions out of manual pages into /docs/cli-reference/, and the November 2026 rewrite accelerated it. routeros_lookup_property still treats the CLI Reference as a fallback layered under prose, and it misses part of what the CLI Reference publishes.
Grounding (0.12.1, 2026-11-28)
- Prose property rows are shrinking fast. Table-linked prose properties went 3,357 (Sept) → 2,462 (0.12.0) → 1,763 (0.12.1). In November alone, User Manager (113 → 0), HotSpot (104 → 0), certificates (73 → 0), PPP AAA, queues, containers, connection tracking, dot1x, VXLAN, RADIUS, MACVLAN and MACsec lost every property table. Their pages now link CLI Reference menus. Bridging lost its Port Settings, Bridge Port Monitoring and Hosts Table property sections. (0.12.1 release gates: content floors, spot checks, crosswalk, full-version latest #255, qa.yml floor comment)
- The CLI Reference keeps growing. The default 7.26 tree has 1,124 entries, 11,374 fields and 1,009 flags.
lookupCliRefProperty(src/query.ts:1239) reads onlycliref_fields.cliref_flags, the print-output markers, is never consulted. Former Bridge Hosts properties such asdisabledanddynamicare now described only as flags on/interface/bridge/host, so lookup can't answer them (the Codex review of the 0.12.1 release found this).default_valis alwaysnull. When the CLI Reference states a default, it's insidedescription_markdown.- Precedence is B-0025 option B, which already shipped: a described exact overlay row beats a manual row below
high. Otherwise prose leads, and unscoped lookups use the overlay only when prose has nothing.
explain_commandshares this path, so it inherits the same gaps.
What to decide (B-0025 "B as end state, or D as direction")
B-0025 deferred the choice between B and D pending cross-repo planning (centrs owns exact command validation, and lsp-routeros-ts consumes descriptions). D composes one answer per (menu, field): existence, kind and type from the overlay, and the description from the overlay or else the best manual row, with provenance. The 0.12.1 data makes D's premise the common case: for a growing share of menus, the CLI Reference is the only store.
Proposed scope (not agent-ready until the B/D direction is settled)
- Flags: answer from
cliref_flagswhen no field matches, labelled as a print flag (not a settable argument) with its ownsection. Testdisabled/dynamicat/interface/bridge/host. - Defaults: decide whether to surface CLI-Reference-stated defaults: parse a conservative
Default:form, or leave it in the description and say so in the tool description. - Precedence: re-run B-0025's "answers changed" measurement on a 0.12.1 DB and decide B vs D. Include B-0025's "69 manual/high rows with a described overlay alternative" homework.
- Regression set: lock the migrated menus as lookup and explain tests: User Manager
shared-users, HotSpot profilerate-limit/login-by, Simple Queuemax-limit(already floored inqa.ymldb-content) plus bridge host flags. - Docs: update tool descriptions and snapshots, keep MCP/TUI parity, and add a CHANGELOG entry if output shape changes.
Related: B-0025, B-0011, #203 (standard properties/types from the landing page), #169/#170 (overlay fallback), #25 (answer provenance). Promotes the BACKLOG Inbox bullet "Property lookup ignores cliref_flags", which can be removed when this issue is triaged.
Activity