@topy-ai/maggie 0.7.36 → 0.7.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README-zh-TW.md CHANGED
@@ -8,7 +8,7 @@ Codex、Claude Code 與相容的 coding agents。
8
8
  ## 安裝
9
9
 
10
10
  ```bash
11
- npx @topy-ai/maggie@0.7.36 init --agent all
11
+ npx @topy-ai/maggie@0.7.37 init --agent all
12
12
  npx @topy-ai/maggie doctor --project .
13
13
  ```
14
14
 
@@ -25,7 +25,7 @@ maggie doctor --project . --require-bootstrap --strict
25
25
  deployment、memory、feedback 和 MaggieDash。內容先 draft/review,外部寫入、
26
26
  publish 與 production deployment 需要明確確認。
27
27
 
28
- 目前 release 是 `0.7.36`,完成下一批已驗證 feedback:修正 doctor placeholder scope、Tailwind renderable source scope、internal link/fragment audit、unstable baseline classification、site-wide baseline reason、base64url asset hash、installed-file hash update safety,並加入 provider-routed Gemini v2、venue timezone/DST booking parsing、social-card release path、notification lifecycle contract 和 mobile hero video playback contract。provider-bound video generation 與 transactional delivery 已記錄在 issue #39;前一批延後功能仍在 issue #38,不會直接成為 active memory。0.7.33 記錄並審查一筆更正回饋;確認 0.7.32 已正確處理 batch index,沒有修改已驗證的 shared behavior。0.7.32 加入 feedback 一基索引支援、MaggieDash panel 的 source/freshness/error evidence、Consent Mode 與實際 write/no-op reconciliation、SEO baseline recapture、sitemap origin rebasing、content-diff scope、migration ledger reconciliation、deployment credential preflight、release provenance/runtime preflight、icon release gate、opt-in blog auto-publish gate,以及 least-privilege VPS deployer。也修復 top-level `maggie feedback` dispatcher parity。0.7.31 加入 update 差異摘要、atomic installer copy、subset install manifest merge,以及 inventory drift 時 doctor non-zero。0.7.30 補上 feedback tracking issue closeout gate 與 batch 14/15 audit ledger。0.7.29 修正 npm package landing page 使用英文 README;0.7.28 加入 versioned Gemini model policy、明確 fallback 與 provenance、bundled-first CLI
28
+ 目前 release 是 `0.7.37`,加入可安裝的 `maggie-booking` workflow:MaggieDash Booking host bootstrap、傳統 email/password 團隊登入與 granular permissions、Stripe payment boundary、Resend outbox/template 管理、public customer booking flow、runtime/ops evidence checks,以及完整的 Booking 維護文件。Production activation 仍會 fail-closed,直到 host migration、owner、Stripe、scheduler 和 authenticated runtime evidence 都完成。上一版 `0.7.36` 完成下一批已驗證 feedback:修正 doctor placeholder scope、Tailwind renderable source scope、internal link/fragment audit、unstable baseline classification、site-wide baseline reason、base64url asset hash、installed-file hash update safety,並加入 provider-routed Gemini v2、venue timezone/DST booking parsing、social-card release path、notification lifecycle contract 和 mobile hero video playback contract。provider-bound video generation 與 transactional delivery 已記錄在 issue #39;前一批延後功能仍在 issue #38,不會直接成為 active memory。0.7.33 記錄並審查一筆更正回饋;確認 0.7.32 已正確處理 batch index,沒有修改已驗證的 shared behavior。0.7.32 加入 feedback 一基索引支援、MaggieDash panel 的 source/freshness/error evidence、Consent Mode 與實際 write/no-op reconciliation、SEO baseline recapture、sitemap origin rebasing、content-diff scope、migration ledger reconciliation、deployment credential preflight、release provenance/runtime preflight、icon release gate、opt-in blog auto-publish gate,以及 least-privilege VPS deployer。也修復 top-level `maggie feedback` dispatcher parity。0.7.31 加入 update 差異摘要、atomic installer copy、subset install manifest merge,以及 inventory drift 時 doctor non-zero。0.7.30 補上 feedback tracking issue closeout gate 與 batch 14/15 audit ledger。0.7.29 修正 npm package landing page 使用英文 README;0.7.28 加入 versioned Gemini model policy、明確 fallback 與 provenance、bundled-first CLI
29
29
  dispatch、`maggie --version`、feedback batch review 聚合與重複偵測、marketplace enrichment evidence、booking
