Repository navigation
Description
Why
Rosetta's reason to exist is to collect MikroTik's public information and surface it where it's needed. The sources are the manual's prose, the CLI Reference, the inspect schema (via restraml), changelogs, the product matrix and product pages, and videos.
The MCP tools and their instructions were designed around the old Confluence www pages, where each prose page carried its own property tables. MikroTik's Docusaurus manual is structured differently:
- prose pages are thinner;
- properties live in
/docs/cli-reference/; - prose pages link to CLI Reference menus and fields themselves.
Rosetta keeps bending the new data into the old answer shapes, and the MCP instructions still steer agents toward paths that are now less useful (prose properties first).
Property tables were the last straw. Measured during the 2026-12-01 triage of QA run 46683801736:
- Prose property rows are disappearing. Table-linked prose properties went 3,357 (Sept) → 2,462 (0.12.0) → 1,763 (0.12.1) → 1,414 (next build). Between 11-28 and 12-01, Bridging (160 → 0), Bridge IGMP/MLD snooping (26 → 0), legacy CAPsMAN (90 + 85 → 0) and Wi-Fi CAPsMAN (43 → 0) lost every property table.
- MikroTik moved the descriptions with them. Live CLI Reference coverage of those menus is now 100% (
interface/bridge63/63,bridge/settings,bridge/vlan,wifi/capsman,wifi/provisioning,wifi/cap), exceptcaps-man/interface(32/79) andcaps-man/configuration(46/60). - The old prose → menu mapping is inferred and weak. In
src/eval/command-prose-join.tson v0.12.1, only 76% of prose property rows sit in a section that names any menu; 48% resolve to exactly one; 28% can't be checked at all. - The new mapping is written by MikroTik. On 11-28, 180 of 393 prose pages linked into
cli-reference/: 728 links to 387 distinct menus. 369 of the 387 resolve to a stored CLI Reference entry as-is; the rest are Docusaurus index-page spellings (interface/bridge/bridge) that need one normalization rule. 86 links already pointed at a single field (#auto-mac). The rewritten Bridging page alone now has 57.
Principle
- Datasets, not just a database. Keep intermediate and derived datasets, some generated and some curated (re-maps and exceptions, like
device-exceptions.tomlfor products), and surface them wherever a consumer needs them: MCP, TUI,rosetta export, published release assets or Pages. SQLite is one landing place, not the only one. - Extraction and indexing still matter. They're no longer the core work, but when the link work changes what an answer is made of, the FTS5 indexes and the extraction have to stay aligned with it.
- Use MikroTik's own structure first. Where the manual states a relationship (a link, an anchor, a CLI Reference path), store it as an authored edge. Inferred edges stay graded and labelled as inferred.
Work, grouped (sub-issues)
A. Answers aligned with the new manual
- Property lookup: treat the CLI Reference as the primary property source as MikroTik retires manual property tables #257: CLI Reference as the primary property source (precedence,
cliref_flags). - Decide how existing answers consume CLI Reference standard properties and type descriptions #203: consume CLI Reference standard properties and types.
- Decide arch fallback and declared-manual-version provenance in runtime answers #25: per-answer provenance, the source and version part.
- Ground routing-filter rule-language tables and decide safe property attachment #100: routing-filter rule-language tables. The CLI Reference will never cover them, and the page still has them (rechecked 2026-12-01).
- Deprecate default_val in property/explain answers: MikroTik does not publish defaults #267: deprecate
default_val. Research: collect observed RouterOS property defaults per version (CHR, restraml-style) and test whether defaults are conditional #268: research observed defaults. - Store page/section → CLI Reference menu/field edges from MikroTik's links (an authored edge set). Surface them in
routeros_get_page(replacing the shrinking prose "top properties" summary) and inrouteros_search'srelatedblock. - Rewrite the MCP server instructions and tool descriptions so they route to the CLI Reference and the authored links, not to prose properties.
B. Derived datasets beyond SQLite
- Publish rosetta export datasets at stable URLs; retire hand-made CSVs #173 publish exports at stable URLs · Export dataset chunks: E4 per-fragment doc tables and E3 products #104 E3/E4 export chunks · Filtered rosetta export (per-section slice) for references consumers #250 filtered export · Publish a machine-readable DB version manifest #230 machine-readable DB version manifest
C. MCP/TUI surface, reconsidered against A and B
- Rename routeros_explain_command to routeros_lookup_command (centrs owns live explain) #220 rename
explain_command→lookup_command· Agent-first CLI: rosetta <tool> with single-source registry (tool == CLI) #221 agent-first CLI · browse.routeros_statsomits theskillsblock the MCP tool returns #223 / TUI named-path arg gaps from the #54 parity inventory (candidate work) #224 TUI parity gaps · Expose skills using the MCP Skills extension resource layout (skill://<name>/SKILL.md) #261 MCP Skills resources · Migrate MCP server to SDK v2 (@modelcontextprotocol/server) and serve protocol 2026-07-28 #262 MCP SDK v2 · Retire Dude MCP tools into a dude-legacy skill (CMR era) #219 retire Dude tools · canonicalize.ts remaining hardening: H1/H2/H3/H5 prose and script handling #5 canonicalizer hardening (shared with lsp-routeros-ts)
First step
A briefing that states this direction and supersedes B-0024 (command↔prose join) and B-0025 (property store of record). It settles the open parts of B-0011 (tool surface) and B-0016 (CLI Reference overlay), and orders A–C. It should also cover the other direction: absorbing centrs' offline explain into rosetta search.
Not here
- The QA content-floor fix for the next release rides with the Docs alignment review: remove future-tense and stale claims across README, MANUAL, DESIGN and tool descriptions #259 stale-claims PR.
- The house-layout gaps are Close the gaps to tikoci house rules as work touches them (toolchain/CI Bun pin, SHA-pinned actions, release flow, TIKOCI_HOME, strict tsc, release DB journal mode) #265.
Activity
.routeros_statsomits theskillsblock the MCP tool returns #223DESIGN: point remaining surface work at #269
mobileskyfi commentedon Dec 2, 2026
Golden retrieval regression from the property-table migration, seen in QA run 46766712647 on #270 (fresh build,
d031f93):nl-questionMRR is 69.8%.nl-capsman("centrally manage wifi access points"): top 5 iswireless/wifi,wifi/configuring-easymesh,quick-set,cmr,packages; none of the expectedwireless/wifi/capsman,wireless/abgn/capsman,abgn/capsman/capsman-with-vlans. Those pages lost all their property tables on 2026-11-30, so they now carry much less indexed text.prop-wireguard-listen-portandprop-vxlan-vninow resolve todocs/cli-reference/interface/...instead of the expected manual pages. That is probably correct after the migration, and the golden expectation should accept the CLI Reference page.release.ymlruns the same golden gate, so the next release will fail it until search ranks the CLI Reference content for migrated menus (or the baseline is consciously re-set). #270 does not change ranking.