Repository navigation
docs(skills): the objectui data-integration guide stops teaching the MSW plugin removed in 12.0 - #27764
Conversation
…xy in the objectui data guide The objectui data-integration guide and its eval taught the MSW plugin, removed in 12.0. The guide now teaches the two supported frontend-first paths (a static scope, or the real server via os dev behind a Vite /api proxy), the eval grades that answer, and the dead console mock-server remnants (VITE_USE_MOCK_SERVER, the vendor-msw chunk row, the mockServiceWorker.js rewrite exclusion) are gone. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cymVzRLDH1j6gwgGAk
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cymVzRLDH1j6gwgGAk
|
domain:skills#2 · os-elon-musk · session_016WV4d1QkPVVzNz3FJqb2iS Contract-review-claim: session_016WV4d1QkPVVzNz3FJqb2iS · head a5cbb8f · 2026-10-29T22:38Z |
|
domain:skills#2 · os-elon-musk · session_016WV4d1QkPVVzNz3FJqb2iS Contract reviewServed-tier: ① Derived judgments
② Semver level
③ Boundary flagsDev report 6510080703:
④ Design judgment
Against the card's eval prompt: an agent loading the bundle answers Findings — none must-fix:
Gates on the head: 46 check-runs success, 8 skipped, Implemented-by: VERDICT: PASS |
… from and which dev server the proxy is for Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cymVzRLDH1j6gwgGAk
|
domain:skills#2 · os-elon-musk · session_016WV4d1QkPVVzNz3FJqb2iS Contract-review-claim: session_016WV4d1QkPVVzNz3FJqb2iS · head 0895780 · 2026-10-29T23:09Z |
|
domain:skills#2 · os-elon-musk · session_016WV4d1QkPVVzNz3FJqb2iS Contract reviewServed-tier: Delta review over record 6510354851 (PASS on ① Derived judgments
② Semver levelUnchanged from 6510354851: the changeset is untouched, its "Now" paragraph describes the section at the level of the two paths and the ③ Boundary flagsNo new dev report on this head; the commit message names the two should-fixes it carries. Each finding of 6510354851, checked against the delta:
④ Design judgment
Gates on the head (read when this record was rendered): 10 check-runs success — among the required set Implemented-by: VERDICT: PASS |
|
domain:skills#2 · os-elon-musk · session_016WV4d1QkPVVzNz3FJqb2iS 维护者速读
席位意见:ACCEPT。契约复核两轮(全量 6510354851 PASS,两条 should-fix 与一处措辞已在 席位核对
|
Requested by Elon · project thread
Fixes #27678
Clause-②: no
Metadata-protocol: none
维护者速读
objectui技能不再教 12.0 已删除的 MSW 插件;数据集成指南的「前端先行开发」一节改教树上真有的两条路(无后端用静态 scope,或本地os dev起真服务 + Vite 代理/api),对应 eval 改判这个答案;顺手删掉 console 里没人读的VITE_USE_MOCK_SERVER等 MSW 残留。skills/objectui/guides/data-integration.md(新「Frontend-first development」一节的每条事实)、skills/objectui/evals/data-integration.json(eval 2)、ui/apps/console/vercel.json(rewrite 正则少了mockServiceWorker.js排除项)。git grep -n 'plugin-msw\|MSWPlugin' -- skills; git grep -n 'VITE_USE_MOCK_SERVER\|vendor-msw' -- ui/apps两条都无输出;node ui/scripts/check-skill-eval-tokens.mjs退出 0。skills/**),席位契约复核通过后请批准;npm 上是否弃用@objectstack/plugin-msw是发版动作,另由你定。What changes
skills/objectui/guides/data-integration.md: the section "MSW mock setup (frontend-first development)" (a browser kernel built on the MSW plugin package, removed in 12.0 by7087cfe6e3) becomes "Frontend-first development". It names the two paths the tree supports today:os devfrom the ObjectStack app, with the Vite dev server proxying/apitohttp://localhost:3000so page and API share one origin (the same shapeui/apps/console/vite.config.tsuses).It also states what
os devdoes with data: it persists to a SQLite file,--freshgives a throwaway database, a dev admin is seeded on an empty database, the retired in-memory driver is refused, and--database :memory:is SQLite's in-memory database. The two MSW pitfall bullets are removed.skills/objectui/evals/data-integration.json, eval 2: the prompt asks for a working local API before the backend is deployed.must_containisos dev,proxy,objectstack.config;must_not_containisenableBrowserandsetupWorker(the MSW plugin option and the MSW worker API).VITE_USE_MOCK_SERVER=falseleavesui/apps/console/.env.development,.env.productionand the VercelbuildCommand. No source reads the key:git grep VITE_USE_MOCK_SERVER -- uioutside these files, the test below and the CHANGELOG finds one comment inui/playwright.import-console.config.ts.mockServiceWorker.js;ui/apps/console/publicholds no such file.vendor-mswrow leaves the chunk table inui/apps/console/docs/deployment.md;vite.config.tsdeclares no such chunk.ui/packages/app-shell/src/observability/committed-telemetry-endpoint.test.ts, measured first as the card asked::118is a vacuum guard that the parser reads real assignments out of.env.production. It usedVITE_USE_MOCK_SERVERonly as a known line, not as live behaviour. It now assertsVITE_SERVER_URLparses to the empty string.:136is a synthetic negative probe that reads no file; its second line becomesVITE_BASE_PATH=/.27678-objectui-skill-msw-removed.md:@objectstack/skillsand@object-ui/consolepatch.Published-skills readings
skills/objectui/guides/data-integration.mdlines / ratchet tokensskills/objectui/evals/data-integration.jsonlines / ratchet tokensskills/objectui/**linesskills/**/SKILL.mdlinesCeilings are left where they are; the shrink shows as headroom.
Tests
pnpm exec vitest run packages/app-shell/src/observability/committed-telemetry-endpoint.test.ts(fromui/): Test Files 1 passed, Tests 5 passed.node ui/scripts/check-skill-eval-tokens.mjs: exit 0, "Every must_contain token is taught by its own skill bundle."node ui/scripts/check-skills-paths.mjs: exit 0 (85/86 stated paths resolve, 1 baselined, unchanged).Acceptance notes
git grep -n 'plugin-msw\|MSWPlugin' -- skills: 0 hits.git grep -n 'VITE_USE_MOCK_SERVER\|vendor-msw' -- ui/apps: 0 hits.ui/apps, out of scope:ui/CHANGELOG.md:392(history, not edited) and a comment inui/playwright.import-console.config.ts:24that sets the variable in a recipe.objectstack devwith an in-memory driver") did not hold onorigin/main: the in-memory engine is no longer a boot store (packages/cli/src/commands/dev.tsheader;dev-default-db.test.tspins the refusal). The guide teaches what the tree does instead.npm view @objectstack/plugin-msw version deprecatedon 2026-10-29:11.0.0, not deprecated. Deprecating it is the maintainer's release action and is not part of this PR.Verification
dispatch-gates: 57 derived families, all exit 0, at a5cbb8f
node scripts/pm/dispatch-gates.mjs --ran: "57 derived famil(ies) accounted for — 57 run, 0 NOT-MEASURED". The first pass recorded exit 1 onpnpm --dir ui exec vitest run scripts/(unbuilt@objectstack/specdist) and on two gates that read the generatedpackages/spec/src/migrations/registry.tsbefore it existed, plus exit 3 on six build-prerequisite gates. Afterturbo run build --filter='@objectstack/client-react...' --filter=@objectstack/lint..., every one of them re-ran at exit 0. The pre-push checkscheck-regen-pendingandcheck-commit-card-trailers --range origin/main..HEADboth exit 0.🤖 Generated with Claude Code
https://claude.ai/code/session_016WV4cymVzRLDH1j6gwgGAk
Generated by Claude Code