30
30
  worker/resolver evidence,以及 read-only migration preflight。它也包含 host-owned mobile app surface contract、signed-in
31
31
  camera-state QA、直接 Astro route resolution、correlated feedback batch,以及
@@ -57,6 +57,49 @@ section registry、短期 agent content bridge,以及 translation out-of-band
57
57
  browser evidence、rendered canary 與 deployment preflight。缺少必要 adapter 時
58
58
  回傳 `inconclusive`,只有五組 evidence 全部通過才回傳 `passed`。
59
59
 
60
+ Booking 也有 tenant-scoped 的 Notifications 畫面,管理 Resend transactional
61
+ delivery outbox:可查看去識別化的狀態與 sanitized error;owner/manager 只有
62
+ 在填寫 reason 並使用 idempotency key 時,才可以 replay `dead_letter` 項目。
63
+ 這是 Maggie 的 server-side delivery queue 與 audit 管理,不取代 Resend 自己的
64
+ domain、audience、campaign 或 analytics console。
65
+
66
+ 在全新的 Astro 專案中,可以讓安裝流程補上缺少的 Booking runtime 套件:
67
+
68
+ ```bash
69
+ maggie booking install --project . --confirm --install-dependencies
70
+ ```
71
+
72
+ 這個選項會依照專案現有的 npm/pnpm/yarn/bun lockfile,只安裝缺少的
73
+ React、Phosphor、Tailwind、PostgreSQL 和 Stripe 套件,保留已存在的版本,
74
+ 並更新相對應的 lockfile;它不能和 `--dry-run` 或 `--diff` 一起使用。
75
+
76
+ Booking 的 browser evidence gate 現在涵蓋全部 15 個 manager routes,在 mobile、
77
+ tablet、desktop 三種 viewport 共需要 45 個 screens,包含 waitlist、locations、
78
+ notifications、reports 和 audit。Production release 仍需要 authenticated HTTPS
79
+ capture,並且 console、request、layout errors 都必須為空。
80
+
81
+ 可在不連線資料庫或 provider 的情況下,獨立驗證管理員設定員工登入的 access
82
+ contract:
83
+
84
+ ```bash
85
+ maggie booking access-contract
86
+ ```
87
+
88
+ Booking Team access 支援透過 Resend 發送傳統 email/password 邀請、`manager`、
89
+ `staff`、`finance` 角色、細粒度 permissions、staff profile 綁定、密碼重設、
90
+ 撤銷權限與 audit;不使用 passkey,也不會自動重新啟用 disabled account。
91
+
92
+ 可用以下命令獨立驗證 tenant-scoped Booking email template contract:
93
+
94
+ ```bash
95
+ maggie booking email-templates-contract
96
+ ```
97
+
98
+ Booking 內置七種 Resend 事件模板。Owner、administrator 和 Booking manager
99
+ 可以編輯 draft、用 sandbox sample data 預覽、發佈 audited version,或 rollback
100
+ 舊版本。每個事件只接受核准的 placeholder,worker 發送前會 escape value;
101
+ provider credentials 和 recipient address 只留在 server/worker,不會返回瀏覽器。
102
+
60
103
  新版 release gates:
61
104
 
