Files
gaokao-volunteer-system/data/rules/models.py
Hermes Agent ae4835eeab
Some checks failed
CI / pytest (Python 3.10) (push) Has been cancelled
CI / pytest (Python 3.11) (push) Has been cancelled
CI / pytest (Python 3.12) (push) Has been cancelled
feat(rules): add phase1 truth source loader and rules cli
2026-06-16 18:14:41 +08:00

27 lines
507 B
Python

from __future__ import annotations
from dataclasses import dataclass
from typing import Any
@dataclass(frozen=True)
class LoadedRule:
rule_id: str
title: str
severity: str
value: dict[str, Any]
source_evidence_id: str
effective_date: str
status: str
scope: str
province: str | None = None
year: int = 2026
version: str = "2026.1"
@dataclass(frozen=True)
class RulesStatus:
province_count: int
national_rule_count: int
active_provinces: list[str]