Skip to content

Studio hook form: the refusals help text says 'JavaScript (L2) bodies only', but a handler hook may declare refusals since #33641 #33803

Closed

Description

@objectstack-fleet

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

Filing gate: ③ nit N1 of the at-tier contract record 6893396284 on PR #33796 (#33657), also noted by its dev with no carrier. A nit on a schema-face file is not fixed in that PR, so it gets its own card.
Reader: domain:ui (packages/spec/src/data/hook.form.ts, the refusals row's helpText). Grade p3, self-graded by the seat. It is a wording fix that no runtime reads. Filed and parked: only p1/p2 are worked now (the maintainer's 「后续只处理 p1 p2」).
Dedupe: is:issue is:open hook form refusals helpText handler finds nothing.

维护者速读

钩子表单里「拒绝目录」的说明文字还写着「仅限 JavaScript (L2) 代码体」。但 #33641 之后,handler 类钩子也能声明拒绝目录,表单本身也提供 handler 选项。所以这句话不准确了。只改说明文字,不改行为。

Facts

Ask

Reword the help text to match HookSchema (a JS body or a handler), with a key in every metadata-form bundle check:i18n asks for. Wording only; Clause-②: no.

Activity

  1. added
    documentation
    pm:queue
    domain:ui
    on Nov 15, 2026
  2. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf

    Claim: PM loop round 6 · 2026-11-15T20:43Z
    Session: session_01ADHkmSYipyhBpSxJqatyap (card thread, dev) · seat session_01ADHkmT2NE3iyG1o6TDg3sf
    Account: os-steve
    Branch: claude/project-thread-iasjw1
    Worktree: objectstack-issue-33803
    Domain: domain:ui
    Seat: domain:ui#1
    File surface: packages/spec/src/data/hook.form.ts (the refusals row help text), the metadata-form translation bundles that carry that string, their tests, root .changeset/.
    Container & model: S, mode:thread, model: default tier, effort: medium
    Clause-②: no (help text only)
    Metadata-protocol: none
    Responsibility: the hook form's refusals help says "JavaScript (L2) bodies only" while HookSchema lets a JS body or a handler declare refusals (#33641) | nit N1 of contract record 6893396284 on PR #33796 | every author reading the hook form
    Thread-read: none
    Premise: re-read on origin/main: hook.form.ts:59 still ends "JavaScript (L2) bodies only"
    Serial constraints cleared: no other pm:dispatched domain:ui card and no open PR touches hook.form.ts (live read 2026-11-15T20:43Z)
    Scope: reword the help to match HookSchema, update every translated copy, pin + ablation. Fixes #33803. Order: /mnt/project-files/ui-seat1/standard-order.md + 33803-delta.md. Summons: the maintainer's 「skills ui 车道开放 p3 卡」 (2026-11-15T17:13Z); the lane has no dispatchable p1/p2.

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

    @objectstack-fleet
    ContributorAuthor

    domain:ui#1 · os-steve · session_01ADHkmSYipyhBpSxJqatyap
    os-dev-report

    {
      "issue": 33803,
      "status": "done",
      "branch": "claude/project-thread-iasjw1",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34146",
      "session": "session_01ADHkmSYipyhBpSxJqatyap",
      "premise_still_valid": true,
      "summary": "The hook form's refusals row help now matches HookSchema: the code is the one the hook throws, and the catalogue is 'For a JavaScript (L2) body or a handler; refused on an expression body' (was 'JavaScript (L2) bodies only'). The en metadata-form bundle carries the new source string and the ten translated locales were re-translated in place (leaf value only; no source-hash entry exists for the path). A narrow pin in hook-refusals.test.ts reads the row; no behaviour change.",
      "tests": "spec vitest hook-refusals + repeater-item-titles + metadata-form-declared-rows.pin: Test Files 3 passed, Tests 140 passed on a711ec17 and on final head d4af1df0. platform-objects test: Test Files 122 passed, Tests 2007 passed. Ablation via ablation-replace.mjs on a711ec17: old ending restored in hook.form.ts (anchor 1->0, blob 6d2932ce->8f783593), new pin red (1 failed / 98 passed), restore blob == HEAD, git diff HEAD empty. No forced test edits.",
      "gates": "dispatch-gates --commands on d4af1df0: 84 derived; all 84 run after the last commit, all exit 0; --ran: 84 run, 0 NOT-MEASURED, 0 UNRUN. Plus spec typecheck (incl. check:test-typecheck, which caught a TS18048 on the first head, fixed in d4af1df0) exit 0, platform-objects typecheck exit 0. Environment-only exit 3s first seen and cleared: plugin-teardown-shape self-test (shallow clone, fetched pinned fixture), dual-build-cjs-loads (no dist, built ./packages/**), four spec dist gates (src hash moved, rebuilt spec). CI check-runs: in_progress at report time, not awaited.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "3 — mcp__github__issue_read get, mcp__github__issue_read get_comments, mcp__github__pull_request_read get (all reads)",
      "api_writes": "2 — relay pr_create (PR 34146, draft, assignee os-steve), post-stamped os-dev-report comment on the card",
      "files_changed": [
        "packages/spec/src/data/hook.form.ts",
        "packages/spec/src/data/hook-refusals.test.ts",
        "packages/platform-objects/src/apps/translations/{ar,de,en,es-ES,fr,ja-JP,ko,pt-BR,ru,zh-CN,zh-Hant}.metadata-forms.generated.ts",
        ".changeset/33803-hook-refusals-help-handler.md"
      ],
      "line_budget": "+49 / -13 across 14 files (PR additions+deletions 62, under the 3000 threshold)",
      "deviations": "none. The packages/spec path may make a contract review owed at CONTRACT_REVIEW_TIER; per the maintainer's 21:53Z note no fable subagent was started here, the seat routes it.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "Acceptance notes only: nested rows under refusals (message, reasons, reasons.message) still say 'when the body throws this code', narrower than the schema for a handler hook; same wording class, 3 strings x 11 locales · carrier: none · noted, not filed"
      ]
    }

    Stamped 2026-11-15T21:56Z.

  5. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf

    Landed

    PR #34146 MERGED at 2026-11-15T23:51Z as fdfccbfb7a through the merge queue; Fixes #33803 closed this card. Delivered: the Studio hook form's refusals row help now reads "For a JavaScript (L2) body or a handler; refused on an expression body" and names the code the hook throws, matching HookSchema.refusals. The same correction ships in the en bundle and ten re-translated metadata-form bundles, pinned in hook-refusals.test.ts. Nothing remains on this card. Noted, no card filed: three nested rows under refusals still say "body throws".

    State change: pm:dispatched removed and the assignee cleared in this stroke.

  6. removed
    pm:dispatched
    on Nov 15, 2026
  7. added a commit that references this issue on Nov 16, 2026
    fdfccbf
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

    documentationdomain:uipriority:p3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions