This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
ci: compile objectui against @objectstack/spec@main as the shape gate (objectui#9860) - #9877
Merged
Merged
Conversation
… (objectui#9860) The maintainer's option C, ruled 2026-09-18: a real consumer's compile is the only shape gate for `@objectstack/spec`'s public surface, replacing the declaration-text snapshot the platform repository is reverting. `spec-main-shape-gate.yml` builds the spec from objectstack `main` at a git sha and type-checks this repository against it. A red names WHICH objectui file failed against WHICH objectstack commit — as annotations on the failing lines and as a table in the run summary — so the objectstack pull request that moved the shape is the one that answers. A failure it cannot attribute to a file is exit 2 and says so, rather than billing the wrong repository. Three mechanisms this needed, each with the reason in the script header: - The spec reaches `tsc` through pnpm's virtual store, replaced after the ordinary frozen-lockfile install and verified from the consumers' side. No manifest, no lockfile, no pin moves. `OBJECTSTACK_SPEC_DIST` cannot do it — it emits Vite aliases, and `tsc` does not read a Vite config. - The fetch is a blobless, depth-1, cone-sparse clone at that sha; a codeload tarball has no server-side path filter and ships the whole repository. - The compile runs with the turbo cache bypassed: turbo hashes sources, the lockfile and a declared env list, never the content of `node_modules`, so a cached `type-check` replays a verdict taken against a different spec. The context is requirable — unfiltered `pull_request`, subscribed to `merge_group`, no `continue-on-error` — and it is NOT required: that lives in the repository's ruleset, which this tree can read and cannot write. `dependabot-merge-gate.mjs` classifies it `NOT_A_GATE` with both conditions for moving it written down. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018HrVaotisyhgmot9o2MLRq
…c-main-shape-gate
…eader can open Refreshed onto today's `main` (merge, never rebase) and re-measured. Two defects in this gate's own surface turned up in that measurement, both of them the gate failing its own stated acceptance criterion. 1. The compile stopped at the first broken package. turbo stops scheduling when a task fails unless told otherwise, so the parsed log carried one package's diagnostics and silence about every package turbo never asked -- reported as the reading. Ablation, two packages broken on purpose, same command otherwise: without the flag turbo named one and counted six tasks, with it named both and counted eight. `--continue` does not soften the verdict (turbo still exits non-zero); it completes it. 2. The attribution never fired on a GitHub Actions runner. turbo carries the package name in a `<package>:<task>:` line prefix locally, and in a `##[group]<package>:<task>` header with bare output on Actions -- the failing task not even grouped, just a colourised header. Only the second order ever reaches this job, so the prefix-only reading had nothing to match and handed over a package-relative path with `unmappedPackages` empty, so nothing warned either. Both of this gate's runs so far reported `src/hooks/...` for a file that lives under `packages/react/`. Pins for both, each with its firing control, in the gate's vitest suite and in its offline self-test. The doc paragraph follows the workflow. Co-authored-by: Claude <noreply@anthropic.com>
This was referenced Sep 20, 2026
This was referenced Sep 20, 2026
os-tesla
marked this pull request as ready for review
September 20, 2026 16:23
akarma-synetal
pushed a commit
to akarma-synetal/objectui
that referenced
this pull request
Sep 28, 2026
…ng them (objectui#9880) (objectstack-ai#9939) Fixes objectstack-ai#9880 Clause-②: no — the exported `ListViewVisualization` resolves to the same nine members under either spec (compiled both ways below, and every downstream consumer re-compiled against the rebuilt declarations); no key on a published payload moves and no accept set is relaxed. What moves is how that type is DERIVED, plus a non-exported alias and table shape now visible in `@object-ui/core`'s emitted declaration. ## ⭐ The judgement the card asked for first: YES, a both-legs spelling exists The card's first deliverable was the judgement, not a delete — and triage's mechanical re-grade switch (`pm:retriage` → `pm:on-hold`) was to be tripped only if a both-legs spelling were measurably impossible. It is not impossible, so the switch is **not** tripped and no re-grade is asked for. **Why the old spelling could not survive the retirement.** Two literals were cited on the card; only ONE of them was ever a compile error, and this is a correction to the card's framing: | site | old spelling | on the published leg | on the `main` leg | |:--|:--|:--|:--| | `ListViewVisualization` | `Exclude<ViewType, 'list' \| 'detail' \| 'page'>` | fine | **silently fine** — `Exclude` of a non-member is a no-op no compiler reads | | `UNDRAWABLE_VIEW_KINDS` | annotated `Record<Exclude<ViewType, ListViewVisualization>, string \| null>` | fine | **TS2353** — the `page:` row is an excess property | An annotated object literal is exact in BOTH directions. That is what makes the retirement unfixable under it: the addition direction wants a missing key to be an error (correct), and the retirement direction then makes a stale row an error too, whose only repair is deleting the row — which this repository cannot do while it resolves a published spec that still accepts `type: 'page'` views. The second literal was not a second error; it was a claim that had quietly stopped being true. **The spelling that is total against both.** Keep the value constraint, drop the exactness, and derive the other half of the partition from the table's own keys intersected with the live vocabulary: ```ts const UNDRAWABLE_VIEW_KINDS = { list: null, detail: null, page: 'it mounts a published page (bound through `pageName`) …', } satisfies Record<string, string | null>; type UndrawableViewKind = Extract<ViewType, keyof typeof UNDRAWABLE_VIEW_KINDS>; export type ListViewVisualization = Exclude<ViewType, UndrawableViewKind>; ``` `Extract` is the load-bearing operator: a row for a kind the spec has RETIRED drops out of the type while staying live in the table at runtime, which is exactly what an author who can still write a `page` view against the resolved spec needs. **The guard objectui#8127 installed is unchanged, it just lands in one place instead of two.** A kind the spec ADDS is classed by neither table, so it is not extracted, so it stays inside `ListViewVisualization` — and `LIST_VIEW_KINDS` is still a total `Record<ListViewVisualization, true>`, which goes red until the new kind is classed as drawable there or explained in the undrawable table. A MISSPELLED key in the undrawable table fails the same way, because the kind it was meant to class is not extracted either. ⛔ objectui#9860's gate is not weakened, narrowed or disabled anywhere in this diff; ⛔ the `@objectstack/spec` pin is untouched; ⛔ nothing here proposes reversing the upstream retirement. ## The two legs, compiled — same mechanism, same command Injection is objectui#9877's own `scripts/spec-main-shape-gate.mjs inject` (remove-then-copy into pnpm's virtual store, `npm pack` bytes, 29 consumers verified), run from that branch's copy of the script; the script itself is **not** part of this diff. Command on every leg: `TURBO_FORCE=true pnpm exec turbo run type-check --filter=@object-ui/core --concurrency=2`, serialized behind the shared verify lock. Readings taken 2026-09-18T18:20Z–18:35Z. objectui base `f5e2fcb4a` (`origin/main` at 2026-09-18T18:15Z, which had already moved past the `02bc27b08` this card was dispatched against). Injected spec built from `objectstack-ai/objectstack@07c6f822edd9c4c48a7ce34767de420c6096b9c3` (`origin/main` at 2026-09-18T18:19Z), packed as 2,039 files / 28,923,936 B. | leg | spec resolved | source | verdict | |:--|:--|:--|:--| | control | published `@objectstack/spec@17.4.0` | before this change | exit 0 | | subject | built from objectstack `07c6f822` | before this change | exit 2 — `src/utils/normalize-list-view.ts(205,3): error TS2353: Object literal may only specify known properties, and 'page' does not exist in type 'Record<"list" \| "detail", string \| null>'` | | control | published `@objectstack/spec@17.4.0` | **after** | exit 0 | | subject | built from objectstack `07c6f822` | **after** | the TS2353 is **gone**; two diagnostics remain, both in OTHER files and both pre-existing (see below) | The two vocabularies were read directly, so "both legs" is not an inference: the published spec's `ListViewSchema.shape.type` answers `["grid","kanban","gallery","calendar","timeline","gantt","map","chart","tree","page"]` and the `main`-built one answers the same list without `page`. ##⚠️ This does NOT clear objectui#9860's day-one red, and the gate under-reports ⭐ **Measured, and it changes what objectui#9877 is waiting for.** With the `main`-built spec injected, `@object-ui/core` alone has **three** diagnostics, not one. The gate reported one because each package's `type-check` script is `tsc --noEmit && tsc -p tsconfig.test.json`: the first half failed, so the TESTS project never ran. Running the tests project ALONE against the **pristine** (unchanged) source with `main`'s spec injected prints all three at once — ``` src/utils/__tests__/normalize-list-view.pageResidual-8429.test.ts(146,13): error TS2322: Type '"page"' is not assignable to type 'ViewType'. src/utils/normalize-list-view.ts(205,3): error TS2353: Object literal may only specify known properties, and 'page' does not exist in type 'Record<"list" | "detail", string | null>'. src/validation/__tests__/object-validation-engine.test.ts(162,9): error TS2322: Property 'source' is missing in type '{ dialect: "cel"; ast: … }' … ``` — which is how the other two are proven to be pre-existing rather than introduced here (that control reverted this file by blob hash, ran, and restored by hash equality). Neither is this card's: - the `pageResidual-8429` pin is the **deliberate tripwire** for objectui#8429: its own header says "narrow `ViewType` ⇒ the published faces stop accepting `page` ⇒ RED". It is red for the reason it was written to be red, and it cannot be made both-legs-total without deleting the thing it pins — its assertions (`SPEC_LIST_VIEW_TYPES.length` is 10, `ViewTypeSchema.safeParse('page').success` is true) are TRUE today on the published leg. It is a pin-bump conversion, not a repair. - the `object-validation-engine` diagnostic is an unrelated upstream shape move (an expression wire that now requires `source`). ⇒ landing objectui#9877 still puts a red advisory check on every pull request. This diff removes one of the three reasons. ## Tests New pin `packages/core/src/utils/__tests__/normalize-list-view.undrawableBothLegs-9880.test.ts`. Any single run installs only ONE spec, so the type-level half lifts the source's two operators over a SIMULATED vocabulary — published-shaped, `main`-shaped, and grown — and asserts the derived drawable set is the same under the first two, that a total record over it compiles under both, and that a grown vocabulary forces the new kind to be classed. **The pins fire.** Ablating the two `@ts-expect-error` directives (mutation proven on disk by blob hash `f6189d5c…` → `7e392423…`, restored to `f6189d5c…` by hash equality, `trap` on EXIT/INT/TERM with absolute paths) makes `tsc -p packages/core/tsconfig.test.json` print exactly the two diagnostics they hold down, **on the published leg**, where the source itself cannot produce them: ``` …undrawableBothLegs-9880.test.ts(109,3): error TS2353: Object literal may only specify known properties, and 'page' does not exist in type 'Record<"list" | "detail", string | null>'. …undrawableBothLegs-9880.test.ts(116,14): error TS2741: Property 'pivot' is missing in type '{ grid: true; kanban: true; }' but required in type 'Record<"grid" | "kanban" | "pivot", true>'. ``` The first is the card's own diagnostic, reproduced inside ordinary CI. One runtime assertion also needed a fresh module instance (`vi.resetModules()` + dynamic import): the undrawable warning is once-per-kind-per-module, and the `unit` project runs `isolate: false`, so a sibling suite in the same worker had already spent it — the first draft of that test failed for exactly that reason before it was corrected. | command | verdict | |:--|:--| | `pnpm exec vitest run packages/core/` (published spec) | 156 files / 3295 tests passed | | `turbo run type-check --filter=@object-ui/core` (published) | exit 0 | | `turbo run type-check --filter=...@object-ui/core` (published, core + every downstream consumer) | exit 0 — 73 tasks | | `turbo run build --filter=@object-ui/core` | exit 0 — declarations emit the derived type and the table shape | | `node scripts/check-changeset-presence.mjs` | exit 0 — 1 published source file, 1 changeset | | `node scripts/check-control-bytes.mjs` | exit 0 — 8005 tracked text files | | `node scripts/check-new-cross-file-line-citations.mjs` | exit 0 — 0 new citations | | `node scripts/check-type-check-coverage.mjs` | exit 0 — the new test file is compiled by `packages/core/tsconfig.test.json` | | `node scripts/check-test-path-roots.mjs` · `node scripts/check-spec-symbol-derivation.mjs` | exit 0 | | `pnpm exec eslint` on both changed files | exit 0 — 0 errors, 0 warnings | | `node scripts/check-governed-queue-guard.mjs --test` on the 3 changed paths | exit 0 — NOT GOVERNED, 0 of 5 surfaces matched |⚠️ **MEASURED AFTER this body was written, and the sentence that stood here — 「NOT MEASURED: a repo-wide `pnpm type-check` on the `main`-built leg」 — is replaced rather than left standing.** A repo-wide `TURBO_FORCE=true turbo run type-check --concurrency=3 --continue` against the `main`-built spec at objectstack `07c6f822` prints **20 unique diagnostics across 7 packages** — core 2, plugin-view 3, types 6, react 1, console 1, plus 7 cascade in `app-shell` and `example-byo-backend-console` from `plugin-view`'s failed build ⇒ **13 non-cascade across 5 packages**. `@object-ui/plugin-view` carries three more hard-coded `page` rows of exactly this card's class. ⭐ Without `--continue`, turbo cancels the dependents and the same census collapses to **1**. ⇒ this belongs to objectui#9877's decision and is carried there and on its own cards; it is recorded here because a reader of objectstack-ai#9877 would otherwise use the replaced sentence to decide whether the gate's day-one break is cleared. <sub>Body edited by the `domain:ui#2` execution seat at 2026-09-18T19:00Z (clock read by this write), on the dev's own hand-back and its recommendation A — a dev writes its PR body once and ⛔ never PATCHes it, so a falsified NOT-MEASURED claim is the seat's to repair. ⛔ Nothing else in this body was changed.</sub> ## Acceptance notes — out of scope, noted, not fixed here - **The gate's break count is a lower bound, structurally.** Every package's `type-check` is `tsc && tsc -p tsconfig.test.json`, so on a red leg the tests project never runs and its diagnostics never reach the annotation step. objectui#9877's "one file fails" is therefore an artifact of `&&`, not a census. Worth its own card against the gate. Dedupe words: `spec-main-shape-gate short-circuit tests project`, `type-check && tsc -p tsconfig.test.json masks diagnostics`. - **`normalize-list-view.pageResidual-8429.test.ts` must be converted at the pin bump**, not repaired: it is single-leg BY CONSTRUCTION and red on `main` today. Dedupe words: `pageResidual 8429 pin ViewType narrowed`, `page residual conversion pin bump`. - **`object-validation-engine.test.ts` expression-wire drift** — `{ dialect, ast }` without `source` no longer satisfies the spec's expression union on `main`. Unrelated file, unrelated mechanism. Dedupe words: `object-validation-engine dialect source expression wire`, `spec main expression requires source`. - Noted, not filed: this file's `LIST_VIEW_KINDS` and the undrawable table are still two separate literals a reader must hold together; the partition is enforced, so this is ergonomics, and the carrier that would touch it is the pin-bump PR. --- 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_018HrVaotisyhgmot9o2MLRq --- _Generated by [Claude Code](https://claude.ai/code/session_018HrVaotisyhgmot9o2MLRq)_ --- _Generated by [Claude Code](https://claude.ai/code)_ Co-authored-by: Claude <noreply@anthropic.com>
akarma-synetal
pushed a commit
to akarma-synetal/objectui
that referenced
this pull request
Sep 28, 2026
… authored metadata (objectui#10080) (objectstack-ai#10089) Fixes objectstack-ai#10080 Clause-②: no — this is a test fixture's own type annotation. It moves no exported symbol, no key on a published payload, and relaxes no accept set.⚠️ Generic parameters are written as UPPERCASE WORDS in this body, never literally in angle brackets: GitHub's body sanitizer deletes tag-shaped fragments on save, and neither backticks nor fenced code blocks protect them (AGENTS.md, "GitHub mutates body BYTES"). A before/after table whose two columns collapse into the same string is exactly the failure this spelling avoids. ## What changed, and why it is a split rather than a deletion `packages/react/src/hooks/__tests__/useNavigationOverlay.modeDefault.test.tsx` had ONE declaration doing TWO jobs, and `@objectstack/spec` 17.5.0's retirement of `navigation.view` (ADR-0049) pulled them apart: - the **objectui#4550 TYPE pin** is the ANNOTATION — a spec-authored config that omits `mode` is accepted by the alias; - the **objectui#9874 BEHAVIOUR pin** is the VALUE — a stored body carrying the retired key must not let that name reach `onNavigate`'s navigation-MODE slot. The spec types the retired key as NEVER on the authoring side, so the value can no longer be spelled where the annotation is. One fixture per job now: - `AUTHORED_WITHOUT_MODE` keeps `SpecAuthoredInput` OF `NavigationConfigSchema` and authors `size: 'lg'` — a key the spec still declares, and the very example `useNavigationOverlay`'s own header gives for authored metadata that lets `mode` default. - `STORED_WITH_RETIRED_VIEW` is a RECORD of STRING to UNKNOWN, asserted once to `NavigationConfig` at the boundary, and carries `view: 'summary_view'` into the two rows that measure its inertness. The shape is copied from `packages/plugin-grid/src/__tests__/gridNavigationMembers-8071.test.tsx`, which fed the same legacy body through a record parameter and kept both of its rows through the retirement. ⛔ Nothing was deleted and no assertion was weakened. The disagreement row still reads `expect(onNavigate).toHaveBeenCalledWith('r1', 'view')` beside `expect(onNavigate).not.toHaveBeenCalledWith('r1', 'summary_view')`, and both it and the state-shape row still receive `{ view: 'summary_view' }` — byte for byte the value they received before. Both file headers were updated to say which fixture carries which job and why the stored body is not typed through the authoring schema; the parts that were still accurate were left alone. ## The gate leg: 1 diagnostic to 0, with the control lit in the same command **Was the injection reproducible? YES.** `scripts/spec-main-shape-gate.mjs` lives on PR objectstack-ai#9877's branch (`origin/claude/issue-9860-spec-main-shape-gate`, `fdb1b33f`), not on `main`. Its `inject()` was imported unmodified and called with `repoRoot`, which is a parameter of that function — the CLI omits it only because on a runner the script sits inside the repo it injects into. Everything else followed the workflow: `@objectstack/spec` built from objectstack `main` at `cdedfb348dd71738a7772a8e0d6d13f12ba06d14`, `npm pack --ignore-scripts`, remove-then-copy into the worktree's pnpm virtual store. The script's own verification passed: **29 workspace consumers** confirmed resolving the injected copy. Every leg printed the switch state — which spec the compiler resolves, and what it declares for the `view` member — in the SAME command as the reading, so no number can be attributed to the wrong corpus. | leg | spec under the compiler | tree | `pnpm --filter @object-ui/react type-check` | | --- | --- | --- | --- | | CONTROL, before | published pin 17.4.0, `view` is OPT of `z.ZodString` | `0c2eb5eee` (origin/main) | **0 diagnostics**, exit 0 | | SUBJECT, before | injected main build, `view` is OPT of `z.ZodNever` | `0c2eb5eee` | **1 diagnostic**, exit 2 | | SUBJECT, after | injected main build, same declaration | `e46593079` | **0 diagnostics**, exit 0 | | CONTROL, after | published pin restored | `424a89353` | **0 diagnostics**, exit 0 | The one diagnostic, verbatim, and the only one the package reported: ``` src/hooks/__tests__/useNavigationOverlay.modeDefault.test.tsx(76,3): error TS2322: Type 'string' is not assignable to type 'undefined'. ``` ⭐ The control is not decoration. A zero from the published pin says the change did not buy its green by breaking compilation against everything, and the same published pin is what declares `view` as OPT of `z.ZodString` — which is why the file compiled there all along. ## Ablations — both proved on disk, never by an exit code Run through `ablation-replace`, which refuses an anchor that does not hit, verifies the write against the disk, and proves the restore against the HEAD blob. **A. The green is not a vacuous green.** Re-spelling `view: 'summary_view'` inside the `SpecAuthoredInput` literal, under the SAME injected spec, brings the diagnostic straight back at the member's new line: ``` src/hooks/__tests__/useNavigationOverlay.modeDefault.test.tsx(94,3): error TS2322: Type 'string' is not assignable to type 'undefined'. ``` Mutation landed: anchor 1 to 0, blob `30f311446b83` to `5f0c51587a5d`. Restored: blob back to `30f311446b83`, equal to HEAD, `git diff HEAD` empty. This is the file still being in tsc's corpus AND the diagnostic being caused by exactly that member in exactly that annotation. **B. The disagreement row can still fail.** Moving the stored name into the MODE slot — the position the retired read used to put it — turns that row and only that row red: ``` FAIL … routes a click through the `page` branch WITHOUT a stored `view` reaching the mode slot (objectui#9874) AssertionError: expected "vi.fn()" to be called with arguments: [ 'r1', 'view' ] Number of calls: 0 Tests 1 failed | 16 passed (17) ``` Mutation landed: blob `30f311446b83` to `5f55a9323412`. Restored: blob back to `30f311446b83`, `git diff HEAD` empty.⚠️ **NOT MEASURED, declared:** a firing control for the second assertion (`.not.toHaveBeenCalledWith('r1', 'summary_view')`) requires the hook to reintroduce the substitution, and the hook is outside this PR's one-file surface. No path in the current implementation dispatches an arbitrary string into that slot, so that half cannot be fired from the fixture side. It is stated rather than quietly skipped. ## Tests and gates - `pnpm --filter @object-ui/react exec vitest run … useNavigationOverlay.modeDefault.test.tsx` — **17 passed (17)**. - the whole package: **89 test files, 1127 tests, all passed**. - `pnpm --filter @object-ui/react type-check` — exit 0 (see the table). - `check-changeset-presence` — RED first ("1 source file(s) of 1 released package(s) changed, and this change adds no changeset"), which is why this PR carries `.changeset/10080-modedefault-fixture-stored-body.md` with an EMPTY frontmatter. That is the gate's own sanctioned answer for a change that releases nothing ("the explicit exemption and a complete answer to this gate"), not a workaround, and it is the only file in this PR besides the fixture. Nothing in `@object-ui/react`'s published `files` (`dist`, README, CHANGELOG, LICENSE) moves. - also green on the exact pushed tree: `check-changeset-no-major`, `check-control-bytes` (8117 files scanned), `check-new-cross-file-line-citations` (0 new citations — the precedent file is cited by path, deliberately without a line number), `check-vi-mock-specifiers`, `check-vi-mock-inherit`, `check-changeset-claims`, `check-pending-changeset-literals`. - `check-governed-queue-guard --test` on both paths: NOT GOVERNED, 2 paths checked against 5 governed surfaces. - eslint on the changed file: 1 file linted, 0 errors, 0 warnings.⚠️ Narrowed on purpose: the repo-wide lint farm is CI's run, not this one's. ## What this PR does not do ⛔ It does not re-declare `view`, does not add a deprecated alias, and does not work around the tombstone at the spec level — objectui#9874 was ruled **A** and objectui is a consumer here. It stays DRAFT; no label was applied, ready was not flipped, and auto-merge was not armed. This change was made in Claude Code session `https://claude.ai/code/session_018HrVaotisyhgmot9o2MLRq`. --- _Generated by [Claude Code](https://claude.ai/code/session_018HrVaotisyhgmot9o2MLRq)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to 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.
Part of #9860 — and #9860 remains open on purpose: see What is left, and whose it is below. This pull request lands the job; the half that makes it REQUIRED is a repository setting no file in this tree can write.
Clause-②: no — this adds a CI job; it moves no exported symbol, no key on a published payload, and relaxes no accept set.
Executes the maintainer's ruling of 2026-09-18, option C, recorded verbatim on the card: a real consumer compiling against objectstack
mainis the only shape gate for@objectstack/spec's public surface. objectui is the first consumer. The direction is not re-adjudicated here.What lands
.github/workflows/spec-main-shape-gate.yml— check name Spec Main Shape Gate. On every pull request (no path filter) and on merge-queue builds it resolves objectstackmainto a sha, fetchespackages/specat that sha, builds it, injects the result into this repository's install, and runsTURBO_FORCE=true pnpm type-check.scripts/spec-main-shape-gate.mjs— the two halves the job calls:inject(replace and prove) andreport(attribute and refuse).The acceptance criterion, demonstrated on a real break
The card's criterion is that a red names which objectui file fails against which objectstack commit. That is not a plan here; the gate was run end to end against
objectstack-ai/objectstack@96cf32b07579c0cafb6d9e58bb51930cef48e48d(2026-09-18T11:42:52Z) and it is RED, on exactly one file:The report step turns that into a GitHub annotation on line 205 of
packages/core/src/utils/normalize-list-view.tscarrying the objectstack short sha, plus a run-summary table pairing the file with a link to that commit. The file's own comment says the record is total over the spec's list "so a member the spec adds must be classed as drawable or explained HERE" — the removal direction breaks it the same way, which is the drift option C exists to see.Controlled, not assumed. The same injection mechanism, same command, published bytes instead of main's:
turbo run build --filter=@object-ui/core@objectstack/spec@17.4.0from npmobjectstack@96cf32b07579So the break is objectstack
mainversus the published pin, not the mechanism.A second, independent drift the compiler does not see: with main's spec installed,
scripts/__tests__/vite-objectstack-spec-dist.test.tsfails 2 of 41 — the set of exports entries carrying abrowserarm moves from./cloudto./api. Same two legs, same file: 41/41 pass on the published spec, 39/41 on main's. That is an existing pin doing its job at the next pin bump, reported here and not fixed here.The three questions the dispatch asked, each with its number
1. The fetch shape — sparse checkout, decided by bytes received. Three shapes, all measured on 2026-09-18 in one container against this same commit, with curl's and git's own counters (
--write-outfor the tarball,du -sbon.gitfor the clones):.git(59.7 MiB)packages/spec,scripts).git(19.0 MiB)19.0 MiB against 54.7 MiB is the number that decided it — 2.88x less than the tarball and 3.14x less than the full clone. The tarball loses for a structural reason, not a marginal one: codeload has no server-side path filter, so it ships the whole repository however little the job needs.⚠️ Taken through this container's egress proxy, so the SECONDS are indicative and the BYTES are the claim.
The cone holds
scriptsas well aspackages/specbecause the spec's own build script calls scripts from the objectstack repository root; a cone holding onlypackages/specfails in its build step.2. The mechanism — pnpm's virtual store, after a frozen-lockfile install. This was the non-obvious one. objectui consumes a published
@objectstack/specthrough a caret range in many manifests plus apnpm-lock.yamlresolution, and the pin-bump question is fenced off as still open.OBJECTSTACK_SPEC_DIST(scripts/vite-objectstack-spec-dist.ts) already resolves the spec at a locally built one — but it emits Viteresolve.aliasentries, andtscdoes not read a Vite config. A typecheck under it compiles against the installed spec: a green that means nothing. It stays the right hook for the console build.pnpm.overrides/file:/link:all movepnpm-workspace.yaml, apackage.jsonor the lockfile. Every one of those is the pin.pnpm install --frozen-lockfile, replace the contents ofnode_modules/.pnpm/@objectstack+spec@*/node_modules/@objectstack/specwith the built package. Nothing tracked by git is touched; a normal build resolves exactly what it resolved before.Two things make that safe rather than clever, both measured:
stat -c %hon the installed spec'spackage.jsonread 7 before injection and 1 after. Writing through a hardlink would corrupt@objectstack/specfor every checkout on the machine and for whateveractions/setup-node's pnpm cache saves afterwards.29 workspace consumer(s) verified on itbecause it resolves every workspace symlink and refuses if any lands on a copy it did not inject.The injected bytes come from
npm pack(2,039 files, 28,685,157 B for this commit), so what objectui compiles against is the file set a release from that commit would ship — and a spec built with declarations skipped is refused by name instead of failing every consumer with TS2307.A third trap, found while measuring: the turbo cache is a false green here. turbo's hash covers this repository's sources, its lockfile and a declared env list — never the content of
node_modules, which is the only thing this job changes. A cachedtype-checktherefore replays a verdict taken against a different spec, including the published one, and a run at a new objectstack sha replays the old sha's answer. The job runs withTURBO_FORCE=trueand no cache action; the pin test holds it there. Observed on the real run:force_executed_tasks=17,cache_hits=0.3. "REQUIRED" is NOT mine to set — and this repository already knows it. Requiredness is GitHub ruleset 11776024, repository settings.
scripts/check-required-check-set.mjsexists precisely because that surface can be READ from a job with network and written by nothing in this tree; its header states the read half and the write half separately. So this pull request does not claim the check is required. It makes it requirable, which is the part that is in the tree:pull_request— a check that does not report on every pull request cannot be required (⛔ P0:合并队列已强制但零 merge_group 订阅——队列必需集为空、不校验任何东西;今日已兑现三例带红 Type Check 合入(#3503/#3510/#3516) #3523: it leaves the PR pending until the ruleset's 60-minute timeout);merge_group— so a maintainer can enrol it alone, without the enrolment stalling every queued pull request. That ordering is ⛔ P0:合并队列已强制但零 merge_group 订阅——队列必需集为空、不校验任何东西;今日已兑现三例带红 Type Check 合入(#3503/#3510/#3516) #3523's, paid for once already;continue-on-error; a shape break is a real red.What is left, and whose it is
Maintainer-action:enrol the contextSpec Main Shape Gatein ruleset 11776024, and move its name fromNOT_A_GATEtoREQUIRED_CONTEXTSinscripts/dependabot-merge-gate.mjs(one line; the merge-queue floor is already satisfied).NOT_A_GATEentry so the next reader does not have to reconstruct them. Until then the check reports, annotates and goes red honestly; it just does not stop a merge.⛔ Deliberately not decided here, because the card fences them off: who bumps the pin, cloud's half of option C, and whether
packages/coreor objectstack answers thepagebreak.Tests and gates
Run on this branch; the commands and their real verdicts:
node scripts/spec-main-shape-gate.mjs --self-testpnpm exec vitest run scripts/vite-objectstack-spec-dist.test.ts, caused by the injected spec still being in this checkout'snode_modules, proven by the two legs above (41/41 with the published spec restored)pnpm type-check:scriptspnpm type-check(baseline, published spec, cold turbo cache)TURBO_FORCE=true pnpm type-check(main's spec injected)node scripts/check-control-bytes.mjsnode scripts/check-action-ref-convention.mjsnode scripts/check-pre-install-import-graph.mjsnode scripts/check-shell-escape-residue.mjsnode scripts/check-changeset-presence.mjsnode scripts/check-new-cross-file-line-citations.mjsnode scripts/check-governed-queue-guard.mjs --teston the final file listThe heavy runs went through the shared verify lock and their seconds are shared-box seconds, not idle-box ones.
Generated by Claude Code
Generated by Claude Code