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
This commit is contained in:
tegwick 2026-10-19 11:03:16 +02:00
parent e91cd01a02
commit 87be0d1da3
16 changed files with 1396 additions and 17 deletions

View file

@ -41,13 +41,15 @@ delivery stays external.
tested against a real Postfix by `experiments/postfix-probe/` and
`tests/test_postfix_profile.py` (needs Docker). Exim: notes only
(`integrations/exim/NOTES.md`).
- **Mode reference implementation** (new; INTENT.md, *Mode reference
implementation*). A language-neutral mode contract (handoffs, statuses,
timeouts, master/slave roles, outside-master commands) with JSON schemas
and fixtures. The email side implements both roles: master per resource
type, or slave to an outside master that issues case ids. Test stubs: a
scripted callback mode and a fake outside master. Email is the only real
channel.
- **Mode reference implementation** (INTENT.md, *Mode reference
implementation*). `mas-modes-v0.1-spec/` is a language-neutral contract
(handoffs, statuses, timeouts, master/slave roles, outside-master
commands) with JSON schemas, including the gateway event, and
conformance flows. `mas_modes/` holds the email side in both roles
(master per resource type over the ticket service, or slave to an
outside master that issues case ids), a scripted callback stub, a stub
outside master and the flow runner. Email is the only real channel. See
`docs/reuse-surface.md`.
- **Live test environment.** `deploy/railiance/`: the MX for
`mas.coulomb.social`, with replies through Scaleway TEM capped at 300.
It is temporary; MAS-WP-0007 retires it.
@ -76,15 +78,16 @@ delivery stays external.
- Status: active. The reference experiment (MAS-WP-0002) passed its
decision gate on 2026-10-18; the findings are in
`docs/experiment-review.md`.
- Finished: MAS-WP-0001 to 0006 and 0008. Postfix profile, v0.1.1 errata,
- Finished: MAS-WP-0001 to 0006, 0008 and 0010. Postfix profile, v0.1.1 errata,
v0.2 draft, address composer, and v0.2 conformance cases.
- Open: MAS-WP-0007 (retire the live MX; backlog, unblocked) and
MAS-WP-0009 (declare v0.2 final; waits for a second implementation or
deployment).
- v0.2 stays a draft (founder, 2026-10-19).
- P2 is decided: `!MODE` requests a handoff, defined by the mode contract
(founder, 2026-10-19). The mode contract and stubs are not started yet;
they need a workplan.
- P2 is decided: `!MODE` requests a handoff (founder, 2026-10-19; SCP-8,
v0.2 §7.1). The mode contract v0.1 draft and the reference
implementation are done (MAS-WP-0010); `mas test` runs the contract
corpus.
- The live `mas-mx` pod runs an image built before the profile refactor.
- Tests: `.venv/bin/pytest` runs 199 tests, offline apart from loopback
fixtures and the Docker probe.