Skip to content

Middleware Decision Response v1

Source schema: doc/schemas/middleware-decision-response.v1.schema.json

Host-facing decision returned by middleware chain handlers.

Governing Basis

Project Lineage

Requirements

Stories

Fields

Field Required Shape Description
decision yes enum: allow, annotate, rewrite, route, return, drop, defer, reject
reason yes string
annotations no object
patch_strategy no string | null
patch no any
route no object | null
next_step no string | null
diagnostics no object
## Field Semantics

decision

  • Required: yes
  • Shape: enum: allow, annotate, rewrite, route, return, drop, defer, reject

reason

  • Required: yes
  • Shape: string

annotations

  • Required: no
  • Shape: object

patch_strategy

  • Required: no
  • Shape: string | null

patch

  • Required: no
  • Shape: any

route

  • Required: no
  • Shape: object | null

next_step

  • Required: no
  • Shape: string | null

diagnostics

  • Required: no
  • Shape: object