MVP-1.3 · Ladder enforcement on webhooks, MCP and the runner API #264

Open
opened 2026-09-20 20:17:20 +00:00 by sharang · 0 comments
Owner

Goal

Contract 2.0 §9.3 defines the tenant ladder (active → restricted → halted → archived). The scheduler honours it; the webhook server, the MCP server and the Werkbank runner API do not, so a halted or archived tenant can still push work into the platform.

What to change

  • The webhook server checks the ladder before accepting a delivery.
  • The MCP server checks the ladder on every call (with MVP-1.12).
  • The runner API checks the ladder before handing out or accepting jobs.
  • Keep the scheduler behaviour as the reference implementation and share one helper.

Acceptance

  • Restricted / halted / archived tenants are rejected on the webhook, MCP and runner paths, each with a test.
  • The rejection status matches the contract (402/403/410 as applicable) and is handled by the dashboard (MVP-1.10).
  • A stage script exercises the ladder on webhook and MCP.
## Goal Contract 2.0 §9.3 defines the tenant ladder (active → restricted → halted → archived). The scheduler honours it; the webhook server, the MCP server and the Werkbank runner API do not, so a halted or archived tenant can still push work into the platform. ## What to change - The webhook server checks the ladder before accepting a delivery. - The MCP server checks the ladder on every call (with MVP-1.12). - The runner API checks the ladder before handing out or accepting jobs. - Keep the scheduler behaviour as the reference implementation and share one helper. ## Acceptance - [ ] Restricted / halted / archived tenants are rejected on the webhook, MCP and runner paths, each with a test. - [ ] The rejection status matches the contract (402/403/410 as applicable) and is handled by the dashboard (MVP-1.10). - [ ] A stage script exercises the ladder on webhook and MCP.
sharang added this to the Production MVP milestone 2026-09-20 20:17:20 +00:00
sharang added the securityenhancement labels 2026-09-20 20:17:20 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#264