Skip to content

Decide arch fallback and declared-manual-version provenance in runtime answers #25

Open

Description

@mobileskyfi

Current scope — 2026-10-23

The original stable-at-import premise below is superseded. #191 stamps the manual's declared version; #196–#199 store/export/publish per-version CLI Reference trees. #200 delivered #91's architecture-history disclosures. None of that proves runtime arch fallback or per-answer provenance is implemented.

Remaining decisions: (1) whether an explicit arch is a strict filter or a preference with disclosed fallback; (2) the exact source/version fields on overlay-backed answers. Prefer explicit source/version provenance; never label default-tree prose as stable merely because stable existed at build time. Keep this discussion outside the bounded next stable release. Standard landing-page answer consumption is tracked separately in #203.

Historical proposal (superseded where noted above)

Migrated from T-0020-arch-as-advisory, expanded per 2026-07-10 triage: the arch-fallback behavior is now tied to ingesting manual.mikrotik.com/cli-reference as an overlay (enriching existing command-tree/property data — not a new tool surface).

Two joined halves:

  1. arch as a hint, not a filter. routeros_command_tree / routeros_explain_command should prefer matching-arch data and fall back with an explicit coverage note instead of returning empty (e.g. CHR has no Wi-Fi hardware, so wireless packages are absent from inspect.json while the docs cover them). Validation: V-tool-shapes; tests for both matching and fallback paths.
  2. CLI-Reference overlay fills the gaps inspect.json/deep-inspect.json can't see — with honest provenance: MikroTik doesn't state which exact version the CLI-Reference reflects, so overlay-sourced entries carry a quasi-provenance note ("applies to stable; current stable at import time was X.Y") instead of the per-version presence data native schema rows have. Agents then know exactly how much to trust the row. Relates to command-versions-vs-presence.instructions.md and data-source-naming-product-matrix.instructions.md.

Part of the overlays-then-ranking umbrella (see tracking issue). Original context in tasks/done/T-0020-arch-as-advisory.md.

Activity

  1. mobileskyfi commented on Jul 10, 2026

    @mobileskyfi
    ContributorAuthor

    ETL of /hardware and /cli-reference is needed before this issue can be worked - should like have issues and/or briefing on the precursor work. Issue correct, but the ETL part of it deserves it own thinking before tool changes.

  2. added
    blocked
    on Jul 10, 2026
  3. mobileskyfi commented on Jul 10, 2026

    @mobileskyfi
    ContributorAuthor

    Precursor work split out per the comment above: #33 (CLI-Reference overlay design pass, produces briefings/B-0016-cli-reference-overlay-design.md) now tracks the ETL-side thinking. This issue's arch-as-advisory query-behavior half can proceed independently once #33 resolves; the CLI-Reference overlay ETL half of this issue stays blocked until then.

  4. mobileskyfi commented on Jul 12, 2026

    @mobileskyfi
    ContributorAuthor

    ETL half parked with #33 (2026-07-12 release-scoping pass) — see the comment there for rationale and revisit triggers. The arch-as-advisory query-behavior half of this issue was already independent of the overlay and remains so; if it's wanted for the 0.12 surface theme it should be split out then, since this combined issue stays blocked while the CLI-Reference track is parked.

  5. mobileskyfi commented on Jul 31, 2026

    @mobileskyfi
    ContributorAuthor

    Unblocking note 2026-07-31 — the ETL dependency has shipped, and Q5 now has a concrete consumer

    ETL half: the CLI-Reference overlay landed (#124 → #126, #128). The precursor design issue #33 is substantially complete; see the status comment there. That removes the ETL dependency this issue was parked behind.

    What still blocks: B-0016 Q3 — the quasi-provenance format ("applies to stable; current stable at import time was X.Y" needs an exact column/JSON shape and a defined source for "current stable at import time"). That is genuinely this issue's own question now, not a precursor.

    New, and it strengthens half 2 of this issue: the #131/#132 triage found a stronger use for the overlay than advisory metadata. commands.page_id is the only join between rosetta's structure stores and its prose store, and it is a fuzzy, page-grained scalar that produces both high-confidence wrong answers and low-confidence correct ones. cliref_entries.source_path + cliref_field_inspect_links is a curated, exact/alias-resolved command→field-name index — exactly what that join lacks. lookupProperty(name, path) could corroborate candidate rows against the overlay and demote the fuzzy page link to ranking evidence.

    That makes the overlay a correctness input to an existing tool, not just a note attached to a result — a stronger justification for this issue's query-behavior half than the arch-as-advisory framing alone. Recorded in briefings/B-0024-command-prose-join.md; B-0016 Q5 updated to cite it.

    Caveat: untested end to end — cliref_entries is empty in the local ros-help.db, so a rebuild with the overlay populated is the first homework item.

  6. mobileskyfi commented on Aug 1, 2026

    @mobileskyfi
    ContributorAuthor

    The arch-as-advisory half now has a number — and it is bigger than "empty tool output" (2026-08-01)

    B-0024 step 6 measured the doc↔schema vocabulary gap and hit this issue from an angle that was not in
    the original framing. Measured on v0.11.2-alpha.109, regenerable with
    bun run src/eval/vocabulary-alignment.ts (landed in #135).

    What was found

    Of the 4,587 property rows in the corpus, 1,271 (27.7%) carry a name the inspect command tree has
    never heard of
    . Using the CLI-Reference overlay as referee — the only store that is both version-less
    and able to distinguish a settable Argument from a Read-only Argument:

    Why the tree cannot see it Rows Share
    overlay: read-only only 670 52.7%
    unknown to the overlay too 309 24.3%
    overlay: settable only 280 22.0%
    overlay: both kinds 12 0.9%

    That third row is this issue. 280 property rows document fields that are settable somewhere and
    simply absent from the architecture the tree was dumped from.
    It clusters exactly where you would
    predict:

    Page Settable-but-absent rows
    CRS1xx and 2xx series switches 191
    Quality of Service 25
    L3 Hardware Offloading 14

    And the sharpest single case: /interface/ethernet/poe has 0 rows in commands. Not "returns
    empty for the wrong arch" — the menu is not in the tree at all, so the PoE-Out property rows have no
    command coordinate to join to at any granularity. No ranking, linking, or proximity work reaches them.

    Why this widens the issue rather than just confirming it

    This issue was filed around tool output: routeros_command_tree / routeros_explain_command
    returning empty for hardware the dumped device lacks, and the fix being "prefer matching-arch data,
    fall back with a coverage note." That framing is still right.

    What step 6 adds is that architecture coverage silently defines the vocabulary the whole doc↔schema
    join is scored against
    . Any measurement of "is this a real property at this menu" inherits the blind
    spots of one device's dump — so an arch gap is not only a hole in an answer, it is a distortion in
    every relevance signal built on top of the tree. That is a correctness concern, not just a coverage one.

    What it says about half 2 (the overlay)

    The overlay covers 962 of the 1,271 rows (75.7%) — including all 280 of the settable-but-absent
    ones. Combined with the field_kind distinction that accounts for the 52.7% read-only bucket, this is
    a second and sharper justification for the overlay than the arch-as-advisory framing alone: the overlay
    is not "extra metadata," it is complementary exactly where inspect is structurally blind. Not
    because it is bigger — inspect has 36,099 arg rows to the overlay's 10,118 fields — but because it is
    version-less, hardware-independent, and models read-only fields at all.

    The durable form of that conclusion is now in DESIGN.md → "What each store is authoritative for —
    the layering model"
    , which also records the verb-layer split behind it (the overlay has 441 Command
    entries but only 2 ending in a CRUD verb; inspect is where print/get/set/add live).

    Effect on this issue

    No change to the acceptance criteria — both halves stand as written. This is grounding for the
    blocked label's eventual removal: it says how much is at stake (280 rows across the pages above,
    plus a whole absent menu) and why the overlay is the right source for the fallback, rather than
    leaving both as reasonable-sounding assumptions.

    Grounding: briefings/B-0024-command-prose-join.md step 6, DESIGN.md "What each store is
    authoritative for", src/eval/vocabulary-alignment.ts (#135).

  7. mobileskyfi commented on Oct 2, 2026

    @mobileskyfi
    ContributorAuthor

    Triage update — #33's ETL design dependency is complete

    #33 is being closed because the CLI-Reference design/extractor and release wiring shipped through #124 / #126 / #128 / #127, with discovery/crosswalk fixes in #138. The published v0.11.2 artifact has the overlay.

    The ETL prerequisite is delivered, but the July unblocking note identifies B-0016 Q3 (quasi-provenance shape and stable-at-import source) as the remaining blocker. Retain blocked for that unresolved decision, rather than suggesting it is still waiting for an extractor. This is not agent-ready: runtime fallback selection and quasi-provenance wording still need a settled contract. Data availability is not proof the query behavior is implemented.

    Keep this in the 0.12 surface work; it is outside the bounded 0.11.3 correctness patch. #91's arch-history data defect and #61's missing prose also remain independent work.

  8. mobileskyfi commented on Oct 5, 2026

    @mobileskyfi
    ContributorAuthor

    Q3 decided (maintainer, 2026-10-04): keep it simple. CLI-Reference rows are "current"

    Decision: an overlay row describes MikroTik's current manual, and "current" means the RouterOS stable release at the time of the rosetta build. No per-version modelling.

    • Source for "stable at build time": upgrade.mikrotik.com/routeros/NEWESTa7.stable, read during extraction. extract-changelogs.ts already fetches it, and routeros_current_versions uses the same endpoint at runtime. Stamp it, with the CLI-Reference fetch date, into the build's provenance (db_meta) once, not per row.
    • Shape: an overlay-sourced answer says source: "cli-reference" plus one provenance note along the lines of "MikroTik's current manual; stable was 7.x.y when this DB was built (date)". routeros_stats reports the same pair.
    • Not now: versioned manual URLs (manual.mikrotik.com/docs/7.24/…). The versioned tree exists, but MikroTik is still refining the manual's shape, and the 7.24 snapshot doesn't match the current one in places. Revisit when MikroTik forks 7.25 into its own manual release, since that snapshot should match the shape rosetta extracts today. That's the point where per-version overlay rows could be worth it. (Recorded as a BACKLOG.md trigger.)

    Effect on this issue:

    Not agent-ready yet: it needs the exact field name and wording pinned in the acceptance criteria (and in tool-surface-change terms). It's small once that's written.

  9. removed
    blocked
    on Oct 5, 2026
  10. mobileskyfi commented on Oct 20, 2026

    @mobileskyfi
    ContributorAuthor

    Q3 premise changed (2026-10-20). The default manual tree now declares itself 7.26 (the development channel) in its llms.txt header, while NEWESTa7.stable is 7.24.5. A provenance note sourced from NEWESTa7.stable would label 7.26-beta text as 7.24.5. #187 replaces the source: stamp the version the manual declares and cite that in half 2's note. Field name and wording are still to pin here; only the source of the version moves. Versioned CLI-Reference rows (the BACKLOG trigger this decision deferred) have fired and are tracked in #188.

  11. changed the title [-]arch as advisory + CLI-Reference overlay with quasi-provenance ('applies to stable X as of import')[/-] [+]Decide arch fallback and declared-manual-version provenance in runtime answers[/+] on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions