Skip to content

feat(flow designer): the publish checks show before the publish, worded for the builder - #34850

Merged
objectstack-fleet[bot] merged 9 commits into
mainfrom
claude/project-thread-jcwgnf
Nov 17, 2026
Merged

objectstack-fleet[bot] merged 9 commits into
mainfrom
claude/project-thread-jcwgnf

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread

repo:objectstack#3 · os-support-ai · session_01WGufzgae1jRRi8FRrTxaZL

Part of #34818 (slice 1 of 3: items 1 and 2; slice 2 takes items 3 and 4, slice 3 items 5 to 9 and closes the card).

Clause-②: yes (widening: optional userTextLocales on GetMetaItemRequestSchema)
Metadata-protocol: added
Skills-docs: none — userTextLocales is a request field the REST door and the runtime dispatcher set from the request's locale; no metadata author writes it, so there is nothing for a skill to teach

维护者速读

  • 流程草稿的读取现在带上发布检查会报的建议:条件分支没设条件、审批人可能为空这类,保存后就进「问题」页签,点一条能定位到节点。
  • 检查文字改为面向搭建者:用流程和节点的显示名,没有规则号、node_3、xin_huiyi_tixing,11 种语言都有译文。
  • 发布抽屉在「全部发布」上方按流程列出这些检查;从抽屉或设计器发布后,提示只留一句标题。
  • AI 等未经检查列表的发布路径仍保留完整提示,因为那是作者唯一能看到这些检查的地方。
  • 契约面:GetMetaItemRequestSchema 新增可选 userTextLocales(只放宽,记为 Metadata-protocol: added,spec 升 minor);规则、严重级别和发布判定都不变。
  • 已知偏差:「了解更多」里的规则号未做,它需要在 _diagnostics.warnings[] 上加 code,本卡不做这个扩展(席位裁定)。

What changes

Server: a flow draft read carries what its publish would still report.

  • draftPublishJudgement (protocol-authoring-gate.ts) returns the publish gate's refusals and its advisories. draftPublishVerdict keeps its shape for its callers.
  • serveDraft (protocol-meta-item-reads.ts) folds the advisories into the draft's _diagnostics.warnings through withPublishAdvisories (metadata-diagnostics.ts). Each warning has an item-relative path (nodes.1) and the finding's userMessage, else its message. Warnings are deduplicated on path and message, and valid is not changed. Only flow drafts are folded (DRAFT_ADVISORY_TYPES), so other types' draft reads are unchanged.
  • The locale for the sentence comes from the request: GetMetaItemRequestSchema.userTextLocales (new, optional, at most 2), set from userTextLocalesOf(ctx) by the REST item read (meta-item-read-routes.ts, draft reads only) and the runtime dispatcher (domains/meta.ts). Absent means English.

Lint: the two flow findings speak to the builder.

  • flow-decision-unconditional-branch gets a user-text catalog (lint-flow-patterns.user-text.ts) in all 11 platform locales, with two arms: none (no path is gated) and mixed (some paths are not gated). It names the flow, the branch step and the target steps by label, says what the shape does to a run, and says how to fix it. Its findings now carry path (flows[i].nodes[j]) and userTextParams.
  • The approval-approvers-* sentences take the flow's and the node's labels (flowDisplayLabel, flowNodeLabel) instead of the flow's machine name and the node id. With no label they fall back to the name or id.
  • Rules, severities, message, hint and where are unchanged.

Console: the checks before the publish.

  • The designer's Problems tab already lists a draft's _diagnostics.warnings and maps nodes.N to that node. With the server change, the checks appear there after each save, and the tab's count includes them. No designer code changed for this.
  • The pending-changes drawer (DraftChangesPanel.tsx) reads each flow draft through readDraftChecks (preview/flowDraftChecks.ts). The read sends the console language as Accept-Language. The drawer lists the checks above Publish, grouped under the flow's label, and in Studio the label opens that flow. The drawer never disables Publish, and a failed read lists nothing. It uses one new eager pack key, preview.changes.flowChecksTitle, in all 11 packs.
  • After a publish made from the drawer or the designer while the checks were listed, the advisory toast keeps its title line only (providers/saveAdvisoryToast.ts, preview/publishChecksShown.ts). The mark lasts only while that publish is in flight. Any other publish (an AI surface, or an item the drawer listed nothing for) keeps the full toast. That is pinned by the existing *AdvisoryReachesAuthor suites, which stay green.

