Commit e14466e
feat: emit INTENT-4 template registrations in the intent runner
The runner's _register_templates() only emitted the legacy
padatious:register_intent topic. kw-template-matcher (from 0.1.6a1)
also binds the OVOS-INTENT-4 §6 spec topic
ovos.intent.register.template and keys templates learned from it as
"skill_id:intent_name" — the same skill-prefixed form m2v-style
fighters return in IntentHandlerMatch.match_type. The runner never
emitted that topic, so its own transformer slot lookup (always keyed
by the bare, normalised intent id) could only ever hit the legacy-topic
registration.
Emit ovos.intent.register.template alongside the legacy topic (mirrored
onto the transformer bus, matching ovos-workshop's own dual-emit in
Skill.register_template()), and make _transform_slots try both the bare
and the "arena:<intent_id>" skill-prefixed lookup keys so a transformer
that only recognises the spec-form key still fills slots. Both
registration messages carry context={"skill_id": "arena"}: OVOS-INTENT-4
§3.1 engines key registration on message.context, not message.data.
Adds the floor pin keyword-template-matcher>=0.1.6a1 to the test extra.
Fail-before: with only the source change reverted,
test_register_templates_emits_spec_topic and
test_transform_slots_falls_back_to_skill_prefixed_key fail (2 failed,
23 passed in tests/test_intent_pipeline.py); with only the context
argument reverted, test_register_templates_emits_spec_topic fails with
KeyError: 'skill_id' on seen[0].context. All 25 pass with the fix. The
22 failures elsewhere in the suite fail identically on origin/dev in
the same venv (missing `datasets` and similar), unchanged by this
branch.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>1 parent e633a7b commit e14466e
3 files changed
Lines changed: 104 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
93 | 99 | | |
94 | 100 | | |
95 | 101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
309 | | - | |
| 309 | + | |
310 | 310 | | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
311 | 332 | | |
312 | 333 | | |
313 | | - | |
314 | | - | |
315 | | - | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
316 | 338 | | |
317 | 339 | | |
| 340 | + | |
318 | 341 | | |
319 | 342 | | |
320 | 343 | | |
| |||
405 | 428 | | |
406 | 429 | | |
407 | 430 | | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
412 | 439 | | |
413 | 440 | | |
414 | 441 | | |
415 | 442 | | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
428 | 460 | | |
429 | 461 | | |
430 | 462 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
263 | 309 | | |
264 | 310 | | |
265 | 311 | | |
| |||
0 commit comments