| title | Vendor extensions | |||
|---|---|---|---|---|
| sdk | ruby | |||
| kind | guide | |||
| order | 50 | |||
| spec_sections |
|
Event kinds prefixed x-vendor. carry implementation-specific data. The
runtime forwards them verbatim; clients that don't recognize the prefix
ignore them.
x-vendor.<org>.<event>— owned by<org>- Bodies are arbitrary JSON-serializable Hashes
- Standard kinds (without the
x-vendor.prefix) are reserved
ctx.emit(
kind: 'x-vendor.acme.progress',
body: { 'stage' => 'mapping', 'percent' => 50 }
)Unknown kinds round-trip through Arcp::Job::Event with a frozen Hash
body — no EventBody class is allocated.
handle.subscribe(client: client).each do |event|
if event.kind.start_with?('x-vendor.acme.')
stage = event.body['stage']
pct = event.body['percent']
puts "#{stage}: #{pct}%"
end
endevent.known? returns false for vendor kinds.
guides/job-events.md