Skip to content

feat(webhooks): expose remote result metadata to post hooks - #32

Merged
avoguru merged 2 commits into
mainfrom
codex/mcp-post-hook-metadata
Oct 25, 2026
Merged

avoguru merged 2 commits into
mainfrom
codex/mcp-post-hook-metadata

Conversation

@avoguru

@avoguru avoguru commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Part of PLT-2344

What/why

Allow post-execution webhooks to inspect and replace remote MCP result metadata. An omitted override preserves metadata; an empty object clears it. Reserved Arcade fields are excluded by the Engine.

Codebase changes

Add optional metadata objects to the post-hook request and output override. Use json.RawMessage in generated Go clients to preserve JSON numbers. Define post-hook output shapes for remote JSON-RPC errors and input_required results; confirmation overrides preserve the exact request key set.

Proof

Schema validation passes at 94d0295. The Engine client was generated from this PR source; webhook regressions cover metadata replacement, empty-object clearing, and integer precision. Generation from schemas/main remains pending this PR’s merge.

Additional notes

Companion contract for monorepo #5192. Merge this schema before regenerating the Engine client from schemas/main.

@avoguru
avoguru marked this pull request as ready for review October 23, 2026 17:41
@avoguru
avoguru requested a review from josebarrueta October 24, 2026 01:55
@avoguru
avoguru merged commit 3bc0a81 into main Oct 25, 2026
1 check passed
@avoguru
avoguru deleted the codex/mcp-post-hook-metadata branch October 25, 2026 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants