Mail relay: launch and a domain move need no click; a non-public copy neither enrols nor sends by itself

The copy rule now goes by direction. A public site that finds another host's connection in its database
(its development address after launch, its old domain after a move) enrols by itself. A site that says it
is not public - IAPL_NOINDEX=1, or a host in the new mail.relay.developmentHosts - and holds another host's
connection is a copy of that site's data: it neither enrols nor sends until "Connect again", also when it
has a token of its own (production's database copied back onto the development address). The consent is
stored with the copy (acceptedHosts), so the next fresh copy waits again.

- mail.relay.otherHosts: 'auto' (default) | 'wait' | 'enrol' | list of the site's own hosts
- mail.relay.developmentHosts, siteIsNonPublic() exported
- the copy refusal ends when its reason does (no cool-down; the panel recomputes it on every read)
- doctor: info for a public site whose database knows another host (the launched site, or a copy that
  forgot IAPL_NOINDEX)
- contract copy 1.7.1 (wording only)
- docs, AGENT.md, skills, changelog draft

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-26 00:46:16 +01:00
co-authored by Claude Fable 5.2
parent acfcf72c03
commit 49927205bb
30 changed files with 443 additions and 119 deletions
+9 -1
View File
@@ -1,6 +1,14 @@
# Changelog of the wire contract
## 1.7.0 — 2026-11-25 (not released; no tag yet)
## 1.7.1 — 2026-11-25 (not released; no tag yet)
Wording only; nothing for a client to change, and a copy of 1.7.0 need not be refreshed for it.
- **1.7.0 is required, not optional.** A client of 1.6 or older gets `400 invalid-request` on every request
that carries a token, because it does not send `X-Intecion-Site`. By the rule for development versions (§9)
it was numbered as a minor; read it as a breaking step. No client of 1.6 or older was released.
## 1.7.0 — 2026-11-25 (never released)
From the independent review of the first client. What a client built against 1.6.0 has to change is marked.
+4 -4
View File
@@ -1,8 +1,8 @@
9b254d1aebe0e3e11539f95bb9eabba8984a77f27ea1a12ab9c259f3a3f2df94 README.md
cf9e7137ac9190773856b5d284544d04c188c852a3f3a92f6f68f561060c8626 CHANGELOG.md
bb7320d831e7a151aa901c35e7326c752fa2ef5024f30768c42319b8bed171ed VERSION
3d5c4b7ed53fe6fe2c7c28826c0cf666f9c1d0b79f861b404503e7029728a61f README.md
53da77d5dfff9948d68fca26b828563e21f83418245053d78b03a5aecac6c1d1 CHANGELOG.md
249182a01164b81a5f7af87e5c5cdbd3344a80a7a66dfca624cecfb1501b2420 VERSION
2ff0ad5b6a245365c0fa8733fa17b7bbd3ab91d4825981709d0fd02b762b939f schema.json
766fe0ed81037c230ab64e9fea2f9e6e5e828c5744bd90c61d9a2ad374a83100 runner.mjs
9d8381d2e3465e97dc801a61f598fcf822e27e73a2c0729877744ec307097910 runner.mjs
7c46860adee597e570832c72bcdb418752a20b9f7d1b2d7a656ed065f9632b2a checksums.mjs
df6015faf02a7cf7e9b5816b9e22b2e82968678ddd72a61c1f9665a8c0897ddf examples/callback-confirm-wordpress.json
f5018ca4fb7d25794ee92168d715aaf47feeba3d907c0550651b16c10a691ceb examples/callback-confirm.json
+2 -2
View File
@@ -1,6 +1,6 @@
# Intecion Notifications Webservice — wire contract
Version: see [`VERSION`](VERSION) (this text describes **1.7.0**). Path prefix of this major version: `/v1`.
Version: see [`VERSION`](VERSION) (this text describes **1.7.1**). Path prefix of this major version: `/v1`.
This is the whole agreement between the Intecion Notifications Webservice ("the service" below) and a client (the mail transport built into a
site's plugin). It names no product: nothing here says Payload, WordPress, IAPL or IAWL except the values of
@@ -360,7 +360,7 @@ not go out ([`StatusResponse`](schema.json)):
```json
{ "ok": true, "state": "active", "host": "example.com", "product": "iapl",
"service": { "name": "Intecion Notifications Webservice", "version": "1.0.0", "contract": "1.7.0" },
"service": { "name": "Intecion Notifications Webservice", "version": "1.0.0", "contract": "1.7.1" },
"sender": { "address": "[email protected]" },
"limits": { "messagesPerHour": 30, "messagesPerDay": 200, "recipientsPerMessage": 10,
"perRecipientPerDay": 10, "newRecipientsPerDay": 50,
+1 -1
View File
@@ -1 +1 @@
1.7.0
1.7.1
+1 -1
View File
@@ -2,7 +2,7 @@
// No dependency. Works in Node 20+ and in the Workers runtime (uses only WebCrypto, btoa and TextEncoder).
// How to use it: README.md, "The examples and the runner".
export const CONTRACT_VERSION = '1.7.0'
export const CONTRACT_VERSION = '1.7.1'
export class ContractError extends Error {
constructor(exampleId, message) {