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.
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/activestatus) — the client-side bookkeeping half of "is this issue already being worked" that later phases will pair with the existingsrc/signals/duplicate-winner.tselection logic (already extracted intogittensory-engineby 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 intogittensory-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.packages/gittensory-miner/lib/claim-ledger.js.