Skip to content

feat(miner-foundation): local claim ledger scaffold for gittensory-miner #2291

Description

@JSONbored

Add a local claim-ledger table tracking which issues THIS miner instance has locally claimed intent to work on (repo + issue number + claimed-at timestamp + a released/active status) — the client-side bookkeeping half of "is this issue already being worked" that later phases will pair with the existing src/signals/duplicate-winner.ts election logic (already extracted into gittensory-engine by an earlier issue in this phase) to decide, when several LOCAL miner runs or profiles race on the same issue, which one proceeds. This issue is the bookkeeping table only — no actual adjudication logic yet (that's a later-phase concern once there's a real discovery loop to adjudicate for).

Deliverables

References

  • src/signals/duplicate-winner.ts (60 lines) — the election logic this ledger's data will eventually feed, once extracted into gittensory-engine (see the sibling extraction issue in this phase); cite it here as the FUTURE consumer, not a dependency of this issue.
  • migrations/0010_agent_orchestrator.sql — schema-shape precedent (composite scoping by repo + target number, status enum column) to mirror the SPIRIT of.
  • New path: packages/gittensory-miner/lib/claim-ledger.js.

Metadata

Metadata

Assignees

No one assigned

    Labels

    gittensor:featureGittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.help wantedExtra attention is needed

    Projects

    Status
    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions