Commit 781deaa
fix(verify): resolve @payloadRef by FQN short-segment in verify --templates
FR-026 expands @payloadRef to a fully-qualified `a::b::Name`, but
`_resolve_payload_vo` (the verify --templates drift gate) matched only the bare
short `name` of the object.value child — so a templated prompt whose payloadRef
desugared to an FQN failed with "did not resolve to an object.value", even though
`gen` resolved it fine. Match the FQN's last segment too.
Regression surfaced by a downstream Python consumer; the conformance corpus didn't
cover an FQN-form @payloadRef against verify --templates.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 1d01654 commit 781deaa
2 files changed
Lines changed: 27 additions & 2 deletions
File tree
- server/python
- src/metaobjects/codegen/generators
- tests/codegen
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
148 | 151 | | |
149 | 152 | | |
150 | 153 | | |
151 | | - | |
| 154 | + | |
152 | 155 | | |
153 | 156 | | |
154 | 157 | | |
| |||
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
394 | 395 | | |
395 | 396 | | |
396 | 397 | | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
0 commit comments