This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
fix(skills): teach the honest test-double idiom in testing.md, retiring its three bare-any rows - #7496
Merged
Conversation
Retire the three `KNOWN_BARE_ANY_EXAMPLES` rows over `skills/objectui/guides/testing.md` by fixing the two fences they cover, and delete the rows in the same commit so none of them can go stale. Pattern 3 (schema validation). `validateSchema` is declared `validateSchema(schema: any, path?: string)` in the BUILT `packages/core/dist/validation/schema-validator.d.ts`, so the parameter already takes the invalid value as-is. The `as any` asserted nothing and only hid the input, so it is deleted rather than replaced by a second assertion. Pattern 7 (DataSource adapter). `ObjectStackAdapter` exposes a public seam — `getClient()` hands back the very `ObjectStackClient` the adapter calls, as the adapter's own `installSaveAdvisoryInterceptor` doc states — so the double now goes through it with `vi.spyOn`, checked against the client's real signature, and the private-field reach is gone along with the `any`-typed handle. Typing the double against the real client also exposed two claims the `any` had been hiding, both corrected here because the same lines were being rewritten: the adapter delegates to `client.data.find`, not `client.find`; and it lowers `$filter` into the ObjectQL AST (`convertQueryParams` then `convertFiltersToAST`) before the call, so a `filter` key was silently dropped and the assertion could never have matched. `connect()` reads discovery through the injected `fetch`, not through the client, so the fence stubs that too. Both fences stay MARKED. The gate reports 17 of 17 ts fences judged, 0 failed, and exactly one declared bare-`any` row left with 0 not declared and 0 stale. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LraLgQVGq8egUwfYZpbYt1
This was referenced Sep 3, 2026
The same idiom as the two fences the previous commit fixed, in the same guide:
`skills/objectui/guides/testing.md` doubled the auth client with an `any` cast.
Its fence is UNMARKED, so nothing type-checked it, and the `any` was hiding four
separate falsehoods that typing the double surfaces at once:
1. `AuthProvider` has no `authClient` prop. `AuthProviderProps` extends
`AuthProviderOptions` (`packages/auth/src/types.ts:513`), whose seam for an
already-created client is `client`.
2. `authUrl` is REQUIRED on those options and the example omitted it.
3. `getSession` resolves the user and session directly
(`packages/auth/src/types.ts:306`), never wrapped in a `data` envelope, so
the provider would never have reached the authenticated branch the test
asserts.
4. `AuthUser` requires `email` (spec `contracts` AuthUser), which the stubbed
user lacked.
The double is now a `Partial` of `AuthClient` whose member is typed against
`AuthClient` indexed at `getSession`, so the key, the signature and the resolved
value are all checked; the widening to the full interface happens once, in a
named place. That is the shape `@object-ui/auth`'s own `AuthProvider.test.tsx`
already uses for the same interface, which declares ~38 methods.
The fence stays UNMARKED and keeps its language tag — marking is outside this
card, and marking it would enlarge the gate's derived build set.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LraLgQVGq8egUwfYZpbYt1
os-zhuang
approved these changes
Sep 3, 2026
os-zhuang
marked this pull request as ready for review
September 3, 2026 14:30
akarma-synetal
pushed a commit
to akarma-synetal/objectui
that referenced
this pull request
Sep 9, 2026
…ectstack-ai#7685) * chore(deps): resolve @objectstack/spec at 17.3.0 in the lockfile Moves the `@objectstack/spec` resolution in `pnpm-lock.yaml` from 17.2.0 to 17.3.0. Every one of the 30 manifests that declare the dependency already carried a range admitting it (`^17.0.0` / `^17.1.0` / `^17.2.0`), so the declared specifiers are untouched and no published dependency declaration changes by a byte; `check-changeset-presence` confirms the range independently ("0 of them a manifest whose published contract moved"). The bump is committed on its own because the reconciliation it forces is not mechanical: 17.3.0 reddens 14 test files / 36 assertions across six packages, and at least four of those reds are public-contract decisions rather than pin updates. The PR body carries the full measured red set. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E * fix(app-shell,scripts): reconcile the declared-symbol surface with @objectstack/spec 17.3.0 (objectui#7122) Three repairs, each prescribed by the thing that failed. 1. `SchemaDiffEntryKind` gained `unreachable` in 17.3.0, so app-shell's deliberately-total `DIFF_LABEL` map stopped compiling — TS2741, the single error behind the `Build packages: failure` CI reported on this branch. The map is total on purpose so an upstream addition fails the build instead of rendering a blank cell; that mechanism worked. Labelled "Not checked — remote unreachable", following the spec's own ruling that this kind asserts NOTHING about the remote schema and must never be surfaced as "schema changed". 2. 17.3.0 began exporting `FlowNodeLike` from `@objectstack/spec/system`, so app-shell's two same-named local declarations became shadows. Measured rather than assumed: the spec's `id?` is OPTIONAL where the inspector's is REQUIRED, and assignability runs one way only, so importing the spec export would silently widen away the guarantee `locateFlowNode`'s callers rest on. Genuine dialects ⇒ renamed to `InspectorFlowNode` and `ScopeFlowNode`, with the tripwire rows the guard asks for in `page-nav-misc-spec-parity.test.ts`. 3. The `BreakpointName` / `BreakpointColumnMap` ALLOW entries were written self-expiring: they covered the interval while objectstack#11027's retirement was merged but unreleased, and their own text said to delete them on the pin bump and move the names to the absence pin. 17.3.0 published the retirement, ratchet 3 failed them as excusing nothing, so both are deleted and both names are pinned absent instead. `node scripts/check-spec-symbol-derivation.mjs` — exit 0 (was 1 with three findings): 1345 files scanned, 18 declared dialects. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E * test(types,plugin-form,auth): re-point the citation-stripped pins at the prescription (objectui#7122) `@objectstack/spec` 17.3.0 stripped the `#NNNN` issue-number citations from its refusal messages while keeping the prescriptive half intact. Sixteen assertions were pinned on the stripped half and went red; each is re-pointed at what the refusal still carries, which is the half the pins' own comments name as the point — "the prescription is the half that makes the refusal actionable for an author; asserting only `success === false` would stay green if it were reduced to 'Invalid input'". - `submitRedirect.test.ts` (13): `objectstack-ai#7496` -> `ruled 2026-08-11`. The refusal still cites its governing ruling, now by date rather than by issue number; the key-name and non-genericity assertions are untouched. - `export-options-spec-parity.test.ts`: `/8010|1301/` -> the surviving format list and the `os migrate meta` command, i.e. the actionable repair itself. - `report-chart-query-spec-parity.test.ts`: `'objectstack-ai#4876, ADR-0049 D2'` -> the ADR reference, which survived, plus the `Delete the key.` prescription. Separately, the `PreviewModeConfig` doc-provenance ratchet FIRED and is retired exactly as its own docblock prescribed ("correct the README line … and then delete this guard, which has no reason to outlive the sentence it protects").⚠️ The docblock expected that at spec major 18 — objectstack#11846 registered the retirement in `RETIRED_DEFS_BY_MAJOR[18]` — and it arrived in a MINOR instead, one of four public type exports 17.3.0 removed with no major signal. The capability is untouched: `previewMode` is host-supplied and stays. Verified: `pnpm exec vitest run` over the five affected files — 5 passed, 150 tests passed, exit 0. The edited gate script's own pin suites (`check-spec-symbol-derivation.test.ts`, `check-doc-component-types.test.ts`) — 2 passed, 108 tests, exit 0. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E * chore(changeset): declare the app-shell/auth reconciliation the 17.3.0 bump forced (objectui#7122) The branch previously declared 'no release' with empty frontmatter, which was true while its only diff was the lockfile. It no longer is: `@object-ui/app-shell` needed a source fix to compile against 17.3.0 at all, and `@object-ui/auth`'s README carried a provenance claim 17.3.0 falsified. Both are declared as patches; the lockfile-only changeset keeps its own empty-frontmatter declaration. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E * fix(core): re-derive the spec action-key inventory for 17.3.0's `operation` / `patch` (objectui#7122) `SPEC_ACTION_KEYS` declares itself as "every property `@objectstack/spec`'s `ActionSchema` declares", and `actionKeys.pin.test.ts` walks the schema and fails the day that drifts. 17.3.0 added `operation` and `patch` — the declarative single-record field write mirroring a list view's `bulkActionDefs` — so the inventory was stating something false. Restating the spec, NOT adopting a feature, exactly as the `description` entry above it records for the same situation: `ActionDef` still does not declare either key, no runner branch reads them, and no action surface forwards them. That omission is deliberate under the maintainer's 2026-09-05 ruling on this bump — record them as justified omissions now, forward only a key a runtime actually reads once its semantics are read from upstream, no speculative forwarding.⚠️ Deliberately checked rather than assumed: the inventory feeds `KNOWN_ACTION_KEYS`, which `classifyActionKeys` consults — and that function only builds `unknown` / `retired` lists for a dev-mode console warning. It rejects nothing and drops nothing, so widening it does not move what any published `@object-ui/*` package accepts or refuses. Clause-② stays `no`. Verified: `pnpm exec vitest run packages/core/src/actions/` — 24 files, 427 tests, exit 0. `node scripts/check-action-forward-parity.mjs` — exit 0, still 19 justified omissions / 7 known gaps, so no new gap was opened. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E * docs(auth): state the preview-mode provenance without a version literal (objectui#7122) `scripts/__tests__/doc-version-claims.test.ts` is a ratchet over version literals on doc surfaces, and my first correction of this sentence introduced one. Its prescription is explicit — prefer DELETING the literal and pointing at the truth instead, because that is the only spelling that cannot go stale (objectui#3645 froze a spec range across 36 READMEs for thirteen majors exactly this way). The sentence now names the upstream retirement and the fact that the resolved spec no longer exports the symbol, with no version to go stale. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E * chore(deps): resolve the @objectstack/* family at 17.3.0 so the spec dedupes `@objectstack/client`, `core`, `formula` and `lint` at 17.2.0 each pin `@objectstack/spec` EXACTLY at 17.2.0. Resolving the spec alone to 17.3.0 therefore stopped satisfying them, and the console shipped TWO copies of the spec: `vendor-objectstack` went 926.1 -> 1877.6 KB gzip and the eager closure went 3186.1 -> 4137.7 KB against a 3191.4 KB budget, with no chunk entering or leaving the closure. Moving the family in the lockfile collapses the duplicate. Every declared range already admitted 17.3.0 (`^17.0.0` on all four), so no manifest's published contract moves by a byte -- `check-changeset-presence` independently reports "0 of them a manifest whose published contract moved". The lockfile was resolved by raising the four ranges temporarily, resolving, then restoring the manifests and re-installing, so `pnpm update`'s two side effects are absent: no declared range moved, and `zod` stays at 4.4.3 rather than splitting the `@objectstack/*` peer context into two variants (which would have re-introduced the very duplication this commit removes). Measured after: eager closure 3466.1 KB, `vendor-objectstack` 1206.1 KB. The duplicate IS gone -- markers unique to the 17.2.0 artifact fall from 92.3% to 9.2% presence in the chunk, and `defaultValue` occurrences fall 413 -> 258 against a 203 baseline. What remains is real growth, not duplication: the spec's own browser dist is +292.2 KB gzip at 17.3.0. `check:eager-closure` therefore stays RED by 274.7 KB, which no repair inside this repo can answer. The family bump forces exactly one source reconciliation, and no new test reds. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E * test(types): re-point the select-option pins at 17.3.0's authoring boundary `@objectstack/spec` 17.3.0 implements the maintainer's 2026-08-25 ruling on objectui#6140 / objectui#6153 (Option A): `SelectOptionSchema.description` and a type-gated `rows` become declared, authorable keys. Two pin files still asserted the 17.2.0 truth -- that the spec REFUSES both -- so they were measurably false, and one of them was the only remaining `Type Check` blocker (TS2344 at lines 101 and 124). Re-pointing them executes the ruling; it makes no new one. Measured against the installed 17.3.0 rather than read from a changelog: `SelectOptionSchema` declares six keys (`color`, `default`, `description`, `label`, `value`, `visibleWhen`); `rows` is accepted on `textarea`, `markdown`, `html` and `richtext` and refused on `text` / `select` as a `custom` refinement rather than `unrecognized_keys`; `icon` and `disabled` are still refused by name, at `options.0` when routed through `FieldSchema`. The boundary moved, it did not disappear, so every re-point keeps a refusal opposite it: - `description` and `rows` are asserted ADMITTED **and** value-enforced (a wrongly-typed `description` is `invalid_type` at its key; `rows: 0` is `too_small`, `rows: '4'` is `invalid_type`). A merely-tolerated key passes the first assertion and fails the second, which is what makes the pair a reading. - `icon` / `disabled` carry the refusal half, so a schema that had gone permissive cannot pass either file. - The four inert rich-text keys (`toolbar` / `preview` / `minHeight` / `maxHeight`) are newly pinned as still-refused on all four multiline types. The ruling's expansion stops at `rows` (objectui#7635 records this: do not widen), and that door has to be seen to stay shut. - `rows`'s type gating is pinned in both directions, because "declared" is not "declared everywhere". In the convergence file the type-level halves moved for a reason worth stating: `SelectOptionBase` derives the spec's keys BY REFERENCE, so `description` arrived on BOTH faces with no edit to the type at all. The form face's pre-convergence equality therefore became a SET DIFFERENCE -- the same idiom the object-metadata face has used for `default` since the convergence -- and the "the two faces differ on exactly `value`" assertion now says so directly instead of excusing `description` from the comparison. NOT done here, deliberately: the prose in `packages/types/src/field-types.ts` and `select-option.ts` still describes the 17.2.0 boundary and is now false in the other direction. Those comment sites are objectui#7635's declared surface. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E * chore(deps): collapse the postcss duplicate the first lockfile bump introduced `@object-ui/cli` failed `type-check` with `TS2321: Excessive stack depth comparing types 'Plugin & ExportedAPI' and 'Plugin'` in `src/utils/workspace-vite.ts`, a file this branch never touched. Cause, measured rather than inferred: the CLI's type-check program held TWO postcss copies. `@tailwindcss/postcss@4.3.3` depended on `postcss@8.5.26` while `autoprefixer@10.5.4` resolved its auto-installed peer to `postcss@8.5.28`, so `Plugin` on one side and `Plugin & ExportedAPI` on the other were structurally distinct types and the comparison exceeded the instantiation budget. `origin/main` has a single `autoprefixer@10.5.4(postcss@8.5.26)` and no 8.5.28 at all, which is why it is green. The duplicate is NOT from this round's family bump: `postcss@8.5.28` is present at `36baa6d57`, and the family-bump commit's lockfile diff touches neither postcss nor autoprefixer. It arrived with `aabc527cb`, the branch's first lockfile bump, whose own diff shows `postcss@8.5.26 -> 8.5.28` alongside the spec move. It stayed invisible because `turbo run type-check` aborts at its first failing task, and `@object-ui/types` failed before `@object-ui/cli` ever ran -- so "the 2 TS2344 are the ONLY Type Check blocker" was never a reading the old measurement could support. Collapsed in the lockfile only, by the same route as the `@objectstack/*` family: all eight manifests that declare postcss already declare `^8.5.26`, which admits 8.5.28, so the ranges were raised temporarily, resolved, then restored and re-installed. No declared range moved; `postcss@8.5.26` leaves the graph entirely and `@tailwindcss/postcss` now shares the single 8.5.28. `postcss@8.5.23` is a separate consumer, present on main too, and is untouched. After: `@object-ui/cli` `tsc --noEmit` exits 0. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E * wip(spec-17.3.0): parity reconciliation in progress — INCOMPLETE AND UNREVIEWED Rescue commit made by the PM seat after the dispatched dev was terminated mid-task by an account session limit (HTTP 429 on claude-opus-5, resets 2026-09-05T18:00Z). Committed so the work survives container reclaim; it is NOT a claim that any of it is correct, complete, or gated. Observed state at rescue time, and nothing beyond it: 18 modified files and 2 untracked changesets, 550 insertions / 115 deletions against the branch tip 339885d. No gate was run against this content by this seat. Not present in the diff: any change to an eager-closure ceiling or performance budget. The maintainer-authorised ceiling raise had not been made when the agent stopped. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E * wip(spec-17.3.0): two files in progress — INCOMPLETE AND UNREVIEWED Rescue commit made by the PM seat after the container running the dispatched agent was restarted mid-task. Committed so the work survives; it is NOT a claim that it is correct or finished. Observed state at rescue time, and nothing beyond it: M packages/plugin-designer/src/MetadataFieldsPage.tsx M packages/types/src/__tests__/export-options-spec-parity.test.ts 56 insertions / 49 deletions. No gate was run against this content. Not present: any change to an eager-closure ceiling or performance budget. The maintainer-authorised ceiling raise had still not been made. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E * fix(spec-17.3.0): carry the ninth platform capability, and pin refusals on their ruling not its issue number Two families of red from the `@objectstack/spec` 17.3.0 bump, both of which executed an existing ruling rather than making a new one. `manage_org_presentation` (3 assertions, `packages/fields`). 17.3.0 declares a ninth platform capability; `CURATED_CAPABILITY_LABELS` carried eight, so the spec-parity pin failed in the "spec added a member" direction it was built for (objectui#6285 already ruled the curated set IS the spec's set, both ways). The label is the spec artifact's own (`Manage Organization Presentation`), not an invented one. Authored in all ten locale packs and in `useFieldTranslation.ts`, which the widget's own docblock requires of any edit to that list; the nine non-English strings are composed from each pack's established sibling vocabulary (`manage_org_users`, `manage_platform_settings`) rather than machine-translated, and a native review pass is welcome on them. The `objectstack-ai#7496` token (14 assertions, 3 files). Every one was `expected '<message>' to contain 'objectstack-ai#7496'`, while the sibling assertions on `RELATIVE path only` stayed green: 17.3.0 kept all five refusals and their reasoning and only restated provenance as `(ruled 2026-08-11)`. The pins asserted the citation FORM, not the citation — the objectui#7702 defect shape. Re-pinned on the durable property via a documented `CITES_ITS_RULING`, which still discriminates the spec's prose from a local hand-written sentence (the load-bearing mutation probe in `ObjectForm.submitRedirect.test.tsx`'s header). Not re-pinned to the new prose verbatim, which would only move the brittleness. Part of objectstack-ai#7122 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E * fix(spec-17.3.0): harvest three exemptions the contract outgrew, and re-derive two negative pins The rest of the 17.3.0 red set outside the `objectstack-ai#7496` and capability families. Every verdict below is read off the installed artifact, not off an assertion name or a changelog. `registry-inputs-spec-parity` (5 assertions). Four of the five were ONE fact wearing four assertion names, two of which appear to point in opposite directions ("a published key must lose its entry" vs "spec no longer declares object-grid.defaultSort"). Neither reading is right: 17.3.0 made `object-grid.defaultSort` an ADR-0087 D2 TOMBSTONE — member is `z.never().optional()`, description opens `[REMOVED]`, `safeParse` answers `invalid_type` `expected: 'never'` at that path. It therefore left the authorable set while staying listed, which is precisely how the eight tombstones before it were harvested. Its exemption, its GA-pending entry and its carve-out row are deleted, and the block's prose parenthetical claiming a tombstone "would NOT make them stale here" is corrected — its own cited counter-example, the record_picker trio, was harvested exactly that way. The fifth emptied `OFF_SPEC_ARM_EXEMPTIONS` entirely: both arms converged upstream in the direction their own reasons named. `element:number.filter` now accepts `[]` and judges content at `filter.0` (objectui#6206's first option); `object-grid.data` now answers `invalid_union` at `data.provider`, the discriminated `ViewDataSchema` shape `ObjectGridSchema.data` already resolved to (objectui#6207's "convergence is upstream"). Neither declaration was edited — the contract moved to them. objectstack-ai#6206 and objectstack-ai#6207 are closable as resolved-upstream. Two negative pins whose premise evaporated, both re-derived rather than inverted: - `masterDetailFormTypeManifest` pinned that the manifest enum does NOT make a value unpublishable. 17.3.0 closed that gap deliberately: `invalid_value` naming the honoured pair, plus a bespoke prescription for the near-miss `wizard` citing ADR-0001 and the renderer measurement. The pin now records that both authorities agree, checks each independently, keeps a positive control on `simple`/`tabbed`, and pins the refusal's SHAPE so "the enum closed" cannot be confused with a dropped key or a cross-field rule. - `LocationField.optionalKeys` pinned that the location value schema is non-strict. 17.3.0 closed the shape (`unrecognized_keys` naming the retired `latitude`/`longitude` pair). The test carried a note for this exact event — "the guard could then be delegated to it" — and the re-derived answer is NO: the fence guards the object handed to `onChange` and no parse stands on that path, so strictness changed the CONSEQUENCE of a spread regression, not the widget's exposure. The key-level assertions stay; the strictness is pinned. Part of objectstack-ai#7122 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E * docs(changeset): describe the 17.3.0 capability carry and the pin re-pointing Two changesets for the work in dc82492 and e328e36: a released one for the `manage_org_presentation` label (`@object-ui/fields`, `@object-ui/i18n`), and an empty-frontmatter one for the test-only pin re-pointing and exemption harvest, which releases no package. Part of objectstack-ai#7122 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E * chore(budget): raise the eager-closure ceiling once, on maintainer authorisation, to 17.3.0's measured cost Raising a gate ceiling is a gate weakening and sits on the manual floor, so it is a human's decision, not an agent's. The authorisation, verbatim: 维护者 sam@objectstack.ai 于本轮明确授权:「抬上限,把 7685 弄绿」 recorded on objectui#7122 as decision batch 1 item 1 = "B + A" — a one-time, cause-recorded adjustment of exactly the measured delta, with the upstream card filed alongside. ⛔ NOT routine growth, and the body must not read as if it were. The residue is `@objectstack/spec` 17.3.0's own browser-dist growth: +292.2 KB gzip on the spec package, whose measured mechanism is that 17.3.0 lengthened the Zod `.describe()` doc strings shipped in the browser build — authoring documentation prose, delivered on every page load. ⛔ NOT duplication either. That was the larger, separate problem and this branch already fixed it by moving the `@objectstack/*` family together in the lockfile: −671 KB, with markers unique to 17.2.0 falling from 92.3% to 1.0% of 104 and the single survivor accounted for. No chunk entered or left the closure. ⭐ The honest long-term fix is upstream and this ceiling is its marker, not its answer: a `describe()`-stripped browser build returns ~292 KB to EVERY consumer of the spec. Filed as objectstack#16063 and recorded in the gate as the restore condition. Four constants, two ceiling/baseline pairs, measured by `pnpm build` (exit 0, 43/43 — 43/43 CACHED on the re-read, which observes rather than argues the "nothing here reaches the bundler" invariant) reading apps/console/dist/eager-closure.json on 34a1578: MAX_EAGER_CLOSURE_GZIP_BYTES 3_268_000 -> 3_597_000 BASELINE 3_222_314 -> 3_551_191 (48/517 -> 50/518) PER_CHUNK_GZIP_CEILINGS.vendor-objectstack 967_000 -> 1_254_000 PER_CHUNK_BASELINE.vendor-objectstack 948_461 -> 1_235_029 Headroom is 45,809 (0.50x) and 18,971 (0.21x) of the 91,136-byte regression the gate exists to catch — the proportions the retiring pairs carried (0.50x, 0.20x) — so the gate still reds on a repeat of objectui#5266. `check:eager-closure` exits 0 with sensitivity ✅ on all five ceilings. The three per-chunk lines that still pass (i18n-locales, framework, ui-components) were NOT touched. The unit test moves with the constants because it deliberately retypes `BASELINE.gzipBytes` rendered (3146.8 -> 3468.0) rather than deriving it, and the baseline prose pins are re-pointed at the new commit. Part of objectstack-ai#7122 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E * fix(app-shell,plugin-designer): declare the lookup guard's stricter-than-spec refusal, and make its message accurate (objectui#7122) The guard's predicate is `typeof reference === 'string' && reference.trim() !== ''`, which is STRICTER than the contract. Measured on the installed 17.3.0, at field level and again through the whole document: FieldSchema.safeParse({ type: 'lookup', label: 'L', reference: ' ' }) => success = true ObjectSchema.safeParse({ …, fields: { rel: { …, reference: ' ' } } }) => success = true — the spec ACCEPTS a whitespace-only target and both writers refuse it. objectui being stricter than the platform is a divergence, not a neutral choice, so it is now STATED: in both docblocks, in the changeset, in the refusal message the author actually reads, and pinned in both writers' tests so it cannot go silent again. ⭐ The `.trim()` is KEPT. A whitespace-only `reference` names no object, so admitting it buys the author nothing and only moves the identical failure past the guard, past the PUT and into a stored document, where it surfaces with no field named. This guard exists precisely to stop a target-less lookup being saved, and a blank target is a target-less lookup that happens to parse. ⛔ No accept/refuse behaviour changed: the predicate is byte-identical.⚠️ The spec accepting `' '` while refusing `''` reads as an upstream gap rather than deliberate latitude — its own refusal prose says "non-empty … naming the target object", and `ObjectSchema.fields`' key grammar (/^[a-z_][a-z0-9_]*$/) admits no whitespace-bearing name for it to resolve to. Filed as objectstack#16126; the new pins are designed to go red when it lands, which is the signal to retire the declaration, not to weaken the guard. The message is also corrected. It said the field "has none" for every refused value, which is wrong for two of the four states: a non-string `reference` is refused as `invalid_type` at that path, not as a missing target (so "supply a target" is the wrong repair to prescribe for `reference: 42`), and a whitespace-only one is not refused by the spec at all, so the 422 the message promised could not be delivered for it. Each of the four states now gets its own accurate diagnosis and consequence, via a `describeUnusableTarget` split out in both writers. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E * test(plugin-form,console): tighten CITES_ITS_RULING, and make the fourth pin use it (objectui#7122) Two pin-quality defects the contract review found in this branch's own re-point, both of the shape this card has been fixing all round. **The loose alternative discriminated nothing.** The regex was first written `/\(ruled \d{4}-\d{2}-\d{2}\)|#\d{3,}/`, two alternatives meant to admit either spelling upstream uses. But `#\d{3,}` matches any sentence citing `objectui#NNNN`, and this repo's own hand-written messages routinely do — so a locally authored sentence satisfied it, and telling those two apart is the assertion's entire job. Only the `(ruled …)` half was ever load-bearing. It was also unnecessary, which is the measurement that settled it. Both spellings, read off the installed artifacts rather than recalled: 17.2.0 "… and this is an absolute URL (ruled 2026-08-11 on objectstack-ai#7496)." 17.3.0 "… and this is an absolute URL (ruled 2026-08-11)." The issue number never appears OUTSIDE that parenthesis, so `(ruled ` + a date already matched both releases on its own. It is now `/\(ruled \d{4}-\d{2}-\d{2}(?: on #\d{3,})?\)/`: the optional tail keeps the 17.2.0 spelling admissible — the two-form latitude the alternative was added for — without admitting a bare local `objectstack-ai#7122`. Verified against both measured messages and against four local-prose counter-examples. **The fourth file was the odd one out.** `packages/plugin-form/src/submitRedirect.test.ts` had been re-pointed to the literal `'ruled 2026-08-11'` while its three siblings used the shape — the same brittleness one word along, a date instead of an issue number, and four files disagreeing about what the pinned property even is. It now carries `CITES_ITS_RULING` too, with the reasoning. Test-only; no runtime byte moves. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E * docs(changeset): grade objectui's own breaking behaviour `minor`, with the semantics (objectui#7122) `AGENTS.md:239` grades objectui's own breaking changes `minor` — never `major`, because any `major` in the fixed group pushes all 39 packages off `@objectstack`'s major — with the breaking semantics written into the changeset body. Three package entries were graded `patch` and should not have been. - `@object-ui/app-shell` + `@object-ui/plugin-designer` → `minor`. A `lookup`/`master_detail` field with a missing or empty `reference` is now refused before any PUT; a caller that previously got a request issued (and accepted by a 17.2.0 backend) now gets a rejection and no request at all. The changeset also declares the whitespace-only divergence and the message correction (objectstack#16126). - `@object-ui/types` → `minor`. The exported `ObjectSchemaClientExtensions` narrows from `interface { editMode?: 'modal' | 'page' }` to `type … = Record<never, never>`. Two breaking consequences, both named: it no longer declares `editMode` (the spec's `ServiceObject` now carries it, so `ObjectSchemaMetadata` still has it but code written against the extension type alone does not), and `interface` → alias ends declaration merging, so a consumer that reopened the interface to add its own member no longer compiles. The pin-repointing changeset additionally records the `CITES_ITS_RULING` tightening and the fourth file (test-only, empty frontmatter, releases nothing). Gates: check-changeset-presence 0, -fixed 0, -no-major 0. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E * ci(live-e2e): move the backend pins to 17.3.0 with the matching showcase ref This branch's lockfile resolves `@objectstack/spec` to 17.3.0, but `e2e/live/ci/backend.env` still pinned `OBJECTSTACK_VERSION=17.2.0`. The pin test imported from main (`scripts/__tests__/ci-cd-pipeline-doc.test.ts`) reads both numbers and requires them equal, so the lockfile bump — this PR's whole purpose — is what trips it. Fix it in the direction the change came from, as that test's own message instructs. Both lines move together. `OBJECTSTACK_REF` is not machine-checked, by design: resolving the release tag needs the objectstack repository, which the unit lane cannot reach. Bumping only the version would turn the gate green while pointing the live-e2e lane at showcase metadata from the wrong tree. The ref is the commit `@objectstack/cli@17.3.0` points at. That tag is annotated, so it must be dereferenced: `refs/tags/@objectstack/cli@17.3.0` is tag object 1177d3ee591f72e3b8c828fbec46f4e113ff5c4a, which peels (`^{}`) to commit 8a1bad8b8ee7189a54229368400b5b427e3ad5e2. The tag-object sha is not the commit sha, and `start-backend.sh` does `git fetch --depth 1 origin "$OBJECTSTACK_REF"`, so the un-peeled sha would have been silently wrong. No declared dependency range and no published package's accept/refuse behaviour is touched: `e2e/` is not a workspace package and ships in nothing. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E * docs(plugin-list): give the view-type map its tenth member, `page` The map in `packages/plugin-list/README.md` is keyed by `NonNullable<ListViewSchema['viewType']>`, so it is total by construction and a member added to the union fails the block. The map arrived on main (objectui#8110) written against @objectstack/spec 17.2.0's nine members; this branch pins the spec at 17.3.0, which declares a tenth, `page`. The two are only in the same tree as of this merge, which is why the branch's own Doc Snippet Type Check ran green and the failure appears here: packages/plugin-list/README.md:200:7 TS2741: Property 'page' is missing in type '{ grid: …; tree: string; }' but required in type 'Record<NonNullable<"map" | … | "page" | …>, string>'. The gloss is read off the installed 17.3.0 artifact, not guessed: `node_modules/@objectstack/spec/src/ui/view.zod.ts:1655` declares the member as "Mount an already-published page", and the two refusals that police it — VIEW_PAGE_MOUNT_NEEDS_PAGE_NAME (:1492) and VIEW_PAGE_MOUNT_HAS_COLUMNS (:1502) — both say the view has no rows and no column list of its own. Phrased like its nine siblings: one terse rendering of what the reader sees, naming no driving field. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E * chore(changeset): drop the lookup-guard declaration — this branch no longer authors it Part of objectstack-ai#7122. `.changeset/7122-lookup-target-required-before-save.md` graded `@object-ui/app-shell` and `@object-ui/plugin-designer` as `minor` *because of* the lookup / master_detail target guard, with the breaking semantics and the declared whitespace divergence written into its body. Every one of those claims now belongs to objectstack-ai#8076's `.changeset/7714-lookup-draft-stays-client-side.md`, which arrived on `main` with the guard itself. Determined mechanically against `bdb4dbd58`, not by reading the body: git diff --name-only bdb4dbd -- packages/plugin-designer => empty git diff --name-only bdb4dbd -- packages/app-shell => 15 files - `@object-ui/plugin-designer`: this branch changes nothing in it any more, so the entry declared a release for no change at all. - `@object-ui/app-shell`: still changed, but only by the spec-17.3.0 parity work — the ValidationPanel `unreachable` label, the flow-inspector renames, the palette-exclusion ledger, and three pin re-points. That surface already carries its own accurate declaration at the grade it warrants, `.changeset/7122-spec-17-3-0-reconciliation.md` (`patch`), which names those changes specifically. So app-shell IS regraded here, from `minor` to `patch`: the `minor` claim is withdrawn and the pre-existing `patch` entry stands. Rewriting this file's body instead of deleting it would have duplicated that declaration; nothing in it survives the guard's departure. Arbiter, exit code captured before any pipe: node scripts/check-changeset-presence.mjs => exit 0 "48 source file(s) of 12 released package(s) changed, and this change declares 8 changeset(s)" node scripts/check-changeset-no-major.mjs => exit 0 node scripts/check-changeset-fixed.mjs => exit 0 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E * test(console): ledger the three blocks @objectstack/spec 17.3.0 adds with an empty shape Part of objectstack-ai#7122. The `main` merge brought objectstack-ai#8212's census gate onto the 17.3.0 pin for the first time, and it did exactly what it exists to do: it named three `ComponentPropsMap` entries this gate neither judges nor accounts for. accounts for every spec-carried block … + ["cloud-connection:panel", "marketplace:installed-list", "mcp:connect-agent"] states the size of the population it judges - specCarried: 42 + specCarried: 45 One fact, two assertions. All three are new in `@objectstack/spec` 17.3.0 and MEASURED on the installed artifact, not inferred: each resolves to an object schema with ZERO top-level keys, so neither direction of this gate has a question to ask about them. That is the ledger's `EMPTY SPEC SHAPE` class, and the entries are asserted against `specTopLevelKeys(type) === []` — self-clearing the day upstream gives one of them an authoring surface.⚠️ EMPTY SPEC SHAPE is recorded rather than NOT REGISTERED even though both ledger arms happen to pass here, and the difference is truth, not convenience: `@object-ui/app-shell` DOES register all three propless (`CloudConnectionPanel.tsx`, `InstalledListWidget.tsx`, `ConnectAgentWidget.tsx`), and this file does not import app-shell — so the NOT-REGISTERED arm would be satisfied by an import-graph accident while stating something false about the repo. `app:launcher` and `global:notifications` are ledgered on exactly this reasoning already. ⛔ Not a gate weakening, and the distinction is checkable rather than asserted: no threshold moved, no exemption widened what the gate tolerates, and `judged` and `registeredPropless` are unchanged at 29 and 7 — the pin ADDED three blocks rather than moving any across the partition. Also de-counts one sentence in the ledger's docblock. "the recorded reason even for the two the app shell does register" was a LIVE figure that this change makes five and nothing pins; it now names no count and says why. pnpm exec vitest run apps/console/src/__tests__/registry-inputs-spec-parity.test.ts Tests 198 passed (198) (was 2 failed | 196 passed) Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E * fix(types): raise the declared @objectstack/spec floor to ^17.3.0 Part of objectstack-ai#7122. Closes the `[floor-too-low]` finding on objectui#7688 for `@object-ui/types`. `packages/types/dist/spec-report.d.ts` names `FilterCondition` from `@objectstack/spec`, which `17.0.0` does not export, so `^17.0.0` was a claim the artifact does not support. `scripts/check-spec-range-floors.mjs` names `^17.3.0` as the lowest published version carrying every symbol the package references, and raising the range is the remedy the gate itself prescribes — ⛔ never a tolerant re-declaration on this side (objectui#5793).⚠️ THIS IS BUMP-CAUSED, NOT PRE-EXISTING, and objectui#7688 records the opposite. Measured on both sides today rather than reasoned about: main (spec 17.2.0) `Spec Range Floors` — the last EIGHT scheduled runs are all `success`, most recently at `c2e3cee2c` 04:27Z. CI builds the workspace, so none is the `no-artifact` shape that card's own caveat warns about. this tree `pnpm check:spec-floors -- --cross-check` (the workflow's (spec 17.3.0) own invocation, after `pnpm build` 43/43) exits 1 with exactly this finding; 278 (subpath, symbol) pairs across 19 published packages judged, 49 entry points cross- checked. With this raise it exits 0 on the same tree. That card's justification — `runtimeFilter?: FilterCondition` is byte-identical in the 17.2.0 and 17.3.0 artifacts — is a claim about the SPEC's artifact. The gate reads what `tsc` emits for THIS repo while resolving against the installed spec, which is a different thing. ⛔ The mechanism behind the divergence is NOT measured here and is deliberately not guessed at; only the outcome is. Why it could not wait for objectui#7688: the PR-facing copy of this gate is push-only and by its own header "cannot make anyone's pull request red", but the blocking copy runs on the PUBLISH path. Left alone, the first symptom would have been a cancelled release rather than a red check. Graded on `@object-ui/types`'s existing `minor` entry, which already carries a breaking-surface declaration; the raise is written into its body. Breaking for a consumer pinned below 17.3.0, which can no longer resolve the package. Precedent for a floor above the family minimum: `@object-ui/core` and `@object-ui/data-objectstack` declare `^17.2.0`, `@object-ui/plugin-detail` `^17.1.0`. ⛔ Raising a published range was previously ruled out for this branch (objectstack-ai#7685 §8, "Not raised here, as instructed") on the premise that the finding was old debt. The measurement above retires that premise, and the maintainer authorised the raise on this branch after seeing it. The lockfile moves by exactly one line — the recorded specifier. The RESOLUTION is unchanged at `17.3.0(ai@7.0.65(zod@4.4.3))`, so no dependency moves and `ci-cd-pipeline-doc.test.ts`'s backend.env/lockfile equality still holds. Gates on this tree: `check:spec-floors -- --cross-check` 0 (was 1), `check-changeset-presence` / `-no-major` / `-fixed` 0, `check:phantom-deps` 0, `check:control-bytes` 0. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E --------- Co-authored-by: os-sam <sam@objectstack.ai> Co-authored-by: Claude Opus 5 <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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Fixes #7494
Retires the three
KNOWN_BARE_ANY_EXAMPLESrows overskills/objectui/guides/testing.mdby teaching the honest test-double idiom, deletes the rows in the same commit as the guide
edit, and — second commit — applies the same idiom to the third
anycast in the sameguide (Pattern 6, the auth double), which was an unmarked sibling of the two gated ones.
Both gated fences stay MARKED and the Pattern 6 fence stays UNMARKED; no marker was added
or removed anywhere. Row 384,
plugin-development.md:92 property defaultValue, is #7493'sand is left in place.
Governed surface (
skills/**): this PR stays a DRAFT for a human merge. Not flipped ready,not enqueued, no auto-merge, no requested reviewers.
Head
45136c1, two commits, one file plus the gate's baseline:testing.mdandscripts/check-skill-examples.mjs.A note on how this body is written
GitHub's body sanitizer deletes tag-shaped fragments, and backticks and fenced blocks do
NOT protect them (AGENTS.md records six measured rewrites; the first report comment on the
card lost a JSX line to exactly this and was repaired in a follow-up). So generics and JSX
in this body are spelled in WORDS — "Partial of AuthClient", "an AuthProvider element" —
never with literal angle brackets. The committed bytes are in the diff.
Row 1 —
testing.md:60as anyassertion (Pattern 3, schema validation)Measured against the BUILT type,
packages/core/dist/validation/schema-validator.d.ts:72:The parameter takes the value as given, so nothing had to be asserted to hand the validator
something invalid. Per the flight rule (delete the cast when the parameter already accepts
the value; otherwise name the real type) the cast is DELETED, not replaced.
Before:
After:
Rows 2 and 3 —
testing.md:208variablemockClientand itsas any(Pattern 7, DataSource adapter)packages/data-objectstack/src/index.ts:2149holds a privateclientfield of typeObjectStackClient, assigned once in the constructor (:2237). A PUBLIC SEAM exists:getClient()at:4096returns that same instance, and the adapter's own doc comment at:2856says so — "every caller outside it via getClient, which hands back this sameinstance". So the private-field reach is dropped entirely and the double goes through the
seam with
vi.spyOn, checked against the client's real signature. There is noclientconstructor option and no public setter, so the ts-expect-error fallback did not apply.
Before:
After:
Three claims the
anyhad been hiding became checkable and were all false; each iscorrected, each is measured. (a) The adapter calls the client's
data.find(
index.ts:2454), never a top-levelfind. (b)filteris not aQueryParamskey:packages/types/src/data.ts:43declares$filter, and the interface's[key: string]: anyindex signature is what let the misspelling compile;convertQueryParams(index.ts:3817) reads only the dollar-prefixed keys, sofilterwasdropped and the old assertion could never have matched. The asserted AST value is what
convertFiltersToAST(packages/core/src/utils/filter-converter.ts:107) returns for onesimple equality. (c)
findawaitsconnect(), which fetches discovery through theinjected
fetchconstructor option, not through the client, so with no stub the examplefailed at the network before delegating.
This is the one JUDGEMENT CALL a reviewer may want reversed. The assertion line had to be
rewritten regardless (the identifier
mockClientis gone), and writing a knowingly-falseline into a published guide is the same rot the guard exists to end. Restoring those three
lines' previous wording is a one-commit reversal that leaves the row retirement intact.
Third fence —
testing.md:173Pattern 6, the auth double (second commit)Same idiom, same guide, so it lands here rather than on a new card. The fence is UNMARKED
and STAYS unmarked; its language tag is untouched; the change is content only.
The gate had already proved the old fence wrong without being asked to: at the previous
head,
--measure(which judges EVERY candidate, marked or not) reportedMeasured shapes:
AuthProviderPropsextendsAuthProviderOptions(
packages/auth/src/types.ts:513), whose seam for an already-created client isclient(optional, of type
AuthClient) and whoseauthUrlis REQUIRED.AuthClient(
types.ts:299) declares roughly 38 methods; itsgetSession(types.ts:306) resolvesthe user and session directly, with no
dataenvelope.AuthUserrequiresid,emailand
name(speccontracts).Changes, line by line (angle brackets in words, per the note above):
@object-ui/authnow also brings in the typeAuthClient;const mockClient = {becomesconst stub:followed by Partial of AuthClient, then= {;getSession: vi.fn().mockResolvedValue({becomesgetSession: vi.fnparameterised byAuthClient indexed at
'getSession', then().mockResolvedValue({;data:envelope and becomesuser: { id: '1', email: 'alice@example.com', name: 'Alice' }, session: { token: 'abc' }—
emailwas missing and is required;authClientset tomockClient as any, toauthUrlset to the string/api/v1/authplusclientset tothe expression
stub as unknown as AuthClient;the provider reaches ONE on this path, so typing the literal and the stubbed member
checks the key, the signature AND the resolved value, and the widening happens once, in a
named place. Casting the double to
anyunchecks all three at once.Why a named widening rather than a
Pickor asatisfiesliteral passed straight in:the prop's type is the FULL
AuthClient, so no partial value is assignable to it withoutone widening step somewhere. Putting that step in one named place, over a literal that is
itself typed against the interface, is strictly stronger than the
anyit replaces, and itis the shape
@object-ui/auth's ownAuthProvider.test.tsxalready uses for this sameinterface — measured in the repo, not invented here. A ts-expect-error line was not used
because nothing here is expected to fail to compile.
Result at the new head, from the same
--measurerun:and the would-be bare-any population drops from 7 findings to 6, with the
testing.md:194row gone. The marked population is unchanged (17 ts fences, 0 failed, 1 declared row), and
the gate's derived
--build-filteris byte-identical to before —@object-ui/authisstill not in it, which is the mechanical confirmation that the fence stayed unmarked.
The row deletions
Three rows deleted from
KNOWN_BARE_ANY_EXAMPLESinscripts/check-skill-examples.mjs,leaving one:
The comment block above the set is updated to record that the three
testing.mdrows wereretired here and why the remaining row is not a mechanical unmark. No change to the gate's
logic, its positions, or its baseline mechanics.
Reverse verification — both legs, at the final head
Committed first, then mutated under a
traprestoring an absolute path. Every mutation wasproved on disk BEFORE any verdict was read.
HEAD blob of the guide:
0f68499c93fe2fed42d6220281a4afcc19127e3f.grep -con the injected text 0 to 1; blob9d4bccffaba7c875533cacbd0da5c2b9f0746824, different from the HEAD blob[bare-any] skills/objectui/guides/testing.md:73:41demanding the verbatim rowskills/objectui/guides/testing.md:60 as any assertion— the exact row this PR deletes; summary1 NOT declared0f68499c…, equal to the HEAD blob;git diff HEAD --statemptygrep -con the injected text 0 to 1; blobcb560d60de00b011b898c8749aa4c0d5bf268d04, different from the HEAD blob--measurere-listsunmarked skills/objectui/guides/testing.md:201 as any assertion, the finding that had disappeared at the honest head0f68499c…;git diff HEAD --statempty; injected count back to 0, honest count back to 1Leg B's compile result stays
passunder the mutation, because a bare cast still compiles.That is the point of the second, independent read: the bare-any guard is what sees it.
Gates — union re-run at the final head
45136c1, working tree cleanEvery exit code captured by redirect BEFORE any pipe.
node scripts/check-skill-examples.mjs(built, under the lock)Semantic phase: 17 of 17 ts fence(s) judged, 0 failed./Bare any: 1 finding(s) across 1 selected fence(s); 1 declared in KNOWN_BARE_ANY_EXAMPLES (SHRINK-ONLY, 1 row(s)), 0 NOT declared, 0 declared row(s) no longer red./Every marked skill example holds up against the built types.--self-test42 cases pass (marker adjacency both directions, orphans, nested illustration, json/jsonc, the bare-any guard in both directions with its shrink-only baseline, and the compiler legs through the real harness).--measureStarting population — ts: 19/121 pass; json: 39/56 pass.(was 18/121) /Bare any would-be population — 6 finding(s) over every candidate, of which 1 sit in a MARKED fence(was 7)--build-filter@object-ui/authabsentnode scripts/check-skill-eval-tokens.mjsEvery must_contain token is taught by its own skill bundle.node scripts/check-skills-paths.mjscheck-skills-paths: OK (88/89 stated path(s) resolve across 20 guide file(s); 1 baselined).pnpm exec vitest run --maxWorkers=2 scripts/__tests__/check-skill-examples.test.ts scripts/__tests__/check-skill-eval-tokens.test.tsTest Files 2 passed (2)/Tests 101 passed (101)pnpm exec tsc -p tsconfig.scripts.json --noEmitnode scripts/check-governed-queue-guard.mjs --testover the final path listGOVERNED — 1 of 2 path(s) are on a governed surface: skills/** x1 — the published skills catalog— the correct verdict here, not a rednode scripts/check-changeset-presence.mjsNo source or published contract of a released package changed in this range, so no changeset is owed.node scripts/check-control-bytes.mjscheck-control-bytes: OK (scanned 6157 tracked text file(s); skipped 85 binary).node scripts/check-shell-escape-residue.mjscheck-shell-escape-residue: OK (5/5 root(s) resolved …; 0 occurrence(s) outside a fence)Heavy work went through objectstack's shared verify lock (slot
issue-7494): the filteredbuild the gate derives from
--build-filter— plus@object-ui/authso the third fencecould be judged against BUILT types rather than source — 29 turbo tasks, all successful,
then each gate leg.
Line and byte arithmetic (reported, not gated)
There is no token ratchet over
skills/**in objectui, so these are numbers, not a budget.skills/objectui/guides/testing.mdscripts/check-skill-examples.mjsskills/tree (27 files)Net over the published tree: +19 lines, +1266 bytes. Second commit alone: +7 lines,
+583 bytes. All of it is explanatory comments in the three fences, the discovery stub, and
the corrected props; no new capability, section or example was added.
NOT MEASURED, and why
dist/*.d.ts; it does not execute them. That the rewritten Pattern 7 and Pattern 6 testswould now PASS rests on reading the sources cited above, not on a run. Their compile
results ARE measured — the Pattern 6 fence is judged by
--measureand now readspass.pnpm lintrepo-wide was NOT run — the narrowing is declared with its evidence.(1) Population read from eslint's own config: every
files:selector ineslint.config.jsis**/*.{ts,tsx}or a.{ts,tsx}subset of it, andpnpm lintisturbo run lint, i.e. per-packageeslint ., which does not reach repo-rootscripts/;neither changed file is
.ts/.tsx. (2) File count read from--format jsonoverexactly the two changed files:
scripts/check-skill-examples.mjs0 errors 0 warnings,skills/objectui/guides/testing.mdone warning, "File ignored because no matchingconfiguration was supplied." (3) Invariance for untouched files: no type-aware linting is
configured at all (
grep -c project eslint.config.jsis 0), so no untouched file'sverdict can move because of this diff.
scripts/pm/dispatch-gates.mjswas NOT used: it answers only about thetree it lives in, and objectui has no
scripts/pm/. The gate list is hand-derived fromthis repo's
package.jsoncheck scripts and the threeskills-touching workflows.Out-of-scope findings (reported, not filed here — the seat dedups and files)
skills/objectui/guides/testing.md:173— the Pattern 6 fence carries the language tagtypescriptwhile its body is JSX. The gate's harness compiles every candidate as TSX soit judges the fence correctly, but
check-doc-fence-languages.mjskeys on info strings,and marking this fence later would also pull
@object-ui/authinto the gate's derivedbuild set. Both are marking-mechanics questions, deliberately untouched here.
packages/core/src/validation/schema-validator.ts:459— the first parameter ofvalidateSchemais annotatedany. The Pattern 3 fence is honest now precisely BECAUSEthe platform type is this wide. Same class as row 384's
ComponentInput.defaultValue:the honest fix is
unknownplus a narrowing entry point in the platform type, never inthe guide restating it.
packages/types/src/data.ts:133—QueryParamscarries an[key: string]: anyindexsignature. That is what let the misspelled
filterkey compile in the guide for as longas it did, and it does the same for every caller in the repo: any typo in a query param
is accepted silently and then dropped by
convertQueryParams.scripts/check-skill-examples.mjs--measure— its would-be-population summary printsthe FINDING's line while a baseline row is keyed on the FENCE's line. For the surviving
row the summary reads
plugin-development.md:103while the declared row is:92. Theper-finding diagnostic DOES print the verbatim row spelling, so the correct spelling is
available; only the summary list can mislead someone declaring a row from it.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LraLgQVGq8egUwfYZpbYt1