Skip to content

Commit b97d2d9

Browse files
committed
test: settle the mirror-parity, handler-key census and markdown-input ledgers after the plugin-ai retirement (WIP)
Claude-Session: https://claude.ai/code/session_01VBDBR9oS1MNUcjBVXds5D6 Co-authored-by: Claude <noreply@anthropic.com>
1 parent bc1e8c1 commit b97d2d9

3 files changed

Lines changed: 14 additions & 8 deletions

File tree

‎ui/packages/types/src/__tests__/component-docs-retired-handler-keys-7340.test.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,9 @@ describe('the retired population is measured off the shipped tree (objectui#7340
390390
// `deleteBehavior`, not a handler; no shipped interface declares the name
391391
// otherwise.
392392
'onDelete',
393+
// objectstack#25921 — its one LIVE declaration, `AIRecommendationsSchema.onDismiss`,
394+
// left with `@object-ui/plugin-ai`; only `?: never` spellings remain.
395+
'onDismiss',
393396
'onExpandChange',
394397
// objectui#7068: the legacy `ActionSchema.onFailure` callback object — no
395398
// shipped interface declares an `onFailure` at all any more. `onSuccess`

‎ui/packages/types/src/__tests__/zod-mirror-parity.test.ts‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,12 @@
154154
* a delta to this number; count the registry. Nothing asserts it against a written
155155
* one, so this line is prose and can rot; the pin that cannot is the one
156156
* comparing the two halves to each other.
157-
* - **53 entries** in `KnownDrift`, **90 keys** across them — 55 / 93 until
157+
* - **51 entries** in `KnownDrift`, **87 keys** across them — 53 / 90 until
158+
* objectstack#25921 retired `@object-ui/plugin-ai`: its seven pairs left `MIRRORS`
159+
* with it (their TS twins are `never` tombstones, their zod names `z.never()`), and
160+
* with them the two objectui#6124 runtime-slot entries
161+
* `ai.zod.ts#AIRecommendationsSchema` (`onDismiss`, `onSelect`) and
162+
* `ai.zod.ts#NLQuerySchema` (`onSubmit`) — −2 entries, −3 keys. It was 55 / 93 until
158163
* objectstack#25923 made every object in `../zod/` `.passthrough()` and taught
159164
* `NarrowerThanDeclared` the interface rule (`AcceptedOf`): four
160165
* INTERFACE-TO-PASSTHROUGH keys LEFT — two entries whole
@@ -912,7 +917,7 @@
912917
*
913918
* ## KNOWN_DRIFT is a ratchet, not a waiver
914919
*
915-
* 53 of the registered pairs carry TYPE drift TODAY (measured, not assumed). Each is
920+
* 51 of the registered pairs carry TYPE drift TODAY (measured, not assumed). Each is
916921
* pinned to its EXACT drifted key set, so the entry fails when new drift appears on
917922
* that mirror AND when the recorded drift is fixed — a stale entry cannot rot
918923
* quietly. Correcting them is not one change: the pairs below split into DISJOINT
@@ -5367,7 +5372,7 @@ const ZOD_DIR = join(dirname(fileURLToPath(import.meta.url)), '..', 'zod');
53675372
* MINUEND under it had moved. Nothing failed on any of those days, because nothing
53685373
* compared the registry to a number. objectui#7433 is that absence, not the digits.
53695374
*/
5370-
const EXPECTED_MIRROR_PAIRS = 204;
5375+
const EXPECTED_MIRROR_PAIRS = 197;
53715376

53725377
/**
53735378
* A ledger this file can size from its own AST. `WiderThanDeclared` joined at

‎ui/scripts/markdown-test-inputs.mjs‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -253,15 +253,13 @@ export const ADJUDICATED = new Map([
253253
// objectui#10872 batch 4 (its `QUICK_START` path): the first json fence under
254254
// the quick-start's "### Add Actions" heading -- the taught `action:button`
255255
// node -- which the page pin runs through `objectui validate` beside a
256-
// `page:header`. The scanner also resolves the bare `'README.md'` segment of
257-
// the file's prose against this package and the root; neither is read. (Its
258-
// other read, `@object-ui/plugin-ai`'s README, left with that package,
259-
// objectstack#25921.)
256+
// `page:header`. (Its other read, `@object-ui/plugin-ai`'s README, left with
257+
// that package, objectstack#25921, and with it the bare `'README.md'` segment
258+
// the scanner used to resolve.)
260259
[
261260
'packages/cli/src/__tests__/registered-types-validate-ratchet-10859.test.ts',
262261
{
263262
reads: ['content/docs/guide/quick-start.md'],
264-
notRead: ['README.md', 'packages/cli/README.md'],
265263
},
266264
],
267265
[

0 commit comments

Comments
 (0)