graphprotocol / graphprotocol/subgraph-dips-indexer-selection
feat: structured selection audit log
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 0
- Forks
- 1
- Avg merge
- 8d 17h
- Merged PRs (30d)
- 1
Description
Motivation
Selection decisions are logged across ~15 separate lines, correlated only by deployment_id and lost on log rotation. No single record captures why an indexer was picked.
Proposal
Per-line logging exists (#103) but is scattered; the consolidated record is the open work. Struck items are already logged today.
One structured JSON record per /select-indexers call with:
Request params: deployment_id, chain_id, num_candidates, budget— existing/blocked still counts only, not identities- Full candidate list: weighted score, sync status, pool — today only top-5 scores + pool counts
- Rejected + why (denylist, pending, declined, decentralisation) — today only aggregate counts
Each pick: pool, indexer, score, decentralisation met / fallbackFinal group
Goal: reconstruct any selection from one record (stdout or shared volume), not scattered lines.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the /select-indexers entry point and trace the existing selection logging, including the current top-five scores, pool counts, and aggregate rejection counts. Done means one structured JSON record per call contains the full candidate and rejection details needed to reconstruct the selection, written to stdout or the shared volume.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, backend, observability
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100