Commit 8fd9cb7
committed
feat: ADR 0032 M2-T002 — evidence-event taxonomy (mapper-only, additive)
Adds RunEventType members + bidirectional mapper entries for the 19 audit
event types the evidence bundle reads (model_route, git_sandbox_started/
resolved, skill_activated, skill_lifecycle_transition, test_run, undo_applied,
provenance_collected, tool_call_started/use/approved/denied/pending_approval,
tool_error, approval_requested/granted/denied, run_cancelled,
run_pending_approval). Event list verified by grep of run_evidence.py.
Effect: the M2-T001 reader now surfaces these events from the audit JSONL
(previously skipped as legacy) — the M6 fold's only prerequisite (§16).
Mapper/reader only; no emit site changed, nothing newly emitted, so the audit
stream is byte-unchanged (no double-write; §15).
Reader test changes are an intended behavior update, NOT masking: assertions
that evidence events return None were removed (now false) and replaced with
assertions that they are surfaced; a new positive test was added; legacy-skip
examples switched to genuinely-unmapped events. Net coverage is stronger.
Constraint: additive taxonomy/mapper only; zero emit changes; audit output byte-unchanged
Tested: lifecycle 23, run_evidence+summary+receipt 40, smoke 200, acceptance 646/646, full mypy clean 1009 files, ruff clean
Confidence: high
Roadmap-Status: unchanged
Allow-test-weakening: reader tests updated to intended M2-T002 behavior (evidence events now surfaced); removed assertions were newly-false, stronger positive assertions added1 parent d1791c0 commit 8fd9cb7
2 files changed
Lines changed: 92 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
56 | 78 | | |
57 | 79 | | |
58 | 80 | | |
| |||
85 | 107 | | |
86 | 108 | | |
87 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
88 | 130 | | |
89 | 131 | | |
90 | 132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
64 | 79 | | |
65 | 80 | | |
66 | 81 | | |
| |||
95 | 110 | | |
96 | 111 | | |
97 | 112 | | |
98 | | - | |
| 113 | + | |
99 | 114 | | |
100 | 115 | | |
101 | 116 | | |
102 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
103 | 125 | | |
104 | 126 | | |
105 | 127 | | |
| |||
111 | 133 | | |
112 | 134 | | |
113 | 135 | | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
123 | 146 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
| 147 | + | |
| 148 | + | |
129 | 149 | | |
130 | | - | |
| 150 | + | |
131 | 151 | | |
132 | 152 | | |
133 | | - | |
134 | 153 | | |
135 | 154 | | |
136 | 155 | | |
| |||
184 | 203 | | |
185 | 204 | | |
186 | 205 | | |
187 | | - | |
| 206 | + | |
188 | 207 | | |
189 | | - | |
| 208 | + | |
190 | 209 | | |
191 | 210 | | |
192 | 211 | | |
| |||
216 | 235 | | |
217 | 236 | | |
218 | 237 | | |
219 | | - | |
220 | | - | |
| 238 | + | |
| 239 | + | |
221 | 240 | | |
222 | 241 | | |
223 | 242 | | |
| |||
0 commit comments