62
105
  ```bash
package/README.md CHANGED
@@ -60,7 +60,15 @@ Maggie keeps the existing project foundation and asks for decisions before
60
60
  shared routes, analytics, or publishing boundaries change. The current
61
61
  package ships 19 installable skills and a local-first MaggieDash foundation.
62
62
 
63
- The current release is `0.7.36`. It closes the next validated feedback batch:
63
+ The current release is `0.7.37`. It adds the installable `maggie-booking`
64
+ workflow for MaggieDash Booking: host bootstrap, traditional email/password
65
+ team access with granular permissions, Stripe payment boundaries, Resend
66
+ outbox and tenant email-template management, public customer booking flow,
67
+ runtime/ops evidence checks, and the maintained Booking implementation docs.
68
+ Production activation remains fail-closed until the host migration, owner,
69
+ Stripe, scheduler, and authenticated runtime evidence are supplied.
70
+
71
+ The previous `0.7.36` release closed the next validated feedback batch:
64
72
  production demo fixtures are development-only, Dash infers the persisted
65
73
  project id, clone asset extraction includes responsive/background assets, SEO
66
74
  structure hashes ignore content-hashed asset names, decorative empty alt text
@@ -517,8 +525,8 @@ artifact schemas.
517
525
  Recommended upgrade sequence for the current release:
518
526
 
519
527
  ```bash
