From 29e0af97ee4bf10c8d2840cecf27db33580edeb5 Mon Sep 17 00:00:00 2001 From: TIKOCI RouterOS Bots Date: Sat, 28 Nov 2026 12:25:22 -0800 Subject: [PATCH 1/5] Lower table content floors for the November manual rewrite The 0.12.1 QA rehearsal (run 46184281522) failed db-content: 554 page_tables / 5,659 data rows / 1,763 table-linked properties against floors of 600 / 6,100 / 2,450. Re-extracting live reproduces it with all 393 llms.txt pages parsed. The loss is MikroTik's ongoing migration, not a parser fault: User Manager (113 -> 0 properties), HotSpot (104 -> 0), certificates, PPP AAA, dot1x, RADIUS, queues, connection tracking, containers, VXLAN, MACVLAN and MACsec were rewritten with no Property/Parameter tables and now link /docs/cli-reference/ menus instead. Floors drop to 500 / 5,100 / 1,600 (~10% headroom, as before). The same run's changelog floor (1,451 < 4,000) came from the rehearsal being single-version (full_versions defaults to false: 12 versions). The 4,000 floor now applies when extract-all-versions stamped command_versions_expected; a single-version build needs 1,000. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/qa.yml | 26 ++++++++++++++++++-------- CHANGELOG.md | 1 + VALIDATION.md | 2 +- src/release.test.ts | 9 +++++---- 4 files changed, 25 insertions(+), 13 deletions(-) diff --git a/.github/workflows/qa.yml b/.github/workflows/qa.yml index cf716ee..1d79bd7 100644 --- a/.github/workflows/qa.yml +++ b/.github/workflows/qa.yml @@ -272,20 +272,23 @@ jobs: # Generic table floors (#92/#139): MikroTik keeps moving inline property-reference # sections into /docs/cli-reference/ (September 2026: 718 tables / 7,109 data rows / # 3,357 linked property rows; October 2026, after 26 more pages — DNS, NTP, user, - # services, packet-sniffer, cloud, … — lost their tables: 661 / 6,764 / 2,745). + # services, packet-sniffer, cloud, … — lost their tables: 661 / 6,764 / 2,745; + # November 2026, after User Manager, HotSpot, certificates, PPP AAA, dot1x, RADIUS, + # queues, connection tracking, containers, VXLAN, MACVLAN, MACsec, … were rewritten + # to link the CLI Reference instead: 554 / 5,659 / 1,763). # These floors retain roughly 9-11% headroom while proving the prose parser, # normalized storage, and property provenance all reached the artifact. CLI-Reference # has separate floors and exact discovery/link integrity gates below. - if [ "${PAGE_TABLES:-0}" -lt 600 ]; then - echo "::error::DB has only ${PAGE_TABLES} page_tables rows — expected ≥600." + if [ "${PAGE_TABLES:-0}" -lt 500 ]; then + echo "::error::DB has only ${PAGE_TABLES} page_tables rows — expected ≥500." fail=1 fi - if [ "${PAGE_TABLE_DATA_ROWS:-0}" -lt 6100 ]; then - echo "::error::DB has only ${PAGE_TABLE_DATA_ROWS} generic table data rows — expected ≥6100." + if [ "${PAGE_TABLE_DATA_ROWS:-0}" -lt 5100 ]; then + echo "::error::DB has only ${PAGE_TABLE_DATA_ROWS} generic table data rows — expected ≥5100." fail=1 fi - if [ "${TABLE_PROPERTIES:-0}" -lt 2450 ]; then - echo "::error::DB has only ${TABLE_PROPERTIES} properties linked to source table rows — expected ≥2450." + if [ "${TABLE_PROPERTIES:-0}" -lt 1600 ]; then + echo "::error::DB has only ${TABLE_PROPERTIES} properties linked to source table rows — expected ≥1600." fail=1 fi # Hardware overlay floors (B-0017/B-0018, PR #41 / issue #38): the tables @@ -329,9 +332,16 @@ jobs: echo "::error::DB has only ${CALLOUTS} callouts — expected ≥600. Did extract-docusaurus parse admonitions?" fail=1 fi - if [ "${CHANGELOGS:-0}" -lt 4000 ]; then + # Changelog coverage follows the command-version set: a full build (extract-all-versions + # stamps command_versions_expected) fetches every version, ~6,600 entries in 0.12.0. A + # single-version local-build rehearsal fetches ~12 (1,451 entries on 2026-11-28), so it + # gets an "it ran" floor instead of failing every default rehearsal. + if [ -n "$EXPECTED_VERSIONS" ] && [ "${CHANGELOGS:-0}" -lt 4000 ]; then echo "::error::DB has only ${CHANGELOGS} changelog entries — expected ≥4000. Did extract-changelogs run, or did download.mikrotik.com fail?" fail=1 + elif [ -z "$EXPECTED_VERSIONS" ] && [ "${CHANGELOGS:-0}" -lt 1000 ]; then + echo "::error::DB has only ${CHANGELOGS} changelog entries — expected ≥1000 for a single-version build. Did extract-changelogs run?" + fail=1 fi if [ "${VIDEOS:-0}" -lt 600 ]; then echo "::error::DB has only ${VIDEOS} videos — expected ≥600. Did extract-videos-from-cache run?" diff --git a/CHANGELOG.md b/CHANGELOG.md index 17f7624..ec02bcb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,7 @@ uses [Semantic Versioning](https://semver.org/). ### Fixed +- The release content floors follow MikroTik's November manual rewrite. User Manager, HotSpot, certificates, PPP AAA, dot1x, RADIUS, queues, connection tracking, containers, VXLAN, MACVLAN and MACsec now link the CLI Reference instead of carrying property tables, which left 554 page tables, 5,659 table rows and 1,763 table-linked properties (October: 661 / 6,764 / 2,745). The floors drop to 500 / 5,100 / 1,600, keeping the same ~10% headroom. The changelog floor stays at 4,000 entries for a full-version build. A single-version `qa.yml` rehearsal, which fetches about 12 versions' changelogs, now needs 1,000, so it no longer fails by default. - The hardware assessment no longer counts the manual's new tag index pages (`/hardware/tags`, `/hardware/tags/lora` and so on) as hardware pages. They failed to cache, which left every live run partial so its cache was never pruned. - The README `/app` install steps now cover the storage-disk prerequisite (`/app/setup` or `/app/settings`, with sizing guidance): without a selected disk `/app/add` succeeds but the app sits idle with no error. The steps also note that the inline YAML's inner quotes must stay backslash-escaped. Phase 1 of #245. - Release OCI images are smoke-tested with a real MCP session on both architectures before any version or floating tag moves. Each release runs `scripts/smoke-oci.ts` (initialize → tools/list → provenance match → search → chained get_page → command_tree → device_lookup) against the pushed image on native amd64 and arm64 Docker, asserting each leg pulled its own architecture; `:latest` / `:next` promote only after both legs pass. Previously only the amd64 image ran, and any non-404 HTTP response passed (#246). diff --git a/VALIDATION.md b/VALIDATION.md index d7ab400..3e1805f 100644 --- a/VALIDATION.md +++ b/VALIDATION.md @@ -28,7 +28,7 @@ Tasks in `tasks/` reference these IDs in their `validation:` frontmatter. When a | V-property-confidence | `routeros_lookup_property` confidence grades the **row** against the requested menu, not the query branch: `high` requires the row's own section to name that menu, to be the menu the section is about (support gate), and the command tree not to contradict it; page alignment alone can only reach `medium`; absent evidence is `low`; rows are returned best tier first (B-0024 step 4) | `src/property-confidence.test.ts` (tier decision table + support gate) and `src/query.test.ts` (`lookupProperty confidence`) via `bun test` in `.github/workflows/test.yml` | blocking | #131 | | V-retrieval-floor | Recall/MRR/classifier meet absolute floors AND stay within 2pp of baseline on 35 hand-curated golden queries (27 search-surface, gated — the corpus-swap-sensitive `routeros_search` entry point); a separate **informational** `surface_matrix` tracks per-surface hit@5 for the dedicated tools (property/changelog/video), kept OUT of the gated aggregates (#53) | `src/eval/retrieval.ts`, `qa.yml` eval-golden gate (run by `release.yml`'s `qa` job) | blocking (search aggregates) / non-blocking (surface_matrix) | — | | V-retrieval-self | Self-supervised eval (~200 auto-generated queries) holds within 5pp of baseline (baseline regenerated against the Docusaurus corpus in #53 — the April-2026 Confluence-era baseline was stale, so every post-swap run showed a false regression) | `qa.yml` eval-self gate (run by `release.yml`'s `qa` job; `continue-on-error` unless `eval_self_blocking`) | non-blocking (pending promotion) | — | -| V-db-min-content | Built DB has ≥200 pages, ≥1000 commands, ≥100 devices, ≥2000 device_test_results, ≥1000 properties, ≥600 generic page tables, ≥6100 table data rows, ≥2450 properties linked to exact table rows, ≥200 hardware_catalog, ≥600 device_aliases, ≥80 devices with block diagrams, ≥2500 sections, ≥600 callouts, ≥4000 changelog entries, ≥600 videos, ≥50 Dude pages, ≥10 skills before publish; CLI-Reference content is floored and integrity-checked separately | `qa.yml` db-content gate (single definition of the floors; run by `release.yml`'s `qa` job with `db_source=artifact`, so it floors the exact DB about to publish) | blocking | #139, #218, #231 | +| V-db-min-content | Built DB has ≥200 pages, ≥1000 commands, ≥100 devices, ≥2000 device_test_results, ≥1000 properties, ≥500 generic page tables, ≥5100 table data rows, ≥1600 properties linked to exact table rows, ≥200 hardware_catalog, ≥600 device_aliases, ≥80 devices with block diagrams, ≥2500 sections, ≥600 callouts, ≥4000 changelog entries (≥1000 on a single-version rehearsal build), ≥600 videos, ≥50 Dude pages, ≥10 skills before publish; CLI-Reference content is floored and integrity-checked separately | `qa.yml` db-content gate (single definition of the floors; run by `release.yml`'s `qa` job with `db_source=artifact`, so it floors the exact DB about to publish) | blocking | #139, #218, #231 | | V-extract-test-results-fail-loud | `extract-test-results` exits non-zero with the previous `device_test_results` table untouched on an empty result, >10% hard fetch errors, >15% missing (404) pages, or the 15-minute global fetch deadline; a 200 page with no benchmark rows and no block diagram counts as a hard error, and retries cover 5xx/429 (Retry-After ≤30s)/network/timeout while 403 fails at once | `src/extract-test-results.test.ts` (verdict table + failure classification + hermetic verdict-to-exit subprocess pin) and `src/restraml.test.ts` (429/403 policy) via `bun test` in `test.yml`; `qa.yml` db-content floor backstops row-count drift | blocking | #218 | | V-extract-changelogs-fail-loud | `extract-changelogs` exits non-zero with the previous `changelogs` table untouched on an empty result, >10% hard fetch errors, >15% missing (404) or unparsed versions, or 5 consecutive hard errors; retries match V-extract-test-results-fail-loud | `src/extract-changelogs.test.ts` (verdict table + fetch classification) via `bun test` in `test.yml`; `qa.yml` db-content changelog floor backstops it | blocking | #231 | | V-db-wipe-guard | Tests cannot accidentally open and overwrite the on-disk DB | `src/query.test.ts` `:memory:` guard + post-extraction guard in CI | blocking | — | diff --git a/src/release.test.ts b/src/release.test.ts index e708a96..b4bcbfd 100644 --- a/src/release.test.ts +++ b/src/release.test.ts @@ -1345,16 +1345,17 @@ describe("qa.yml", () => { /COMMANDS.*-lt 1000/, /DEVICES.*-lt 100/, /PROPERTIES.*-lt 1000/, - /PAGE_TABLES.*-lt 600/, - /PAGE_TABLE_DATA_ROWS.*-lt 6100/, - /TABLE_PROPERTIES.*-lt 2450/, + /PAGE_TABLES.*-lt 500/, + /PAGE_TABLE_DATA_ROWS.*-lt 5100/, + /TABLE_PROPERTIES.*-lt 1600/, /HARDWARE_CATALOG.*-lt 200/, /DEVICE_ALIASES.*-lt 600/, /TEST_RESULTS.*-lt 2000/, /BLOCK_DIAGRAMS.*-lt 80/, /SECTIONS.*-lt 2500/, /CALLOUTS.*-lt 600/, - /CHANGELOGS.*-lt 4000/, + /EXPECTED_VERSIONS.*CHANGELOGS.*-lt 4000/, + /-z "\$EXPECTED_VERSIONS".*CHANGELOGS.*-lt 1000/, /VIDEOS.*-lt 600/, /DUDE_PAGES.*-lt 50/, /SKILLS.*-lt 10/, From 3cbd5bd60e21887046fb0df3f68859c0e4aed77f Mon Sep 17 00:00:00 2001 From: TIKOCI RouterOS Bots Date: Sat, 28 Nov 2026 13:25:06 -0800 Subject: [PATCH 2/5] Close the 0.12.1 review gaps: release gates, spot checks, crosswalk From the independent review of #254/#255: - V-cliref-link-drift: regenerate cli-reference-links.tsv from a full extract-all-versions + extract-cliref + link-cliref build (74/74 versions, primary 7.25.2). 7.26 gains 9 manual-only menus and loses the exact match for iot/lora/send, which the 7.26 manual dropped (the 7.24 and 7.25 trees still have it). link-cliref --check passes. - release.yml: a latest-channel dispatch requires full_versions=true; otherwise the build skips older command trees, most changelogs and the crosswalk check. - qa.yml: the 1,000 changelog floor applies only to a single-version local-build rehearsal (DB_SOURCE env); a release artifact always needs 4,000. - qa.yml: page-level spot checks the ~10%-headroom corpus floors can't provide: Bridging >=100 properties (158), User Manager >=3 tables (7), and described default-tree CLI-Reference fields for user-manager/user shared-users, ip/hotspot/user/profile rate-limit, queue/simple max-limit (the only answer now that their prose tables are gone). - isDocumentOnlyPage moves to hardware-kind.ts; classifyHardwareKind takes the title, so Quick Guides and the TG-LR manual audit as series-or-doc (device spec-gap worklist 109 -> 4). The claim pass is extracted as resolveCrossPageClaims with a regression test: a guide's code claim can no longer strip a device page's table claim. - CHANGELOG cites 0.12.0's published 643 / 6,574 / 2,462 instead of an unsourced October aggregate. BACKLOG notes that property lookup ignores cliref_flags (bridge host disabled/dynamic). Co-Authored-By: Claude Opus 5.5 --- .github/workflows/qa.yml | 42 +++++-- .github/workflows/release.yml | 15 +++ BACKLOG.md | 1 + CHANGELOG.md | 6 +- VALIDATION.md | 2 +- cli-reference-links.tsv | 11 +- hardware-unmatched.tsv | 210 ++++++++++++++++---------------- project-words.txt | 2 + src/assess-hardware.test.ts | 48 ++++++-- src/assess-hardware.ts | 106 ++++++++-------- src/build-device-map.ts | 2 +- src/extract-hardware-catalog.ts | 3 +- src/hardware-kind.test.ts | 19 ++- src/hardware-kind.ts | 25 +++- src/release.test.ts | 29 ++++- 15 files changed, 334 insertions(+), 187 deletions(-) diff --git a/.github/workflows/qa.yml b/.github/workflows/qa.yml index 1d79bd7..58d3413 100644 --- a/.github/workflows/qa.yml +++ b/.github/workflows/qa.yml @@ -222,6 +222,8 @@ jobs: # fail on any floor a pre-built published DB predates. - name: Validate DB has expected content (db-content) if: inputs.test_scope == 'db-content' || (inputs.test_scope == 'all' && (inputs.db_source == 'local-build' || inputs.db_source == 'artifact')) + env: + DB_SOURCE: ${{ inputs.db_source }} run: | set -euo pipefail PAGES=$(sqlite3 ros-help.db "SELECT COUNT(*) FROM pages") @@ -291,6 +293,30 @@ jobs: echo "::error::DB has only ${TABLE_PROPERTIES} properties linked to source table rows — expected ≥1600." fail=1 fi + # Page-level spot checks (0.12.1 review): the corpus-wide table floors keep ~10% + # headroom, so losing every table on one large page (Bridging alone is ~20 tables / + # ~160 properties) would still pass them. These pin pages that kept their tables + # through the November 2026 rewrite. If MikroTik later moves one of them into the + # CLI Reference too, confirm that on the live page and update the check. + BRIDGE_PROPS=$(sqlite3 ros-help.db "SELECT COUNT(*) FROM properties r JOIN pages p ON p.id = r.page_id WHERE p.url LIKE '%/docs/bridging-and-switching/'" 2>/dev/null || echo 0) + UM_TABLES=$(sqlite3 ros-help.db "SELECT COUNT(*) FROM page_tables t JOIN pages p ON p.id = t.page_id WHERE p.url LIKE '%/docs/authentication-authorization-accounting/user-manager'" 2>/dev/null || echo 0) + echo "✓ spot checks: bridging-and-switching ${BRIDGE_PROPS} properties, user-manager ${UM_TABLES} tables" + if [ "${BRIDGE_PROPS:-0}" -lt 100 ]; then + echo "::error::bridging-and-switching has only ${BRIDGE_PROPS} table properties — expected ≥100 (158 on 2026-11-28). Did its property tables stop parsing?" + fail=1 + fi + if [ "${UM_TABLES:-0}" -lt 3 ]; then + echo "::error::user-manager has only ${UM_TABLES} generic tables — expected ≥3 (7 on 2026-11-28). Did its State/Meaning-style tables stop parsing?" + fail=1 + fi + # Properties that left the prose pages in November 2026 must still answer from the + # default CLI-Reference tree, with a description (routeros_lookup_property's fallback). + MIGRATED_FIELDS=$(sqlite3 ros-help.db "SELECT COUNT(*) FROM cliref_fields f JOIN cliref_entries e ON e.id = f.entry_id JOIN cliref_pages p ON p.id = e.page_id JOIN cliref_trees t ON t.manual_version = p.manual_version WHERE t.is_default = 1 AND length(trim(f.description_markdown)) > 20 AND ((e.source_path = 'user-manager/user' AND f.name = 'shared-users') OR (e.source_path = 'ip/hotspot/user/profile' AND f.name = 'rate-limit') OR (e.source_path = 'queue/simple' AND f.name = 'max-limit'))" 2>/dev/null || echo 0) + echo "✓ spot checks: ${MIGRATED_FIELDS}/3 migrated properties answer from the default CLI-Reference tree" + if [ "${MIGRATED_FIELDS:-0}" -lt 3 ]; then + echo "::error::Only ${MIGRATED_FIELDS}/3 of user-manager/user shared-users, ip/hotspot/user/profile rate-limit, queue/simple max-limit have a described default-tree CLI-Reference field. Their prose property tables are gone, so this is their only answer." + fail=1 + fi # Hardware overlay floors (B-0017/B-0018, PR #41 / issue #38): the tables # exist at db.ts init, so a pipeline that skipped extract-hardware-catalog # would ship them empty. Floors sit well below the observed size (~255 / ~772) @@ -333,15 +359,17 @@ jobs: fail=1 fi # Changelog coverage follows the command-version set: a full build (extract-all-versions - # stamps command_versions_expected) fetches every version, ~6,600 entries in 0.12.0. A - # single-version local-build rehearsal fetches ~12 (1,451 entries on 2026-11-28), so it - # gets an "it ran" floor instead of failing every default rehearsal. - if [ -n "$EXPECTED_VERSIONS" ] && [ "${CHANGELOGS:-0}" -lt 4000 ]; then + # stamps command_versions_expected) fetches every version, 7,649 entries on 2026-11-28. + # Only a single-version local-build REHEARSAL (full_versions=false, ~12 versions, 1,451 + # entries) gets the lower "it ran" floor; a release artifact always needs 4,000. + if [ "$DB_SOURCE" = "local-build" ] && [ -z "$EXPECTED_VERSIONS" ]; then + if [ "${CHANGELOGS:-0}" -lt 1000 ]; then + echo "::error::DB has only ${CHANGELOGS} changelog entries — expected ≥1000 for a single-version local-build rehearsal. Did extract-changelogs run?" + fail=1 + fi + elif [ "${CHANGELOGS:-0}" -lt 4000 ]; then echo "::error::DB has only ${CHANGELOGS} changelog entries — expected ≥4000. Did extract-changelogs run, or did download.mikrotik.com fail?" fail=1 - elif [ -z "$EXPECTED_VERSIONS" ] && [ "${CHANGELOGS:-0}" -lt 1000 ]; then - echo "::error::DB has only ${CHANGELOGS} changelog entries — expected ≥1000 for a single-version build. Did extract-changelogs run?" - fail=1 fi if [ "${VIDEOS:-0}" -lt 600 ]; then echo "::error::DB has only ${VIDEOS} videos — expected ≥600. Did extract-videos-from-cache run?" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 45657a5..3f8c45c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -242,6 +242,21 @@ jobs: fi echo "✓ CHANGELOG.md has a [$PKG_VERSION] heading" + # A latest release ships the whole corpus: every RouterOS version's command tree, + # changelogs and the CLI-Reference crosswalk. full_versions=false skips + # extract-all-versions, which leaves command_versions_expected unset and link-cliref + # skipped, so qa.yml's full-build floors and V-cliref-link-drift would not apply. + # Single-version builds stay available for the next channel and qa.yml rehearsals. + - name: Require a full-version build for latest-channel release + if: inputs.republish_assets != true + run: | + set -euo pipefail + if [ "${{ steps.channel.outputs.channel }}" = "latest" ] && [ "${{ inputs.full_versions }}" != "true" ]; then + echo "::error::A latest-channel release needs full_versions=true (every RouterOS version, changelogs and the CLI-Reference crosswalk). Re-dispatch with full_versions enabled." + exit 1 + fi + echo "✓ full_versions=${{ inputs.full_versions }} for channel ${{ steps.channel.outputs.channel }}" + # inputs.version's equality check below only applies cleanly to # latest-channel runs. For prerelease runs, package.json's version was # already rewritten above to include $GITHUB_RUN_NUMBER — a value that diff --git a/BACKLOG.md b/BACKLOG.md index c99c13e..4ed2ea9 100644 --- a/BACKLOG.md +++ b/BACKLOG.md @@ -15,6 +15,7 @@ Drop one-line thoughts here. Promote later — to an issue if it gains shape, to a briefing if it needs thinking-first, or delete if it doesn't survive a re-read. +- Property lookup ignores `cliref_flags`: since the November 2026 manual rewrite, former Bridge Hosts properties such as `disabled` and `dynamic` are described only as CLI-Reference print flags (`/interface/bridge/host`), so `routeros_lookup_property` can't answer them (0.12.1 Codex review, #255). CLI-Reference defaults also stay inside description text while `default_val` is null. - Keep merging `actions/setup-node`, `actions/upload-artifact`, and Docker action Dependabot bumps before GitHub's forced runtime transitions turn warnings into failures. - Benchmark feedback loop: periodically compare retrieval/explain changes against `~/GitHub/bench-routeros-tools`; promote `route-blackhole`, version-new Wi-Fi `ssid=`, and skill-vs-raw-doc packaging into rosetta fixtures when the benchmark corpus stabilizes. - Future `routeros_validate_command`: carry explicit static-vs-runtime provenance and include a bare-flag `blackhole` regression fixture because `/console/inspect` can accept forms that RouterOS runtime rejects. diff --git a/CHANGELOG.md b/CHANGELOG.md index ec02bcb..980cef6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,11 +28,13 @@ uses [Semantic Versioning](https://semver.org/). - **Product matrix refreshed to the 2026-11-28 snapshot.** `devices` and the hardware overlay now read `matrix/2026-11-28/matrix.csv` (155 products). It adds LtAP LTE12 ax (`LtAP-5HaxT2HaxD&EG120K-EA`), and corrects RDS2216-2XG-4S+4XS-2XQ's CPU frequency to 2400 MHz (previously 2000 MHz). The hardware and product-page assessments were re-scraped the same day. FTC21-ups, KNOT Gateway HL9 and KNOT Gateway LR8 now have their own `/hardware` pages, so `routeros_device_lookup` links them instead of reporting them as www-only, and their curated exceptions are gone. Closes the scheduled device-map drift (#252). - **YouTube transcript cache refreshed to the 2026-11-28 snapshot.** 749 videos (3 new): the LtAP LTE12 ax launch video and the RouterOS 7.24 and 7.25 changelog walkthroughs. All 746 earlier entries are unchanged. -- **MikroTik's new `/hardware` Quick Guides stay out of the device catalog.** The manual added about 120 "Quick Guide - …" pages, one per product that already has a `/hardware` page, plus a TG-LR82 / TG-LR92 user manual. They are documents about devices, not devices, so they claim no matrix row and `hardware_catalog` and `device_aliases` skip them. Otherwise each would show up as a second, unlinked device that competes for the real device's model codes. +- **MikroTik's new `/hardware` Quick Guides stay out of the device catalog.** The manual added about 120 "Quick Guide - …" pages, one per product that already has a `/hardware` page, plus a TG-LR82 / TG-LR92 user manual. They are documents about devices, not devices, so they claim no matrix row and `hardware_catalog` and `device_aliases` skip them. Otherwise each would show up as a second, unlinked device that competes for the real device's model codes. `hardware-unmatched.tsv` lists them as `series-or-doc`, so its device spec-gap worklist shrinks from 109 pages to 4. ### Fixed -- The release content floors follow MikroTik's November manual rewrite. User Manager, HotSpot, certificates, PPP AAA, dot1x, RADIUS, queues, connection tracking, containers, VXLAN, MACVLAN and MACsec now link the CLI Reference instead of carrying property tables, which left 554 page tables, 5,659 table rows and 1,763 table-linked properties (October: 661 / 6,764 / 2,745). The floors drop to 500 / 5,100 / 1,600, keeping the same ~10% headroom. The changelog floor stays at 4,000 entries for a full-version build. A single-version `qa.yml` rehearsal, which fetches about 12 versions' changelogs, now needs 1,000, so it no longer fails by default. +- **The release content floors follow MikroTik's November manual rewrite.** User Manager, HotSpot, certificates, PPP AAA, dot1x, RADIUS, queues, connection tracking, containers, VXLAN, MACVLAN and MACsec now link the CLI Reference instead of carrying property tables. That leaves 554 page tables, 5,659 table rows and 1,763 table-linked properties (0.12.0 shipped 643 / 6,574 / 2,462). The floors drop to 500 / 5,100 / 1,600, keeping about 10% headroom. Because a floor that loose would not notice one large page losing its tables, new spot checks also require ≥100 properties on Bridging, ≥3 tables on User Manager, and described default-tree CLI-Reference fields for User Manager `shared-users`, HotSpot profile `rate-limit` and simple queue `max-limit`. +- **A latest release requires a full-version build, and only a rehearsal gets the lower changelog floor.** The release workflow now fails a latest-channel dispatch with `full_versions=false`, since that build skips every older version's command tree, most changelogs and the CLI-Reference crosswalk check. The changelog floor stays at 4,000 entries for any release artifact. Only a single-version `qa.yml` local-build rehearsal, which fetches about 12 versions' changelogs, needs just 1,000, so it no longer fails by default. +- **The CLI-Reference crosswalk baseline is refreshed for the 7.26 manual.** It adds 9 manual-only menus (`app/check-update`, `container/check-update`, `system/sync-e` and its `monitor` and `port`, `routing/bgp/evpn/esi`, `interface/wifi/meshpoint-paths`, and two `reset-counters` commands) and drops `/iot/lora/send`, which the 7.26 manual no longer documents (the 7.24 and 7.25 trees still do). - The hardware assessment no longer counts the manual's new tag index pages (`/hardware/tags`, `/hardware/tags/lora` and so on) as hardware pages. They failed to cache, which left every live run partial so its cache was never pruned. - The README `/app` install steps now cover the storage-disk prerequisite (`/app/setup` or `/app/settings`, with sizing guidance): without a selected disk `/app/add` succeeds but the app sits idle with no error. The steps also note that the inline YAML's inner quotes must stay backslash-escaped. Phase 1 of #245. - Release OCI images are smoke-tested with a real MCP session on both architectures before any version or floating tag moves. Each release runs `scripts/smoke-oci.ts` (initialize → tools/list → provenance match → search → chained get_page → command_tree → device_lookup) against the pushed image on native amd64 and arm64 Docker, asserting each leg pulled its own architecture; `:latest` / `:next` promote only after both legs pass. Previously only the amd64 image ran, and any non-404 HTTP response passed (#246). diff --git a/VALIDATION.md b/VALIDATION.md index 3e1805f..4371f84 100644 --- a/VALIDATION.md +++ b/VALIDATION.md @@ -28,7 +28,7 @@ Tasks in `tasks/` reference these IDs in their `validation:` frontmatter. When a | V-property-confidence | `routeros_lookup_property` confidence grades the **row** against the requested menu, not the query branch: `high` requires the row's own section to name that menu, to be the menu the section is about (support gate), and the command tree not to contradict it; page alignment alone can only reach `medium`; absent evidence is `low`; rows are returned best tier first (B-0024 step 4) | `src/property-confidence.test.ts` (tier decision table + support gate) and `src/query.test.ts` (`lookupProperty confidence`) via `bun test` in `.github/workflows/test.yml` | blocking | #131 | | V-retrieval-floor | Recall/MRR/classifier meet absolute floors AND stay within 2pp of baseline on 35 hand-curated golden queries (27 search-surface, gated — the corpus-swap-sensitive `routeros_search` entry point); a separate **informational** `surface_matrix` tracks per-surface hit@5 for the dedicated tools (property/changelog/video), kept OUT of the gated aggregates (#53) | `src/eval/retrieval.ts`, `qa.yml` eval-golden gate (run by `release.yml`'s `qa` job) | blocking (search aggregates) / non-blocking (surface_matrix) | — | | V-retrieval-self | Self-supervised eval (~200 auto-generated queries) holds within 5pp of baseline (baseline regenerated against the Docusaurus corpus in #53 — the April-2026 Confluence-era baseline was stale, so every post-swap run showed a false regression) | `qa.yml` eval-self gate (run by `release.yml`'s `qa` job; `continue-on-error` unless `eval_self_blocking`) | non-blocking (pending promotion) | — | -| V-db-min-content | Built DB has ≥200 pages, ≥1000 commands, ≥100 devices, ≥2000 device_test_results, ≥1000 properties, ≥500 generic page tables, ≥5100 table data rows, ≥1600 properties linked to exact table rows, ≥200 hardware_catalog, ≥600 device_aliases, ≥80 devices with block diagrams, ≥2500 sections, ≥600 callouts, ≥4000 changelog entries (≥1000 on a single-version rehearsal build), ≥600 videos, ≥50 Dude pages, ≥10 skills before publish; CLI-Reference content is floored and integrity-checked separately | `qa.yml` db-content gate (single definition of the floors; run by `release.yml`'s `qa` job with `db_source=artifact`, so it floors the exact DB about to publish) | blocking | #139, #218, #231 | +| V-db-min-content | Built DB has ≥200 pages, ≥1000 commands, ≥100 devices, ≥2000 device_test_results, ≥1000 properties, ≥500 generic page tables, ≥5100 table data rows, ≥1600 properties linked to exact table rows, ≥200 hardware_catalog, ≥600 device_aliases, ≥80 devices with block diagrams, ≥2500 sections, ≥600 callouts, ≥4000 changelog entries (≥1000 only on a single-version local-build rehearsal), ≥600 videos, ≥50 Dude pages, ≥10 skills before publish, plus page-level spot checks (≥100 Bridging properties, ≥3 User Manager tables, 3 migrated properties described in the default CLI-Reference tree); a latest release must be a full-version build; CLI-Reference content is floored and integrity-checked separately | `qa.yml` db-content gate (single definition of the floors; run by `release.yml`'s `qa` job with `db_source=artifact`, so it floors the exact DB about to publish) | blocking | #139, #218, #231 | | V-extract-test-results-fail-loud | `extract-test-results` exits non-zero with the previous `device_test_results` table untouched on an empty result, >10% hard fetch errors, >15% missing (404) pages, or the 15-minute global fetch deadline; a 200 page with no benchmark rows and no block diagram counts as a hard error, and retries cover 5xx/429 (Retry-After ≤30s)/network/timeout while 403 fails at once | `src/extract-test-results.test.ts` (verdict table + failure classification + hermetic verdict-to-exit subprocess pin) and `src/restraml.test.ts` (429/403 policy) via `bun test` in `test.yml`; `qa.yml` db-content floor backstops row-count drift | blocking | #218 | | V-extract-changelogs-fail-loud | `extract-changelogs` exits non-zero with the previous `changelogs` table untouched on an empty result, >10% hard fetch errors, >15% missing (404) or unparsed versions, or 5 consecutive hard errors; retries match V-extract-test-results-fail-loud | `src/extract-changelogs.test.ts` (verdict table + fetch classification) via `bun test` in `test.yml`; `qa.yml` db-content changelog floor backstops it | blocking | #231 | | V-db-wipe-guard | Tests cannot accidentally open and overwrite the on-disk DB | `src/query.test.ts` `:memory:` guard + post-extraction guard in CI | blocking | — | diff --git a/cli-reference-links.tsv b/cli-reference-links.tsv index 3231b3f..ca78ce3 100644 --- a/cli-reference-links.tsv +++ b/cli-reference-links.tsv @@ -1,7 +1,7 @@ # cli-reference entry→inspect crosswalk (V-cliref-link-drift baseline; regenerate: make link-cliref-baseline) # counts 7.24 exact=962 alias=0 manual-only=98 entries=1060 # counts 7.25 exact=967 alias=0 manual-only=96 entries=1063 -# counts 7.26 exact=967 alias=0 manual-only=149 entries=1116 +# counts 7.26 exact=966 alias=0 manual-only=158 entries=1124 manual_version source_path source_type match_kind match_detail 7.24 interface/bridge/msrp Directory manual-only 7.24 interface/bridge/msrp/attributes Directory manual-only @@ -197,6 +197,7 @@ manual_version source_path source_type match_kind match_detail 7.25 system/swos/reset-config Command manual-only 7.25 system/swos/save-config Command manual-only 7.25 system/swos/upgrade Command manual-only +7.26 app/check-update Command manual-only 7.26 app/settings/remove-certificate Command manual-only 7.26 cmr Settings Directory manual-only 7.26 cmr/alert Directory manual-only @@ -230,6 +231,7 @@ manual_version source_path source_type match_kind match_detail 7.26 cmr/vlan Directory manual-only 7.26 cmr/wifi Directory manual-only 7.26 cmr/wifi/radio Directory manual-only +7.26 container/check-update Command manual-only 7.26 interface/ethernet/poe Directory manual-only 7.26 interface/ethernet/poe/monitor Command manual-only 7.26 interface/ethernet/poe/power-cycle Command manual-only @@ -263,6 +265,7 @@ manual_version source_path source_type match_kind match_detail 7.26 interface/ethernet/switch/qos/port/reset-counters Command manual-only 7.26 interface/ethernet/switch/qos/priority-flow-control Directory manual-only 7.26 interface/ethernet/switch/qos/profile Directory manual-only +7.26 interface/ethernet/switch/qos/reset-counters Command manual-only 7.26 interface/ethernet/switch/qos/settings Settings Directory manual-only 7.26 interface/ethernet/switch/qos/tx-manager Directory manual-only 7.26 interface/ethernet/switch/qos/tx-manager/queue Directory manual-only @@ -275,6 +278,7 @@ manual_version source_path source_type match_kind match_detail 7.26 interface/ethernet/switch/unicast-fdb Directory manual-only 7.26 interface/ethernet/switch/unicast-fdb/flush Command manual-only 7.26 interface/lte/run-modem-update Command manual-only +7.26 interface/macsec/reset-counters Command manual-only 7.26 interface/pwr-line Directory manual-only 7.26 interface/pwr-line/blink Command manual-only 7.26 interface/pwr-line/configure Command manual-only @@ -301,6 +305,7 @@ manual_version source_path source_type match_kind match_detail 7.26 interface/wifi/easymesh/sta Directory manual-only 7.26 interface/wifi/easymesh/topology Directory manual-only 7.26 interface/wifi/easymesh/wps-push-button Command manual-only +7.26 interface/wifi/meshpoint-paths Command manual-only 7.26 interface/wifi/trigger-radar Command manual-only 7.26 iot/gpio Directory manual-only 7.26 iot/gpio/analog Directory manual-only @@ -324,6 +329,7 @@ manual_version source_path source_type match_kind match_detail 7.26 partitions/save-config-to Command manual-only 7.26 root/terminal Directory manual-only 7.26 routing/bfd/authentication Directory manual-only +7.26 routing/bgp/evpn/esi Directory manual-only 7.26 system/dashboard/settings Settings Directory manual-only 7.26 system/dashboard/show Command manual-only 7.26 system/default-configuration/wps-sync-mode-script Settings Directory manual-only @@ -342,6 +348,9 @@ manual_version source_path source_type match_kind match_detail 7.26 system/swos/reset-config Command manual-only 7.26 system/swos/save-config Command manual-only 7.26 system/swos/upgrade Command manual-only +7.26 system/sync-e Settings Directory manual-only +7.26 system/sync-e/monitor Command manual-only +7.26 system/sync-e/port Directory manual-only 7.26 tool/apptraffic Settings Directory manual-only 7.26 tool/apptraffic/stats Directory manual-only 7.26 tool/apptraffic/stats/categories Directory manual-only diff --git a/hardware-unmatched.tsv b/hardware-unmatched.tsv index 3cb4dd9..5f1601f 100644 --- a/hardware-unmatched.tsv +++ b/hardware-unmatched.tsv @@ -60,7 +60,7 @@ r11e-lr9 module IoT products 0 no-product-link https://manual.mikrotik.com/har r11e-lr9g module IoT products 0 no-product-link https://manual.mikrotik.com/hardware/r11e-lr9g R11e-LR9G tg-bt5-in module IoT products tg_bt5_in 9 unmatched https://manual.mikrotik.com/hardware/tg-bt5-in tg-bt5-out module IoT products tg_bt5_out 9 unmatched https://manual.mikrotik.com/hardware/tg-bt5-out -tg-lr-setup-guide module IoT products unmatched https://manual.mikrotik.com/hardware/tg-lr-setup-guide +tg-lr-setup-guide series-or-doc IoT products unmatched https://manual.mikrotik.com/hardware/tg-lr-setup-guide tg-lr82 module IoT products tg_lr82 6 unmatched https://manual.mikrotik.com/hardware/tg-lr82 tg-lr92 module IoT products tg_lr92 6 unmatched https://manual.mikrotik.com/hardware/tg-lr92 wap-lr9-kit device IoT products wap_lr9_kit 33 unmatched https://manual.mikrotik.com/hardware/wap-lr9-kit RB912R-2nD-LTm RBwAPR-2nD @@ -85,128 +85,128 @@ wap-ac-kit-series series-or-doc LTE products 0 yes unmatched https://manual.mik wap-kit-series series-or-doc LTE products 0 yes unmatched https://manual.mikrotik.com/hardware/wap-kit-series wap-r-ac device LTE products wap_r_ac 41 unmatched https://manual.mikrotik.com/hardware/wap-r-ac quick-guide-5ghz-routerboard-ax-series series-or-doc Quick Guides yes unmatched https://manual.mikrotik.com/hardware/quick-guide-5ghz-routerboard-ax-series L11UG-5HaxD -quick-guide-atl-lte18-kit device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-atl-lte18-kit ATLGM EG18-EA +quick-guide-atl-lte18-kit series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-atl-lte18-kit ATLGM EG18-EA quick-guide-audience-series series-or-doc Quick Guides yes unmatched https://manual.mikrotik.com/hardware/quick-guide-audience-series -quick-guide-cap-ax device Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-cap-ax cAPGi-5HaxD2HaxD -quick-guide-cap-xl-ac device Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-cap-xl-ac RBcAPGi-5acD2nD -quick-guide-ccr2004-16g-2s-plus device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-ccr2004-16g-2s-plus -quick-guide-ccr2004-16g-2s-plus-pc device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-ccr2004-16g-2s-plus-pc CCR2004-16G-2S+PC -quick-guide-ccr2004-1g-12s-plus-2xs device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-ccr2004-1g-12s-plus-2xs CCR2004-1G-12S+2XS -quick-guide-ccr2004-1g-2xs-pcie device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-ccr2004-1g-2xs-pcie CCR2004-1G-2XS-PCIe -quick-guide-ccr2116-12g-4s-plus device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-ccr2116-12g-4s-plus CCR2116-12G-4S+ -quick-guide-ccr2216-1g-12xs-2xq device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-ccr2216-1g-12xs-2xq CCR2216-1G-12XS-2XQ -quick-guide-chateau-5g device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-chateau-5g D53G-5HacD2HnD-TC -quick-guide-chateau-5g-ax device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-chateau-5g-ax -quick-guide-chateau-5g-r16 device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-chateau-5g-r16 RG520F-EU D53G-5HacD2HnD-TC -quick-guide-chateau-lte18-ax device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-chateau-lte18-ax EG18-EA S53UG+5HaxD2HaxD-TC -quick-guide-chateau-lte6-ax device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-chateau-lte6-ax S53UG+5HaxD2HaxD-TC -quick-guide-chateau-lte6-us-us-version device Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-chateau-lte6-us-us-version D53G-5HacD2HnD-TC EG06-A -quick-guide-crs106-1c-5s device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-crs106-1c-5s CRS106-1C-5S -quick-guide-crs112-8p-4s-in device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-crs112-8p-4s-in CRS112-8P-4S-IN -quick-guide-crs305-1g-4s-plus-out device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-crs305-1g-4s-plus-out -quick-guide-crs310-1g-5s-4s-plus-in device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-crs310-1g-5s-4s-plus-in CRS310-1G-5S-4S+IN -quick-guide-crs310-8g-plus-2s-plus-in device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-crs310-8g-plus-2s-plus-in CRS310-8G+2S+IN -quick-guide-crs312-4c-plus-8xg-rm device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-crs312-4c-plus-8xg-rm CRS312-4C+8XG-RM -quick-guide-crs318-16p-2s-plus-out device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-crs318-16p-2s-plus-out CRS318-1Fi-15Fr-2S-OUT CRS318-16P-2S+OUT -quick-guide-crs320-8p-8b-4s-plus-rm device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-crs320-8p-8b-4s-plus-rm CRS320-8P-8B-4S+RM -quick-guide-crs326-24s-plus-2q-plus-rm device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-crs326-24s-plus-2q-plus-rm CRS326-24S+2Q+RM -quick-guide-crs354-48g-4s-plus-2q-plus device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-crs354-48g-4s-plus-2q-plus CRS354-48G-4S+2Q+RM -quick-guide-crs504-4xq-in device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-crs504-4xq-in CRS504-4XQ-IN -quick-guide-crs504-4xq-out device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-crs504-4xq-out CRS504-4XQ-OUT -quick-guide-crs510-8xs-2xq-in device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-crs510-8xs-2xq-in CRS510-8XS-2XQ-IN -quick-guide-crs518-16xs-2xq-rm device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-crs518-16xs-2xq-rm CRS518-16XS-2XQ-RM -quick-guide-css610-1gi-7r-2s-plus-out device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-css610-1gi-7r-2s-plus-out CSS610-1Gi-7R-2S+OUT -quick-guide-css610-8g-2s-plus-in device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-css610-8g-2s-plus-in CSS610-8G-2S+IN -quick-guide-css610-8p-2s-plus-in device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-css610-8p-2s-plus-in CSS610-8P-2S+IN -quick-guide-css610-8p-2s-plus-out device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-css610-8p-2s-plus-out CSS610-8P-2S+OUT +quick-guide-cap-ax series-or-doc Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-cap-ax cAPGi-5HaxD2HaxD +quick-guide-cap-xl-ac series-or-doc Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-cap-xl-ac RBcAPGi-5acD2nD +quick-guide-ccr2004-16g-2s-plus series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-ccr2004-16g-2s-plus +quick-guide-ccr2004-16g-2s-plus-pc series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-ccr2004-16g-2s-plus-pc CCR2004-16G-2S+PC +quick-guide-ccr2004-1g-12s-plus-2xs series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-ccr2004-1g-12s-plus-2xs CCR2004-1G-12S+2XS +quick-guide-ccr2004-1g-2xs-pcie series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-ccr2004-1g-2xs-pcie CCR2004-1G-2XS-PCIe +quick-guide-ccr2116-12g-4s-plus series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-ccr2116-12g-4s-plus CCR2116-12G-4S+ +quick-guide-ccr2216-1g-12xs-2xq series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-ccr2216-1g-12xs-2xq CCR2216-1G-12XS-2XQ +quick-guide-chateau-5g series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-chateau-5g D53G-5HacD2HnD-TC +quick-guide-chateau-5g-ax series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-chateau-5g-ax +quick-guide-chateau-5g-r16 series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-chateau-5g-r16 RG520F-EU D53G-5HacD2HnD-TC +quick-guide-chateau-lte18-ax series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-chateau-lte18-ax EG18-EA S53UG+5HaxD2HaxD-TC +quick-guide-chateau-lte6-ax series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-chateau-lte6-ax S53UG+5HaxD2HaxD-TC +quick-guide-chateau-lte6-us-us-version series-or-doc Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-chateau-lte6-us-us-version D53G-5HacD2HnD-TC EG06-A +quick-guide-crs106-1c-5s series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-crs106-1c-5s CRS106-1C-5S +quick-guide-crs112-8p-4s-in series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-crs112-8p-4s-in CRS112-8P-4S-IN +quick-guide-crs305-1g-4s-plus-out series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-crs305-1g-4s-plus-out +quick-guide-crs310-1g-5s-4s-plus-in series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-crs310-1g-5s-4s-plus-in CRS310-1G-5S-4S+IN +quick-guide-crs310-8g-plus-2s-plus-in series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-crs310-8g-plus-2s-plus-in CRS310-8G+2S+IN +quick-guide-crs312-4c-plus-8xg-rm series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-crs312-4c-plus-8xg-rm CRS312-4C+8XG-RM +quick-guide-crs318-16p-2s-plus-out series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-crs318-16p-2s-plus-out CRS318-1Fi-15Fr-2S-OUT CRS318-16P-2S+OUT +quick-guide-crs320-8p-8b-4s-plus-rm series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-crs320-8p-8b-4s-plus-rm CRS320-8P-8B-4S+RM +quick-guide-crs326-24s-plus-2q-plus-rm series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-crs326-24s-plus-2q-plus-rm CRS326-24S+2Q+RM +quick-guide-crs354-48g-4s-plus-2q-plus series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-crs354-48g-4s-plus-2q-plus CRS354-48G-4S+2Q+RM +quick-guide-crs504-4xq-in series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-crs504-4xq-in CRS504-4XQ-IN +quick-guide-crs504-4xq-out series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-crs504-4xq-out CRS504-4XQ-OUT +quick-guide-crs510-8xs-2xq-in series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-crs510-8xs-2xq-in CRS510-8XS-2XQ-IN +quick-guide-crs518-16xs-2xq-rm series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-crs518-16xs-2xq-rm CRS518-16XS-2XQ-RM +quick-guide-css610-1gi-7r-2s-plus-out series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-css610-1gi-7r-2s-plus-out CSS610-1Gi-7R-2S+OUT +quick-guide-css610-8g-2s-plus-in series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-css610-8g-2s-plus-in CSS610-8G-2S+IN +quick-guide-css610-8p-2s-plus-in series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-css610-8p-2s-plus-in CSS610-8P-2S+IN +quick-guide-css610-8p-2s-plus-out series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-css610-8p-2s-plus-out CSS610-8P-2S+OUT quick-guide-cube-60g-series series-or-doc Quick Guides yes no-product-link https://manual.mikrotik.com/hardware/quick-guide-cube-60g-series quick-guide-cube-60pro-series series-or-doc Quick Guides yes no-product-link https://manual.mikrotik.com/hardware/quick-guide-cube-60pro-series CubeG-5ac60ay CubeG-5ac60aypair -quick-guide-ftc11xg device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-ftc11xg FTC11XG -quick-guide-ftc21 device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-ftc21 -quick-guide-ftc21-ups device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-ftc21-ups FTC21-ups -quick-guide-g1-b device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g1-b CRS317-1G-16S+RM CRS328-4C-20S-4S+RM CRS328-24P-4S+RM CRS354-48P-4S+2Q+RM -quick-guide-g1-c device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g1-c RB750UPr2 +quick-guide-ftc11xg series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-ftc11xg FTC11XG +quick-guide-ftc21 series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-ftc21 +quick-guide-ftc21-ups series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-ftc21-ups FTC21-ups +quick-guide-g1-b series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g1-b CRS317-1G-16S+RM CRS328-4C-20S-4S+RM CRS328-24P-4S+RM CRS354-48P-4S+2Q+RM +quick-guide-g1-c series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g1-c RB750UPr2 quick-guide-g1-crs-series series-or-doc Quick Guides yes no-product-link https://manual.mikrotik.com/hardware/quick-guide-g1-crs-series CRS305-1G-4S+IN CRS309-1G-8S+IN CRS326-24G-2S+RM quick-guide-g1-css106-series series-or-doc Quick Guides yes no-product-link https://manual.mikrotik.com/hardware/quick-guide-g1-css106-series CSS106-5G-1S CSS106-1G-4P-1S -quick-guide-g1-d device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g1-d RB750Gr3 RB750r2 RB960PGS RB760iGS RB450Gx4 RB4011iGS+RM +quick-guide-g1-d series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g1-d RB750Gr3 RB750r2 RB960PGS RB760iGS RB450Gx4 RB4011iGS+RM quick-guide-g1-m-series series-or-doc Quick Guides yes no-product-link https://manual.mikrotik.com/hardware/quick-guide-g1-m-series RBM33G -quick-guide-g10a device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g10a RB911G-5HPnD-QRT RB911G-5HPnD -quick-guide-g10b device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g10b RBOmniTikPG-5HacD -quick-guide-g11 device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g11 -quick-guide-g12-a device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g12-a RBcAP2nD RBcAPL-2nD RB951Ui-2nD RBmAP2nD RB951Ui-2HnD -quick-guide-g12-b device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g12-b RB941-2nD RB941-2nD-TC -quick-guide-g14-a-hap-ac-lte6 device Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-g14-a-hap-ac-lte6 -quick-guide-g14-b-chateau-lte12 device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g14-b-chateau-lte12 EG12-EA -quick-guide-g15 device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g15 RB912R-2nD-LTm RBwAPR-2nD +quick-guide-g10a series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g10a RB911G-5HPnD-QRT RB911G-5HPnD +quick-guide-g10b series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g10b RBOmniTikPG-5HacD +quick-guide-g11 series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g11 +quick-guide-g12-a series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g12-a RBcAP2nD RBcAPL-2nD RB951Ui-2nD RBmAP2nD RB951Ui-2HnD +quick-guide-g12-b series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g12-b RB941-2nD RB941-2nD-TC +quick-guide-g14-a-hap-ac-lte6 series-or-doc Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-g14-a-hap-ac-lte6 +quick-guide-g14-b-chateau-lte12 series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g14-b-chateau-lte12 EG12-EA +quick-guide-g15 series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g15 RB912R-2nD-LTm RBwAPR-2nD quick-guide-g16-a-lhgr-kit-series series-or-doc Quick Guides yes unmatched https://manual.mikrotik.com/hardware/quick-guide-g16-a-lhgr-kit-series quick-guide-g16-b-sxtr-kit-series series-or-doc Quick Guides yes unmatched https://manual.mikrotik.com/hardware/quick-guide-g16-b-sxtr-kit-series SXTR -quick-guide-g17-a-wap-lr8-kit device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g17-a-wap-lr8-kit RBwAPR-2nD -quick-guide-g17-b-wap-lr9-kit device Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-g17-b-wap-lr9-kit RBwAPR-2nD -quick-guide-g19-b-lr-mini-pcie-card device Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-g19-b-lr-mini-pcie-card -quick-guide-g19-c-5ghz-mini-pcie-card device Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-g19-c-5ghz-mini-pcie-card -quick-guide-g19-d-2-4-ghz-mini-pcie device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g19-d-2-4-ghz-mini-pcie -quick-guide-g19-lte-mini-pcie-card device Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-g19-lte-mini-pcie-card -quick-guide-g2 device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g2 SXTR +quick-guide-g17-a-wap-lr8-kit series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g17-a-wap-lr8-kit RBwAPR-2nD +quick-guide-g17-b-wap-lr9-kit series-or-doc Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-g17-b-wap-lr9-kit RBwAPR-2nD +quick-guide-g19-b-lr-mini-pcie-card series-or-doc Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-g19-b-lr-mini-pcie-card +quick-guide-g19-c-5ghz-mini-pcie-card series-or-doc Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-g19-c-5ghz-mini-pcie-card +quick-guide-g19-d-2-4-ghz-mini-pcie series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g19-d-2-4-ghz-mini-pcie +quick-guide-g19-lte-mini-pcie-card series-or-doc Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-g19-lte-mini-pcie-card +quick-guide-g2 series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g2 SXTR quick-guide-g20-5ghz-routerboard-series series-or-doc Quick Guides yes no-product-link https://manual.mikrotik.com/hardware/quick-guide-g20-5ghz-routerboard-series RB911G-5HPnD RB912UAG-5HPnD RB922UAGS-5HPacD -quick-guide-g3 device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g3 RBLDF-5nD RBLHG-5nD RBLHG-5HPnD-XL SXTsq RBSXTsq5nD -quick-guide-g4 device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g4 SXTsq RBSXTsq2nD -quick-guide-g5 device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g5 RBGrooveGA-52HPacn RBMetalG-52SHPacn -quick-guide-g6 device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g6 RB912UAG-5HPnD-OUT RB922UAGS-5HPacD-NM RB912UAG-5HPnD RB922UAGS-5HPacD -quick-guide-g7-basebox-2 device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g7-basebox-2 RB912UAG-2HPnD -quick-guide-g8-a-cube-lite60 device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g8-a-cube-lite60 +quick-guide-g3 series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g3 RBLDF-5nD RBLHG-5nD RBLHG-5HPnD-XL SXTsq RBSXTsq5nD +quick-guide-g4 series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g4 SXTsq RBSXTsq2nD +quick-guide-g5 series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g5 RBGrooveGA-52HPacn RBMetalG-52SHPacn +quick-guide-g6 series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g6 RB912UAG-5HPnD-OUT RB922UAGS-5HPacD-NM RB912UAG-5HPnD RB922UAGS-5HPacD +quick-guide-g7-basebox-2 series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g7-basebox-2 RB912UAG-2HPnD +quick-guide-g8-a-cube-lite60 series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g8-a-cube-lite60 quick-guide-g8-b-wap-60g-series series-or-doc Quick Guides yes unmatched https://manual.mikrotik.com/hardware/quick-guide-g8-b-wap-60g-series quick-guide-g8-c-lhg-60g-series series-or-doc Quick Guides yes no-product-link https://manual.mikrotik.com/hardware/quick-guide-g8-c-lhg-60g-series -quick-guide-g9-a device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g9-a -quick-guide-g9-b device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g9-b RBcAPGi-5acD2nD RB952Ui-5ac2nD RB952Ui-5ac2nD-TC -quick-guide-gpen21 device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-gpen21 GPEN21 -quick-guide-groovea-52 device Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-groovea-52 -quick-guide-hap-ac device Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-hap-ac RB962UiGS-5HacT2HnT -quick-guide-hap-ac-3 device Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-hap-ac-3 RBD53iG-5HacD2HnD -quick-guide-hap-ax device Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-hap-ax C52iG-5HaxD2HaxD-TC -quick-guide-hap-ax-3 device Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-hap-ax-3 C53UiG+5HPaxD2HPaxD -quick-guide-hap-ax-lite device Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-hap-ax-lite L41G-2axD -quick-guide-hap-ax-lite-lte6 device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-hap-ax-lite-lte6 L41G-2axD -quick-guide-hex device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-hex E50UG -quick-guide-knot-lr8-kit device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-knot-lr8-kit RB924iR-2nD-BT5 -quick-guide-knot-lr9-kit device Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-knot-lr9-kit RB924iR-2nD-BT5 -quick-guide-knot-r5 device Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-knot-r5 RB924i-2nD-BT5 -quick-guide-l009uigs-2haxd-in device Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-l009uigs-2haxd-in L009UiGS-2HaxD-IN -quick-guide-l009uigs-rm device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-l009uigs-rm L009UiGS-RM -quick-guide-l23ugsr-5haxd2haxd device Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-l23ugsr-5haxd2haxd L23UGSR-5HaxD2HaxD -quick-guide-ldf-lte6-kit device Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-ldf-lte6-kit -quick-guide-lhgg-lte6-kit device Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-lhgg-lte6-kit -quick-guide-lhggm-and-eg18-ea device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-lhggm-and-eg18-ea EG18-EA LHGGM -quick-guide-ltap-lr8-lte-kit device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-ltap-lr8-lte-kit -quick-guide-ltap-lr8-lte6-kit device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-ltap-lr8-lte6-kit LtAP-2HnD -quick-guide-ltap-lr9-lte-kit device Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-ltap-lr9-lte-kit +quick-guide-g9-a series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g9-a +quick-guide-g9-b series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-g9-b RBcAPGi-5acD2nD RB952Ui-5ac2nD RB952Ui-5ac2nD-TC +quick-guide-gpen21 series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-gpen21 GPEN21 +quick-guide-groovea-52 series-or-doc Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-groovea-52 +quick-guide-hap-ac series-or-doc Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-hap-ac RB962UiGS-5HacT2HnT +quick-guide-hap-ac-3 series-or-doc Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-hap-ac-3 RBD53iG-5HacD2HnD +quick-guide-hap-ax series-or-doc Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-hap-ax C52iG-5HaxD2HaxD-TC +quick-guide-hap-ax-3 series-or-doc Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-hap-ax-3 C53UiG+5HPaxD2HPaxD +quick-guide-hap-ax-lite series-or-doc Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-hap-ax-lite L41G-2axD +quick-guide-hap-ax-lite-lte6 series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-hap-ax-lite-lte6 L41G-2axD +quick-guide-hex series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-hex E50UG +quick-guide-knot-lr8-kit series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-knot-lr8-kit RB924iR-2nD-BT5 +quick-guide-knot-lr9-kit series-or-doc Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-knot-lr9-kit RB924iR-2nD-BT5 +quick-guide-knot-r5 series-or-doc Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-knot-r5 RB924i-2nD-BT5 +quick-guide-l009uigs-2haxd-in series-or-doc Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-l009uigs-2haxd-in L009UiGS-2HaxD-IN +quick-guide-l009uigs-rm series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-l009uigs-rm L009UiGS-RM +quick-guide-l23ugsr-5haxd2haxd series-or-doc Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-l23ugsr-5haxd2haxd L23UGSR-5HaxD2HaxD +quick-guide-ldf-lte6-kit series-or-doc Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-ldf-lte6-kit +quick-guide-lhgg-lte6-kit series-or-doc Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-lhgg-lte6-kit +quick-guide-lhggm-and-eg18-ea series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-lhggm-and-eg18-ea EG18-EA LHGGM +quick-guide-ltap-lr8-lte-kit series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-ltap-lr8-lte-kit +quick-guide-ltap-lr8-lte6-kit series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-ltap-lr8-lte6-kit LtAP-2HnD +quick-guide-ltap-lr9-lte-kit series-or-doc Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-ltap-lr9-lte-kit quick-guide-ltap-series series-or-doc Quick Guides yes unmatched https://manual.mikrotik.com/hardware/quick-guide-ltap-series -quick-guide-mantbox-2-12s device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-mantbox-2-12s +quick-guide-mantbox-2-12s series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-mantbox-2-12s quick-guide-mantbox-5-series series-or-doc Quick Guides yes no-product-link https://manual.mikrotik.com/hardware/quick-guide-mantbox-5-series -quick-guide-mantbox-52-15s device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-mantbox-52-15s -quick-guide-netbox-5 device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-netbox-5 -quick-guide-netfiber-9 device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-netfiber-9 CRS310-1G-5S-4S+OUT +quick-guide-mantbox-52-15s series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-mantbox-52-15s +quick-guide-netbox-5 series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-netbox-5 +quick-guide-netfiber-9 series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-netfiber-9 CRS310-1G-5S-4S+OUT quick-guide-netmetal-5-series series-or-doc Quick Guides yes no-product-link https://manual.mikrotik.com/hardware/quick-guide-netmetal-5-series RB922UAGS-5HPacD-NM RB922UAGS-5HPacD -quick-guide-netmetal-ac device Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-netmetal-ac +quick-guide-netmetal-ac series-or-doc Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-netmetal-ac quick-guide-nray-series series-or-doc Quick Guides yes no-product-link https://manual.mikrotik.com/hardware/quick-guide-nray-series quick-guide-pwr-line-ap-series series-or-doc Quick Guides yes no-product-link https://manual.mikrotik.com/hardware/quick-guide-pwr-line-ap-series -quick-guide-r11e-lr2 device Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-r11e-lr2 R11e-LR2 -quick-guide-r11el-ec200a-eu device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-r11el-ec200a-eu -quick-guide-r11el-fg621-ea device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-r11el-fg621-ea -quick-guide-rb4011igs-plus-5hacq2hnd-in device Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-rb4011igs-plus-5hacq2hnd-in RB4011iGS+5HacQ2HnD-IN -quick-guide-rb5009ug-plus-s-plus-in device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-rb5009ug-plus-s-plus-in RB5009UG+S+IN -quick-guide-rb5009upr-plus-s-plus-in device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-rb5009upr-plus-s-plus-in RB5009UPr+S+IN -quick-guide-rb5009upr-plus-s-plus-out device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-rb5009upr-plus-s-plus-out RB5009UPr+S+OUT -quick-guide-rb912uag-2hpnd device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-rb912uag-2hpnd RB912UAG-2HPnD -quick-guide-rb960pgs-pb-powerbox-pro device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-rb960pgs-pb-powerbox-pro RB960PGS RB960PGS-PB -quick-guide-rbftc11 device Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-rbftc11 -quick-guide-rbmapl-2nd device Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-rbmapl-2nd RBmAPL-2nD -quick-guide-sxt-lte6-kit-us device Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-sxt-lte6-kit-us SXTR -quick-guide-tg-bt5-in device Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-tg-bt5-in -quick-guide-tg-bt5-out device Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-tg-bt5-out +quick-guide-r11e-lr2 series-or-doc Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-r11e-lr2 R11e-LR2 +quick-guide-r11el-ec200a-eu series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-r11el-ec200a-eu +quick-guide-r11el-fg621-ea series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-r11el-fg621-ea +quick-guide-rb4011igs-plus-5hacq2hnd-in series-or-doc Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-rb4011igs-plus-5hacq2hnd-in RB4011iGS+5HacQ2HnD-IN +quick-guide-rb5009ug-plus-s-plus-in series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-rb5009ug-plus-s-plus-in RB5009UG+S+IN +quick-guide-rb5009upr-plus-s-plus-in series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-rb5009upr-plus-s-plus-in RB5009UPr+S+IN +quick-guide-rb5009upr-plus-s-plus-out series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-rb5009upr-plus-s-plus-out RB5009UPr+S+OUT +quick-guide-rb912uag-2hpnd series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-rb912uag-2hpnd RB912UAG-2HPnD +quick-guide-rb960pgs-pb-powerbox-pro series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-rb960pgs-pb-powerbox-pro RB960PGS RB960PGS-PB +quick-guide-rbftc11 series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/quick-guide-rbftc11 +quick-guide-rbmapl-2nd series-or-doc Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-rbmapl-2nd RBmAPL-2nD +quick-guide-sxt-lte6-kit-us series-or-doc Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-sxt-lte6-kit-us SXTR +quick-guide-tg-bt5-in series-or-doc Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-tg-bt5-in +quick-guide-tg-bt5-out series-or-doc Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-tg-bt5-out quick-guide-wap-ac-series series-or-doc Quick Guides yes unmatched https://manual.mikrotik.com/hardware/quick-guide-wap-ac-series -quick-guide-wap-lr2-kit device Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-wap-lr2-kit RBwAPR-2nD R11e-LR2 +quick-guide-wap-lr2-kit series-or-doc Quick Guides unmatched https://manual.mikrotik.com/hardware/quick-guide-wap-lr2-kit RBwAPR-2nD R11e-LR2 quick-guide-wap-r-ac-series series-or-doc Quick Guides yes unmatched https://manual.mikrotik.com/hardware/quick-guide-wap-r-ac-series -safety-regulatory-information-chateau device Quick Guides no-product-link https://manual.mikrotik.com/hardware/safety-regulatory-information-chateau D53G-5HacD2HnD-TC +safety-regulatory-information-chateau series-or-doc Quick Guides no-product-link https://manual.mikrotik.com/hardware/safety-regulatory-information-chateau D53G-5HacD2HnD-TC rbm11g device RouterBOARD m11g 25 unmatched https://manual.mikrotik.com/hardware/rbm11g crs-series series-or-doc Switches 0 yes no-product-link https://manual.mikrotik.com/hardware/crs-series crs112-8g-4s-in device Switches CRS112-8G-4S-IN 28 unmatched https://manual.mikrotik.com/hardware/crs112-8g-4s-in diff --git a/project-words.txt b/project-words.txt index b7b82a0..05be0f8 100644 --- a/project-words.txt +++ b/project-words.txt @@ -137,6 +137,7 @@ eoip eoipv eperm esac +esi esim essid etherboot @@ -246,6 +247,7 @@ mbim mbps mcp mdlint +meshpoint mfc mib mikro diff --git a/src/assess-hardware.test.ts b/src/assess-hardware.test.ts index 0267456..3b52268 100644 --- a/src/assess-hardware.test.ts +++ b/src/assess-hardware.test.ts @@ -9,17 +9,18 @@ */ import { describe, expect, test } from "bun:test"; import { + type Classification, canon, canonForms, canonNoRev, classify, computeSharedSubCodes, isBogusProductToken, - isDocumentOnlyPage, isHardwarePageSlug, type MatrixRow, type PageInfo, parsePage, + resolveCrossPageClaims, suppressLinkOnlyClaims, } from "./assess-hardware.ts"; @@ -254,14 +255,43 @@ describe("sitemap scope: hardware page slugs", () => { }); }); -describe("document-only /hardware pages", () => { - test("Quick Guides category and manual/guide titles are documents", () => { - expect(isDocumentOnlyPage({ category: "Quick Guides", title: "Quick Guide - cAP ax" })).toBe(true); - expect(isDocumentOnlyPage({ category: "Quick Guides", title: "Safety and regulatory information - Chateau" })).toBe(true); - expect(isDocumentOnlyPage({ category: "IoT products", title: "TG-LR82 / TG-LR92 User Manual" })).toBe(true); +describe("resolveCrossPageClaims: document pages", () => { + const mkClassification = (over: Partial & { slug: string }): Classification => ({ + cause: "unmatched", + matchedMatrixNames: [], + tableOnlyNames: [], + linkOnlyNames: [], + ownNames: [], + ...over, }); - test("device pages are not", () => { - expect(isDocumentOnlyPage({ category: "IoT products", title: "TG-LR82" })).toBe(false); - expect(isDocumentOnlyPage({ category: null, title: "LtAP LTE12 ax" })).toBe(false); + + test("a Quick Guide's code claim does not suppress the device page's table claim", () => { + // The device page lists its own model only in its regulatory table (a table-only claim); + // the quick guide links the product by code. Without the document rule, the guide's + // stronger claim would strip the device page's claim and orphan the row. + const pages = [ + { category: "IoT products", title: "TG-LR82" }, + { category: "Quick Guides", title: "Quick Guide - TG-LR82" }, + ]; + const device = mkClassification({ slug: "tg-lr82", cause: "matched-by-table", matchedMatrixNames: ["TG-LR82"], tableOnlyNames: ["TG-LR82"] }); + const guide = mkClassification({ slug: "quick-guide-tg-lr82", cause: "matched-by-code", matchedMatrixNames: ["TG-LR82"] }); + resolveCrossPageClaims(pages, [device, guide]); + expect(device.matchedMatrixNames).toEqual(["TG-LR82"]); + expect(device.cause).toBe("matched-by-table"); + expect(guide.matchedMatrixNames).toEqual([]); + expect(guide.cause).toBe("unmatched"); + }); + + test("a device page's code claim still suppresses another page's table-only claim", () => { + const pages = [ + { category: "LTE products", title: "Chateau LTE7" }, + { category: "LTE products", title: "Chateau LTE6 US" }, + ]; + const owner = mkClassification({ slug: "chateau-lte7", cause: "matched-by-code", matchedMatrixNames: ["Chateau LTE7"] }); + const lister = mkClassification({ slug: "chateau-lte6-us", cause: "matched-by-table", matchedMatrixNames: ["Chateau LTE7"], tableOnlyNames: ["Chateau LTE7"] }); + resolveCrossPageClaims(pages, [owner, lister]); + expect(owner.matchedMatrixNames).toEqual(["Chateau LTE7"]); + expect(lister.matchedMatrixNames).toEqual([]); + expect(lister.cause).toBe("unmatched"); }); }); diff --git a/src/assess-hardware.ts b/src/assess-hardware.ts index ecff6d2..c938403 100644 --- a/src/assess-hardware.ts +++ b/src/assess-hardware.ts @@ -30,6 +30,7 @@ import { existsSync, mkdirSync, readdirSync, readFileSync, writeFileSync } from import { resolve } from "node:path"; import { parseHTML } from "linkedom"; import { pruneCache } from "./cache-prune.ts"; +import { isDocumentOnlyPage } from "./hardware-kind.ts"; import { MATRIX_CSV_RELATIVE_PATH } from "./paths.ts"; import { loadSitemapUrls } from "./rosetta-id.ts"; @@ -486,26 +487,6 @@ export function computeSharedSubCodes(matrixRows: MatrixRow[]): Set { type MatchCause = "matched-by-code" | "matched-by-table" | "matched-by-slug" | "no-product-link" | "unmatched"; -/** - * /hardware sidebar categories that hold documents about devices, not devices. MikroTik added - * "Quick Guides" in Nov 2026: one quick-start page per product that already has its own - * /hardware page. - */ -export const DOC_ONLY_HARDWARE_CATEGORIES: ReadonlySet = new Set(["Quick Guides"]); - -/** Titles of a document filed under a device category ("TG-LR82 / TG-LR92 User Manual"). */ -const DOC_TITLE_RE = /\b(?:user manual|setup guide|quick guide)\b/i; - -/** - * Whether a /hardware page documents devices rather than being one. Such a page never claims a - * matrix row here (so it cannot suppress a device page's table claim) and never becomes a - * hardware_catalog row (extract-hardware-catalog), because its model codes would compete with - * the real devices' aliases. - */ -export function isDocumentOnlyPage(page: { category: string | null; title: string }): boolean { - return (page.category !== null && DOC_ONLY_HARDWARE_CATEGORIES.has(page.category)) || DOC_TITLE_RE.test(page.title); -} - export interface Classification { slug: string; cause: MatchCause; @@ -658,6 +639,53 @@ export function isHardwarePageSlug(slug: string): boolean { return slug !== "" && slug !== "tags" && !slug.includes("/"); } +/** + * Settle claims that depend on other pages, in place (classifications[i] belongs to pages[i]): + * + * 1. A document page (isDocumentOnlyPage: Quick Guides, user manuals) names the devices it + * covers; it must not claim, or out-claim, any of them, so all its claims are dropped first. + * 2. Cross-page table suppression: a regulatory-table Model column enumerates every device a + * declaration COVERS, not the page's own subject, so `chateau-lte6-us`'s table lists LTE7, + * LTE12, … and would bind them all to that one page. A page's table-only claim on a row is + * dropped when some *other* page claims that row more strongly (by code or own slug). + * Confirmed via the human review flagging "Chateau LTE7 WRONG … falls back to lte6-us". + * + * Step 1 runs first so a guide's code link can never suppress a device page's table claim. + */ +export function resolveCrossPageClaims( + pages: ReadonlyArray<{ category: string | null; title: string }>, + classifications: Classification[], +): void { + classifications.forEach((c, i) => { + const page = pages[i]; + if (!page || !isDocumentOnlyPage(page)) return; + c.matchedMatrixNames = []; + c.tableOnlyNames = []; + c.linkOnlyNames = []; + c.ownNames = []; + if (c.cause !== "no-product-link") c.cause = "unmatched"; + }); + + const stronglyClaimed = new Set(); + for (const c of classifications) { + for (const name of c.matchedMatrixNames) { + if (!c.tableOnlyNames.includes(name)) stronglyClaimed.add(name); + } + } + for (const c of classifications) { + if (c.tableOnlyNames.length === 0) continue; + c.matchedMatrixNames = c.matchedMatrixNames.filter( + (name) => !(c.tableOnlyNames.includes(name) && stronglyClaimed.has(name)), + ); + // Suppression can empty a page whose only claim was table-only; its "matched-by-table" + // cause is then stale (a matched-by-table with zero names). Downgrade to unmatched so the + // cause always reflects the surviving matches (PR #37 review, assess-hardware.ts:567). + if (c.matchedMatrixNames.length === 0 && c.cause === "matched-by-table") { + c.cause = "unmatched"; + } + } +} + // ── Main ── async function main() { @@ -725,42 +753,8 @@ async function main() { console.log(`Matrix rows loaded: ${matrixRows.length} (from ${MATRIX_CSV})`); const sharedSubCodes = computeSharedSubCodes(matrixRows); - const classifications = pages.map((p) => { - const c = classify(p, matrixRows, sharedSubCodes); - if (isDocumentOnlyPage(p)) { - // A document names the devices it covers; it must not claim (or out-claim) any of them. - c.matchedMatrixNames = []; - c.tableOnlyNames = []; - c.linkOnlyNames = []; - c.ownNames = []; - if (c.cause !== "no-product-link") c.cause = "unmatched"; - } - return c; - }); - - // Cross-page table-suppression: a regulatory-table Model column enumerates every device a - // declaration COVERS, not the page's own subject — so `chateau-lte6-us`'s table lists LTE7, - // LTE12, … and would bind them all to that one page. Drop a page's table-only claim on any - // row that some *other* page claims more strongly (by code or own slug). Confirmed via the - // human review flagging "Chateau LTE7 WRONG … falls back to lte6-us". - const stronglyClaimed = new Set(); - for (const c of classifications) { - for (const name of c.matchedMatrixNames) { - if (!c.tableOnlyNames.includes(name)) stronglyClaimed.add(name); - } - } - for (const c of classifications) { - if (c.tableOnlyNames.length === 0) continue; - c.matchedMatrixNames = c.matchedMatrixNames.filter( - (name) => !(c.tableOnlyNames.includes(name) && stronglyClaimed.has(name)), - ); - // Suppression can empty a page whose only claim was table-only; its "matched-by-table" - // cause is then stale (a matched-by-table with zero names). Downgrade to unmatched so the - // cause always reflects the surviving matches (PR #37 review, assess-hardware.ts:567). - if (c.matchedMatrixNames.length === 0 && c.cause === "matched-by-table") { - c.cause = "unmatched"; - } - } + const classifications = pages.map((p) => classify(p, matrixRows, sharedSubCodes)); + resolveCrossPageClaims(pages, classifications); suppressLinkOnlyClaims(classifications); diff --git a/src/build-device-map.ts b/src/build-device-map.ts index 52ff54d..7143bab 100644 --- a/src/build-device-map.ts +++ b/src/build-device-map.ts @@ -267,7 +267,7 @@ const unmatchedRows = hwPages const www = wwwStatusBySlug.get(p.slug); return [ p.slug, - classifyHardwareKind(p.slug, p.category, p.isSeries), + classifyHardwareKind(p.slug, p.category, p.isSeries, p.title), p.category ?? "", www?.wwwCode ?? "", www ? String(www.wwwSpecs) : "", diff --git a/src/extract-hardware-catalog.ts b/src/extract-hardware-catalog.ts index 4490f39..0334330 100644 --- a/src/extract-hardware-catalog.ts +++ b/src/extract-hardware-catalog.ts @@ -54,9 +54,10 @@ import { existsSync, readFileSync, writeFileSync } from "node:fs"; import { resolve } from "node:path"; -import { canon, isDocumentOnlyPage, loadMatrixRows, type MatrixRow, normCode, slugify } from "./assess-hardware.ts"; +import { canon, loadMatrixRows, type MatrixRow, normCode, slugify } from "./assess-hardware.ts"; import { db, initDb, setDbMeta } from "./db.ts"; import { exceptionWwwCodeForDevice } from "./device-exceptions.ts"; +import { isDocumentOnlyPage } from "./hardware-kind.ts"; import { curatedWwwCodeForSlug, curatedWwwRows } from "./hardware-www-map.ts"; import { MATRIX_CSV_RELATIVE_PATH } from "./paths.ts"; diff --git a/src/hardware-kind.test.ts b/src/hardware-kind.test.ts index d64e0c4..18f6a19 100644 --- a/src/hardware-kind.test.ts +++ b/src/hardware-kind.test.ts @@ -7,7 +7,7 @@ * briefings/B-0018-product-naming-three-source-map.md. */ import { describe, expect, test } from "bun:test"; -import { classifyHardwareKind } from "./hardware-kind.ts"; +import { classifyHardwareKind, isDocumentOnlyPage } from "./hardware-kind.ts"; describe("classifyHardwareKind", () => { test("off-matrix routers/CPEs are devices", () => { @@ -52,3 +52,20 @@ describe("classifyHardwareKind", () => { expect(classifyHardwareKind("wap-lr9-kit", "IoT products", false)).toBe("device"); }); }); + +describe("document-only /hardware pages", () => { + test("Quick Guides category and manual/guide titles are documents", () => { + expect(isDocumentOnlyPage({ category: "Quick Guides", title: "Quick Guide - cAP ax" })).toBe(true); + expect(isDocumentOnlyPage({ category: "Quick Guides", title: "Safety and regulatory information - Chateau" })).toBe(true); + expect(isDocumentOnlyPage({ category: "IoT products", title: "TG-LR82 / TG-LR92 User Manual" })).toBe(true); + }); + test("device pages are not", () => { + expect(isDocumentOnlyPage({ category: "IoT products", title: "TG-LR82" })).toBe(false); + expect(isDocumentOnlyPage({ category: null, title: "LtAP LTE12 ax" })).toBe(false); + }); + test("documents are audited as series-or-doc, not device or module", () => { + expect(classifyHardwareKind("quick-guide-cap-ax", "Quick Guides", false, "Quick Guide - cAP ax")).toBe("series-or-doc"); + expect(classifyHardwareKind("tg-lr-setup-guide", "IoT products", false, "TG-LR82 / TG-LR92 User Manual")).toBe("series-or-doc"); + expect(classifyHardwareKind("tg-lr82", "IoT products", false, "TG-LR82")).toBe("module"); + }); +}); diff --git a/src/hardware-kind.ts b/src/hardware-kind.ts index 32270a5..054c36d 100644 --- a/src/hardware-kind.ts +++ b/src/hardware-kind.ts @@ -47,20 +47,43 @@ const DOC_SLUGS = new Set(["compliance"]); /** Standalone radio-module SKUs (LoRa/LTE/BT plug-ins), matched on their code prefix. */ const MODULE_SLUG_RE = /^(r11e-(lr|lte)|tg-(lr|bt))/; +/** + * /hardware sidebar categories that hold documents about devices, not devices. MikroTik added + * "Quick Guides" in Nov 2026: one quick-start page per product that already has its own + * /hardware page. + */ +export const DOC_ONLY_HARDWARE_CATEGORIES: ReadonlySet = new Set(["Quick Guides"]); + +/** Titles of a document filed under a device category ("TG-LR82 / TG-LR92 User Manual"). */ +const DOC_TITLE_RE = /\b(?:user manual|setup guide|quick guide)\b/i; + +/** + * Whether a /hardware page documents devices rather than being one. Such a page claims no + * matrix row (assess-hardware resolveCrossPageClaims), never becomes a hardware_catalog row + * (extract-hardware-catalog), and is audited as `series-or-doc`, because its model codes would + * otherwise compete with the real devices'. + */ +export function isDocumentOnlyPage(page: { category: string | null; title: string }): boolean { + return (page.category !== null && DOC_ONLY_HARDWARE_CATEGORIES.has(page.category)) || DOC_TITLE_RE.test(page.title); +} + /** manual.mikrotik.com/hardware categories that are accessories/interfaces, not devices. */ const ACCESSORY_CATEGORIES = new Set(["Accessories", "Antennas", "Interfaces"]); /** * Classify a /hardware page. `slug` is the page slug (last URL segment), `category` its - * declared hardware category (may be null), `isSeries` whether the page is a series/index page. + * declared hardware category (may be null), `isSeries` whether the page is a series/index page, + * `title` its page title (a document page is `series-or-doc`, see isDocumentOnlyPage). */ export function classifyHardwareKind( slug: string, category: string | null, isSeries: boolean, + title = "", ): HardwareKind { if (Object.hasOwn(OVERRIDES, slug)) return OVERRIDES[slug]; if (isSeries || slug.endsWith("-series") || DOC_SLUGS.has(slug)) return "series-or-doc"; + if (isDocumentOnlyPage({ category, title })) return "series-or-doc"; if (MODULE_SLUG_RE.test(slug)) return "module"; if (category && ACCESSORY_CATEGORIES.has(category)) return "accessory"; return "device"; diff --git a/src/release.test.ts b/src/release.test.ts index b4bcbfd..07fe21a 100644 --- a/src/release.test.ts +++ b/src/release.test.ts @@ -537,6 +537,12 @@ describe("release.yml", () => { ); }); + test("a latest-channel release requires full_versions=true", () => { + const src = readText(".github/workflows/release.yml"); + expect(src).toContain("name: Require a full-version build for latest-channel release"); + expect(src).toMatch(/channel\.outputs\.channel \}\}" = "latest" \] && \[ "\$\{\{ inputs\.full_versions \}\}" != "true" \]/); + }); + test("has required inputs", () => { const src = readText(".github/workflows/release.yml"); expect(src).not.toContain("html_url:"); @@ -1354,8 +1360,8 @@ describe("qa.yml", () => { /BLOCK_DIAGRAMS.*-lt 80/, /SECTIONS.*-lt 2500/, /CALLOUTS.*-lt 600/, - /EXPECTED_VERSIONS.*CHANGELOGS.*-lt 4000/, - /-z "\$EXPECTED_VERSIONS".*CHANGELOGS.*-lt 1000/, + /CHANGELOGS.*-lt 4000/, + /CHANGELOGS.*-lt 1000/, /VIDEOS.*-lt 600/, /DUDE_PAGES.*-lt 50/, /SKILLS.*-lt 10/, @@ -1368,6 +1374,25 @@ describe("qa.yml", () => { } }); + test("pins page-level spot checks the corpus-wide table floors are too loose to catch", () => { + const qa = readText(".github/workflows/qa.yml"); + expect(qa).toMatch(/BRIDGE_PROPS.*-lt 100/); + expect(qa).toMatch(/UM_TABLES.*-lt 3/); + expect(qa).toMatch(/MIGRATED_FIELDS.*-lt 3/); + for (const field of ["'user-manager/user' AND f.name = 'shared-users'", "'ip/hotspot/user/profile' AND f.name = 'rate-limit'", "'queue/simple' AND f.name = 'max-limit'"]) { + expect(qa).toContain(field); + } + }); + + test("only a single-version local-build rehearsal gets the lower changelog floor", () => { + const qa = readText(".github/workflows/qa.yml"); + // The release artifact (db_source=artifact) must always meet the 4,000 floor, even if a + // build skipped extract-all-versions and left command_versions_expected unset. + expect(qa).toMatch(/if \[ "\$DB_SOURCE" = "local-build" \] && \[ -z "\$EXPECTED_VERSIONS" \]; then\n\s+if \[ "\$\{CHANGELOGS:-0\}" -lt 1000 \]/); + const step = qa.slice(qa.indexOf("name: Validate DB has expected content (db-content)")); + expect(step.slice(0, step.indexOf("run: |"))).toContain("DB_SOURCE: ${{ inputs.db_source }}"); + }); + test("gates version coverage against the count extract-all-versions stamped (#178)", () => { const qa = readText(".github/workflows/qa.yml"); expect(qa).toContain("key = 'command_versions_expected'"); From 9ad5568f603975ea3c9ea1f272f5c07923616026 Mon Sep 17 00:00:00 2001 From: TIKOCI RouterOS Bots Date: Sat, 28 Nov 2026 13:32:10 -0800 Subject: [PATCH 3/5] Tighten the qa.yml spot checks (#255 review) - Bridging counts only table-linked properties (source_table_row_id IS NOT NULL): bullet-list properties could otherwise hold the count up after the page's tables stop parsing. 158 table-linked today, so the >=100 floor holds. - The CLI-Reference check counts each requested (source_path, name) once, so a duplicated row can't stand in for a missing property. Still 3/3 on a fresh full build. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/qa.yml | 6 +++--- src/release.test.ts | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/qa.yml b/.github/workflows/qa.yml index 58d3413..49ba13d 100644 --- a/.github/workflows/qa.yml +++ b/.github/workflows/qa.yml @@ -298,11 +298,11 @@ jobs: # ~160 properties) would still pass them. These pin pages that kept their tables # through the November 2026 rewrite. If MikroTik later moves one of them into the # CLI Reference too, confirm that on the live page and update the check. - BRIDGE_PROPS=$(sqlite3 ros-help.db "SELECT COUNT(*) FROM properties r JOIN pages p ON p.id = r.page_id WHERE p.url LIKE '%/docs/bridging-and-switching/'" 2>/dev/null || echo 0) + BRIDGE_PROPS=$(sqlite3 ros-help.db "SELECT COUNT(*) FROM properties r JOIN pages p ON p.id = r.page_id WHERE p.url LIKE '%/docs/bridging-and-switching/' AND r.source_table_row_id IS NOT NULL" 2>/dev/null || echo 0) UM_TABLES=$(sqlite3 ros-help.db "SELECT COUNT(*) FROM page_tables t JOIN pages p ON p.id = t.page_id WHERE p.url LIKE '%/docs/authentication-authorization-accounting/user-manager'" 2>/dev/null || echo 0) echo "✓ spot checks: bridging-and-switching ${BRIDGE_PROPS} properties, user-manager ${UM_TABLES} tables" if [ "${BRIDGE_PROPS:-0}" -lt 100 ]; then - echo "::error::bridging-and-switching has only ${BRIDGE_PROPS} table properties — expected ≥100 (158 on 2026-11-28). Did its property tables stop parsing?" + echo "::error::bridging-and-switching has only ${BRIDGE_PROPS} table-linked properties — expected ≥100 (158 on 2026-11-28). Did its property tables stop parsing?" fail=1 fi if [ "${UM_TABLES:-0}" -lt 3 ]; then @@ -311,7 +311,7 @@ jobs: fi # Properties that left the prose pages in November 2026 must still answer from the # default CLI-Reference tree, with a description (routeros_lookup_property's fallback). - MIGRATED_FIELDS=$(sqlite3 ros-help.db "SELECT COUNT(*) FROM cliref_fields f JOIN cliref_entries e ON e.id = f.entry_id JOIN cliref_pages p ON p.id = e.page_id JOIN cliref_trees t ON t.manual_version = p.manual_version WHERE t.is_default = 1 AND length(trim(f.description_markdown)) > 20 AND ((e.source_path = 'user-manager/user' AND f.name = 'shared-users') OR (e.source_path = 'ip/hotspot/user/profile' AND f.name = 'rate-limit') OR (e.source_path = 'queue/simple' AND f.name = 'max-limit'))" 2>/dev/null || echo 0) + MIGRATED_FIELDS=$(sqlite3 ros-help.db "SELECT COUNT(DISTINCT e.source_path || ' ' || f.name) FROM cliref_fields f JOIN cliref_entries e ON e.id = f.entry_id JOIN cliref_pages p ON p.id = e.page_id JOIN cliref_trees t ON t.manual_version = p.manual_version WHERE t.is_default = 1 AND length(trim(f.description_markdown)) > 20 AND ((e.source_path = 'user-manager/user' AND f.name = 'shared-users') OR (e.source_path = 'ip/hotspot/user/profile' AND f.name = 'rate-limit') OR (e.source_path = 'queue/simple' AND f.name = 'max-limit'))" 2>/dev/null || echo 0) echo "✓ spot checks: ${MIGRATED_FIELDS}/3 migrated properties answer from the default CLI-Reference tree" if [ "${MIGRATED_FIELDS:-0}" -lt 3 ]; then echo "::error::Only ${MIGRATED_FIELDS}/3 of user-manager/user shared-users, ip/hotspot/user/profile rate-limit, queue/simple max-limit have a described default-tree CLI-Reference field. Their prose property tables are gone, so this is their only answer." diff --git a/src/release.test.ts b/src/release.test.ts index 07fe21a..953a29c 100644 --- a/src/release.test.ts +++ b/src/release.test.ts @@ -1379,6 +1379,10 @@ describe("qa.yml", () => { expect(qa).toMatch(/BRIDGE_PROPS.*-lt 100/); expect(qa).toMatch(/UM_TABLES.*-lt 3/); expect(qa).toMatch(/MIGRATED_FIELDS.*-lt 3/); + // Bridging counts table-linked rows only (bullet-list properties would mask a table loss), + // and each requested CLI-Reference field counts once however often the parser stored it. + expect(qa).toMatch(/BRIDGE_PROPS=.*bridging-and-switching\/' AND r\.source_table_row_id IS NOT NULL/); + expect(qa).toMatch(/MIGRATED_FIELDS=.*COUNT\(DISTINCT e\.source_path \|\| ' ' \|\| f\.name\)/); for (const field of ["'user-manager/user' AND f.name = 'shared-users'", "'ip/hotspot/user/profile' AND f.name = 'rate-limit'", "'queue/simple' AND f.name = 'max-limit'"]) { expect(qa).toContain(field); } From 852ea35c68faf8bc0a013c9ab7e16200ed8d6d5c Mon Sep 17 00:00:00 2001 From: TIKOCI RouterOS Bots Date: Sat, 28 Nov 2026 15:51:12 -0800 Subject: [PATCH 4/5] Fail a full-version build with an empty command tree (0.12.1 re-review) The re-review found the crosswalk gate could skip silently: release.yml's link step and qa.yml's V-cliref-link-drift both skipped when schema_nodes had no dir/cmd nodes. A primary version that falls back to legacy inspect can fill `commands` and `command_versions` while leaving schema_nodes empty; that DB passed content, cliref integrity, contract and golden eval. - release.yml passes full_versions to the qa call (qa's workflow_call default was true regardless of the dispatch). - With FULL_VERSIONS=true the link step and the link-drift gate always run, and link-cliref refuses an empty tree (now tested). - db-content: a full-versions build (not db_source=published) must have command_versions_expected and >=1 schema_nodes dir/cmd node. - MANUAL documents the full_versions requirement; CHANGELOG fixes the spec-gap count (108 devices, not 109: the TG-LR page was a module), says "entries" for the crosswalk rows, and discloses that Bridge Hosts disabled/dynamic now live only in cliref_flags. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/qa.yml | 21 +++++++++++++++++++-- .github/workflows/release.yml | 10 +++++++++- CHANGELOG.md | 8 ++++---- MANUAL.md | 1 + src/link-cliref.test.ts | 8 ++++++++ src/release.test.ts | 14 ++++++++++++++ 6 files changed, 55 insertions(+), 7 deletions(-) diff --git a/.github/workflows/qa.yml b/.github/workflows/qa.yml index 49ba13d..614f55d 100644 --- a/.github/workflows/qa.yml +++ b/.github/workflows/qa.yml @@ -224,6 +224,7 @@ jobs: if: inputs.test_scope == 'db-content' || (inputs.test_scope == 'all' && (inputs.db_source == 'local-build' || inputs.db_source == 'artifact')) env: DB_SOURCE: ${{ inputs.db_source }} + FULL_VERSIONS: ${{ inputs.full_versions }} run: | set -euo pipefail PAGES=$(sqlite3 ros-help.db "SELECT COUNT(*) FROM pages") @@ -255,6 +256,19 @@ jobs: EXPECTED_VERSIONS=$(sqlite3 ros-help.db "SELECT value FROM db_meta WHERE key = 'command_versions_expected'" 2>/dev/null || echo "") echo "✓ DB: $PAGES pages ($SECTIONS sections, $CALLOUTS callouts), $COMMANDS commands, $DEVICES devices ($BLOCK_DIAGRAMS block diagrams), $TEST_RESULTS test_results, $CHANGELOGS changelogs, $VIDEOS videos, $DUDE_PAGES dude_pages, $SKILLS skills, $PROPERTIES properties ($TABLE_PROPERTIES table-linked), $PAGE_TABLES page_tables ($PAGE_TABLE_DATA_ROWS data rows), $HARDWARE_CATALOG hardware_catalog, $DEVICE_ALIASES device_aliases, $CLIREF_ENTRIES cliref_entries ($CLIREF_FIELDS fields, $CLIREF_FLAGS flags, $CLIREF_LINKS links)" fail=0 + # A full-versions build (every release, per release.yml's latest guard) must carry the + # command tree and the version stamp; without them the coverage gate and the + # crosswalk check below would have nothing to check. + if [ "$FULL_VERSIONS" = "true" ] && [ "$DB_SOURCE" != "published" ]; then + if [ -z "$EXPECTED_VERSIONS" ]; then + echo "::error::full_versions build has no command_versions_expected in db_meta — did extract-all-versions run?" + fail=1 + fi + if [ "${SCHEMA_CMD_NODES:-0}" -lt 1 ]; then + echo "::error::full_versions build has an empty command tree (schema_nodes dir/cmd = ${SCHEMA_CMD_NODES:-0}) — the crosswalk and per-version answers would be missing." + fail=1 + fi + fi if [ "${PAGES:-0}" -lt 200 ]; then echo "::error::DB has only ${PAGES} pages — expected ≥200 (Docusaurus /docs export is ~365)." fail=1 @@ -431,11 +445,14 @@ jobs: # release build (which populated the links) — rehearsable here against the artifact. - name: CLI-Reference link drift (db-content) if: inputs.test_scope == 'db-content' || (inputs.test_scope == 'all' && (inputs.db_source == 'local-build' || inputs.db_source == 'artifact')) + env: + FULL_VERSIONS: ${{ inputs.full_versions }} run: | set -euo pipefail # The crosswalk only exists on the full-versions path (see the floor step). Skip - # the byte-compare for a single-version local-build that built no schema_nodes. - if [ "$(sqlite3 ros-help.db "SELECT COUNT(*) FROM schema_nodes WHERE type IN ('dir','cmd')")" -gt 0 ]; then + # the byte-compare only for a single-version build that built no schema_nodes; a + # full-versions build always runs it, and link-cliref fails on an empty tree. + if [ "$FULL_VERSIONS" = "true" ] || [ "$(sqlite3 ros-help.db "SELECT COUNT(*) FROM schema_nodes WHERE type IN ('dir','cmd')")" -gt 0 ]; then make link-cliref-check else echo "schema_nodes has no command tree (single-version build) — skipping V-cliref-link-drift." diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3f8c45c..45993a5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -450,10 +450,15 @@ jobs: # extract-commands, which fills the legacy `commands` table, not schema_nodes). Gate # on the actual node count so the link runs only when a crosswalk can form, matching # `make extract` (no link-cliref) vs `make extract-full` (link-cliref). + # A full-versions build must ALWAYS link: an empty schema_nodes there means the command + # tree failed to load (e.g. a legacy-inspect fallback filled only `commands`), and + # link-cliref refuses an empty tree loudly instead of the build skipping quietly. - name: Link CLI-Reference to inspect + env: + FULL_VERSIONS: ${{ inputs.full_versions }} run: | set -euo pipefail - if [ "$(sqlite3 ros-help.db "SELECT COUNT(*) FROM schema_nodes WHERE type IN ('dir','cmd')")" -gt 0 ]; then + if [ "$FULL_VERSIONS" = "true" ] || [ "$(sqlite3 ros-help.db "SELECT COUNT(*) FROM schema_nodes WHERE type IN ('dir','cmd')")" -gt 0 ]; then bun run src/link-cliref.ts else echo "schema_nodes has no command tree (single-version build) — skipping link-cliref." @@ -656,6 +661,9 @@ jobs: test_scope: all db_source: artifact artifact_name: ros-help-db + # Tells qa which gates the artifact owes: a full-versions build must carry a command + # tree, command_versions_expected, and a crosswalk that link-drift checks (no skip). + full_versions: ${{ inputs.full_versions }} publish: needs: [build, qa] diff --git a/CHANGELOG.md b/CHANGELOG.md index 980cef6..3758896 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,13 +28,13 @@ uses [Semantic Versioning](https://semver.org/). - **Product matrix refreshed to the 2026-11-28 snapshot.** `devices` and the hardware overlay now read `matrix/2026-11-28/matrix.csv` (155 products). It adds LtAP LTE12 ax (`LtAP-5HaxT2HaxD&EG120K-EA`), and corrects RDS2216-2XG-4S+4XS-2XQ's CPU frequency to 2400 MHz (previously 2000 MHz). The hardware and product-page assessments were re-scraped the same day. FTC21-ups, KNOT Gateway HL9 and KNOT Gateway LR8 now have their own `/hardware` pages, so `routeros_device_lookup` links them instead of reporting them as www-only, and their curated exceptions are gone. Closes the scheduled device-map drift (#252). - **YouTube transcript cache refreshed to the 2026-11-28 snapshot.** 749 videos (3 new): the LtAP LTE12 ax launch video and the RouterOS 7.24 and 7.25 changelog walkthroughs. All 746 earlier entries are unchanged. -- **MikroTik's new `/hardware` Quick Guides stay out of the device catalog.** The manual added about 120 "Quick Guide - …" pages, one per product that already has a `/hardware` page, plus a TG-LR82 / TG-LR92 user manual. They are documents about devices, not devices, so they claim no matrix row and `hardware_catalog` and `device_aliases` skip them. Otherwise each would show up as a second, unlinked device that competes for the real device's model codes. `hardware-unmatched.tsv` lists them as `series-or-doc`, so its device spec-gap worklist shrinks from 109 pages to 4. +- **MikroTik's new `/hardware` Quick Guides stay out of the device catalog.** The manual added about 120 "Quick Guide - …" pages, one per product that already has a `/hardware` page, plus a TG-LR82 / TG-LR92 user manual. They are documents about devices, not devices, so they claim no matrix row and `hardware_catalog` and `device_aliases` skip them. Otherwise each would show up as a second, unlinked device that competes for the real device's model codes. `hardware-unmatched.tsv` lists them as `series-or-doc`, so its device spec-gap worklist shrinks from 108 pages to 4. ### Fixed -- **The release content floors follow MikroTik's November manual rewrite.** User Manager, HotSpot, certificates, PPP AAA, dot1x, RADIUS, queues, connection tracking, containers, VXLAN, MACVLAN and MACsec now link the CLI Reference instead of carrying property tables. That leaves 554 page tables, 5,659 table rows and 1,763 table-linked properties (0.12.0 shipped 643 / 6,574 / 2,462). The floors drop to 500 / 5,100 / 1,600, keeping about 10% headroom. Because a floor that loose would not notice one large page losing its tables, new spot checks also require ≥100 properties on Bridging, ≥3 tables on User Manager, and described default-tree CLI-Reference fields for User Manager `shared-users`, HotSpot profile `rate-limit` and simple queue `max-limit`. -- **A latest release requires a full-version build, and only a rehearsal gets the lower changelog floor.** The release workflow now fails a latest-channel dispatch with `full_versions=false`, since that build skips every older version's command tree, most changelogs and the CLI-Reference crosswalk check. The changelog floor stays at 4,000 entries for any release artifact. Only a single-version `qa.yml` local-build rehearsal, which fetches about 12 versions' changelogs, needs just 1,000, so it no longer fails by default. -- **The CLI-Reference crosswalk baseline is refreshed for the 7.26 manual.** It adds 9 manual-only menus (`app/check-update`, `container/check-update`, `system/sync-e` and its `monitor` and `port`, `routing/bgp/evpn/esi`, `interface/wifi/meshpoint-paths`, and two `reset-counters` commands) and drops `/iot/lora/send`, which the 7.26 manual no longer documents (the 7.24 and 7.25 trees still do). +- **The release content floors follow MikroTik's November manual rewrite.** User Manager, HotSpot, certificates, PPP AAA, dot1x, RADIUS, queues, connection tracking, containers, VXLAN, MACVLAN and MACsec now link the CLI Reference instead of carrying property tables. That leaves 554 page tables, 5,659 table rows and 1,763 table-linked properties (0.12.0 shipped 643 / 6,574 / 2,462). The floors drop to 500 / 5,100 / 1,600, keeping about 10% headroom. Because a floor that loose would not notice one large page losing its tables, new spot checks also require ≥100 properties on Bridging, ≥3 tables on User Manager, and described default-tree CLI-Reference fields for User Manager `shared-users`, HotSpot profile `rate-limit` and simple queue `max-limit`. Known gap: Bridge Hosts `disabled` and `dynamic` are now described only as CLI-Reference print flags, which `routeros_lookup_property` doesn't read yet. +- **A latest release requires a full-version build, and only a rehearsal gets the lower changelog floor.** The release workflow now fails a latest-channel dispatch with `full_versions=false`, since that build skips every older version's command tree, most changelogs and the CLI-Reference crosswalk check. A full-version build must also produce a command tree and its version stamp: the CLI-Reference link step and the link-drift gate no longer skip quietly when `schema_nodes` is empty, they fail. The changelog floor stays at 4,000 entries for any release artifact. Only a single-version `qa.yml` local-build rehearsal, which fetches about 12 versions' changelogs, needs just 1,000, so it no longer fails by default. +- **The CLI-Reference crosswalk baseline is refreshed for the 7.26 manual.** It adds 9 manual-only entries (`app/check-update`, `container/check-update`, `system/sync-e` and its `monitor` and `port`, `routing/bgp/evpn/esi`, `interface/wifi/meshpoint-paths`, and two `reset-counters` commands) and drops `/iot/lora/send`, which the 7.26 manual no longer documents (the 7.24 and 7.25 trees still do). - The hardware assessment no longer counts the manual's new tag index pages (`/hardware/tags`, `/hardware/tags/lora` and so on) as hardware pages. They failed to cache, which left every live run partial so its cache was never pruned. - The README `/app` install steps now cover the storage-disk prerequisite (`/app/setup` or `/app/settings`, with sizing guidance): without a selected disk `/app/add` succeeds but the app sits idle with no error. The steps also note that the inline YAML's inner quotes must stay backslash-escaped. Phase 1 of #245. - Release OCI images are smoke-tested with a real MCP session on both architectures before any version or floating tag moves. Each release runs `scripts/smoke-oci.ts` (initialize → tools/list → provenance match → search → chained get_page → command_tree → device_lookup) against the pushed image on native amd64 and arm64 Docker, asserting each leg pulled its own architecture; `:latest` / `:next` promote only after both legs pass. Previously only the amd64 image ran, and any non-404 HTTP response passed (#246). diff --git a/MANUAL.md b/MANUAL.md index 0abf904..57557a9 100644 --- a/MANUAL.md +++ b/MANUAL.md @@ -308,6 +308,7 @@ The five entry points that read the matrix (extract-devices, extract-hardware-ca Published artifacts come from the GitHub Actions `Release` workflow (`workflow_dispatch`), not from local ad hoc release commands. - **Inputs:** `version` (optional override — see "npm channel" below for how this interacts with prerelease dispatches), `docs_date`, `full_versions`, and `republish_assets`. +- **`full_versions`:** must stay `true` (the default) for a latest-channel release. The build job fails a bare-version dispatch with `full_versions=false`, because that build skips every older version's command tree, most changelogs and the CLI-Reference crosswalk. A `full_versions=true` build must also produce a command tree and the `command_versions_expected` stamp: the `qa` job is called with the same `full_versions`, and the CLI-Reference link step and `V-cliref-link-drift` fail instead of skipping when `schema_nodes` is empty. Single-version builds remain available for `next` dispatches and `qa.yml` rehearsals. - **`republish_assets`:** reuploads GitHub Release assets and OCI tags for an existing version. It does **not** republish npm because npm versions are immutable, and it never moves a floating OCI tag (`:latest`/`:next`) on any channel. See "Prerelease republish semantics" below for prerelease-specific caveats. - **Job graph (Phase B, #42; #176; #246):** `build` → `qa` → `publish` → {`smoke-oci` → `promote-oci`, `verify-dist-tags`, `smoke`}. - **`build`:** npm channel detection (+ workspace-only prerelease version rewrite) → CHANGELOG gate (latest only) → npm publish-access preflight → fast-fail quality gate → live Docusaurus extraction (`extract-docusaurus.ts --check-counts --strict`, proving `V-docusaurus-docs-count` on every run) → extraction chain → transcript/Dude cache imports → skill extraction → command linking → `schema_node_presence` GC → DB-wipe guard → `db_meta` stamping → DB-stats collection. Uploads the built DB and the resolved `package.json` as artifacts. diff --git a/src/link-cliref.test.ts b/src/link-cliref.test.ts index e4479f8..e4070a7 100644 --- a/src/link-cliref.test.ts +++ b/src/link-cliref.test.ts @@ -194,6 +194,14 @@ describe("link drift baseline (buildBaselineTsv / auditAliasSegments)", () => { ); } + test("refuses an empty command tree instead of re-linking everything as manual-only", () => { + // Full-versions builds always run link-cliref (release.yml, qa.yml link drift), so this + // refusal is what fails a build whose schema_nodes came out empty (0.12.1 review). + seedSingleton(); + db.run("DELETE FROM schema_nodes"); // cliref rows present, command tree empty + expect(() => linkEntries()).toThrow(/schema_nodes has no dir\/cmd nodes/); + }); + test("baseline lists alias + manual-only rows with a counts header pinning exact/entries", () => { seedSingleton(); expect(linkEntries()).toEqual({ exact: 2, alias: 1, manual: 1 }); diff --git a/src/release.test.ts b/src/release.test.ts index 953a29c..da2b735 100644 --- a/src/release.test.ts +++ b/src/release.test.ts @@ -540,6 +540,10 @@ describe("release.yml", () => { test("a latest-channel release requires full_versions=true", () => { const src = readText(".github/workflows/release.yml"); expect(src).toContain("name: Require a full-version build for latest-channel release"); + // qa learns what the artifact owes, and a full build never skips the link step. + expect(src).toMatch(/db_source: artifact[\s\S]*?full_versions: \$\{\{ inputs\.full_versions \}\}/); + const link = src.slice(src.indexOf("name: Link CLI-Reference to inspect")); + expect(link.slice(0, link.indexOf("\n - "))).toContain('if [ "$FULL_VERSIONS" = "true" ] ||'); expect(src).toMatch(/channel\.outputs\.channel \}\}" = "latest" \] && \[ "\$\{\{ inputs\.full_versions \}\}" != "true" \]/); }); @@ -1388,6 +1392,16 @@ describe("qa.yml", () => { } }); + test("a full-versions build must carry its command tree; link drift never skips it", () => { + const qa = readText(".github/workflows/qa.yml"); + expect(qa).toMatch(/if \[ "\$FULL_VERSIONS" = "true" \] && \[ "\$DB_SOURCE" != "published" \]; then\n\s+if \[ -z "\$EXPECTED_VERSIONS" \]/); + expect(qa).toMatch(/SCHEMA_CMD_NODES:-0\}" -lt 1 \]/); + const drift = qa.slice(qa.indexOf("name: CLI-Reference link drift (db-content)")); + const step = drift.slice(0, drift.indexOf("\n - ")); + expect(step).toContain("FULL_VERSIONS: ${{ inputs.full_versions }}"); + expect(step).toContain('if [ "$FULL_VERSIONS" = "true" ] ||'); + }); + test("only a single-version local-build rehearsal gets the lower changelog floor", () => { const qa = readText(".github/workflows/qa.yml"); // The release artifact (db_source=artifact) must always meet the 4,000 floor, even if a From 11c2b4aed4468e49bd783c8a54535855d6c55c1e Mon Sep 17 00:00:00 2001 From: TIKOCI RouterOS Bots Date: Sat, 28 Nov 2026 15:57:06 -0800 Subject: [PATCH 5/5] Spot checks match either URL form; guard latest republishes too (#255 review) - qa.yml: the Bridging and User Manager spot checks match the page URL with or without a trailing slash (still 158 / 7 on a fresh build). - release.yml: the full-version guard has no republish_assets exemption. A republish rebuilds the DB and re-uploads it as the latest release's asset, so it owes the same full build; the channel step runs on republish, so the guard sees the real channel. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/qa.yml | 4 ++-- .github/workflows/release.yml | 3 ++- src/release.test.ts | 6 +++++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/qa.yml b/.github/workflows/qa.yml index 614f55d..f24850c 100644 --- a/.github/workflows/qa.yml +++ b/.github/workflows/qa.yml @@ -312,8 +312,8 @@ jobs: # ~160 properties) would still pass them. These pin pages that kept their tables # through the November 2026 rewrite. If MikroTik later moves one of them into the # CLI Reference too, confirm that on the live page and update the check. - BRIDGE_PROPS=$(sqlite3 ros-help.db "SELECT COUNT(*) FROM properties r JOIN pages p ON p.id = r.page_id WHERE p.url LIKE '%/docs/bridging-and-switching/' AND r.source_table_row_id IS NOT NULL" 2>/dev/null || echo 0) - UM_TABLES=$(sqlite3 ros-help.db "SELECT COUNT(*) FROM page_tables t JOIN pages p ON p.id = t.page_id WHERE p.url LIKE '%/docs/authentication-authorization-accounting/user-manager'" 2>/dev/null || echo 0) + BRIDGE_PROPS=$(sqlite3 ros-help.db "SELECT COUNT(*) FROM properties r JOIN pages p ON p.id = r.page_id WHERE (p.url LIKE '%/docs/bridging-and-switching' OR p.url LIKE '%/docs/bridging-and-switching/') AND r.source_table_row_id IS NOT NULL" 2>/dev/null || echo 0) + UM_TABLES=$(sqlite3 ros-help.db "SELECT COUNT(*) FROM page_tables t JOIN pages p ON p.id = t.page_id WHERE p.url LIKE '%/docs/authentication-authorization-accounting/user-manager' OR p.url LIKE '%/docs/authentication-authorization-accounting/user-manager/'" 2>/dev/null || echo 0) echo "✓ spot checks: bridging-and-switching ${BRIDGE_PROPS} properties, user-manager ${UM_TABLES} tables" if [ "${BRIDGE_PROPS:-0}" -lt 100 ]; then echo "::error::bridging-and-switching has only ${BRIDGE_PROPS} table-linked properties — expected ≥100 (158 on 2026-11-28). Did its property tables stop parsing?" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 45993a5..2984d35 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -247,8 +247,9 @@ jobs: # extract-all-versions, which leaves command_versions_expected unset and link-cliref # skipped, so qa.yml's full-build floors and V-cliref-link-drift would not apply. # Single-version builds stay available for the next channel and qa.yml rehearsals. + # No republish_assets exemption: a republish rebuilds the DB and re-uploads it as the + # latest release's asset, so it owes the same full-version build. - name: Require a full-version build for latest-channel release - if: inputs.republish_assets != true run: | set -euo pipefail if [ "${{ steps.channel.outputs.channel }}" = "latest" ] && [ "${{ inputs.full_versions }}" != "true" ]; then diff --git a/src/release.test.ts b/src/release.test.ts index da2b735..3a95404 100644 --- a/src/release.test.ts +++ b/src/release.test.ts @@ -540,6 +540,9 @@ describe("release.yml", () => { test("a latest-channel release requires full_versions=true", () => { const src = readText(".github/workflows/release.yml"); expect(src).toContain("name: Require a full-version build for latest-channel release"); + // A latest republish rebuilds and re-uploads the DB, so the guard has no republish exemption. + const guard = src.slice(src.indexOf("name: Require a full-version build for latest-channel release")); + expect(guard.slice(0, guard.indexOf("run: |"))).not.toContain("republish_assets"); // qa learns what the artifact owes, and a full build never skips the link step. expect(src).toMatch(/db_source: artifact[\s\S]*?full_versions: \$\{\{ inputs\.full_versions \}\}/); const link = src.slice(src.indexOf("name: Link CLI-Reference to inspect")); @@ -1385,7 +1388,8 @@ describe("qa.yml", () => { expect(qa).toMatch(/MIGRATED_FIELDS.*-lt 3/); // Bridging counts table-linked rows only (bullet-list properties would mask a table loss), // and each requested CLI-Reference field counts once however often the parser stored it. - expect(qa).toMatch(/BRIDGE_PROPS=.*bridging-and-switching\/' AND r\.source_table_row_id IS NOT NULL/); + expect(qa).toMatch(/BRIDGE_PROPS=.*LIKE '%\/docs\/bridging-and-switching' OR p\.url LIKE '%\/docs\/bridging-and-switching\/'\) AND r\.source_table_row_id IS NOT NULL/); + expect(qa).toMatch(/UM_TABLES=.*user-manager' OR p\.url LIKE '%\/docs\/authentication-authorization-accounting\/user-manager\/'/); expect(qa).toMatch(/MIGRATED_FIELDS=.*COUNT\(DISTINCT e\.source_path \|\| ' ' \|\| f\.name\)/); for (const field of ["'user-manager/user' AND f.name = 'shared-users'", "'ip/hotspot/user/profile' AND f.name = 'rate-limit'", "'queue/simple' AND f.name = 'max-limit'"]) { expect(qa).toContain(field);