|
7 | 7 | fixture authors mixing keys across capabilities, and gives runtime code |
8 | 8 | in :mod:`runtime` typed access to the assertion payload it needs. |
9 | 9 |
|
10 | | -Phase 0 typing depth: TOP-LEVEL keys per capability are exhaustively |
| 10 | +Typing depth: TOP-LEVEL keys per capability are exhaustively |
11 | 11 | typed (catches new directives the spec adds). The nested payload values |
12 | 12 | underneath (e.g., individual span tree entries, observer event details) |
13 | 13 | are kept loose as ``list[Any]`` / ``dict[str, Any]`` because the runtime |
14 | | -phases that consume them are the right place to tighten — Phase 1 |
15 | | -will type observer-event entries, Phase 5 will type span_tree, etc. |
| 14 | +code that consumes them is the right place to tighten. |
16 | 15 | """ |
17 | 16 |
|
18 | 17 | from __future__ import annotations |
@@ -44,12 +43,12 @@ class GraphEngineExpected(_ForbidExtras): |
44 | 43 | # Two shapes seen in fixtures: |
45 | 44 | # - dict[observer_name, list[event_dict]] — most fixtures |
46 | 45 | # - list[event_dict] flat — pipeline-utilities/011 (single-observer) |
47 | | - # Permissive ``Any`` until Phase 1 (engine retrofit) tightens. |
| 46 | + # Permissive ``Any`` until the engine retrofit tightens. |
48 | 47 | observer_events: Any = None |
49 | 48 | delivery_order: list[dict[str, Any]] | None = None |
50 | 49 | observer_event_invariants: dict[str, Any] | None = None |
51 | 50 | # 020 — proposal-0012 fixture: assertions about edge-resolution |
52 | | - # failure event shapes. Permissive dict until Phase 1. |
| 51 | + # failure event shapes. Permissive dict until the engine retrofit. |
53 | 52 | # 022–024 (proposal 0010 §6 Drain) — drain-summary invariants |
54 | 53 | # (drain_returned_within_timeout, graph_state_intact_after_timeout, |
55 | 54 | # drain_waited_for_all_events) ride on the same field. |
@@ -90,7 +89,7 @@ class LlmProviderRaisesAssertion(BaseModel): |
90 | 89 |
|
91 | 90 | Permissive — fixtures attach assertion-specific knobs like |
92 | 91 | ``retry_after_seconds`` (rate-limit fixture) without restructuring |
93 | | - the type. The runtime in Phase 2 validates the keys it reads. |
| 92 | + the type. The runtime validates the keys it reads. |
94 | 93 | """ |
95 | 94 |
|
96 | 95 | model_config = ConfigDict(extra="allow") |
@@ -130,7 +129,7 @@ class PipelineUtilitiesExpected(_ForbidExtras): |
130 | 129 | # Two shapes seen in fixtures: |
131 | 130 | # - dict[observer_name, list[event_dict]] — most fixtures |
132 | 131 | # - list[event_dict] flat — pipeline-utilities/011 (single-observer) |
133 | | - # Permissive ``Any`` until Phase 1 (engine retrofit) tightens. |
| 132 | + # Permissive ``Any`` until the engine retrofit tightens. |
134 | 133 | observer_events: Any = None |
135 | 134 | observer_event_invariants: dict[str, Any] | None = None |
136 | 135 | # Singular form used by 015 — assert one specific event shape. |
|
0 commit comments