Skip to content

fix: refusal and remedy copy from the v18.4.0 sweep (clone control label, short and empty unknown keys, CLI unknown command, MCP doc) - #35397

Merged
objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/issue-33345-sweep-refusal-copy
Nov 19, 2026
Merged

objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/issue-33345-sweep-refusal-copy

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Bill · project thread

repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me

Fixes #33345

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:管理员改不了已安装包里的权限集时,提示里的按钮名改成界面上真实显示的「新建类似」;保存元数据被拒时,空键名不再显示成一对空引号,四五个字母的错键不再被乱猜成无关的键;命令行输错子命令时会指向对应的帮助;接入 MCP 的文档改正了撤回审批被拒时的返回码。
  • 为什么做:来自上一版全面走查记下的五条提示与文档问题,其中「流程引用环境里的流程」那条此前已修好,本次核实后未改。
  • 出错会怎样:只改提示文字、帮助指引和文档,什么能存、什么被拒一律不变;有问题回退本 PR 即可。
  • 要你做什么:在随后的决策卡上决定,视图保存被拒时附带的那条笼统「输入无效」条目是删掉、改写还是保留。

What changes

Five rows from the v18.4.0 sweep ledger (comment 6881136418 on #32908). Each was re-measured on origin/main at c05a8a01c9; one was already fixed and one sub-item is held for a decision. Nothing new is accepted or refused.

  • Row 130, packaged permission sets (the ITEM_LOCKED sentence). The save door's regime-C row (packages/metadata-protocol/src/packaged-base-regime.ts) and plugin-security's NOT_OVERRIDABLE lock refusals (packaged-permission-set-lock.ts: the diagnostic and both end-user texts, 11 locales) sent the admin to a "Clone" action. Measured in the console source: both entry points, Studio's Access pillar (access-new-similar) and Setup's permission matrix, draw perm.clone.action, which is "New similar" in en and "新建类似" in zh; the designer strings ship only those two, so every other language shows the English label, and a Traditional Chinese session shows the Simplified catalogue. Each text now names the control that way. The two docs pages that quote the sentence (concepts/metadata-lifecycle.mdx, permissions/authorization.mdx) follow it.
  • Row 60, unknown-key refusal (packages/spec/src/shared/suggestions.zod.ts, strictUnknownKeyError). Two of its three sub-items are fixed here:
  • Row 164, CLI unknown command. os environments frobnicate answered command environments:frobnicate not found and nothing else; os frobnicate the same. A command_not_found hook (packages/cli/src/hooks/command-not-found/point-at-help.ts, registered in package.json oclif.hooks) keeps the hard error, exit 2 and no suggester, spells the id as typed, and ends with the help of the deepest topic or command the words reached, matching the See more help with --help tail a wrong flag already gets.
  • Row 233, content/docs/ai/connect-mcp.mdx. The recall/resubmit paragraph said anyone else is refused FORBIDDEN. Measured in ApprovalService.refuseUnreadableRequest and the approvals route's status table: a caller who cannot read the request gets 404 REQUEST_NOT_FOUND (as for an id that names no request); one who can read it gets 403 FORBIDDEN. The doc now says both.
  • Row 108, dropped: already fixed. The environment-only holder has had its own remedy since 40c73a8f4f ("No package holds it, so no dependency reaches it: move the flow into …"), pinned by [#32967] an environment-only holder in packages/core/src/package-scoped-resolution.test.ts. That sentence is absent at the QA run's ee9ad834 and present at the ledger's 87330e89.
  • Changeset .changeset/33345-sweep-refusal-copy.md: patch on spec, metadata-protocol, plugin-security and cli.
  • No docs/qa/platform-checklist/ item quotes a changed sentence: cli.flag-command-error-ux still holds ('command … not found', exit nonzero), and the one item naming "the Clone action" (access-security.packaged-permission-set-lifecycle) is retired.

Tests

Final head 111a0f32d8. One red-then-green pin per code row, at its producer:

  • Row 60: packages/spec/src/shared/strict-object.test.ts, new top-level describe short and empty unknown keys (4 cases).
  • Row 130: packages/plugins/plugin-security/src/packaged-permission-set-lock.test.ts, new top-level describe (every locale of both refusals names the console label, plus the diagnostic); the exact-sentence pins in metadata-protocol and rest now read "New similar".
  • Row 164: packages/cli/src/hooks/command-not-found/point-at-help.test.ts (unit tier, 4 cases).
Package suites (os-verify-lock, VERDICT command-exit 0, head 151b48c)
  • spec test: Test Files 856 passed (856), Tests 27371 passed, 1 todo; typecheck exit 0, check:test-typecheck OK
  • metadata-protocol test: Test Files 358 passed, 9 skipped; Tests 23218 passed, 45 skipped; typecheck exit 0
  • plugin-security test: Test Files 279 passed; Tests 6997 passed, 45 skipped; typecheck exit 0
  • cli unit tier: Test Files 430 passed; Tests 6144 passed; typecheck exit 0. The integration tier is CI's (no spawn entry or integration file touched).
  • rest: rest-meta-packaged-action-permission-refusal.test.ts 11 passed

The head then moved by one commit (111a0f32d8, a module-top lint preload in one edited metadata-protocol test, which check:test-source-alias asked for); that file re-ran green: 54 passed.

Ablations (scripts/ablation-replace.mjs; the tests import the source by relative path, so no dist leg)
  • Row 164: hook returns oclif's old message, so 3 of 4 fail; restored, blob 6143c7f48663 equals HEAD, git diff HEAD empty.
  • Row 60 screen: guess back to plain findClosestMatches, so the aria case fails (1 failed, 3 passed); restored, blob a4defaac58e7 equals HEAD.
  • Row 60 empty key: renderer back to backticks, so the empty-key case fails; restored, blob a4defaac58e7 equals HEAD.
  • Row 130: en user text back to "Clone action", so the en case fails (1 of 31); the regime row back to "Clone", so 3 metadata-protocol pins fail; both restored, blob equals HEAD.

Acceptance notes

  • packages/spec/src/shared/suggestions.zod.ts is a packages/spec/src non-test producer, so an L2 contract record is owed before the queue.
  • Same family, not changed here: the max(2, len/3) budget is copied in data/object.zod.ts (suggestKey), data/seed.zod.ts, data/field-value.zod.ts and data/default-value-shape.ts, which this PR does not touch. A long retired key can still be guessed into a declared one: form defaultSort gets "Did you mean defaultSort → defaults?" (distance 3, budget 3).
  • packages/spec/src/migrations/entries/semantic/18.security-permission-set-overlay-discard-retired.ts still says "(the Clone action)" in a released migration note; left as released.
  • Live CLI output at the final build: os frobnicate gives "command frobnicate not found / See more help with os --help", exit 2; os environments frobnicate points at os environments --help, exit 2; os plugin trust frobnicate points at os plugin trust --help; os migrate plan --frobnicate is unchanged.

Verification

Gates (local, final head 111a0f3)

席位核对

  • Read first: packages/spec/src/shared/suggestions.zod.ts (shortKeyScreenedGuess, renderUnknownKey), packages/cli/src/hooks/command-not-found/point-at-help.ts, packages/plugins/plugin-security/src/packaged-permission-set-lock.ts (locale texts).
  • Two-minute check: pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 src/shared/strict-object.test.ts should show the four short and empty unknown keys cases green.

Generated by Claude Code

…ntrol "New similar", as the console draws it

The ITEM_LOCKED save sentence, the NOT_OVERRIDABLE diagnostic and both
user-facing texts (11 locales) sent the admin to a "Clone" action; Studio's
Access pillar and Setup label that control "New similar" ("新建类似" in a
Chinese session; every other language shows the English label).

Claude-Session: https://claude.ai/code/session_01Utp6CZiaBg6rk7dpy1s9Me
Co-authored-by: Claude <noreply@anthropic.com>
…st answers 404 REQUEST_NOT_FOUND, not FORBIDDEN

Claude-Session: https://claude.ai/code/session_01Utp6CZiaBg6rk7dpy1s9Me
Co-authored-by: Claude <noreply@anthropic.com>
…two-edit rename on a short key

An empty key rendered as empty backticks and could be offered a two-letter
declared key as its rename. Below six characters the rename budget is the
floor of 2, meant for a swap of adjacent letters; it also admitted two
unrelated edits, which answered a removed `aria` with `areas`. A short
key's guess must now be one edit away counting a swap as one.

Claude-Session: https://claude.ai/code/session_01Utp6CZiaBg6rk7dpy1s9Me
Co-authored-by: Claude <noreply@anthropic.com>
…hat lists the real ones

`os environments frobnicate` answered `command environments:frobnicate not
found` and nothing else. A command_not_found hook keeps the hard error and
exit 2, spells the id as typed and ends with the help of the deepest topic
the words reached (`os environments --help`), or `os --help`.

Claude-Session: https://claude.ai/code/session_01Utp6CZiaBg6rk7dpy1s9Me
Co-authored-by: Claude <noreply@anthropic.com>
…root's first load at collection

Claude-Session: https://claude.ai/code/session_01Utp6CZiaBg6rk7dpy1s9Me
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m dependencies Pull requests that update a dependency file 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 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 4 package(s): @objectstack/cli, @objectstack/metadata-protocol, @objectstack/plugin-security, @objectstack/spec, touching 13 documentable anchor(s). ⚠️ 1 changed file(s) yielded no anchor (packages/cli/package.json), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

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

  • content/docs/concepts/metadata-lifecycle.mdx (via /security/permission-sets/:name/clone (route, a path literal in a comment on a changed line))
  • content/docs/permissions/authorization.mdx (via /security/permission-sets/:name/clone (route, a path literal in a comment on a changed line))
  • content/docs/permissions/permission-sets.mdx (via /security/permission-sets/:name/clone (route, a path literal in a comment on a changed line))
What this run could not see
  • 1 changed file(s) yielded no anchor (packages/cli/package.json) — pages documenting those are invisible to this run
  • 4 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 — 188 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 2e9e1ac9dce8823d84e03ad3787f722c15511d20 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 8674f0a89a00421159d0e18cf1ffb069019a9178 — the merge of head 111a0f32d88db674c82430f22b710fa48484affc into base 2e9e1ac9dce8823d84e03ad3787f722c15511d20, 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 8674f0a89a00421159d0e18cf1ffb069019a9178 && git checkout 8674f0a89a00421159d0e18cf1ffb069019a9178
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 2e9e1ac9dce8823d84e03ad3787f722c15511d20 111a0f32d88db674c82430f22b710fa48484affc && git checkout -B drift-repro 2e9e1ac9dce8823d84e03ad3787f722c15511d20 && git merge --no-ff 111a0f32d88db674c82430f22b710fa48484affc

node scripts/docs-audit/affected-docs.mjs --json 2e9e1ac9dce8823d84e03ad3787f722c15511d20

⚠️ 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 2e9e1ac9dce8823d84e03ad3787f722c15511d20 → 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#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me

Final green head for L1 and the contract record: 111a0f32d88db674c82430f22b710fa48484affc · 2026-11-19T08:36Z

Checks at this head: 63 success, 12 skipped, 0 failed. Not governed (check-governed-merges.mjs --pr 35397: 353 lines). Path limb: packages/spec/src/shared/suggestions.zod.ts is non-test, so a CONTRACT_REVIEW_TIER record is owed before the queue (seat 5, after L1-a). Clause-②: no · Metadata-protocol: none. K = 13 (< 15).

Rows: 130, 164, 233 fixed; row 60's empty-key text and short-key rename guess fixed; row 108 already fixed on main at 40c73a8f4f (dropped, named in the body). Row 60's root invalid_union wrapper entry is split to #35400 (nested under #33345; maintainer ruling 7003683081), so this PR says Fixes #33345. os-dev report 7003316873 on #33345; file /mnt/project-files/objectstack-seat5/area-ux/ux-3/report-33345.md.
Sent to the L1 thread; the area lands after its ACCEPT and the contract record.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4

维护者速读

  • 用户能看到什么变化:几条拒绝提示改说人话。软件包自带的权限集不能改时,提示里指向界面上真实的「新建类似」按钮,而不是不存在的「克隆」。拼错的配置项不再被乱猜成不相干的词。命令行打错命令时会告诉你去哪看帮助。
  • 为什么做:测试中发现这些提示要么指向不存在的按钮,要么给出误导的猜测。
  • 出错会怎样:只是提示文字,不改变任何允许或拒绝的结果,撤回即可。
  • 要你做什么:无。

席位核对 — ACCEPT (L1-a) · repo:objectstack#5 · head 111a0f32d8 · 2026-11-19T08:38Z

  • Shape: 15 files, +314/−39. Not governed (check-governed: NOT governed, 353 lines). K = 13 since base c05a8a01, and it merges cleanly into current main. One non-test packages/spec/src/** file (shared/suggestions.zod.ts) changes, so the seat owes a CONTRACT_REVIEW_TIER L2.

  • Fixes vs card (refusal and remedy copy from the v18.4.0 sweep (5 rows) #33345, five rows):

    • 130: ITEM_LOCKED (metadata-protocol PACKAGED_BASE_REGIME.permission.routes.clone) and plugin-security's LOCKED_USER_TEXT / PROVENANCE_UNKNOWN_USER_TEXT now name the control by its console label. I checked that perm.clone.action is 'New similar' / '新建类似' in ui/packages/i18n/src/namespaces/studio/{en,zh}.ts. Two docs rows that quote the sentence follow the same change.
    • 164: a new oclif command_not_found hook. It keeps exit 2 and the hard refusal, guesses nothing, spells the id the way it was typed, and points at the help of the deepest topic the typed words reached. Its registration in package.json is pinned against the built dist path.
    • 233: connect-mcp.mdx now separates 404 REQUEST_NOT_FOUND for a non-reader from 403 FORBIDDEN for a reader.
    • 60: an empty key now reads an empty key ("") and gets no guess. A key of 5 characters or fewer keeps a guess only at OSA distance ≤ 1, so nmae/lable are still answered and aria → areas is gone. Keys of 6 or more characters take the unchanged path.
    • 108: dropped as already fixed at 40c73a8f4f, with the evidence in the body.
    • Row 60's root invalid_union wrapper went to metadata save refusal: a refused view or form save lists a bare "Invalid input" entry at path '' as issues[0], beside the entries that name the real key (split from #33345 row 60; needs a decision) #35400 (p2, nested under refusal and remedy copy from the v18.4.0 sweep (5 rows) #33345) on Bill's option A (7003683081). So Fixes #33345 is right.
  • Changeset (read sentence by sentence): patch on spec, metadata-protocol, plugin-security and cli. Clause-②: no and Metadata-protocol: none are correct, because only words change and no input is newly accepted or refused. Each bullet matches its code: the lable → label case is one adjacent swap, which passes the screen. Nothing is BREAKING.

  • Pins: each row has a red-then-green pin at its producer, added as a top-level describe in the existing harness files (strict-object.test.ts, packaged-permission-set-lock.test.ts). The exact-sentence pins in metadata-protocol and rest now read "New similar". The CLI hook has its own unit test.

  • Gates: CI on 111a0f32 is 63 success and 12 skipped, with 0 failed and 0 pending.

  • Deviations accepted:

    • The row-130 surface grew to plugin-security's matching refusal, in all 11 locales, and to the two docs pages that quote the sentence. That is the same sentence at every door, which is what the regime row's own comment asks for.
    • zh-Hant reads 「新建类似」 in Simplified script, and the other locales quote the English label. That is the label the console actually draws, since the designer strings ship only en and zh, and the code comment says so.
    • The first content push came before the overlap check, which was clean right after. Process only.
  • Out of scope: the copy defects need cards, nested under refusal and remedy copy from the v18.4.0 sweep (5 rows) #33345 per the sub-issue rule. ux-3 files one p3 card for:

    • the max(2, len/3) rename budget copied in four other spec files (object, seed, field-value, default-value-shape), which can give the same short-key misguess;
    • the retired form key defaultSort being answered with 'defaults'.

    These need no card:

    • the released migration note that says 'Clone', because it is history and stays as written;
    • the stale test header and the retired checklist item. They can ride the same card as a nit, or be dropped.
  • Landing clause: not governed, so ux-3 lands it after the seat's L2 record. K < 15, so no main merge is required. A new push needs a fresh L1 only if it changes more than a main merge.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 111a0f32d88db674c82430f22b710fa48484affc
Local-runs: none
Scope: packages/spec/src/shared/suggestions.zod.ts + packages/spec/src/shared/strict-object.test.ts

Inputs read: card #33345 (body and every comment through the dev report 7003316873), PR #35397 (body, file list, net diff against main), the 75 check-runs on this head (63 success, 12 skipped, 0 failed). The rest of the diff (cli hook, metadata-protocol regime row, plugin-security locale texts, docs, changeset) is the lane seat's ACCEPT at TIER_DEFAULT.

① Derived judgments

  • Accept set: unchanged — right. strictUnknownKeyError returns a message string for an unrecognized_keys issue and nothing else. The three edits sit inside that map: renderUnknownKey (how a key is printed), if (key === '') continue (skips the rename channel for the empty key, placed after the guidance and guidanceSets lookups so an exact or set prescription for it still fires), and shortKeyScreenedGuess in place of findClosestMatches(...)[0]. None can turn a refused input into an accepted one or the reverse; the issue's code, path and keys are zod's and are not touched.
  • Public surface: unchanged — right. renderUnknownKey, adjacentSwapDistance and shortKeyScreenedGuess are module-private. The exported levenshteinDistance, findClosestMatches, formatSuggestion, keySetMatches, strictUnknownKeyError and StrictUnknownKeyErrorOptions keep their signatures and, for the first four, their bodies. No published field, option or export is removed.
  • What does move: advisory text on keys of five characters or fewer. A short key whose nearest declared key is two plain edits away (not an adjacent swap) used to get Did you mean, and now gets none; an empty key prints as "an empty key" with the two-quote code span instead of an empty code span. Keys of six characters or more take the old path byte for byte (Math.floor(len / 3) >= 2 is exactly len >= 6, the point where the budget stops being the floor of 2).
  • Consumers keyed on the text or on a suggestion being present: none broken. Read in the head tree: packages/lint/src/validate-flow-trigger-readiness.ts schemaRefusalHead is the one parser of this producer's message. It cuts at the first '. ' and takes the rename only when the next sentence starts with Did you mean ; an absent rename is its normal second branch, and the empty-key wording puts the first '. ' where it was (after the key list). ui/packages/types/src/zod/tombstone.zod.ts, ui/packages/core/src/utils/reference-keys.ts, packages/rest/src/analytics-dataset-body-door.ts and ui/packages/plugin-report compose their own sentences in the same style and do not read this one. No Studio, MCP or CLI source matches on a short-key rename. Test Core, Test UI, Type Check and the lint families are green on this head, and the diff rewrote no existing spec pin, so no existing test depended on a guess that is now withheld.
  • SQL push-down: n/a. No query, id materialisation or join in the diff.

② Semver level

patch on @objectstack/spec (and on metadata-protocol, plugin-security, cli) matches what the diff publishes: reworded refusal text, one withheld advisory guess class, no export or signature change. Check Changeset is green.

Clause-②: no — holds. The changeset and the PR body both carry Clause-②: no and Metadata-protocol: none; the claim comment 7001892858 declares the same. The narrowing is of a suggestion, not of what parses, so the (narrowing) arm does not apply.

③ Boundary flags

④ Design judgment

packages/spec/src/shared/suggestions.zod.ts, against the card's row 60 and its consumer strictObject:

  • adjacentSwapDistance is a correct optimal-string-alignment distance (first row and column initialised to the index, transposition term read from rows[i-2][j-2]). aria → areas scores 2 and is withheld; lable → label, aeras → areas, labl → label score 1 and are kept, as the changeset says.
  • shortKeyScreenedGuess keeps the old ranking (findClosestMatches, all candidates within budget) and takes the first that passes the screen, so a one-edit candidate still outranks a swap, and the case tie-break is kept. It compares on the same fold as the ranking, so Label → label (folded distance 0) is still offered.
  • The jsdoc's three claims hold in the code: "above five characters exactly as before", "at five or fewer the budget is the floor of 2", and "aria → areas is one substitution and one insertion".
  • The empty-key branch is true to its comment: with budget 2, any declared key of one or two letters was within reach of '', and the pin declares id to make that case live.
  • Tried to break it: a declared aliases entry for a short key is still consulted first and is not screened; guidance[''] still answers; the oppositePoleAmbiguity screen still runs on whatever guess survives.

packages/spec/src/shared/strict-object.test.ts (the pin): the four cases assert the message through strictObject, the factory's only in-repo caller, and each one fails on the pre-change code by construction (aria case, empty-key case) or guards the kept behaviour (swap, one-letter slip). Agrees with the contract.

Reworded sentences outside hits, read against their emitters because the seat asked (not graded here): "New similar" / "新建类似" is what perm.clone.action draws in ui/packages/i18n/src/namespaces/studio/{en,zh}.ts, used by both PermissionMatrixEditor.tsx and StudioDesignSurface.tsx; the CLI hook throws a CLIError with exit: 2 and builds the pointer from the deepest prefix findTopic / findCommand resolves. Both are true to the code.

No must-fix, no should-fix.

Nits (no effect on correctness or the contract; left as accepted deviations, since a fix here would move the head):

  • N1 (nit) — The jsdoc on the published strictUnknownKeyError still says its fallback is "matching suggestKey in data/object.zod.ts". After this change the two differ on keys of five characters or fewer: suggestKey and the three sibling copies still offer a two-edit guess. The sentence is now loose, and the same aria-class answer can still come from those four producers. Follow-up card material.
  • N2 (nit) — On a short key the pole screen now sees no guess where it used to see a two-edit one, so a both-ends prescription can no longer fire for it. Reaching that needs a key within two edits of a pole-prefixed key whose remainder is one or two letters (dat against startAt / endAt); a whole-word axis-silent key is at least three edits from either pole (the shortest pole token is three letters) and was never reached. No declared shape was found where this bites.
  • N3 (nit) — shortKeyScreenedGuess takes maxDistance but picks its branch from key.length; the two agree only because the single caller computes max(2, floor(len / 3)). Fine for a private helper with one caller.

Implemented-by: claude/issue-33345-sweep-refusal-copy
Reviewed-by: isolated-l2-35397

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me

Landing · head 111a0f32d8 · after L1-a ACCEPT 7004079215 and CONTRACT_REVIEW_TIER PASS 7004137637 · 2026-11-19T08:41Z

Probe Reading
Checks at head 111a0f32d8 63 success, 12 skipped, 0 failed
check-governed-merges.mjs --pr 35397 NOT governed, 353 lines
K 13 (< 15), no locale pack
Contract record PASS on this head, no must-fix, no should-fix

Status: pr_ready + automerge_enable. On MERGED the area closes out #33345; #35400 (ruled, p2) and #35420 stay open under it.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 19, 2026 08:42
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 44489993864 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Test UI (7/16) — 失败步骤: Run the ui tests (shard 7/16)

    × a record visited while its package was enabled: drawn then; once the package is disabled, not drawn and not asked by name 143ms
    FAIL   dom  packages/app-shell/src/console/home/__tests__/HomePage.recentDisabledPackage-34692.test.tsx > Home leaves out a recent row whose object is not registered, and never asks it by name (object
      ↳ 失败原因: AssertionError: expected [ Array(1) ] to include 'object/pm_project'
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

  • packages/app-shell/src/console/home/__tests__/HomePage.recentDisabledPackage-34692.test.tsx — 24h 窗口内只有本 PR 撞到过,暂不汇总(再有一个不同 PR 撞到就会自动开汇总 issue)。
  • ⚠️ 24h 评论账本没读完(超过 5 页仍未读到窗口尽头),所以上面的「不同 PR 数」是下界,不是全量。

历史信号:

  • 本 PR 过去 24h 无队列失败记录(首次)。
  • 过去 24h 队列共有 3 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me

Re-queue · head 111a0f32d8 unchanged · 2026-11-19T09:18Z

Queue build 44489993864 failed in one job, Test UI (7/16). The failing test is ui/packages/app-shell/src/console/home/__tests__/HomePage.recentDisabledPackage-34692.test.tsx:205, an assertion that a record visited while its package was enabled is drawn on Home. Triage reading:

Status: pr_ready + automerge_enable.

Merged via the queue into main with commit 7a3f86c Nov 19, 2026
76 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-33345-sweep-refusal-copy branch November 19, 2026 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation size/m 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.

refusal and remedy copy from the v18.4.0 sweep (5 rows)

2 participants