Files
Roger c86f54a010 docs: rewrite the RFCs as an outline of the decisions (#681)
21 RFCs repeated the code's names, steps, lists, and version history, so one rename touched eleven of them;
eight short ones now keep only what was decided and why, and change only when a decision does.
2026-11-02 11:48:13 +08:00

1.1 KiB

RFC-005: Output

Frozen

Everything a user sees in the output — file names, formats, field names and their order, the browser and profile values — is part of the compatibility contract (RFC-000). Field names on the wire are the snake_case of the record fields, enforced by lint, so the record fields are frozen with the output.

Deterministic

The same snapshot always produces byte-identical files. Order is defined once per category, in the exporter rather than in each extractor, with a stable sort, so ties keep the browser's own order instead of one nobody chose.

Safe writing

  • Private. Output files are readable by the user only.
  • Streamed. Records go to the files as each extraction finishes, so memory holds one extraction, not the whole run.
  • Zip last. Packing into a zip replaces the loose files only once the zip is complete, so a failure loses nothing.
  • Only its own files. A run packs and removes only the files it wrote.

No redaction

What reaches export was asked for, and the default exports every category.

Formats

Adding a format is a new encoder; nothing else in the pipeline changes.