| 123456789101112131415161718192021222324252627282930313233343536 |
- from __future__ import annotations
- from typing import Any, Literal, TypedDict
- RunStatus = Literal["running", "success", "blocked", "failed"]
- FinalAction = Literal["POOL", "CANDIDATE", "PENDING", "REJECT"]
- EffectStatus = Literal["success", "weak_effective", "pending", "blocked", "failed"]
- class RunState(TypedDict, total=False):
- trace_id: str
- platform: str
- platform_mode: str
- source: str | None
- policy_bundle_version: str
- current_step: str
- status: RunStatus
- errors: list[str]
- source_context: dict[str, Any]
- pattern_seed_pack: dict[str, Any]
- queries: list[dict[str, Any]]
- platform_results: list[dict[str, Any]]
- candidates: list[dict[str, Any]]
- media_assets: list[dict[str, Any]]
- evidence_bundles: list[dict[str, Any]]
- policy_bundle: dict[str, Any]
- rule_decisions: list[dict[str, Any]]
- walk_actions: list[dict[str, Any]]
- source_edge_basis: list[dict[str, Any]]
- trace_events: list[dict[str, Any]]
- source_edges: list[dict[str, Any]]
- search_clues: list[dict[str, Any]]
- final_output: dict[str, Any]
- strategy_review: dict[str, Any]
|