520
- npx @topy-ai/maggie@0.7.36 update --project . --force
521
- npx @topy-ai/maggie@0.7.36 cleanup --project .
528
+ npx @topy-ai/maggie@0.7.37 update --project . --force
529
+ npx @topy-ai/maggie@0.7.37 cleanup --project .
522
530
  ```
523
531
 
524
532
  Maintainers should pass npm credentials through the repository helper, never
@@ -615,6 +623,94 @@ for local development or a configured private Git URL. The host project keeps
615
623
  ownership of routes, email/password auth, database, provider credentials, and
616
624
  the `/api/maggie/*` adapter.
617
625
 
626
+ For an Astro project that also needs Booking, use the Booking installer. It
627
+ installs the separate `./_maggie/booking` workspace plus missing email/password
628
+ routes, first-owner registration, PostgreSQL/Stripe host adapter, public
629
+ booking route, middleware scaffold, schema command, Resend worker, and an
630
+ `.env.maggie-booking.example`:
631
+
632
+ ```bash
633
+ maggie booking install --project . --confirm
634
+ ```
635
+
636
+ For a fresh Astro host, let the explicit install also add only the missing
637
+ Booking runtime packages through the host's existing npm/pnpm/yarn/bun
638
+ package manager:
639
+
640
+ ```bash
641
+ maggie booking install --project . --confirm --install-dependencies
642
+ ```
643
+
644
+ Existing dependency versions are preserved. This option updates the matching
645
+ lockfile and is intentionally incompatible with `--dry-run` and `--diff`.
646
+
647
+ For a reviewed new host, `--bootstrap` also applies the installed idempotent
648
+ Booking schema using the host's existing `DATABASE_URL`:
649
+
650
+ ```bash
651
+ maggie booking install --project . --confirm --bootstrap
652
+ ```
653
+
654
+ This remains opt-in and does not create the owner, configure Stripe, send
655
+ email, or deploy. If the host has no `BOOKING_TOKEN_SECRET`, bootstrap creates
656
+ one in the local `.env` without printing it. Existing secrets are preserved;
657
+ short configured values fail closed. External secret stores must provision the
658
+ key themselves.
659
+
660
+ Run the read-only onboarding checklist after installation:
661
+
662
+ ```bash
663
+ maggie booking setup --project .
664
+ ```
665
+
666
+ Validate the administrator-managed staff access boundary independently of a
667
+ database or provider:
668
+
669
+ ```bash
670
+ maggie booking access-contract
671
+ ```
672
+
673
+ The installed Booking workspace includes a Team access panel. An owner or
674
+ administrator can invite email/password accounts through Resend, assign
675
+ `manager`, `staff`, or `finance`, link a staff profile, edit granular
676
+ permissions, reset or resend setup credentials, and revoke Booking access.
677
+ The access contract is tenant-scoped, audited, and never silently reactivates
678
+ a disabled account.
679
+
680
+ Validate the tenant-scoped Booking email-template contract independently:
681
+
682
+ ```bash
683
+ maggie booking email-templates-contract
684
+ ```
685
+
686
+ The Booking workspace includes seven Resend event templates. Owner,
687
+ administrator, and Booking managers can edit drafts, preview sandboxed sample
688
+ data, publish audited versions, and roll back earlier versions. Event-specific
689
+ placeholders are allowlisted and escaped before the host worker sends through
690
+ Resend; provider credentials and recipient addresses remain server-only.
691
+
692
+ The default `--host auto` only selects Astro when detected. Existing host files
693
+ are preserved; a conventional `src/middleware.ts` receives the generated
694
+ `/_maggie` rewrite block automatically, while unsupported middleware is
695
+ preserved and reported for manual integration. This command does not apply migrations,
696
+ create the owner, or configure Stripe/Resend secrets. The setup checklist
697
+ reports required environment-key presence and the explicit schema,
698
+ owner-registration, Stripe webhook, and Resend-worker steps without printing
699
+ secret values or mutating the host.
700
+
701
+ Booking also includes a tenant-scoped Notifications screen for the Resend
702
+ delivery outbox. It shows redacted delivery state and sanitized errors through
703
+ `GET /api/maggie/booking/notifications.json`; an owner or manager can replay a
704
+ `dead_letter` item through the UI only with a reason and idempotency key. This
705
+ manages Maggie's server-side transactional delivery queue and audit trail; it
706
+ does not replace Resend's own domain, audience, campaign, or analytics console.
707
+
708
+ The Booking browser-evidence gate covers all 15 manager routes at mobile,
709
+ tablet, and desktop viewports (45 required screens), including waitlist,
710
+ locations, notifications, reports, and audit. A production release still
711
+ requires an authenticated HTTPS capture with zero console, request, and
712
+ layout errors.
713
+
618
714
  Compare an existing dashboard before replacing it:
619
715
 
620
716
  ```bash
package/bin/maggie.js CHANGED
@@ -58,6 +58,7 @@ Usage:
58
58
  maggie doctor [--project PATH]
59
59
  maggie bootstrap interview [project]
60
60
  maggie dash init|install|status|migrate|transition|variant|cms --project PATH [options]
61
+ maggie booking install|inspect|setup|contract|runtime-validate|ops-validate|release-gate|stripe-audit|tasks --project PATH [options]
61
62
  maggie dash sections <validate|prompt|keys|remap-translations|fanout-validate|locale-validate|variant-copy-validate|media-validate|bindings-validate|idempotency-validate|reconcile> [options]
62
63
  maggie dash inventory --pages-file FILE [--require-page-kinds] [--require-source-coverage]
63
64
  maggie dash api-contract --spec FILE
@@ -590,6 +591,7 @@ try {
590
591
  else if (command === "browser-audit") workflowCli("maggie_browser_audit.py", args);
591
592
  else if (command === "verification") workflowCli("maggie_verification.py", args);
592
593
  else if (command === "dash") workflowCli("maggie_dash.py", args);
594
+ else if (command === "booking") workflowCli("maggie_booking.py", args);
593
595
  else if (command === "agent-content") workflowCli("maggie_agent_content.py", args);
594
596
  else if (command === "content") workflowCli("maggie_content.py", args);
595
597
  else if (command === "init" || command === "install") install(args);
@@ -24,6 +24,9 @@ frontend framework.
24
24
  for translation keys and ordered migration;
25
25
  - [`translation-cache-policy-v1.json`](translation-cache-policy-v1.json):
26
26
  restart-after-out-of-band-write evidence.
27
+ - [`booking-email-templates-v1.json`](booking-email-templates-v1.json):
28
+ tenant-scoped Booking/Resend event templates, approved variables, and
29
+ server-only provider/recipient policy.
27
30
  - [`quality-contracts.md`](quality-contracts.md): reviewable inputs for
28
31
  disjoint page inventory, variant/media checks, binding resolution, repair
29
32
  convergence, and database target identity.
@@ -0,0 +1,29 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://maggiedash.topy.ai/contracts/booking-access-v1.json",
4
+ "title": "MaggieDash Booking access management v1",
5
+ "schemaVersion": "maggiedash-booking-access.v1",
6
+ "apiPrefix": "/api/maggie/booking/access.json",
7
+ "auth": { "administratorSession": "host-session-cookie", "emailPassword": true, "passkeys": false, "resendInvitation": true },
8
+ "roles": ["manager", "staff", "finance"],
9
+ "permissions": [
10
+ "calendar.read", "bookings.read", "bookings.manage", "customers.read",
11
+ "catalog.read", "catalog.manage", "staff.read", "staff.manage",
12
+ "resources.read", "resources.manage", "schedule.read", "schedule.manage",
13
+ "payments.read", "payments.manage", "refunds.manage", "settings.read",
14
+ "settings.manage", "reports.read", "audit.read"
15
+ ],
16
+ "endpointIds": ["booking.access.read", "booking.access.create", "booking.access.update", "booking.access.revoke"],
17
+ "canonicalRoutes": {
18
+ "booking.access.read": "GET /access.json",
19
+ "booking.access.create": "POST /access.json",
20
+ "booking.access.update": "PATCH /access.json",
21
+ "booking.access.revoke": "DELETE /access.json"
22
+ },
23
+ "policy": {
24
+ "tenantScoped": true,
25
+ "disabledAccountsStayDisabled": true,
26
+ "passwordMinimumLength": 12,
27
+ "auditActions": ["booking.access.created", "booking.access.updated", "booking.access.invited", "booking.access.password-reset", "booking.access.revoked"]
28
+ }
29
+ }
@@ -0,0 +1,46 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://maggiedash.topy.ai/contracts/booking-customer-surface-v1.json",
4
+ "title": "MaggieDash Booking customer surface v1",
5
+ "schemaVersion": "maggiedash-booking-customer-surface.v1",
6
+ "apiPrefix": "/api/maggie/booking/public",
7
+ "pagePath": "/_maggie/booking/book",
8
+ "auth": "public-noindex",
9
+ "noindex": true,
10
+ "hostResponsibilities": ["tenant-binding", "origin-and-csrf", "rate-limit", "bot-protection", "opaque-payment-return-token", "sealed-customer-manage-token", "provider-and-notification-adapters"],
11
+ "endpointIds": [
12
+ "booking.public.catalog.read",
13
+ "booking.public.availability.read",
14
+ "booking.public.waitlist.join",
15
+ "booking.public.hold.create",
16
+ "booking.public.checkout.start",
17
+ "booking.public.payment-return.read",
18
+ "booking.public.manage.read",
19
+ "booking.public.booking-cancel",
20
+ "booking.public.booking-reschedule"
21
+ ],
22
+ "canonicalRoutes": {
23
+ "booking.public.catalog.read": "GET /catalog.json",
24
+ "booking.public.availability.read": "GET /availability.json?serviceVariantId={serviceVariantId}&date={date}",
25
+ "booking.public.waitlist.join": "POST /waitlist.json",
26
+ "booking.public.hold.create": "POST /holds.json",
27
+ "booking.public.checkout.start": "POST /checkout.json",
28
+ "booking.public.payment-return.read": "GET /payment-return.json?token={token}",
29
+ "booking.public.manage.read": "GET /manage.json?token={token}",
30
+ "booking.public.booking-cancel": "POST /bookings/{id}/cancel.json",
31
+ "booking.public.booking-reschedule": "POST /bookings/{id}/reschedule.json"
32
+ },
33
+ "responsePolicy": {
34
+ "cacheControl": "no-store",
35
+ "robots": "noindex",
36
+ "paymentRedirectProof": false,
37
+ "mutationPolicy": "all-public-mutations-require-idempotency-key-and-replay-original-result",
38
+ "holdInputPolicy": ["valid-email", "booking-update-consent"],
39
+ "sensitiveFields": ["projectId", "customerId", "providerPaymentRef", "token", "secret", "rawPayload"]
40
+ },
41
+ "tokenPolicy": {
42
+ "paymentReturn": "short-lived",
43
+ "customerManage": "30-day-sealed",
44
+ "rawTokenStorage": false
45
+ }
46
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://maggiedash.topy.ai/contracts/booking-email-templates-v1.json",
4
+ "title": "MaggieDash Booking email templates v1",
5
+ "schemaVersion": "maggiedash-booking-email-templates.v1",
6
+ "apiPrefix": "/api/maggie/booking/email-templates.json",
7
+ "auth": {
8
+ "managerSession": "host-session-cookie",
9
+ "emailPassword": true,
10
+ "passkeys": false
11
+ },
12
+ "roles": ["owner", "admin", "manager"],
13
+ "events": [
14
+ { "id": "booking.confirmed", "variables": ["customerName", "serviceName", "when", "locationName", "bookingId", "manageUrl", "siteName"] },
15
+ { "id": "booking.rescheduled", "variables": ["customerName", "serviceName", "when", "locationName", "bookingId", "manageUrl", "siteName"] },
16
+ { "id": "booking.cancelled", "variables": ["customerName", "serviceName", "when", "locationName", "bookingId", "reason", "siteName"] },
17
+ { "id": "booking.reminder", "variables": ["customerName", "serviceName", "when", "locationName", "bookingId", "manageUrl", "siteName"] },
18
+ { "id": "payment.action_required", "variables": ["customerName", "serviceName", "bookingId", "actionUrl", "siteName"] },
19
+ { "id": "payment.refunded", "variables": ["customerName", "serviceName", "bookingId", "siteName"] },
20
+ { "id": "booking.waitlist.available", "variables": ["customerName", "serviceName", "when", "locationName", "bookingUrl", "siteName"] }
21
+ ],
22
+ "endpointIds": ["booking.email-templates.read", "booking.email-templates.draft", "booking.email-templates.publish", "booking.email-templates.rollback"],
23
+ "canonicalRoutes": {
24
+ "booking.email-templates.read": "GET /email-templates.json",
25
+ "booking.email-templates.draft": "PATCH /email-templates.json?action=draft",
26
+ "booking.email-templates.publish": "PATCH /email-templates.json?action=publish",
27
+ "booking.email-templates.rollback": "PATCH /email-templates.json?action=rollback"
28
+ },
29
+ "policy": {
30
+ "tenantScoped": true,
31
+ "auditRequired": true,
32
+ "idempotencyRequiredForMutations": true,
33
+ "syntax": "{{variable}}",
34
+ "maxHtmlLength": 50000,
35
+ "providerCredentialsRemainServerOnly": true,
36
+ "recipientDataNeverReturned": true
37
+ }
38
+ }
@@ -0,0 +1,76 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://maggiedash.topy.ai/contracts/booking-host-adapter-v1.json",
4
+ "title": "MaggieDash Booking host adapter v1",
5
+ "schemaVersion": "maggiedash-booking-host-adapter.v1",
6
+ "apiPrefix": "/api/maggie/booking",
7
+ "auth": { "managerSession": "host-session-cookie", "emailPassword": true, "passkeys": false },
8
+ "requiredCapabilities": ["bookingOverview", "bookingCalendar", "bookingLifecycle", "customerLookup", "bookingWaitlist", "serviceCatalog", "locationSetup", "staffSetup", "resourceSetup", "paymentReconciliation", "bookingReports", "bookingSettings", "bookingAudit", "notificationOperations", "bookingAccess"],
9
+ "endpointIds": [
10
+ "booking.overview.read", "booking.reports.read", "booking.calendar.read", "booking.bookings.read", "booking.booking.read", "booking.booking.create", "booking.booking.transition", "booking.booking.reschedule", "booking.availability.read", "booking.holds.create", "booking.holds.release", "booking.customers.read", "booking.customer.read", "booking.waitlist.read", "booking.waitlist.update", "booking.catalog.read", "booking.catalog.write", "booking.locations.read", "booking.location.write", "booking.staff.read", "booking.staff.write", "booking.resources.read", "booking.resources.write", "booking.schedule.read", "booking.schedule.write", "booking.payments.read", "booking.payment.start", "booking.payment.reconcile", "booking.refund.start", "booking.notifications.read", "booking.notification.replay", "booking.health.read", "booking.payment-health.read", "booking.settings.read", "booking.settings.update", "booking.audit.read", "booking.events.read", "booking.runtime.read", "booking.provider.webhook"
11
+ ],
12
+ "canonicalRoutes": {
13
+ "booking.payment.start": "POST /payments/start.json",
14
+ "booking.refund.start": "POST /refunds.json",
15
+ "booking.notifications.read": "GET /notifications.json?status={status}",
16
+ "booking.notification.replay": "POST /notifications/{id}/replay.json",
17
+ "booking.payment-health.read": "GET /payment-health.json",
18
+ "booking.provider.webhook": "POST /webhooks/{provider}"
19
+ },
20
+ "serviceMethods": {
21
+ "booking.overview.read": "readOverview",
22
+ "booking.reports.read": "readReports",
23
+ "booking.calendar.read": "readCalendar",
24
+ "booking.bookings.read": "listBookings",
25
+ "booking.booking.read": "readBooking",
26
+ "booking.booking.create": "createBooking",
27
+ "booking.booking.transition": "transitionBooking",
28
+ "booking.booking.reschedule": "rescheduleBooking",
29
+ "booking.availability.read": "readAvailability",
30
+ "booking.holds.create": "createHold",
31
+ "booking.holds.release": "releaseHold",
32
+ "booking.customers.read": "listCustomers",
33
+ "booking.customer.read": "readCustomer",
34
+ "booking.waitlist.read": "listWaitlist",
35
+ "booking.waitlist.update": "updateWaitlist",
36
+ "booking.catalog.read": "readCatalog",
37
+ "booking.catalog.write": "updateCatalog",
38
+ "booking.locations.read": "listLocations",
39
+ "booking.location.write": "updateLocation",
40
+ "booking.staff.read": "listStaff",
41
+ "booking.staff.write": "updateStaff",
42
+ "booking.resources.read": "listResources",
43
+ "booking.resources.write": "updateResource",
44
+ "booking.schedule.read": "readSchedule",
45
+ "booking.schedule.write": "updateSchedule",
46
+ "booking.payments.read": "listPayments",
47
+ "booking.payment.start": "startPayment",
48
+ "booking.payment.reconcile": "reconcilePayment",
49
+ "booking.refund.start": "startRefund",
50
+ "booking.notifications.read": "listNotifications",
51
+ "booking.notification.replay": "replayNotification",
52
+ "booking.health.read": "readHealth",
53
+ "booking.payment-health.read": "readPaymentHealth",
54
+ "booking.settings.read": "readSettings",
55
+ "booking.settings.update": "updateSettings",
56
+ "booking.audit.read": "listAudit",
57
+ "booking.events.read": "listEvents",
58
+ "booking.runtime.read": "readRuntime",
59
+ "booking.provider.webhook": "handleWebhook"
60
+ },
61
+ "customerServiceMethods": [
62
+ "readPublicCatalog",
63
+ "readPublicAvailability",
64
+ "createCustomerHold",
65
+ "startCustomerCheckout",
66
+ "readCustomerPaymentReturn",
67
+ "readCustomerManage",
68
+ "cancelCustomerBooking",
69
+ "rescheduleCustomerBooking",
70
+ "joinCustomerWaitlist"
71
+ ],
72
+ "runtimeEvidence": {
73
+ "requiredFields": ["id", "method", "route", "status", "requiredFieldsPresent"],
74
+ "auth": ["session", "provider-webhook"]
75
+ }
76
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "schemaVersion": "maggiedash-booking-ops-evidence.v1",
3
+ "requiredChecks": ["backup_restore", "alert_routing", "recovery_rehearsal"],
4
+ "requiredAlertCodes": [
5
+ "worker.lock_contention",
6
+ "worker.job_failed",
7
+ "worker.stale",
8
+ "availability.stale",
9
+ "payments.reconciliation_lag",
10
+ "notifications.retrying",
11
+ "notifications.dead_letter"
12
+ ],
13
+ "requiredCheckFields": {
14
+ "backup_restore": ["status", "backupVerifiedAt", "restoreVerifiedAt", "rowCountVerified"],
15
+ "alert_routing": ["status", "alertCodes", "criticalDeliveryVerified"],
16
+ "recovery_rehearsal": ["status", "rollbackWriteGuardVerified", "workerRestartVerified", "outboxReplayVerified"]
17
+ },
18
+ "safeFields": ["schemaVersion", "generatedAt", "environment", "tenant", "checks", "backup_restore", "alert_routing", "recovery_rehearsal", "status", "backupVerifiedAt", "restoreVerifiedAt", "rowCountVerified", "alertCodes", "criticalDeliveryVerified", "rollbackWriteGuardVerified", "workerRestartVerified", "outboxReplayVerified"]
19
+ }