Skip to content

miner env-reference generator misses coding-agent driver env vars #6994

Description

@JSONbored

Context

packages/loopover-miner/scripts/generate-env-reference.mjs's DEFAULT_SOURCE_ROOTS (lines 9-12) only scans packages/loopover-miner/{bin,lib,scripts} — it never scans packages/loopover-engine/src/miner/**, where the coding-agent driver actually lives. Four env vars are read there but absent from the generated packages/loopover-miner/docs/env-reference.md:

  • MINER_CODING_AGENT_PAUSED — the coding-agent kill-switch, read at packages/loopover-engine/src/miner/coding-agent-mode.ts:26.
  • MINER_CODING_AGENT_TIMEOUT_MSpackages/loopover-engine/src/miner/driver-factory.ts:50-51,88.
  • MINER_CODING_AGENT_CLAUDE_MODELdriver-factory.ts:50,215.
  • MINER_CODING_AGENT_CODEX_MODELdriver-factory.ts:51,217.

MINER_CODING_AGENT_PROVIDER (the same feature family's provider-selection var, presumably read from a file already inside the scanned roots) already appears in the generated doc — these four sibling vars from the same family are silently missing because the file that reads them (packages/loopover-engine/src/miner/*.ts) is outside the generator's scan scope.

Requirements

  • Add packages/loopover-engine/src/miner to DEFAULT_SOURCE_ROOTS in packages/loopover-miner/scripts/generate-env-reference.mjs.
  • Regenerate packages/loopover-miner/docs/env-reference.md (npm run miner:env-reference or the repo's equivalent script name — confirm the exact script) and commit the result in the same PR — a stale generated file fails CI.
  • Do not manually hand-edit the generated file — it must come from running the generator.
  • Verify the newly-scanned root doesn't pull in unrelated packages/loopover-engine env vars that belong to a different generator/doc (scope the addition narrowly to src/miner specifically, not the whole package, unless the generator's own logic already filters correctly).

Deliverables

  • DEFAULT_SOURCE_ROOTS includes packages/loopover-engine/src/miner
  • Regenerated env-reference.md includes all four MINER_CODING_AGENT_* vars
  • Test asserting the generator's scan picks up at least one of these four vars from the newly-added source root

Test Coverage Requirements

99%+ Codecov patch coverage on every changed line and branch, plus the regression test above.

Expected Outcome

All four coding-agent driver env vars are documented in the generated miner env reference, matching what the code actually reads, alongside the already-documented MINER_CODING_AGENT_PROVIDER.

Links & Resources

packages/loopover-miner/scripts/generate-env-reference.mjs:9-12 (DEFAULT_SOURCE_ROOTS). packages/loopover-engine/src/miner/coding-agent-mode.ts:26, driver-factory.ts:50-51,88,215,217 — the actual read sites.

Metadata

Metadata

Assignees

No one assigned

    Labels

    gittensor:bugGittensor-scored bug fix — scores a 0.05x multiplier.help wantedExtra attention is needed

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions