save_scores
Save scoring results for GitHub hackathon submissions to persistent storage, updating existing entries and adding new ones to maintain a centralized scoring record.
Instructions
Save scoring results to data/scores.json.
Existing scores for the same Issue are overwritten (idempotent).
New Issues are appended.
Args:
scores: List of scoring result dicts. Each must contain:
- issue_number (int)
- project_name (str)
- track (str)
- criteria_scores (dict[str, int]): per-criterion scores (1-10)
- weighted_total (float): weighted total (0-100)
- evidence (dict[str, str]): per-criterion evidence citations
- confidence (str): 'high', 'medium', or 'low'
- red_flags_detected (list[str]): red flag signals found
- bonus_signals_detected (list[str]): bonus signals found
- strengths (list[str])
- improvements (list[str])
- summary (str)
Returns:
Summary dict (saved_count, updated_count, total_in_store, file_path).
Raises:
OSError: If disk write fails.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scores | Yes |