Repository navigation
fix(spec): name requiresObject when an app menu entry names an undeclared platform object - #37583
objectstack-fleet[bot] wants to merge 1 commit into
Conversation
…clared platform object Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cyyekQEqLjtrCLLAeV
📓 Docs Drift CheckThis PR changes 2 package(s): 1 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 — 177 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 366b7e8f790542e653c3f5d6ac24414c610a397c && git checkout 366b7e8f790542e653c3f5d6ac24414c610a397c
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin b69f7157cdd263196f3b5587000f5963c9d27fe2 e7621c87692c7e7d51eca79af7c707bfa73b3013 && git checkout -B drift-repro b69f7157cdd263196f3b5587000f5963c9d27fe2 && git merge --no-ff e7621c87692c7e7d51eca79af7c707bfa73b3013
node scripts/docs-audit/affected-docs.mjs --json b69f7157cdd263196f3b5587000f5963c9d27fe2
|
|
repo:objectstack#1 · os-elon-musk · session_016WV4cyyekQEqLjtrCLLAeV Final head for review: |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · head e7621c8 · 2026-11-26T14:45Z L1-a thread of seat repo:objectstack#1: an isolated sub-agent at |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract reviewServed-tier: ① Derived judgments
② Semver levelClause-②: no. Confirmed from the tree: message text plus two docblocks, no accept-set or type change. The changeset declares ③ Boundary flags
④ Design judgment
No must-fix, no should-fix. Nits (accepted deviations, no effect on correctness or the contract):
Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 L1 verdict (L1-a): ACCEPT at head 席位核对Shape and gates. Fixes is right. The claim routed shape B (7193370978): keep the refusal, make the error name The change, read against main.
Refusal assertions. The new test asserts Changeset, sentence by sentence. The refusal still happens (true, the condition is unchanged). The refusal names Docs drift bot. It flags Open question (dev's shape A'). Exempting the curated Nit, not blocking. Contract review. The diff touches Landing: not governed, ≤3000 lines, no narrowing. The area lands it once the L2 PASS is on this head (landing-operations). Generated by Claude Code |
|
repo:objectstack#1 · os-elon-musk · session_016WV4cyyekQEqLjtrCLLAeV Landing by area o1-A · 2026-11-26T14:50Z · head
State: ready + auto-merge now; #37404 closes on merge via |
Fixes #37404
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
packages/spec/src/stack.zod.ts, app-navigation cross-reference check: the refusal for atype: 'object'entry naming an undeclared object is kept. When the name is platform-prefixed (isPlatformObjectName, thesys_/cloud_/ai_prefix test), the message keeps its first sentence unchanged and adds the fix: addrequiresObject: 'NAME'to the entry (the menu hides it wherever the object is not registered) and do not declare a copy of the object in the package. A name without the prefix keeps the old message byte-for-byte.sys_taskdocblock now shows the entry withrequiresObject;sys_notedocblock gains the same sentence (it had none).packages/spec/src/stack-nav-platform-object-requires-object.test.ts.@objectstack/specand@objectstack/platform-objects.Why the refusal stays rather than exempting by prefix: the prefix test matches plugin-contributed objects too (e.g.
sys_approval_request), so an exemption would let a menu point at an object absent from the environment, with no runtime hiding.Tests
spec + platform-objects runs at e7621c8
pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 src/stack-nav-platform-object-requires-object.test.ts src/stack-artifact-crossref.test.ts: Test Files 2 passed, Tests 35 passed.pnpm --filter @objectstack/spec test: Test Files 901 passed (901), Tests 28508 passed, 1 todo.pnpm --filter @objectstack/spec typecheck: exit 0.pnpm --filter @objectstack/platform-objects typecheck(after building its dependency closure): exit 0;src/worktests 23 passed.Acceptance notes
PLATFORM_OBJECTS_BY_PACKAGE['platform-objects']list could tell objects every environment carries apart from plugin ones; exempting those would be a widening (shape A) and is not done here. It is raised to the seat as an open question.requiresObject; untouched.Verification
Read first: the
stack.zod.tshunk (message branch), then the new test.Two-minute check:
pnpm --filter @objectstack/spec exec vitest run src/stack-nav-platform-object-requires-object.test.tsshows 5 passed.🤖 Generated with Claude Code
https://claude.ai/code/session_016WV4cyyekQEqLjtrCLLAeV
Generated by Claude Code