Skip to content

Migrate documentation site to Fumadocs with monorepo structure and shared content - #11

Merged
hotlong merged 11 commits into
mainfrom
copilot/setup-fumadocs-site
Jan 19, 2026
Merged

hotlong merged 11 commits into
mainfrom
copilot/setup-fumadocs-site

Conversation

Copilot AI commented Jan 18, 2026 •

Copy link
Copy Markdown
Contributor

Replace the custom @objectdocs/cli documentation tooling with Fumadocs, a modern Next.js-based documentation framework, and restructure it into a proper monorepo architecture under apps/docs/ while keeping documentation content at the root level for sharing.

Changes

Monorepo Structure

  • Multi-package Architecture: Moved all Next.js files to apps/docs/ to avoid polluting the root directory
  • Workspace Isolation: Documentation site now has its own package.json with isolated dependencies
  • Clean Separation: Clear boundary between protocol packages (packages/*) and applications (apps/*)
  • Shared Content: Documentation content remains at /content/docs/ (root level) for easy access and sharing across the repository

Core Infrastructure

  • Next.js 16 + App Router: Full static site generation for 136 documentation pages
  • Fumadocs MDX: Auto-compilation from /content/docs/ (root level) with type-safe collection handling
  • Tailwind CSS v4: New CSS architecture with @tailwindcss/postcss

Directory Structure

Repository Root:
├── content/docs/     # Documentation content (MDX files) - SHARED LOCATION
│   ├── concepts/
│   ├── references/
│   └── specifications/
└── apps/docs/
    ├── app/              # Next.js App Router
    ├── source.config.ts  # Fumadocs collection config (references ../../content/docs)
    ├── next.config.mjs   # Next.js configuration
    ├── tailwind.config.js
    ├── postcss.config.mjs
    ├── tsconfig.json
    └── package.json      # Isolated dependencies

Configuration

// apps/docs/source.config.ts - Collection definition
export const docs = defineDocs({
  dir: '../../content/docs',  // References root-level content
}) as any; // Workaround for pnpm zod@4 type portability

// apps/docs/app/source.ts - Loader setup
import { docs } from 'fumadocs-mdx:collections/server';
export const source = loader({
  baseUrl: '/docs',
  source: (docs as any).toFumadocsSource(),
});

UI Components

  • Collapsible sidebar with auto-generated navigation from meta.json files
  • Search (⌘K), theme toggle, GitHub integration
  • MDX components (Callout, Card, Cards) rendered via fumadocs-ui/mdx

Build Output

Route (app)
├ ○ /
└ ● /docs/[[...slug]] (136 pages)
  ├ /docs
  ├ /docs/concepts/*
  ├ /docs/references/*
  └ /docs/specifications/*

Workspace Configuration

  • Updated pnpm-workspace.yaml to include apps/*
  • Root package.json scripts use workspace filters: pnpm --filter @objectstack/docs
  • Root package.json includes shared dependencies (lucide-react) used by MDX files
  • Root tsconfig.json excludes apps directory
  • .gitignore updated for apps structure

Screenshot

Scripts

Scripts remain the same from repository root:

pnpm docs:dev    # Start development server
pnpm docs:build  # Build for production
pnpm docs:start  # Start production server

Benefits

  1. Clean Root Directory: No Next.js files in repository root
  2. Shared Content: Documentation content at /content/docs/ accessible to other tools and workflows
  3. Workspace Isolation: Each app/package manages its own dependencies
  4. Scalability: Easy to add more apps (e.g., apps/playground, apps/studio)
  5. Standard Pattern: Follows Turborepo/Nx monorepo conventions
  6. Maintainability: Clear separation of concerns

All existing MDX content preserved at the root level. The .source/ directory (auto-generated by Fumadocs) is gitignored.

Original prompt

帮我使用fumadocs搭建此文档站点


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@vercel

vercel Bot commented Jan 18, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
spec Error Error Jan 19, 2026 5:28am

Request Review

Co-authored-by: huangyiirene <7665279+huangyiirene@users.noreply.github.com>
…rver

Co-authored-by: huangyiirene <7665279+huangyiirene@users.noreply.github.com>
Copilot AI changed the title [WIP] Add setup for Fumadocs documentation site Migrate documentation site from custom @objectdocs/cli to Fumadocs Jan 18, 2026
Copilot AI requested a review from huangyiirene January 18, 2026 17:46
@hotlong

hotlong commented Jan 19, 2026

Copy link
Copy Markdown
Contributor

@copilot nextjs项目使用多包架构放到apps/docs,不要污染根目录

Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>

Copilot AI commented Jan 19, 2026

Copy link
Copy Markdown
Contributor Author

@copilot nextjs项目使用多包架构放到apps/docs,不要污染根目录

Done! The Next.js documentation site has been moved to apps/docs/ following monorepo best practices.

Changes:

  • ✅ All Next.js files moved to apps/docs/
  • ✅ Documentation content now in apps/docs/content/
  • ✅ Root directory cleaned up
  • ✅ Workspace configuration updated
  • ✅ Scripts still work from root: pnpm docs:dev, pnpm docs:build

See commit 3124fe9 for the complete restructuring.

Documentation Site

Copilot AI changed the title Migrate documentation site from custom @objectdocs/cli to Fumadocs Migrate documentation site to Fumadocs with monorepo structure (apps/docs) Jan 19, 2026
Copilot AI requested a review from hotlong January 19, 2026 01:02
@hotlong

hotlong commented Jan 19, 2026

Copy link
Copy Markdown
Contributor

@copilot 我的文档还是放在很目录,不要换位置 /content/docs

Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>

Copilot AI commented Jan 19, 2026

Copy link
Copy Markdown
Contributor Author

@copilot 我的文档还是放在很目录,不要换位置 /content/docs

Done! Documentation content is now kept at the root directory /content/docs/ as requested.

Changes:

  • ✅ Content moved back to /content/docs/ (root level)
  • ✅ apps/docs/source.config.ts updated to reference ../../content/docs
  • ✅ lucide-react added to root dependencies (required by MDX files)
  • ✅ Build verified: All 136 pages generated successfully

The Next.js app remains in apps/docs/ but references the shared content at the root. This provides the best of both worlds: clean app structure while keeping content accessible at the root level.

See commit c60ebe7 for the changes.

Documentation Site

Copilot AI changed the title Migrate documentation site to Fumadocs with monorepo structure (apps/docs) Migrate documentation site to Fumadocs with monorepo structure and shared content Jan 19, 2026
…mprove documentation formatting, and refine build scripts
scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
…, and give its text back when the create fails (objectstack-ai#33561)

<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XGSudkpvjYSMB3ZosFUW2qM)_

Fixes objectstack-ai#33420

Clause-②: no
Metadata-protocol: none

Seat `domain:ui#2` · os-project-manager · card thread
`session_01FEkQ5oYya4wGgRN7g6MEWJ` · claim 6885536750 (and its two
amendments: the conversation hook, then the dock and Studio hosts)

## 维护者速读

- 改了什么:AI 对话新建会话时,用户发出的第一条消息立刻以用户气泡出现在对话里(下面是助手的「思考中」小点),等 `POST
/conversations`
返回、会话打开后正常发出,且只显示一次;等待期间再发的第二条会并进第一条一起显示。创建会话失败时,气泡撤掉,文字放回输入框,并显示「消息未发送」提示(与现有发送失败的处理一致),不再把消息悄悄藏着等下一次一起发。全页
AI 对话、控制台侧边对话和 Studio 助手三处都生效。
- 为什么改:objectstack-ai#32984 报告新会话第一条消息要等约 5 秒才出现;原因是第一条消息在会话 id
生成前被暂存在页面里、不进对话,创建失败时也没有任何回滚信号。
- 风险与回滚:只改 app-shell(私有包,随 console 发布)的前端显示和会话 hook 的失败上报,不改服务端、不改
spec、不改已有会话的发送路径。回滚即还原本 PR。
-
先看:ui/packages/app-shell/src/console/ai/AiChatPage.tsx(`useDeferredFirstSend`
新增 `onHeldChange` / `createError`,`ChatPane` 的
`shownMessages`)、ui/packages/app-shell/src/hooks/useChatConversation.ts(`createError`
的设置与清除)、ui/packages/app-shell/src/layout/ChatDockConversation.tsx(一行传参)。
- 两分钟验证:pnpm dev,打开 `/ai/build`,在浏览器开发者工具里把 `POST /conversations`
节流到很慢,发一条消息:气泡立刻出现;放开后只出现一条且收到回复。再把该请求设为失败:气泡消失,文字回到输入框,出现未发送提示。
- 需要你做的:无,席位落地。

## What changes

On a new conversation the first send is what creates the conversation
(`useChatConversation().ensureConversation`, objectstack#32031), and
`ChatPane` is keyed on the conversation id, so `useDeferredFirstSend`
holds the message in the host-owned stash until the id lands and the
pane remounts. Measured on `origin/main` f068cde with the rendered pins
below: while the create is held open the thread draws nothing, and when
the create fails the composer stays empty, nothing is shown, and the
text sits in the stash to be sent with whatever the user sends next.

- **The held message is drawn.** `useDeferredFirstSend` gains
`onHeldChange`: it reports the user's held message (never a stash
targeted at another agent surface, i.e. the handoff seed) when it is
stashed or joined, `null` when it is replayed or rolled back, and, on
mount, the stash a replaced pane left behind, from a layout effect so
the id-keyed remount never paints an empty thread. Only a committed pane
is told (see Acceptance notes for why). `ChatPane` keeps it in state and
draws `shownMessages`: the runtime messages plus the user's bubble and
an empty streaming assistant turn, which `ChatbotEnhanced` draws as its
existing thinking dots. No new visual language and no new string. When
the replay sends, the stash and the drawn bubble clear in the same task,
and `useObjectChat`'s own optimistic bubble takes over, so it is drawn
once.
- **A second message typed during the wait** joins the held one as since
objectstack-ai#33333, and the drawn bubble shows the joined text, first part first.
- **The create failure has a signal.** `useChatConversation` returns
`createError`: set when a create fails, tagged the way `useObjectChat`
tags a send that never left the client (`notSent: true`, plus `status`
when the server answered), cleared when the next create starts, when the
surface settles empty, and whenever a conversation is held. This covers
both the create a send starts and a request recorded during a
still-running resolve that `settlePending` → `createFor` makes later,
which used to fail with nobody told. `ensureConversation`'s contract is
unchanged (it still resolves `undefined` on failure).
- **The rollback is the existing one.** `ChatPane` hands `createError`
to `ChatbotEnhanced` as its `error` (ahead of the chat's own), so its
not-sent restore puts the typed text back in the box and
`SendErrorNotice` shows the generic "Couldn't send your message" line,
both unchanged. A new `createError` also clears the user's held message
from the stash, so a retry sends it once.
- **Hosts.** The `/ai` page, the console dock (`ChatDockConversation`)
and the Studio copilot (`StudioAiCopilot`) each pass
`conversationCreateError={createError}`; the drawing needs no host
change.
- **Changeset** `.changeset/33420-ai-chat-first-message-drawn.md`:
`@object-ui/app-shell` and `@object-ui/console` patch (app-shell is
private; console's `dist` ships it).

## Tests

- New `AiChatPage.firstMessageDrawnAtOnce-33420.test.tsx`, through the
REAL `AiChatPage` / `ChatDockConversation`, `ChatPane`,
`useChatConversation`, `useObjectChat` transport and `ChatbotEnhanced`,
driven through the composer (type, submit the form), with `POST
/conversations` held open until the test answers it:
- on the full-page chat and on the console dock: create held → the
bubble is in the thread before it answers; answered → the chat request
carries the message and it is drawn exactly once after the remount;
- on both hosts: create fails (503) → the bubble is gone, the text is
back in the composer, the send-error notice shows, nothing was sent;
sending again retries the create, sends once and the notice goes;
- a second message typed during the wait is drawn too, after the first,
and both go out as the joined first turn;
- a send recorded while the resolve of a cached (gone) conversation is
still running rolls back the same way when the create it then makes
fails;
- CONTROL: a send in an existing conversation (`/ai/build/conv-7`)
creates nothing and draws and sends as before.
- `useChatConversation.test.tsx`: the failed-create test now also
asserts `createError` is `{ notSent: true, status: 500 }` and cleared
after the retry; new: a create recorded during the resolve that then
fails (network) is reported.
- Red first, on `origin/main` f068cde (the pin file alone, before any
source change): 5/5 failed (the drawn pins `expected +0 to be 1`; the
CONTROL failed on a harness timing, fixed by letting the deep-linked
conversation open before typing, see Acceptance notes).
- Ablations, one-off through `scripts/ablation-replace.mjs` (app-shell
tests read `src`, no rebuild), each restored with the blob equal to HEAD
and `git diff HEAD` empty:
- the drawing removed (`messages={shownMessages}` →
`messages={runtimeMessages}`): 6 failed / 1 passed (only the CONTROL
stays green);
- the failure signal removed (the hook returns `createError:
undefined`): 3 failed / 4 passed (the three failure pins, at "bubble
gone").

## Acceptance notes

- **A send that reaches an uncommitted pane.** The first cut reported
the held message from the send itself, and
`ChatDock.requestContext-30043.test.tsx` ("on a record page…", which
sends through the first `ChatbotEnhanced` props it sees) went red: React
warned "Can't perform a React state update on a component that hasn't
mounted yet" and the stash was lost. Bisected to the state update in the
send (removing it alone turns the file green). The report now goes only
to a committed pane (`committedRef`), and the mount report covers the
pane once it commits; the file is 7/7 green.
- **Two sends, then a failed create (measured, a narrow-path change).**
The existing restore puts back the text the composer itself last
submitted (`ChatbotEnhanced`'s own last-submitted text). A one-off probe
through the same rendered harness (two sends during a held create, the
create answers 503, then resend what the box holds) read `box = "second
part"` and the retried chat request `["second part"]`: the first message
is dropped with the stash. Before this change both stayed hidden in the
stash and went out with whatever the user sent next. Giving the joined
text back needs `ChatbotEnhanced` (`@object-ui/plugin-chatbot`) to take
the text to restore from the host, outside this card's surface; reported
for the seat to file.
- **A handoff seed is not drawn** and is kept in the stash on a failed
create, as before: the user did not type it here, and there is nothing
of theirs to restore.
- **The latency of `POST /conversations` is unchanged** (the card's ⛔).
- Observed while building the CONTROL, not chased: on a deep link to an
existing conversation (`/ai/build/conv-7`), a message submitted before
the conversation's GET answered was not sent within 4 s in this harness
(no chat POST, composer cleared, not queued). Mechanism not read; the
CONTROL types once the conversation is open.

## Verification

<details><summary>Local gates, type-check, lint and suites (head
3f97718)</summary>

- `node scripts/pm/dispatch-gates.mjs --commands --repo
objectstack-ai/objectstack` derives 37 families for this diff. All 37
exit 0 on 3f97718; `--ran` reconciliation: 37 derived, 37 run, 0
NOT-MEASURED, 0 UNRUN. Two read on their own reruns: `pnpm
check:type-check-debt` (the first run answered exit 3 while a locked
suite held the closure build; rerun alone: 0 entries above their
measurement, exit 0) and `pnpm --dir ui exec vitest run scripts/` (the
first run was SIGKILLed by the box's memory limit while a suite ran
beside it; rerun alone under the lock with `--maxWorkers=2`: 171 files
passed, 2 skipped, 5062 tests passed, exit 0).
- `pnpm --filter @object-ui/app-shell run type-check`: exit 0. ESLint
(`--no-inline-config`) on the six changed source and test files: exit 0.
`pnpm check:new-line-citations` (ui/AGENTS.md objectstack-ai#11): 0 new citations,
exit 0.
- Suites under the lock, `pnpm exec vitest run --maxWorkers=2` from
`ui/` over
`packages/app-shell/src/hooks/__tests__/useChatConversation.test.tsx`,
`packages/app-shell/src/console/ai/`, `packages/app-shell/src/layout/`,
`packages/app-shell/src/views/studio-design/`: 527 files, 3854 tests
passed (head 3f97718). On the first cut (1650db1) the same run had 1
failure, `ChatDock.requestContext-30043.test.tsx` "on a record page…",
green on base f068cde (7/7) and fixed by baaaeda..3f97718 (see
Acceptance notes).
- The full app-shell suite and the rest of the farm are CI's.

</details>

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01FEkQ5oYya4wGgRN7g6MEWJ

---
_Generated by [Claude
Code](https://claude.ai/code/session_01FEkQ5oYya4wGgRN7g6MEWJ)_

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: objectstack-fleet[bot] <332303061+objectstack-fleet[bot]@users.noreply.github.com>
scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
…hile it waited (objectstack-ai#33673)

<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XQHTAftkGRizntoyLHB9wzr)_

Fixes objectstack-ai#33562

Refs objectstack-ai#33567

Clause-②: yes (widening)
Metadata-protocol: none

Seat `domain:ui#2` · os-project-manager · card thread
`session_01FEkQ5mV4rtksbPPvwm9w8L` · claim 6889053115

## 维护者速读

- 改了什么:AI 对话新建会话时,用户在会话创建(`POST
/conversations`)等待期间连发两条消息,若创建失败,输入框现在拿回两条(先第一条、后第二条,与合并发送时的顺序一致),再发一次即把合并后的文字发出且只发一次;之前只拿回第二条,第一条丢失。为此
`ChatbotEnhanced`(`@object-ui/plugin-chatbot`)新增一个可选属性
`unsentText`,由宿主告诉它"未发出的是哪段文字";不传时行为不变。另一张卡
objectstack-ai#33567(打开会话链接后、会话还没加载完就发消息会丢)实测不复现:在页面里发出的消息会被暂存并在会话打开后发出一次;当初测试里看到的"丢失"是测试在一个已被替换掉的旧输入框里打字。本
PR 只为它加一条钉子测试。
- 为什么改:objectstack-ai#33562 由 objectstack-ai#33561 的开发者实测:恢复逻辑只认输入框自己最后提交的文字,而宿主已把两条合并成一条暂存。
- 风险与回滚:只改前端(plugin-chatbot 一个可选属性 + app-shell 一行传参),不改服务端、spec、会话创建延迟或
objectstack-ai#33561 的首条消息即时显示。回滚即还原本 PR。
- 先看:ui/packages/app-shell/src/console/ai/AiChatPage.tsx(`ChatPane` 给
`ChatbotEnhanced` 的
`unsentText`)、ui/packages/plugin-chatbot/src/ChatbotEnhanced.tsx(未发送恢复的
effect 读
`unsentText`)、ui/packages/app-shell/src/console/ai/__tests__/AiChatPage.firstMessageDrawnAtOnce-33420.test.tsx(新增两组钉子)。
- 两分钟验证:pnpm dev,打开 `/ai/build`,在开发者工具里把 `POST /conversations`
设为失败并节流,连发「第一条」「第二条」:创建失败后输入框是「第一条」空行「第二条」,并有未发送提示;放开后再按发送,只发出一条合并消息。
- 需要你做的:无,席位落地(本 PR 是 Clause-② 放宽,席位先补契约复审记录)。

## What changes

**objectstack-ai#33562.** On a new conversation the first send creates the
conversation, and `useDeferredFirstSend` holds the message until `POST
/conversations` answers; a second send during that wait joins the held
one (`first\n\nsecond`, since objectstack-ai#32984). When the create failed (objectstack-ai#33420's
rollback), `ChatbotEnhanced`'s not-sent restore put back the text the
composer itself last submitted, so the box got only the second part, and
the held message (the only copy of the first part) was dropped so a
retry would not send it twice. Measured on `origin/main` d95ddeb
through the rendered page: box `"second part"` (see Tests, red first).

- `ChatbotEnhanced` gains one optional prop, `unsentText?: string`: the
text a not-sent `error` gives back to the composer when the host, not
the composer, holds what was not sent. The restore reads `unsentText ??
lastSubmittedRef.current`, once per not-sent error and only into an
empty box, as before. One rule differs: on its own the composer restores
only text the user typed (a chip or card send clears `lastSubmittedRef`,
objectui#7253), while a host-named `unsentText` is restored however it
was sent, a held suggestion chip included (see Acceptance notes). A host
that passes nothing keeps today's restore. This is the `Clause-②: yes
(widening)` on `@object-ui/plugin-chatbot`.
- `ChatPane` passes `unsentText={conversationCreateError ?
heldFirstMessage?.content : undefined}`. `heldFirstMessage` is the
joined held message objectstack-ai#33420 already keeps in state for drawing; in the
render the create error arrives in it is still set
(`useDeferredFirstSend` drops it in a passive effect of the parent,
which runs after the composer's restore effect), so the composer gets
the whole text. A handoff seed is never reported as held, so it still
restores nothing of its own. All three hosts (the `/ai` page, the
console dock, the Studio copilot) render `ChatPane`, so none needs a
change.
- Changeset `.changeset/33562-ai-chat-failed-create-joined-restore.md`:
`@object-ui/plugin-chatbot`, `@object-ui/app-shell`,
`@object-ui/console` patch (a widening ships `patch`, AGENTS.md
Post-Task Checklist step 3; app-shell is private and console's `dist`
ships it).

**objectstack-ai#33567 (measured first, does not reproduce).** On a deep link to an
existing conversation (`/ai/build/conv-7`) with its `GET
/conversations/conv-7` held open, a message submitted through the
composer is held by `useDeferredFirstSend` (the pane is `…:pending`, so
`apiMode && !conversationId`), drawn at once, and `ensureConversation`
records the request without creating anything (`pendingKeyRef` is unset
while the resolve runs); when the GET answers, the resolve drops that
request (`finally`: a run that found a thread), the pane remounts on
`conv-7` and the replay sends the message once. The objectstack-ai#33561 observation
came from the harness: `findByRole('textbox')` resolved on the
`…:pending` pane's textarea, and by the time the test typed and
submitted, the GET (answered at once there) had remounted the pane, so
the test typed into a detached textarea (`isConnected === false` before
the change event) whose form React no longer listens to. No line drops a
send. This PR adds the pin only.

## Tests

- `AiChatPage.firstMessageDrawnAtOnce-33420.test.tsx` (the objectstack-ai#33420
harness: the REAL `AiChatPage` / `ChatDockConversation`, `ChatPane`,
`useChatConversation`, `useObjectChat` transport and `ChatbotEnhanced`,
driven through the composer):
- objectstack-ai#33562, on the full-page chat and on the console dock: two sends
during one held create, the create answers 503 → the box holds `first
part\n\nsecond part` (first part first), no bubble is left, the
send-error notice shows, nothing was sent; submitting what the box holds
retries the create and the chat request carries the joined text exactly
once, and the notice goes. CONTROL: the existing single-send rollback
(`a failed create takes the bubble away and puts the text back in the
composer`, both hosts) stays green.
- objectstack-ai#33567: GET of `conv-7` held, a send → drawn once, not sent, no
create; the GET answers → sent once into `conv-7`, no create, drawn
once, box empty. CONTROL: the existing `CONTROL: a send in an existing
conversation draws and sends as before` (a send after the GET answers).
- `ChatbotEnhanced.sendError.test.tsx`: a host-named `unsentText` is
what a not-sent error restores (the composer last submitted only `second
part`). The existing restore tests (429, generic 5xx) are the CONTROL
with no `unsentText`.
- `ChatbotEnhanced.sendError.test.tsx` (patch round 1, 07caf19): a
suggestion chip sent and then refused comes back when the host names it
as `unsentText`; CONTROL in the same test: with no `unsentText` a chip
restores nothing (objectui#7253 unchanged).
- Red first, sources restored to base d95ddeb with the head tests: 3
failed / 15 passed, each `expected 'second part' to be 'first
part\n\nsecond part'` (the unit pin and both host pins); the objectstack-ai#33567 pin
is green on base, as the reading above says it should be.
- Ablations through `scripts/ablation-replace.mjs` on head d32d4df (ui
vitest aliases `@object-ui/plugin-chatbot` to `src`, so no rebuild),
each restored with the blob equal to HEAD and `git diff HEAD` empty:
- `ChatPane` passes `unsentText={undefined}`: 2 failed / 16 passed (both
host pins; the unit pin and the single-send CONTROL stay green);
- the composer ignores `unsentText` (`lastSubmittedRef.current ||
unsentText`): 3 failed / 15 passed (the unit pin and both host pins);
- a send in a pane with no id is not held (the stash condition `apiMode
&& !conversationId` ANDed with an always-false term): 9 failed / 9
passed, the objectstack-ai#33567 pin among the red; the existing-conversation CONTROL
stays green.

## Acceptance notes

- **A typed but unsent draft is lost on the pane's id remount (measured,
not changed here).** `ChatPane` is keyed on `${chatApi}:${conversationId
?? 'pending'}`, and the composer's text lives in the pane. A rendered
probe on `origin/main` d95ddeb: on `/ai/build/conv-7` with the GET
held, text typed (not sent) into the composer is gone when the GET
answers (new box `""`); on `/ai/build`, after a first send, a second
message typed but not sent is gone when the create answers (new box
`""`, only the first part sent). A submitted message is never lost on
either path. Reported for the seat to file; it needs the draft to
outlive the remount, outside this card's ruling.
- **The latency of `POST /conversations` and objectstack-ai#33561's first-message
drawing are unchanged** (the order's ⛔).
- `unsentText` is read only on a not-sent `error`; a streamed-response
error and a clean submit are unchanged.
- **A held suggestion chip now comes back on a failed create (accepted
by the seat, patch round 1).** An empty-state chip clicked as the first
send of a new conversation is held like a typed first message. If that
create fails, `ChatPane` names the held text as `unsentText`, so the
chip's text comes back into the composer; before this PR nothing came
back, because a chip send clears `lastSubmittedRef`. It returns the
message that was not sent, not a stale delivered prompt, which is the
harm objectui#7253 guards against. The restore comment and the prop doc
say so, and a unit pin holds it.
- **A held message on a deep link whose GET fails hangs (measured on
head d32d4df, seat to file, not changed here).** On `/ai/build/conv-7`,
a message sent while `GET /conversations/conv-7` is held, then the GET
answering 503 or failing as a network error: after 3 s the bubble and
thinking dots are still drawn, nothing is sent, no create is made, no
notice shows and the box is empty; a second send joins the held one and
hangs the same way (still nothing sent, no create, no notice).
Mechanism: the resolve's catch in `useChatConversation.ts` (L1221
onward) clears the id without settling the surface (`pendingKeyRef`
stays unset, so no create is ever allowed) and its `finally` (L1231)
drops the recorded request, and no error reaches the host. This PR's
diff does not touch that path.

## Verification

<details><summary>Patch round 1: local gates, type-check, lint and
suites (head 07caf19)</summary>

- 07caf19 changes only `ChatbotEnhanced.tsx` comments (the restore
effect and the `unsentText` doc) and adds one test to
`ChatbotEnhanced.sendError.test.tsx`; no runtime line moved.
- `dispatch-gates --commands` derives the same 37 families at 07caf19;
all 37 exit 0 after the `@object-ui/app-shell^...` closure build;
`--ran`: 37 derived, 37 run, 0 NOT-MEASURED, 0 UNRUN.
- `@object-ui/app-shell` and `@object-ui/plugin-chatbot` `type-check`:
exit 0. ESLint (`--no-inline-config`) on the four changed source and
test files: exit 0. `check:new-line-citations` (from `ui/`): exit 0.
- Suites under the lock, from `ui/`:
`AiChatPage.firstMessageDrawnAtOnce-33420.test.tsx` and all of
`packages/plugin-chatbot/`: 100 files, 968 tests passed (VERDICT
command-exit 0). Narrowed from the first round's 627-file run because no
runtime line changed; CI runs the full suites.

</details>

<details><summary>Local gates, type-check, lint and suites (head
d32d4df, first round)</summary>

- `node scripts/pm/dispatch-gates.mjs --commands --repo
objectstack-ai/objectstack` derives 37 families for this diff (tree
d32d4df). All 37 exit 0 on d32d4df, after the
`@object-ui/app-shell^...` closure build (lock VERDICT command-exit 0).
`--ran` reconciliation: 37 derived, 37 run, 0 NOT-MEASURED, 0 UNRUN.
`pnpm --dir ui exec vitest run scripts/` ran alone under the lock with
`--maxWorkers=2`.
- `pnpm --filter @object-ui/app-shell run type-check`: exit 0. `pnpm
--filter @object-ui/plugin-chatbot run type-check`: exit 0. ESLint
(`--no-inline-config`) on the four changed source and test files: exit
0. `pnpm check:new-line-citations` (from `ui/`, ui/AGENTS.md objectstack-ai#11): 0 new
citations, exit 0.
- Suites under the lock, `pnpm exec vitest run --maxWorkers=2` from
`ui/` over
`packages/app-shell/src/hooks/__tests__/useChatConversation.test.tsx`,
`packages/app-shell/src/console/ai/`, `packages/app-shell/src/layout/`,
`packages/app-shell/src/views/studio-design/` and
`packages/plugin-chatbot/`: 627 files, 4821 tests passed (VERDICT
command-exit 0, head d32d4df).
- `origin/main` moved 36 commits since base d95ddeb while the gates
ran; none touches `ui/packages/app-shell/src/console/ai/`,
`ui/packages/plugin-chatbot/` or `useChatConversation.ts`.
- The full app-shell suite and the rest of the farm are CI's.

</details>

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01FEkQ5mV4rtksbPPvwm9w8L

---
_Generated by [Claude
Code](https://claude.ai/code/session_01FEkQ5mV4rtksbPPvwm9w8L)_

<!-- signed: domain:ui#2 · os-project-manager ·
session_01FEkQ5mV4rtksbPPvwm9w8L -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: objectstack-fleet[bot] <332303061+objectstack-fleet[bot]@users.noreply.github.com>
scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
…summary column's footer total is formatted as its cells (objectstack-ai#33728)

<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XPEYywMnLBNXfP2Yxf1uAi2)_

domain:ui#2 · os-project-manager · session_01FEkQ5mDVzZmSX2UmJXU7sH

Fixes objectstack-ai#33557
Fixes objectstack-ai#33542

Clause-②: yes (widening)
Metadata-protocol: none

## 维护者速读

- 改了什么:① 表格整行保存遇到 409
冲突、且这一行改了多个字段时,冲突对话框按字段逐行列出(列标题、你的修改、当前值),不再把两个整对象打成原始
JSON;只改一个字段的冲突外观不变。②
列表底部合计行里,汇总字段(`Field.summary`)的合计按它在单元格里的画法格式化:声明了币种(`currencyConfig`)就按货币,否则按声明的
`scale` 位小数;都没声明的保持原样。HotCRM 发票列表的「Paid
230,000」因此读作「230,000.00」,与该列单元格一致。
- 为什么改:① 多字段冲突时对话框只给整行草稿对象,用户看到的是 `{"estimate_hours":61,...}`;objectstack-ai#33547
已给对话框加了逐字段列表,表格这条路径还没填。② 合计行的格式化按列类型分支,`summary` 类型落到兜底分支,从不读 `scale`;实测
showcase 服务端返回的汇总字段带 `scale: 2`,缺口在 ui。
- 风险与回滚:只动 `@object-ui/plugin-grid` 内部和 `@object-ui/fields` 新增一个导出
`summaryDeclaresCurrency`(单元格本就用它判断汇总字段是否为货币,现在合计行复用同一个判断,不另写格式化器)。货币与否按汇总字段自己的
`currencyConfig`,不看被汇总的源字段类型,这是 spec 的规定,席位已认可。回滚即 revert 本 PR。
- 先看:`ui/packages/plugin-grid/src/useColumnSummary.ts` 的
`summaryValueType` 及 `formatSummaryLabel`
里改为调用它的那一行;`ui/packages/plugin-grid/src/ObjectGrid.tsx` 的
`buildRowConflict` 新增的 `fields`。
- 两分钟验证:`pnpm --dir ui exec vitest run
packages/plugin-grid/src/__tests__/footerSummaryFieldScale-33542.test.tsx
packages/plugin-grid/src/__tests__/inlineEditConflictFields-33557.test.tsx`,预期
7 个用例全绿。
- 需要你做的:无,席位落地。

## What changes

**objectstack-ai#33557, a multi-field grid row conflict lists each field.**
`buildRowConflict` in `ObjectGrid.tsx` now fills the conflict's `fields`
list (objectstack-ai#33547's `ConcurrentUpdateFieldConflict`: field, label, your edit,
current value) when a row save changed more than one field, labelled by
the column header (`columnHeaderOf`, the label the one-field conflict
already uses). The dialog then draws one row per field instead of the
two whole-map previews. A one-field conflict is built exactly as before.

**objectstack-ai#33542, a summary column's footer total is formatted as its cell.**
The footer formatter (`formatSummaryLabel` in `useColumnSummary.ts`)
chooses its arm by the column type, and a `summary` column fell to the
plain default, which never reads `scale`. A new `summaryValueType`
routes a summary into the arm the list cell draws the same field with
(`FormulaCellRenderer`): `currency` when the summary declares its
currency (`summaryDeclaresCurrency`, the cell's own predicate, now
exported from `@object-ui/fields`), else `number` when
`resolveFieldScale` answers a width, else the plain default as today. No
second formatter: the existing currency arm (`formatCurrency`) and
number arm (`resolveFieldScale`) do the formatting.

**Measured first, as the triage asked.** On a live showcase
(`origin/main` d95ddeb, `objectstack dev`), `GET
/api/v1/meta/object/showcase_expense_report` serves the summary fields
with their scale, e.g. `total_amount`:
`{"type":"summary","scale":2,"summaryOperations":{"object":"showcase_expense_line","field":"amount","function":"sum"}}`,
no `currencyConfig`. The source `showcase_expense_line.amount` is served
as `type: currency` on its own object. So the scale reaches the console
and the gap was the footer.

## Tests

-
`ui/packages/plugin-grid/src/__tests__/inlineEditConflictFields-33557.test.tsx`,
new. The real `ObjectGrid`, `data-table` and `ConcurrentUpdateDialog`;
writes go through the real `@object-ui/data-objectstack` adapter and
`@objectstack/client`, with only `fetch` stubbed by a server answering a
stale `If-Match` with the 409 `CONCURRENT_UPDATE` envelope. Cells are
edited by click, typing and Enter, then the row's Save is clicked.
- Two changed fields + a 409: the dialog lists two rows,
`estimate_hours` under "Estimate" (61 / 77) and `owner_note` under
"Owner note" (shipped / blocked), and its text holds no `{` or `}`.
- CONTROL: one changed field shows no list, names "Estimate" and both
values.
-
`ui/packages/plugin-grid/src/__tests__/footerSummaryFieldScale-33542.test.tsx`,
new. The real `ObjectGrid` footer, its field catalogue read from the
data source's object schema, under a real `I18nProvider`.
- en: a summary with `scale: 2` totals to `Sum: 230,000.00`; zh-CN:
`合计:230,000.00`.
- en and zh-CN: a summary declaring a `fixed` CNY currency totals
exactly as a plain currency column with the same config does (money, not
a bare number).
- CONTROL: a summary with no scale and no currency keeps the plain total
(`Sum: 7`).

Ablations at head `eed5643b` (`scripts/ablation-replace.mjs`; the tests
import plugin-grid and `@object-ui/fields` from `src/` through the ui
vitest alias, so no dist is in the path):

<details><summary>objectstack-ai#33557: buildRowConflict without the fields list → the
multi-field case red, the control green; restored</summary>

```text
anchor "      fields: keys.map((k) => ({" → "      _ablated: keys.map((k) => ({"
ablation-replace: ok mutation landed: anchor 1 -> 0, blob 7c4d76f -> 3be11d0556d5
× two changed fields + a 409: two rows, each under its column header with both values, no raw JSON
Tests  1 failed | 1 passed (2)
ablation-replace: ok restored: blob == HEAD (7c4d76f) and `git diff HEAD` is empty
```

</details>

<details><summary>objectstack-ai#33542: the summary routing switched off → the four
scale and currency cases red, the control green; restored</summary>

```text
anchor "column?.type === 'summary' ? summaryValueType(column) : column?.type"
     → "column?.type === 'summary' && String('ABL').length < 0 ? summaryValueType(column) : column?.type"
ablation-replace: ok mutation landed: anchor 1 -> 0, blob 7803efa -> 9ba5b6deda4a
× en: a summary with scale 2 totals to two decimals
× zh-CN: a summary with scale 2 totals to two decimals, under the zh prefix
× en: a summary declaring a fixed currency totals as a plain currency column does
× zh-CN: a summary declaring a fixed currency totals as a plain currency column does
Tests  4 failed | 1 passed (5)
ablation-replace: ok restored: blob == HEAD (7803efa) and `git diff HEAD` is empty
```

</details>

## Acceptance notes

- **Money follows the summary's own `currencyConfig`, not its source
field's type** (seat accepted this reading). The card asks for the
currency format "when its source field is currency". The spec's
`currencyConfig` describe says "Absent: dynamic mode, and no currency on
a summary", and the list cell (`FormulaCellRenderer`) draws a summary as
money only when `summaryDeclaresCurrency` holds. The footer follows the
same rule, so footer and cell agree. HotCRM's All Invoices `paid_amount`
(`Field.summary`, `scale: 2`, no `currencyConfig`, summing currency
`crm_payment.amount`) therefore totals as `230,000.00`, matching its
cells; a HotCRM author who wants it drawn as money declares
`currencyConfig: { currencyMode: 'fixed', ... }` on the summary. The
HotCRM result is read from a fixture of the same shape in the pin above,
not from a live HotCRM run.
- A `formula` column's footer total also falls to the plain default arm
(the cell draws it by `returnType`). Not measured on a real producer
here; noted only.

## Verification

Local, at head `eed5643b` (rebased on `origin/main` 5604aeb), each exit
code captured before any pipe:

- `pnpm --dir ui exec vitest run packages/plugin-grid/ --maxWorkers=2`
under the verify lock: Test Files 283 passed (283), Tests 2443 passed
(2443), the two new files included.
- `pnpm --filter @object-ui/fields run type-check` and `pnpm --filter
@object-ui/plugin-grid run type-check` (each `tsc --noEmit && tsc -p
tsconfig.test.json`, so the new tests are type-checked): exit 0, after
building the `@object-ui/plugin-grid^...` closure.
- `pnpm check:new-line-citations` (ui, run by hand per `ui/AGENTS.md`
objectstack-ai#11): 0 new citations.
- Derived gate families (`node scripts/pm/dispatch-gates.mjs --commands
--repo objectstack-ai/objectstack`): 39 derived, 39 run, all exit 0;
`--ran` reconciles: "39 derived famil(ies) accounted for — 39 run, 0
NOT-MEASURED".

<details><summary>the 39 derived families, each COMMAND :: exit
N</summary>

```text
node scripts/check-adr-0087-registration.mjs --base origin/main :: exit 0
node scripts/check-adr-0087-registration.mjs --self-test :: exit 0
node scripts/check-changeset-no-major.mjs --base origin/main :: exit 0
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/check-empty-changeset.mjs --base origin/main :: exit 0
node scripts/check-empty-changeset.mjs --self-test :: exit 0
node scripts/check-sdui-manifest.mjs :: exit 0
node scripts/check-sdui-manifest.mjs --self-test :: exit 0
node scripts/ci/snapshot-next.mjs --self-test :: exit 0
node scripts/pm/check-governed-queue-guard.mjs --self-test :: exit 0
node scripts/pm/release-rehearsal-clone.mjs --self-test :: exit 0
node scripts/release-pending-publish.mjs --self-test :: exit 0
pnpm --dir ui exec vitest run scripts/ :: exit 0
pnpm --filter @objectstack/spec run check:duration-unit-keys :: exit 0
pnpm --filter @objectstack/spec run check:error-code-provenance :: exit 0
pnpm check:changeset-gate-self-tests :: exit 0
pnpm check:closed-ceremony-text :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:dispatcher-error-vocabulary :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:engine-double-contract :: exit 0
pnpm check:error-status-conformance :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:published-files :: exit 0
pnpm check:query-options-erasure :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:registry-log-declared :: exit 0
pnpm check:rest-log-spy-declared :: exit 0
pnpm check:skill-identifier-liveness :: exit 0
pnpm check:test-source-alias :: exit 0
pnpm check:tier-file-adoption :: exit 0
pnpm check:type-check-coverage :: exit 0
pnpm check:type-check-debt :: exit 0
pnpm check:undeclared-dep-imports :: exit 0
pnpm check:watch-hint-literal :: exit 0
pnpm check:where-matcher :: exit 0
```

</details>

The repo-wide scans, the `test:repo` project and every family CI runs
beyond the derived list are CI's (Test UI, Type Check UI and the lint
farm).

---
_Generated by [Claude
Code](https://claude.ai/code/session_01FEkQ5mDVzZmSX2UmJXU7sH)_

---------

Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…bjectstack-ai#37841)

<!-- claude-projects-attribution: {"github_login":"os-sales"} -->
_Requested by **Sales** · [project
thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuNTptyd1j97p7dHXZLEeH2g)_

Fixes objectstack-ai#37796

Clause-②: no
Metadata-protocol: none

## 维护者速读

- 用户能看到什么变化:照我们技能包写应用的 AI 助手,以后在代理的模型配置里只写模型名,不再写“提供方”这一项;想用哪家提供方,到部署的
AI 设置里打开。
- 为什么做:“提供方”这一项今天已经退役,写了会被平台拒收,而对外发布的技能页还在教它;这是那次退役欠下的技能页跟进。
- 出错会怎样:只改教学文字和一道评测题,运行时不变;最坏是 AI 助手照旧文字给出过时写法,把文字改回即可撤回。
- 要你做什么:这是对外发布的技能包,需要你批准后才能合并。

## What changes

- **`skills/objectstack-ai/SKILL.md`, Model Configuration.** The
`provider` row leaves the agent model table. The paragraph above the
table now says the `model` block names a model and never a provider: the
deployment's AI settings choose the provider and match the model name
among the providers turned on, and a written `provider` is a parse error
whose fix is to delete the key (retired in protocol 19). The `model`,
`temperature` and `maxTokens` / `topP` rows are untouched.
- **The schema citation in the same paragraph** moves from
`packages/spec/src/ai/agent.zod.ts:37-45` to `:87-95`. PR objectstack-ai#37783 added
50 lines above the key list, so the old range pointed into a comment
block. `:87` is the `provider` tombstone and `:95` is `topP`.
- **`skills/objectstack-ai/evals/skills-tools-knowledge.json`, case 2.**
The prompt is unchanged: a copilot that should use Anthropic at
temperature 0.3 with a 2000-token cap. The expected answer now writes no
provider key, puts sampling under `model`, names the model in the
free-string `model` or leaves it to the host's default, and sends the
choice of Anthropic to the deployment's AI settings. `must_contain` goes
from `provider`, `anthropic`, `temperature`, `maxTokens` to
`temperature`, `maxTokens`, `deployment`. `must_not_contain` goes from
empty to the written line `provider: 'anthropic',`.
- **`.changeset/37796-skills-agent-model-provider-retired.md`**: one
`@objectstack/skills` patch.
- **`.changeset/37711-skills-agent-model-optional.md`**: a DELIBERATE
CORRECTION, declared below.

## Why

PR objectstack-ai#37783 (merge `f07d63a5`) retired an agent's `model.provider`. The
published skill still listed the key with its enum, and eval case 2
graded an answer as correct only when it wrote `provider`. An AI that
follows the skill would write a key the platform now refuses.

The Model Registry's own provider list (`ModelProviderSchema`) is a live
key and this PR does not describe it. Its only mention in the bundle was
inside the removed row.

## DELIBERATE CORRECTION

`Check Changeset` is red on purpose: this PR edits a pending release
note it did not add, `.changeset/37711-skills-agent-model-optional.md`
(from PR objectstack-ai#37765). That note ships in the same release as this change,
and two of its sentences would be false on release day.

Title, before:

> docs(skills): an agent's model name and provider are optional

Title, after:

> docs(skills): an agent's model name is optional

Body, before:

> `skills/objectstack-ai/SKILL.md` (Model Configuration) now teaches
that `model.model` is optional, and that an agent without one runs on
the host's default model for the environment, and that `model.provider`
is optional with no default (the deployment's choice) instead of
defaulting to `openai`. The inline enum list is unchanged, and the
schema citation now points at `packages/spec/src/ai/agent.zod.ts:37-45`.
The `objectstack-ai` eval case on sampling settings accepts an omitted
`model` and states the provider has no default. Published prose only: it
teaches the optional `model` / `provider` already on main since objectstack-ai#37697.

Body, after:

> `skills/objectstack-ai/SKILL.md` (Model Configuration) now teaches
that `model.model` is optional, and that an agent without one runs on
the host's default model for the environment. It no longer says
`model.provider` defaults to `openai`; the key itself leaves the page in
the same release (see the changeset on the skill no longer teaching
`model.provider`). The `objectstack-ai` eval case on sampling settings
accepts an omitted `model`. Published prose only: it teaches the
optional `model` already on main since objectstack-ai#37697.

The note's last sentence (the token budget) is unchanged. The precedent
is PR objectstack-ai#37783 itself, which corrected
`.changeset/37686-agent-model-name-optional.md` the same way.

## Tests

### Skill eval run (recorded)

`pnpm --filter @objectstack/scenarios skill-evals --skills
objectstack-ai --repeats 3 --concurrency 4`, on head `fb8b3f20`. 12
cases, 2 arms, 3 repeats: 72 of 72 turns ran in 8 min, none out of the
denominator. Subscription login, no API key, CLI 2.1.332, the login's
default model and effort.

| case | with-skill | no-skill |
|:--|--:|--:|
| **case 2 (this PR)** | **3/3** | **0/3** |
| bundle, all 12 cases | 30/36 (83%) | 1/36 (3%) |

Case 2, read answer by answer: all three with-skill answers put
`temperature` and `maxTokens` under `model`, write no provider key, and
send Anthropic to the deployment's AI settings. All three no-skill
answers write `provider: 'anthropic',` inside the `model` block, which
is the refused spelling.

<details>
<summary>Per-case table, round 2 (head fb8b3f2)</summary>

| case | with-skill | no-skill | with-skill missed | with-skill carried
forbidden |
|:--|--:|--:|:--|:--|
| objectstack-ai#1 | 3/3 | 1/3 |  |  |
| objectstack-ai#2 | 3/3 | 0/3 |  |  |
| objectstack-ai#3 | 3/3 | 0/3 |  |  |
| objectstack-ai#4 | 3/3 | 0/3 |  |  |
| objectstack-ai#5 | 2/3 | 0/3 | `aiExposed` |  |
| objectstack-ai#6 | 1/3 | 0/3 | `signed-in session` `refused` |  |
| objectstack-ai#7 | 0/3 | 0/3 | `do not retry` |  |
| objectstack-ai#8 | 3/3 | 0/3 |  |  |
| objectstack-ai#9 | 3/3 | 0/3 |  |  |
| objectstack-ai#10 | 3/3 | 0/3 |  |  |
| objectstack-ai#11 | 3/3 | 0/3 |  |  |
| objectstack-ai#12 | 3/3 | 0/3 |  |  |

</details>

<details>
<summary>Round 1 (head 789e0c7) and why the forbidden token
changed</summary>

The first commit graded case 2 with `must_not_contain: ["provider:"]`.
Round 1 scored it 1/3 with-skill. The two failing answers were correct:
each wrote no provider key and named the retired spelling only to warn
against it ("writing `provider: 'anthropic'` now fails to parse"). A
bare `provider:` graded that warning as a failure. The second commit
narrows the token to the object-literal line `provider: 'anthropic',`
(with its trailing comma), which a warning in prose does not carry and
every no-skill answer in round 2 does. The three round 1 with-skill
answers pass under the final tokens when read by hand.

Round 1's no-skill arm is not a clean baseline for case 2. The turns
inherited this container's project-memory variables, and all three
no-skill answers quoted the team's notes on the retirement. Round 2 was
started with `CLAUDE_COWORK_MEMORY_PATH_OVERRIDE` and
`CLAUDE_MEMORY_STORES` unset, and no case 2 answer mentions memory.

</details>

Cases 5, 6 and 7 are not touched by this PR. Their with-skill misses are
literal-phrase misses in both rounds and are listed under Acceptance
notes.

### Local gates, on head `fb8b3f20`

`node scripts/pm/dispatch-gates.mjs --commands` derived 49 families for
this diff. `--ran` reconciliation: 49 derived, 48 run, 1 NOT-MEASURED, 0
unrun.

- 47 exit 0, among them `check-skills-token-ratchet` (and its
self-test), `check:skill-identifier-liveness`, `check:skill-links`,
`check:skill-compatibility`, `check:skill-frame-sync`,
`check:pm-skill-id-lint`, `check:doc-authoring`, `check:nul-bytes`,
`check:published-files` and `@objectstack/spec` `check:skill-docs`.
- `node scripts/check-empty-changeset.mjs --base origin/main` exit 1:
the DELIBERATE CORRECTION above. It names
`.changeset/37711-skills-agent-model-optional.md` and nothing else.
- `pnpm check:dual-build-cjs-loads` exit 3, NOT MEASURED: it needs a
full `pnpm build`, and this container built only the scenario runner's
closure. CI runs it.
- Outside the derived set, also exit 0: `@objectstack/spec`
`check:skill-refs` and `check:skill-served-sections`.

### Size readings (`skills/**`)

| reading | before | after |
|:--|--:|--:|
| `skills/objectstack-ai/SKILL.md`, lines | 485 | 487 |
| `skills/objectstack-ai/SKILL.md`, tokens | 6801 | 6801 (ceiling 6801,
no row moved) |
| all `skills/*/SKILL.md`, lines | 4960 | 4962 |
| `evals/skills-tools-knowledge.json`, tokens (measured, not ratcheted)
| 3359 | 3411 |
| bundle total, tokens | 301302 | 301354 |

The new sentences in `SKILL.md` are paid for by the deleted row. The
bundle total grows by the eval fixture alone.

## Acceptance notes

- The branch is the harness-assigned `claude/project-thread-2rm2nh`, not
`claude/issue-37796-…`.
- The skill's `description` still lists "configuring an LLM provider"
among its triggers. Left as is: a user who asks that is now told where
the provider is chosen. Changing it would move when the skill loads,
which this card does not ask for.
- `SKILL.md:457` cites `packages/spec/src/ai/agent.zod.ts:234, :251` for
the `agent.tools` / `agent.knowledge` tombstones. Those lines did not
hold the tombstones before PR objectstack-ai#37783 either, so this PR leaves the
citation alone. Noted, not filed.
- Eval cases 6 and 7 miss literal phrases (`signed-in session`,
`refused`, `do not retry`) on the with-skill arm in both rounds, case 7
in all six turns. That reads as a grading-token question on those cases,
not as something this diff moved. Noted for the seat.
- The eval runner passes its whole environment to each turn, so a round
started inside a project container carries that project's memory into
both arms. Noted for the seat with the round 1 records as evidence.

## Verification

Read first, by risk:

1. `skills/objectstack-ai/SKILL.md`, the hunk under `## Model
Configuration`: three new sentences that ship to every customer install.
2. `skills/objectstack-ai/evals/skills-tools-knowledge.json`, case 2:
the token lists.
3. `.changeset/37711-skills-agent-model-optional.md`: the corrected
note.

Two-minute check: `sed -n '84,96p' packages/spec/src/ai/agent.zod.ts`
shows `provider: retiredKey(...)` at `:87` and `topP` at `:95`, the
range the skill now cites, and `node
scripts/check-skills-token-ratchet.mjs` prints
`skills/objectstack-ai/SKILL.md is 6801 tokens (ceiling 6801; headroom
0)`.

## Human Minimum

- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
(No schema change.)
- [x] 2. Every name I added uses the casing for its kind. (No name
added.)
- [ ] 3. No formatter ran. `pnpm lint` is read from CI on this
prose-only diff.
- [x] 4. One issue, one branch off an up-to-date `main`, one pull
request.
- [x] 5. A change that publishes carries a changeset, and both
declaration lines are filled in here and in the changeset.
- [x] 6. `packages/spec` is not touched.
- [x] 7. No hand edits to `content/docs/references/`,
`packages/*/CHANGELOG.md` or `content/docs/releases/`.
- [x] 8. Title, body and comments are in English.
- [ ] The *Before Submitting* list in CONTRIBUTING.md: lint and the test
jobs are read from CI; the rest is done.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01L6bhgUjtV7ahUH66wxpMk7)_

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01L6bhgUjtV7ahUH66wxpMk7

---------

Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…iles become routers (objectstack-ai#38347)

<!-- claude-projects-attribution: {"github_login":"os-sales"} -->
_Requested by **Sales** · [project
thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuUejT99q3PMj1DD6eNBk5Kd)_

Part of objectstack-ai#34770

Clause-②: no
Metadata-protocol: none

Supersedes draft PR objectstack-ai#36158: the same change, resumed from
`claude/issue-34770-skill-router-budget@937e2f1`
on a new branch after seat 4's lane went vacant, with `main` merged in
and the three eval cases of ruling 7176941587 Q1 B added. objectstack-ai#36158 can be
closed with a pointer here; nothing on its branch is missing from this
one.

`Part of`, not `Fixes`: rulings 7128031203 and 7168461386 keep the first
line at `Part of objectstack-ai#34770` until the catalog-size line of the card's
Done-when is met, and this PR does not meet it (the catalog descriptions
are not touched here).

## 维护者速读

- 用户能看到什么变化:用户无感。发给 AI 的两份技能说明(数据建模、自动化)的入口文件从约 27 KB、28 KB 缩到 9 KB、10.7
KB:入口只留开工前四项检查、会悄悄出错的坑、和「写什么去读哪个文件」的路由表,其余原文搬进同包的参考文件,教的内容不变。
- 为什么做:入口文件每次都整份装进 AI 的上下文,越长越贵、越容易漏读;缩成路由后,AI 只在需要时才读细节。
- 出错会怎样:只动教 AI 的文字和三道评测题的判分词,没有产品行为变化。风险是 AI 少读一段后答错;为此前后各跑了一轮评测,逐题对照(见
Tests)。可整笔撤回。
- 要你做的:座位复核后请审批人批准(`skills/**` 属 Tier H)。本 PR 合并后,云端仓库要按 #36934
把十一处托管章节的指向跟着改。

## Rulings this executes

- **7128031203** (①A ②A ④A): land as is, the hosted repoint is cloud's
(#36934); a before and an after eval round, parity = the after round's
failing set is the before round's or a subset, a flipped case is re-run
once and the second reading counts; a ceiling row raised because text
MOVED is accepted at the measured bytes with zero headroom when the sum
of ceilings does not rise.
- **7168461386** (A): six flow-shape facts go back into the automation
entry, and that one row rises by exactly the bytes restored.
- **7176941587** (Q1 B, Q2 A, Q3 A): three eval cases are relaxed first,
then both rounds are run; the 187 bytes of entry wording stay;
`triggers#6` is the eval seat's and is not touched here.

## What changes

**Two entry files become routers.** `skills/objectstack-data/SKILL.md`
26,860 → 8,983 bytes (472 → 167 lines),
`skills/objectstack-automation/SKILL.md` 28,206 → 10,703 bytes (480 →
215 lines). Each keeps four first checks, the traps that parse and then
fail at run time, and a table that says which file to open for what is
being written. No rule's teaching changes; the text moved, and the
changeset lists section by section where it went and which anchors no
longer exist in the entry files.

**Eight files receive the moved text**:
`objectstack-data/references/examples-objects.md`,
`rules/field-types.md`, `rules/relationships.md`, `rules/security.md`,
`rules/validation.md`;
`objectstack-automation/references/examples-flows.md`,
`references/integration-recipes.md`, and a re-pointed link in
`references/state-machines-and-approvals.md`.

**One correction** (unchanged from objectstack-ai#36158): the multi-value lookup note
showed a `{record.tags.0}` token "in flow values", which a flow value
slot refuses; it now shows the CEL spelling `record.tags[0]`.

**New in this round, over `937e2f14`:**

1. **`main` merged** (through `600197a6ae`; a merge commit, not a
rebase). Two things `main` changed in the entry files while objectstack-ai#36158 was
open were mapped onto the relocated text instead of being lost with the
old sections:
- objectstack-ai#37551's option-label wording. The automation entry's item 4 of §
Valid-but-silently-wrong keeps the rule and both outcomes (refused at
publish where the options are inline, else no row matches or the run
fails); `references/examples-flows.md` carries `main`'s sentence
verbatim.
- objectstack-ai#37551's `actionLayout` sentence of § Object Extension Model, now in
`references/examples-objects.md`, verbatim.
- A scan of every line `main` removed from the two entry files found no
stale copy left in a receiving file.
2. **Three eval cases accept the spellings the bundles teach** (ruling
7176941587 Q1 B):
- `objectstack-automation/evals/flows-triggers-approvals.json` case 1:
`must_not_contain` `values:` → `values: {` (the key form a node carries;
a prose heading also spells the bare word).
- `objectstack-data/evals/hooks-security-seeds-datasources.json` case 7:
`hooks: {` leaves `must_contain` for one any-of group `hooks: {` /
`"hooks": {` / `.refusals.CREDIT_LIMIT` (the nested literal, its JSON
spelling, or the dotted key `references/data-hooks.md` teaches).
- `objectstack-data/evals/objects-fields-relationships.json` case 10:
`type: 'boolean'` leaves `must_contain` for one any-of group `type:
'boolean'` / `Field.boolean(`.
3. **Ratchet rows re-measured on the merged tree**, since objectstack-ai#37747 made a
row equal its measurement exactly (see Verification).
4. **The changeset** follows the merged tree's sizes and names the three
eval cases.
5. **Three nits of contract review 7240993637** (head `edcd7df4ad`, one
commit over the reviewed `3b62b5e9b0`):
- `skills/objectstack-project/SKILL.md` line 187 pointed at
objectstack-data, "Schema evolution", a heading the router moved. It now
names `rules/field-types.md` § Changing a field that has data. That file
sat at its ceiling, so the longer pointer is paid in the same file by
five function-word cuts that lose no fact; its row stays 2990.
- `scripts/check-skills-token-ratchet.mjs` loses one formula comment
line the merge left in the `rules/security.md` history block.
- The changeset says what the `Skill Boundaries` table listed (the
neighbouring skills) and names the re-pointed objectstack-project line.

## Acceptance notes

Decided by the thread (small, no shipped behaviour):

- `"hooks": {` is a third member of case 7's any-of group. The ruling
names the dotted key; the JSON spelling of the same nested literal is
the form a `.json` translation file carries, and refusing it would fail
a correct answer on quote marks.
- `references/state-machines-and-approvals.md` measured 2 tokens over
`main`'s row after the merge (the re-pointed link is 9 bytes longer). It
is paid inside the file ("In a packaged flow, see below" → "A packaged
flow: below") instead of raising a row no ruling covers.
- The before round ran on `main` `600197a6ae` plus only the three
eval-case edits (skill text byte-identical to `main`), so both rounds
grade with the same token lists. Without that the three relaxed cases
would differ between the rounds for a reason that is not the router.

Not done, and why:

- **objectstack-ai#36718's flow-shape harness is NOT re-run** (a merge condition of
ruling 7128031203). It was scratch in the vacated container and is not
in the repository. It was run to 0 on `937e2f14` (report 7170977110);
this round adds no flow example over that head, only the two sentences
above, both `main`'s own words. NOT MEASURED on this head.
- The catalog-size line of Done-when: outside this PR, hence `Part of`.
- `triggers#6` (ruling Q3 A): the eval seat's.

## Tests

Skill evals, the command line of objectstack-ai#37235 unchanged for both rounds, run
in the thread's cloud container (subscription login, no API key):

```
pnpm --filter @objectstack/scenarios skill-evals --skills objectstack-data,objectstack-automation --repeats 1 --model <as objectstack-ai#37235> --effort medium --concurrency 4
```

| round | tree | turns | with-skill | objectstack-automation |
objectstack-data | no-skill | trigger cases |
|:--|:--|--:|--:|--:|--:|--:|--:|
| before | `main` `600197a6ae` + the three eval-case edits
(`304a4c5375`, local only) | 206/206 | 75/96 | 24/29 | 51/67 | 2/96 |
14/14 |
| after, first reading | head `3b62b5e9b0` | 206/206 | 77/96 | 23/29 |
54/67 | 2/96 | 13/14 |
| after, with the second readings | head `3b62b5e9b0` | +7 | **80/96** |
24/29 | 56/67 | | 14/14 |

**Parity under ruling 7128031203 ②A holds: the after round's failing set
is a strict subset of the before round's.**

- **Failed in both rounds (16):** automation `flows-triggers-approvals`
objectstack-ai#5, objectstack-ai#11, objectstack-ai#14, objectstack-ai#16, `integrations-declared` objectstack-ai#1; data
`hooks-security-seeds-datasources` objectstack-ai#3, objectstack-ai#6, objectstack-ai#8, objectstack-ai#16, objectstack-ai#19, objectstack-ai#34, objectstack-ai#38; data
`objects-fields-relationships` objectstack-ai#2, objectstack-ai#8, objectstack-ai#22, objectstack-ai#24.
- **Failed before, pass after (5):** data
`hooks-security-seeds-datasources` objectstack-ai#5, objectstack-ai#14, objectstack-ai#15, objectstack-ai#24;
`objects-fields-relationships` objectstack-ai#10.
- **Passed before, failed on the after round's first reading (4), each
re-run once as the rule says, and each passed its second reading:**
automation `flows-triggers-approvals` objectstack-ai#7 (the first answer carried the
forbidden `current_user.positions`), data
`hooks-security-seeds-datasources` objectstack-ai#25 (missed `default datasource`),
`objects-fields-relationships` objectstack-ai#11 (missed `type: 'select'`), and
trigger case `objectstack-data/triggers#6` (the bundle was read when it
should have been left alone; the case of ruling Q3 A, which this PR does
not change). Re-run with the same flags plus `--case` for those four
keys: 7 of 7 turns, all four pass.
- The three relaxed cases: `flows-triggers-approvals` objectstack-ai#1 and
`hooks-security-seeds-datasources` objectstack-ai#7 pass in both rounds;
`objects-fields-relationships` objectstack-ai#10 failed before on `label: '是否完成'`, not
on the relaxed token, and passes after.

One repetition per case is the round the card and objectstack-ai#37235 fix; at that
depth a single case moves between readings for no reason of the text
(four did here, in the unfavourable direction, and reverted). The five
that moved the favourable way were not re-read: the rule re-reads a flip
that would break parity, and a gain is not claimed from one reading.
Read the result as "not lower", not as "five cases better".

Both rounds were read on `3b62b5e9b0`. The commit after it
(`edcd7df4ad`) changes no file of the two evaluated bundles (one line of
objectstack-project, a script comment, the changeset), so the rounds
were not run again.

Records (round.json, every turn's record, both summaries):
`skill-evals-before-304a4c53.tgz`, `skill-evals-after-3b62b5e9.tgz`,
`skill-evals-after-reread-3b62b5e9.tgz` in the project's shared files,
folder `34770/`.

No unit test changes: the diff is skill text, three eval fixtures,
ratchet rows and a changeset. The one test that names the ratchet
script, `packages/spec/scripts/platform-catalog.test.ts`, ran apart from
the gate list (see Verification).

## Verification

Eleven skill files, measured on the head `edcd7df4ad` against `main`
(`ceil((utf8 bytes − the SKILL.md version stamp line) / 4)`, the
ratchet's own arithmetic):

| file | lines | bytes | ratchet row |
|:--|--:|--:|--:|
| `objectstack-data/SKILL.md` | 472 → 167 | 26,860 → 8,983 | 6709 → 2239
|
| `objectstack-data/references/examples-objects.md` | 192 → 305 | 6,892
→ 14,441 | 1723 → 3611 |
| `objectstack-data/rules/field-types.md` | 273 → 318 | 14,160 → 16,799
| 3540 → 4200 |
| `objectstack-data/rules/relationships.md` | 384 → 393 | 16,714 →
17,274 | 4179 → 4319 |
| `objectstack-data/rules/security.md` | 349 → 388 | 17,335 → 19,290 |
4334 → 4823 |
| `objectstack-data/rules/validation.md` | 329 → 392 | 11,031 → 13,861 |
2758 → 3466 |
| `objectstack-automation/SKILL.md` | 480 → 215 | 28,206 → 10,703 | 7045
→ 2669 |
| `objectstack-automation/references/examples-flows.md` | 145 → 432 |
6,170 → 25,729 | 1543 → 6433 |
| `objectstack-automation/references/integration-recipes.md` | 186 → 212
| 10,379 → 12,222 | 2595 → 3056 |
| `objectstack-automation/references/state-machines-and-approvals.md` |
388 → 388 | 23,706 → 23,708 | 5927 → 5927 |
| **ten files of the move** | 3,198 → 3,210 | 161,453 → 163,010 | 40,353
→ 40,743 |
| `objectstack-project/SKILL.md` (the re-pointed line) | 214 → 214 |
11,985 → 11,987 | 2990 → 2990 |

- **What an AI loads first**: the two entry files together 55,066 →
19,686 bytes (13,754 → 4,908 tokens), 64% smaller.
- **Whole pack**: authored (ratcheted) 200,068 → 200,458 tokens (+390);
bundle total 304,380 → 304,770. The pack does not shrink: the text moved
inside it.
- **Ruling ④A accounting**: every raised row equals its measured bytes,
zero headroom (the gate is exact since objectstack-ai#37747, so a row above or below
its file is red). Of the +390, +430 is the automation entry's own row
(the pure router measured 2239; ruling 7168461386 A restores six
flow-shape facts and ruling 7176941587 Q2 A keeps 187 bytes, 2239 →
2670, then 2669 after the merge). Set that authorised row aside and the
moves sum to −40: the sum of ceilings does not rise.

<details><summary>Gates run locally on the head</summary>

Derived with `node scripts/pm/dispatch-gates.mjs --commands` on
`3b62b5e9b0`, each command run and its exit code recorded, then
reconciled with `--ran`: **69 derived, 68 run (each exit 0), 1
NOT-MEASURED, 0 unrun.**

On head `edcd7df4ad` (the three nits) the 16 gates that read the changed
files were run again, each exit 0: the fourteen skill gates
(`check-skills-token-ratchet` and its self-test, `check:skill-docs`,
`check:skill-refs`, `check:skill-served-sections`, `check:skill-links`,
`check:skill-identifier-liveness`, `check:skill-compatibility`,
`check:skill-frame-sync`, `check:doc-authoring`, `check:nul-bytes`,
`check:pm-skill-id-lint`, `check:skill-examples`,
`check:doc-formula-expressions`) and the two changeset gates. The other
gates were not re-run on it. A trial merge with `origin/main`
`c6a1328dfe` (which moved the ratchet script and
`skills/objectstack-ai/SKILL.md` meanwhile) has no conflict and the
ratchet is green on the merged tree (200,510 / 200,510); the trial was
discarded and `main` is not merged again.

- NOT MEASURED: `pnpm check:dual-build-cjs-loads` exited 3 (prerequisite
not met: it needs every package's `dist`, a whole `pnpm build`). Long
builds go to GitHub under this project's standing rule, so CI is the
reading for it; the diff touches no package source.
- `pnpm check:skill-examples` needed `pnpm --filter
'@objectstack/client-react...' --filter '@objectstack/lint...' build`
first; then exit 0, 351 prose examples type-check across 3 surfaces.
- Outside the derived list, run apart: `pnpm --filter @objectstack/spec
exec vitest run scripts/platform-catalog.test.ts` (the one test that
names the ratchet script), 21 of 21.
- `node scripts/pm/overlap-check.mjs` before the first push: clean
against `origin/main` and the two open PRs that share a file (objectstack-ai#38224,
objectstack-ai#38192).

Exit 0, all 68: `node scripts/check-adr-0087-registration.mjs --base
origin/main` · `node scripts/check-adr-0087-registration.mjs
--self-test` · `node scripts/check-changeset-no-major.mjs --base
origin/main` · `node scripts/check-closing-keyword-parity.mjs` · `node
scripts/check-closing-keyword-parity.mjs --self-test` · `node
scripts/check-comment-mask-corpus.mjs` · `node
scripts/check-declaration-mirrors.mjs` · `node
scripts/check-declaration-mirrors.mjs --self-test` · `node
scripts/check-doc-route-spelling.mjs --advisory` · `node
scripts/check-doc-route-spelling.mjs --self-test` · `node
scripts/check-dts-emitted.mjs --self-test` · `node
scripts/check-empty-changeset.mjs --base origin/main` · `node
scripts/check-empty-changeset.mjs --self-test` · `node
scripts/check-self-test-wired.mjs` · `node
scripts/check-self-test-wired.mjs --self-test` · `node
scripts/check-self-test-workflow-commands.mjs` · `node
scripts/check-self-test-workflow-commands.mjs --self-test` · `node
scripts/check-skills-token-ratchet.mjs` · `node
scripts/check-skills-token-ratchet.mjs --self-test` · `node
scripts/check-whole-set-label-write.mjs` · `node
scripts/check-whole-set-label-write.mjs --self-test` · `node
scripts/ci/assert-turbo-remote-cache.mjs --self-test` · `node
scripts/ci/plan-test-core-shards.mjs --self-test` · `node
scripts/ci/prune-turbo-cache.mjs --self-test` · `node
scripts/ci/snapshot-next.mjs --self-test` · `node
scripts/pm/bare-root-worklist.mjs --self-test` · `node
scripts/pm/check-governed-queue-guard.mjs --self-test` · `node
scripts/pm/release-rehearsal-clone.mjs --self-test` · `node
scripts/release-pending-publish.mjs --self-test` · `--filter
@objectstack/lint run check:doc-formula-expressions` · `--filter
@objectstack/spec run check:skill-docs` · `--filter @objectstack/spec
run check:skill-refs` · `--filter @objectstack/spec run
check:skill-served-sections` · `check:adr-anchors` ·
`check:agent-test-spelling` · `check:bash32-floor` ·
`check:changeset-gate-self-tests` · `check:ci-filter-parity` ·
`check:cli-command-ids` · `check:closed-ceremony-text` ·
`check:corpus-claim-drift` · `check:cross-package-test-inputs` ·
`check:doc-authoring` · `check:driver-memory-census` ·
`check:dts-closure` · `check:entry-guard` · `check:gitlink-declared` ·
`check:lean-entry-closure` · `check:merge-driver` · `check:nul-bytes` ·
`check:parse-guard` · `check:pm-dispatch-gates` ·
`check:pm-expected-skips` · `check:pm-governed-merges` ·
`check:pm-skill-id-lint` · `check:pnpm-filter-targets` ·
`check:pnpm-flag-spellings` · `check:published-files` ·
`check:ratchet-remedy-authority` · `check:refd-timer-probe` ·
`check:role-word` · `check:scripts-symbol-anchors` ·
`check:skill-compatibility` · `check:skill-frame-sync` ·
`check:skill-identifier-liveness` · `check:skill-links` ·
`check:sourcemap-no-sources-content` · `check:watch-hint-literal`

</details>

**Writer**: all `skills/**` text was written by the card thread itself,
a session at `CONTRACT_REVIEW_TIER` per the claim (7240213191). Every
assistant turn of the session's transcript was served at the tier (210
of 210 when counted against the constant in
`scripts/pm/dispatch-gates.mjs`); `verify-review-tier.mjs` itself
refuses the transcript because the session once ran a read-only
sub-agent to read the rulebook, so that count is the thread's reading,
not the script's PASS.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01L6bhgUTzGxLiCQYi8Wvn3K)_

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01L6bhgUTzGxLiCQYi8Wvn3K

<!-- signed: repo:objectstack#2 · os-sales ·
session_01L6bhgUTzGxLiCQYi8Wvn3K -->

---------

Co-authored-by: Claude <noreply@anthropic.com>

This branch had an error being deployed

1 failed deployment
Preview — d523741e Deployed Jan 19, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants