Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

fix(skills): guard the DataSource read in the marked data-integration example - #9352

Merged
os-zhuang merged 1 commit into
mainfrom
claude/issue-9311-guard-datasource-in-data-integration-example
Sep 13, 2026
Merged

os-zhuang merged 1 commit into
mainfrom
claude/issue-9311-guard-datasource-in-data-integration-example

Conversation

@os-tesla

@os-tesla os-tesla commented Sep 13, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #9311

One line inside one marked fence in skills/objectui/guides/data-integration.md, plus the prose that makes it read as teaching rather than as gate appeasement. One file, +12 / -1.

⚠️ This PR parks as a DRAFT by design — please do not route around it

skills/** is a governed surface. Measured with the repo's own tool, on this PR's own diff (node scripts/check-governed-queue-guard.mjs --test skills/objectui/guides/data-integration.md, exit 3), quoted verbatim:

⛔ GOVERNED — 1 of 1 path(s) are on a governed surface:
   skills/** x1 — the published skills catalog
     - skills/objectui/guides/data-integration.md

   One governed path governs the WHOLE pull request — proportion is not a question.
   ⛔ Do not flip it ready, enqueue it, or arm auto-merge. Park it as a DRAFT and leave the merge
      to the maintainer; a human merge IS the review record for a governed surface.
   The merge-queue run of "Governed Surface Queue Guard" refuses this diff unless an APPROVED review by an
   authorized approver (GOVERNED_APPROVERS: os-zhuang, hotlong) is on the pull request — on
   whichever commit it was left (maintainer ruling 2026-09-04).

That is the designed end state, not a failure. needs:contract-review is hung here as well: teaching that the adapter may legitimately be absent is a falsifiable contract-semantics claim about objectui#7912's ruling, and the governed-surface human merge and the clause-two review stack — neither substitutes for the other.

The defect

The marked fence under "Via DataSource methods (in plugin code)" destructured dataSource from useSchemaContext() and called .find() on it with no guard. useSchemaContext() throws only when there is no provider; a provider with no adapter bound is an ordinary, supported state — a Studio preview, a page that renders before the host connects its adapter, a widget test that drives apiFetch alone. Published guidance copied into a plugin on such a surface therefore throws at its first call.

The os:check marker stays. Dropping it was the gate's other option and it is the wrong one: it retires the coverage instead of repairing the guidance, and leaves the same unguarded pattern published for readers to copy.

⭐ Premise correction: the red does NOT reproduce on origin/main

Worth stating, because anyone re-running the gate on main will read green and conclude the card was wrong. On origin/main (a5921a0f8) the gate IS green — Semantic phase: 14 of 14 ts fence(s) judged, 0 failed — because SchemaRendererContextType.dataSource is still declared any there (packages/react/src/context/SchemaRendererContext.tsx). The TS18049 the card quotes is produced by PR objectui#9310's narrowing, which has not landed. The card's substance is intact — the hazard is real and the narrowing only made it visible — but the reading needs its base stated.

So the repair was verified as a two-leg proof, both legs with PR objectui#9310's own copy of that one narrowing file applied on top of this branch and @object-ui/react rebuilt, so the change reaches the dist/*.d.ts the gate compiles against.

RED leg — narrowing applied, guide at a5921a0f8 (unrepaired). Gate exit 1:

  [semantic]  skills/objectui/guides/data-integration.md:304:26  TS18049: 'dataSource' is possibly 'null' or 'undefined'.
Semantic phase: 14 of 14 ts fence(s) judged, 1 failed.
JSON phase:     70 fence(s) parsed, 0 failed.

A marked example in skills, .claude/skills no longer holds up. Fix the example, or — if it was never meant to compile on its own — remove its marker rather than weakening this gate.

GREEN leg — same narrowing, guide repaired. Gate exit 0:

Marked: 14 ts fence(s) (floor 13), 70 json fence(s) (floor 70) — the floor is ⛔ SHRINK-ONLY. Unmarked fences are ignored by design (opt-in).
Semantic phase: 14 of 14 ts fence(s) judged, 0 failed.
JSON phase:     70 fence(s) parsed, 0 failed.

Every marked skill example holds up against the built types.

Harness soundness, read beside both legs — a permanently green (or permanently red) harness is not a reading. node scripts/check-skill-examples.mjs --self-test, exit 0:

✓ check-skill-examples self-test: 59 cases pass (marker adjacency both directions, orphans, nested illustration, json/jsonc, the bare-`any` guard in both directions with its shrink-only baseline, the ROOT BOUND in both directions with its own shrink-only baseline and control, the PUBLISHED-TYPE inventory with its positive and negative controls plus the shadowing ledger in both directions, and the compiler legs through the real harness).

Ablation hygiene. The narrowing was applied by writing PR objectui#9310's copy of that file, proven to reach disk (marker count 0 then 2) and to reach dist (0 then 2) before either reading was taken; restored under a shell trap with git checkout HEAD -- packages/react/src/context/SchemaRendererContext.tsx, proven by blob-hash equality against the HEAD blob (55efccde746c2f269bdc635ac71c5dd62d7d0ecb), an empty git diff HEAD, and a rebuild that returned the dist marker count to 0.

⚠️ One honest caveat about that leg: its turbo run build exits 2, because PR objectui#9310 narrows 52 files and this reproduction applies one. The two residual errors are src/hooks/useClientNotifications.ts(84,39) and (85,23), TS2339: Property 'getClient' does not exist on type 'DataSource' — in a file that same PR also updates. The declaration file the gate reads was still emitted and carries the narrowing, and the diagnostic reproduced is character-for-character the one PR objectui#9310's own CI reports.

Enumeration of sibling fences — measured, not inferred from the single red

A fence without the os:check marker is not judged at all, so "only one red" proves nothing by itself. --measure judges EVERY candidate fence, marked or not; it was run twice.

Reading 1 — the narrowing's whole footprint. With this repair in place, the corpus census is byte-identical with and without PR objectui#9310's narrowing (cmp reports identical; 270 [semantic] lines in each; Semantic phase: 97 of 121 ts fence(s) judged, 79 failed in both). Across 121 candidate ts fences in skills/ and .claude/skills/, the narrowing's entire diagnostic footprint was the one fence this PR repairs. The 79 pre-existing failures are unmarked fragments, which is why this gate is opt-in.

Reading 2 — the same class elsewhere. Corpus-wide there is exactly one other possibly-absent-member diagnostic, and it is present on origin/main today, in an UNMARKED and therefore unjudged fence:

  [semantic]  skills/objectui/guides/auth-permissions.md:49:20  TS18047: 'user' is possibly 'null'.

Filed separately as objectui#9350: AuthContextValue declares user: AuthUser | null, and AuthProvider hardcodes isAuthenticated = true in guest mode and preview mode, so that example's isAuthenticated guard does not imply a user — while the repo's own UserMenu.tsx guards both. ⛔ Not touched here: different guide, different member, and this diff is deliberately one file on a governed surface.

grep corroboration: useSchemaContext appears exactly once across both skills trees (line 298 of this guide), and no other fence reads a dataSource member. There was no second site of this pattern to miss.

What this does and does NOT unblock

⛔ This does not turn PR objectui#9310 green. That PR carries two non-required reds: Skill Example Check (this card) and Doc Snippet Type Check (three fences teaching the second meaning of dataSource, tracked as objectui#9346 and held on objectui#9308, which is needs-user-decision — the maintainer's ruling, not a seat's). This PR removes one of those two reported reds, on its own merits.

Re-measured independently this round at GET /repos/objectstack-ai/objectui/rules/branches/main: rule types deletion · non_fast_forward · merge_queue · pull_request · required_status_checks, and the nine required contexts are Lint, Type Check, Build & E2E, Test (shard 1/4) through (4/4), Build Docs, Changeset Declaration. Skill Example Check is not among them.

Changeset decision: none owed, none added — measured, not assumed

  • Is skills/ shipped by any package? No. Scanning every workspace manifest's files, exports, main, module and types: 0 mention skills. The published skills tree is not carried by any released package.
  • The repo's own answer, node scripts/check-changeset-presence.mjs, exit 0: "Compared the working tree with a5921a0 (merge-base with origin/main): 1 file(s) changed, 0 of them published source of a package the release covers, 0 of them a manifest whose published contract moved, 0 under a package changesets ignores, 0 changeset(s) added." then "✅ No source or published contract of a released package changed in this range, so no changeset is owed."

Changeset Declaration is one of the nine required contexts, so that is the gate's verdict rather than an assumption.

Gates run locally

Derived by hand from package.json plus .github/workflows/ — this repo has no dispatch-gates script. Exit codes were captured before any pipe; heavy runs went through the shared verify lock and each reported VERDICT command-exit 0.

gate command result
Skill Example Check node scripts/check-skill-examples.mjs exit 0 — 14/14 ts, 70/70 json
its harness node scripts/check-skill-examples.mjs --self-test exit 0 — 59 cases
Skill Guide Path Check node scripts/check-skills-paths.mjs exit 0 — 88/89 resolve, 1 baselined
skill eval tokens node scripts/check-skill-eval-tokens.mjs exit 0 — 0 red
control bytes node scripts/check-control-bytes.mjs exit 0 — 7528 text files
new line citations node scripts/check-new-cross-file-line-citations.mjs exit 0 — 0 new
changeset presence node scripts/check-changeset-presence.mjs exit 0
changeset claims node scripts/check-changeset-claims.mjs exit 0
governed queue guard node scripts/check-governed-queue-guard.mjs --test exit 3 — GOVERNED, quoted above

A targeted control-byte sweep over the changed file found none.

Published-skills size readings

  • skills/objectui/guides/data-integration.md: 474 to 485 lines.
  • whole published skills/ tree: 5190 to 5201 lines (this is the only file changed).
  • skills/objectui/SKILL.md: unchanged, 137 lines.

Eight of the eleven added lines are the prose AGENTS.md requires to move with a changed example; three are the guard, its blank line and its one-line comment. No net-increase ceiling was named for this card — this is the reading to price it against if one applies.

维护者速读(草稿)

改了什么 —— 已发布技能指南 skills/objectui/guides/data-integration.md 里一个带 os:check 标记的示例:插件从 context 拿到 dataSource 之后直接调 .find(),现在先判空再调,并在示例上方补了一段「适配器为什么可能不在」的说明。只动这一个文件。

为什么改 —— useSchemaContext() 只在没有 Provider 时抛错;「有 Provider、但没绑适配器」是产品里真实存在的状态(Studio 预览、宿主适配器连上之前的页面、只驱动 apiFetch 的组件测试)。照抄这段示例的插件,在这些界面上第一次调用就抛。这是给人和 AI 抄的示例,错的教法比一处代码缺陷传得更远。

风险与代价(含回滚) —— 风险低:纯文档,不动任何发布包的源码,仓库自己的 changeset 门禁判定「不欠 changeset」。回滚即 revert 这一个 commit,无数据迁移、无 API 变化。代价是本 PR 落在受管面,必须由人来合并,并且要一条授权的 APPROVED review。

席位意见 —— (留空,待人工填写。)

你要做的 —— 读一遍示例上方新增的那段话,是否符合你对这条契约的判断(这正是 needs:contract-review 要问的),然后由你来合并。⛔ 席位不翻 ready、不入队、不开 auto-merge,也不会自己留下批准记录。

Acceptance notes

Out-of-scope findings from this card. None of them is touched by this PR.

  • Filed as objectui#9350 — skills/objectui/guides/auth-permissions.md teaches user.name behind an isAuthenticated guard that guest mode and preview mode hardcode true. Same class as this card, different guide and different member; the fence carries no marker, so the gate never judges it.
  • Noted, not filed — this same guide also teaches the SECOND meaning of dataSource: the "Static data (no backend)" section passes a plain object as the adapter, and rules/protocol.md plus guides/schema-expressions.md document bind resolving dataSource.customerNames. Under objectui#7912's narrowing those fences would be type errors if they were marked. That is objectui#9308's open needs-user-decision ruling, tracked on the docs surface as objectui#9346 — the successor that will touch these files. Not re-filed here.
  • Noted, not filed — --measure reports 97 of 121 ts fence(s) judged, 79 failed. Every one is an unmarked fragment (identifiers it never declares, dev-only imports no consumer can resolve). That is the opt-in design this gate's own header argues for, not debt.
  • Noted, not filed — MCP search_issues returned total_count: 0 for three separate queries in this session, including a control whose target card title literally contains the query token. Duplicate-checking was therefore done on the repo-scoped REST list endpoint (labels=domain:skills, with objectui#9311 present as a passing control). Successor: the PM seat, which runs duplicate checks every round.

Session, as a code span so it survives a later edit of this body: session_01UzHd6hDYatoDn17BuwKxnZ.


Generated by Claude Code


Generated by Claude Code

… example

The marked fence under "Via DataSource methods (in plugin code)" destructured
`dataSource` from `useSchemaContext()` and called `.find()` on it with no
guard. `useSchemaContext()` throws only when there is no PROVIDER; a provider
with no adapter bound is an ordinary, supported state (a Studio preview, a page
that renders before the host connects its adapter, a widget test that drives
`apiFetch` alone), so the published guidance, copied into a plugin on such a
surface, throws at the first call.

Add the guard and move the prose with it, so a reader comes away knowing WHY
the adapter can be absent rather than reading the line as gate appeasement.
The `os:check` marker stays: the example is meant to compile, and dropping the
marker would retire the coverage while leaving the same unguarded pattern
published for readers to copy.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UzHd6hDYatoDn17BuwKxnZ
@os-zhuang
os-zhuang marked this pull request as ready for review September 13, 2026 06:11
@os-zhuang
os-zhuang added this pull request to the merge queue Sep 13, 2026
Merged via the queue into main with commit 28be078 Sep 13, 2026
34 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-9311-guard-datasource-in-data-integration-example branch September 13, 2026 06:29
akarma-synetal pushed a commit to akarma-synetal/objectui that referenced this pull request Sep 28, 2026
…urce` expression root (objectstack-ai#9378)

Fixes objectstack-ai#9370

⛔ **GOVERNED SURFACE** (`skills/**`, `GOVERNED_SURFACES`
`skills-catalog`). This PR parks as a **draft by design** and needs an
APPROVED review from an authorized approver (`os-zhuang`, `hotlong`). ⛔
Not flipped ready, not enqueued, no auto-merge. The precedent on this
exact surface is objectstack-ai#9352 / card objectstack-ai#9311, merged as `28be0786d`.

⚠️ **Merge after objectstack-ai#9369, and this PR states which world it measured in.**
Re-derived from my own tree at base `69aa9c017`, not assumed:
`SchemaRenderer.tsx` still carries the `data: dataSource` binding, and
`SchemaRendererContext.tsx` still reads `const dataSource =
context?.dataSource` inside `useDataScope`. **Both halves are still LIVE
on this base** — objectstack-ai#9369 is open, not merged. So these pages become true
the moment objectstack-ai#9369 lands and are ahead of the code until then. Every
evaluator measurement below is from that same pre-objectstack-ai#9369 tree, which is
the right place to take it: the evaluator itself is what objectstack-ai#9369 stops
feeding, and the evaluator's own behaviour does not move. Sequencing is
a maintainer decision, not something this PR can enforce.

## What moved

The maintainer ruled objectui#9308 option B on 2026-09-13:
`SchemaRenderer` stops publishing the injected `DataSource` adapter as
the expression root `data` (b1), and `useDataScope` — what a node's
`bind` resolves through — reads the ambient scope a host publishes via
`PredicateScopeProvider` instead of walking that adapter (b2). The
published skill package still taught both halves.

Three files, matching the shape objectstack-ai#9369 used for
`content/docs/guide/schema-rendering.md` and `packages/react/README.md`:
publish the host values under real names through
`PredicateScopeProvider`, read them by those names, and state that
`dataSource` is the **adapter** and not a root.

| file | what changed |
|---|---|
| `guides/schema-expressions.md` | the scope table, a new COMPILED
wiring example, the migration callout, the `bind` resolution prose, the
bound-list comment, debugging-checklist item 3 |
| `guides/data-integration.md` | the architecture diagram's channel
split, "Static data" rewritten onto the scope channel as a COMPILED
example, the `useDataScope` resolution sentence, the `data` root claim |
| `rules/protocol.md` | both measured tables' WIRING restated, the
`bind` comment and nested-path sentence, plus a callout carrying the
retirement and pointing at the verdict flip |

⛔ Untouched, as the card requires: the `object-*` reader-list paragraph
and the `data-table` `bind` pothole (objectui#6575 still rules
`data-table` does not read `bind`).

## ⭐ The part that is not a renaming

A migration note that only swaps provider names is wrong here, because
the **verdict moved**. Measured by me on the built evaluator
(`packages/core/dist`), with firing controls — ⛔ and the `true` on a
missing root belongs to the **predicate layer**, not to the evaluator:

| scope, expression | `evaluateExpression` | `evaluateCondition` |
|---|---|---|
| CONTROL `{ data: { status: 'draft' } }`, `${data.status}` | `"draft"`
| `true` |
| CONTROL same scope, `Status: ${data.status}` | `"Status: draft"` |
`true` |
| CONTROL same scope, `${data.nope}` — present root, absent member |
`undefined` | `false` |
| `{ data: {} }` — adapter-shaped, `${data.status == 'draft'}` | `false`
| `false` |
| `{ data: undefined }`, same predicate | `false` | `false` |
| `{}` — no `data` root, `${data.status}` | `"${data.status}"` | `true`
|
| `{}` — no `data` root, `Status: ${data.status}` | `"Status:
${data.status}"` | `true` |
| `{}` — no `data` root, `${data.status == 'draft'}` | `"${data.status
== 'draft'}"` | `true` |

The third control is the discriminating one: a root that is PRESENT with
an absent member yields `undefined`, while a root that is MISSING yields
the template's own source characters. So the two layers answer a missing
root differently, and each has its own reader-visible symptom:

- **predicate layer** — fails soft to `true`. A `"visible":
"${data.status == 'draft'}"` authored from these pages was **hidden on
every row** and is now **shown on every row**; spelled `"hidden"` it
flips the other way.
- **interpolation layer** — does not fail soft at all. A `content` built
from a missing root paints the literal characters `${data.status}` on
screen.

The callout carries one column per layer and tells the reader to read
both. It also states that re-publishing `data` restores the OLD
always-`false` verdict rather than fixing the gate, and points row gates
at `record` — the runtime-layer root under ADR-0089 D3.

## What I decided about the ~two dozen `${data.…}` examples

Measured, not estimated: `schema-expressions.md` carries **21** lines
spelling `${data.` (one of them is the census's own scope-table row).
Repo-wide under `skills/`: 21 here, 14 in `rules/protocol.md`, 5 in
`page-builder.md`, 4 in `testing.md`, 2 each in `data-integration.md`
and `auth-permissions.md`, 1 in `architecture.md`, plus 4 in
`evals/*.json`.

**Decision: keep every one of them verbatim and make them reachable,
rather than rewrite them to bare roots.** The page's new wiring example
publishes a root literally named `data`, and the scope table says in a
row that every `${data.*}` example on the page assumes exactly that.
Three reasons this is the right divergence from objectstack-ai#9369's `content/docs`
shape:

1. **A pin renders those exact spellings.**
`skill-guide-provider-envelope.test.tsx`, as re-derived in objectstack-ai#9369,
publishes `scope = { data: PROVIDER }` and renders `${data.customers}` /
`${data.label}`. Rewriting the guide spellings would move that pin's
subject from inside a second pull request — the "green alone, red
together" shape.
2. **ADR-0089 D3 does not forbid the name.** `CANONICAL_ROOT_BY_LAYER`
puts `data` at the metadata layer. What was retired is the renderer
AUTO-publishing the adapter there, not the name.
3. **Most of those examples are about something else** — which text keys
carry expressions, type preservation, the troubleshooting section. The
root name is scaffolding, and churning 20 lines of scaffolding on a
governed surface buys the reader nothing.

⛔ Nothing was silently rewritten: the only expression text this PR
changes is the two `dataSource = {…}` comments that named the retired
wiring.

## Re-measurement of the card's per-line census

The card measured on the objectui#9308 branch. Re-measured against
`origin/main` `69aa9c017` — **every cited line still lands on the cited
text**:

| cited | on `origin/main` `69aa9c017` | verdict |
|---|---|---|
| 112 | `| Top-level data fields | \`SchemaRendererProvider dataSource\`
| …` | exact |
| 113 | `| \`data\` | Alias for dataSource root | …` | exact |
| 302-303 | `dataSource = { customerNames: … }`,
`useDataScope("customerNames")` | exact |
| 305 | `**Nested paths work:** … resolves
\`dataSource.app.settings.users\`` | exact |
| 393 | `// ✅ Bound data, already node-shaped: dataSource = { rows: … }`
| exact |

`premise_still_valid: true`.

## Enumeration beyond the census (⛔ out of scope for this PR)

`--measure` judges every candidate fence, marked or not, so a page can
be wrong where no gate looks. Reading the prose as well turned up two
more:

- **`guides/auth-permissions.md`** carries the same retired claim in its
own words — a scope table row `| \`data\` | the \`dataSource\` passed to
\`SchemaRendererProvider\` |`, the sentence "Keys of the `dataSource`
object are reachable only under the `data.` root", and "With no host
scope mounted, `data` and `page` are all you get". ⛔ Out of scope here:
**PR objectstack-ai#9374 holds that file**, so an in-place edit would collide. Filed
as objectstack-ai#9379.
- **`guides/testing.md` Pattern 5** asserts `getByText('Secret')` for a
node gated on `${userRole !== "admin"}` — a BARE root that no channel
publishes, before or after the ruling. Copy the example and the
assertion fails. Different defect class from this card, and independent
of the ruling — it is wrong on `main` today. Filed as objectstack-ai#9380.

Noted, not filed: the `${data.*}` examples in `page-builder.md`,
`architecture.md`, `i18n.md`, `project-setup.md` and `evals/*.json` are
in the same reachable-only-if-the-host-publishes class; they are not
falsifiably wrong and the skills lane that takes the auth-permissions
card is their natural carrier.

## Verification

Reproduce-first, as required — the harness is trustworthy before any red
or green from it is read:

```text
$ node scripts/check-skill-examples.mjs --self-test     # BEFORE the build
EXIT=2 — PRECONDITION NOT MET: the self-test's type-check leg needs the workspace built

$ ...os-verify-lock.sh -c 'turbo run build $(--build-filter) --concurrency=2'
VERDICT command-exit 0 · held the lock 44s · waited 0s

$ node scripts/check-skill-examples.mjs --self-test     # AFTER the build
EXIT=0 — ✓ 59 cases pass
```

Gate, verbatim, before and after this diff:

```text
BEFORE (exit 0)
Scanned 20 guide(s) under skills, .claude/skills: 121 ts/tsx/typescript fence(s), 70 json/jsonc fence(s).
Marked: 14 ts fence(s) (floor 13), 70 json fence(s) (floor 70)
Semantic phase: 14 of 14 ts fence(s) judged, 0 failed.
JSON phase:     70 fence(s) parsed, 0 failed.
Every marked skill example holds up against the built types.

AFTER (exit 0)
Scanned 20 guide(s) under skills, .claude/skills: 122 ts/tsx/typescript fence(s), 70 json/jsonc fence(s).
Marked: 16 ts fence(s) (floor 13), 70 json fence(s) (floor 70)
Semantic phase: 16 of 16 ts fence(s) judged, 0 failed.
JSON phase:     70 fence(s) parsed, 0 failed.
Every marked skill example holds up against the built types.
```

⭐ The marked ts population moves **14 to 16** and the json population is
unmoved at 70 — both floors are SHRINK-ONLY and neither is breached. The
two new marked fences are the wiring examples, so the thing this card is
about is now COMPILED against the built `dist/*.d.ts` rather than only
read.

Derived by hand from `package.json` plus `.github/workflows/` (this repo
has no `dispatch-gates.mjs`); every one run on this tree:

| gate | exit |
|---|---|
| `check-skill-examples.mjs --self-test` | 0 |
| `check-skill-examples.mjs` | 0 |
| `check-skills-paths.mjs` | 0 — 88/89 stated paths resolve, 1
pre-existing baselined |
| `check-skill-eval-tokens.mjs --self-test` /
`check-skill-eval-tokens.mjs` | 0 / 0 |
| `check-control-bytes.mjs` | 0 — 7539 tracked text files |
| `check-shell-escape-residue.mjs` | 0 — 16/16 skills documents under a
declared root |
| `check-new-cross-file-line-citations.mjs` | 0 — 0 new citations |
| `check-changeset-presence.mjs` | 0 |
| `check-doc-links.mjs` | 0 |
| `check-governed-queue-guard.mjs --self-test` | 0 — 185 cases |

Package tests that READ these three documents (`markdown-test-inputs.mjs
--changed` names all three as test inputs, so CI runs the full shards):
reported below the fold once the shared verify lock grants a turn.

Line readings for the governed surface, as the contract requires:

| reading | before | after | delta |
|---|---|---|---|
| `guides/schema-expressions.md` | 569 | 635 | +66 |
| `guides/data-integration.md` | 485 | 513 | +28 |
| `rules/protocol.md` | 341 | 354 | +13 |
| whole published package `skills/**` | 5201 | 5308 | +107 (+2.1%) |

The added lines are the correction itself: one migration callout, two
now-compiled wiring examples, and the sentences that replace the retired
claims. No re-wrap was used to buy lines.

## Changeset

**None owed**, by measurement rather than by inheritance:

1. `node scripts/check-changeset-presence.mjs` — "Compared the working
tree with `69aa9c017` (merge-base with origin/main): 3 file(s) changed,
0 of them published source of a package the release covers, 0 of them a
manifest whose published contract moved … No source or published
contract of a released package changed in this range, so no changeset is
owed." (exit 0)
2. Independently: **0 of 43** workspace manifests mention `skills` in
`files` / `exports` / `main` / `module` / `types` / `bin`. Positive
control on the same scan: 38 manifests list `dist` in `files[]`. Nothing
under `skills/` is shipped by any npm package.
3. The merged precedent on this surface, `28be0786d` (objectstack-ai#9352), changed
one `skills/` file and carried no changeset.

⚠️ One inconsistency worth a maintainer's eye rather than my guess: open
PR objectstack-ai#9374, also a single `skills/` guide, DOES carry an empty-frontmatter
changeset declaring "no package is released by this change". Both forms
pass the gate. If the empty-frontmatter declaration is the house style
for this surface, say so and I will add one.

## Governed-queue-guard verdict on this diff (verbatim)

```text
$ node scripts/check-governed-queue-guard.mjs --test skills/objectui/guides/schema-expressions.md skills/objectui/guides/data-integration.md skills/objectui/rules/protocol.md
⛔ GOVERNED — 3 of 3 path(s) are on a governed surface:
   skills/** x3 — the published skills catalog
     - skills/objectui/guides/schema-expressions.md
     - skills/objectui/guides/data-integration.md
     - skills/objectui/rules/protocol.md

   One governed path governs the WHOLE pull request — proportion is not a question.
   ⛔ Do not flip it ready, enqueue it, or arm auto-merge. Park it as a DRAFT and leave the merge
      to the maintainer; a human merge IS the review record for a governed surface.
   The merge-queue run of "Governed Surface Queue Guard" refuses this diff unless an APPROVED review by an
   authorized approver (GOVERNED_APPROVERS: os-zhuang, hotlong) is on the pull request — on
   whichever commit it was left (maintainer ruling 2026-09-04).
exit 3
```

## Clause-② — contract review

`needs:contract-review` is hung on this PR in the same stroke as opening
it, mirroring the card. Published `skills/**` making falsifiable
contract-semantics claims about which roots a tier binds. ⛔ The
governed-surface human merge does **not** substitute for it; the two
stack, and neither limb is mine to clear.

## Inherited reds — ⛔ not from this PR

- `Bundle Analysis` is red on `main` (arrived with objectstack-ai#9316; a maintainer
decision).
- `Doc Snippet Type Check` is red on `main` until objectstack-ai#9369 lands. This diff
touches no document that gate scans (`content/docs` + package READMEs +
root `README.md`, explicitly not `skills/**`).

## Acceptance notes

- ⛔ No test was skipped, quarantined or weakened. No assertion was
loosened. The marked-fence floors both hold and the ts population grew.
- The card's "the pins are green while the prose beside them is wrong"
warning was taken literally: the six `packages/components` pins objectstack-ai#9369
re-derived were read for what they assert about these files before a
byte was changed, and every string they pin is intact — `Rule: Keys Live
on the Node`, the `hoists every key onto\s+the node` regex, the absence
of the two retired sentences, the `no md matches "instead of
\`props.\`"` class guard, and the `"bind": "customerNames"` list example
in each of the three guides.
- Noted, not filed: `rules/protocol.md`'s two measured tables still cite
`origin/main` `f1c27f037` as the commit they were measured on. This PR
restates their WIRING, not their outcomes, and says so inline; a
re-measurement on a current commit is a separate piece of work, and the
`skill-guide-provider-envelope` pin is what actually holds those
outcomes today. Carrier: whoever next re-derives that pin.

## 维护者速读(草稿)

### 改了什么
把发布中的 `skills/objectui` 三份指南从「`dataSource` 就是表达式根 `data`、`bind` 走
`dataSource`」改成 ruling 之后的真实通道:宿主用 `PredicateScopeProvider`
发布作用域,`dataSource` 只是取数适配器。另外给两个接线示例加上 `os:check` 标记,让它们第一次真的被编译校验。

### 为什么改
2026-09-13 的裁决(objectui#9308 option B)已经把这两件事退役,但发布给 AI
读的技能包还在教它们。更要紧的是:这不是改名。同一条 `data.*` 门,旧接线下恒判 `false`、新接线下因为根缺失走
fail-soft 恒判 `true` —— 一个 `visible` 门从「每行都藏」变成「每行都显」。只换 provider
名字的迁移说明会让读者踩正这一脚。

### 风险与代价(含回滚)
- **排序风险(主要):** objectstack-ai#9369 还没合。在它合进去之前,这三页描述的是尚未落地的行为。⚠️ 建议排在 objectstack-ai#9369 之后合。
- 保留了全部 `${data.*}` 示例原文,只让接线示例发布一个叫 `data` 的根 —— 因为
`skill-guide-provider-envelope` 这个 pin 正在渲染这些拼写,改写它们会在另一个 PR 的盲区里挪动 pin
的被测主体。
- 回滚代价:纯文档,`git revert` 一笔即可,不影响任何已发布包(本仓 43 个 manifest 无一发布 `skills/`)。

### 席位意见
(留空,待 `os-zhuang` / `hotlong` 定稿)

### 你要做的
1. 确认合并顺序:先 objectstack-ai#9369,再本 PR。
2. 作为受管面的人工合并方给出 APPROVED review(这一道是 `check-governed-queue-guard`
机械要求的)。
3. clause-② 的 `needs:contract-review` 需要一份书面复核记录后才清 —— ⛔
两道保障叠加,人工合并不替代它。
4. 顺带定一句话:本仓单文件 `skills/` 改动到底要不要写空 frontmatter changeset(objectstack-ai#9352 没写、objectstack-ai#9374
写了,门禁两边都放行)。

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


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

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: os-zhuang <jack@objectstack.ai>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

2 participants