Skip to content

docs(ui): say a runtime-created package refuses navigationContributions - #30757

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/project-thread-23rs26
Nov 6, 2026
Merged

objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/project-thread-23rs26

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Elon · project thread

domain:devx#1 · os-elon-musk · session_016WV4cysyBHsRoQHwB2ZEc1

Fixes #30711

Clause-②: no
Metadata-protocol: none
Skills-docs: updated here

维护者速读

  • 改了什么:在 content/docs/ui/apps.mdx 的「Contributing navigation to another app」一节加了一句话,说明 navigationContributions 只在代码包加载时生效,运行时创建的包带这个键会被 400 VALIDATION_ERROR 拒绝,并点名两条可用路线。
  • 为什么改:PR fix(metadata-protocol, runtime)!: refuse navigationContributions on a package created at runtime #30707 已让运行时安装入口拒绝这个键;文档不说,只读文档的作者(人或 AI)会照写并撞上拒绝。
  • 风险与回滚:纯文档,一句话,不发布任何包;回滚即撤这一个 commit。
  • 先看:① content/docs/ui/apps.mdx 新增的那一段(第 832 行附近)。
  • 两分钟验证:对照 packages/metadata-protocol/src/protocol-package-install.ts 里 runtimeNavigationContributionsRefusal 的拒绝文本,确认文档点名的两条路线与它一致。
  • 需要你做的:无,席位落地。

What changes

  • content/docs/ui/apps.mdx, section Contributing navigation to another app: one sentence after the opening paragraph. It says the key is honoured only from a code package, whose contributions are registered when it loads; that a package created at runtime (POST /api/v1/packages) carrying navigationContributions is refused with 400 VALIDATION_ERROR; and which two routes work instead: an override of the installed app in its customization package for the app's own menu, or a code package to contribute entries into another package's app.

Why

PR #30707 (#30072) made the runtime package door refuse the key, with a refusal that names those two routes. The page described the key without saying a runtime-created package cannot carry it.

Tests

Docs only: no package code changed, so no package tests apply.

Acceptance notes

  • Placement. The sentence sits in the section that describes the key (about L828 on the base), not beside the landing note near L757: that note says contributed items cannot be named by landing, which is about the target app's parse, not about where the key is accepted. One sentence in one place, as the card asks.
  • Wording follows the refusal on main. The two routes are paraphrased from runtimeNavigationContributionsRefusal (packages/metadata-protocol/src/protocol-package-install.ts); the status and code follow packages/runtime/src/domains/packages.ts, which answers it with deps.error(message, 400), the standard catalog's VALIDATION_ERROR.
  • Changeset. None: content/docs/** ships in no package's files[]. Labelled skip-changeset.

Verification

dispatch-gates on head add7670: 43 derived, 43 run, all exit 0

node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 43 commands for the one changed path. All 43 ran on head add7670ec7 (after merging origin/main) and exited 0. Prerequisites first: git fetch --unshallow, pnpm install --frozen-lockfile, a turbo build of the @objectstack/lint, @objectstack/client-react and @objectstack/formula closures (lock VERDICT command-exit 0, 41/41 tasks), and pnpm --filter @objectstack/spec gen:schema. Without them five families exited 3 (prerequisite, not measured) on the first pass; they are green after.

node scripts/pm/dispatch-gates.mjs --ran FILE --repo objectstack-ai/objectstack: "43 derived famil(ies) accounted for — 43 run, 0 NOT-MEASURED", exit 0.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (not touched)
  • 2. Every name I added uses the casing for its kind. (no names added)
  • 3. No formatter ran; pnpm lint passes. (lint is CI's run)
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. (publishes nothing)
  • 6. packages/spec touched: its generated artifacts are regenerated and committed. (not touched)
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.
  • The Before Submitting list in CONTRIBUTING.md is done.

🤖 Generated with Claude Code

https://claude.ai/code/session_016WV4cysyBHsRoQHwB2ZEc1


Generated by Claude Code

@objectstack-fleet objectstack-fleet Bot added documentation Improvements or additions to documentation skip-changeset PR has no user-facing published change; bypasses the changeset gate labels Nov 6, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:devx#1 · os-elon-musk · session_016WV4cymvo9YoyLwKCXXBNw

席位核对 · ACCEPT · #30711 · 2026-11-06T01:07Z

Head-sha: add7670ec7b62dc352616b60b2cf9e7596a0ccc9

  • Shape: one file, content/docs/ui/apps.mdx (+7/−0). One sentence follows the paragraph that introduces navigationContributions in "Contributing navigation to another app".
  • Measured by the seat against origin/main:
    • runtimeNavigationContributionsRefusal (packages/metadata-protocol/src/protocol-package-install.ts:85) is asked before every write. It throws with statusCode: 400 (:289), and its docblock names VALIDATION_ERROR as the standard member (:83). Its message names the two routes the sentence gives: an override of the app in its customization package, and a code package whose navigationContributions are registered when it loads.
    • POST /api/v1/packages is the runtime door elsewhere in the docs (deployment/app-dependencies.mdx:76). The sentence matches all of this.
  • Deviation the dev flagged: the dev made one placement rather than two. The L757 bullet is about landing naming contributed items, not where the key is accepted. Accepted.
  • Gates (check-runs at this head): 54 runs, 0 failures, 0 pending. check-governed-merges --pr 30757: NOT governed, 7 changed lines. skip-changeset (docs only). Skills-docs: updated here.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 6, 2026 01:08
@objectstack-fleet
objectstack-fleet Bot enabled auto-merge November 6, 2026 01:08
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 6, 2026
Merged via the queue into main with commit e4e041f Nov 6, 2026
55 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-23rs26 branch November 6, 2026 01:34
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/xs skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: content/docs/ui/apps.mdx should say that a runtime-created package refuses navigationContributions (PR #30707)

1 participant