WebhookAdapter: prompt templates with dot-notation #816

Closed
opened 2026-10-27 13:37:52 +00:00 by sam · 0 comments
Owner

Implement prompt template system with dot-notation variable interpolation ({pull_request.title}, {raw}) for building dynamic prompts from webhook payloads.

Notes

Partially done: internal/channels/webhook/webhook.go:243-264 extractText() does single-field dot-notation extraction (RouteConfig.Template = "issue.title"), not multi-variable interpolation. This issue wants a template string with multiple {field.path} placeholders plus a {raw} escape hatch -- extractText needs to become a real interpolation pass (parse placeholders, resolve each dot-path, substitute), not a single-path lookup. RouteConfig.Template's meaning would change from 'the one field to extract' to 'a template string' -- update its doc comment in the same change.

Close reason

Superseded: the WebhookAdapter design is replaced by event capture (t2db): captures, event types, mappings by example, bindings and CEL playbooks. Retry dedup filed as its own t2db bead.


Imported from beads archie-core-1786637497271-284-573ca138 · GitHub #305 · type task · priority P2 · created 2026-08-08 · closed 2026-10-05

Implement prompt template system with dot-notation variable interpolation ({pull_request.title}, {__raw__}) for building dynamic prompts from webhook payloads. ### Notes Partially done: internal/channels/webhook/webhook.go:243-264 extractText() does single-field dot-notation extraction (RouteConfig.Template = "issue.title"), not multi-variable interpolation. This issue wants a template string with multiple {field.path} placeholders plus a {__raw__} escape hatch -- extractText needs to become a real interpolation pass (parse placeholders, resolve each dot-path, substitute), not a single-path lookup. RouteConfig.Template's meaning would change from 'the one field to extract' to 'a template string' -- update its doc comment in the same change. ### Close reason Superseded: the WebhookAdapter design is replaced by event capture (t2db): captures, event types, mappings by example, bindings and CEL playbooks. Retry dedup filed as its own t2db bead. --- _Imported from beads `archie-core-1786637497271-284-573ca138` · GitHub #305 · type task · priority P2 · created 2026-08-08 · closed 2026-10-05_
sam added the mediumtask labels 2026-10-27 13:37:52 +00:00
sam self-assigned this 2026-10-27 13:37:52 +00:00
sam closed this issue 2026-10-27 13:37:52 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: sam/archie#816