Skip to content

docs(skills): objectstack-ui teaches navigation: { openNewTab: true } for a list that opens records in a new tab - #37358

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-36334-ui-skill-open-new-tab
Nov 26, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-36334-ui-skill-open-new-tab

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ
Closes #36334

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:客户项目里的 AI 照着界面技能包配置对象列表时,会写对「在新标签页打开记录」。以前技能只说旧的 navigation.mode: 'new_window' 在列表上不生效,却没说该怎么写;现在明确写 navigation: { openNewTab: true },并说明手机上总是在当前页打开。
  • 为什么做:协议早已支持 openNewTab,new_window 在对象列表上已废弃(D3 条目 navigation-mode-record-open-deprecated),技能文字没跟上,AI 只知道删掉旧写法、不知道新写法。
  • 出错会怎样:只改技能文字,不改任何代码和校验;写错了 AI 会学到错的配置,撤回即恢复原文。
  • 要你做什么:这是受管的技能包改动,两级审核通过后请你批准或合并(审核记录会贴在本 PR 上)。

What changes

  • skills/objectstack-ui/rules/record-page.md, step 5 now reads: "navigation.mode is deprecated there: drawer, page, new_window change nothing, so omit it; for a new tab write navigation: { openNewTab: true }; none still opens nothing (prefer preventNavigation: true); a page block's navigation honours every value; modal/split/popover are refused with their fix. A phone always pages in place."
  • The new wording matches the spec at fbb62e1c, packages/spec/src/ui/view.zod.ts:
    • line 3061: new_window is ignored on an object's list; write openNewTab: true.
    • lines 3111–3112: openNewTab: true opens the page in a new tab.
    • line 3137: rows that open nothing stay that way; a phone opens the page in place.
    • the D3 entry navigation-mode-record-open-deprecated.
  • The bytes are paid for in the same file. Steps 1, 3, 4, 5 and 6 and the intro line are tightened without removing any fact. No ratchet row changes and no eval changes; no case asks about new tabs.
  • .changeset/36334-skills-list-open-new-tab.md: @objectstack/skills patch.

Tests

The change is text only, so there is no ablation.

  • Token ratchet for rules/record-page.md: 990 tokens before and 990 after (3958 → 3959 bytes), against a ceiling of 991.
  • The ratcheted authored total (198146), the bundle total (297002) and all SKILL.md lines (4941) are unchanged.

Verification

Local gates at a4a892ac:

  • dispatch-gates --commands derived 47 commands. 43 exited 0. 4 are not measured because they need a whole-workspace build: check:dts-closure, check:dual-build-cjs-loads, check:lean-entry-closure and check:sourcemap-no-sources-content.
  • These also exit 0: check-skills-token-ratchet (plus its self-test), check:skill-links, check:skill-identifier-liveness, check:skill-compatibility, check:skill-frame-sync, check:skill-served-sections, check:skill-examples (350 examples), check:skill-top-level-keys, check:changeset-fixed and check:doc-authoring.
  • overlap-check: clean.

CI runs on this PR.

Provenance

Opened by seat repo:objectstack#4 on the maintainer's authorization in the seat session (「#36334 开 PR 放行」).

The dev session (session_01QSeKYnhLATxR6d945JshvJ, zone a4-A) had its relay pr_create refused by its permission check, and it did not retry. Its prepared body exists only in that session's container, so the seat wrote this body from the dev's final report and the branch diff.

Branch claude/issue-36334-ui-skill-open-new-tab @ a4a892ac.


🤖 Generated with Claude Code

https://claude.ai/code/session_01QSeKYpEsWWE9Y5YtSsDgqZ

… that opens records in a new tab

Step 5 of rules/record-page.md named new_window as changing nothing on an
object's list and gave no replacement. One clause now names
navigation: { openNewTab: true }; nearby prose in the same file is
tightened so the file stays at 990 tokens under its 991 ceiling.

Claude-Session: https://claude.ai/code/session_01QSeKYnhLATxR6d945JshvJ
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 25, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: a4a892ac6e55d306366c5487efa83d3a8c38574b
Local-runs: none
Scope: skills/objectstack-ui/rules/record-page.md + none
Security-touching: no

Requested by zone a4-A of seat repo:objectstack#4 and rendered in a fresh session that ran no other agent. Inputs: card #36334 (body and its three comments), this PR's file list and its net diff against merge base fbb62e1c, and the head's check-runs. The rules file is byte-identical at the merge base and on main at 80da0864, so the diff against either is the same 11 lines in, 11 out. Read-only: nothing was checked out, built or run; sizes were read with git cat-file -s.

