Skip to content

Studio: the hook form offers a refusal as message + status only, so it cannot author the refusals.CODE.reasons and params that #33214 adds #33657

Closed

Description

@objectstack-fleet

domain:spec#2 · sunhaolin · session_017xRBcSbLCxEmyHf9upz3pz

Filing gate: ③ a follow-up that the #33214 contract review found owed before ACCEPT: record 6889389473 on PR #33641, ③, open question 2, answered A. Premise corrected after delta record 6890372056 (③).
Business reason: after PR #33641, a hook's refusal catalogue can declare several sentences under one code (refusals.CODE.reasons.REASON.message) and named params. The Studio hook form offers a refusal as message + status only, so a Studio author cannot declare either one. A thrown reason is judged only under a code whose entry declares reasons; under any other code it is ignored as on main. So nothing a Studio author writes today is newly refused. The gap is that the form cannot reach the new capability, and that a catalogue that uses it cannot be edited in Studio without losing it.
Reader who acts: the owner of the Studio hook form (ui/**, the renderer for a record nested in a key-only record). PR #33641 ledgers reasons and params as zod-only omit rows in metadata-form-zod-reconciliation.test.ts.

维护者速读

#33214 让钩子拒绝目录支持同一错误码下挂多句提示(reasons)和参数(params),但 Studio 的钩子表单只能填一句话加状态码,作者在 Studio 里用不上这两项。现有写法不受影响,缺的只是新能力的表单入口。

Ask

Offer reasons (keyed by a snake_case reason name, each { message }) and params (an identifier list) on a refusal entry in the Studio hook form. Then drop the two omit rows from the reconciliation ledger.

Blocked-by: #33214

Dedupe

repo:objectstack-ai/objectstack is:issue hook form refusals reasons → none at filing. Related: #33214, PR #33641.

⛔ Not a claim. Grading is triage's.

Activity

  1. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → domain:ui · p2 · pm:blocked · 2026-11-15T05:48Z

    ⛔ Not a claim.

    The Studio hook form offers a refusal as message + status only, so after PR #33641 it cannot author refusals.CODE.reasons or params, and a Studio body that throws a literal reason is refused at save with a fix the form cannot make. It is owed by #33214 (customer-waited), so p2. It starts when PR #33641 lands.

    Blocked-by: #33641 (PR)

  2. added
    domain:ui
    pm:blocked
    priority:p2
    on Nov 15, 2026
  3. changed the title [-]Studio: the hook form offers a refusal as message + status only, so it cannot author the `refusals.CODE.reasons` and `params` that #33214 adds — a Studio body that throws a literal `reason` is refused at save with a fix the form cannot make[/-] [+]Studio: the hook form offers a refusal as message + status only, so it cannot author the `refusals.CODE.reasons` and `params` that #33214 adds[/+] on Nov 15, 2026
  4. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:spec#2 · sunhaolin · session_017xRBcSbLCxEmyHf9upz3pz

    Unblocked · 2026-11-15T08:45Z

    The Blocked-by: #33214 target closed: PR #33641 merged at 2026-11-15T08:44Z (53f5a4c975). Re-derived: no other open blocker. Back to pm:queue, unclaimed. ⛔ Not a claim.

  5. added
    pm:queue
    and removed
    pm:blocked
    on Nov 15, 2026
  6. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#1 · os-project-manager · session_01FEkQ5nWoa1Ze1QzjRTSYXD

    Claim: PM loop round 1 · 2026-11-15T09:09Z
    Session: session_01FEkQ5oQHgtkqYPCqstiKir (card thread, dev) · seat session_01FEkQ5nWoa1Ze1QzjRTSYXD
    Account: os-project-manager
    Branch: claude/project-thread-ruu1tl
    Worktree: objectstack-issue-33657
    Domain: domain:ui
    Seat: domain:ui#1
    File surface: packages/spec/src/data/hook.form.ts, the two hook/refusals omit rows in packages/spec/src/system/metadata-form-zod-reconciliation.test.ts, the console's generic metadata form renderer under ui/** only where it cannot draw a keyed record nested in a key-only record or a name list, their tests, root .changeset/. ⛔ No change to hook.zod.ts, the runtime refusal catalogue, the lint rule or server code.
    Container & model: S, mode:thread, model: default tier, effort: default
    Clause-②: yes (widening)
    Metadata-protocol: none
    Responsibility: a Studio author cannot declare a hook refusal's reasons or params that #33641 added, and a catalogue that uses them may lose them on a Studio edit | the stored hook metadata a Studio save writes (round trip of refusals) | every Studio author editing hooks with a refusal catalogue
    Thread-read: 6889955794
    Premise: read on merged #33641 (53f5a4c975) and the reconciliation ledger's two omit rows at origin/main; the dev measures the form and the round trip first
    Serial constraints cleared: no other pm:dispatched domain:ui card claims a file in this surface (live label read); no other ui seat holds a Claim: on these files

    Scope: the card's ask: offer reasons and params on a refusal entry in the Studio hook form and drop the two omit rows; one PR, Fixes #33657. p2 per triage 6889955794 (owed by customer-waited #33214). Spec-touching (hook.form.ts), so a contract review is owed before landing. The declaration lines start at yes (widening) / none; the dev measures them on the diff, and the seat amends this claim if they differ. Order: /mnt/project-files/pm-orders/ui/order-33657.md. Summons: the maintainer's 「开一个 ui 车道,派发 p1 p2 任务」 (this project, 2026-11-14T14:13Z) and 「后续只处理 p1 p2」 (this project, 2026-11-15T05:05Z).

  7. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 15, 2026
  8. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#1 · os-project-manager · session_01FEkQ5oQHgtkqYPCqstiKir
    os-dev-report
    {
    "issue": 33657,
    "status": "done",
    "branch": "claude/project-thread-ruu1tl",
    "pr": "#33796",
    "head": "2238c90f",
    "session": "session_01FEkQ5oQHgtkqYPCqstiKir",
    "premise_still_valid": true,
    "summary": "The Studio hook form (hookForm, packages/spec/src/data/hook.form.ts) now offers reasons (a key-only record of { message }, whose key rule is the served propertyNames.pattern derived from HOOK_REFUSAL_REASON_PATTERN) and params (a tags name list) on a refusal entry; the two omit ledger rows are gone. Measured on origin/main bd96ec9 first: the entry offered Key/Message/Status only (decided by the refusals row's fields array in hook.form.ts); a catalogue with reasons/params ALREADY round-tripped a Studio edit (RecordField updateItem spreads the entry), so the card's second half did not hold and is now pinned; and the generic renderer (SchemaForm RecordField via FieldRow/resolveFieldFace, key rule read by servedRecordKeyPattern) already draws a key-only record nested in a key-only record and a tags list, so NO renderer change and no other form reached. The entry message helpText (said: no placeholders) now says a hole fills a declared param; the 3 new rows and that text are translated in the 10 platform locales, plus 3 console zh-CN labels.",
    "measurement": [
    "(1) offer: open entry labels on main = Key*, Message*, Status; deciding line = hook.form.ts refusals row fields [message, status]; renderer draws exactly a record row's listed fields (RecordField specs).",
    "(2) round trip on main: Label edit + Save, and an edit of the entry's own message + Save: refusals byte-identical incl. params and reasons (RecordField updateItem writes the spread entry; the page sends the whole draft).",
    "(3) renderer: with a form adding a nested key-only reasons record + params tags row the entry drew Key/Message/Status/Reasons/Params, the nested plan_locked entry, and no duplicate element id."
    ],
    "tests": "New ResourceEditPage.hookRefusalReasons-33657.test.tsx (real MetadataResourceEditPage, served hookForm + z.toJSONSchema(HookSchema)): offer pin; author reason + params through rendered controls, Save, PUT body parses and equals expected, reload reads them back; round-trip pin; CONTROL message+status saves exactly as stored. New describe in SchemaForm.keyOnlyRecord-26835.test.tsx (form definition): row declarations, served reason key rule = HOOK_REFUSAL_REASON_PATTERN.source, author + parse, PLAN_LOCKED refused with value unmoved, reload. Reconciliation test green without the 2 omit rows. Ablations via ablation-replace --delete + spec rebuild + ablation-dist-preflight --absent (exit 0): reasons row deleted -> reconciliation 1 failed/76 (expected ['reasons'] to equal []), ui 6 failed/17; params row deleted -> reconciliation 1 failed/76 (['params']), ui 5 failed/17; restored blob == HEAD, spec rebuilt, preflight present exit 0 for both markers, ui 17/17. Suites at head: spec 842 files 26942 passed; platform-objects 122 files 1972 passed (first run 3 census counts red 9->12, 738->741, updated in e764497); ui 3 files 39 passed.",
    "gates": "88 derived on tree 2238c90, all 88 exit 0 (round 2, after a full build); dispatch-gates --ran: 88 derived, 88 run, 0 NOT-MEASURED, 0 UNRUN. Round 1 on earlier heads: teardown-shape --self-test exit 3 (shallow; fixture commit fetched, then 0) and check:test-source-alias exit 1 (fixed by module-top formula/lint imports in 2238c90). Also: app-shell type-check, spec typecheck, platform-objects typecheck exit 0; eslint --no-inline-config on changed files exit 0 (1 warning on an unchanged harness line); check:new-line-citations 0 new; check:i18n-coverage OK none new. CI check-runs: in_progress at report time (PR just opened). Record: /mnt/project-files/pm-orders/ui/33657-gates-ran.txt",
    "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
    "clause_2": "Clause-②: yes (widening) — measured: the published hookForm value (spec) gains two rows and the platform-objects metadata-form bundles gain 6 leaves; no key, value or export is removed. Metadata-protocol: none — what an author can write is unchanged (reasons/params were already accepted). Matches the claim.",
    "line_budget": "553 changed lines (+518/-35) across 21 files: 330 are the two ui pin files, about 155 the 11 regenerated and translated bundles plus the fr source-hash line, about 35 the form, ledger and console labels; no budget stated in the order.",
    "files_changed": 21,
    "deviations": [
    "File surface beyond the claim: the claim names hook.form.ts, the 2 ledger rows, the ui renderer (unchanged), tests and the root changeset. Also changed: the 11 @objectstack/platform-objects metadata-form bundles + fr source-hash table (check:i18n drifted on the new rows; translated in all 10 locales like the existing refusals rows), 3 platform-objects census pins whose counts the 3 rows move, and ui metadata-form-zh-cn.ts (3 labels). Seat to amend the claim's File surface.",
    "Changeset names 4 packages patch: @objectstack/spec, @objectstack/platform-objects, @object-ui/app-shell, @object-ui/console.",
    "The rendered Studio pin is a new file, not a describe in an existing harness: ResourceEditPage pins are per-card files by the directory's precedent, and no ResourceEditPage hook-refusal harness existed; the SchemaForm pins went into the existing 26835 harness as a describe.",
    "A 5-byte scratch file /ablA.pid was written at the filesystem root by a mis-scoped shell variable during an ablation; its removal was refused by the session's safety check, so it remains (outside the repo, inert).",
    "No assignees and no labels sent on pr_create (none named by the order)."
    ],
    "mcp_calls": "0 — no MCP GitHub calls",
    "api_writes": "2 — relay pr_create (fleet-write run 43706243093, PR #33796) and this os-dev-report comment via post-stamped; git push to the harness branch (not a REST write)",
    "open_questions": [],
    "security_findings": "none",
    "out_of_scope_findings": [
    "carrier: none · noted, not filed — the refusals row helpText still ends 'JavaScript (L2) bodies only' while since PR #33641 a handler hook may declare refusals; the Studio form authors a body hook, so the sentence still describes this form. In the PR Acceptance notes."
    ]
    }

  9. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#1 · os-project-manager · session_01FEkQ5nWoa1Ze1QzjRTSYXD

    Claim amendment · 2026-11-15T10:55Z
    Clause-②: yes (widening), as claimed. The dev measured it on PR #33796 (head 2238c90f): hook.form.ts offers reasons (a key-only record of { message }) and params (a tag list) on a refusal entry. Nothing is removed or narrowed. The console's generic renderer already draws both shapes, so no renderer file changes and no other form is reached.
    Metadata-protocol: none (unchanged).
    File surface adds:

    • the 11 packages/platform-objects/src/apps/translations/*.metadata-forms.generated.ts bundles and the fr source-hash table, which check:i18n owes for the new form rows
    • 3 platform-objects census pins (*-panel-echo-decisions.test.ts) whose counts the rows move
    • ui/packages/app-shell/src/views/metadata-admin/metadata-form-zh-cn.ts (3 labels) and two app-shell pin files
      The changeset names @objectstack/spec, @objectstack/platform-objects, @object-ui/app-shell and @object-ui/console as patch. The PR is spec-touching, so a TIER_DEFAULT contract record (declaration face) is owed on the head before landing. os-dev-report: 6893270996.
  10. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#1 · os-project-manager · session_01FEkQ5nWoa1Ze1QzjRTSYXD

    Claim amendment 2 · 2026-11-15T11:07Z
    This corrects the tier in amendment 6893283751. packages/spec/src/data/hook.form.ts is a non-test file under packages/spec/src/**, so reviewFace reads the schema face, and the owed record is at CONTRACT_REVIEW_TIER, not TIER_DEFAULT. That record is PASS 6893396284 on 2238c90f. Its should-fix S1 (an emptied reasons is stored as {}, which the schema and runtime read differently from absent) is being fixed on this PR and owes a delta review. Its nit N1 (the refusals help text "JavaScript (L2) bodies only") is filed as #33803 (p3, parked). Everything else in the claim and amendment 1 stands.

  11. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#1 · os-project-manager · session_01FEkQ5nWoa1Ze1QzjRTSYXD

    Landed · 2026-11-15T13:39Z

    reading value
    PR #33796 MERGED as 53260281 on main (closes this card via Fixes #33657)
    contract records PASS 6893396284 · delta PASS 6894383458 · carry PASS 6894467706 (CONTRACT_REVIEW_TIER)
    seat ACCEPT 6894800308

    State: pm:dispatched removed, assignee cleared; card closed by the merge.
    Follow-up: the refusals help text wording is #33803 (p3).

  12. removed
    pm:dispatched
    on Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    domain:uipriority:p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions