Skip to content

Export dataset chunks: E4 per-fragment doc tables and E3 products #104

Open

Description

@mobileskyfi

Current scope — 2026-10-23

E3 products and E4 per-fragment tables remain the work here. #106/#107/#108 are delivered prerequisites, not pickup tasks. Export format is now 2 (#198); #199 publishes only the CLI Reference subtree, not these remaining datasets. Use a checksum/provenance-verified current release artifact compatible with the checkout, rather than treating the v0.11.2 URL below as current.

Keep the DB-only and deterministic safe-replacement contracts. E3/E4 need not delay the bounded next stable release; #173 owns publishing them once available.

Earlier decomposition

Follow-on tracking for the B-0022 rosetta export track after PR #103 (E1 + E2). This is the pin for the remaining dataset chunks (E3, E4). Briefing: briefings/B-0022-runtime-sqlite-dataset-exports.md. Part of #95.

Status of the track

Shipped in #103: manifest.toml, changelog.tsv, callouts.tsv, properties.tsv, videos.tsv, commands.tsv, pages.tsv (one row per section), pages_summary.tsv (per-page rollup). Contract (TSV escape, deterministic ordering, db_meta provenance, disclosures) is settled and stated in manifest.toml.

Since #103, pages.tsv now also carries the _lead fragment (PR #105 / B-0023, merged), so section coverage is ~98% of page words.

Leftovers — now spun out into their own agent-ready issues

The two E1/E2 review findings that were parked here are extracted so each is independently pickable:

Remaining dataset chunks (this issue)

E4 — per-fragment doc table export — unblocked; #108 shipped

pages/<page-slug>/<fragment>[--N].tsv, one file per Markdown table, from the generic page_tables / page_table_rows / page_table_cells storage (#92, schema v10). ~85 fragments hold >1 table and need the deterministic --N suffix. Reuses encodeFsName (astral-safe + escapes ./..); raw slug stays a column, encoded name its own column. #108's safe-replacement scheme has shipped, so this can use the existing variable-file-set contract.

E3 — products — independent, unblocked

products/products.tsv (keyed on hardware_catalog.rosetta_device_id), products/matrix.tsv (reuse exportDevicesCsv()), products/<rosetta_device_id>/specs.tsv (vertical name/value over specs_json). Also a variable file set under products/<id>/, so it too consumes #108's scheme; spec-wise it's otherwise ready.

Notes / tips for whoever picks these up

2026-10-02 triage: removed the stale #108 blocker from the title and current work sections. E3/E4 remain unimplemented follow-ups outside the 0.11.3 bugfix release (#148).

Activity

  1. added
    enhancement
    export-audit
    on Jul 16, 2026
  2. added a commit that references this issue on Jul 16, 2026
  3. mobileskyfi commented on Jul 16, 2026

    @mobileskyfi
    ContributorAuthor

    Post-#103 per-TSV review (export-output shape)

    Reviewing the E1+E2 output produced by #103 against a real corpus (rc.99). These are output-shape findings for the export datasets themselves — the deeper schema question they hint at (sections not summing to the page) is split out to B-0023 and tracked under #95, kept separate on purpose. Recording here so the E4/E3 pickup has the full list; none are being fixed now.

    callouts.tsv — add page/section names, not just ids. Today it emits page_id, section_id, type, content, sort_order. A callout read standalone often lacks enough context to be useful (that's the whole reason to surface it), and the numeric ids don't help a human or a future indexer. Add the page slug and the section anchor_id/heading (join through pages/sections, same pattern properties.tsv already uses). Forward-looking note (not an ask here): once those names are columns, the section header text becomes indexable alongside the callout content, so a header-word match can recall a callout whose own prose doesn't contain the term — relevant to future retrieval, out of scope for the export.

    changelog.tsv — column order: move sort_order to sit before description, so the multiline/wide free-text column stays rightmost (same rule videos.tsv already follows by putting description last). Currently ..., is_breaking, description, sort_order.

    commands.tsv — working-as-designed, no change. Reflects today's arch-blind command data; the lingering x86/arm64 + CLI-Reference work is B-0016 / #91 / #25, and the export will grow when that data does. Fine as-is for now.

    properties.tsv — working-as-designed, no change. Same posture as commands: the wanted improvement is mapping a property back to its command "arg" (and surfacing that mapping as a column), which is its own track, not an export tweak.

    videos.tsv — looks good. Only future work is the .vtt per-video transcript files later in the B-0022 track.

    Both callouts.tsv and changelog.tsv items are small, additive, deterministic column changes to existing readers in src/export.ts; they can ride along with E4 or land on their own.

  4. changed the title [-]export E1/E2 leftovers + next chunks (E4 per-fragment doc tables, E3 products)[/-] [+]Export dataset chunks: E4 per-fragment doc tables (blocked on #108), E3 products[/+] on Jul 17, 2026
  5. mobileskyfi commented on Jul 17, 2026

    @mobileskyfi
    ContributorAuthor

    The safe-replacement scheme (#108) is implemented in PR #110 — manifest-owned prune-then-publish with a --force gate. Once it lands, E4 (per-fragment doc tables) and E3 (products) are unblocked: both are variable file sets, and runExport now prunes stale files a prior manifest owned and refuses to clobber a foreign directory. manifest.toml's [[files]].name is already a directory-relative path, so a directory-nested reader just adds its files to the owned set and they flow into the prune automatically.

  6. added a commit that references this issue on Jul 17, 2026
  7. changed the title [-]Export dataset chunks: E4 per-fragment doc tables (blocked on #108), E3 products[/-] [+]Export dataset chunks: E4 per-fragment doc tables and E3 products[/+] on Oct 2, 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

    enhancementexport-audit

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions