Skip to content

ZEN-92 scaffold: add provisional ingress and report-back integration - #21

Open
anhtuta wants to merge 3 commits into
mainfrom
zen-92
Open

ZEN-92 scaffold: add provisional ingress and report-back integration#21
anhtuta wants to merge 3 commits into
mainfrom
zen-92

Conversation

@anhtuta

@anhtuta anhtuta commented Aug 12, 2026

Copy link
Copy Markdown
  • Added new integrations directory with components for in-memory ingress and report sinks.
  • Implemented MemoryIngressAdapter and MemoryReportSink for testing purposes.
  • Created IntegrationRegistry to manage ingress adapters and report sinks.
  • Added interfaces and types for ingress handling and reporting.

What and why

Closes #

What I ran

  • pnpm verify
  • pnpm test:live (only if the sandbox image, runtime, or model config changed)

Does this cross a line that needs a decision?

Tick anything that applies. None of these block the PR, they just mean a maintainer should weigh in before merge. See CONTRIBUTING.md.

  • adds or widens a contract in packages/protocol
  • adds a dependency to packages/runtime, or otherwise moves the trust boundary
  • gives the controller knowledge of a specific profile or provider
  • adds a dependency, a provider, or a service
  • changes db/schema.ts (a generated migration is committed)
  • changes anything in docs/secrets.md's scope

Docs

  • the docs for the surface I touched are updated, or no doc describes it

- Added new `integrations` directory with components for in-memory ingress and report sinks.
- Implemented `MemoryIngressAdapter` and `MemoryReportSink` for testing purposes.
- Created `IntegrationRegistry` to manage ingress adapters and report sinks.
- Added interfaces and types for ingress handling and reporting.
@anhtuta
anhtuta requested a review from a team as a code owner August 12, 2026 08:48
@anhtuta
anhtuta requested a review from oadtq August 12, 2026 08:48
Tu Ta added 2 commits August 13, 2026 12:06
- Updated `integrations` to include a new REST webhook adapter and report sink.
- Introduced schema validation for incoming webhook requests.
…ggers

- Added configuration options for `WEBHOOK_BEARER_TOKEN` and `WEBHOOK_USER_ID` in `.env.example` and `config.ts`.
- Introduced `webhookRoutes` for handling incoming webhook requests, including authorization and request validation.
- Integrated webhook processing into the application flow, allowing queued runs to be created from webhook events.
- Updated the `createApp` function to include webhook integrations and modified related tests to ensure proper functionality.
- Added new database migration to support the `surface_ref` field in the `runs` table for tracking webhook-triggered runs.
- Enhanced integration tests to validate webhook behavior and response handling.

This commit addresses ZEN-93 and enhances the overall integration capabilities of the application.
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.

1 participant