Skip to content

fix(miner): idea-feasibility.js implements #5671's freeform feasibility gate but nothing calls it #6155

Description

@JSONbored

Context

packages/loopover-miner/lib/idea-feasibility.js (whole file, 69 lines) exports assessIdeaFeasibility/deriveIdeaIssueStatus, fully implemented and documented against #5671/#4779, and cross-referenced by docs/idea-intake-bridge-schema.md. A repo-wide search finds zero callers anywhere in bin/, lib/, or test/unit — it's built but never wired into the freeform idea-intake pipeline it was designed for.

Requirements

  • Identify the real call site: the freeform idea-intake flow (per #4779's schema and docs/idea-intake-bridge-schema.md) that should run every submitted idea through assessIdeaFeasibility/deriveIdeaIssueStatus before it's allowed to consume compute, the same way the metadata-resolved-issue path already runs through feasibility-cli.js (#4270).
  • Wire the module in at that call site, following the precedent feasibility-cli.js already establishes for issue-based feasibility gating.
  • If, on investigation, the intended call site genuinely doesn't exist yet (the freeform intake pipeline itself is incomplete), scope this issue down to exactly what's missing and file a follow-up for the rest rather than leaving this issue half-addressed.

Test Coverage Requirements

99%+ Codecov patch coverage on the new call site and any modified control flow; the module's own existing unit tests should continue passing unmodified unless its interface needs to change to fit the real call site.

Deliverables

  • assessIdeaFeasibility/deriveIdeaIssueStatus wired into the real freeform-idea-intake call site.
  • Test coverage for the new integration point.

Expected Outcome

A freeform idea submission that was never going to succeed gets rejected/flagged before compute is allocated, matching the issue-based feasibility gate's existing behavior.

Links & Resources

  • packages/loopover-miner/lib/idea-feasibility.js (whole file)
  • docs/idea-intake-bridge-schema.md, #5671, #4779, #4270 (feasibility-cli.js precedent)

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