Repository navigation
Description
Priority
extreme
Components
- app/nullius (backend)
- docs and the site
- the standard (ports, kits, relay, runs)
Today
A headless nullius standard run on this machine takes a benchmark's data-provider token (GAIA's HF_TOKEN) only from the provider's store, secrets/data-provider-huggingface/. The Settings page writes that store, and no command does. HF_TOKEN in the environment is ignored for a standard benchmark:
standard/cli.pylicences()returns(None, None)unlessNULLIUS_LICENCESis set, which happens only on a host. Without it the run "reads the benchmark's own store".run.Licences.getreadssecrets.store_of(...), and no environment fallback exists.
A CI job that installs Nullius in a fresh profile therefore has no supported way to give GAIA its token. One downstream CI builds NULLIUS_LICENCES itself (base64 JSON of base64 values). That is the internal launcher-to-host handoff (secrets.HANDED, secrets.unpack), which can change without notice.
The documentation already says Harbor runs "use the HF_TOKEN of the environment Nullius started in" (docs/settings/data-providers.md), and model keys are read from the environment before settings.json (docs/cli/run.md, Keys). Standard benchmarks are the exception.
Wanted
A headless standard run (standard run, standard prove, and shard where it applies) takes a data-provider token the benchmark declares from the process environment, under the provider's variable (HF_TOKEN for Hugging Face). The environment wins over the stored value, as it does for model keys and HF_ENDPOINT. The token keeps every guarantee it has today. It goes only to the driver of a benchmark that declares it, never to an agent, an Original setup's model calls, the relay or a log. Without a declaration, an environment token is not passed on.
Acceptance
- A standard run on this machine uses
HF_TOKENfrom the environment for a benchmark whose environment declares the Hugging Face provider, without anything in the store - The environment value wins over a stored token; a stored token still works when the variable is unset or empty
- The token reaches only the declaring benchmark's driver, on both
localand--backend container; the agent, the relay and setup or conformance processes never see it, and logs redact it - A benchmark that declares no data provider gets no
HF_TOKENfrom the environment - A run started by the app (
--from-run) and a run on a host behave as today -
docs/settings/data-providers.mdanddocs/cli/run.mdsay that a headless standard run reads the provider's variable from the environment - Tests cover the environment token, its precedence over the store, that it reaches only the driver, and the undeclared case
Dependencies and related
- Settings: no Hugging Face endpoint, so GAIA ignores a mirror and downloads from huggingface.co #128 (closed): the Hugging Face endpoint setting;
HF_ENDPOINTfrom the environment already works headless. - Add GAIA on the Nullius standard #106 (merged): GAIA on the standard, the first benchmark with a gated Hugging Face dataset.
Activity
feat(standard): read a data provider's token from the environment in …