Skip to content

Standard: a headless run ignores HF_TOKEN in the environment, so a CI cannot give GAIA its token #151

Description

@aitianshi

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.py licences() returns (None, None) unless NULLIUS_LICENCES is set, which happens only on a host. Without it the run "reads the benchmark's own store".
  • run.Licences.get reads secrets.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_TOKEN from 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 local and --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_TOKEN from the environment
  • A run started by the app (--from-run) and a run on a host behave as today
  • docs/settings/data-providers.md and docs/cli/run.md say 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

Activity

  1. added
    enhancement
    P2
    on Nov 16, 2026
  2. self-assigned this
    on Nov 16, 2026
  3. added a commit that references this issue on Nov 17, 2026
    c02a5e4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2enhancement

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions