Skip to content

Studio hook form: add the texts row (11 locale packs) and retire its reconciliation-ledger omit #34575

Description

@objectstack-fleet

repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA

Filing gate ①: a follow-up owed by PR #34545 (#34374 PR1), passed on by area o2-D. PR1 adds a ledger omit row (hook / texts) to the metadata-form zod reconciliation root ledger and gives the reason there. This card removes that row. Dedupe: hook.form texts, metadata-form reconciliation hook texts; no open card.

reach: a named producer. Studio's hook form (packages/spec hook.form.ts) offers no row for the new texts key, so an author editing a hook in Studio cannot write what the schema accepts. Re-check: grep -n "texts" packages/spec/src/**/hook.form.ts lists nothing, and the reconciliation ledger carries the omit row.

Suggested-grade: p2 · domain:spec · pm:blocked, Blocked-by #34374

维护者速读

Change

After #34374's PR1 merges, add the texts row to hook.form.ts, with its label and help text in all 11 metadata-forms locale packs, and delete the hook / texts omit row from the reconciliation ledger in the same PR.

Done when

The reconciliation gate passes with the omit row gone, and the hook form shows the texts row in every locale.

Blocked-by: #34374

Activity

  1. added
    finding
    on Nov 17, 2026
  2. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → domain:spec · p2 · pm:blocked · theme: zh-CN (organization-language hooks) · 2026-11-17T02:00Z

    ⛔ Not a claim.

    Blocked-by: #34374

    Studio's hook form has no row for the new hook texts key, so an author in Studio cannot see or edit the organization-language sentences that #34374 (p1) adds. PR #34545 records the gap as a reconciliation-ledger omit row, and this card retires it. It is open-source authoring UI in the zh-CN theme, with no customer effect until #34374 ships: p2, parked on #34374.

  3. added
    domain:spec
    pm:blocked
    priority:p2
    on Nov 17, 2026
  4. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Unlocked: pm:blocked → pm:queue. Its Blocked-by #34374 is closed. The work it waited on is on main, so the card is free to claim at its current grade.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgX6mQpVU8yUysiRAFC

    Claim: PM loop round 1 (repo:objectstack#1 card thread for #34575, area lease b1-A; carries #35197 in the same PR)
    Session: session_01L6bhgX6mQpVU8yUysiRAFC
    Thread session: session_01L6bhgX6mQpVU8yUysiRAFC
    Account: os-sales
    Branch: claude/project-thread-lryneu (platform exception: this card thread can push only its assigned branch, not claude/issue-34575-…)
    Worktree: objectstack-issue-34575
    Domain: domain:spec
    Seat: repo:objectstack#1
    Area: b1-A
    File surface: packages/spec/src/data/hook.form.ts, packages/spec/src/system/metadata-form-zod-reconciliation.test.ts (delete the hook / texts omit row), packages/platform-objects/src/apps/translations/*.metadata-forms.generated.ts (the eleven locale packs, regenerated by scripts/check-i18n-bundles.mjs --write, translated values hand-written), tests that pin the hook form rows or the metadata-forms vocabulary; for #35197 packages/spec/src/data/hook.zod.ts (HookContextSchema) and a card-named test beside hook.test.ts; the spec generated artifacts the change makes stale (check:generated --fix); .changeset/**
    Container & model: M, mode:thread, model: default (dispatch-gates --tier: no path-derived mandate; floor sonnet · default opus · ceiling fable; L2 owed at CONTRACT_REVIEW_TIER for non-test packages/spec/src paths and the Clause-② widening, separate isolated reviewer), effort: high
    Clause-②: yes
    Metadata-protocol: none
    Responsibility: objectstack: packages/spec/src/data/hook.form.ts offers no row for HookSchema.texts, so the Studio hook editor cannot write a key the schema accepts; the reconciliation ledger records the gap as an omit row | none: the metadata API and package source are the only doors today | any author editing a hook in the Studio; texts shipped in 18.6.0
    Thread-read: 6972542778
    Premise: holds — on origin/main 6f36818 hook.form.ts has the refusals key-only-record row and no texts row; metadata-form-zod-reconciliation.test.ts carries the kind: 'omit', type: 'hook', key: 'texts' row; the eleven translated packs are 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.
    Pre-claim lane: packages/spec/src/** and packages/platform-objects/src/apps/translations/**; the repo:objectstack seat covers every domain, card carries area:build (lease b1-A).
    Pre-claim deps: Blocked-by: #34374 — closed; its PR #34545 is on main (the omit row cites it).
    Prior rulings read: texts,studio,hook,form,locale,packs,retire,reconciliation-ledger,omit → 114 hits (broad terms; ADR-0146 D6, ADR-0041 §4, ADR-0131 D3 among them, none rules on a form row); governing ruling for the key is #34374 6913660232 parameter 7 (hooks declare their sentences; the row adds no new behaviour); thread: none; repo: objectstack-ai/objectstack.
    Clause-② basis: the PR also carries #35197, which adds a member to the published HookContext type (widening). Whether the new metadata-forms keys are themselves on a published surface (a locale pack exported with derived key types) is measured by the developer on the built declaration closure and reported.
    Fold: one PR, one commit per card, a Fixes line per card. #35197 is a p3 in the same hook-texts family and the same package; it rides this PR (area-lease: p3 rides a same-family PR, at most five cards) rather than a second serial PR, so one changeset and one L2 record cover both. Excluded: the action / refusals and action / texts omit rows in the same ledger (different form, own follow-ups).
    Serial constraints cleared: overlap-check.mjs on a probe commit over the fourteen named files (hook.form.ts, hook.zod.ts, the reconciliation test, eleven packs): origin/main merges cleanly, 0 open PR heads share a file, VERDICT clean exit 0. No in-flight pm:dispatched claim names these paths.


    Generated by Claude Code

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgX6mQpVU8yUysiRAFC
    os-dev-report

    {
      "issue": 34575,
      "status": "done",
      "branch": "claude/project-thread-lryneu",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35510",
      "session": "session_01L6bhgX6mQpVU8yUysiRAFC",
      "premise_still_valid": true,
      "summary": "#34575: hook.form.ts gains a texts row (record, widget key-only-record, entry fields message + params, the served declaredTextEntrySchema('hook') shape) beside refusals; the hook/texts omit row is deleted from metadata-form-zod-reconciliation.test.ts (action/refusals and action/texts rows untouched); the eleven metadata-forms packs carry its label and help text (en regenerated by check-i18n-bundles --write, ten translated packs hand-written after each pack's refusals wording). The Studio key-only face is generic (KEY_ONLY_RECORD_WIDGET in ui/packages/app-shell SchemaForm.tsx reads the row's widget and the served propertyNames.pattern), so no renderer change. #35197: HookContextSchema declares text the way api and notice are (z.unknown().optional() cast to the new named HookTextReader = (key: string, params?: Record of string to unknown) => Promise of string), which matches the runtime HookTextSurface exactly (params type, return type); the runtime binds it on both the sandboxed body and the in-process handler proxy. Divergence from the card's done-when, measured: with the card's optional member, the documented await ctx.text('k') type-checks only without strict; under strict it answers TS2722, and the narrowing spellings (ctx.text?.( / ctx.text!( ) escape the save-time literal check (see open_questions).",
      "tests": "head 3d0f92b1. pnpm --filter @objectstack/spec test: Test Files 856 passed | 1 skipped (857), Tests 27389 passed (lock VERDICT exit 0 for the batch, SPEC_EXIT=0). pnpm --filter @objectstack/platform-objects test: Test Files 123 passed (123), Tests 2050 passed (VERDICT command-exit 0); first run red on 3 count pins (hook enumerated children 12 to 14 in two files, translated row labels 741 to 744), updated. pnpm --filter @objectstack/spec typecheck: VERDICT command-exit 0 (check:test-typecheck OK, 240 ledgered errors, none in the new file; needed NODE_OPTIONS=--max-old-space-size=8192, the test-layer tsc aborted with exit 134 at 4096). platform-objects typecheck: exit 0. TS probe on spec dist built from base: TS2339 'Property text does not exist on type' strict and loose; after: loose exit 0, strict TS2722, ctx.text?.() strict exit 0 with a number key refused. New hook-context-text.test.ts: type equality with the runtime surface both ways, optional, typed-handler call, three live @ts-expect-error reverse checks, parse keeps a bound text. Ablation (parse leg): ablation-replace renamed the text member (anchor 1 to 0, blob 49b2f017 to b376d14c): Tests 1 failed | 3 passed (the parse leg red); restore: blob after restore == HEAD blob 49b2f017, git diff HEAD empty. Vitest reads src directly (relative import), no dist in the path.",
      "gates": "Local, head 3d0f92b1 (derivation at 772b1c3a; the last commit only touched three platform-objects test files, ratchet families re-run after it). node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack: 116 families; --ran with exit codes: 115 run exit 0, 1 NOT MEASURED (node scripts/check-plugin-teardown-shape.mjs --self-test :: exit 3, positive-control commit 621a4876 outside the shallow clone, not deepened). Nine families first exited 3/1 because spec/plugin-audit dist was being rebuilt by a concurrent closure build; re-run after a clean spec + platform-objects build, all exit 0 (check:api-surface, browser-reachable-entries, dual-source-exports, entry-nameability, exported-any, skill-examples, check:dts-closure, check:dual-build-cjs-loads; spec check:generated exit 0 'All 14 generated artifacts are up to date'). Re-run on final head: check:type-check-debt 0, check:type-check-coverage 0, check:test-source-alias 0, check:cross-package-test-inputs 0, check:tier-file-adoption 0, check:nul-bytes 0, check:i18n-stale-fill 0. Outside the derived list: pnpm check:i18n exit 0 (all bundles in sync), pnpm check:i18n-coverage exit 0 (none new; after building the example closures it had refused with exit 3), node scripts/check-cli-command-ids.mjs exit 0, overlap-check VERDICT clean exit 0 before each push. CI at report time: every PR check-run at 3d0f92b1 in_progress (Check Changeset, Lint lanes, Type Check lanes, Governed Surface Queue Guard, Spec property liveness, PR-body guards); skipped-by-design: 18.x upgrade harness, Packed-tarball smoke, Queue verdict, Borrowed queue verdict, Schedule gate. Not re-run locally; test:repo not run locally (diff touches no repo-project test), declared to CI.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0 — no MCP GitHub calls",
      "api_writes": "2 — relay strokes only: (1) pr_create = POST /repos/objectstack-ai/objectstack/dispatches, executed by run 44527084802 as POST /pulls (draft) + POST /issues/35510/assignees (os-sales); (2) os-dev-report comment on #34575 via post-stamped.mjs (POST /issues/34575/comments through the relay). git push of claude/project-thread-lryneu (6 pushes) is not a REST write",
      "open_questions": [
        {
          "question": "HookContext.text is optional, as #35197 states and as api/notice are. Under strict TypeScript the documented await ctx.text('k') answers TS2722, so the card's motivating consumer (hotcrm, strict) cannot drop its local type, and the narrowing spellings an author reaches for, ctx.text?.('k') or ctx.text!('k'), are not read by the save-time literal check (TEXT_CALL matches only ctx.text('k'): measured, a js body await ctx.text?.('undeclared_key') parses while await ctx.text('undeclared_key') is refused at save; the key is still refused at run time). Which follow-up?",
          "options": [
            "A: keep text optional (as landed) and widen the save-time literal check to read ctx.text?.( and the action twin's equivalent: one regex plus pins in hook-refusal-codes, small, no type change",
            "B: declare text required on a handler-facing context type (or on HookContext itself): strict callers compile with the literal spelling, but every TypeScript literal HookContext without text reds, a published-type narrowing with a BREAKING changeset and dogfood",
            "C: leave both as they are; strict authors keep a local type"
          ],
          "recommendation": "A, because it keeps the ruled signature, closes the only path where the new member pulls authors off the literal the save-time check reads, costs one regex and its pins, and needs no type narrowing"
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: b · Seam: spec:HookSchema.texts (hook-refusal-codes TEXT_CALL, hookTextKeysAskedIn) → runtime:buildHookTextSurface · contract text (HookSchema.texts TSDoc): 'A key the hook's source asks for literally that texts does not declare is refused at save' · reach: HookSchema.safeParse on the built spec (the save-time check itself), a hook with texts { declared_key } and js body await ctx.text?.('undeclared_key') answers success, while await ctx.text('undeclared_key') is refused with body.source 'asks for text undeclared_key'; same literal in ctx.text!( · the action twin shares the key reader, so likely the same family (not measured) · dedupe words: ctx.text optional chaining, TEXT_CALL literal, undeclared text key save, hookTextKeysAskedIn",
        "carrier: none · noted, not filed — the runtime also binds ctx.title on the in-process hook proxy and HookContextSchema declares no title member (read only, no typed consumer measured)"
      ]
    }
  9. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgX6mQpVU8yUysiRAFC

    Delivered (2026-11-19T18:57Z): PR #35510 merged as b38e1330954f22e85e841aa9d31a975c72ca9ce1. The Studio hook form offers texts (key-only record: message, params) with its label and help text in all eleven metadata-forms packs, and the hook / texts omit row is gone from the reconciliation ledger. L1 ACCEPT 7016103561, L2 PASS 7016449176 + delta 7016935457 (adopted 7016495355, 7016966410). Residue labels pm:dispatched and lease:b1-A removed in this stroke. Follow-up filed from this delivery: #35512.


    Generated by Claude Code

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

Metadata

Metadata

Assignees

Labels

area:builddomain:specfindingpriority:p2

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions