mail-address-semantics/mas-modes-v0.1-spec
tegwick 87be0d1da3 MAS-WP-0010 finished: email slave role, stub outside master, contract flows, SCP-8
- EmailMode slave role: master-issued case ids, events to the master,
  sends only on instruction or autonomous policy, transfers blocked or to
  a primed webhook, timeouts left to the master; principle 10 refusals
  reported back.
- conformance/flows.json (13 flows) + mas_modes.runner; mas test runs the
  mode corpus (172/172).
- SCP-8 / v0.2 section 7.1: !MODE requests a handoff defined by the mode
  contract. docs/reuse-surface.md.
- Deploy image copies mas_modes (ticket service imports its mailer).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Assistant: claude-code
Assistant-Model: opus
Assistant-Process: 5787@bnt-lap001
Assistant-Session: 5db26b82-138b-40cc-9856-4d5eb0f752fd
2026-10-19 11:03:16 +02:00
..
conformance MAS-WP-0010 finished: email slave role, stub outside master, contract flows, SCP-8 2026-10-19 11:03:16 +02:00
schema MAS-WP-0010 T01-T05: mode contract v0.1, schemas, callback stub, email as master 2026-10-19 10:57:20 +02:00
CONTRACT.md MAS-WP-0010 T01-T05: mode contract v0.1, schemas, callback stub, email as master 2026-10-19 10:57:20 +02:00
README.md MAS-WP-0010 finished: email slave role, stub outside master, contract flows, SCP-8 2026-10-19 11:03:16 +02:00

MAS mode contract v0.1 (draft): specification bundle

How email hands a case to another communication mode, and how email works as one element of a control flow it does not own. It is versioned separately from the MAS address specification (mas-v0.2-spec/, §7).

Contents

  • CONTRACT.md: normative text (roles, transport, status machine, message types, principle 10)
  • schema/mas-modes-v0.1.schema.json: every contract message
  • schema/mas-event-v0.1.schema.json: the normalized gateway event (mas-gateway → application, and case.intake / case.message payloads)
  • conformance/transitions.json: the status machine as data
  • conformance/messages.json: valid and invalid messages
  • conformance/flows.json: scripted flows for MAS-MODES-EMAIL-MASTER and MAS-MODES-EMAIL-SLAVE
  • conformance/statute.json: the statute the flows run under

The reference email side, the callback stub and the stub outside master are in mas_modes/. mas test runs this bundle against them.