① Derived judgments

  • Accept set and public surface: unchanged. The diff is one skill rules file (prose only, its os:check block untouched) and one changeset. No schema, export, validator or gate moves. Clause-②: no is right.
  • Metadata-protocol: none is right. The new clause teaches a key that is already authorable (ui/NavigationConfig:openNewTab in packages/spec/authorable-surface/ui.json, default false in authorable-defaults/ui.json). Nothing an author can write changes, so no Skills-docs: line is owed.
  • The token ratchet row holds. The row is ['skills/objectstack-ui/rules/record-page.md', 991] and the script counts bytes over four, rounded up. The file is 3958 bytes on main and 3959 at this head; both give 990. The row is untouched, no total moves, and the line count is unchanged.
  • Gate verdicts on this head (check-runs read 2026-11-25T23:02Z), each completed with success:
    • Type Check · source gates: check-skills-token-ratchet with its self-test, check:skill-links, check:skill-served-sections, check:skill-docs, check:skill-refs.
    • Type Check · consumer gates: check:skill-examples.
    • Lint · docs & code guards: check:skill-identifier-liveness.
    • Lint · repo & tooling gates: check:doc-authoring.
    • Check Changeset and Governed Surface Queue Guard.
  • Still in progress at that reading: the Lint & Repo Gates roll-up, Test Core (1/10) and Test Core (2/10). None of them judges a text-only skills hunk. The landing check (every check green on this head) stays the seat's to read.

② Semver level

'@objectstack/skills': patch matches what the diff publishes: skill text and nothing else. It is patch and not skip-changeset because the package ships that text, and kind none takes patch. The changeset body carries both declaration lines and they equal the PR body's. No BREAKING marker and no ADR-0087 disposition are owed.

③ Boundary flags

  • No dev flags to answer. No os-dev-report is on the card or the PR, so there are no dev flags and no open_questions on record. I judged the tree, not the PR body. The body's claims that the tree can answer do hold: 3958 to 3959 bytes, 990 tokens under a ceiling of 991, and the cited spec lines.
  • Author: the PR's user.login is objectstack-fleet[bot], so this is not an off-relay write. The head commit's trailer pair names no model.
  • SQL push-down: not applicable. The diff has no code.
  • Security: no changed hunk teaches permission, sharing, credential, token or authentication behaviour. The clause is about which browser tab a record page opens in. The sharingModel key in the file's example block is outside the hunks.
  • One out-of-diff reading for the seat to weigh. It is not a finding on this head. In ui/packages/app-shell/src/views/objectViewRecordNavigation.ts the phone branch (line 238) answers page before preventNavigation (line 244) and mode: 'none' (line 248) are read. As read, a list declared none therefore still opens the record page on a phone. The migration entry scopes its none criterion "on a desktop"; the mode describe in view.zod.ts states none with no such scope. Step 5 agrees with the code ("A phone always pages"). Whether a read-only list should stay read-only on a phone is a product question. This was read from source and not run.

④ Design judgment

skills/objectstack-ui/rules/record-page.md, step 5, sentence by sentence. Sources at this head: packages/spec/src/ui/view.zod.ts, the ADR-0087 D3 entry navigation-mode-record-open-deprecated, and the first consumer objectViewRecordNavigation.ts.

Step 5 says Where the source says it Holds
"On an object's list the name opens the page, its hover icon the drawer." (unchanged) mode JSDoc, lines 3103 to 3108; the entry's replacement yes
"navigation.mode is deprecated there: drawer, page, new_window change nothing, so omit it" (unchanged) mode JSDoc, lines 3108 to 3110, and its describe: "still parse and change nothing, so omit the key" yes
"for a new tab write navigation: { openNewTab: true }" (new) enum comment, line 3061: "ignored on an object's list (write openNewTab: true)"; JSDoc, lines 3111 to 3112; the entry's replacement and acceptanceCriteria, which spell the same literal yes
"none still opens nothing (prefer preventNavigation: true)" (reworded) mode JSDoc, lines 3110 to 3111; the openNewTab describe, line 3137: "rows that open nothing stay that way" yes
"a page block's navigation honours every value" (unchanged) mode JSDoc, lines 3112 to 3114 yes
"modal/split/popover are refused with their fix" (spacing only) NAVIGATION_MODE_RETIRED, one prescription per value yes
"A phone always pages in place." (two words added) the openNewTab describe, line 3137: "a phone opens the page in place" yes
  • openNewTab belongs on the list's navigation, exactly as written. It is a member of NavigationConfigSchema, the block a list view declares, and the migration entry gives the same literal for a list that declared new_window. The consumer reads it off the list's own block (activeView?.navigation ?? objectDef.navigation, lines 239 to 258) and the name click then opens the full page in a new tab (lines 423 to 431). The literal parses alone, because every other member of the block is defaulted.
  • "none still opens nothing" survives the new clause. The consumer returns none for preventNavigation and for mode: 'none' before it reads openNewTab, so { mode: 'none', openNewTab: true } opens nothing.
  • "in place" is exact. On a phone the consumer returns the phone's page surface and passes no openNewTab, so the tap navigates in the same tab.
  • The card's "Done when" is met. There is one short clause where step 5 names new_window. Each sentence matches the describe and the entry. The bytes are paid in the same file and the ratchet row is untouched. No eval moved: the one case in evals/record-page.json that exercises step 5 still reads true against the new text and asks nothing about new tabs.