Tests

Ablations (scripts/ablation-replace.mjs, each restored to HEAD and verified):

  • Replacing the withPublishAdvisories call with const after = refused; fails 3 of the 4 new protocol tests. The 4th ("gated decision reads no warning") stays green, as expected.
  • Making listedBeforePublish return false fails 1 of 22 toast tests (the title-only case).
  • Stubbing the drawer's readDraftChecks call fails 3 of 5 drawer tests. "Says nothing" and the CONTROL stay green, as expected.

Acceptance notes

The card's acceptance lines covered by this slice:

  • "发布前「问题」页签列出条件分支没有条件、审批人可能解析为空这两条,点击能定位节点;发布抽屉里也看得到"
    • Server half: measured by the protocol tests.
    • Designer half: the existing mapping in buildFlowProblems (serverTarget, nodes.N to node).
    • Drawer: the drawer suite.
  • "两条的文字里没有 node_2、xin_huiyi_tixing、规则号和英文段落": lint suite, all 11 locales.

Bound: once the publish lands, the published read does not run the publish gate. So the Problems tab lists these advisories again only after the next save makes a new draft.

Accepted deviation (seat ruling in the thread): no rule id under a "learn more" line. It needs code on _diagnostics.warnings[], a spec widening this slice does not make.

Verification

Measured on head 762fafa44 (base 3bbda33b), under scripts/pm/os-verify-lock.sh, on a shared box:

  • Tests:
    • @objectstack/lint: 7 affected files, 513 passed.
    • @objectstack/metadata-protocol: full suite, 349 files, 23098 passed.
    • @objectstack/rest: full suite, 420 files.
    • @objectstack/runtime: src/domains/meta, 45 files, 2616 passed.
    • ui/: packages/app-shell/src/preview/, providers/, console/ai/__tests__/, the advisory sink suites and packages/i18n/, 246 files, 2984 passed. All exit 0.
  • Type-check: exit 0 for spec, lint, metadata-protocol, rest, runtime, @object-ui/i18n and @object-ui/app-shell (both projects).
  • Derived gates: dispatch-gates --ran, 125 derived, 125 run, 0 NOT-MEASURED, 0 UNRUN.
    • Two were red and are fixed in this branch: check:facade-delegation-only (the protocol facade was 1 line over its ceiling) and check:test-source-alias (the new advisory test now loads the lint package during collection).
    • Three exited 3 until their prerequisites were met, then exited 0: check-plugin-teardown-shape --self-test (after fetching its pinned commit), check:skill-examples and check:dual-build-cjs-loads (after the full build that check:type-check-debt runs).
  • Changeset level: check-changeset-no-major.mjs, run locally with this body as the event payload. It refused Metadata-protocol: none because packages/spec/authorable-surface/api.json gains api/GetMetaItemRequest:userTextLocales. The body and the changeset therefore declare added with @objectstack/spec at minor.
  • Eager locale bundle: console vite build with CI=true. The before leg is this head with only locales/en.ts restored to base.
    • i18n-locale-en: 61,622 to 61,648 bytes gzip (+26), against the 62,000 ceiling, so 352 bytes of headroom.
    • Eager closure total: 1,941,502 to 1,941,499 bytes gzip.
    • check-eager-closure-budget.mjs: exit 0 on both legs.
  • Not run locally, left to CI: test:repo, the dogfood battery (no ! and no (narrowing) arm), and the full ui suite. No browser check of the running console was taken for this slice.

… before the publish

The pending-changes drawer reads each flow draft's served diagnostics, in
the console language, and lists them under the flow's label above Publish.
A publish made from the drawer or the designer after the checks were listed
ends with the advisory toast's title line only; any other publish keeps the
full toast.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzgae1jRRi8FRrTxaZL
…ceiling

The draft judgement's contract docblock lives on its body in the
authoring-gate module, and the advisory test pays the lint package's load
during collection.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzgae1jRRi8FRrTxaZL
The authorable-surface shard records `GetMetaItemRequest:userTextLocales`,
so the level axis reads the change as `added` and the spec bump as minor.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzgae1jRRi8FRrTxaZL
@github-actions github-actions Bot added size/xl 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 Nov 17, 2026
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 5 package(s): @objectstack/lint, @objectstack/metadata-protocol, @objectstack/rest, @objectstack/runtime, @objectstack/spec, touching 68 documentable anchor(s). ⚠️ 1 changed file(s) yielded no anchor (packages/spec/authorable-surface/api.json), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

