Repository navigation
Expand file tree
/
Copy pathintegration-system.json
More file actions
2506 lines (2506 loc) · 313 KB
/
Copy pathintegration-system.json
File metadata and controls
2506 lines (2506 loc) · 313 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"$comment": "Standing platform test checklist — area ledger. Hand-edited, append-only; validated by scripts/check-platform-checklist.mjs (pnpm check:platform-checklist). Authoring rules: docs/qa/platform-checklist/README.md · execution protocol: RUNNER.md. FIXTURE MAP for this area (all in-repo, CI-deterministic): the showcase ships four declarative connectors (examples/app-showcase/src/system/connectors/index.ts — rest/openapi/mcp provider-bound instances + one enabled:false catalog descriptor), an outbound webhook (src/automation/webhooks — shipped inactive), a cron job (src/automation/jobs — showcase_health_sweep), an email template (src/system/emails — showcase_task_done_email) and two notify flows (src/automation/flows).",
"area": "integration-system",
"axis": "api",
"title": "Integration & system services — connectors, webhooks, jobs, email templates, notifications",
"items": [
{
"id": "integration-system.connector-declarative-boot",
"title": "Provider-bound declarative connectors materialize at boot for every installed provider kind (rest/openapi/mcp), list with origin:'declarative' state:'ready', and dispatch end-to-end from connector_action",
"since": "v15.1",
"status": "active",
"revision": 6,
"priority": "P1",
"surface": "api",
"fixtures": {
"app": "showcase",
"requires": [
"the three provider-bound showcase instances (examples/app-showcase/src/system/connectors/index.ts): showcase_status_api (provider:'rest', providerConfig.baseUrl self-pointing), showcase_status_openapi (provider:'openapi', file-path spec), showcase_mcp_tools (provider:'mcp', stdio fixture scripts/mcp-fixture.mjs) — #2994/#3062/#3056",
"the provider factories installed in objectstack.config.ts: ConnectorRestPlugin, ConnectorOpenApiPlugin, ConnectorMcpPlugin({ declarativeStdio: ['node'] })",
"the two dispatch flows: ShowcaseDeclarativeConnectorPingFlow (rest getHealth) and ShowcaseMcpConnectorEchoFlow (mcp echo_upper) — examples/app-showcase/src/automation/flows/index.ts"
]
},
"variants": [
"provider: rest — providerConfig { baseUrl }, actions hand-derived by the factory",
"provider: openapi — providerConfig { spec, baseUrl? }; actions derived from the OpenAPI document's operations (getHealth)",
"provider: mcp — providerConfig { transport }; actions derived from the upstream's tools/list (echo_upper)",
"no provider — catalog descriptor (showcase_erp_catalog): registered as metadata only, NEVER in the runtime registry (#2612)"
],
"steps": [
"boot the showcase; capture the boot log lines 'Connector registered: <name> (… origin: declarative)'",
"GET /api/v1/automation/connectors (route ledger: automation.listConnectors); the body is { connectors, total }",
"for each of the three instances, record its descriptor: origin, state, and the actions[] array (key/label/inputSchema/outputSchema/effect)",
"confirm showcase_erp_catalog is ABSENT from the runtime listing (it has no provider — descriptor only)",
"POST /api/v1/automation/showcase_declarative_connector_ping/trigger and .../showcase_mcp_connector_echo/trigger (automation.execute); read each run via GET /automation/:name/runs",
"author the DeclarativeConnectorEntrySchema negatives in a scratch package and build each: (a) providerConfig with NO provider, (b) provider-bound entry that also authors actions[], (c) provider-bound entry with inline authentication { type: 'api-key', … }; capture the three rejections. Then (d) provider: 'no_such_provider': it builds clean (provider is an open snake_case key, not an enum), so boot it and capture the fatal boot output acceptance[4] scores",
"disable one declaration (enabled:false) and reboot; re-list"
],
"acceptance": [
{
"clause": "all three provider variants appear in GET /automation/connectors with origin:'declarative' and state:'ready' — one clause verdict PER variant, none inferred from a sibling",
"oracle": "api",
"verify": "the listing contains showcase_status_api, showcase_status_openapi, showcase_mcp_tools each with origin 'declarative' + state 'ready' (engine.getConnectorDescriptors shape)",
"evidence": "the three descriptors, keyed by provider variant"
},
{
"clause": "actions are DERIVED from each provider's upstream, not authored: the mcp instance's action set equals the fixture server's tools/list (echo_upper), the openapi instance's equals the document's operations (getHealth)",
"oracle": "api",
"verify": "descriptor actions[] against scripts/mcp-fixture.mjs and src/system/connectors/status-openapi.json",
"evidence": "the action arrays next to their upstream sources"
},
{
"clause": "a materialized instance is DISPATCHABLE, indistinguishable from a hand-registered connector: both flows complete and their connector_action outputs land in flow variables (rest ping returns the health payload; mcp echo returns the uppercased string)",
"oracle": "api",
"verify": "the two triggered runs succeed; run output/variables carry the upstream results",
"evidence": "the two run records"
},
{
"clause": "the authoring gate rejects each malformed entry with its located ADR-0097 message: providerConfig-without-provider ('`providerConfig` requires a `provider` …'), instance-authored actions ('must not author `actions` — the … provider derives them from the upstream at boot'), inline secrets ('must not inline secrets via `authentication`; reference credentials with `auth: { type, credentialRef }`')",
"oracle": "build",
"verify": "the three superRefine rejections match packages/spec/src/integration/connector.zod.ts DeclarativeConnectorEntrySchema verbatim on the quoted fragments",
"evidence": "the three error texts"
},
{
"clause": "an unknown provider key is a HARD BOOT ERROR (fail loudly, ADR-0097 §Decision) — never a silently-dead connector",
"oracle": "log",
"verify": "boot with provider:'no_such_provider' aborts with an error naming the provider",
"evidence": "the fatal boot output"
},
{
"clause": "materialization tracks the metadata: a disabled/removed declaration is gone from the listing after reboot (and torn down on reload) — it does not fossilize",
"oracle": "api",
"verify": "post-disable listing omits the instance",
"evidence": "the before/after listings"
}
],
"negative": [
"the catalog descriptor (showcase_erp_catalog) appearing in the RUNTIME listing is a FAIL — descriptor vs instance is the #2612 boundary this whole surface is built on",
"any of the three malformed-entry builds (steps[5] (a)–(c)) passing clean is a FAIL (silent acceptance of an unmaterializable declaration); (d), the unknown provider, is refused at boot (acceptance[4]), not at build"
],
"traps": [
"stale-dist"
],
"automated": {
"kind": "e2e",
"ref": "packages/qa/dogfood/test/showcase-declarative-mcp.dogfood.test.ts — negative[0] ONLY: its case 'materializes all three generic-executor instances at boot — mcp included, state ready' asserts that showcase_erp_catalog is absent from the runtime listing. No pin asserts a full acceptance clause, so acceptance[0]–[5] and negative[1] are driven by hand. That case and the dispatch case 'dispatches the MCP tool end-to-end through the flow connector_action' assert halves only: acceptance[0]'s mcp variant (origin 'declarative', state 'ready') and the rest and openapi variants' state 'ready', not their origin, where the clause asks one verdict per variant; acceptance[1]'s mcp half as containment (echo_upper is among the actions), not the openapi half (getHealth); acceptance[2]'s mcp dispatch (the echo flow's output carries OBJECTSTACK), not the rest ping. acceptance[3]–[5] and negative[1] (the authoring refusals, the unknown-provider boot error, the disabled declaration) rest on no pin at their oracle's layer. Below it: packages/spec/src/integration/connector-provider.test.ts asserts the three superRefine refusals by regex fragment at schema parse (acceptance[3] and negative[1] at unit; no build is run), and packages/services/service-automation/src/connector-materialization.test.ts boots a LiteKernel that rejects an unknown provider ('no provider factory', acceptance[4]) and omits disabled or removed instances from the engine registry over a fake provider (acceptance[5]), in process; the served boot's output and GET /automation/connectors stay the live run's"
},
"source": [
"docs/plans/release-15.1-test-plan.md §B1 (#2994/#3062)",
"packages/spec/src/integration/connector.zod.ts#providerConfig (provider/providerConfig/auth keys + DeclarativeConnectorEntrySchema cross-field rejections, exact messages)",
"packages/spec/src/integration/connector-provider.ts (factory contract; adopt-declared-name; throw ⇒ hard boot error)",
"packages/services/service-automation/src/engine.ts#registerConnector (registerConnector origin 'declarative'; getConnectorDescriptors shape)",
"packages/runtime/src/route-ledger.ts (GET /automation/connectors, POST /automation/:name/trigger, GET /automation/:name/runs)",
"examples/app-showcase/src/system/connectors/index.ts + src/automation/flows/index.ts (the fixtures)"
],
"history": [
{
"revision": 1,
"date": "2026-08-07",
"change": "initial import from the 15.1 plan §B — connectors had no checklist coverage",
"ref": "claude/platform-test-checklist-ocwugl"
},
{
"revision": 2,
"date": "2026-08-07",
"change": "expanded to deep-test contract: concrete steps, multi-clause acceptance, negatives, variants",
"ref": "claude/platform-test-checklist-ocwugl"
},
{
"revision": 3,
"date": "2026-10-20",
"change": "automated.ref narrowed clause by clause, in the scope-depth-asymmetry shape — round 2 part 1 of wave anchor #24579 (comment 6272032736: Tier 1 run #24598 named this ref among those that over-claim clause coverage). QA run #24575 scored every clause pass on the pin's 2/2; read against the spec, its two cases cover negative[0], acceptance[0]'s mcp variant and the other two variants' state, and the mcp halves of acceptance[1] and [2] only. No clause changed",
"ref": "#24717"
},
{
"revision": 4,
"date": "2026-10-20",
"change": "automated.ref narrowed to the one clause its pin asserts whole — checklist-accuracy finding of QA run #24779 (18.0 sweep round 3, 580fd4ed; wave anchor #24579 round 12, round 6's theme-B rule). Re-read at base 307ce4c4b4: the dogfood pin's two cases assert negative[0] whole and halves of acceptance[0]–[2] (the mcp variant; the other two variants' state, not their origin), so no acceptance clause is pin-scored and the ref now says so. `automated` stays, with negative[0]. No clause changed",
"ref": "#24824"
},
{
"revision": 5,
"date": "2026-10-26",
"change": "negative[1] and steps[5] count the build rejections as three — checklist-accuracy finding of QA run #25815 (18.2.0 sweep, release-18.2.0-tier1, 6679644a; wave anchor #25807; card #25844): negative[1] said 'any of the four malformed-entry builds' while acceptance[3] lists three. The fourth probe, provider: 'no_such_provider', builds clean (connector.zod.ts declares provider as an open snake_case string) and is acceptance[4]'s boot error, so steps[5] now boots it. Read on main 9753d163. The same run read the automated.ref self-description as accurate; it is unchanged. No clause changed",
"ref": "#25844"
},
{
"revision": 6,
"date": "2026-10-27",
"change": "automated.ref names the two pins below acceptance[3]–[5] and negative[1] instead of saying no pin exists. Checklist-accuracy finding of the 18.2.0 wave 2 (QA run #26450, release-18.2.0-w2-tier1-b, at 756220c4; wave anchor #25807, slice A): the mapping pass scored those clauses partial from connector-provider.test.ts and connector-materialization.test.ts, neither in the ref. No clause changed",
"ref": "#25807"
}
]
},
{
"id": "integration-system.connector-degraded-recovery",
"title": "An unreachable connector upstream degrades that ONE instance (CONNECTOR_UPSTREAM_UNAVAILABLE) instead of failing boot, retries on 5s→300s backoff, and recovers atomically — while config faults stay boot-fatal",
"since": "v15.1",
"status": "active",
"revision": 6,
"priority": "P1",
"surface": "api",
"fixtures": {
"app": "showcase",
"requires": [
"the showcase_mcp_tools stdio instance — break its upstream deterministically by making its script unreachable: point providerConfig.transport.args at a nonexistent script (the experiment its own fixture comment prescribes, examples/app-showcase/src/system/connectors/index.ts#DevToolsMcpConnector), or move scripts/mcp-fixture.mjs out of the app, as QA run #24575 did. Do either in a SCRATCH copy of examples/app-showcase, for every boot of this item (steps[0] and steps[5]), never the shared tree. The path is relative to the serving process's cwd (./scripts/mcp-fixture.mjs), and moving the file is the variant steps[4] can undo with no config change",
"a config-fault twin for the both-sides check: the same entry with an invalid providerConfig shape (e.g. transport.kind: 'carrier_pigeon'). `os compile` accepts it — providerConfig is deliberately untyped in the spec (connector.zod.ts) — and only the provider factory refuses it, at boot, so the twin's refusal is read off the boot (steps[5]), never off a build"
]
},
"steps": [
"boot with the broken upstream; time the boot and capture the '[Automation] connector … registered DEGRADED' warn with its degradedReason",
"GET /api/v1/automation/connectors; record the husk descriptor (state, degradedReason, actions)",
"POST the flow that dispatches it (showcase_mcp_connector_echo trigger); capture the dispatch failure",
"watch the log through at least three retry cycles; record the intervals. Boot with --log-level info: the error-level '[Automation] connector instance … upstream unavailable … retrying with backoff, attempt N' line prints at the default level, but the 'N degraded connector instance(s); next retry in Nms' line that carries the interval is info-level (packages/services/service-automation/src/plugin.ts)",
"restore the upstream (fix the script path is a config CHANGE — instead restore by making the original path valid again, e.g. re-adding the file) WITHOUT restarting; wait one backoff cycle; re-read the descriptor — its state flipping to 'ready' with derived actions is the recovery signal. The engine's warn `Connector 'showcase_mcp_tools' replaced` is NOT one: it prints on every re-registration under the same name, a degraded husk re-registered by a failed retry included (plugin-extension-api.ts#assertSameOriginOrFree). The '[Automation] recovered connector instance …' line is info-level and prints only on a --log-level info boot (QA run #24575)",
"separately, boot the config-fault twin and capture that boot's outcome",
"trigger a metadata:reloaded reconcile WITHOUT a restart and confirm it retries immediately while the attempt count keeps climbing. A per-item publish announces one: QA run #24575 used PUT /api/v1/meta/view/NAME?mode=draft, then POST /api/v1/meta/view/NAME/publish, and the retry followed 1.2 s later. The PUT body is a current view item (ViewItemSchema, packages/spec/src/ui/view.zod.ts): { name: 'OBJECT.NAME', object, viewKind: 'list', config: { type: 'grid', data: { provider: 'object', object }, columns: [...] } }, its name qualified by the object (QA run #24779 used showcase_task.qa_b_reload_view). A flat { type, columns } body answers 422 unrecognized_keys, and nothing is published. ⛔ Not by touching or saving the entry's source: under os dev that rebuilds and RESTARTS the server (dev's --restart default), which discards the in-memory retry state instead of reconciling it. Only a config edit to the entry, a changed materialization signature, resets the backoff; this item does not drive that arm live"
],
"acceptance": [
{
"clause": "boot COMPLETES on the dead upstream — the instance lands as a degraded husk: descriptor state:'degraded' with a degradedReason quoting the operational failure; no actions, and it still appears in GET /automation/connectors (visible, not vanished)",
"oracle": "api",
"verify": "boot exit + the husk descriptor (engine.registerDegradedConnector: state 'degraded', empty handlers, stored degradedReason)",
"evidence": "boot log + descriptor"
},
{
"clause": "the degrade path is taken ONLY for errors carrying code CONNECTOR_UPSTREAM_UNAVAILABLE (structural check, not instanceof); a configuration fault (invalid providerConfig) remains FATAL at boot — both sides of the #3017 classification",
"oracle": "log",
"verify": "the broken-upstream boot degrades; the config-fault twin's boot aborts with the factory's validation error (connector-provider-errors.ts contract)",
"evidence": "the two boot outcomes side by side"
},
{
"clause": "dispatching a degraded instance fails FAST with a pointed connector-unavailable error that quotes the stored degradedReason — not a timeout hang, and distinguishable from 'no such connector/action'",
"oracle": "api",
"verify": "the connector_action step errors promptly; its message carries the degradedReason (engine.getConnectorDegradedReason feeds the refusal). The 'no such connector/action' comparator has no stock flow and no recipe: no showcase flow dispatches an undeclared connector. Read it off connector-nodes.ts, whose undeclared arm answers 'no handler for CONNECTOR.ACTION — is the connector plugin registered?' while the degraded arm says 'is degraded — REASON', or stage a scratch flow naming an undeclared connector and record its run",
"evidence": "the failed run record"
},
{
"clause": "retries back off from DECLARATIVE_RETRY_BASE_MS (5s) doubling to the 300s ceiling — no hot loop against the dead upstream",
"oracle": "log",
"verify": "observed retry intervals ≈ 5s/10s/20s… (service-automation/src/plugin.ts constants). A metadata:reloaded reconcile retries IMMEDIATELY but does not reset the backoff: the attempt count keeps climbing and the next delay keeps doubling (QA run #24575 read attempt 6 with a 160 s next delay after a reload). Only a config edit, a changed materialization signature, resets it (packages/services/service-automation/src/plugin.ts#degradeConnectorInstance restarts attempts at 1 only when the signature differs)",
"evidence": "timestamped log excerpt"
},
{
"clause": "recovery is ATOMIC and restart-free: once the upstream is reachable a retry swaps the live instance in — descriptor flips to state:'ready' with the derived actions, and the previously-failing flow dispatch now succeeds",
"oracle": "api",
"verify": "post-recovery descriptor + a successful echo run, all without a server restart",
"evidence": "the recovered descriptor + run record"
}
],
"negative": [
"a dead upstream taking the WHOLE boot down is the outage-amplification #3017 exists to prevent — FAIL",
"a degraded instance silently disappearing from GET /automation/connectors is a FAIL (operators must be able to SEE the husk and its reason)"
],
"traps": [
"stale-dist"
],
"source": [
"docs/plans/release-15.1-test-plan.md §B3 (#3049)",
"packages/spec/src/integration/connector-provider-errors.ts#CONNECTOR_UPSTREAM_UNAVAILABLE (CONNECTOR_UPSTREAM_UNAVAILABLE marker; structural isConnectorUpstreamUnavailable)",
"packages/services/service-automation/src/plugin.ts#DECLARATIVE_RETRY_BASE_MS (DECLARATIVE_RETRY_BASE_MS=5000 / DECLARATIVE_RETRY_MAX_MS=300000; degradedInstances backoff + reload reconcile; boot fatal vs reload skip)",
"packages/services/service-automation/src/engine.ts#registerDegradedConnector (registerDegradedConnector; getConnectorDegradedReason feeding the dispatch refusal)",
"packages/services/service-automation/src/connector-degrade-cause.test.ts + degraded-register-cause.test.ts (unit pins)"
],
"history": [
{
"revision": 1,
"date": "2026-08-07",
"change": "initial import from the 15.1 plan §B3",
"ref": "claude/platform-test-checklist-ocwugl"
},
{
"revision": 2,
"date": "2026-08-07",
"change": "expanded to deep-test contract: concrete steps, multi-clause acceptance, negatives, variants",
"ref": "claude/platform-test-checklist-ocwugl"
},
{
"revision": 3,
"date": "2026-10-20",
"change": "checklist-accuracy findings of QA run #24575 (18.0 sweep, 5b14b7f3; wave anchor #24579 §3, which lists it under automation). acceptance[3].verify and steps[6] said a reload reconcile resets the backoff; it retries at once and keeps counting, and only a config edit (a changed materialization signature) resets it, as degradeConnectorInstance has it. steps[6] said to touch or save the entry, which restarts os dev; it now names a restart-free reload, a per-item publish. fixtures.requires[0] puts every boot in a scratch copy (the stdio path is cwd-relative) and names #24575's file-move break, the one steps[4] can undo with no config change; steps[4] names the warn line that shows the swap at the default log level. Not loosened: every clause keeps its oracle",
"ref": "#24717"
},
{
"revision": 4,
"date": "2026-10-20",
"change": "steps[6] names the view body its per-item publish needs — checklist-accuracy finding of QA run #24779 (wave anchor #24579 round 12): a flat { type, columns } body answers 422 unrecognized_keys; the run published a view item carrying viewKind and config. Read at base 307ce4c4b4 against ViewItemSchema (view.zod.ts), which discriminates on viewKind and requires an OBJECT.view name. No clause changed",
"ref": "#24824"
},
{
"revision": 5,
"date": "2026-10-26",
"change": "steps[4] and fixtures.requires[1] corrected — checklist-accuracy findings of QA run #25817 (18.2.0 sweep, release-18.2.0-manual-set, 6679644a; wave anchor #25807; card #25844). steps[4] offered the warn `Connector … replaced` as the visible sign of the swap; assertSameOriginOrFree prints it on a husk-to-husk re-registration too, so the descriptor state is the signal. fixtures.requires[1]: `os compile` accepts transport.kind 'carrier_pigeon'; only the boot refuses it. Read on main 9753d163. No clause changed",
"ref": "#25844"
},
{
"revision": 6,
"date": "2026-10-27",
"change": "steps[3] names the log level the retry intervals need; acceptance[2].verify says the unknown-connector comparator has no live recipe and where its sentence lives. Checklist-accuracy findings of the 18.2.0 wave 2 (QA run #26476, release-18.2.0-w2-manual-api, at 756220c4; wave anchor #25807, slice A): the interval line is info-level, and A2's comparator had no recipe to drive. Re-read at base e4ba846f (service-automation plugin.ts: the attempt line is logger.error, the next-retry line logger.info; builtin/connector-nodes.ts: the degraded and no-handler arms). No clause changed",
"ref": "#25807"
}
]
},
{
"id": "integration-system.connector-stdio-default-deny",
"title": "Declarative stdio connector transports are denied by default; the host allowlists exact commands (declarativeStdio) — and the deny is a config fault (boot fatal), not a degrade",
"since": "v15.1",
"status": "active",
"revision": 3,
"priority": "P1",
"surface": "cli",
"fixtures": {
"app": "showcase",
"requires": [
"the showcase_mcp_tools stdio instance (command 'node') + the host opt-in `new ConnectorMcpPlugin({ declarativeStdio: ['node'] })` in examples/app-showcase/objectstack.config.ts — removing that option IS the deny fixture (the connector file's own comment says 'try it')"
]
},
"variants": [
"policy absent/false → deny every declarative stdio transport (default)",
"policy ['node'] with command 'node' → allowed (strict string equality)",
"policy ['node'] with a non-matching command (e.g. 'python3') → denied, allowlist quoted",
"http transport → never subject to the stdio policy (control)"
],
"steps": [
"boot the stock showcase (allowlisted): confirm showcase_mcp_tools materializes state:'ready'",
"remove the declarativeStdio option from ConnectorMcpPlugin in objectstack.config.ts; boot; capture the failure verbatim",
"restore the option but change the connector's command to one NOT in the allowlist (e.g. 'python3' with the same script); boot; capture that failure",
"restore fully; author a scratch mcp instance with an HTTP transport pointing at any URL and confirm the stdio policy does not touch it (it may degrade on unreachability — that is the OTHER item)",
"GET /api/v1/automation/connectors after the allowlisted boot"
],
"acceptance": [
{
"clause": "the non-opted-in stdio instance refuses with the message naming the mechanism: 'declares a stdio transport (command \\'node\\'), but declarative stdio transports are disabled by default — a stdio transport launches a local process …' (connector-mcp provider, #3055)",
"oracle": "log",
"verify": "boot output contains the deny message from packages/connectors/connector-mcp/src/mcp-provider.ts; the fixture process is never spawned",
"evidence": "the refusal line"
},
{
"clause": "an allowlist MISMATCH is refused quoting both the offending command and the configured allowlist: \"stdio transport with command 'python3', which is not in the host's declarativeStdio allowlist [node]\" — equality is strict, no prefix/glob creep",
"oracle": "log",
"verify": "the mismatch boot's error text carries command + allowlist",
"evidence": "the refusal line"
},
{
"clause": "the deny is classified as a CONFIGURATION fault: boot-fatal at start (and a skipped entry on reload) — NOT a degraded husk retrying forever toward a process the host never authorized",
"oracle": "log",
"verify": "the denied boots abort; no 'registered DEGRADED' line and no retry loop for the denied instance",
"evidence": "boot output"
},
{
"clause": "the allowlisted boot materializes the instance normally (state:'ready', echo_upper action derived) — the opt-in works and stays scoped to the exact command",
"oracle": "api",
"verify": "GET /automation/connectors shows showcase_mcp_tools ready on the stock config",
"evidence": "the descriptor"
}
],
"negative": [
"absence of ANY allowlist config silently spawning a subprocess from metadata is the security failure #3055 closed — a spawned fixture process on the deny boot is a P0-severity FAIL regardless of this item's priority",
"the deny surfacing as state:'degraded' with backoff retries is a FAIL — an unauthorized command must not be retried into existence"
],
"automated": {
"kind": "unit",
"ref": "packages/connectors/connector-mcp/src/mcp-provider.test.ts — negative[0] ONLY, at the provider unit: in its 'mcp provider declarative stdio policy (#3055)' describe, 'DENIES a declarative stdio transport by default, as a plain (non-retryable) fault' shows that with no policy the factory rejects a stdio transport before the client factory is handed one (seen.transport stays undefined), so nothing is spawned. The same cases assert the default-deny text, the allowlist-mismatch text and the non-retryable class at the provider: evidence for acceptance[0]–[2] at that layer only, never their pass, since those clauses score the boot output. acceptance[3] (GET /automation/connectors) and negative[1] (no degraded husk on the boot) need the run"
},
"source": [
"docs/plans/release-15.1-test-plan.md §B4 (#3059)",
"packages/connectors/connector-mcp/src/mcp-provider.ts (#3055 policy: default deny, strict-equality allowlist, both messages)",
"examples/app-showcase/objectstack.config.ts#plugins (declarativeStdio: ['node'] opt-in on the ConnectorMcpPlugin entry — re-pointed #18101: declarativeStdio is a key written INLINE in that constructor call, which the shared resolver does not read as a declaration, and the config itself is an anonymous default export, so plugins is the nearest enclosing key it does read) + src/system/connectors/index.ts (the 'remove that option and boot fails loudly — try it' fixture note)"
],
"history": [
{
"revision": 1,
"date": "2026-08-07",
"change": "initial import from the 15.1 plan §B4",
"ref": "claude/platform-test-checklist-ocwugl"
},
{
"revision": 2,
"date": "2026-08-07",
"change": "expanded to deep-test contract: concrete steps, multi-clause acceptance, negatives, variants",
"ref": "claude/platform-test-checklist-ocwugl"
},
{
"revision": 3,
"date": "2026-10-20",
"change": "automated.ref narrowed per clause — checklist-accuracy finding of QA run #24840 (18.0 sweep round 4, Tier 1 at 307ce4c4: a bare ref over-implies coverage), round 15 of wave anchor #24579. The one pin drives createMcpProviderFactory over a fake client factory. By RUNNER rule 6 (a pin scores only the layer it drives) it scores negative[0] (on a deny, nothing reaches the spawner) and is provider-layer evidence for the boot-output clauses acceptance[0]–[2]. Read at base b1676441ba. No clause changed",
"ref": "#24891"
}
]
},
{
"id": "integration-system.connector-spec-path-no-escape",
"title": "Connector openapi spec file refs resolve package-relative only: './…' works, absolute and '../' escapes reject with the confinement error, missing files fail loudly",
"since": "v15.1",
"status": "active",
"revision": 2,
"priority": "P2",
"surface": "build",
"fixtures": {
"app": "showcase",
"requires": [
"the shipped file-path fixture: showcase_status_openapi with providerConfig.spec './src/system/connectors/status-openapi.json' (#3016) — the happy path is stock",
"scratch copies of that entry for the three rejection probes (absolute path, '../' escape, missing file)"
]
},
"variants": [
"spec: inline OpenAPI document object (no file read)",
"spec: package-relative file path './…' (resolved against packageRoot, confined)",
"spec: http(s) URL (fetched; unreachability is the degrade item's territory)",
"rejection: absolute path (/etc/… or C:\\…)",
"rejection: '../'-escaping relative path",
"rejection: missing/unreadable file"
],
"steps": [
"boot the stock showcase; confirm showcase_status_openapi materialized with the spec-derived getHealth action",
"author scratch entries and boot each: spec '/etc/hostname' (absolute), spec '../../outside.json' (escape), spec './does-not-exist.json' (missing); capture each error verbatim",
"author one with a nested traversal that RESOLVES inside the root after normalization (e.g. './src/../src/system/connectors/status-openapi.json') and record whether it is accepted — the guard rejects on the RESOLVED path, not on the substring",
"verify boot-vs-reload policy: repeat the missing-file probe via a metadata reload and confirm it is skipped-with-log instead of fatal"
],
"acceptance": [
{
"clause": "the package-relative path resolves and the connector's actions derive from the document (getHealth on the descriptor; dispatch covered by connector-declarative-boot)",
"oracle": "api",
"verify": "descriptor carries the spec-derived action set on the stock boot",
"evidence": "descriptor read"
},
{
"clause": "an absolute path is rejected with the exact guard: \"package file ref '<p>' is absolute — file refs must be relative to the declaring stack/package root.\" — including Windows drive-letter forms",
"oracle": "build",
"verify": "boot error text matches createPackageFileLoader (packages/services/service-automation/src/plugin.ts)",
"evidence": "the error"
},
{
"clause": "a path escaping the root after RESOLUTION is rejected: \"package file ref '<p>' escapes the stack/package root — reads are confined to '<root>'.\" — while an inside-resolving './a/../b' form passes (the check is on the resolved path)",
"oracle": "build",
"verify": "the '../' probe errors with the confinement text; the normalized-inside probe boots",
"evidence": "the two outcomes"
},
{
"clause": "a missing/unreadable file fails LOUDLY with the resolved path in the message ('could not be read (resolved to …)') — boot-fatal at start, skipped-with-log on reload, per the ADR-0097 reconcile policy",
"oracle": "build",
"verify": "the missing-file boot aborts; the reload path logs + skips",
"evidence": "both captures"
}
],
"negative": [
"any read landing OUTSIDE the declaring package root is a security FAIL whatever the error text — the confinement, not the message, is the contract",
"a missing spec producing a silently-actionless connector (instead of the loud failure) is a FAIL"
],
"source": [
"docs/plans/release-15.1-test-plan.md §B5 (#3024)",
"packages/services/service-automation/src/plugin.ts#createPackageFileLoader (createPackageFileLoader — all three exact error strings, #3016)",
"packages/spec/src/integration/connector.zod.ts#providerConfig (providerConfig.spec three-form doc) + connector-provider.ts (loadPackageFile contract incl. host-without-fs behavior)",
"examples/app-showcase/src/system/connectors/index.ts#showcase_status_openapi (showcase_status_openapi — the shipped happy-path fixture)"
],
"history": [
{
"revision": 1,
"date": "2026-08-07",
"change": "initial import from the 15.1 plan §B5",
"ref": "claude/platform-test-checklist-ocwugl"
},
{
"revision": 2,
"date": "2026-08-07",
"change": "expanded to deep-test contract: concrete steps, multi-clause acceptance, negatives, variants",
"ref": "claude/platform-test-checklist-ocwugl"
}
]
},
{
"id": "integration-system.connector-descriptor-audit",
"title": "Descriptor-only connector contracts are audited at boot: declared-with-actions-but-unregistered warns with names + remedy; enabled:false is the deliberate, quiet catalog opt-out",
"since": "v15.1",
"status": "active",
"revision": 3,
"priority": "P2",
"surface": "cli",
"fixtures": {
"app": "showcase",
"requires": [
"showcase_erp_catalog — the shipped enabled:false catalog descriptor WITH actions (get_invoice, post_journal_entry): the stock boot is the quiet side of this gate",
"a scratch copy of it with enabled:true (and no provider) for the loud side"
]
},
"steps": [
"boot the stock showcase and grep the full boot log for the inert-connector audit warning — there must be NONE (the only actions-bearing descriptor is enabled:false)",
"add the scratch enabled:true descriptor (actions, no provider, no plugin registration); boot; capture the warning verbatim",
"add a same-named RUNTIME registration for it (any connector plugin) and boot again — the audit must go quiet because the name is now live",
"flip the scratch entry back to enabled:false; boot; confirm quiet"
],
"acceptance": [
{
"clause": "the loud side names names and prescribes the fix: '[Automation] N declarative connector(s) declare actions but are not registered in the connector registry — the connector_action node cannot dispatch them: <names>. … Install/instantiate the matching connector plugin, or mark a deliberate catalog-only entry with `enabled: false` to silence this warning.' (PD#10: declared ≠ delivered surfaces loudly)",
"oracle": "log",
"verify": "the warning matches auditDeclaredConnectors (packages/services/service-automation/src/plugin.ts) and lists the scratch connector's name",
"evidence": "log excerpt"
},
{
"clause": "all three quiet conditions are individually verified: (a) enabled:false descriptor — quiet; (b) descriptor with a same-name runtime registration — quiet; (c) provider-bound instances — never audited by this gate (they materialize instead)",
"oracle": "log",
"verify": "no audit warning on the stock boot, on the registered boot, or for the three provider-bound showcase instances. Condition (c) rests on the live boot alone: no case in connector-descriptor-audit.test.ts feeds a provider-bound instance to findInertDeclaredConnectors or to the kernel audit",
"evidence": "the grepped boot logs per condition"
},
{
"clause": "the audit re-runs on metadata reload, not only at boot — enabling the scratch descriptor at runtime surfaces the warning without a restart",
"oracle": "log",
"verify": "the warn appears after the reload reconcile (plugin.ts wires auditDeclaredConnectors on both paths). No pin drives the reload path: connector-descriptor-audit.test.ts's wiring cases fire kernel:ready only, so this clause is scored live or not at all",
"evidence": "timestamped log"
}
],
"negative": [
"a stock showcase boot emitting the inert-connector warning is a FAIL — either the shipped catalog descriptor lost its enabled:false or the audit's silencing contract broke",
"the warning firing for a provider-bound instance is a FAIL (it is an instance declaration, not a descriptor — #2977/ADR-0097 carve-out in findInertDeclaredConnectors)"
],
"automated": {
"kind": "unit",
"ref": "packages/services/service-automation/src/connector-descriptor-audit.test.ts — its pure findInertDeclaredConnectors cases and its 'kernel:ready audit (wiring)' cases on an in-process kernel: the BOOT half of acceptance[0] and of acceptance[1](a)/(b), as evidence beside the boot log. No case drives the metadata:reloaded path (acceptance[2]) or feeds a provider-bound instance (acceptance[1](c), negative[1])"
},
"source": [
"docs/plans/release-15.1-test-plan.md §B6 (#2985)",
"packages/services/service-automation/src/plugin.ts#auditDeclaredConnectors (auditDeclaredConnectors — exact warning text; boot + reload wiring)",
"packages/spec/src/integration/connector.zod.ts (enabled:false = deliberate catalog descriptor, #2612)",
"examples/app-showcase/src/system/connectors/index.ts#showcase_erp_catalog (showcase_erp_catalog — the shipped quiet fixture)"
],
"history": [
{
"revision": 1,
"date": "2026-08-07",
"change": "initial import from the 15.1 plan §B6",
"ref": "claude/platform-test-checklist-ocwugl"
},
{
"revision": 2,
"date": "2026-08-07",
"change": "expanded to deep-test contract: concrete steps, multi-clause acceptance, negatives, variants",
"ref": "claude/platform-test-checklist-ocwugl"
},
{
"revision": 3,
"date": "2026-10-26",
"change": "acceptance[1].verify, acceptance[2].verify and automated.ref scoped to what the pin drives — checklist-accuracy findings of QA run #25815 (18.2.0 sweep, release-18.2.0-tier1, 6679644a; wave anchor #25807; card #25844). a2: plugin.ts calls auditDeclaredConnectors on the metadata:reloaded and the kernel:ready paths, and the pin drives only kernel:ready, so the reload half had no pin. a1(c)/n1: no case feeds a provider-bound instance to findInertDeclaredConnectors or the kernel audit. Read on main 9753d163. No clause changed",
"ref": "#25844"
}
]
},
{
"id": "integration-system.flow-connector-picker",
"title": "The flow designer's connector picker mirrors GET /automation/connectors: same instances, declarative ones annotated, actions and their input schemas offered per pick",
"since": "v15.1",
"status": "active",
"revision": 5,
"priority": "P2",
"surface": "browser",
"personas": [
"admin"
],
"fixtures": {
"app": "showcase",
"requires": [
"the stock showcase connector registry: three declarative instances + the plugin-registered rest/slack connectors from objectstack.config.ts (so the picker has BOTH origins to distinguish)",
"a flow that is EDITABLE in Studio — use a shipped one (showcase_declarative_connector_ping) or create it from the console's own create page; see the knownGap before authoring one over the metadata API"
],
"knownGaps": [
"A FLOW AUTHORED OVER THE METADATA API IS NOT EDITABLE IN STUDIO (run #7690, cross-observed by run #7695 / #7753 item 3) — with or without `?package=`, it opens behind 'This flow is provided by an installed package, so it is read-only at runtime', so a run that provisions its fixture flow via PUT /api/v1/meta/flows/... cannot then drive the picker on it. objectui's ResourceEditPage treats an item as artifact-backed when `layered.code != null && _packageId !== 'sys_metadata'`, and `flow` declares allowEnvironmentOverlay:false — so for THIS type the banner is arguably telling the truth (the server would refuse the overlay write anyway). The editable path is the console's own create page. MEASURED AGAIN (QA run #23163, objectstack 36b2889c, objectui 1fb1ced36243): an ENV-WIDE flow authored through POST /api/v1/automation opened EDITABLE in Studio with no lock banner, and the picker was driven on it — so that door is a working way to provision the fixture flow. Whether a flow written through PUT /api/v1/meta/flow/… still opens behind the banner was not re-measured Recorded, not filed: the polarity-reversed case, where the same heuristic locks a WRITABLE-package object it should not, is the real defect and lives at objectui#4308"
]
},
"steps": [
"before the browser: GET /api/v1/automation/connectors and record { connectors, total } — this is the ground truth the picker must mirror",
"in Studio, open a flow (e.g. showcase_declarative_connector_ping, or a scratch flow authored env-wide through POST /api/v1/automation, which opens editable — knownGaps) and add/select a connector_action node — if the editor opens behind the 'provided by an installed package' banner, check how the flow was authored before filing anything (see the knownGap)",
"focus the connector field and screenshot it, which confirms the field rendered; the picker is a NATIVE input with a datalist, whose open list a headless screenshot cannot show, so read the datalist's options from the DOM only AFTER that screenshot",
"pick showcase_mcp_tools; record which actions are offered and screenshot the action + input form for echo_upper",
"pick a plugin-registered connector and compare its presentation with the declarative one's annotation"
],
"acceptance": [
{
"clause": "the picker lists exactly the instances the API reports — no extras (a picker inventing catalog descriptors would let authors wire undispatchable nodes), none missing",
"oracle": "screenshot",
"verify": "the field screenshot confirms render; the datalist's options, read from the DOM after it, are cross-checked name-by-name against the pre-captured listing (a headless screenshot cannot show a native datalist open, so the list itself is a DOM read)",
"evidence": "the field screenshot + the datalist options read from the DOM, diffed against the API read"
},
{
"clause": "declarative instances carry their annotation (origin distinguishable from plugin-registered), per the descriptor's origin field the API serves",
"oracle": "screenshot",
"verify": "the three declarative entries are visually marked; the plugin rest/slack ones are not",
"evidence": "annotated screenshot"
},
{
"clause": "picking an instance offers its DERIVED actions with their input schemas (echo_upper for the mcp instance) — the ADR-0022 descriptor pipeline reaches the designer end-to-end",
"oracle": "dom",
"verify": "action list + input fields match the descriptor's actions[].inputSchema, read only after the screenshot confirmed render",
"evidence": "screenshot + DOM excerpt"
}
],
"negative": [
"a picker entry for a connector the API does not list (or vice versa) is a FAIL — the network response is the authority, not the panel"
],
"traps": [
"stale-console-bundle",
"hydration-race",
"wrong-panel"
],
"source": [
"docs/plans/release-15.1-test-plan.md §B2 (objectui#2563)",
"packages/services/service-automation/src/engine.ts#getConnectorDescriptors (getConnectorDescriptors — the designer-facing shape incl. origin + actions[].inputSchema, ADR-0022)",
"packages/runtime/src/route-ledger.ts (GET /automation/connectors)"
],
"history": [
{
"revision": 1,
"date": "2026-08-07",
"change": "initial import from the 15.1 plan §B2",
"ref": "claude/platform-test-checklist-ocwugl"
},
{
"revision": 2,
"date": "2026-08-07",
"change": "expanded to deep-test contract: concrete steps, multi-clause acceptance, negatives, variants",
"ref": "claude/platform-test-checklist-ocwugl"
},
{
"revision": 3,
"date": "2026-08-11",
"change": "recorded the run #7690 route note that a flow authored over the metadata API opens read-only in Studio ('provided by an installed package'): ResourceEditPage's artifact-backed heuristic (layered.code != null && _packageId !== 'sys_metadata') plus flow's allowOrgOverride:false. The fixture now names an editable flow and the step says check the authoring route before filing. Kept as a note, not a defect — the polarity-reversed case is objectui#4308",
"ref": "#7745"
},
{
"revision": 4,
"date": "2026-10-13",
"change": "knownGaps[0] and steps[1] record that the installed-package lock did not reproduce for an env-wide flow (knownGap stale, #23163 A0; parked on #23121, carried by #23169). QA run #23163 authored the fixture flow through POST /api/v1/automation, and it opened editable with no lock banner; the picker listed exactly the 5 served connectors. The older reading, about flows written over the metadata API, is kept and marked not re-measured",
"ref": "#23169"
},
{
"revision": 5,
"date": "2026-10-16",
"change": "steps[2] and acceptance[0] (verify, evidence) corrected (checklist-accuracy finding of QA run #23922, wave #23878). The connector picker is a native datalist input; a headless screenshot cannot show its open list, so the name-by-name diff #23922 scored was read from the DOM after a screenshot confirmed the field. The step and clause now say so. Not loosened: the listed names must still equal the API's, no extras and none missing",
"ref": "#24036"
}
]
},
{
"id": "integration-system.webhook-lifecycle",
"title": "Outbound webhooks are read from the registry (spec object→object_name, no sys_webhook row) and switched through the activation ledger, fire per trigger variant through the sys_http_delivery outbox with HMAC + timeout honored, redeliver terminal rows tenant-scoped via POST /api/v1/webhooks/redeliver, and reject retired trigger kinds",
"since": "v15",
"status": "active",
"revision": 13,
"priority": "P1",
"surface": "mixed",
"fixtures": {
"app": "showcase",
"requires": [
"a reachable webhook receiver (local echo server on the run's own port range) and a SCRATCH webhook authored INSIDE the showcase organization that points at it — Setup → Integrations → Webhooks → New as the signed-in admin, or POST /api/v1/data/sys_webhook under that session, so the row carries the organization. ⚠ The shipped showcase_task_changed cannot carry the per-record or bulk delivery legs: it is a declared webhook, read-only, so its url stays the placeholder hooks.example and cannot be pointed at the receiver. Once switched on it DOES deliver under `single` — a declared webhook is deployment-wide there and each delivery is stamped with the event's organization (packages/plugins/plugin-webhooks/src/auto-enqueuer.ts, AutoEnqueuer.admitsOrganization, CachedSubscription.deploymentWide) — and the same holds under `isolated` and `group` (ADR-0131 D2/D9, ruling A: CachedSubscription.deploymentWide is set on every declared webhook). Switched on by the platform operator, since under a wall the activation door is operator-only, it delivers one sys_http_delivery row per event stamped with that event's organization, and each organization reads only its own rows: packages/qa/dogfood/test/wall-declared-webhook-deployment-wide.dogfood.test.ts pins it in its '[ruling A] isolated|group: a declared webhook is deployment-wide' describe, run under both postures, and QA run #24783 measured it live. Authoring the scratch webhook over POST /api/v1/data/sys_webhook needs `definition_json` (required: the serialised Webhook envelope of @objectstack/spec/automation/webhook) and a lower-case `method` such as `post`, because Field.select lower-cases the select's option values (packages/plugins/plugin-webhooks/src/sys-webhook.object.ts)",
"the shipped fixture: showcase_task_changed (object showcase_task, triggers create/update/delete, isActive:false ON PURPOSE — switching it on through the activation door is part of the test, examples/app-showcase/src/automation/webhooks/index.ts)",
"a predicate multi-write path for the bulk variants (update/delete with multi:true on showcase_task) — NOT reachable over REST, see the knownGap below: author a flow with an `update_record` / `delete_record` node carrying multi:true and fire it through the api trigger"
],
"knownGaps": [
"PREDICATE (multi:true) WRITES ARE UNREACHABLE OVER REST BY DESIGN (run #7690) — do not re-derive this, and do not file the 400 as a defect. #3897 made the batch routes parse their body against the spec contract, and Zod object schemas STRIP unknown keys: `options.multi` and `options.where` can no longer ride into the engine's delete/update options, and `POST /data/:object/deleteMany` now deletes per id (packages/rest/src/rest-server.ts). That is a security boundary, not a gap. The bulk_update/bulk_delete clause therefore needs a FLOW `update_record` / `delete_record` node authored with multi:true, fired through the api trigger — that is the supported predicate-write door",
"acceptance[2], the bulk pair, is BLOCKED(dependency) on the org-walled showcase (QA run #23166): a flow node's predicate multi-write publishes its bulk event with NO organizationId, the org-owned subscription refuses it (auto-enqueuer.ts organization match), and an org-less subscription cannot be authored to receive it. Whether flow-node multi-writes should carry the organization is a maintainer question raised on #23166, not ruled; score acceptance[2] blocked(dependency) until it is. #23166 is the closed run record that raised it, not an open card: no open issue carries the question (its successor anchors #23121 and #23169 closed with it noted, not filed). QA run #26456 re-measured the block at 756220c4 on stock `single`: a flow update_record multi:true over two rows produced no bulk delivery, and the log read '[webhook-auto-enqueuer] … names no organization — refusing to deliver it inside an organization wall'. The same run did not attempt negative[1] or negative[2] (time budget): a re-run owes them, and their text is unchanged",
"no pin scores a full clause of this item at its layer (RUNNER rule 6, a pin scores only the layer it drives), so the item carries no automated ref. packages/qa/dogfood/test/webhook-materialization.dogfood.test.ts boots its own fixture stack (fixtures/webhook-materialization-fixture.ts, not the showcase). At the engine it asserts that no sys_webhook row is written for a declared webhook, and that the declared-webhook reader hands a matching record event to an AutoEnqueuer over a hand-driven realtime stub. That is acceptance[0]'s no-row half only: the activation door's 200 and 404 are never driven, and nothing of acceptance[1]–[6] is asserted. automated may return when a pin drives the activation door and a delivery on the showcase"
]
},
"variants": [
"trigger: create (data.record.created → per-record payload with recordId)",
"trigger: update (data.record.updated)",
"trigger: delete (data.record.deleted)",
"trigger: bulk_update (aggregate data.records.updated → { object, matched }, NO recordId/body — #4639)",
"trigger: bulk_delete (aggregate data.records.deleted, same shape)",
"retired: undelete — no event source exists (#3196); parse-rejected",
"retired: api (manual fire) — no fire path exists (#3196); parse-rejected"
],
"steps": [
"boot the showcase on a fresh database; verify the declared webhook is NOT materialized (ADR-0131 D2 retired the boot seeder): read sys_webhook over /api/v1/data and find NO showcase_task_changed row — the dispatcher reads the declaration from the registry",
"switch the shipped declared showcase_task_changed on as the admin: POST /api/v1/security/_activation/webhook/showcase_task_changed with { enabled: true } — 200 { type: 'webhook', name, enabled: true }, and one sys_metadata_activation row of metadata_type 'webhook' whose `active` column is true (the door's body and answer spell it `enabled`, the row's column is `active`); an undeclared name answers 404. A declared webhook is read-only: pointing it at the receiver means a copy under a new name (the scratch webhook below). This switch is the subject of acceptance[6] ONLY: switched on, the declaration delivers under `single` (one sys_http_delivery row with ref_id declared:showcase_task_changed, stamped with the Default Organization, per task change), but only to its placeholder url (fixtures.requires[0]). Author the in-organization scratch webhook beside it for the delivery legs",
"with the in-organization scratch webhook (fixtures.requires[0]) active and pointed at the receiver, create, update, then delete a showcase_task; capture the three deliveries at the receiver (headers incl. the HMAC signature when a secret is set, body incl. recordId). The create needs showcase_task's required `project` lookup — pass an existing showcase_project id, or the create answers 400 VALIDATION_FAILED 'Project is required' and no create event fires",
"run a predicate multi-update and multi-delete (multi:true) matching several rows — through a FLOW node, not REST: author update_record / delete_record nodes with multi:true and fire them via the api trigger (the REST batch routes strip options.multi, #3897 — see the knownGap); capture the bulk deliveries and their { object, matched } shape",
"read sys_http_delivery over /api/v1/data (a `$filter` is a JSON filter object): one row per delivery with status/attempts/response_code",
"kill the receiver and mutate again; re-read the delivery row through its retry/failure states",
"restore the receiver answering a permanent 4xx (not 408/429), so the failing row reaches a terminal status (failed/dead) at its next attempt — packages/services/service-messaging/src/http-sender.ts maps a 4xx to a permanent failure and retries 408, 429, 5xx and transport errors on the outbox schedule, so a receiver that only comes back healthy leaves the row non-terminal for the whole schedule — then POST /api/v1/webhooks/redeliver with { deliveryId: <that row's id> } as the seeded admin (the door is gated on webhook-administration access): capture the 200 { id, status } and the receiver's re-hit — compare the replayed X-Objectstack-Signature byte-for-byte against the original delivery's; re-read the row; then probe the refusals: anonymous POST (401), non-JSON body (400 INVALID_REQUEST), body without deliveryId (400 MISSING_REQUIRED_FIELD), a garbage/unknown deliveryId (404), a row still pending/in_flight (409 DELIVERY_NOT_ELIGIBLE)",
"redeploy/reboot and confirm the activation switch survived: the sys_metadata_activation row is still there with `active` true, and the switch is still in force. No public door reads a declared webhook's switch: GET /api/v1/meta/webhook/showcase_task_changed serves the declaration, which answers isActive:false by design (the activation ledger is separate, ADR-0126 §4), so the in-force half is read off a fresh sys_http_delivery row for a task change made after the reboot (the switch is deployment state; the declaration is code)"
],
"acceptance": [
{
"clause": "authoring is LIVE, not a no-op: the declared webhook is read from the registry by the dispatcher (ADR-0131 D2) — NO sys_webhook row is written for it — and the activation door finds it by name",
"oracle": "api",
"verify": "zero sys_webhook rows named showcase_task_changed on a fresh boot; the activation door answers 200 for it and 404 for an undeclared name (declared-webhooks.ts DeclaredWebhookSource, the projection in auto-enqueuer.ts projectDeclared)",
"evidence": "the row read + the two door responses"
},
{
"clause": "each per-record trigger variant delivers exactly its event: create/update/delete each produce one receiver hit whose payload names the event and carries the recordId — verified per-variant, none inferred",
"oracle": "network",
"verify": "the three captured requests, keyed by variant",
"evidence": "receiver logs"
},
{
"clause": "the bulk pair delivers the AGGREGATE shape — { object, matched } with no recordId and no record body — and only to webhooks that opted into bulk_update/bulk_delete; per-record subscribers do NOT receive a fabricated per-record event for a predicate write (#4639/#4626)",
"oracle": "network",
"verify": "bulk delivery bodies + absence of per-record deliveries for the same predicate write on a create/update/delete-only subscription. On the org-walled showcase this clause scores blocked(dependency): knownGaps[1]",
"evidence": "receiver logs for both subscriptions"
},
{
"clause": "delivery mechanics honor the authored envelope: custom headers attached, HMAC signature present when secret is set, timeoutMs applied — and every attempt is durably observable as a sys_http_delivery row (status pending/in_flight/success/failed/dead, attempts, response_code)",
"oracle": "api",
"verify": "receiver-side headers + the outbox rows over the data API",
"evidence": "headers + delivery rows"
},
{
"clause": "POST /api/v1/webhooks/redeliver replays a TERMINAL delivery (status success/failed/dead with attempts > 0): the row resets and re-dispatches carrying the STORED HMAC signature byte-for-byte (signed at enqueue, replayed verbatim — still verifiable against the secret), the row updates, and the response is { id, status }. The refusal matrix never 500s for a caller-fixable state: anonymous → 401 UNAUTHENTICATED; non-JSON → 400 INVALID_REQUEST; missing deliveryId → 400 MISSING_REQUIRED_FIELD; unknown OR cross-organization deliveryId → 404 RESOURCE_NOT_FOUND (the caller's activeOrganizationId is threaded into the lookup, #10740 — another org's row is simply not found, not forbidden-with-a-hint); non-terminal row → 409 DELIVERY_NOT_ELIGIBLE; a PARKED row (attempts === 0, recordUndeliverable's record of a delivery never prepared) → 409 DELIVERY_NEVER_SENT, because redelivering it would be an UNSIGNED first delivery (#7799/#8069 — the redeliver guard also refuses when the signing configuration is gone, fail-closed on a guard that throws). The door is gated on WEBHOOK-ADMINISTRATION access above the auth floor (redeliver-entitlement.ts: the security service's object-level `update` admission on sys_webhook, asked before the body is read): drive this clause as the seeded admin; a signed-in caller without that access, or whose active organization no current membership backs on a walled posture (the claim is vetted as the data API vets it), is answered 403 PERMISSION_DENIED before any row-specific detail, and no security service (or an undecidable check) is 503 SERVICE_UNAVAILABLE",
"oracle": "api",
"verify": "the redeliver 200 + the receiver's replayed signature equal to the original (pinned byte-for-byte in http-signature-at-rest.integration.test.ts); each refusal against webhook-outbox-plugin.ts (401/400/400/404 arms) and http-outbox.ts (assertHttpRedeliverable / assertRedeliverAllowed — the 409 pair and the guard); the webhook-administration gate (403 PERMISSION_DENIED, 503 SERVICE_UNAVAILABLE) and the replay's organization (the session's activeOrganizationId as the request-context composition vetted it against the tenancy posture, threaded per #10740) in redeliver-entitlement.ts's docblock and the route's own, both sides pinned in webhook-redeliver-entitlement.test.ts",
"evidence": "the redeliver response + replayed receiver hit + the refusal responses, keyed by arm"
},
{
"clause": "a retired trigger kind fails at parse with the enum rejection — WebhookTriggerType is exactly [create, update, delete, bulk_update, bulk_delete]; undelete/api never register silently dead (the #3196 enforce-or-remove gate the #3358 sweep verified)",
"oracle": "build",
"verify": "both scratch builds error on the trigger value. A scratch stack that declares a webhook also needs requires: ['webhooks', 'realtime'] (packages/spec/src/stack.zod.ts names the pair), or its build is refused for the missing capability as well",
"evidence": "the two build errors"
},
{
"clause": "the activation switch survives redeploys: the sys_metadata_activation row (metadata_type webhook) the door wrote is still in force after reboot — a declared webhook's on/off lives in the ledger, never in a row (ADR-0131 D6 regime C)",
"oracle": "api",
"verify": "post-reboot sys_metadata_activation row (`active` true), and a delivery row for a task change made after the reboot: the switch has no public read door (declared-webhooks.ts readWebhookActivation reads the ledger inside the dispatcher; the meta read serves the declaration's own isActive:false)",
"evidence": "before/after row reads"
}
],
"negative": [
"an unreachable receiver must surface as failed/dead sys_http_delivery rows (and retry per the outbox schedule) — a dropped delivery with no durable trace is a FAIL",
"a stored row whose triggers contain an unknown value must be dropped LOUDLY by the dispatcher (the #3196 drift-guard warn: 'dead while looking armed in Setup') — silent armed-looking deadness is a FAIL",
"connector-attached `webhooks`/`triggers` (integration/connector.zod.ts) are RETIRED `retiredKey()` tombstones (ADR-0049) — nothing ever dispatched either, and the parse now refuses both with a prescription; a connector entry carrying one must fail publish, never be accepted and ticked as live, and a delivery or flow run appearing from one would be a spec-contract FAIL"
],
"traps": [
"seed-data-thin",
"stale-dist"
],
"source": [
"packages/spec/src/automation/webhook.zod.ts#WebhookTriggerType (WebhookTriggerType enum + why undelete/api are absent; materialization contract; strict shape #4001)",
"packages/spec/liveness/webhook.json (9 props live on the registry read; label/description live on the Studio metadata list and quick-find, which read the declared item over GET /api/v1/meta/webhook)",
"packages/plugins/plugin-webhooks/src/declared-webhooks.ts + auto-enqueuer.ts (the registry read and its remaps; trigger→event mapping incl. the #4639 bulk pair; #3196 unknown-trigger warn; the activation-ledger switch; an 18.0 database's seeded rows read beside the declaration)",
"packages/services/service-messaging/src/http-outbox.ts#HttpRedeliverError (delivery statuses, attempts; HttpRedeliverError + assertHttpRedeliverable/assertRedeliverAllowed — terminal-only, the attempts===0 parked-row refusal, the fail-closed guard) + packages/services/service-messaging/src/http-signature-at-rest.integration.test.ts (redelivery replays the stored signature byte-for-byte)",
"packages/plugins/plugin-webhooks/src/webhook-outbox-plugin.ts#session (POST /api/v1/webhooks/redeliver — session auth, then the webhook-administration entitlement gate (redeliver-entitlement.ts — update on sys_webhook, asked before the body is read), #10740 activeOrganizationId threading, the 401/400/404/409/500 arms) + (the #8069 redeliver-guard install; its ABSENCE is an error-level log, not a silent pass)",
"packages/rest/src/rest-server.ts#deleteMany (#3897 — the batch routes parse against the spec contract and Zod STRIPS unknown keys, so options.multi/options.where cannot ride in; deleteMany deletes per id. This is why the bulk clause must be driven from a flow node, not REST)",
"examples/app-showcase/src/automation/webhooks/index.ts (the shipped inactive fixture and its activation story)",
"#3358 §9 (webhook undelete/api trigger removal gate)"
],
"history": [
{
"revision": 1,
"date": "2026-08-07",
"change": "initial — webhook kind had no checklist coverage",
"ref": "claude/platform-test-checklist-ocwugl"
},
{
"revision": 2,
"date": "2026-08-07",
"change": "expanded to deep-test contract: concrete steps, multi-clause acceptance, negatives, variants",
"ref": "claude/platform-test-checklist-ocwugl"
},
{
"revision": 3,
"date": "2026-08-08",
"change": "pinned enumSource for the variants-freshness ratchet — spec enum drift is caught by the manual check on this item directly",
"ref": "claude/platform-test-checklist-ocwugl"
},
{
"revision": 4,
"date": "2026-08-11",
"change": "recorded the run #7690 note that predicate (multi:true) writes are unreachable over REST BY DESIGN — #3897 strips options.multi from the batch routes as a security boundary — so the bulk_update/bulk_delete clause must be driven from a flow update_record/delete_record node fired through the api trigger. Landed as a fixtures.knownGaps entry + a corrected step + a source citation so the next sweep does not re-derive it or file the 400 as a defect",
"ref": "#7745"
},
{
"revision": 5,
"date": "2026-08-30",
"change": "coverage sweep: added the redeliver clause — POST /api/v1/webhooks/redeliver (a raw hono mount, webhook-outbox-plugin.ts) had no coverage. Asserts the terminal-row replay (stored HMAC signature re-sent byte-for-byte), the row update and { id, status } answer, and the full refusal matrix: 401 anonymous, 400 INVALID_REQUEST / MISSING_REQUIRED_FIELD, 404 for unknown AND cross-org ids (#10740 tenant threading), 409 DELIVERY_NOT_ELIGIBLE / DELIVERY_NEVER_SENT (the #8069 parked-row and gone-signing-config refusals — never a 500). Pins the deliberate NO-capability posture above the auth floor ('every authenticated user counts' — the plugin's own words) so a run neither files it as a missing gate nor widens it. Step + sources added",
"ref": "#sweep-2026-08-30"
},
{
"revision": 6,
"date": "2026-10-13",
"change": "fixtures.requires[0], steps[1] and [2] move the delivery legs onto an in-organization scratch webhook (stale spec, #23166 A1), and knownGaps[1] (new) and acceptance[2].verify record the bulk pair as blocked(dependency) with the maintainer question open (#23166 A2); both parked on #23121, carried by #23169. The shipped showcase_task_changed materializes org-less, and the auto-enqueuer gives an organization-walled event only to its own organization's subscriptions, so on the showcase it never fans out while Setup shows it active. QA run #23166 drove the per-record legs on a webhook authored inside the organization and passed them; in-org bulk flow events carry no organizationId, so no tenant subscription can receive them. N1 / N2 were not attempted and are owed by a re-run; the item's text for them is unchanged",
"ref": "#23169"
},
{
"revision": 7,
"date": "2026-10-16",
"change": "steps[2] names the create body the delivery leg needs (checklist-accuracy finding of QA run #23922, wave #23878): a showcase_task create over REST requires its `project` lookup and answers 400 VALIDATION_FAILED 'Project is required' without one, so the create variant never fires. The clauses are unchanged",
"ref": "#24036"
},
{
"revision": 8,
"date": "2026-10-19",
"change": "ADR-0131 D2/D6: the declared-webhook boot seeder retired, so a declared webhook is read from the registry and writes no sys_webhook row, and is switched through POST /api/v1/security/_activation/webhook/:name (regime C). steps[0], steps[1] and the reboot step, acceptance[0] and acceptance[6], fixtures.requires[0]/[1] and the source list now say so; the delivery, bulk, redeliver and retired-trigger clauses are unchanged",
"ref": "#24529"
},
{
"revision": 9,
"date": "2026-10-20",
"change": "fixtures.requires[0]'s walled sentence and scratch-webhook recipe corrected — QA run #24783 (finding F4), round 11 of wave anchor #24579. 'Under a walled posture it would be refused as belonging to no organization' predates ADR-0131 ruling A: a declared webhook is deployment-wide under every posture (auto-enqueuer.ts admitsOrganization answers true for CachedSubscription.deploymentWide), delivers one row per event stamped with that event's organization, and is switched on by the operator under a wall, as wall-declared-webhook-deployment-wide.dogfood.test.ts pins and QA run #24783 measured on both postures. The scratch sys_webhook recipe now names its required definition_json and the lower-case method values sys-webhook.object.ts declares. No clause changed",
"ref": "#24801"
},
{
"revision": 10,
"date": "2026-10-20",
"change": "automated removed, fixtures.knownGaps[2] added — checklist-accuracy finding of QA run #24840 (18.0 sweep round 4, Tier 1 at 307ce4c4: a bare ref over-implies coverage), round 15 of wave anchor #24579. The one dogfood pin asserts acceptance[0]'s no-sys_webhook-row half on its own fixture stack and drives no activation door. By RUNNER rule 6 (a pin scores only the layer it drives) no full clause is pinned, so automated is dropped (theme-B rule) and the knownGap says what the pin asserts. Read at base b1676441ba. No clause changed",
"ref": "#24891"
},
{
"revision": 11,
"date": "2026-10-27",
"change": "Checklist-accuracy findings of the 18.2.0 wave 2 (QA run #26456, release-18.2.0-w2-manual-browser, at 756220c4; wave anchor #25807, slice A). steps[4] and acceptance[3] named a delivery column `lastStatusCode` that no code defines: the sys_http_delivery column is response_code (packages/services/service-messaging/src/objects/http-delivery.object.ts). steps[1] names the activation row's `active` column beside the door's `enabled`. steps[4] says a `$filter` is JSON. steps[6] names the 4xx receiver a terminal row needs (http-sender.ts: 4xx except 408/429 is permanent, the rest retries). steps[7] and acceptance[6].verify stop citing a public read of 'the declaration still reads switched on': the meta read answers isActive:false by design and the run read the switch off a post-reboot delivery. acceptance[5].verify names the requires pair a scratch webhook stack needs. knownGaps[1] records that #23166, the blocked.ref the run cited, is a closed run record and no open card carries its maintainer question, and adds the wave-2 re-measure. Read at base e4ba846f. No clause's assertion changed",
"ref": "#25807"
},
{
"revision": 12,
"date": "2026-10-29",
"change": "the redeliver clause's posture sentence follows the door's hardening: redelivery is gated on webhook-administration access (update on sys_webhook, decided by the security service before the body is read), so the clause is driven as the seeded admin, and an unentitled caller's 403 / an undecidable check's 503 are named; the source line names the gate. The admin-driven assertions are unchanged",
"ref": "claude/harden-webhook-redeliver-door"
},
{
"revision": 13,
"date": "2026-10-29",
"change": "contract-review follow-up on the same hardening: acceptance[4].verify no longer cites a no-capability posture in the route's docblock (the docblock states the gate), and names where the gate and the replay's organization are stated and pinned; steps[6] drives the redeliver as the seeded admin, not as any authenticated user; acceptance[4] names the walled-posture refusal of an organization claim no current membership backs, vetted as the data API vets it. The admin-driven assertions are unchanged",
"ref": "#27474"
}
],
"enumSource": {
"file": "packages/spec/src/automation/webhook.zod.ts",
"export": "WebhookTriggerType",
"expect": 5
}
},
{
"id": "integration-system.job-scheduled-run",
"title": "Job metadata schedules through every ScheduleSchema variant, executes with retry/timeout enforced, records sys_job/sys_job_run truth, and refuses the closed doors (id key, runtime create, missing handler)",
"since": "v15",
"status": "active",
"revision": 6,
"priority": "P1",
"surface": "mixed",
"fixtures": {
"app": "showcase",
"requires": [
"the shipped cron fixture: showcase_health_sweep (schedule cron '0 1 * * *' UTC, handler 'sweepProjectHealth' registered in defineStack({ functions }), retryPolicy { maxRetries: 2, backoffMs: 5000, backoffMultiplier: 2 }, timeoutMs 300000 — examples/app-showcase/src/automation/jobs/index.ts; the handler-missing regression here was #4774/#4888)",
"scratch jobs for the interval / once / cron / failing / timing-out probes (near-term schedules so the run observes real executions), authored in a WRITABLE copy of the app: QA run #24575's recipe copies examples/app-showcase, symlinks its node_modules, deletes the copy's dist/ so the boot recompiles with the scratch jobs, and boots the copy. The shipped cron fixture fires only at 01:00 UTC, so the cron variant rests on a scratch near-term cron with a timezone",
"OS_AUTOMATION_SCHEDULED_WORK_ENABLED=1 exported on every boot of this item: by default a stock boot leaves package-authored scheduled work OFF by deployment policy — the boot banner says so ('… package-authored scheduled work is off on this deployment (OS_AUTOMATION_SCHEDULED_WORK_ENABLED is unset or not truthy), so no time trigger arms and no packaged `defineJob` is scheduled'), and at info level AppPlugin logs '[AppPlugin] declarative jobs NOT scheduled — …' (packages/runtime/src/app-artifact-handlers.ts, the reason text in packages/types/src/env.ts#SCHEDULED_WORK_DISABLED_REASON) — so without the switch neither showcase_health_sweep nor any scratch job is scheduled (sys_job holds no showcase_health_sweep row) and every firing clause is unprovable"
]
},
"variants": [
"schedule { type: 'cron', expression, timezone (default UTC) } — cron-job-adapter.ts",
"schedule { type: 'interval', intervalMs } — cron-job-adapter.ts",
"schedule { type: 'once', at: ISO datetime } — cron-job-adapter.ts",
"execution status: success | failed | timeout (JobExecutionStatus; 'running' is the in-flight state)",
"rejection: job.id (retired 17.0.0, #4667 — guidance-carrying parse error)",
"rejection: unknown key (strictObject #4001; aliases cron/interval→schedule, fn→handler)"
],
"steps": [
"boot the showcase; capture the AppPlugin job registration path for showcase_health_sweep (bundle jobs → IJobService.schedule on kernel:ready)",
"read sys_job over /api/v1/data: the row is keyed by NAME (the adapter mints its own row id) with the schedule persisted",
"author three scratch jobs (interval ~5s, once at now+1min, and a cron) with observable side effects; boot; let each fire; read sys_job_run rows and sys_job.last_run_at/last_status/run_count",
"author a deliberately-throwing job with retryPolicy { maxRetries: 2, backoffMs: 1000, backoffMultiplier: 2 }; let it exhaust; capture run rows + failure_count",
"author a job whose handler sleeps past a small `timeoutMs`; capture the run's status. Then author a SECOND timing-out job that also carries a retryPolicy and capture its attempts: only the second can show a timeout counting as a failure for the retry loop (QA run #24575: attempt 2 followed at +1.5 s)",
"author a job with enabled:false and one whose handler string names NO registered function; boot; capture how each is skipped",
"author a job carrying `id: 'x'` and one with a stray key; build EACH on its own (a build stops at the first refused job, so two bad jobs in one build print one error — QA run #24575); capture both errors",
"attempt to create a job at runtime through the meta door and capture the refusal (allowRuntimeCreate:false, #4509)"
],
"acceptance": [
{
"clause": "every ScheduleSchema variant actually schedules and fires — cron (with timezone), interval (intervalMs), once (at) — each verified by its OWN sys_job_run row and side effect, not by registration lines alone",
"oracle": "api",
"verify": "per-variant run rows + the side effect over the data API (adapters honor all three shapes: cron-job-adapter.ts; db adapter persists them: db-job-adapter.ts)",
"evidence": "run rows + side-effect reads, keyed by variant"
},
{
"clause": "execution truth is durable and name-keyed: sys_job upserts by name; every execution writes a sys_job_run row and bumps last_run_at/last_status/run_count/failure_count",
"oracle": "api",
"verify": "the counters move with each observed run",
"evidence": "before/after row reads"
},
{
"clause": "a failing job retries per the CONVERGED policy — delay = backoffMs × multiplier^(retry-1) up to maxRetries — then records status 'failed' with the error message; a policy-less job gets ONE attempt (maxRetries defaults to 0 since 17.0.0, #4661 — a run asserting 3 default retries is testing the old world)",
"oracle": "log",
"verify": "attempt count + spacing in the run rows/log for the throwing probe; the no-policy probe shows exactly one attempt",
"evidence": "run rows + timestamped log"
},
{
"clause": "an over-`timeoutMs` run is recorded with execution status 'timeout' (the in-flight handler is abandoned, not force-cancelled — as documented), and timeouts COUNT as failures for the retry loop (#3494)",
"oracle": "api",
"verify": "the first timeout probe's run row status ('timeout'), and the retry-policy timeout probe's attempt rows, a second attempt after the backoff (packages/services/service-job/src/run-with-policy.ts#runWithPolicy)",
"evidence": "the run rows of both timeout probes"
},
{
"clause": "the two skip doors are distinct, and the dangerous one is LOUD: a handler naming no registered function skips with a WARN, '[AppPlugin] job handler not found in bundle.functions — skipping' — the exact silent no-op that let the showcase sweep never run for months (#4774/#4888); enabled:false — a deliberate author choice — skips scheduling at registration and says so only at DEBUG, '[AppPlugin] job disabled — skipping' (packages/runtime/src/app-artifact-handlers.ts), so it is read on a boot with --log-level debug",
"oracle": "log",
"verify": "the handler-missing WARN present at the default log level, and the enabled:false DEBUG line present on a --log-level debug boot; neither job has sys_job_run rows. A handler-missing skip that logs below WARN is the FAIL",
"evidence": "log excerpts + absence of runs"
},
{
"clause": "the closed doors refuse loudly: authoring `id` errors with the #4667 prescription ('`job.id` was removed … `name` IS the job's identity everywhere … This edit left `os migrate meta` with the protocol-16.x conversions: apply it by hand, or run the tool on a release that still carries the conversion …' — packages/spec/src/system/job.zod.ts, JOB_ID_RETIRED; the 16.x conversion has aged out of the tool, so the text no longer names `os migrate meta --from 16`); a stray key errors naming the key (aliases steer cron/interval→schedule, fn→handler); runtime create is refused (allowRuntimeCreate:false — handler strings cannot resolve outside the compiled bundle, #4509)",
"oracle": "build",
"verify": "the parse errors + the runtime-create refusal",
"evidence": "the error texts"
}
],
"negative": [
"a declared job that never runs WITHOUT one of the two loud skip lines is a FAIL against the scheduler, not thin data — 'nothing reports this' was the actual #4774 bug",
"a runtime-created job row saving cleanly is a FAIL (the #4509 door is closed precisely because such a job could never run)"
],
"traps": [
"stale-dist",
"seed-data-thin"
],
"source": [
"packages/spec/src/system/job.zod.ts#ScheduleSchema (ScheduleSchema discriminated union; JOB_ID_RETIRED; retryPolicy/timeoutMs docs incl. the 17.0.0 maxRetries default flip #4661; JobExecutionStatus)",
"packages/spec/liveness/job.json (per-prop verdicts + the #4509 closed-door rationale)",
"packages/runtime/src/app-artifact-handlers.ts#scheduleAppArtifactJobs (registration, enabled/handler skip lines — the binder's job half, which every door that brings an artifact in calls)",
"packages/services/service-job/src/cron-job-adapter.ts + db-job-adapter.ts (all three schedule shapes; sys_job/sys_job_run persistence) + run-with-policy.ts (retry/timeout enforcement, #3494)",
"examples/app-showcase/src/automation/jobs/index.ts#showcase_health_sweep (showcase_health_sweep fixture + its #4774/#4888 history)"
],
"history": [
{
"revision": 1,
"date": "2026-08-07",
"change": "initial — job kind had no checklist coverage",
"ref": "claude/platform-test-checklist-ocwugl"
},
{
"revision": 2,
"date": "2026-08-07",
"change": "expanded to deep-test contract: concrete steps, multi-clause acceptance, negatives, variants",
"ref": "claude/platform-test-checklist-ocwugl"
},
{
"revision": 3,
"date": "2026-09-09",
"change": "key spelling only, no clause moved — the same #14478 rename residue as records-forms.object-hook-lifecycle: `job.timeout` became `timeoutMs` (old spelling kept as a retiredKey tombstone), so the fixture citation, the timing step, the over-limit clause and the job.zod.ts citation all named a key the schema now refuses. What is exercised is unchanged; the execution STATUS is still 'timeout'.",
"ref": "#15839"
},
{
"revision": 4,
"date": "2026-10-16",
"change": "fixtures.requires gains the scheduling switch, and acceptance[4] (clause, verify) is corrected (checklist-accuracy findings of QA run #23922, wave #23878). A stock boot never schedules packaged jobs: OS_AUTOMATION_SCHEDULED_WORK_ENABLED is off by default ('declarative jobs NOT scheduled — disabled by deployment policy'), and neither fixtures nor steps named it. acceptance[4] called both skip doors LOUD, but the enabled:false skip logs at DEBUG by design (app-artifact-handlers.ts) — only the handler-missing skip, the #4774/#4888 regression class, is a WARN. The clause keeps that WARN as the loud requirement and reads the debug line on a debug-level boot. Not loosened: a silent handler-missing skip still FAILS",
"ref": "#24036"
},
{
"revision": 5,
"date": "2026-10-20",
"change": "checklist-accuracy findings of QA run #24575 (18.0 sweep, 5b14b7f3; wave anchor #24579 §3, whose dashboards/search bullet says the job timeout probe needs a retryPolicy). steps[4]'s timeout probe carried no retryPolicy, so it could not show acceptance[3]'s 'timeouts COUNT as failures' half; a second probe with a policy now does, and acceptance[3]'s verify and evidence read both. fixtures.requires[1] carries the writable-copy recipe #24575 used and says the shipped cron fixture fires only at 01:00 UTC. steps[6] builds each refused shape on its own, since a build stops at the first refused job. Not loosened: no clause changed",
"ref": "#24717"
},
{
"revision": 6,
"date": "2026-10-31",
"change": "acceptance[5] quoted the job.id prescription as ending 'os migrate meta --from 16'. QA run #27441 found the live message no longer contains it. job.zod.ts JOB_ID_RETIRED now closes with the house aged-out sentence: the edit left `os migrate meta` with the protocol-16.x conversions, so apply it by hand. The quote now matches. The clause is unchanged: authoring `id` still errors with that prescription. Read from source at base 22ce3d13fe. Wave anchor #27377, wave-3 accuracy slice S7 (#28341)",
"ref": "#27441"
}
]
},
{
"id": "integration-system.email-template-render",
"title": "Email templates resolve from the registry (no sys_email_template row since ADR-0131 D6/D10), resolve (name, locale) with en-US fallback, render {{path}} holes, gate on required variables and active:false, survive admin edits across redeploys — and the raw POST /api/v1/email/send door authenticates, requires manage_platform_settings, bounds sentBy, from, headers, organizationId and identityMail, refuses anonymous, and 400s malformed input",
"since": "v15",
"status": "active",
"revision": 16,
"priority": "P2",
"surface": "mixed",
"fixtures": {
"app": "showcase",
"requires": [
"the shipped fixture: showcase_task_done_email (subject '✅ Task done: {{title}}', variables title required / project optional — examples/app-showcase/src/system/emails/index.ts). It declares no `category`: that key and `isSystem` are RETIRED (#22876, ADR-0049 — retiredKey() tombstones on the template schema), so a template authored with either is refused at parse with the prescription",
"a capturable email channel (dev transport / log capture — no real SMTP needed)",
"a zh-CN member of the shipped template for the i18n-bundle clause, authored into the showcase's customization pair: POST /api/v1/packages/com.example.showcase/ensure-customization (201 the first time, 200 after), then PUT /api/v1/meta/email_template/showcase_task_done_email?package=com.example.showcase.custom with the shipped body carrying locale: 'zh-CN' and NO `overrides`. The base ships en-US alone, so a zh-CN member is the pair's own item, not an override: declaring `overrides` for it answers 403 NOT_OVERRIDABLE ('… ships no email_template named … with locale 'zh-CN'', declared_package_ships_no_such_item, packages/metadata-protocol/src/protocol-packaged-base-refusal.ts), and a package-less PUT of it answers 403 NOT_OVERRIDABLE since ADR-0146 D11. Reset it with DELETE /api/v1/meta/email_template/showcase_task_done_email?package=com.example.showcase.custom&member=zh-CN",
"for acceptance[5]'s declared-source half a WRITABLE copy of the showcase (a scratch copy under /tmp, never the tree): the stock app is a read-only code package, so a run cannot edit its declared template source. QA run #23166 scored that half partial for want of one; the admin-edit half runs on stock"
],
"knownGaps": [
"no stock example exercises an email template end-to-end; needs a small fixture flow with a notify/email step",
"refinement of the gap above: the TEMPLATE fixture exists (showcase_task_done_email) and the send path is pinned by packages/qa/dogfood/test/email-template-materialization.dogfood.test.ts, but no shipped FLOW invokes sendTemplate. The workable door, measured by QA run #23922 and corrected by QA run #28656 at 6e11a929: a SCRATCH flow authored through POST /api/v1/automation (a runtime flow registers on stock showcase) of type 'api', whose start node's config is { triggerType: 'api', hookId, secret } — an api flow needs a non-blank config.secret or a config.secretRef, and without one its registration is refused (service-automation flow-registration-checks.ts validateApiTriggerSecret; 400 when #28656 met it) — and whose notify node names channels ['email'], template 'showcase_task_done_email' and templateData (CEL value envelopes for title / project) and carries NO inline title or message: template and inline title/message are mutually exclusive (NotifyConfigSchema, packages/spec/src/automation/io-node-config.zod.ts; 400). Fire it as the admin with POST /api/v1/automation/NAME/trigger. Not type 'autolaunched': #28656's autolaunched flow was refused at that door, 403 (the door refuses an elevated, runAs: 'system', self-triggered type with PERMISSION_DENIED, packages/runtime/src/flow-start-admission.ts) — the email channel calls sendTemplate per recipient, and each delivery lands in sys_email (admin GET /api/v1/data/sys_email) with the rendered subject and body"
]
},
"variants": [
"locale resolution: exact (name, locale) match / a named locale folded to a bundle member (zh → zh-CN) / the declared fallback locale, then en-US / two-locale bundle picking by recipient locale",
"body: bodyHtml + bodyText authored / bodyText omitted (service derives text from HTML — omitted from the ROW, not nulled)",
"gate: active:false → TEMPLATE_INACTIVE",
"gate: missing required variable → fail-fast (requireVars)",
"rejection: unknown key (strictObject; aliases title→subject, content/html→bodyHtml, text→bodyText, from/sender→fromOverride — #5013)",
"rejection: name not dotted snake_case"
],
"steps": [
"boot the showcase; GET /api/v1/meta/email_template/showcase_task_done_email and read the served item — subject, bodyHtml, variables, active. The REGISTRY serves it: since ADR-0131 D6/D10 (#22875) a declared template is read by (name, locale) from the registry, and no sys_email_template row backs it — the table holds 0 rows on a stock boot (QA run #23166) and its organization door is closed (packages/plugins/plugin-email/src/email-template-door.ts)",
"drive a send with full data ({ title, project }) through the scratch notify flow of knownGaps[1] (POST /api/v1/automation; channels ['email'], template, templateData; fired through its api trigger); capture the rendered subject/body from the sys_email row it lands (the dev log transport logs no body)",
"drive a send MISSING the required `title`; capture the fast failure",
"make the template inactive (a Studio save of the item with active:false, which on the read-only showcase goes into the pair com.example.showcase.custom as steps[6] says, or a scratch template authored active:false) and send; capture the TEMPLATE_INACTIVE error",
"author the zh-CN twin; send to a zh-CN-locale recipient, to a zh-locale recipient (a tag the bundle folds) and to a recipient whose language the bundle lacks (e.g. ja-JP); capture which row rendered each. The showcase declares i18n fallbackLocale 'en' (examples/app-showcase/objectstack.config.ts), which folds to the en-US row. To read one member back by name, select it with ?member= (GET /api/v1/meta/email_template/NAME?member=zh-CN): on that read ?locale= is the response's translation locale and selects no member (META_ITEM_MEMBER_PARAM, packages/rest/src/meta-item-read-gate.ts)",
"author a template with fromOverride + replyTo and verify both on the outbound message. fromOverride is an object { name?, address } with address an email (EmailAddressInlineSchema, packages/spec/src/system/email-template.zod.ts) and replyTo a plain address string; a string fromOverride is refused at save, 422 INVALID_METADATA 'expected object'",
"edit the template wording as an admin in Studio, redeploy/reboot, and re-read the served item over GET /api/v1/meta/email_template/showcase_task_done_email — the admin's wording must still be served. On the read-only showcase Studio's Customize saves the edit into the pair com.example.showcase.custom; over HTTP the same write is POST /api/v1/packages/com.example.showcase/ensure-customization, then PUT /api/v1/meta/email_template/showcase_task_done_email?package=com.example.showcase.custom with overrides: {package:'com.example.showcase', basedOn:'0.1.0'}. A package-less PUT of the shipped name answers 403 NOT_OVERRIDABLE since ADR-0146 D11 (packagelessOverlayWriteRefusal, packages/metadata-protocol/src/protocol-packaged-base-refusal.ts)",
"on the WRITABLE showcase copy (fixtures.requires[3]), edit the DECLARED source template and metadata-reload WITHOUT a reboot, then GET /api/v1/meta/email_template/<name> — the registry serves the edited item (email_template is allowRuntimeCreate:true; the plugin subscribes to metadata changes). Keep the reboot out of it: under os dev's default watcher a declared-source save recompiles AND restarts the server (packages/cli/src/commands/dev.ts, --restart defaults on), which proves nothing about a reload. Compile into the running copy's artifact with objectstack compile --output COPY/dist/objectstack.json, or boot the copy with os dev --no-restart (the watcher then only rebuilds the artifact), and read the listener's PID before and after (lsof -ti tcp:PORT): an unchanged PID is part of the evidence, and a changed one means this half was not driven. On the stock read-only showcase this half is not drivable: record it partial, as QA run #23166 did",
"build the two rejection probes (stray key `body`; name 'BadName') and capture the errors",
"drive the raw send door POST /api/v1/email/send four ways: (a) as an admin (holding manage_platform_settings) with a well-formed message { to, subject, html } (or `text`; SendEmailInput's body keys are `html`/`text` — `bodyHtml`/`bodyText` are the TEMPLATE authoring fields, not wire keys) → capture status + the dev-transport landing; (b) anonymous (no session) → capture status; (c) a non-object / malformed body → capture the envelope, and a recipient whose display name is not a string (e.g. to: {name: 42, address: 'a@example.com'}) → capture the 400 VALIDATION_FAILED naming the display name (since #29891); after each 400 VALIDATION_FAILED read sys_email for the 'failed' row it leaves; (d) as a member WITHOUT manage_platform_settings (mint one through admin create-user), and as the admin with a `from` other than the configured sender, with a `sentBy` naming another user, with a `headers` value that is not a plain object of single-line strings (a list of entries, say), with an `organizationId` other than the admin's active organization, and with `identityMail: true` → capture each refusal and confirm no new sys_email or sys_identity_email row; then send once more as the admin with no `organizationId` and confirm the new sys_email row's organization_id is the admin's active organization",
"while you are at the raw door, send the wrong-vocabulary body { to, subject, bodyHtml } deliberately and capture the refusal — 400 VALIDATION_FAILED 'at least one of text or html is required'. This is the shape the checklist itself used to name (run #7690); keeping the probe pins the two vocabularies apart"
],
"acceptance": [
{
"clause": "the authored template is what actually renders: subject/body substitute every {{path}} hole with the run's values, and the AUTHORED wording (not a built-in or stale copy) reaches the transport — the false-compliance disconnect #4509 named, now closed by the registry read: sendTemplate resolves the registry item by (name, locale), with no table row in between (ADR-0131 D6/D10)",
"oracle": "log",
"verify": "captured render contains the authored strings with substituted values and zero unresolved {{placeholder}} residue",
"evidence": "the captured render"
},
{
"clause": "a send missing a REQUIRED variable fails fast with a located error naming the variable (requireVars, email-service.ts) — never a silently-empty substitution; the optional variable's absence does not fail the send",
"oracle": "api",
"verify": "the missing-title send's sys_notification_delivery row (GET /api/v1/data/sys_notification_delivery) reads status 'dead' with error 'MISSING_VARIABLES: title': the email channel grades MISSING_VARIABLES permanent, so the dispatcher dead-letters the delivery instead of retrying it (packages/services/service-messaging/src/email-channel.ts). The served log is no oracle: the failure is recorded on the delivery row, not printed. A missing-project send renders",
"evidence": "the two outcomes"
},
{
"clause": "active:false is a real gate: sendTemplate returns TEMPLATE_INACTIVE",
"oracle": "api",
"verify": "the inactive send's sys_notification_delivery row reads status 'dead' with error 'TEMPLATE_INACTIVE: <template name>' (email-service.ts throws it; the email channel grades it permanent), read over GET /api/v1/data/sys_notification_delivery, not the served log",
"evidence": "the error"
},
{
"clause": "(name, locale) resolution walks the ladder of record, SendTemplateInput.locale in packages/spec/src/contracts/email-service.ts: two rows with one name are an i18n bundle, the name is matched exactly and only the locale member is resolved, and every rung loads one row at one tag exactly, so en and en-US stay two distinct rows (folding chooses which row is read, it never merges two). A call that NAMES a locale, over the built-in registry template loader, walks: (1) this locale, folded against the bundle's locale tags by resolveBundleLocale, which runs resolveLocaleAmong's five steps — exact, then case-insensitive (zh-cn → zh-CN), then the platform locale table language (platformLocaleTagOf: zh → zh-CN, zh-TW / zh-HK / zh-MO → a zh-Hant tag), then base language (en-GB → en), then variant expansion (zh-TW → zh-CN when the bundle holds no zh-Hant tag), the first match in ascending tag order; (2) the stack's declared fallback locale (II18nService.getFallbackLocale(): i18n.fallbackLocale, else defaultLocale), folded the same way, skipped when none is declared; (3) en-US, exactly; (4) TEMPLATE_NOT_FOUND, which is permanent. A rung that resolves to a tag already tried is skipped; a replacement TemplateLoader keeps the exact ladder. A call that names no locale starts at en-US exactly, with no fold and no declared fallback, then takes the loader's own no-locale answer (the built-in loader: the bundle's lowest locale tag)",
"oracle": "log",
"verify": "the zh-CN recipient gets the zh-CN render; the zh recipient gets the zh-CN render too (the platform locale table step); a recipient whose language the bundle lacks (e.g. ja-JP) gets the en-US row, through the showcase's declared fallback en folding to en-US. A zh recipient getting the en-US row is the FAIL. The clause's no-locale branch cannot be driven from the HTTP door: the email channel always names a locale, the recipient's sys_user.locale or else the deployment default (resolveRecipientLocale, packages/services/service-messaging/src/recipient-locale.ts), so score that branch from source, never as a live FAIL",
"evidence": "the two renders"
},
{
"clause": "fromOverride and replyTo are honored on the outbound message; an omitted bodyText is derived from HTML at send time (and stays absent on the row so re-seeds never blank it)",
"oracle": "log",
"verify": "outbound headers + the derived text alternative",
"evidence": "the captured message"
},
{
"clause": "both provenance protections hold: an admin's Studio edit (an override of the declared item, saved in the pair com.example.showcase.custom, ADR-0146 D11) survives redeploys, AND a declared-source edit is served on metadata reload without a restart",
"oracle": "api",
"verify": "post-reboot GET /api/v1/meta/email_template/<name> serves the admin wording; on the writable showcase copy the reload path serves the edited declared item. Read the REGISTRY, never sys_email_template, which holds no row for a declared template (ADR-0131 D6/D10). On the stock read-only showcase the declared-source half is partial (fixtures.requires[3])",
"evidence": "before/after item reads for both paths, and which showcase copy the declared-source half ran on"
},
{
"clause": "authoring rejections are loud and prescriptive: a stray key errors naming it with the alias prescription (content→bodyHtml per #5013 — landing on the REQUIRED body so the rename renders); a non-dotted-snake-case name errors at parse",
"oracle": "build",
"verify": "the two probe errors against EmailTemplateDefinitionSchema",
"evidence": "the error texts"
},
{
"clause": "the raw transactional send door (POST /api/v1/email/send → IEmailService.send, complementary to the sendTemplate path above) authenticates, authorizes and validates: an AUTHED well-formed message from a caller holding manage_platform_settings — { to, subject } plus AT LEAST ONE of `html` / `text` — lands at the dev transport (200 whose body IS the send result, top level — { id, status: 'sent', messageId } — with no `result` wrapper and no success envelope; packages/rest/src/email-routes.ts answers res.json(result); its own refusals are flat { code, error }, e.g. { code: 'INVALID_REQUEST', error: 'JSON body required' }), sent from the configured sender, attributed (sent_by) to the caller and recorded (organization_id) under the caller's active organization; an authenticated caller WITHOUT that capability is refused 403 PERMISSION_DENIED and nothing is sent; a `sentBy` naming another user, a `from` naming an address other than the configured sender, a `headers` value that is not a plain object mapping header names to single-line strings, a custom From / Sender / Return-Path header, an `organizationId` other than the caller's active organization, and an `identityMail` other than false are each refused 403 PERMISSION_DENIED before any send; an ANONYMOUS send is refused 401 UNAUTHENTICATED (the #3963 unconditional gate — the api.requireAuth opt-out is retired); a MALFORMED body is refused 400 with a ledgered envelope code (INVALID_REQUEST for a non-object body, VALIDATION_FAILED for a bad message shape) — never a 500 for caller-fixable input, and a runtime with no email provider answers 501 NOT_IMPLEMENTED rather than a fake success",
"oracle": "api",
"verify": "the POST /api/v1/email/send responses: admin 200 + dev-transport capture, anonymous 401 UNAUTHENTICATED, malformed 400 with the named code (a non-string display name too: 400 VALIDATION_FAILED '… the display name of … must be a string', formatCallerAddress in packages/plugins/plugin-email/src/email-service.ts, since #29891; a message the service refuses 400 VALIDATION_FAILED still records a sys_email row with status 'failed' and error 'rejected before delivery: …', recordRejectedMessage, while the route's own refusals, 401, 403 and 400 INVALID_REQUEST, record none), member 403 PERMISSION_DENIED, foreign from / sentBy / organizationId, off-shape headers and identityMail 403 PERMISSION_DENIED with no new mail-log row, and the admin's row stamped with the admin's active organization (email-routes.ts registerEmailEndpoints: enforceAuth, the capability / sentBy / sender / tenant bounds → 403 PERMISSION_DENIED, non-object→400 INVALID_REQUEST, VALIDATION_FAILED passthrough, 501 no-provider). ⚠ WIRE KEYS (corrected, run #7690): the send input is SendEmailInput { to, subject, text?, html?, from?, cc?, bcc?, replyTo?, … } (packages/spec/src/contracts/email-service.ts) — NOT `bodyHtml`. `bodyHtml`/`bodyText` are the email-TEMPLATE authoring fields (this item's own variants list at the `body:` and alias lines says so); posting them to this door is refused 400 'VALIDATION_FAILED: at least one of text or html is required' (packages/plugins/plugin-email/src/email-service.ts). A 400 here is the run using the wrong vocabulary, not a product defect — re-send with `html` before filing anything",
"evidence": "the responses + the dev-transport landing (plus the wrong-vocabulary refusal, if the probe was driven)"
}
],
"negative": [
"the false-compliance case #4509 named is the standing FAIL: an admin 'fixes' a template and recipients keep receiving the old copy — any render not matching the authoritative row is a FAIL against the bridge",
"a send with an unresolved {{placeholder}} residue delivered to the transport is a FAIL (render must substitute or refuse, never ship holes)",
"NOT a FAIL: POST /api/v1/email/send answering 400 'at least one of text or html is required' to a body carrying `bodyHtml`. That is the two vocabularies being kept apart, correctly — template authoring uses bodyHtml/bodyText, the wire uses html/text (run #7690 corrected this checklist's own text)"
],
"traps": [
"stale-dist"
],
"automated": {
"kind": "e2e",
"ref": "packages/qa/dogfood/test/email-template-materialization.dogfood.test.ts — on its own fixture package (auth.password_reset), not the showcase template: acceptance[0] (the registry serves the authored item beside the built-in and sendTemplate renders it, the subject exact and the body by containment), and halves only of acceptance[3] (the exact zh-CN member is reachable; not the fold rungs, the declared-fallback rung or the TEMPLATE_NOT_FOUND end, which packages/plugins/plugin-email/src/template-locale-fold.test.ts pins at unit and template-locale-fold.integration.test.ts on a booted EmailServicePlugin, below this oracle's layer) and of acceptance[5] (a Studio save sends on the next mail with no restart; not redeploy survival, not the declared-source reload). + packages/qa/dogfood/test/email-template-overlay-survives-boot.dogfood.test.ts ('after a cold boot the metadata door and the rendered mail both carry the admin's wording') — acceptance[5]'s redeploy-survival half on the showcase. + packages/qa/dogfood/test/email-template-two-locales-survive-boot.dogfood.test.ts ('control: a locale nobody saved keeps the package ladder') — acceptance[3]'s en-US rung for a locale with no row (ja-JP). acceptance[6] rests on no pin; acceptance[7]'s capability, sentBy, sender, headers-shape, organization and identity-mail bounds are pinned below the e2e layer by packages/rest/src/email-send-door-bounds.test.ts (the real Hono transport over a contract-typed mail-service double — the dev-transport landing and the sys_email row stay hand-driven), and acceptance[1], [2] and [4] on one below their oracle's layer: packages/plugins/plugin-email/src/send-template.test.ts drives EmailService over a fake loader and a capture transport, asserting MISSING_VARIABLES (acceptance[1]), TEMPLATE_INACTIVE (acceptance[2]) and the fromOverride and derived text (acceptance[4]) at unit — whether the error names the variable, the registry-resolved inactive item, replyTo and the row stay hand-driven: drive them by hand"
},
"source": [
"packages/spec/src/system/email-template.zod.ts#fromOverride (requireds, dotted-name regex, aliases #5013, variables/required, fromOverride/replyTo/active)",