Repository navigation
Description
repo:objectstack@os-tesla · os-tesla · session_01L9qibvMXrDPhCt3pGziYWE
Filing gate: ② (a fleet Feature: a capability only the maintainer can decide to build) · Source: fleet · carries items 3, 4b and 4d of #39423; #39423 keeps items 1, 2, 4a and 4c (the minimum, claim 7403999138).
维护者速读
- 要做什么:Webhook 设置页加「发送测试」,投递列表把事件显示成中文名,Webhook 记录页加「最近投递」相关列表。
- 为什么:新公司管理员接 ERP 时只能建一条真记录才知道对方收不收得到;投递事件是
data.record.created这样的原值;投递要到另一个菜单去找。 - 不做会怎样:webhooks: a Setup admin must type a raw JSON definition ("{}" passes), there is no test send, and deliveries show raw status and event ids #39423 的最小改动(定义改非必填、帮助文案改管理员用语、状态显示中文、列表显示错误)照常落地,管理员能建 Webhook、能看懂失败原因,只是试发和就近查看缺着。
- 要你做什么:定要不要做、做哪几项。来源只有一次新公司走查,没有客户原话或专题卡。
What the split carries (scope review on #39423, read on origin/main e43597b)
- Test send (item 3): a 「发送测试」 action on the webhook form or record. About 300–600 lines across plugin-webhooks, service-messaging, the error-code ledger and a console button. New public surface (a route or action, new error codes). Security-relevant: an admin-triggered outbound request must pass the egress guard, resolve the signing secret, and carry the same auth, tenant-scope and entitlement gates as
POST /api/v1/webhooks/redeliver(redeliver-guard.ts, [security] The webhook signing secret is stored in cleartext insys_webhook.definition_json#7799). - Event as label (item 4b):
sys_http_delivery.labelis free text shared by webhook and flow rows, so it cannot become a select; it needs a display mapping, about 50–150 lines, possibly in the console. - Recent deliveries on the webhook record (item 4d):
ref_idis polymorphic text (a webhook row id, a flow id, ordeclared:<pkg>/<name>), so a related list needs a new lookup column onsys_http_delivery, an outbox write-path change and probably a backfill: about 100–250 lines across two packages; it changes the schema the redeliver guard reads.
Four facets
- Real business need: one fleet walkthrough (admin wiring 报修单 to an ERP). No customer quote, ruling or topic card asks for these; the North Star line on webhooks (
docs/NORTH-STAR.md:115) does not name a test send. - Long-term fit: a test send is a standard webhook affordance; done through the existing outbox and egress path it adds no second send path. The related list needs a real lookup column instead of the polymorphic
ref_id. - Keeping AI from writing it wrong: no metadata an author writes changes; a test send that skipped signing or the redeliver gates would reopen [security] The webhook signing secret is stored in cleartext in
sys_webhook.definition_json#7799, so it must reuse them. - Startup focus: each item is new surface with walkthrough-only pull. Recommendation: build 2 (event labels, small, no new surface) when an admin card next touches the delivery list; hold 1 and 3 until a customer asks.
Dedupe: webhook test send (226 hits; open ones #39423 parent, #32692 #27314 #35669 #35668 unrelated), webhook deliveries related list (17 hits; open #39423, #12708 unrelated), webhook ping (44 hits, all closed and unrelated). No card covers these.
Reader: the maintainer decides; on a go, seat repo:objectstack@os-tesla zone ot-flow builds it.
Grading: area:workflow · Feature · p3 · admins integrating an external system by webhook · read (new-company walkthrough on #39423) · Suggested-grade: p3.
Activity
objectstack-fleet commentedon Dec 4, 2026
triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in area:workflow · Feature · p3 · needs-user-decision · size M, touched 2026-12-04T07:14Z. Rationale: the card had
area:workflowbut no pm state. The filer marks it as a capability only the maintainer can decide to build: a test send from Setup, delivery events shown as labels, and recent deliveries on the webhook record. It carries items 3, 4b and 4d split from #39423, while #39423 keeps the minimum. So it goes to the maintainer, notpm:queue. The filer's p3 stands. Issue type set to Feature.Grade: area:workflow · Feature · p3 · admins integrating webhooks · read (split of #39423, claim 7403999138).
objectstack-fleet commentedon Dec 5, 2026
triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Decision analysis at tier, re-run before presenting · 2026-12-05T22:35Z
维护者速读
Analysis
Served-tier:
CONTRACT_REVIEW_TIERAnalysed-by:
subagent of session_01Q4EjjMnyLqJdzuktEmRPXHRead at: objectstack
origin/maine37358096d(2026-12-05). Cloud not read: the decision touches no cloud code.Background
#39423 was a new-company walkthrough (Setup → Webhooks, zh-CN, an admin pushing each new 报修单 to an ERP). Its claim split the card: the minimum (definition optional, admin-language help, status as labels, error in the delivery lists) shipped in PR #39546, merged 2026-12-04 as
ea18263361(+488/−163, 40 files), and #39423 is closed. This card carries the three items held back: (1) a test send, (2) the delivery event shown as a label, (3) recent deliveries on the webhook record. The only source is that one walkthrough.Governing text
docs/NORTH-STAR.md:115: "② · Send out, take in: webhooks, scheduled jobs, email templates, inbox delivery and subscription preferences, the bell's read state · integration-system + platform-core · webhook-lifecycle, …". It names no test send and no per-webhook delivery list. (git grep -n -i webhook origin/main -- docs/NORTH-STAR.md→ this one line.)area:uxcore feature ⑤: "a Chinese interface shows no stray English". This is the only North Star hook any of the three items has, and it is item 2's.flow-runs-page-test-trigger(flows),api-console-discovery-execute(declared endpoints); Setup hasSend test emailandSend test SMS(mail.manifest.ts:132,sms.manifest.ts:79). Webhooks are the member of that family without one.content/docs/automation/webhooks.mdx:739: "There are no/webhooks/:id/test,/rotate,/deliveries, or per-delivery redeliver routes." This documents the present state; it is not a ruling against building them.content/docs/automation/webhooks.mdx:69-70(P5): "Every delivery attempt is visible to the owner of the webhook: status, response code, retry schedule, manual redelivery."redeliver-entitlement.ts:4-17: the redeliver door is "a webhook-administration act … gated on … an object-levelupdateadmission on the webhook configuration object". Any second admin-triggered send inherits this rule.redeliver-guard.ts:8-9: "service-messagingowns the replay mechanics and deliberately knows nothing aboutsys_webhook." This bears on item 3 (a lookup from the delivery table to the webhook table runs against it).git grep -l -i webhook origin/main -- docs/adr(30 files) andcheck-prior-rulings.mjs --card 39526(228 hits; the named decisions ADR-0030 §2/§9, ADR-0041 §5, ADR-0077 §1, ADR-0138 D7, ADR-0057 D9, ADR-0096 D4, ADR-0124 D2, ADR-0130 D8, ADR-0131 D3 are term matches on a broad set and none answers this question). ADR-0124 D1 (the entitlement is decided server-side) and ADR-0018 M3 (one shared HTTP outbox) constrain how item 1 would be built, not whether.Protocol statement
None of the three changes what an author writes in metadata. Item 1 adds public surface outside the authoring protocol: one route or action, entries in the route ledger and the error-code ledger, one console button. Item 2 changes nothing if it is display only; it would grow the protocol only if a new field-level "label for a free-text value" key were invented for it, which this analysis does not recommend. Item 3 adds one column to a platform object and a write-path change in two packages.
Premises, re-checked on
e37358096dgit grep -n -i -E "/webhooks/(test|ping)" origin/main -- packages→ none;webhooks.mdx:739says sohttp-delivery.object.ts:147-152label: Field.text, "Diagnostic label / event type — surfaced on X-Objectstack-Event"labelis free text shared by webhook and flow rows, so it cannot be a selectauto-enqueuer.ts:1355,1512writelabel: event.type;http-nodes.ts:409writeslabel: `flow:${node.id}`ref_idis polymorphic text, so a related list needs a lookup columnhttp-delivery.object.ts:133-138;object.zod.ts:5110: a related-list name "whose child … has no inbound lookup / master_detail field to this object is refused everywhere".referenceVia(ADR-0052 §5) does not fit: its sibling must hold an object name, andsourceholdswebhook/flowhttp-delivery.object.ts:234-240(select with five labels),:68,:77,:87(errorin every list)POST /api/v1/webhooks/redeliver(redeliver-guard.ts, #7799)"redeliver-guard.ts:4), the entitlement isredeliver-entitlement.ts. The rule the card draws from them is righte43597b1e37358096d; the two object files changed only by #39546git log origin/main --oneline -3 -- <the two object files>Three facts the card does not state, found on this read:
X-Objectstack-Eventheader (auto-enqueuer.ts:1350), so the admin configuring the receiving system needs the literaldata.record.created. A label must sit beside the raw value, not replace it.git grep -n -i -E "valueLabels|displayMap|valueMap" origin/main -- packages/spec/src/data/field.zod.ts→ only an unrelated location option). So item 2 is either a new stored select column written by the webhook producer, or a mapping in the console renderer keyed on one object, which is a special case. And flow rows carryflow:<node id>, an internal id no label map covers. Item 2 is smaller than the other two but is not "no new surface" for free.git grep -n -i -E "webhooks/redeliver|redeliverHttp" origin/main -- ui/packages apps→ none outside changelogs), although the route ledger and the docs call it "the operator button". If that reading is right, the cheapest step toward "try it again after I fixed the ERP side" is a button on a failed delivery row, which needs no new server door, gate or error code. It is outside this card's three items; noted for triage, not filed.The concrete problem
An admin who has just created a webhook cannot tell whether the other system accepts it without causing a real business event. Today's loop is: create a real record, open Setup → HTTP 投递, read the status and (since #39546) the error. That loop works and costs about a minute, but it writes a real record and sends real data. The delivery list shows the event as
data.record.created, and the webhook's own page shows nothing about its deliveries.Options
domain:server(+ console if the mapping lives there) · 1 PR · precedent PR #39546 (+488/−163, 40 files, mostly generated bundles) for labels on this object; no precedent for labelling a free-text columndomain:server+ console · 1 more PR, contract review and a security read · precedents PR #22797 (+631/−81, 6 files; the redeliver door served from a Request) and PR #24848 (+641/−20, 8 files; Send test email / SMS)sys_telemetry object returned nothing usable)In business terms: A is "the kettle has no test button; boil water to find out". B is relabelling one dial. C adds the test button, and with it a second way to make the platform call an outside address on an admin's say-so. D also moves the delivery history onto the webhook's own page, the way GitHub's webhook settings show Recent Deliveries.
Four axes
os-decision-facets
Prior rulings read: webhooks,test,send,setup,delivery,events,labels,recent,deliveries,webhook,record → 228 hits; none (no named decision answers this question; ADR-0124 D1 and ADR-0018 M3 constrain the build); thread: none
Recommendation
B, with two conditions on item 2. Direction: all three belong in the end state. Timing: build item 2 the next time a card touches the delivery list; hold items 1 and 3 until a customer or partner asks, and when that happens build item 1 first.
Conditions on item 2: the raw event value stays visible beside the label (the admin has to match it on the receiving side), and the mapping is not a per-object special case in the renderer. If the only way to ship it is such a special case, hold it too.
Why not the others:
Self-check: only on ①, the answer is D (all three are the end state). Do ②③④ flip it: no. They move timing only: item 2 opportunistically, items 1 and 3 on first external pull. No new gate is introduced by ④.
Effort note: ① reads close between C and D on direction, and the effort differs by about 3× between B (1 PR) and D (3 PRs); the recommendation takes the smaller now on timing grounds only.
Confidence gaps:
ui/packagesandappsat this sha; a caller built from metadata at runtime would not show. A dogfood look at a failed delivery row settles it.After the ruling:
pm:queueat p3 with the two conditions written into it; items 1 and 3 stay on this card (or a parked successor) with the trigger "first customer or partner ask" recorded. No further question to the maintainer.Related cards and PRs
sys_webhook.definition_json#7799: closed; the signing secret left the webhook definition. The card cites it for the redeliver gates; the gates are [security] a dropped webhook subscription leaves no durable record — and the naive fix hands an operator aredeliverbutton that sends UNSIGNED #8069 (closed, the redeliver veto) and the entitlement door (runtime: an exact/webhooks/redeliverdispatcher domain that forwards to the declared redeliver member, with a typed refusal for an absent slot (webhooks segment 2 of #22564's stage 2) #22755, PR feat(plugin-webhooks): the webhooks service serves the redeliver door from a Request, and the veto no longer waits for realtime (webhooks segment 3 of #22564) #22797, PR fix(plugin-webhooks): the redeliver veto refuses a delivery whose subscription is inactive #22836).Delta from the card's existing analysis:
sys_webhook.definition_json#7799 citation is corrected to [security] a dropped webhook subscription leaves no durable record — and the naive fix hands an operator aredeliverbutton that sends UNSIGNED #8069 and the entitlement door.objectstack-fleet commentedon Dec 5, 2026
triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Ruling: letter D · maintainer 「39526 三个都做。其他都接受你的建议」 · 2026-12-05T23:02Z
Maintainer ruling recorded: build all three now: a test send from Setup, delivery events shown as labels, and recent deliveries on the webhook record. D is not the analysis's recommendation (B); the maintainer chose it over B explicitly.
Provenance
hotlong). Where: the triage seat's sessionsession_01Q4EjjMnyLqJdzuktEmRPXH, typed words, recorded within minutes. Words, verbatim: 「39526 三个都做。其他都接受你的建议」Next (from the analysis, carried, not typed by him)
ref_idis polymorphic), the outbox write-path change and any backfill; no effort precedent.needs-user-decisionoff,pm:queueon: this card is now the build card for item 2.