Repository navigation
Remove explicit pnpm version from workflows to fix version conflict - #7
Merged
Merged
Conversation
Co-authored-by: huangyiirene <7665279+huangyiirene@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update action workflow file for improvements
Remove explicit pnpm version from workflows to fix version conflict
Jan 18, 2026
huangyiirene
marked this pull request as ready for review
January 18, 2026 10:56
This was referenced May 25, 2026
xuyushun441-sys
added a commit
that referenced
this pull request
Jun 3, 2026
…d read-only permission allowlist (#1555) AGENTS.md: - Drop the stale ".github/copilot-instructions.md mirror" instruction — that file doesn't exist, and Copilot (coding agent + CLI, since Aug 2025) reads AGENTS.md natively. Single source of truth for all agents. - Multi-agent discipline: prefer one git worktree per agent/task for physical isolation; frame the defensive rules as the shared-working-tree fallback. - Add rule #7: merge only after remote CI is green, never `gh pr merge --auto` (#1475 — auto-merge can land a red PR on shared main). .claude/settings.json (new, committed/shared): - Read-only permission allowlist derived from recent transcript usage, so parallel agents prompt less. Browser/preview observation tools (screenshot/snapshot/logs/network/list) + `agent-browser snapshot|skills`. - Deliberately excludes mutating/arbitrary-exec calls (preview_eval, click, fill, start/stop, pnpm, node, npx) and anything Claude Code already auto-allows (git/gh read-only, grep, cat, ls, …). Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
xuyushun441-sys
added a commit
that referenced
this pull request
Jun 13, 2026
#1821) Small models (e.g. claude-haiku) sometimes answered a "draw a bar chart" request with a markdown TABLE — running query_data/aggregate_data and formatting the numbers — instead of calling visualize_data. This was a tool-selection problem, not a capability gap: the chart preference was buried as guideline #7 and competed with guideline #4 ("format with markdown tables"). - data-explorer-skill.ts: add a prominent "Choosing the right tool" section ABOVE the guidelines — chart intent (incl. CN terms 图表/柱状图/折线图/饼图/画图) → MUST call visualize_data; never substitute a table; reconcile the table-formatting guideline; fix duplicate guideline numbering. - visualize-data.tool.ts: strengthen the tool description to be imperative ("the ONLY tool that draws a chart… you MUST call this, not a table; if you already fetched the numbers, still call visualize_data to render them"). Prompt-only tuning — no behavior/contract change. Raises the likelihood the model reaches for visualize_data on a plain chart request without an explicit "use visualize_data" nudge. Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This was referenced Jun 15, 2026
os-zhuang
added a commit
that referenced
this pull request
Jun 28, 2026
…ta-protocol name; no rename) (#2431) Per maintainer decision: keep the already-published `@objectstack/metadata-protocol` package name. Renaming churns downstream for ~0 benefit. The `protocol` suffix is a deliberate, low-cost naming exception — the real contract lives in `@objectstack/spec/api`, not the impl package. - D10: replace the "rename → metadata-runtime" clause with "name retained; content converges to the metadata-management impl". - Open Question #7: resolved (keep the name; README note to clarify impl-vs-contract). - Status: rev.8; notes D9 step-1 (interface segmentation) shipped in #2429. Docs only; empty changeset. Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
7 tasks
This was referenced Jul 24, 2026
os-zhuang
added a commit
that referenced
this pull request
Jul 27, 2026
…ions (#3563 PR-2) (#3571) Closes the largest gap in the #3563 route audit: the whole /actions domain — the documented way to expose custom server-side operations (engine.registerAction) — had no SDK expression at all, so every console hand-rolled fetch for it. - client.actions.invoke(object, action, { recordId, params }) — POST /api/v1/actions/:object/:action. recordId travels in the body, which both server URL shapes honor. The path is fixed (not discovery-routed): actions is not in ApiRoutesSchema, same precedent as projects' /api/v1/cloud. - client.actions.invokeGlobal(action, opts) — the wildcard /actions/global/:action shape. - The handler's own business failure surfaces as { success:false, error } (the dispatcher's inner envelope), deliberately not thrown, so callers can toast it. Unit tests cover URL shape, encoding, body defaults, the global variant, and the inner-failure path. Ledger: all three /actions rows flip to sdk; the gap ratchet drops 27 → 24 — first real exercise of the PR-1 guard. Documentation stops lying (audit findings): - client README: the six phantom methods are gone (meta.getObject, views.share, views.setDefault, workflow.approve/reject, ai.chat — replaced with the real calls where one exists), and the hand-written "all 13 namespaces / FULLY COMPLIANT" claims now defer to the CI-enforced ledger. - CLIENT_SPEC_COMPLIANCE.md: retired to a tombstone. Its verdict was measured against DEFAULT_DISPATCHER_ROUTES — a table nothing in runtime consumes, missing five of the domains it should have been measuring. - content/docs/api/client-sdk.mdx: documents the new actions surface; the automation row now reflects the real method count. Pre-existing, untouched: the bare `tsc -p` TS2741 (routeMap missing graphql) reproduces identically on main — its root is the stale graphql entry in ApiRoutesSchema, tracked as audit follow-up #7 (spec-major territory). Verified: client 122 passed (5 new), runtime 653 passed, both ledger guard halves green, eslint clean. Claude-Session: https://claude.ai/code/session_01LX9ut3MK3KykE11S9bJmv5 Co-authored-by: Claude <noreply@anthropic.com>
This was referenced Jul 29, 2026
fix(spec,rest): enforce the batch-size cap, and give each bulk endpoint one Zod source (#3939)
#3944
Merged
This was referenced Oct 30, 2026
scbdzhwl
pushed a commit
to scbdzhwl/objectstack-analysis
that referenced
this pull request
Nov 16, 2026
…p closes on blur (objectstack-ai#34091) <!-- claude-projects-attribution: {"github_login":"os-steve"} --> _Requested by **Steve** · [project thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi9Sy653R4fA2ArwDP1QvFqq9)_ Fixes objectstack-ai#33980 Clause-②: no Metadata-protocol: none Claim by `domain:ui#1`, card-thread session `session_01ADHkmPwoJquHrWGDjT1P4r`. ## 维护者速读 - 改了什么:给弹窗焦点陷阱(Radix `FocusScope`)的补丁加一段:只有「上一个获得焦点的元素」真的不在弹窗里了,才把焦点拉回弹窗本身。导入向导里 objectstack-ai#33960 加的局部绕法(把 tooltip 挪出弹窗)随之撤掉。 - 为什么改:弹窗里一个带内联 tooltip 的按钮,按 Tab 离开时 tooltip 被卸载,陷阱误判为「焦点元素被删」,把焦点拉回弹窗,键盘用户出不去。除导入向导外,实测「管理视图」对话框也中招:Tab 过不了第一行的 Pin 按钮,其余视图、Done、Close 都到不了。修在陷阱上,所有弹窗一次修好。 - 风险与回滚:只改补丁里一个判断条件,焦点元素真被删除时仍拉回弹窗(单测对照钉住)。改动面是所有 Dialog / Sheet / AlertDialog 的焦点处理;回滚即 revert(会同时带回导入向导的问题,因为局部绕法已撤)。 - 先看:`patches/@radix-ui__react-focus-scope.patch`(新增的 handleMutations 两行),`ui/packages/components/src/__tests__/dialog-popover-focus-scope.test.tsx`(新 describe),`ui/e2e/manage-views-keyboard-tab-order.spec.ts`。 - 两分钟验证:`pnpm --dir ui exec playwright test e2e/manage-views-keyboard-tab-order.spec.ts e2e/import-wizard-keyboard-tab-order.spec.ts --project=chromium`,预期 6 passed。 - 需要你做的:无,席位落地。 ## What changes - **`patches/@radix-ui__react-focus-scope.patch`** (the file `pnpm-workspace.yaml`'s `patchedDependencies` applies) gains a second hunk in `dist/index.js` and `dist/index.mjs`: the trapped scope's `MutationObserver` callback returns early when the last focused element is still inside the container. Stock radix focuses the container whenever a node under it is removed while focus sits on `body`; between the blur and the focus of a native Tab focus does sit on `body`, so a node that a blur unmounts (an inline tooltip closing under its trigger) pulled focus back to the container. The callback now acts only on the case it exists for: the focused element, or an ancestor of it, was itself removed. The earlier stack-race hunk is unchanged. - **`ui/patches/@radix-ui__react-focus-scope.patch`** gets the same bytes. It is an unreferenced copy (nothing reads it; `pnpm-workspace.yaml` names the root file), kept identical rather than left to drift; deleting it is not this card. **`ui/patches/README.md`**: the entry now describes both halves, its Tracking/Upstream rows name the second, and Remove-when requires every regression case green with the patch removed. - **`pnpm-lock.yaml`**: the patch hash for `@radix-ui/react-focus-scope@1.1.16` (7 lines, from `pnpm install`). - **`ui/packages/plugin-grid/src/ImportWizard.tsx`**: objectstack-ai#33960's local `createPortal` of the Save-current reason tooltip is removed (`git apply -R` of that hunk); the tooltip mounts inline again, and Tab still leaves it (spec below). - **Changesets**: new `.changeset/33980-focus-trap-blur-unmount.md` (`@object-ui/console`, `@objectstack/console`, `@object-ui/plugin-grid`: patch). **DELIBERATE CORRECTION** of the pending `.changeset/33862-import-wizard-save-reason-tab-trap.md`: its last sentence said "The tooltip now renders outside the dialog, so Tab and Shift+Tab walk every control in order…", which this PR makes false; it now reads "The dialog's focus trap no longer reads that removal as focus lost, so Tab and Shift+Tab walk every control in order and the reason is still read out when the wrapper is focused." `check-empty-changeset` is red on that file by design. ### Why A (the focus-scope patch) and not B (portal `TooltipContent`) Measured first, on `origin/main` `fb79d47c`: which inline-tooltip triggers sit inside a modal dialog. Statically, 35 non-test files under `ui/packages` name `TooltipContent`; six of them also render a Dialog / Sheet / AlertDialog (ImportWizard, ManageViewsDialog, MarketplacePackagePage, MarketplaceRowActions, StudioDesignSurface, the Shadcn sidebar). Measured in Chromium with real Tab presses (Vite bundle from `src/`, no stylesheet): | Site | Before (fb79d47) | After | |---|---|---| | Import wizard, Save-current reason (with objectstack-ai#33960's portal removed) | trapped (the objectstack-ai#33960 spec's ablation leg, and below) | all 8 stops | | Manage Views dialog, each row's Pin / Set-as-default button (`ObjectView` wires both) | trapped: search, drag, `All`, Pin, **dialog**, search… | all 12 stops | | A generic Dialog with a focusable tooltip trigger between two buttons | trapped: a, b, **dialog**, a… | a, b, c, Close | Not measured: `StudioDesignSurface` (a tooltip in an inspector its selection Sheet may hold), tooltips in views a record drawer may host, and `DisabledReasonTrigger` when metadata places a disabled action inside a modal. A covers them whatever they turn out to be. Why "no stylesheet" is the production case: the Console's `index.css` leaves `@plugin 'tailwindcss-animate'` commented out, so `data-[state=closed]:animate-out` has no rule and a closing tooltip unmounts at once, inside the blur→focus gap. With an exit animation the unmount waits for `animationend` and nothing traps (measured on the generic probe: a, b, c, Close) — which is why this hides in some setups. - **A** fixes the trap's heuristic, so every blur-driven unmount under a modal is covered, not only tooltips, in every dialog at once; the repo already patches this exact package and version for another focus race, with a README entry and a removal condition. - **B was not taken**: it closes only the tooltip half (any other node a blur removes still traps); `ui/packages/components/src/ui/tooltip.tsx` is a Shadcn-synced file (ui/AGENTS.md objectstack-ai#7), tracked from shadcn's `default` style, which does not portal, so B is a local divergence to declare in `ui/scripts/shadcn-local-patches.mjs`; and it moves every tooltip in the app out of its subtree into `body`, a DOM change for every tooltip to fix a defect that only exists under a focus trap. ## Tests - **Unit, `ui/packages/components/src/__tests__/dialog-popover-focus-scope.test.tsx`** (the shared harness of the existing patch; new top-level `describe`): a trapped scope whose trigger drops a sibling node on blur — after `blur()` focus is not on the container (red on stock); CONTROL — removing the focused element itself still focuses the container (green either way). A scripted `blur()` puts focus on `body` before the observer callback runs, so this unit case can go red in happy-dom, unlike a `user-event` Tab walk. - **New e2e, `ui/e2e/manage-views-keyboard-tab-order.spec.ts`** (Build & E2E UI, chromium; the harness of objectstack-ai#33960's spec): the real `ManageViewsDialog` bundled from source, native Tab and Shift+Tab over two editable views (12 stops, past both Pins and Set-as-default) and a CONTROL of two read-only views (no tooltip trigger, 7 stops). - **`ui/e2e/import-wizard-keyboard-tab-order.spec.ts`**: green with the local portal removed. Forced test edit: its header sentence "The reason tooltip is now portalled out of the dialog…" became false and now names the trap patch; no assertion changed. - **Ablation** (fix committed first): the patch's guard line deleted from the installed `dist/index.mjs` (marker `/* ablated */`, guard count 1 → 0, blob `4dfa11db5c8c` → `a97219dd468f`). - unit: the new case red, the control and the 3 existing cases green; - e2e: Manage Views editable case red (`…, manage-views-pin-all, dialog, manage-views-search, …`), import wizard nothing-mapped and tooltip cases red (`…, reason:import-template-save-btn, dialog, …`), the 3 controls green. - Restore proven both times: blob back to `4dfa11db5c8c`, which is the post-image blob the patch itself names for `dist/index.mjs`; guard count 1. (`scripts/ablation-replace.mjs` refused to certify the restore of a path git does not track, so the restore was done by hand and proven by hash.) <details><summary>Local runs (head 279bded)</summary> ``` playwright e2e/manage-views-keyboard-tab-order.spec.ts e2e/import-wizard-keyboard-tab-order.spec.ts --project=chromium head 279bded: 6 passed ablation (guard deleted): 3 failed (manage-views editable; import-wizard nothing-mapped; import-wizard tooltip), 3 passed (controls) vitest packages/components/src/__tests__/dialog-popover-focus-scope.test.tsx head: 5 passed ablation: 1 failed (a node a blur unmounts...), 4 passed vitest packages/components/ packages/plugin-grid/ packages/plugin-view/ (lock VERDICT command-exit 0) Test Files 827 passed | 1 skipped (828); Tests 7755 passed | 24 skipped (7779) type-check:e2e, @object-ui/components type-check, @object-ui/plugin-grid type-check (lock VERDICT command-exit 0) Chromium probes on origin/main fb79d47 (before the patch; Vite bundle from src, no stylesheet): generic Dialog + tooltip trigger: a, b, dialog, a, b same, with an exit-animation rule: a, b, c, Close, a ManageViewsDialog (2 views): search, drag-all, All, pin-all, dialog, search, ... after the patch: generic: a, b, c, Close, a ManageViewsDialog: search, drag-all, All, pin-all, actions-all, drag-mine, Mine, pin-mine, default-mine, actions-mine, done, Close, search ``` </details> ## Acceptance notes - `ui/patches/README.md`'s header still says patches are "declared in the root `package.json`"; they are declared in `pnpm-workspace.yaml`. Doc drift, outside this card's file surface; noted, not fixed. - No upstream radix issue is known for the mutation-handler half; the README says so rather than citing one. ## Verification Local, on head `279bded8` (merge base `fb79d47c`; `origin/main` `63db7240`, none of its 10 commits touches these files): `node scripts/pm/dispatch-gates.mjs --commands` derived 52; `--ran` with the exit codes: 52 derived, 51 run, 1 NOT-MEASURED, 0 UNRUN. - `check-empty-changeset --base origin/main` exits 1 **by design**: the DELIBERATE CORRECTION of `.changeset/33862-import-wizard-save-reason-tab-trap.md` above, for the seat's record. - `check:dual-build-cjs-loads`: NOT MEASURED locally (exit 3, PREREQUISITE NOT MET: it reads every package's `dist/`, and only the closures these tests need were built). It is derived from the lockfile line only; CI's Lint & Repo Gates runs it on a full build. - Also run: `ui` `check:new-line-citations` (0 new); `check-governed-merges --branch HEAD`: NOT governed, 0 of 10 paths, 477 changed lines. <details><summary>Derived gates, each exit code</summary> ``` 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-dts-emitted.mjs --self-test :: exit 0 node scripts/check-empty-changeset.mjs --base origin/main :: exit 1 node scripts/check-empty-changeset.mjs --self-test :: exit 0 node scripts/check-osv-exemptions.mjs :: exit 0 node scripts/check-osv-exemptions.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/assert-turbo-remote-cache.mjs --self-test :: exit 0 node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0 node scripts/ci/prune-turbo-cache.mjs --self-test :: exit 0 node scripts/ci/snapshot-next.mjs --self-test :: exit 0 node scripts/osv-base-relative.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-fixed :: 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:dts-closure :: exit 0 pnpm check:dual-build-cjs-loads :: exit 3 pnpm check:engine-double-contract :: exit 0 pnpm check:gitlink-declared :: exit 0 pnpm check:lean-entry-closure :: exit 0 pnpm check:nul-bytes :: exit 0 pnpm check:override-consistency :: 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:sourcemap-no-sources-content :: 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:vendor-export-contract-resolve :: exit 0 pnpm check:watch-hint-literal :: exit 0 pnpm check:where-matcher :: exit 0 ``` </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01ADHkmPwoJquHrWGDjT1P4r)_ --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: objectstack-fleet[bot] <332303061+objectstack-fleet[bot]@users.noreply.github.com>
This was referenced Nov 16, 2026
This was referenced Nov 24, 2026
Merged
Nenzyz
pushed a commit
to Nenzyz/objectstack
that referenced
this pull request
Dec 1, 2026
… the base ref (objectstack-ai#37032) <!-- claude-projects-attribution: {"github_login":"huangyiirene"} --> _Requested by **Irene** · [project thread](https://claude.ai/code/project/chan_01TJXtQ1tVD26ecLDZxFS67x?thread=cmsg_01TJXtQ1tVD26ecLDZxFS67x8Be2AAcUBhodBsvnWLd3Xs)_ Fixes objectstack-ai#36537 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:用户无感;席位在合入主干后把受管 PR 交给维护者时,已由重生成说明续管的审核记录不再被误拒。 - 为什么做:车队交接工具的缺陷——交接时读不到合法的重生成续管记录,席位只能多请一轮审核。 - 出错会怎样:最坏是交接被拒(与今天相同),不会把没审过的改动交给维护者;可直接撤回。 - 要你做什么:无。 ## What changes `scripts/pm/label-write.mjs --handoff` (and its `--dry-run` per-round reading) now hands the queue guard's PASS reader the two things its `regenCarry` needs to judge a PASS carried from an older head by a `Regen-provenance:` line: - `runGit` — `handoffGitReader(repo)`: this checkout's git (`checkoutGit`: argv plus optional stdin, stdout back, throws on any failure), the shape `check-governed-queue-guard.mjs` passes. It is null when the pull's repository is not this checkout's `origin`, as `check-governed-merges.mjs --pr` hands none outside its own checkout; the guard's reader then reads the carry as a gap (exit 3), never as clean. - `baseRef` — the pull's own `base.sha` from the same pull read, null when it is not a full sha. The injectable seam is `handoffDeps.gitReader` (default `handoffGitReader`); the self-test's `driveOffline` defaults it to "no reader", so the suite stays offline. No regen-carry logic is re-spelled here: `record-recognisers.mjs` decides, and its pins (no reader is unreadable, no base ref is unreadable, an unreachable tree is unreadable) are untouched. ## Why The card: the hand-off built its `pair` without `runGit` or `baseRef`, so every carried PASS read "this run holds no git reader" and a valid record refused the hand-off (measured on PR objectstack-ai#36509). **Which base ref, measured.** Real trees of PR objectstack-ai#36509 (old head `4342cf009`, merge-of-main head `bf71994326`, second parent `0b2118f4`), through the guard's own `unexplainedPathsBetween` / `regenCarry` against this checkout: | base handed | unexplained paths | `regenCarry` | |---|---|---| | `pull.base.sha` = `0b2118f4` (the merged main) | 0 | `carried`, record 7083451259 | | a base older than the merge (`e4e3bcfe`, what a stale `origin/main` would hold) | 14 (main's own files read as hand edits) | `refused` | | `origin/main` in this shallow checkout | git throws | `unreadable` | | none (before this change) | n/a | `unreadable`, "holds no git reader" | `base.sha` is an immutable commit from the same pull read, and the base `--pr` and the guard's `pull_request` leg hand the same reader. A remote-tracking ref is shared by every worktree and may be stale, and a stale base turns main's carry-over into "hand edits". If the checkout lacks that commit, `merge-base` throws and the guard reads it as unreadable with its own fetch hint, so it is never carried. ## Tests `node scripts/pm/label-write.mjs --self-test` at head `4c0570e0`: `✓ label-write self-test: 407 cases pass across 19 batteries` (was 398). The `--handoff` battery gains nine cases and its pin goes 59 → 68: 1. a PASS on an older head carried by `Regen-provenance:`, fake git clean (main brought `AGENTS.md`, the pull touched nothing hand-written) ⇒ records ✓, handed off, exit 0; plus a check that the reader's `merge-base` got `base.sha`; 2. the same chain with the pull's own hand-written path ⇒ no same-head PASS, refused, exit 2, zero sends; 3. a git reader that throws ⇒ PREREQUISITE, exit 3, zero sends, with the guard's fetch hint; 4. no reader ⇒ the guard's "holds no git reader" gap, exit 3; no base sha ⇒ the "base ref" gap, exit 3; 5. `--dry-run` reads the carried PASS through the same reader (records ✓, exit 7, nothing sent); 6. `handoffGitReader` origin matching (spelling and case, another repository gives null, an unreadable remote gives null), and the real `checkoutGit` hands git its stdin (`check-attr --stdin` answers `os-regen` for a literal `.gitattributes` row). <details><summary>Red before the fix, and three ablations after it</summary> Before the implementation (tests in place, fix absent): `✗ label-write self-test: 7 of 406 case(s) failed`. Case 1 read `got [3,0,false,false], want [0,1,true,true]` with `② PREREQUISITE NOT MET — PR objectstack-ai#7's Regen-provenance: chain — this run holds no git reader`. After committing the fix, each mutation went through `scripts/ablation-replace.mjs` (the anchor hit on disk, restored blob equal to HEAD, `git diff HEAD` empty): - `runGit` changed to `runGit: null` in the pair ⇒ 6 of 407 failed; - `baseRef` changed to `'origin/main'` ⇒ 2 of 407 failed (the base-sha check and the no-base control); - `input` removed from the `checkoutGit` spawn ⇒ 1 of 407 failed (the stdin case). </details> ## Acceptance notes - The changes are in one file: `scripts/pm/label-write.mjs`. The guard instruments were read but not edited. - On a sibling-repository pull (the run's checkout is not that repo), the hand-off still reads a carried PASS as unreadable ("holds no git reader"). That matches `--pr`. Run it from that repository's checkout. - When the base commit is missing, the guard's fetch hint names the pull head and the old head but not the base. That text belongs to `record-recognisers.mjs`, so this PR leaves it alone. - No changeset: `scripts/pm/**` publishes nothing from any released package, so this PR carries `skip-changeset`. ## Verification Read first: the `pair` line in `handoffGate` (the risk hunk: `runGit` and `baseRef` added), `checkoutGit` / `handoffGitReader` above it, then the `R1` cases in the `--handoff` battery. Two-minute check: `node scripts/pm/label-write.mjs --self-test`. Expected output: `✓ label-write self-test: 407 cases pass across 19 batteries`. <details><summary>Local gates at 4c0570e</summary> `node scripts/pm/dispatch-gates.mjs --commands` derived 64 commands. Each ran with its exit code captured before any pipe. 63 exited 0. `pnpm check:i18n-coverage` exited 3 (PREREQUISITE NOT MET: no built `dist/` for the configs it lints; it does not read `scripts/pm`; left to CI). `dispatch-gates --ran`: `64 derived famil(ies) accounted for — 63 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3)`. Also: `overlap-check` VERDICT clean exit 0; `check-commit-card-trailers --range origin/main..HEAD` ✓. </details> ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (not touched) - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` is left to CI. - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. Publishes nothing: `skip-changeset`; both declaration lines are above. - [x] 6. `packages/spec` not touched. - [x] 7. No hand edits to generated docs, changelogs or release notes. - [x] 8. Title, body and comments are in English. - [x] The *Before Submitting* list in CONTRIBUTING.md is done. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01J8VVAm5Tp3iBkiJk6nMwa5 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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The CI workflow failed because
pnpm/action-setup@v4detected conflicting versions:version: 10in the workflow config vs"packageManager": "pnpm@10.28.0"in package.json.Changes
version: 10frompnpm/action-setup@v4in both CI and release workflowspackageManagerfield (10.28.0)Reference: https://github.com/objectstack-ai/spec/actions/runs/21110164385/job/60707559636#step:4:1
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.