Publishing and export
A built version leaves miDataworks in one of two ways: publish pushes it to the Hugging Face Hub, and export writes files for training. Both start from the version's detail page (Export opens Publishing) or the Export step of New dataset.
Publish to the Hub
Publishing takes three steps, each of which you can see before the next:
- Build the files. One Parquet file per split, plus a manifest. Building again for the same version and label column reuses the files already built.
- Run the checks (below). This is a preview: a publish never trusts it and runs every check again itself.
- Publish. Choose the repository and its visibility. Visibility is private unless you
choose public. After the push, the published files are read back and compared with the built
ones; a published version can be re-verified later. Every publish, listed or read, carries
verified: true when every file matched, false when any did not, empty before the comparison. An agent's approved push names its publish (result_kind: publish,result_id).
The dataset card is drafted from the version's provenance; you can edit its prose and republish the card on its own.
An agent (through the MCP, Model Context Protocol, server) may ask to publish, but nothing reaches the Hub until the operator approves that exact request; a changed request needs a new approval. The approval names the dataset, the version and every split it pushes with its rows.
The checks
| Check | What it asks |
|---|---|
| C-1 | Does every source licence permit redistribution? |
| C-2 | Can the stored Hugging Face token write to this namespace? |
| C-3 | Does any near-duplicate pair cross into the held-out split? |
| C-4 | Which models labelled or generated rows? (Said every time, in the card.) |
| C-5 | Is there a completed audit sample for this version? |
| C-6 | Does every labeler have a calibration record? |
| C-7 | Does the shortcut audit warn? |
| C-8 | Does every rule set the version carries hold public values only? (See Rule signals.) |
| C-9 | Was the version built under a declared visibility floor (private_only)? A public push of it is refused; a private one is allowed. (See Versions.) |
Each check ends in one of four outcomes:
- green: it passes;
- note: shown and written into the card; it refuses nothing;
- amber: it refuses a public push, and permits a private one with a caveat;
- refused: the push cannot succeed. C-2 (a token that cannot write) refuses every push; C-9
refuses a public push of a version whose data is sensitive (
sensitive_public_refused), that carries a code rule with a visibility floor (code_rule_floor_public_refused), or that was built under a declaredprivate_onlyfloor (private_only_public_refused).
A refused publish records the first refusing check's own code as its error.code
(token_cannot_write is C-2's), and its message is that check's reason and next step.
error.details.refused names every refusing check with its code, and error.details.checks lists
every blocking check. A public push stopped by amber checks alone is publish_refused_amber. A
refusing check that names no code of its own is recorded as publish_check_refused, never as
another check's code.
The Hub can still refuse a write after C-2 passed, for example a fine-grained token that does not
include this repository. A 403 while creating the repository, committing or making it public is
recorded the same way: the publish is refused with token_cannot_write, and C-2 is refused in
error.details.checks and error.details.refused, its evidence naming the stage and the status.
Any other Hub error is a failed publish with the Hub's code.
A check whose owner has not run (for example no audit sample yet) is amber, never a pass. The calibration and curation pages say how to clear C-5, C-6 and C-7; Rule signals says how to clear C-8.
A version built from session data (recorded user traffic; see Importing data)
carries an amber session_data caveat in every manifest and card, and the screen warns before a
public push. Recorded user traffic makes the version sensitive, so C-9 refuses the public push
(sensitive_public_refused); publish it privately. (This follows suite decision P42, which
replaced the earlier warn-only rule for public pushes; the operator confirmed it on 2026-11-16.)
Export files for training
Export writes files to disk without touching the Hub, so it needs no approval:
| Target | What it writes |
|---|---|
| TRL | A training set in the shape TRL (Transformer Reinforcement Learning, Hugging Face's training library) expects: sft, dpo, kto, grpo_prompt or prm. |
| miForge set | A prompt_set, corpus, preference_pairs, test_set or retention_set for miForge. |
| Reward bundle | A reward function for TRL's GRPO (Group Relative Policy Optimization) trainer, from a GRPO prompt version, a rubric and a judge model: reward.py, the rubric, its configuration (the names of the environment variables holding the judge's endpoint and key, never their values) and a README. |
Training files are Parquet by default, or JSONL. Each export has a manifest with its digest, and the files
can be downloaded from the export's record. A miForge set can also be delivered to miForge from a
private Hub repository by publishing with the miforge_set target.
The handoff contract
Every published or exported version carries a manifest in the midataworks.dataset-version/v1
format (the JSON Schema is docs/schemas/midataworks-dataset-version-v1.json in the repository).
miWorkbench and miForge read it to know exactly which rows, splits and labels they received.