Repository navigation
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
Conversation
…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>
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>
📓 Docs Drift CheckThis PR changes 4 package(s): 3 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
What this run could not see
Coarse fallback — 188 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # 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
|
|
repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me Final green head for L1 and the contract record: Checks at this head: 63 success, 12 skipped, 0 failed. Not governed ( Rows: 130, 164, 233 fixed; row 60's empty-key text and short-key rename guess fixed; row 108 already fixed on main at |
|
repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4 维护者速读
席位核对 — ACCEPT (L1-a) · repo:objectstack#5 · head
|
|
repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ Contract reviewServed-tier: Inputs read: card #33345 (body and every comment through the dev report 7003316873), PR #35397 (body, file list, net diff against ① Derived judgments
② Semver level
Clause-②: no — holds. The changeset and the PR body both carry ③ Boundary flags
④ Design judgment
Reworded sentences outside 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):
Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me Landing · head
Status: |
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 44489993864 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
|
repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me Re-queue · head Queue build 44489993864 failed in one job, Test UI (7/16). The failing test is
Status: |
Requested by Bill · project thread
repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me
Fixes #33345
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
Five rows from the v18.4.0 sweep ledger (comment 6881136418 on #32908). Each was re-measured on
origin/mainatc05a8a01c9; one was already fixed and one sub-item is held for a decision. Nothing new is accepted or refused.ITEM_LOCKEDsentence). The save door's regime-C row (packages/metadata-protocol/src/packaged-base-regime.ts) and plugin-security'sNOT_OVERRIDABLElock 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, drawperm.clone.action, which is "New similar" inenand "新建类似" inzh; 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.packages/spec/src/shared/suggestions.zod.ts,strictUnknownKeyError). Two of its three sub-items are fixed here:"")", and no rename is guessed for it (any declared key of two letters or fewer was within budget);app.ariawas answered "Did you meanaria→areas?". A short key's guess must now be one edit away, counting an adjacent swap as one (lable→label,aeras→areas,labl→labelare still offered). Keys of six characters or more are scored exactly as before.{ path: '', message: 'Invalid input', code: 'invalid_union' }entry on a view or form refusal. It is pinned asissues[0]by 元数据保存的 422 也丢掉 union 分支处方:一个 view 保存失败只回一条path:"" message:"Invalid input",Studio 无字段可高亮 #5364's "strictly additive" rule (protocol.save-union-issues.test.ts), and Studio parses its exact text (translateValidationMessagemaps "invalid input" to its localized "Invalid"). Dropping or rewording it changes a recorded envelope rule, so it goes to a decision. It is split out to its own card, 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, nested under refusal and remedy copy from the v18.4.0 sweep (5 rows) #33345, so this PR closes the rest of the card.os environments frobnicateansweredcommand environments:frobnicate not foundand nothing else;os frobnicatethe same. Acommand_not_foundhook (packages/cli/src/hooks/command-not-found/point-at-help.ts, registered inpackage.jsonoclif.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 theSee more help with --helptail a wrong flag already gets.content/docs/ai/connect-mcp.mdx. The recall/resubmit paragraph said anyone else is refusedFORBIDDEN. Measured inApprovalService.refuseUnreadableRequestand the approvals route's status table: a caller who cannot read the request gets404 REQUEST_NOT_FOUND(as for an id that names no request); one who can read it gets403 FORBIDDEN. The doc now says both.40c73a8f4f("No package holds it, so no dependency reaches it: move the flow into …"), pinned by[#32967] an environment-only holderinpackages/core/src/package-scoped-resolution.test.ts. That sentence is absent at the QA run'see9ad834and present at the ledger's87330e89..changeset/33345-sweep-refusal-copy.md:patchon spec, metadata-protocol, plugin-security and cli.docs/qa/platform-checklist/item quotes a changed sentence:cli.flag-command-error-uxstill 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:packages/spec/src/shared/strict-object.test.ts, new top-level describeshort and empty unknown keys(4 cases).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".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)
rest-meta-packaged-action-permission-refusal.test.ts11 passedThe head then moved by one commit (
111a0f32d8, a module-top lint preload in one edited metadata-protocol test, whichcheck:test-source-aliasasked 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)
git diff HEADempty.findClosestMatches, so theariacase fails (1 failed, 3 passed); restored, blob a4defaac58e7 equals HEAD."Clone", so 3 metadata-protocol pins fail; both restored, blob equals HEAD.Acceptance notes
packages/spec/src/shared/suggestions.zod.tsis apackages/spec/srcnon-test producer, so an L2 contract record is owed before the queue.max(2, len/3)budget is copied indata/object.zod.ts(suggestKey),data/seed.zod.ts,data/field-value.zod.tsanddata/default-value-shape.ts, which this PR does not touch. A long retired key can still be guessed into a declared one: formdefaultSortgets "Did you meandefaultSort→defaults?" (distance 3, budget 3).packages/spec/src/migrations/entries/semantic/18.security-permission-set-overlay-discard-retired.tsstill says "(the Clone action)" in a released migration note; left as released.os frobnicategives "command frobnicate not found / See more help withos --help", exit 2;os environments frobnicatepoints atos environments --help, exit 2;os plugin trust frobnicatepoints atos plugin trust --help;os migrate plan --frobnicateis unchanged.Verification
Gates (local, final head 111a0f3)
dispatch-gates --commands: 133 families derived; all 133 run, each exit 0.--ranreports "133 derived famil(ies) accounted for — 133 run, 0 NOT-MEASURED (a DERIVED zero …)".overlap-check --branch=claude/issue-33345-sweep-refusal-copy: VERDICT clean exit 0 (origin/main, feat(security, create-objectstack): an AI-built app with its own capabilities and no connector plugins installs as an unmanaged copy #35261, chore: version packages #35129, fix(auth)!: a server outside development mode refuses a development seed credential #34717 merge cleanly).check:skill-frame-freshnessexit 0.check:dev-prereqsexit 1 because the workspace is not fully built (35 ui/example packages have no dist); that is a reading of this box, not of the diff.!in the title, no narrowing arm).test:repoand the full farm are CI's.席位核对
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).pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 src/shared/strict-object.test.tsshould show the fourshort and empty unknown keyscases green.Generated by Claude Code