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

test(console,plugin-list): make two Storage.prototype spy instruments measure what they claim (objectui#7786) - #7790

Merged
os-sam merged 1 commit into
mainfrom
claude/issue-7786-storage-spy-counter-probes
Sep 5, 2026
Merged

os-sam merged 1 commit into
mainfrom
claude/issue-7786-storage-spy-counter-probes

Conversation

@claude

@claude claude Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Fixes #7786

Two suites spied on Storage.prototype and graded green without measuring
what their names promised
. They are two different defects, so they get two
different repairs — neither of them touches runtime source, vitest.setup.base.ts
(PR #7785's surface), or the i18n suite.

1. apps/console/src/__tests__/bootSplash.test.ts — the injected fault never landed

it('survives a browser with no localStorage access') installed
vi.spyOn(Storage.prototype, 'getItem').mockImplementation(() => { throw … })
and then asserted runBootSplash() does not throw. The spy never reached the
script under test, for two reasons that are both live in this repo:

  • happy-dom hands localStorage out through a proxy that has already bound
    getItem, so a prototype patch installed after the store's method was first
    reached is invisible to it;
  • vitest.setup.base.ts may swap the store for a plain in-memory object
    that never inherited from Storage.prototype at all.

So the case asserted that an ordinary boot does not throw, under a name
promising a blocked browser. Not repaired by bolting a probe onto the old
spy (that would go red for the wrong reason — instrument in the wrong place, not
a bug in runBootSplash), and not by renaming the test down to what it
actually did. Instead the fault is now injected where the script resolves it —
the same property-replacement shape packages/i18n/src/__tests__/provider-locale-persistence.test.tsx
already uses against this exact hazard — plus two things it did not have:

  • a counter-probe: expect(() => localStorage.getItem(…)).toThrow('storage blocked')
    before anything is graded on the absence of a throw;
  • a stored dark theme choice, so the expected light outcome is reachable
    only when storage is genuinely unreadable (previously light was also
    what an empty store produced, so the assertion held either way).

The original property descriptor is restored in finally, and the test asserts
the store is readable again afterwards.

2. packages/plugin-list/src/__tests__/UserFilters.addTab.test.tsx — a negative assertion with no liveness check

The load-bearing line is expect(setItem).toHaveBeenCalledTimes(0) — a
negative assertion, which a blind instrument satisfies for the wrong
reason
. This is the counter-probe fix, shaped like the one in
anonSeedScope-5746.enumeration.test.tsx: before asserting anything about
writes it did not make, the test now asserts the spy observes writes it makes
itself — in both sessionStorage and localStorage, since a store can be
handed out already bound to its own method and the comment above the spy claims
to cover both. The probe's own writes are then mockClear()ed, so the
load-bearing assertion is left verbatim as the claim it always was.

Readings — every claim below was measured, on Node v22.22.2 (the version CI pins)

Measured on the tree committed as ddfecb545, in a dedicated worktree cut from origin/main 6771c805a. The suites ran on the working tree that was then committed unchanged as that sha; both lit controls ran with it as HEAD.

Suites green (actual counts, not "green")

run files tests
pnpm exec vitest run --maxWorkers=2 apps/console/ 89 passed (89) 981 passed (981)
pnpm exec vitest run --maxWorkers=2 packages/plugin-list/ 66 passed (66) 822 passed (822)

The two repaired files carry 15 tests (bootSplash.test.ts) and 12
(UserFilters.addTab.test.tsx) of those totals.

⭐ Lit control E1 — item 1's probe shouts when the fault is injected the old way

The mutation puts the pre-repair injection point back (vi.spyOn(Storage.prototype, 'getItem').mockImplementation(blocked)) and leaves the new counter-probe in place.

E1 HEAD blob:      9a1d57dfde2d0dbba5aac36c73c0af20c4531d5c
E1 mutated blob:   73f3da03a2198af4621bcf63df640ba62affeedf     # landed on disk, confirmed BEFORE running
E1 injected-marker occurrences: 1 ; removed-anchor occurrences: 0
E1_VITEST_EXIT=1
FAIL  |@object-ui/console| src/__tests__/bootSplash.test.ts > … > survives a browser with no localStorage access
AssertionError: the injected fault never reached the store: `localStorage` is still readable here,
so everything below would grade an ordinary boot under a name promising a blocked browser:
expected [Function] to throw an error
 ❯ src/__tests__/bootSplash.test.ts:283:9
 Test Files  1 failed (1)
      Tests  1 failed | 14 passed (15)

That failure is the card's premise, reproduced independently here: on Node 22.22.2 the
prototype spy does not reach the store. Restoration, under trap … EXIT INT TERM, with
git checkout HEAD -- ABSOLUTE_PATH:

E1 restored blob:  9a1d57dfde2d0dbba5aac36c73c0af20c4531d5c   # EQUAL to the HEAD blob
E1 RESTORE-HASH: EQUAL to HEAD blob
E1 RESTORE-DIFF: EMPTY (git diff HEAD -- file)

⭐ Lit control E2 — item 2's probe shouts when the spy is blind

The mutation points the spy at a target the test never reads
(vi.spyOn({ setItem: () => {} }, 'setItem')) — blind in exactly the way the card describes.

E2 HEAD blob:      44386aede8bd2e7d5f998cb16f3142da0d05ba7f
E2 mutated blob:   aa50cf520c525f3cdcd094f0fa13880b4998f621     # landed on disk, confirmed BEFORE running
E2 injected-marker occurrences: 1 ; removed-anchor occurrences: 0
E2_VITEST_EXIT=1
FAIL  |dom| packages/plugin-list/src/__tests__/UserFilters.addTab.test.tsx > … > calls no data-source method, no fetch, and no web storage
AssertionError: the Storage.prototype spy is BLIND: it did not observe the two writes made in this
very test, so the zero-write assertions below would pass for the wrong reason:
expected "setItem" to be called 2 times, but got 0 times
 ❯ packages/plugin-list/src/__tests__/UserFilters.addTab.test.tsx:208:7
 Test Files  1 failed (1)
      Tests  1 failed | 11 passed (12)
E2 restored blob:  44386aede8bd2e7d5f998cb16f3142da0d05ba7f   # EQUAL to the HEAD blob
E2 RESTORE-HASH: EQUAL to HEAD blob
E2 RESTORE-DIFF: EMPTY (git diff HEAD -- file)

Both mutations were confirmed on disk by blob hash before their run — a mutation that
never lands yields a green reading that means nothing.

Item 1's positive reading — the condition is now genuinely simulated

The same assertion that goes red under E1 (expect(() => localStorage.getItem(THEME_STORAGE_KEY)) .toThrow('storage blocked'), inside that very test) passes on the repaired tree — it is part of
the 981 green console tests above. So a direct localStorage.getItem(...) in that test now really
does throw, runBootSplash() is then measured against a store it genuinely cannot read, and it
survives it: data-boot-theme comes out light from the OS preference even though dark is
sitting in the store.

Gates and type-check

type-check in this repo dependsOn: ["^build"], so a bare per-package tsc --noEmit
in a fresh worktree is not the gate — it reports an unresolved-module cascade
(384 / 64 / 197 errors, overwhelmingly TS2307/TS2882, none of them naming a line
this PR wrote). Measured properly, through turbo, so the dependency closure is built
first:

pnpm turbo run type-check --filter=@object-ui/console --filter=@object-ui/plugin-list --concurrency=2
 Tasks:    37 successful, 37 total
 Cached:    1 cached, 37 total
   Time:    4m27.765s
TURBO_TYPECHECK_EXIT=0

Both type-check tasks executed (cache miss, not replayed): @object-ui/plugin-list:type-check
(tsc --noEmit && tsc -p tsconfig.test.json) and @object-ui/console:type-check
(tsc --noEmit && tsc -b tsconfig.node.json --force). Zero error TS lines in the whole run.

✅  check-changeset-presence — 2 source file(s) of 2 released package(s) changed, and this change
    declares 1 changeset(s): .changeset/7786-storage-spy-counter-probes.md.
    Every one of them has an EMPTY frontmatter — declared as releasing nothing, which
    is the explicit exemption and a complete answer to this gate.
✅  check-control-bytes: OK (scanned 6345 tracked text file(s); skipped 85 binary).
✅  check-vi-mock-specifiers: OK
✅  check-vi-mock-inherit: OK

Lint — a declared narrowing, not a skipped run

The repo-wide pnpm lint (eslint . --no-inline-config) is CI's run. Locally this was
narrowed to the two changed files, and the narrowing is measurable rather than assumed:

  • the population comes from eslint's own config resolution — both files came back as
    results, so neither is ignored;
  • the count is read from --format json: 2 files linted, 0 errors, 0 warnings, exit 0;
  • eslint.config.js configures no type-aware program (no project / projectService),
    so this diff cannot move the verdict on any file it does not touch.

The i18n file — re-checked, and it is indeed a false positive

packages/i18n/src/__tests__/provider-locale-persistence.test.tsx was not touched. Its only
Storage.prototype occurrence is the comment on line 155 saying it deliberately does not spy on
the prototype — the grep matched that sentence, not an instrument:

// Not a spy on Storage.prototype: the runner may swap localStorage for a
// plain in-memory object (vitest.setup.base.ts), which no prototype spy
// would reach. Replace the property itself so the throw is unavoidable.

It already replaces the property and restores it in finally, which is the shape item 1 has now
been repaired into. Confirmed false positive.

Not touched

vitest.setup.base.ts and packages/app-shell/src/console/__tests__/anonSeedScope-5746.enumeration.test.tsx
are PR #7785's surface and are untouched here; no runtime source of runBootSplash() or
UserFilters is touched. The whole diff is two __tests__/ files plus one changeset.


🤖 Generated with Claude Code

https://claude.ai/code/session_01KbJQ1y1J12nZxYzFWhP8Q3


Generated by Claude Code

… measure what they claim (objectui#7786)

Both suites spied on `Storage.prototype` and graded green without measuring
what their names promised.

`apps/console/src/__tests__/bootSplash.test.ts` injected its "no localStorage
access" fault with `vi.spyOn(Storage.prototype, 'getItem')`, which never
reached the script under test: happy-dom hands `localStorage` out through a
proxy that has already bound `getItem`, and `vitest.setup.base.ts` may swap the
store for a plain object that never inherited from `Storage.prototype`.
Measured on Node 22.22.2, the version CI pins, a direct `localStorage.getItem`
in that test did not throw, so the case asserted only that an ordinary boot
does not throw. The fault is now injected where the script resolves it, a
counter-probe asserts it is observable before anything is graded on its
absence, and a stored `dark` choice makes the expected `light` outcome
reachable only when storage is genuinely unreadable.

`packages/plugin-list/src/__tests__/UserFilters.addTab.test.tsx` carries the
negative assertion `expect(setItem).toHaveBeenCalledTimes(0)`, which a blind
spy satisfies for the wrong reason. It now proves the spy observes two writes
the test makes itself, in both `sessionStorage` and `localStorage`, before
asserting anything about writes the component did not make.

Tests only: no runtime source is touched and the changeset declares that
nothing ships.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KbJQ1y1J12nZxYzFWhP8Q3
@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 50 chunks) 3187.4 KB 3191.4 KB
Main entry chunk (gzip) 143.2 KB 350 KB
Entry file index-CnaboxA9.js —
Status PASS —

The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it.


📦 Bundle Size Report

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 15.67KB 5.75KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.06KB 3.86KB
auth (ActiveOrganizationStorage.js) 25.05KB 9.16KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.18KB 10.59KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.39KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.65KB 2.22KB
auth (SocialSignInButtons.js) 9.61KB 3.89KB
auth (UserMenu.js) 3.41KB 1.23KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.21KB 10.80KB
auth (createAuthenticatedFetch.js) 8.46KB 3.43KB
auth (index.js) 3.19KB 1.44KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 5.13KB 2.35KB
collaboration (CommentThread.js) 26.08KB 7.56KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.49KB 2.64KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.05KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 510.60KB 116.20KB
core (index.js) 6.96KB 2.79KB
create-plugin (index.js) 10.08KB 3.26KB
data-objectstack (index.js) 182.08KB 50.62KB
fields (index.js) 242.44KB 61.25KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 1.22KB 0.64KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 4.28KB 1.75KB
i18n (index.js) 3.65KB 1.47KB
i18n (pickLocalized.js) 7.62KB 3.26KB
i18n (provider.js) 26.89KB 9.04KB
i18n (useDisplayLocale.js) 2.85KB 1.45KB
i18n (useObjectLabel.js) 34.34KB 9.17KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 38.98KB 10.98KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 2.53KB 0.85KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 4.39KB 1.66KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 11.71KB 4.29KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.24KB 2.16KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 5.12KB 1.74KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 15.75KB 3.80KB
plugin-calendar (index.js) 47.87KB 13.31KB
plugin-charts (index.js) 70.92KB 19.75KB
plugin-chatbot (index.js) 196.19KB 46.37KB
plugin-dashboard (index.js) 132.88KB 34.69KB
plugin-designer (index.js) 212.86KB 43.19KB
plugin-detail (index.js) 250.55KB 64.06KB
plugin-editor (index.js) 2.46KB 1.10KB
plugin-form (index.js) 132.87KB 32.66KB
plugin-gantt (index.js) 167.26KB 41.00KB
plugin-grid (index.js) 209.29KB 56.78KB
plugin-kanban (index.js) 52.71KB 14.55KB
plugin-list (index.js) 113.28KB 27.59KB
plugin-map (index.js) 20.44KB 6.78KB
plugin-markdown (index.js) 13.93KB 4.81KB
plugin-report (index.js) 43.59KB 11.97KB
plugin-timeline (index.js) 30.84KB 8.85KB
plugin-tree (index.js) 9.20KB 3.19KB
plugin-view (index.js) 85.24KB 20.94KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 11.66KB 3.50KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 81.07KB 26.86KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.63KB 2.18KB
react (schema-input.js) 2.32KB 1.24KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (codegen.js) 5.41KB 2.34KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 4.93KB 2.24KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 20.57KB 5.88KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 10.35KB 3.60KB
types (ai.js) 0.20KB 0.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 1.00KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 2.74KB 1.41KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 4.74KB 2.25KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 4.73KB 2.28KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 0.20KB 0.18KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

Merged via the queue into main with commit 445d94c Sep 5, 2026
34 checks passed
akarma-synetal pushed a commit to akarma-synetal/objectui that referenced this pull request Sep 28, 2026
…404 (objectui#10755) (objectstack-ai#10766)

Fixes objectstack-ai#10755
Clause-②: no

Dispatched implementation of the `domain:ui` seat 2 claim (comment
`5853230223`) on objectui#10755, session
`https://claude.ai/code/session_014mXUNuFomfj24w7s1pZzhN`. Citations
only, on three published docs pages: no sentence's claim moves, and the
frontmatter of all three files is byte-identical.

## What changed

- The ten objectui issue links that answer 404 now cite the landing
commit on `main`, as a 9-character backticked sha. That is the form
`content/docs/guide/ci-cd-pipeline.md` already uses for commits (five of
its six existing sha citations are 9 characters), and the form PR
objectui#10707 chose for the same class on objectui#10701.
- Two prose-only mentions of the same dead numbers, inside the same two
sentences, are re-pointed so each sentence stays coherent: "in objectstack-ai#7638's
card body" reads "in the second card's body", and "over the file objectstack-ai#8057
is entirely about" reads "over the file that third writer lives in".
Lychee does not read those; the reader does. Each sentence's claim is
unchanged.
- Commits, not PRs, at every site. Two of the landing PRs answer 404
themselves (PR 7637 for objectui#7627, PR 7805 for objectui#7753), so PR
numbers are not uniformly alive; commits on `main` are. The same ten
numbers answer 200 in objectstack, each an unrelated subject, so a
repo-qualified re-cite would send a reader to the wrong record.
- No lychee config or workflow change, and no changeset: `content/**` is
not a released package (`check-changeset-presence` below).

## H1 reproduction, at the base `704e05b09d` (origin/main at claim time)

- Lychee is not preinstalled in this container; the 0.18.1 release
binary was fetched into the scratchpad. `lychee --verbose --no-progress
--config lychee.toml` over the three files: `🔍 195 Total (in 15s) ✅ 182
OK 🚫 13 Errors`, exit 2. Ten `[404]` lines, one per objectui issue URL,
exactly the card's ten, on the same lines the card names (re-read at the
base). The other three errors are this container's egress proxy, not
link rot: `github.com/changesets/changesets` and
`github.com/lycheeverse/lychee` answer 403 ("GitHub access to this
repository is not enabled for this session") and `git-cliff.org` is a
CONNECT 403. The CI run `36294593837` had 10 errors and none of these;
they recur identically at the head.
- REST `GET /repos/objectstack-ai/objectui/issues/N`: all ten answer
404, on the API and on the HTML page. Lit controls: objectui#7013,
objectstack-ai#7015, objectstack-ai#9229 and objectstack-ai#7790 answer 200. Neighbours objectui#5792, objectstack-ai#5794,
objectstack-ai#7792 and objectstack-ai#9231 also answer 404 and are cited nowhere in the swept
trees.
- objectstack `GET /repos/objectstack-ai/objectstack/issues/N`: all ten
answer 200 and every subject is unrelated (a spec docs generator PR, a
bulkCreate card, a QA run, an email-template PR, and so on).

## H2 and H3, site by site

Each row: the quoted anchor in the sentence, the dead citation, the
replacement, and the evidence (the dead number's REST status is 404 in
every row; the landing commit's subject is quoted without its
conventional-commit prefix).

| file | sentence anchor | old | new | evidence |
|:--|:--|:--|:--|:--|
| `ci-cd-pipeline.md` | "three times so far, each found by a human and
never by a gate (…, the third in the same package as the first)" |
objectui#6943 | "and a third in the same package as the first, all three
recorded in `6aeba673c`, the commit that landed this gate" | `6aeba673c`
"require the directory form of the tooling exclude in every published
build tsconfig" (PR 7409 answers 200). Its message records
objectui#4006, objectstack-ai#4836 and objectstack-ai#6943 as the three incidents. objectstack-ai#4006 and objectstack-ai#4836
stay linked; both answer 200. |
| `ci-cd-pipeline.md` | "measured at two cards and three copied call
sites (…), both closed by pointing the prose at
`resolveRecordSourceObjectName`" | objectui#7627, objectui#7638 |
"measured at two cards and three copied call sites, both cards closed by
pointing the prose at `resolveRecordSourceObjectName` (`b041b9c0c`,
`2ce2612df`)" | `b041b9c0c` "one shared record-source object-name
reader, six plugins delegate" (PR 7637 answers 404); its message settles
objectui#7627 by name. `2ce2612df` "the record-page URL follows the
record source, not the top-level key" (PR 7648 answers 200);
`abdcd189c`'s message names PR 7648 as the change that removed the
spelling objectui#7638 was filed about, and its diff points the hook's
`@example` at `resolveRecordSourceObjectName` (7 occurrences). |
| `ci-cd-pipeline.md` | "in objectstack-ai#7638's card body and then in the dispatch
that repeated it" (prose, not a link) | objectui#7638 | "in the second
card's body and then in the dispatch that repeated it" | The two cards
are named in the preceding clause; the claim is unchanged. |
| `ci-cd-pipeline.md` | "a count ratchet would have been green too,
which is why … rejected that option on the instance itself" |
objectui#7753 | "which is why `72498f257`, the commit that landed this
gate, rejected that option on the instance itself" | `72498f257` "a
census derives every handler key a registered renderer reads and
requires its arm to declare it (objectui#7753)" (PR 7805 answers 404).
Its message records the substitution that held `RUNTIME_SLOT` at 44 and
`ALL_SITES` at 66, the count reading the sentence describes. |
| `ci-cd-pipeline.md` | "… then reproduced the identical defect on a
THIRD writer neither guard covered, in that card's own required dogfood"
| objectui#8057 | "The identical defect was then reproduced on a THIRD
writer neither guard covered, in that card's own required dogfood
(recorded in `9662aca56`, the commit that landed this gate)" |
`9662aca56` "apply the object-metadata write invariant at the write
doors, not at an enumeration of writers" (PR 9238 answers 200). Its
message: "objectui#8057 then reproduced the identical defect on a third
writer in that card's own required dogfood, and a sweep found nine
more". "That card" is objectui#7714, linked in the preceding sentence,
which answers 200. |
| `ci-cd-pipeline.md` | "returns ZERO over the file objectstack-ai#8057 is entirely
about" (prose, not a link) | objectui#8057 | "returns ZERO over the file
that third writer lives in" | The third writer is referenced two
sentences earlier; the claim is unchanged. |
| `ci-cd-pipeline.md` | "widened from `content/docs/**` alone by …" |
objectui#7878 | "widened from `content/docs/**` alone in `59a3a233d`" |
`59a3a233d` "widen the expression-carriage census to check:doc-types'
surface (objectui#7878)" (PR 8105 answers 200). |
| `ci-cd-pipeline.md` | "cwd the only variable (…). Root `AGENTS.md` had
taught" | objectui#7791 | "cwd the only variable (`223b1e4a3`). Root
`AGENTS.md` had taught" | `223b1e4a3` "root the capability spec-parity
pin at the file, not the cwd (objectui#7791)" (PR 7796 answers 200). Its
message carries the two-cwd measurement. |
| `ci-cd-pipeline.md` | "The defect it closes (…):" | objectui#5793 |
"The defect it closes, repaired in the gate's own landing commit
`111741454`:" | `111741454` "gate @objectstack/spec range floors against
published symbols" (PR 6076 answers 200). Its message describes the
`plugin-detail` `ReferenceRailEntry` defect in the sentence's own words,
and its diff bumps `packages/plugin-detail/package.json`'s
`@objectstack/spec` floor from `^17.0.0` to `^17.1.0`, so the same
commit landed the gate and repaired the defect. |
| `lookup.mdx` | "and must never reach authored object metadata (…)" |
objectui#7014 | "and must never reach authored object metadata
(`0e3b3be09`)" | `0e3b3be09` "correct three false spec-alignment claims
and pin the real boundary" (PR 7510 answers 200). `e1545cfe6` (PR 7994),
the commit that wrote this sentence, says it carries PR 7510's
attribution. The claim itself is stale; see Acceptance note 1 for why
the citation is kept resting on the landing commit rather than dropped.
|
| `select.mdx` | "on both the editable and the read-only path (…)" |
objectui#9230 | "on both the editable and the read-only path
(`20b507aff`)" | `20b507aff` "render a picklist option value when its
label is blank (objectui#9230)" (PR 9258 answers 200). |

All ten shas are unique at 9 characters (`git rev-parse --short=9`
returns 9 for each) and each is an ancestor of `origin/main` by
construction (they were taken from `git log origin/main`).

## H4 the whole tree, not only the ten

- `git grep` at `origin/main` over `content/**`, `docs/**`, `README.md`
and `skills/**` for
`github.com/objectstack-ai/objectui/(issues|pull)/N`: 191 distinct
numbers across 14 files. REST on every one: 181 answer 200, 10 answer
404, and the ten are the card's ten. Nothing outside the three files.
- Lychee, same config plus `--exclude '.*' --include` for objectui issue
and PR URLs (offline-safe: it reaches github.com only), over
`content/docs/**/*.md`, `content/docs/**/*.mdx`, `docs/**/*.md`,
`docs/**/*.mdx`, `README.md` and `skills/**/*.md` at the head
`08be3d7708`: `🔍 530 Total (in 14s) ✅ 188 OK 🚫 0 Errors 👻 342 Excluded`,
exit 0.
- Bare-number mentions of the same ten (`objectui#N` in prose, which
lychee cannot see) elsewhere in the tree at `origin/main`: 204 sites
outside the three files: 38 in `packages/*/src` non-test text (JSDoc and
comments, some of which ship in `dist` per PR objectui#10707's `dist`
reading), 20 in pending `.changeset/*.md` files (which publish verbatim
into the CHANGELOG at the next release), 81 in test files, 28 in
`scripts/`, 6 under `.github/`, 1 in governed agent text, 30 elsewhere.
Not widened into this PR; listed under Acceptance notes for a card.

## Gates, all on the head `08be3d7708`

- Lychee over the three files, repo config: `🔍 185 Total (in 17s) ✅ 182
OK 🚫 3 Errors`, exit 2 — the 3 are the container proxy artefacts named
under H1 and zero are objectui links (the base run had 13 errors, 10 of
them these links). Objectui-scoped (`--exclude '.*' --include` objectui
issue/PR URLs): `🔍 185 Total (in 13s) ✅ 173 OK 🚫 0 Errors 👻 12
Excluded`, exit 0.
- `pnpm docs:check-links` (`check-doc-links`): `Links are valid across
17 scan roots.`, exit 0.
- `pnpm check:control-bytes`: `check-control-bytes: OK (scanned 8943
tracked text file(s); skipped 85 binary).`, exit 0.
- `pnpm check:new-line-citations`: `VERDICT
new-cross-file-line-citations: 0 new citation(s), enforcement
report-only -> exit 0`.
- `node scripts/check-changeset-presence.mjs`: `3 file(s) changed, 0 of
them published source of a package the release covers … No source or
published contract of a released package changed in this range, so no
changeset is owed.`, exit 0.
- `pnpm check:doc-fences` exit 0; `pnpm check:doc-example-ids` exit 0
(`414 real reference(s) all resolve in the catalog registry`).
- The test readers `node scripts/markdown-test-inputs.mjs --list` names
for the classes `content/docs/**` and
`content/docs/guide/ci-cd-pipeline.md` (26 files, including
`ci-cd-pipeline-doc.test.ts` and `check-links-workflow.test.ts`), run as
one `pnpm exec vitest run` from the repo root: `Test Files 26 passed
(26)`, `Tests 1195 passed (1195)`.
- Frontmatter lines 1 to 4, md5 before and after, identical:
`ci-cd-pipeline.md` `6ca230b6b64dac22a2031d21ff311b13`, `lookup.mdx`
`289a5c887fd231f6b0b0824f53769fad`, `select.mdx`
`bae97ed7e436e0a06b8a154242ec15f1`.
- NOT MEASURED: the `Check Links` workflow itself, which runs on
`schedule` and `workflow_dispatch` only. Per the triage, re-run it via
`workflow_dispatch` once this lands to show the weekly sweep green.

## Serial

- At claim time (06:07Z) no open PR touched the three files. Before the
final push, `origin/main` was fetched into the private ref
`refs/issue-10755/main` = `f308a655b8`, two commits past the base
(`f308a655b8`, `baac95a261`). `git diff --stat` between the base and
that ref over the three files is empty, and `git merge-tree --write-tree
HEAD refs/issue-10755/main` exits 0, so no merge commit is owed.

## Acceptance notes

1. **The `lookup.mdx` paragraph around the re-cited sentence is a stale
contract claim (not widened; for a card).** It says the installed spec's
`SelectOptionSchema` "is strict over exactly `{label, value, color,
default, visibleWhen}` and refuses `description` by name", that
authoring it "fails the whole field with a 422", and that the key "must
never reach authored object metadata". Measured on the installed
`@objectstack/spec` 17.4.0 (`@objectstack/spec/data`):
`SelectOptionSchema.safeParse` of an option with `description` is
ACCEPTED, `FieldSchema` with that option is ACCEPTED, and the refusal
control `icon` is REFUSED with `unrecognized_keys`. Spec 17.3.0 declared
the key under the maintainer's 2026-08-25 ruling on objectui#6140 /
objectui#6153 (Option A); `544ecba84f` (PR 9588) already moved the
shipped docblocks off the refusal, and
`packages/types/src/__tests__/select-option-spec-extension-7014.test.ts`
pins the moved boundary. The repair is a paragraph rewrite, outside this
order's surface (citations only). The citation at that site is kept
resting on the landing commit `0e3b3be09`, the commit that made the
measurement the sentence still repeats, so a reader following it lands
on when, and against which spec version, the claim was true; dropping
the pointer would leave the stale sentence with nothing to date it by.
2. **Sibling class, one sweep card rather than ten:** the 204
bare-number mentions of the same ten numbers outside the three files
(H4, last bullet). The shipping subset is the 38 `packages/*/src`
non-test sites and the 20 pending changesets; objectui#7014 alone has 30
mentions, including three pending changesets named after it. This is the
class objectui#10701 was filed for, and that card itself suggested one
sweep card if more numbers in the range were gone.
3. **Neighbouring numbers that also answer 404** (objectui#5792, objectstack-ai#5794,
objectstack-ai#7792, objectstack-ai#9231) are cited nowhere in the swept trees; observation only.
4. **Instrument versions:** local lychee is 0.18.1;
`lycheeverse/lychee-action@v2` runs the current release. Same
`lychee.toml`, same globs; the CI reading is the authoritative one, and
the three residual errors above are container-specific.

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

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

Projects

None yet

1 participant