The tightened text, each against main:

  • Intro: a dash became a colon. No fact.
  • Step 1: "synthesizes the record page" became "synthesizes it". The antecedent is "the page" in the step's own heading and in "With no page assigned". No fact lost.
  • Step 3: dashes became parentheses, and "There is no tabs slot" became "No tabs slot". The six slot names, "each whole", the three refused keys and isDefault are all present.
  • Step 4: "A record page that looks nothing like the default" became "A page that looks nothing like the default", with the two examples in parentheses. kind: 'full', regions and the Pages link are kept.
  • Step 6: "Never author these: the tabs' order" became "Never author the tabs' order". Same list.

No fact was lost in any of them.

No must-fix, no should-fix.

  • N1 (nit) — step 4 drops "record" from "A record page that looks nothing like the default". The file's title, the step heading and "the default" keep the referent. Accepted as written; no change asked.

Implemented-by: session_01QSeKYnhLATxR6d945JshvJ
Reviewed-by: session_01QSeKYn2x65Lh9qfFnwr42s

VERDICT: PASS


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr

席位核对 — ACCEPT · L1 · head a4a892ac6e55d306366c5487efa83d3a8c38574b · 2026-11-26T00:16Z

Zone a4-A, card #36334. Read from the PR's diff and check-runs, not from the dev report (none was posted; the dev session's relay writes were refused and it did not retry).

  1. Shape. 2 files, +21 / −11: skills/objectstack-ui/rules/record-page.md step 5 now teaches navigation: { openNewTab: true } for a list that wants a new tab and "A phone always pages in place"; the intro and steps 1, 3, 4, 6 are tightened with no fact removed (each diffed against main); a @objectstack/skills patch changeset (Clause-②: no, Metadata-protocol: none).
  2. Against the card. One clause where step 5 names new_window; each sentence matches view.zod.ts (~3061, ~3111–3112, ~3137) and the D3 entry navigation-mode-record-open-deprecated; ratchet row untouched (990 / 991); no eval moved.
  3. L2. Contract review at CONTRACT_REVIEW_TIER on this head: PASS, 7177088353 (one nit, accepted as written). Its out-of-diff reading — on a phone a list declared none still opens the page (objectViewRecordNavigation.ts ~238 before ~244/~248) — is a product question outside this diff; relayed to the seat, not owed here.
  4. Gates. Every check-run on this head completed success or an expected skip; none failed.
  5. Landing. GOVERNED (skills/**), Tier H: handed to the seat for the maintainer's merge; the zone does not land it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Landing · 2026-11-26T00:36Z · head a4a892ac · on the maintainer's word in the seat session: 「#37358 落地放行」.

check-governed-merges --pr 37358 reads this PR as Tier S under the low-risk skills arm (the maintainer's 2026-11-14 ruling on #33501). It qualifies on each count:

  • it modifies skill prose only;
  • it declares Clause-②: no and Metadata-protocol: none;
  • its changeset is clean;
  • it carries no security label;
  • the record on this head reads Security-touching: no.

Zone a4-A's L1 ACCEPT is 7178583082 and the contract review at CONTRACT_REVIEW_TIER is PASS 7177088353. CI is green. The PR is being readied, with auto-merge armed through the queue.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 26, 2026 00:36
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 26, 2026
Merged via the queue into main with commit 15a5be1 Nov 26, 2026
45 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-36334-ui-skill-open-new-tab branch November 26, 2026 00:56
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/s 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.

skills: objectstack-ui never teaches navigation: { openNewTab: true }, the replacement for a list's retired new_window

2 participants