Repository navigation
Description
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:
- Export output shape: human-readable keys + reconcilable section rollup (post-#103 per-TSV review) #106 — export output shape:
callouts.tsvhuman-readable page/section names,changelog.tsvsort_orderbeforedescription, and asection_word_countonpages_summary.tsvso the pivot rollup reconciles againstpages.tsv. Pure output shape, no schema change. (the near-term "make progress" task) - Shared version comparator ignores prerelease number (7.24beta1 == beta2) #107 — shared
compareVersionsignores the prerelease number (7.24beta1 == beta2). Not export-specific; a shared comparator used by changelog diffs and command-version ordering. - Safe-replacement scheme for the export's variable file sets (blocks E4) #108 — safe-replacement scheme for variable file sets. Delivered; E3 and E4 can use the shipped safe-replacement contract (see the completion comment below). (the other near-term task)
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
- Ground on a verified CI release artifact, rather than assuming the repo-root DB is current (No check that the resolved DB matches the codebase: stale local ros-help.db silently invalidates grounded work #94). At this triage,
https://github.com/tikoci/rosetta/releases/download/v0.11.2/ros-help.db.gzis the stable artifact (schema v11, source commitc6177da2e6d274fc7a31f679e1e8fa681c25a6c3); use a separateDB_PATHand verify its metadata. - Keep the DB-only boundary transitively true: pure helpers live in dependency-free modules (
version-compare.ts);export.tsmust stay importable without opening the DB (the boundary test enforces it). - Manifest provenance must be
db_meta-only (no wall-clock) or byte-identical reruns break. - Add a dataset via
DATASET_READERSinsrc/export.ts(reader returns{name, source_table, columns, order_by, rows}; flows into the manifest). ReusetoTsv/encodeTsvFieldand the Postgres-COPY escape. - Disclosures encode real gaps honestly (transcript provenance Video transcript-source classification and quality-signal presentation #21, per-version arch command_versions: single-arch versions read as thinner releases, and a cross-run re-extract can drop an arch #91).
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
Cite issue #104 for the compareVersions prerelease limitation + discl…
mobileskyfi commentedon Jul 16, 2026
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 emitspage_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 sectionanchor_id/heading(join throughpages/sections, same patternproperties.tsvalready 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: movesort_orderto sit beforedescription, so the multiline/wide free-text column stays rightmost (same rulevideos.tsvalready follows by puttingdescriptionlast). 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.vttper-video transcript files later in the B-0022 track.Both
callouts.tsvandchangelog.tsvitems are small, additive, deterministic column changes to existing readers insrc/export.ts; they can ride along with E4 or land on their own.[-]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[/+]mobileskyfi commentedon Jul 17, 2026
The safe-replacement scheme (#108) is implemented in PR #110 — manifest-owned prune-then-publish with a
--forcegate. Once it lands, E4 (per-fragment doc tables) and E3 (products) are unblocked: both are variable file sets, andrunExportnow prunes stale files a prior manifest owned and refuses to clobber a foreign directory.manifest.toml's[[files]].nameis 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.Address review: MANUAL.md tables.tsv, #111 ref, utf8Bytes helper
[-]Export dataset chunks: E4 per-fragment doc tables (blocked on #108), E3 products[/-][+]Export dataset chunks: E4 per-fragment doc tables and E3 products[/+]