Skip to content

GEN-2158 Replace webhook handlers with JSON conditions and explicit cutover - #207

Merged
exe-dev-github-integration[bot] merged 5 commits into
mainfrom
feat/gen-2158-webhook-conditions
Oct 9, 2026
Merged

exe-dev-github-integration[bot] merged 5 commits into
mainfrom
feat/gen-2158-webhook-conditions

Conversation

@asselstine

@asselstine asselstine commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

Webhook filtering now uses validated json-rules-engine condition trees instead of executable JavaScript. Ordinary webhook deliveries, delayed GitHub verification, and REST/MCP preview evaluate the same prepared job context; conditions never transform that context. The React JSON editor calls the canonical v1 endpoint, exposes validation details, and preserves provider routing, conditions, and trigger identity.

Removes the legacy runtime, API/MCP capability, schema fields, UI/docs, and Worker loader binding. Explicit migration 0013 recognizes only the reviewed Build Manager handler and aborts on any unexpected stored handler. It disables affected triggers through deployment, removes the legacy property, and installs the three exclusion groups. A deployment-marker gate restores prior enabled states after the new Worker is live; a database constraint prevents legacy writes.

Validation passed:

  • Full workspace checks on the branch, speculative merge commit, and main: 346 API tests passed (8 existing skips), 31 app tests, OpenAPI/client generation, package boundaries, type checking, Workers dry runs, hosting/OAuth/rollback runtime checks.
  • Compiled React + actual Worker API + PostgreSQL slice: 2 tests passed.
  • Actual shared evaluator in workerd without Node compatibility or a worker-loader binding; matcher limits/types/paths, preview/runtime parity, API/MCP authorization and removal boundaries.
  • Explicit cutover/blocker rollback/legacy-write rejection/restoration on local PostgreSQL and an isolated Neon clone. Neon validation inventoried 14 stored triggers and exactly one reviewed handler.
  • Production deployment applied migration 0013, deployed the same Worker, retained assets, restored trigger b5231095-dffd-4a96-bd52-23d7ba745dce enabled=true, and passed public routing checks.
  • Authenticated live REST/MCP preview confirms all three exclusions, accepted/missing-field cases, invalid/legacy request rejection, old endpoint 404, and old tool removal. The five-job/14-trigger live inventory preserves prompts, routing, IDs/slugs and enabled states, with no legacy handler configuration. Database migration/restoration checks and the enforced constraint cover all stored rows.

Merged on main before production cutover to keep concurrent frontend deployments on the conditions runtime. Backend rollback over converted data requires disabling affected triggers first; frontend rollback must retain the conditions API/runtime.

@linear

linear Bot commented Oct 9, 2026

Copy link
Copy Markdown

GEN-2158

@exe-dev-github-integration
exe-dev-github-integration Bot marked this pull request as ready for review October 9, 2026 22:28
@exe-dev-github-integration
exe-dev-github-integration Bot added this pull request to the merge queue Oct 9, 2026
Merged via the queue into main with commit 4a45875 Oct 9, 2026
1 check passed
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