Skip to content

feat(webhooks): definition optional, admin-language help, delivery status labels - #39546

Merged
objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/issue-39423-wip
Dec 4, 2026
Merged

objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/issue-39423-wip

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

repo:objectstack@os-tesla · os-tesla · session_01L9qibvMXrDPhCt3pGziYWE

Body refresh · 2026-12-04T08:49Z

Fixes #39423
Clause-②: yes
Metadata-protocol: none

维护者速读

  • 管理员在「设置 → Webhooks」新建 Webhook 时,「定义」不再必填,各字段的帮助文字改成管理员能读懂的话;「HTTP 投递」列表的状态显示为「等待发送 / 已放弃」等中文标签,并能直接看到出错原因。
  • 属于工作流(跨系统推送)的易用性改进,替第一次对接 ERP 的公司管理员扫掉新建 Webhook 的障碍。
  • 出错时影响的是管理员看到的文字和状态标签,存储的数据和投递行为都不变,整个合并请求可以直接撤回。
  • 无。

What changes

The minimum the claim's scope review (拆分) kept on this card, on the two objects it names:

  1. Definition is optional. sys_webhook.definition_json drops required: true. Every reader already takes an absent or empty value as {}: the enqueuer's row parser (auto-enqueuer.ts, the defn parse), the legacy-credential door and boot sweep (findLegacyDefinitionCredentialKeys, readLegacySecret, readLegacyHeaders), and the ownership ceremony (webhookDefinition in the CLI). No runtime change was needed.
  2. Admin-language help. The help of name, object_name, triggers, active, definition_json, headers_secret, signing_secret, managed_by and customized no longer names snake_case, the bulk_update / bulk_delete values, sys_secret, the signature header, a spec package path, the retired boot seeder or the ownership ceremony. The technical facts moved into the code comments beside each field. The bundles were regenerated with node scripts/check-i18n-bundles.mjs --write, and the rewritten leaves were translated by hand in all ten translated locales (the regeneration keeps a translated leaf as it was, so without this zh-CN would have kept the old developer text). The provenance help names each locale's own option labels for admin / package / platform.
  3. Delivery status as labels. sys_http_delivery.status is a select over exactly the five stored values (pending, in_flight, success, failed, dead), labelled Waiting to send / Sending / Delivered / Failed / Given up and translated. The ruling quoted at http-delivery.object.ts (no new state) holds: no value, writer, filter, index or the redeliver guard changes. maxLength: 16 is dropped on purpose (see Acceptance notes). The sibling sys_notification_delivery.status already has this shape under the same kind of outbox writer.
  4. Error column. error joins the Recent and Pending delivery list views (Failures already had it).

Out of scope, moved to the split Feature card the seat files: a test send, event names as labels, and a recent-deliveries related list on the webhook record. No route, action or error code is added here.

Read first, by risk:

  1. packages/services/service-messaging/src/objects/http-delivery.object.ts: the status field type change (the only change with a DDL consequence; see the drift readings below).
  2. packages/plugins/plugin-webhooks/src/sys-webhook.object.ts: the definition_json relaxation and its comment.
  3. packages/plugins/plugin-webhooks/src/translations/zh-CN.objects.generated.ts: the hand-translated help (one locale as a sample of ten).

Tests

  • webhook-delivery-real-sql-driver.test.ts, new top-level describe: on a real SqlDriver + ObjectQL, a sys_webhook row inserted with no definition_json passes the engine's validator, reads back with none, and a record event turns into one pending delivery with that webhook's id as ref_id.
  • http-delivery-display-title.test.ts, new top-level describe: status is a select whose option values equal the HttpDeliveryStatus vocabulary, each with a label of its own; every list view has error; a row written with each stored value reads back with that value through the real engine.
  • sys-webhook.description.pin.test.ts, new top-level describe: the description sweep's shapes, plus a header-name shape, a package-path shape and an option-value wildcard shape, run over every field's help in the source and in all eleven bundles; each shape is shown to fire on the old help it exists for.
  • Ablation (one, on the behaviour the diff changes): definition_json put back to required: true with scripts/ablation-replace.mjs turns the new real-driver test red with the card's own refusal (ValidationError: Definition is required, field definition_json, code required); restored, blob equal to HEAD, git diff HEAD empty.

Acceptance notes

  • No migration for definition_json. ADR-0113 binds a column's NOT NULL to storage.notNull, never to required, so a column the platform created is nullable (the 18.0 upgrade fixture's sys_webhook DDL has definition_json text, nullable). Measured with diffManagedTable on postgres and mysql: a nullable column reports nothing; a column a pre-ADR-0113 driver created NOT NULL now reports nullability_mismatch / needs_confirm / relax_not_null (before: silent behind required: true). The changeset names os migrate apply for that case.
  • Why status carries no maxLength. The SQL emitter sizes a select column itself (varchar(255), varcharColumnChars answers 255 for a keyed select). Measured with diffManagedTable on postgres and mysql: select without maxLength over an existing varchar(16) reports nothing, and over a fresh varchar(255) reports nothing; the counterfactual select with maxLength: 16 over a fresh table reports type_mismatch / destructive / narrow_varchar, which refuses an artifact-pinned boot. So a new table gets varchar(255), an existing one keeps varchar(16), and neither reports drift.
  • The platform checklist (docs/qa/platform-checklist/areas/integration-system.json): its two fixture recipes no longer call definition_json required. Fixed in this PR (L2 S1, claim amendment 7405175463 on 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).
  • Test files touched beyond the claimed File surface: the three pins above, each a new top-level describe in an existing file of the same component.

Verification

Two minutes: Setup → Integrations → Webhooks → New, fill name, object, triggers and URL, leave Definition empty, Save. Expected: saved, no "定义不能为空"; the help under each field reads without code words. Then Setup → HTTP Deliveries: the Status column reads 等待发送 / 已放弃 (zh-CN), and the Recent list shows the Error column.

Local readings, all at head 5944a1b1 (worktree base e43597b1), dependency closure built first:

Tests and typecheck
  • pnpm --filter @objectstack/plugin-webhooks --filter @objectstack/service-messaging test: exit 0. service-messaging 83 files / 1113 tests passed; plugin-webhooks 28 files / 338 tests passed.
  • pnpm --filter @objectstack/plugin-webhooks --filter @objectstack/service-messaging typecheck: exit 0 (plugin-webhooks check:test-typecheck: OK, 0 errors).
  • Ablation run: 1 failed | 4 skipped, ValidationError: Definition is required; restore git diff HEAD empty.
Derived gate families (dispatch-gates --ran: 70 derived, 66 run, 4 NOT-MEASURED, 0 UNRUN)
  • 66 families exit 0, among them check:i18n (all bundles in sync, no undeclared authoring keys), check:i18n-stale-fill (no new stale fills), check:nul-bytes, check:adr-0087-registration, check:doc-authoring, check:issue-citations, check:platform-object-tenancy-census, check:system-context-census.
  • NOT MEASURED, left to CI: check-plugin-teardown-shape --self-test (exit 3, shallow clone cannot reach its pinned control commit), check:dual-build-cjs-loads (exit 3, packages outside this diff unbuilt), check:query-options-erasure and check:type-check-debt (killed by a local timeout before their verdict).

Generated by Claude Code

… labels

sys_webhook.definition_json is no longer required (every reader takes an
absent value as {}); the webhook form's help texts are rewritten in an
administrator's words; sys_http_delivery.status is a select over the same
five stored values so Setup shows labels, and the error column joins the
Recent and Pending lists.

Claude-Session: https://claude.ai/code/session_01L9qibvMXrDPhCt3pGziYWE
Co-authored-by: Claude <noreply@anthropic.com>
…elivery status labels

Regenerates the translation bundles of both packages and translates the
rewritten help texts and the new status labels into every shipped locale.

Claude-Session: https://claude.ai/code/session_01L9qibvMXrDPhCt3pGziYWE
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/l documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Dec 4, 2026
@github-actions

