Commit 378db17
refactor(ai,python): author voRequest/voResponse columns; remove derive_trace_fields + pre_freeze hook
Trace entities now AUTHOR their typed voRequest/voResponse jsonb columns
explicitly (field.object + @objectref + @storage:jsonb) rather than having
the loader DERIVE them by injecting synthetic field.object nodes at load
time. This removes the only load-time metadata mutation in the Python
AI-trace feature.
- Delete loader/derive_trace_fields.py + its unit test.
- Remove the generic pre_freeze loader hook from MetaDataLoader (__init__
param/assignment/comment, the load() invocation, the from_directory
passthrough, and the now-unused Callable import).
- cli._load_root reverts to plain MetaDataLoader.from_directory(metadata_dir).
- trace_helper_generator is unchanged (already defines a local LLM_CALL_BASE;
never imported from the deriver) — it emits the typed columns off the
prompt's @responseRef/@payloadRef, no derivation needed.
- Integration fixture restores the Slice-1 authored voResponse shape; the
round-trip test loads with plain MetaDataLoader(strict=True) and drops the
no-longer-authored voRequest DDL column.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 36a19af commit 378db17
6 files changed
Lines changed: 16 additions & 278 deletions
File tree
- server/python
- src/metaobjects
- loader
- tests
- integration
- unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | 44 | | |
46 | 45 | | |
47 | 46 | | |
| |||
107 | 106 | | |
108 | 107 | | |
109 | 108 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
| 109 | + | |
114 | 110 | | |
115 | 111 | | |
116 | 112 | | |
| |||
Lines changed: 0 additions & 96 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| |||
83 | 82 | | |
84 | 83 | | |
85 | 84 | | |
86 | | - | |
87 | 85 | | |
88 | 86 | | |
89 | 87 | | |
90 | 88 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | 89 | | |
98 | 90 | | |
99 | 91 | | |
| |||
140 | 132 | | |
141 | 133 | | |
142 | 134 | | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | 135 | | |
150 | 136 | | |
151 | 137 | | |
| |||
167 | 153 | | |
168 | 154 | | |
169 | 155 | | |
170 | | - | |
171 | 156 | | |
172 | 157 | | |
173 | 158 | | |
174 | 159 | | |
175 | 160 | | |
176 | | - | |
177 | 161 | | |
178 | | - | |
| 162 | + | |
179 | 163 | | |
180 | 164 | | |
181 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
7 | 5 | | |
8 | 6 | | |
9 | 7 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 8 | + | |
17 | 9 | | |
18 | 10 | | |
19 | 11 | | |
20 | 12 | | |
21 | 13 | | |
22 | 14 | | |
23 | 15 | | |
24 | | - | |
25 | | - | |
| 16 | + | |
26 | 17 | | |
27 | 18 | | |
28 | 19 | | |
29 | 20 | | |
30 | 21 | | |
31 | 22 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
53 | | - | |
54 | 52 | | |
55 | 53 | | |
56 | 54 | | |
| |||
73 | 71 | | |
74 | 72 | | |
75 | 73 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
80 | 78 | | |
81 | 79 | | |
82 | 80 | | |
| |||
This file was deleted.
0 commit comments