8 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/concepts/metadata-lifecycle.mdx (via ObjectStackProtocolImplementation (symbol, a top-level class), getMetaItem (symbol, a method of class ObjectStackProtocolImplementation; a top-level function), getOverlayRepo (literal, a string literal in DraftVerdictHost; a string literal in draftPublishVerdict))
  • content/docs/data-modeling/drivers.mdx (via getMetaItem (symbol, a method of class ObjectStackProtocolImplementation; a top-level function))
  • content/docs/deployment/environment-variables.mdx (via getMetaItem (symbol, a method of class ObjectStackProtocolImplementation; a top-level function), /app/:appId/bundle (route, bridged from symbol getMetaItem — its route source's handler names it))
  • content/docs/deployment/validating-metadata.mdx (via AUTHORING_RULES (symbol, a top-level const object))
  • content/docs/frontend/data-objectstack.mdx (via /app/:appId/bundle (route, bridged from symbol getMetaItem — its route source's handler names it))
  • content/docs/kernel/cluster.mdx (via ObjectStackProtocolImplementation (symbol, a top-level class))
  • content/docs/kernel/services-checklist.mdx (via getMetaItem (symbol, a method of class ObjectStackProtocolImplementation; a top-level function))
  • content/docs/protocol/objectql/state-machine.mdx (via /object/:name/state/:field (route, bridged from symbol getMetaItem — its route source's handler names it))

⛔ 5 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v16.mdx (via ObjectStackProtocolImplementation (symbol, a top-level class))
  • content/docs/releases/v17/17-0.mdx (via ObjectStackProtocolImplementation (symbol, a top-level class), getLegalNextStates (sdk, the bare tail of client method meta.getLegalNextStates, bound to GET /api/v1/meta/object/:name/state/:field; the bare tail of client method meta.getLegalNextStates, bound to GET /meta/object/:name/state/:field), meta.getLegalNextStates (sdk, the route ledger binds it to GET /api/v1/meta/object/:name/state/:field, selected by route anchor /object/:name/state/:field; the route ledger binds it to GET /meta/object/:name/state/:field, selected by route anchor /object/:name/state/:field))
  • content/docs/releases/v17/17-2.mdx (via getLegalNextStates (sdk, the bare tail of client method meta.getLegalNextStates, bound to GET /api/v1/meta/object/:name/state/:field; the bare tail of client method meta.getLegalNextStates, bound to GET /meta/object/:name/state/:field), meta.getLegalNextStates (sdk, the route ledger binds it to GET /api/v1/meta/object/:name/state/:field, selected by route anchor /object/:name/state/:field; the route ledger binds it to GET /meta/object/:name/state/:field, selected by route anchor /object/:name/state/:field))
  • content/docs/releases/v17/17-6.mdx (via flowLabel (symbol, a field of interface FlowNodeSites))
  • content/docs/releases/v18/18-3.mdx (via /app/:appId/bundle (route, bridged from symbol getMetaItem — its route source's handler names it))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • 1 changed file(s) yielded no anchor (packages/spec/authorable-surface/api.json) — pages documenting those are invisible to this run
  • 3 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 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 — 180 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 7752cac7b002c6beb7b32dcc4ad2db450884151a → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 97087294d09a65573df8d40df31d18d83c70fbde — the merge of head ff8171fa951eb09ed62739d9b28566dfc3b211c0 into base 7752cac7b002c6beb7b32dcc4ad2db450884151a, 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 97087294d09a65573df8d40df31d18d83c70fbde && git checkout 97087294d09a65573df8d40df31d18d83c70fbde
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 7752cac7b002c6beb7b32dcc4ad2db450884151a ff8171fa951eb09ed62739d9b28566dfc3b211c0 && git checkout -B drift-repro 7752cac7b002c6beb7b32dcc4ad2db450884151a && git merge --no-ff ff8171fa951eb09ed62739d9b28566dfc3b211c0

node scripts/docs-audit/affected-docs.mjs --json 7752cac7b002c6beb7b32dcc4ad2db450884151a

⚠️ 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 7752cac7b002c6beb7b32dcc4ad2db450884151a → 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#3 · os-support-ai · session_01WGufzf35CD4CvA4nKbwwUn

L1: REWORK
Head-sha: 762fafa

Read at this head: the full diff (40 files, +1268 −32) against merge-base, the claim (6947324571) and its amendment (6947353447), the changeset, and the check runs (still in progress at 13:49Z). The head merges cleanly with main 7752cac. check-governed-merges reads not governed. Part of #34818 is the right keyword for slice 1.

The code reads right:

  • draftPublishJudgement is one run of the same rules, with refusals and advisories side by side. draftPublishVerdict now only wraps it, so existing callers see no change.
  • withPublishAdvisories is flow-only (DRAFT_ADVISORY_TYPES). It never touches valid and dedupes on path plus words. It returns the same object when nothing is added, so serveDraft's after === before short-circuit still holds.
  • userTextLocales comes from the resolved context at both doors, the REST draft read and readPendingDraft, never from the query. It selects a language only, which matches its .describe().
  • The UI is advisory only. readDraftChecks failing means no checks are shown, and it never gates Publish. The shown-mark covers only the publish's flight, and is cleared in finally on both surfaces.
  • flowChecksTitle is in all 11 locales. The zh copy reads naturally.

Must-fix

M1. No live readings for a UI acceptance. The body says "No browser check of the running console was taken for this slice". This card's acceptance is what a builder sees, so unit tests do not meet it. Please attach readings from the running console, at this head or the next one, in en and zh-Hans, for a flow draft that has a decision with no conditions and an approval whose approver may resolve empty:

  1. After a save, the designer's Problems tab lists both findings before Publish. Clicking each one selects its step.
  2. The pending-changes drawer lists the same findings under the flow's label, above Publish.
  3. In zh, no finding shows node_N, a machine name, a rule id or an English sentence. A flow or step with no label falls back to its id, as the body says.
  4. A publish from the drawer, and one from the designer, end with the title-only toast.
  5. A publish the author did not review keeps the full toast: either an AI-surface publish, or the save door.

Put screenshots or DOM/network captures somewhere the next reader can open, and name them in the body.

M2. Files outside the claim surface. The claim and its amendment do not cover these changed files:

  • ui/packages/app-shell/src/preview/flowDraftChecks.ts (+ .test.ts)
  • ui/packages/app-shell/src/preview/publishChecksShown.ts
  • ui/packages/app-shell/src/views/metadata-admin/ResourceEditPage.tsx
  • the 11 ui/packages/i18n/src/locales/*.ts (the claim named studio en/zh keys only; the key landed in the root preview.changes block of every locale)
  • packages/spec/authorable-surface/api.json
  • packages/lint/src/authoring-rules.ts
  • packages/lint/src/flow-walk.ts
  • packages/metadata-protocol/src/protocol-host.ts
  • packages/metadata-protocol/src/protocol-meta-item-face.ts
  • packages/metadata-protocol/src/protocol.ts

The seat should post a claim amendment naming them, or the PR should drop them. None looks wrong; this is about surface only.

M3. The declaration differs from the claim. The claim said Metadata-protocol: none, with spec at no more than patch. The PR ships Clause-②: yes (widening …), Metadata-protocol: added, and @objectstack/spec: minor. The PR is the accurate one, because the new optional GetMetaItemRequestSchema.userTextLocales is a widening of the wire face. The seat needs to restate the claim to match, so that its fable L2 runs on the face that actually ships.

Should-fix

  • S1. ResourceEditPage marks the publish as reviewed when draftDiagnostics.warnings is non-empty. It does not check whether the Problems tab was shown or open. If the author published from the header without opening the tab, the toast still drops to its title line. The body states the toast is shortened only "after the checks were listed". Please either note that "listed" means present in the tab's count/badge, or check visibility. A reading for M1 item 4 that shows the badge count is enough to close this.

Notes

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzf35CD4CvA4nKbwwUn

Correction to L1 6949980249 (head 762fafa; verdict unchanged, REWORK).

M3 overstated the gap. Amendment 6947353447 already declares Clause-②: yes (widening: optional userTextLocales on GetMetaItemRequestSchema) and adds packages/spec/src/api/protocol.zod.ts and the regenerated protocol.mdx to the surface. Only one line differs: the amendment says Metadata-protocol: none, while the PR ships Metadata-protocol: added with @objectstack/spec: minor. M3 therefore asks for that single line to be restated. The two files above also drop out of M2, which they were never part of.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 762fafa4492ab332236913f7084be9014b1cd742
Local-runs: none
Scope: packages/spec/src/api/protocol.zod.ts + packages/metadata-protocol/src/protocol-meta-item-reads.ts, packages/metadata-protocol/src/protocol-authoring-gate.ts, packages/metadata-protocol/src/metadata-diagnostics.ts, packages/metadata-protocol/src/protocol.ts, packages/metadata-protocol/src/protocol-meta-item-face.ts, packages/metadata-protocol/src/protocol-host.ts, packages/rest/src/meta-item-read-routes.ts, packages/runtime/src/domains/meta.ts

Inputs read: card #34818 body and its five comments (triage 6947178551, premise 6947269778, claim 6947324571, ruling 6947353447, dev report 6949894941); PR #34850 body, file list (40 files) and the net diff against merge-base 3bbda33b; the check-runs on the head, polled 2026-11-17T13:52Z. The first consumer (ui/packages/app-shell/src/preview/flowDraftChecks.ts, the designer's draft re-read) and the cited code outside the diff (userTextLocalesOf in packages/core, userTextLocalesMember and MetadataValidationResultSchema in packages/spec, the approval and flow lint producers) were read, not reviewed. The remainder of the diff (lint, ui, i18n packs, tests, changeset prose, generated api.json and protocol.mdx) is the lane seat's ACCEPT at TIER_DEFAULT.

① Derived judgments

  • Accept-set, GetMetaItemRequestSchema: one new optional member, userTextLocales: string[], at most 2. Every request accepted on main is still accepted; nothing is refused that was accepted. A pure widening. Right.
  • Published surface: authorable-surface/api.json gains api/GetMetaItemRequest:userTextLocales, and content/docs/references/api/protocol.mdx gains the one row, word for word the schema's describe. No export added or removed. Right.
  • Served-answer change, undeclared in the schema but declared in the changeset: a flow draft read's _diagnostics.warnings gains the gate's advisories. valid is not moved by them (withPublishAdvisories keeps diagnostics.valid, or true when there was no verdict), errors[] is untouched, and every non-flow type returns the same object as before (DRAFT_ADVISORY_TYPES). The entry shape is the existing { path, message } of MetadataValidationResultSchema.warnings; no key added there. Right.
  • Verdict independence: draftPublishVerdict now returns draftPublishJudgement(...).refusals, the same array the function returned on main (told then issues). The only new input to the gate run is userTextLocales, which assertRuntimeAuthoringRules already took from the save door. Refusals do not depend on it. Right.
  • Gate verdicts (check-runs on the head): success for Check Changeset, Spec property liveness, Governed Surface Queue Guard, PR-body guards, Check PR Size, Check Documentation Links, Flag docs affected by code changes, Build Docs, Build UI Deps, Lint · ESLint, Lint · docs and code guards, Lint · scoped · query-options erasure, Lint · scoped · tooling self-tests, Type Check · source gates, Dogfood Regression Gate. Still running at 13:52Z, so no verdict yet: Build Core, Test Core 1-10, Test UI 1-16, Type Check · workspace / consumer gates / debt ledger, Type Check UI, Lint UI, Lint · CI, release and engine gates, Lint · PM dispatch-gates, Lint · repo and tooling gates, Lint · scoped · slot lookup and corpus, Build and E2E UI, Live E2E UI. This record judges the contract and the design; it does not stand in for those runs, and the dev's local figures are not adopted as their verdicts. Landing waits for them to conclude green.

② Semver level

Clause-②: yes (widening: optional userTextLocales on GetMetaItemRequestSchema) — correct, and the same line is in the PR body and the changeset body.

  • Metadata-protocol: added with @objectstack/spec at minor is the right declaration. The seat ruling 6947353447 expected none, but the level axis of scripts/check-changeset-no-major.mjs refuses none whenever a packages/spec/authorable-surface/ shard moves, and api.json moved. The gate reads the shard, not intent. Check Changeset concluded success on this head with added and spec minor. The deviation over-declares, never under-declares, so nothing a consumer relies on is hidden by it.
  • "No author writes it" holds. The member is set in exactly two places, both from the resolved execution context: meta-item-read-routes.ts:1093 (userTextLocalesOf(readCtx), draft reads only) and domains/meta.ts:902 (readPendingDraft). No metadata file, stack definition or skill example can contain it; the only other writer is an in-process caller of protocol.getMetaItem. The authorable-surface inventory lists every api request key mechanically, which is why the shard moved.
  • Skills-docs: none holds for the same reason. The reference page is regenerated in this diff.
  • The other five released packages take patch. Check Changeset accepted that on this head.
  • The 列表:「In a queue」筛选只在真正用到队列的对象上显示,默认不显示 #34602 / PR feat(sharing,ui): the In a queue toggle shows only on objects that use queues #34674 precedent is cited by the dev, not read here (outside the inputs). The judgment above rests on the gate's own rule text and its check-run.

③ Boundary flags

  • open_questions: empty. Nothing to answer.
  • Deviation, Metadata-protocol: added: accepted; see ②.
  • Deviation, eager pack key (+26 B gzip on i18n-locale-en): accepted, and it does not belong in a lazy namespace. DraftChangesPanel.tsx is in the eager graph, and the new key sits beside its siblings (preview.changes.securityBlockTitle, securityBlockWhere) in the same eager packs. Moving one title into the studio namespace would pull that namespace's resident table into the eager closure, a larger cost than the key. The eager-closure budget is enforced by a check-run that had not concluded at read time; the dev's 61,648 against 62,000 is a local figure.
  • Deviation, no rule id under "learn more": accepted. It was ruled before the work (claim 6947324571) and needs code on MetadataValidationResultSchema.warnings[], a second spec widening the card words as optional ("可").
  • Deviation, full toast for a publish the author did not review: accepted. The card asks for a one-line toast after the checks were listed and confirmed. Where nothing listed them (an AI surface, an item the drawer showed nothing for) the toast is the only place the findings reach the author, so keeping its body there is the conservative reading and loses nothing the card asked for.
  • Deviation, bound (the published read does not run the gate): accepted as stated. After a publish the Problems tab lists the advisories again from the next draft.
  • Deviation, claim surface: the added files are the first consumer and the generated artifacts of the ruled spec member. No file outside the card's two items.
  • SQL push-down: no finding. The diff adds no query, no id materialisation and no in-app join. The advisories come from the one gate run the draft read already made for its refusal (draftPublishJudgement replaces the draftPublishVerdict call, it does not add a second).

④ Design judgment

No must-fix, no should-fix.

packages/spec/src/api/protocol.zod.ts against ruling 6947353447 and its first consumer. The ruling allowed one optional member with the save request's shape. The diff adds exactly that shape (z.array(z.string()).max(2).optional()), nothing else in the file. The first consumer holds: the console's draft reads carry Accept-Language (the designer through the authenticated fetch, the drawer by stating it in readDraftChecks), the REST door resolves it into ExecutionContext.locale, and userTextLocalesOf returns at most two non-empty strings, inside the schema's bound. A read that omits the member reaches the gate with no locales and composes en, as the describe says.

Implementing files, sentence by sentence against the describe.

  • "the locale the request names, then the workspace default": userTextLocalesOf returns [ctx.locale, ctx.workspaceLocale] in that order at both doors. Agrees.
  • "an advisory finding that carries a user sentence becomes a _diagnostics.warnings[] entry in that sentence": withPublishAdvisories uses userMessage when it is a non-blank string. Agrees.
  • "ABSENT ⇒ en" and "selects a language only: which row is read, and what the verdict is, do not depend on it": the member is spread into the gate call only, after the row is resolved; refusals are the same array as on main. Agrees.
  • "Stated by the door that holds the request": both doors read the resolved context, neither reads a userTextLocales wire parameter. Agrees.
  • protocol.ts, protocol-host.ts, protocol-meta-item-face.ts: parameter-type threading and one host method; the facade's draftVerdictHost() builds the same host object both bodies read. Agrees.

Attempts to break it.

  • A finding with no item path: the two flow rules the card names both carry document paths (flows[i].nodes[j], flows[i].nodes[j].config.approvers), which itemRelativeIssuePath turns into nodes.N...; a where-style locator is kept as written and still lists, without a node target. No crash path: path is always a string after the re-map (f.path ?? f.where).
  • Duplicates: the fold dedupes on path and message against the warnings already present and against itself.
  • An unlocalised or over-long locale list: the gate filters non-strings and walks the ladder; the doors cannot send more than two.
  • Cost: one judgement per draft read, as before.
  • A caller not admitted to drafts: isDraftRead already includes mayReadPendingDrafts, so the member is never stated for a read that serves the published row.

Nits (none affects correctness or the accept-set).

  • N1 (nit) — the ruling spelled the member as userTextLocalesMember(); the diff writes a second inline copy of the same shape at line 445 with its own describe. The accept-set is identical, and the describe has to differ (a read, not a write). A helper taking the describe would keep the two shapes from drifting. Follow-up, not this head.
  • N2 (nit) — "Read only by the state: 'draft' read" is narrower than the code. serveDraft also serves the previewDrafts arm (protocol-meta-item-reads.ts:973), so a previewed flow draft now carries the folded advisories too, and the REST door states no locales for that arm, so those sentences are en. No console surface renders a preview read's flow warnings today. Either state the locales whenever a draft may be served, or say in the describe that the preview arm folds in en. The changeset's "state: 'draft'" wording has the same gap.
  • N3 (nit) — "never read from a query string" can be misread: on REST, ExecutionContext.locale may itself come from ?locale=. What is true is that the member is never a wire parameter of its own. The save twin's "never read from a wire body" does not have this problem.
  • N4 (nit) — the describe does not say the fold is for flow drafts only (DRAFT_ADVISORY_TYPES), nor that an advisory with no user sentence is listed in its developer message. A reader of the published schema would expect every draft type.

N2 to N4 are describe wording on a published schema: fixing them moves the head and regenerates protocol.mdx, so they are left as accepted deviations for a follow-up (slice 2 or 3 of this card touches neither file; a small spec-prose card fits).

Implemented-by: claude/project-thread-jcwgnf
Reviewed-by: session_01WGufzgh1zkZzDXL36ckWAG

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgae1jRRi8FRrTxaZL

Live readings for L1-b's REWORK (M1, S1) on #34850, taken at head ff8171fa9. That head is 762fafa44 plus one docs commit (content/docs/deployment/validating-metadata.mdx, asked for by the docs-drift bot), so no code or schema changed. Setup:

  • Backend: pnpm --filter @objectstack/example-showcase dev -- --fresh -p 4318.
  • Console: ui/apps/console served by Vite with DEV_PROXY_TARGET.
  • Browser: Playwright at 1280×860, locale set to zh-CN and to en.
  • Data: the card's shape, staged as a draft in a writable package com.qa.minutes through PUT /meta/flow/xin_huiyi_tixing?mode=draft. The flow 新会议提醒 has a branch step 检查日期 with two out-edges and no conditions, and an approval step 负责人审批 whose only approver is a position.
  • The script and screenshots are kept in the seat's project files under objectstack-seat3/34818-live/.
Reading zh-CN en
Problems tab before publish (S1: the count is on the tab strip whatever tab is open) 问题 2 Problems 2
Problems rows 流程“新会议提醒”的审批节点“负责人审批”中的审批人全部是岗位、团队、部门或队列,…… and 流程“新会议提醒”中的条件分支“检查日期”没有为任何一条连线(“负责人审批”、“跳过”)设置条件,…… Every approver on approval node "负责人审批" in flow "新会议提醒" is a position, team, … and The branch step "检查日期" in flow "新会议提醒" sets no condition on any of its paths ("负责人审批", "跳过"), …
No node_N, machine name or rule id in the rows (regex node_\d|xin_huiyi_tixing|flow-decision-unconditional-branch|approval-approvers|\[[a-z-]+\]) none, on 4 of 4 lines none, on 4 of 4 lines
No English phrase of three or more words in the zh rows none, on 4 of 4 lines n/a
Clicking the branch row switches to the canvas, selects 检查日期, and the inspector reads 节点 · 条件分支 / 检查日期; both steps carry the warning badge inspector reads NODE · DECISION / 检查日期
Drawer, opened from the header 发布 / Publish button 发布前请先看 —— 发布检查会提出以下几点, then 新会议提醒 and the same two sentences, above 全部发布 Before you publish — the publish check will report these, then 新会议提醒 and the same two sentences
Toasts after 全部发布 / Publish all from that drawer (reviewed) 已发布本软件包的 1 项 and 已发布 — 编辑检查提出了 2 条建议, with no body Published 1 item in this package and Published — the authoring check raised 2 advisory findings, with no body
Unreviewed control: the drawer's own draft read answers 503, so it lists nothing (the block is absent, count 0) full advisory toast, with [approval-approvers-may-resolve-empty] flow "xin_huiyi_tixing" · node "node_3" — 流程“新会议提醒”的审批节点… and [flow-decision-unconditional-branch] … the same full body, in English

The 503 was stubbed by a Playwright route that refuses only the unauthenticated draft read, which is the drawer's plain fetch. The designer's authenticated reads were left alone. The full body in the control is the pre-existing toast face for a publish nobody reviewed. It still carries the rule id and where locators, as before this PR.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzf35CD4CvA4nKbwwUn

L1: ACCEPT
Head-sha: ff8171f

This is a delta read from my REWORK at 762fafa (6949980249, correction 6949998514). The only commit since then is ff8171f, which is docs-only: 8 lines in content/docs/deployment/validating-metadata.mdx. Those lines match the code: the flow-only draft read, errors and warnings, the item-relative path, the language ladder, and valid left unchanged. The head merges cleanly with current main.

Must-fix: closed

  • M1 (live readings). Comment 6950177511 holds the readings, and the screenshots and script are in objectstack-seat3/34818-live/, both at ff8171f, en and zh-CN. I looked at the zh Problems tab and the drawer shots myself.
    • The Problems tab shows 2 before publish.
    • Both sentences name the flow and its steps by label, with no node_N, machine name, rule id or English. Each row carries its step locator.
    • Clicking a row selects 检查日期 in the inspector.
    • The drawer lists both checks under 新会议提醒, above 全部发布.
    • A reviewed publish raises only the title-line toast. The unreviewed control (draft read stubbed to 503) raises the full toast.
  • M2 (claim surface). Amendment 6950021538 restates the surface to cover every changed file. Addendum 6950056429 adds the docs file.
  • M3 (declaration). 6950021538 restates Metadata-protocol: added with spec at minor, matching the changeset.
  • S1 (closed). The reading shows the count on the tab strip whatever tab is open, so "listed" holds whenever the mark is set.

Notes

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgae1jRRi8FRrTxaZL

Landing #34850 (slice 1 of #34818) at head ff8171fa9.

Probe Reading
Governed surfaces (check-governed-merges --pr 34850) 0 of 41 paths governed; 1308 changed lines, under 3000
K (first-parent, PRBASE 7752cac7b from Test Core's affected-set base) 1 (d947a93cf, cloud-connection only, no file shared with this PR, no generated path)
CI on ff8171fa9 every check success or skipped
Reviews L1-b ACCEPT 6950208389, seat L2 PASS 6950079331

State: ready for review and auto-merge enabled. #34818 stays open for slices 2 and 3 (Part of).

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 17, 2026 14:31
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 17, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 17, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgae1jRRi8FRrTxaZL

Re-queueing #34850 once at the same head ff8171fa9. The merge queue removed it at 15:32Z for CI_FAILURE in group gh-readonly-queue/main/pr-34850-fc5913e1.

Fact Reading
Failing job Type Check · workspace (job 134111553467, run 44104071963). Its log stops at 14:39:34Z in the turbo build replay (@objectstack/service-i18n:build, DTS success), with no output after that. The job was cancelled at 15:31:42Z, at its 60-minute limit. The TypeScript Type Check aggregate then reported failure.
First error A cancel at the time limit. There is no tsc error, ✗ or assertion anywhere in the log.
Same commit, same workflow, other groups The six groups built behind it all carried this PR's squash commit ab888eb76. All six concluded Lint & Type Check success: pr-34852 (run 44105683411), pr-34848 (44106160822), pr-34845 (44106909944), pr-34736 (44107164646), pr-34879 (44108568787) and pr-34880 (44109445128).
PR head The same job passed in 23 minutes on ff8171fa9 (job 134087650489).

This reads as a stalled runner, not this change. If the same signature removes it a second time, I will stop re-queueing and hand it back to the seat for diagnosis.

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/xl 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.

2 participants