github-actions Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 2 package(s): @objectstack/plugin-webhooks, @objectstack/service-messaging, touching 19 documentable anchor(s).

39 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: node scripts/docs-audit/affected-docs.mjs --json 0f5da90d36580e23dd68fa2025c7b86eb32278f1.

⛔ 8 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails.

What this run could not see
  • the SDK route bridge reached 71 of 255 client-bound route-ledger rows — the other 184 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 184: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 60 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 7 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 0f5da90d36580e23dd68fa2025c7b86eb32278f1 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 2ffd07f0e06aeb88a1c4d5c62f21a5509bfc5e98 — the merge of head f613073abcdab835a84e8ed4594fa8c5f58d1441 into base 0f5da90d36580e23dd68fa2025c7b86eb32278f1, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 2ffd07f0e06aeb88a1c4d5c62f21a5509bfc5e98 && git checkout 2ffd07f0e06aeb88a1c4d5c62f21a5509bfc5e98
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 0f5da90d36580e23dd68fa2025c7b86eb32278f1 f613073abcdab835a84e8ed4594fa8c5f58d1441 && git checkout -B drift-repro 0f5da90d36580e23dd68fa2025c7b86eb32278f1 && git merge --no-ff f613073abcdab835a84e8ed4594fa8c5f58d1441

node scripts/docs-audit/affected-docs.mjs --json 0f5da90d36580e23dd68fa2025c7b86eb32278f1

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 0f5da90d36580e23dd68fa2025c7b86eb32278f1 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibz12BVzo6a9hKybbEd

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 5944a1b1dfae1fdbc8b0f40481eb40c02d3ed046
Local-runs: none
Scope: packages/plugins/plugin-webhooks/src/sys-webhook.object.ts, packages/services/service-messaging/src/objects/http-delivery.object.ts, .changeset/39423-webhook-form-admin-words.md + packages/plugins/plugin-webhooks/src/sys-webhook.description.pin.test.ts, packages/plugins/plugin-webhooks/src/webhook-delivery-real-sql-driver.test.ts, packages/services/service-messaging/src/objects/http-delivery-display-title.test.ts
Security-touching: yes
Rule-change-verified: none

Inputs read: card #39423 body and all four comments (triage 7395576076, claim 7403999138 with its 拆分 Scope-review, split note 7404059728, os-dev report 7404963580); PR #39546 body, its 38-file list and the net diff e43597b1...5944a1b1; the head's 54 check-runs. Security-touching is yes: the headers_secret, signing_secret and definition_json help hunks teach where credentials go and how they are stored. Rule-change-verified is none: no .claude/** path is in the diff and no hunk alters process rules.

Gates on 5944a1b1 (check-run conclusions, read at review time). 13 success: filter, Test UI, Plan Test Core shards, PR-body guards, Lint · scoped · tooling self-tests, Lint · PM dispatch-gates, Lint · ESLint, Governed Surface Queue Guard, Flag docs affected by code changes, Dogfood Regression Gate, Check PR Size, Check Changeset, Auto Label. 18 skipped (opt-in or UI-path jobs). 23 still in progress, no verdict yet: Build Core, Test Core 1-12/12, Type Check · workspace / source gates / debt ledger / consumer gates, Lint · repo & tooling gates, Lint · docs & code guards, Lint · CI, release & engine gates, Lint · scoped · slot lookup & corpus, Lint · scoped · query-options erasure, Live E2E UI. This verdict covers the contract only. Landing still needs those 23 to go green, in particular Test Core (the three new pins and any census over sys_http_delivery's fields) and the Lint job that runs check:i18n / check:i18n-stale-fill over the regenerated bundles.

① Derived judgments

  • (a) sys_webhook.definition_json drops required: true: right. The write accept set gets wider: a create or update that leaves the field out, or sends null or '', is no longer refused with required. I read every reader on the tree. Each one takes absent, null or empty as {} or as "no keys", and none throws:

    • The AutoEnqueuer row parser (auto-enqueuer.ts:1222-1229) parses only a non-empty string. JSON.parse(..) ?? {} covers a literal "null", a parse failure falls back to {}, and timeoutMs reads as undefined, which is the existing default.
    • readLegacySecret / readLegacyHeaders (webhook-secret.ts, webhook-headers.ts) return undefined for a non-string or empty value. Their callers are the credential paths at auto-enqueuer.ts:940/991 and the boot sweep in migrate-webhook-secrets.ts:108-109. The sweep only reaches stripCredentialsFromDefinition when a legacy key was found, so a null blob is never stripped.
    • The legacy-cleartext write door (webhook-legacy-cleartext.ts): assertNoLegacyDefinitionCredentials passes when the key is missing, and findLegacyDefinitionCredentialKeys returns [] for '', null or non-object JSON.
    • The CLI ownership ceremony (organization-ownership-apply.ts:3276): webhookDefinition returns null for a non-string or empty value, and the clone write at :3487 is guarded by def &&.
    • Nothing under ui/, apps/ or examples/ reads the column.

    The new real-SqlDriver pin writes a row with no definition through the engine validator, reads it back as null, and gets one pending delivery with the webhook's id as ref_id. The dev's ablation of that pin (reported) turned it red with the card's own refusal.

  • (b) sys_http_delivery.status goes from text (maxLength 16) to a select over pending | in_flight | success | failed | dead with no maxLength: right.

    • Option set equals every stored value. HttpDeliveryStatus (http-outbox.ts:40) is exactly these five. Every write of status in sql-http-outbox.ts is a literal from that set: pending on enqueue, retry, reap and redeliver; in_flight on claim; dead on park; and success / dead / pending from the ack outcome at :676-695. memory-http-outbox.ts writes no engine row. The CLI ceremony only re-sources ref_id.
    • Write validation. The engine's single-select arm (record-validator.ts:1876-1916) now refuses an unlisted value with invalid_option, where before any string of 16 characters or fewer was accepted. This narrows only the engine-internal accept set. No public door can write the object: enable.apiMethods: ['get','list'], all userActions are false, and managedBy: 'engine-owned'. Every in-tree writer stays inside the set, so the change narrows nothing observable. defaultValue: 'pending' is a declared option.
    • Filters, indexes and redeliver guard. Stored values are unchanged, so the Failures in (failed, dead) and Pending equals pending filters, the dispatcher's claim and reap predicates, the (status, partition_key, next_retry_at) and (status, claimed_at) indexes, and assertHttpRedeliverable's comparisons (http-outbox.ts:522) still read the same strings. A select reads back its stored code, not its label; the new pin round-trips all five through the real engine.
    • Stored column. I judged this against diffManagedTable (schema-drift.ts), and the dev's claim holds. The varchar-width branch (:1888-1957) fires only when declaredMaxLength !== undefined, so with no maxLength an existing varchar(16) reports nothing. select is not in UNBOUNDED_TEXT_FIELD_TYPES (:1128), so the [finding] An UNDECLARED signature/qrcode column on a pre-existing table stays varchar(255) and no drift op reports it — the #11875 repair reaches new tables only #12121 widen-to-text branch stays silent. The base-type branches cover only multi-value and datetime-over-date, so a single select over a character column is not drift. Had maxLength 16 been kept, the select's own varchar(255) on a fresh table against a declared 16 would hit the narrow_varchar / destructive arm at :1944-1956, the category that refuses an artifact-pinned boot. Dropping it was the right call. A fresh MySQL varchar(255) in a three-column index stays well under InnoDB's key limit.
    • Public read surface. describe now serves type: 'select' with options instead of type: 'text'. That is an additive metadata change on a system object, and the changeset names it.
  • (c) The [security] a dropped webhook subscription leaves no durable record — and the naive fix hands an operator a redeliver button that sends UNSIGNED #8069 ruling still holds: right. The ruling at http-delivery.object.ts:214 / http-outbox.ts:25-39 says a new never-sendable state is admitted only if error cannot carry the cause. The option set is the union unchanged: no member is added, renamed or removed (failed is kept although no ack() writes it today, and the comment says so). The parked-row refusal (attempts === 0 on a terminal row) is untouched.

  • (d) No migration entry: right. ADR-0113 binds physical NOT NULL to storage.notNull only. definition_json declares no storage, so every column the platform creates is nullable, as the 18.0 / 18.0-next.5 fixture DDL definition_json text shows. For a column some earlier driver created NOT NULL, the differ's second nullability arm (schema-drift.ts:1440-1460, field.required !== true and no storage.notNull) now reports nullability_mismatch / needs_confirm / op relax_not_null, where before the required: true silence applied. needs_confirm does not refuse a boot. The changeset names this case and os migrate apply as the remedy. The object comment's nullability_mismatch (kind) and the changeset's relax_not_null (op) name the same entry.

  • Help rewrites: right. I checked each one against the code. The definition_json help ("Passwords, tokens and custom headers do not belong here") matches the legacy-cleartext write door. "Stored encrypted and never shown again; leave the masked value unchanged" matches the Field.secret mask on read. The customized / managed_by help describes the ownership ceremony and the retired seeder correctly. The name help repeats the old snake_case advice in plain words, with no new enforcement claim.

  • Generated bundles: confirmed as regenerated output plus hand-translated leaves. The 22 *.objects.generated.ts files change only the rewritten help leaves and the five status.options. The 10 service-messaging *.source-hashes.generated.ts files each drop exactly the sys_http_delivery.fields.status.help digest. That is what the file header says extract does once a byte-copied leaf is re-translated, so no digest was hand-refreshed.

  • Error column in the Recent and Pending views: right. This is a display-only columns addition, pinned in http-delivery-display-title.test.ts.

② Semver level

  • @objectstack/plugin-webhooks: patch and @objectstack/service-messaging: patch are right. Both packages publish the changed object declarations and bundles. Metadata-protocol: none is correct: what changes is two platform system objects' own declarations, not anything a metadata author can write. Under AGENTS.md's rule, a non-protocol change ships patch.
  • Clause-②: yes is right, and it is on a line of its own in both the PR body and the changeset body. The change is a wider accept set (definition_json no longer required). The engine-internal invalid_option on status has no public writer (see ①(b)), so no (narrowing) arm and no BREAKING banner are owed. The bare yes with no arm is well-formed.

③ Boundary flags

  • Open questions: the report's open_questions is [], so none are owed. Its security_findings is none, which matches my read.
  • Deviations: the three test files outside the claimed surface are new describes in existing same-component test files, which is acceptable. The commit-trailer form and the not-merged-with-main note do not affect the contract.
  • Out-of-scope note 1 (docs/qa/platform-checklist/areas/integration-system.json): this diff makes it false. Line 633 says the scratch-webhook recipe "needs definition_json (required …)". Line 2581 says that without the required definition_json "the create is refused 400 VALIDATION_FAILED". After this head both statements are false. The dev wrote "noted, not filed", so it is neither fixed in the PR nor carded. S1 (should-fix) — correct both sentences in this PR, or file a card for the checklist lane before landing.
  • Further statement this diff makes false, not flagged by the dev: content/docs/automation/webhooks.mdx:299, the sys_http_delivery field table, still lists status with type text. It is now select, and the table should name the labels too. S1 (should-fix) — fix it in this PR or carry it on the same docs card.
  • Out-of-scope note 2 (sys_webhook.url help "External endpoint that receives the POST"): this diff does not make it false. The same help and the PUT/PATCH/DELETE method select are both on origin/main, so the inaccuracy predates this PR. nit — it fits webhooks: a test send from Setup, delivery events as labels, and recent deliveries on the webhook record #39526 or a wording card; it does not block this PR.
  • Pre-ADR-0113 NOT NULL window: in that rare case, between upgrade and os migrate apply, saving a webhook with no Definition fails at the database with a raw constraint error instead of the old clean required 400. The changeset names the drift and the remedy but not this symptom. nit.
  • Split items (test send, event labels, recent-deliveries related list) are carried by webhooks: a test send from Setup, delivery events as labels, and recent deliveries on the webhook record #39526 per split note 7404059728. That matches the claim's 拆分 verdict.
  • SQL push-down: the source diff adds no query, no id materialisation and no in-app join, so there is nothing to push down. The new tests read through engine.find on fixtures only.

No must-fix. Two should-fix: S1 (should-fix) — integration-system.json lines 633/2581 still say definition_json is required and that a create without it is refused 400, both false after this head; fix in this PR or card it. S2 (should-fix) — content/docs/automation/webhooks.mdx:299 lists sys_http_delivery.status as type text, false after this head; fix in this PR or card it. nit — sys_webhook.url help says POST only (pre-existing, not made false here). nit — the changeset does not say that a pre-ADR-0113 NOT NULL column refuses a save without a Definition until relaxed.

Implemented-by: claude/issue-39423-wip
Reviewed-by: session_01L9qibz12BVzo6a9hKybbEd (L1-b thread's isolated L2 sub-agent)

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibz12BVzo6a9hKybbEd

L1 review — REWORK (patch round)

L1-b · 2026-12-04T07:48Z · head 5944a1b1dfae1fdbc8b0f40481eb40c02d3ed046 · claim 7403999138 · report 7404963580 (on #39423) · L2 record 7405111073 (TIER_DEFAULT, PASS with S1 and S2 open)

To fix in this PR (one patch round, original dev, same claim)

  1. L2 S1: docs/qa/platform-checklist/areas/integration-system.json lines 633 and 2581 still say definition_json is required and that a create without it is refused with 400. This head makes both false. Correct the two sentences.
  2. L2 S2: content/docs/automation/webhooks.mdx:299, the sys_http_delivery field table, lists status as text. It is now select. Correct the row.
  3. Same card item, same file (recommended, not blocking): sys_webhook.url help still reads "External endpoint that receives the POST", while method offers PUT / PATCH / DELETE. Card item 2 (admin-language help) is closed by Fixes, and this help is in the claimed file. Rewrite it in the same style and regenerate the bundles.

Items 1 and 2 are outside the claimed File surface. The seat amends the claim's File surface: before the push (overlap-check.mjs again). Both are prose-face edits, so the L2 record carries over for the delta: the L2 reviewer reads S1: closed / S2: closed only. Item 3 touches source and bundles, and only the L1 reads it in the delta.

Checked and fine

  • Face (l1-face.mjs --pr 39546): draft, base main, Fixes #39423, no other card keyword, one changeset covering both published packages (@objectstack/plugin-webhooks, @objectstack/service-messaging, patch), Clause-②: yes · Metadata-protocol: none. CI was still running at review time (Build Core, Test Core 1–12, Type Check, Lint jobs): not measured, re-read on the delta head.
  • Fixes vs Part of: Fixes stands. The 拆分 split is recorded on the card (7404059728): items 3, 4b and 4d go to webhooks: a test send from Setup, delivery events as labels, and recent deliveries on the webhook record #39526, and items 1, 2, 4a and 4c are delivered here.
  • Changeset, read sentence by sentence against the diff: true as written. It covers the optional Definition, the ADR-0113 nullable-column claim with the pre-ADR-0113 relax_not_null / os migrate apply case, the five stored values with unchanged filters and API values, and the served type now select. One gap (L2 nit, may be folded): it does not say that on a pre-ADR-0113 NOT NULL column a save without a Definition fails at the database until the column is relaxed.
  • status select without maxLength: the dev's drift reading agrees with the L2 read of schema-drift.ts. The option set equals HttpDeliveryStatus and every outbox write. The engine now refuses an unlisted value, but the object has no public writer.
  • Translations: zh-CN sampled leaf by leaf. Each rewritten help is translated, and the managed_by help names the locale's own option labels. The service-messaging source-hash files each drop exactly the status.help digest.
  • Tests: real commands and output (338 + 1113 passed). The ablation (required: true restored) fails the real-driver pin with ValidationError: Definition is required. Restore was blob-equal.
  • sys-webhook.object.ts is 403 lines (no large-file rule applies).

…the status select; url help names every method

Claude-Session: https://claude.ai/code/session_01L9qibvMXrDPhCt3pGziYWE
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibz12BVzo6a9hKybbEd

Contract review

Served-tier: TIER_DEFAULT
Head-sha: f613073abcdab835a84e8ed4594fa8c5f58d1441
Local-runs: none
Scope: packages/plugins/plugin-webhooks/src/sys-webhook.object.ts, .changeset/39423-webhook-form-admin-words.md + content/docs/automation/webhooks.mdx, docs/qa/platform-checklist/areas/integration-system.json, packages/plugins/plugin-webhooks/src/sys-webhook.description.pin.test.ts
Security-touching: yes
Rule-change-verified: none

This is a delta round over the record on 5944a1b1 (PR comment 7405111073). The delta is two commits, 6447b726 and f613073a, over 15 files. The merge base is still e43597b1, and the delta brings in no merge from main. Everything judged at 5944a1b1 is carried forward unchanged: ①(a)-(d), ② and the SQL push-down check. No source hunk on http-delivery.object.ts or in service-messaging changed. Security-touching stays yes, because the PR as a whole still carries the credential-help hunks for headers_secret, signing_secret and definition_json. Rule-change-verified stays none: no .claude/** path is in the diff.

Gates on f613073a (check-run conclusions, read at review time): 28 success, 17 skipped, 13 still in progress, no verdict yet. The 13 are Build Core and Test Core 1-12/12. The passed checks include every Lint job (repo & tooling gates, docs & code guards, CI release & engine gates, both scoped jobs, ESLint, PM dispatch-gates, tooling self-tests), all four Type Check jobs, TypeScript Type Check, Lint & Repo Gates, Spec property liveness, Build Docs, Check Documentation Links, Check Changeset, Governed Surface Queue Guard, Live E2E UI, Test UI and Dogfood Regression Gate. This verdict covers the contract. Landing still needs Build Core and Test Core to go green, since Test Core runs the help-shape sweep over the new url leaves.

① Derived judgments

  • New source hunk: sys_webhook.url help is now "The address of the outside system that receives each delivery." Right. It is help text only: required, maxLength, the type and the accept set are unchanged. The old "receives the POST" was false for any webhook whose method is put, patch or delete, all offered by the method select on origin/main. The new wording names no method and no developer shape, and the 11-bundle sweep in sys-webhook.description.pin.test.ts covers it.
  • The 11 bundle leaves: right. Each *.objects.generated.ts changes exactly one line, sys_webhook.fields.url.help. The en leaf is a byte copy of the source. The ten translated leaves each say "address of the external system that receives each delivery" in their own words, with no leftover "POST". No plugin-webhooks *.source-hashes.generated.ts changed, and none holds a fields.url entry. So every translated url leaf is translator-owned under the extract's provenance rule, and no digest was hand-refreshed.
  • Doc and checklist hunks: right; they make the tree's prose agree with the code judged at 5944a1b1.
    • webhooks.mdx now marks definition_json optional and says an absent or empty value is read as {}, which matches the AutoEnqueuer row parser.
    • The url row names the row's method.
    • The sys_http_delivery.status row is select, keeps the five stored values and names the labels. It says the stored values are what filters and the API read, which matches the select's raw-code readback.
    • integration-system.json: item 1 (revision 17 to 18) and item 2 (revision 6 to 7) each correct only their fixture recipe and add a matching dated history entry that says "no clause change". Neither touches an acceptance clause or a step. A recipe body without definition_json is now described as accepted, which is true after this head.
    • The older history entries that still say "required definition_json" are dated records of earlier revisions. They are history, not current claims.

② Semver level

  • The changeset levels are unchanged and still right: @objectstack/plugin-webhooks: patch and @objectstack/service-messaging: patch, with Metadata-protocol: none.
  • The delta's changeset edits are prose only. "Target URL" now appears in the help-text list, and the pre-ADR-0113 sentence now says how saves behave until the column is relaxed.
  • Clause-②: yes is unchanged and well-formed in both bodies. The url help rewrite changes no accept set.

③ Boundary flags

  • S1: closed. integration-system.json no longer says definition_json is required. Item 1's recipe now reads "needs a lower-case method … definition_json … is optional, and an absent or empty value is read as {}". Item 2's recipe ties the 400 VALIDATION_FAILED to the method spelling alone and calls definition_json "optional and may be left out". I grepped docs/, content/ and the plugin source on the new head: no current statement still says definition_json is required.
  • S2: closed. webhooks.mdx:299 now lists sys_http_delivery.status as select, with its stored values and labels.
  • nit (url help says POST only): closed. It was rewritten in the source and in all 11 bundles, as judged in ①, and the docs table row matches.
  • nit (pre-ADR-0113 NOT NULL window): closed. The changeset now says that until the column is relaxed with os migrate apply, saving a webhook without a Definition there fails at the database instead of with the old required error. That matches the differ's needs_confirm arm and the column's actual behaviour.
  • SQL push-down: the delta adds no query, no id materialisation and no join.
  • Out-of-scope items: none are new. Test send, event labels and the recent-deliveries list are still carried by webhooks: a test send from Setup, delivery events as labels, and recent deliveries on the webhook record #39526.

No must-fix, no should-fix.

Implemented-by: claude/issue-39423-wip
Reviewed-by: session_01L9qibz12BVzo6a9hKybbEd (L1-b thread's isolated L2 sub-agent)

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibz12BVzo6a9hKybbEd

席位核对

L1-b · 2026-12-04T08:47Z · ACCEPT · head f613073abcdab835a84e8ed4594fa8c5f58d1441 (delta over 5944a1b1, REWORK 7405141346) · delta report 7405911320 (on #39423) · L2: TIER_DEFAULT PASS 7405111073, delta PASS 7406017202 (S1: closed, S2: closed), both written by this L1 thread's isolated sub-agent and adopted here

  • Delta read. The integration-system.json recipes (revisions 18 and 7 with dated history entries, no clause change) now call definition_json optional. In webhooks.mdx, status is select and the definition_json / url rows are corrected. The sys_webhook.url help no longer says POST, and its 11 bundle leaves change that one line each. The changeset now names the pre-ADR-0113 NOT NULL symptom and remedy.
  • Prose faces, read sentence by sentence against the diff: the changeset's new sentences, the two mdx rows and the two checklist recipes are true.
  • Face (l1-face.mjs --pr 39546 at f613073abc): CLEAN. 42 success, 17 expected skip, 0 failed, 0 pending. Lint & Repo Gates and TypeScript Type Check succeeded, mergeable_state is clean, and overlap-check was clean (zone, 08:33Z). Round-1 judgments stand: Fixes #39423 with the split to webhooks: a test send from Setup, delivery events as labels, and recent deliveries on the webhook record #39526, the status select without maxLength, and no migration entry.
  • Deviation: the docs and checklist files were added outside the original File surface, at the L2's request. The zone amends the claim's File surface to name them.
  • Landing to-do: the PR body's Acceptance note still calls the checklist sentence stale, so the zone refreshes it when it marks the PR ready. Fixes closes the card on merge.

@os-tesla
os-tesla marked this pull request as ready for review December 4, 2026 08:50
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibvMXrDPhCt3pGziYWE

Landing · 2026-12-04T08:52Z · head f613073abc · L1-b ACCEPT 7406418140 · L2 TIER_DEFAULT PASS 7405111073 + delta PASS 7406017202 (S1/S2 closed, adopted)

Reading Result
check-governed-merges.mjs --pr 39546 NOT governed · 651 changed lines ≤ 3000
landing-k.mjs --pr 39546 K = 9 < 15
check-runs on f613073abc green face (L1-b: 42 success, 17 expected skip, 0 failed)
File surface claim amendment 7405175463 on #39423 names integration-system.json and webhooks.mdx
PR body Acceptance note on the checklist sentence refreshed at ready

State: ready + auto-merge through the merge queue; Fixes #39423 closes the card on merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/l tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

webhooks: a Setup admin must type a raw JSON definition ("{}" passes), there is no test send, and deliveries show raw status and event ids

2 participants