Skip to content

feat(evals): add the Strong mode repair task family - #1493

Merged
trueadm merged 22 commits into
mainfrom
feat/strong-repair-evals
Oct 1, 2026
Merged

trueadm merged 22 commits into
mainfrom
feat/strong-repair-evals

Conversation

@trueadm

@trueadm trueadm commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Adds a Strong mode repair task family to the user-apps-v1 eval corpus (issue #1027 §C, "Eval coverage"; item 5 of the brief). An agent gets failing code plus the Strong error, and passes only if it fixes the bug rather than routing around the check.

The diagnostics these starters depend on are now on main: #1489 merged, and #1492 merged with #1491's commits. This diff touches only packages/octane-evals.

Why

A compile check alone can't tell a real fix from a rewrite that silences the diagnostic and keeps the bug, so each task also needs a behavioral check. And the workarounds that still compile are the compiler's to-do list, so they should be recorded and kept checked rather than lost.

Changes

Tasks. 14 octane.strong-* tasks share familyId: octane.strong-repair and capability: repair. Each covers one Strong failure mode:

  • managed DOM writes (text, class)
  • raw HTML
  • own-markup queries
  • render randomness (row keys, random IDs, shuffle)
  • locale formatting
  • effect state updates (derived name, save counter)
  • effect data fetching
  • ambient reads
  • snapshot mutation
  • ref reads

Prompts. Each starter opts into "use strong" and fails to compile, and its prompt.md quotes the compiler's exact error.

Graders. A shared strong-repair.ts helper compiles the submission with strong: true in client and server modes, so deleting the directive doesn't help. Each grader then checks behavior: server-rendered HTML, prop updates, a fetch race, cleanup on unmount, row identity, or time-zone independence. The submission is imported inside each test, so a Strong-failing starter still records a failed assertion. A source contract also keeps the directive in place.

Recorded workarounds. Each task stores the rewrites agents reach for under negatives/<name>/src/App.tsrx. They seed the brief's probe snippets and the workarounds the two parallel Strong sessions are closing:

  • startTransition, queueMicrotask, Promise.resolve().then, zero-delay setTimeout, and an async IIFE around a setter;
  • a mount-guard ref;
  • an empty fake cleanup;
  • a non-fetch API client;
  • a listener or interval without cleanup;
  • a fresh useSyncExternalStore snapshot;
  • mutate-then-set and a mutating updater;
  • setN(n + 1) after await;
  • const [, force] = useState(0) over module state.

Verifier. The new scripts/verify-strong-repair-corpus.mjs (pnpm --filter @octanejs/evals strong-repair:verify, or strong-repair:check):

  • requires every prompt to quote its starter's current error;
  • requires every reference to compile;
  • requires every workaround to fail its grader, running one negative per task per Vitest run, concurrently;
  • writes strong-repair-negatives.json.

14 of 39 workarounds still compile in Strong mode and keep the bug (compiles-keeps-bug). It was 27 of 37 when this PR opened. Merging main brought in four Strong PRs that close recorded gaps:

Review feedback added two workarounds that compile:

  • window?.innerWidth ?? 1024 in a lazy initializer, which throws on a real server;
  • count-on-click, which increments before await save(). Strong can't tell when a count is meant to happen, so this is a grader-strength negative rather than a compiler gap. The save-counter grader now checks the label while saves are pending, and a reducer-then alternative keeps the stricter grader honest.

The other gaps are the compiler-fixture backlog: when a parallel session closes one, its entry flips to rejected-by-strong and --check asks for the ledger to be regenerated, which makes the change visible in review.

Corpus plumbing:

  • generate-user-app-corpus.mjs honours the catalog familyId, uses a repair-specific training system prompt for repair tasks, and includes strong-repair.ts in those tasks' grader digests.
  • user-app-corpus.test.ts adds the required strongRepairs coverage group and runs the verifier in check mode.
  • Updated the task counts (now 35) and the README/task-authoring framing for repair tasks, including the carve-out for starters that fail Strong compilation.

Validation

  • pnpm --filter @octanejs/evals corpus:check, and the verifier in --check mode
  • vitest --project octane-evals --project octane-evals-user-apps: 45 files, 166 tests. This includes all 35 references, the starter check (every starter fails a behavioral assertion), and the workaround verifier.
  • Strong compiler suites on this branch: 1,344 tests passing
  • pnpm format:files:check; pnpm typecheck passed on the combined local work
  • pnpm test: same local caveat as feat(compiler): close Strong render determinism gaps #1489. 82,876 tests passed; 2 load-related failures pass in isolation.
  • The verifier caught real grader holes during authoring. A sorted-tags draft reset re-rendered the mutated array. A mutating reducer renders correctly in this app, so I dropped it as a negative.

Risk / follow-ups

  • pnpm typecheck:files can't check eval corpus files because no tsconfig covers them. That's pre-existing and also true of the existing graders.
  • The verifier spawns concurrent Vitest runs and takes about 40 s, inside the separately run corpus test.
  • Entries in the 14-gap ledger (except count-on-click) are candidate compiler fixtures, for example text-node-write and computed-class-method.

Provenance

  • An agent produced this diff (agent-authored)

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.


Note

Low Risk
Changes are confined to eval/training corpus and verification scripts; no production runtime or auth paths. Main risk is corpus maintenance burden and CI time from the new verifier runs.

Overview
Expands the public user-apps-v1 training corpus from 21 to 35 tasks by adding fourteen octane.strong-* repair exercises under family octane.strong-repair. Starters use "use strong", fail compilation with a quoted diagnostic, and graders require both Strong client/server compile (even if the directive is removed) and observable behavior fixes—not workarounds that silence the checker.

Each task ships reference, starter, prompt, grader, negatives/ workaround apps, and in some cases alternatives. Shared strong-repair.ts drives compile checks and server HTML evaluation in a Node realm without browser globals. strong-repair-negatives.json tracks whether each workaround is rejected-by-strong or still compiles-keeps-bug (compiler backlog). pnpm --filter @octanejs/evals strong-repair:verify validates prompts, references, and negatives.

catalog.json gains a strongRepairs coverage map and task metadata; manifest.jsonl and grader digests are regenerated. Docs and READMEs now describe repair capability and the new count. source-contracts.test.ts enforces the leading "use strong" directive on repair references; corpus tests require the new coverage group and run the verifier in check mode.

Reviewed by Cursor Bugbot for commit 7124962. Bugbot is set up for automated code reviews on this repo. Configure here.

trueadm and others added 4 commits October 1, 2026 09:38
When a useRef provably names exactly one intrinsic element in the same
component (or keyed @for row), Strong mode now rejects imperative writes to
what the template owns on that element:

- OCTANE_STRONG_MANAGED_DOM_WRITE: textContent, innerText, or the child-list
  methods on an element with rendered children; className, classList mutators,
  or classList.value when the template sets a class; setAttribute,
  removeAttribute, or toggleAttribute for an attribute the template sets; and
  style, style.cssText, or a style property the template sets.
- OCTANE_STRONG_RAW_HTML_WRITE: innerHTML, outerHTML, insertAdjacentHTML, or
  setHTMLUnsafe on a rendered element; the message names
  dangerouslySetInnerHTML={trustHTML(html)}.

The proof follows .current reads, `const { current } = ref`, unreassigned local
aliases, ref lists, and inline callback refs. Any other use of the ref (a
component ref prop, a helper argument, a .current write, a second element)
withdraws it. Writes to DOM the template does not own, such as mounting a widget
into an empty container, stay valid.

The analysis is a standalone pass in strong-dom.js that reuses Strong's hook
scope analysis and is skipped for top-level statements without a ref prop and
a DOM write spelling. Diagnostics only: compatibility mode and emitted code are
unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…markup

New OCTANE_STRONG_OWN_MARKUP_QUERY rejects document.getElementById(),
querySelector(), querySelectorAll(), and getElementsByClassName() when a
literal selector matches a literal id or class rendered by the same
component. The message names a ref as the replacement.

Only a single compound selector (#id, .class, tag.class, …) is matched,
against literal id and class values, including string elements of a class
array. Portal targets, markup rendered by other components, dynamic
selectors, combinators, element-scoped queries, and a shadowed document stay
valid. window.document, globalThis.document, and const aliases of document
are followed.

Builds on the DOM ownership pass in strong-dom.js. Diagnostics only:
compatibility mode and emitted code are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Strong mode treated callbacks passed to known synchronous array methods as
deferred, so `items.map(i => <li key={Math.random()} />)` and random children
inside `.map` compiled. Those callbacks now run in the caller's phase, so every
render rule applies inside them (impure calls, ref reads, state updates).

`crypto.randomUUID()` and `crypto.getRandomValues()` join
OCTANE_STRONG_RENDER_IMPURE_CALL with a message that names `useId()`, and an
impure call that computes a `key` or `@for` key gets a message that names a
stable item ID.

New OCTANE_STRONG_RENDER_LOCALE_FORMAT rejects locale- and time-zone-dependent
formatting during render when the receiver is provably a Date or the
constructor is an Intl service, including module-level formatters used in
render.

The analysis lives in strong-render-policy.js; strong-mode.js only gains hook
points. Diagnostics only: compatibility mode and emitted code are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Fourteen octane.strong-* tasks in user-apps-v1 share familyId
octane.strong-repair and the repair capability. Each starter opts into Strong
mode and fails to compile; its prompt quotes the compiler's exact error. A
grader passes an answer only when it compiles in Strong mode (the grader passes
strong: true, so deleting the directive does not help) and the behavior the
diagnostic predicts is gone: server-rendered HTML, prop updates, fetch races,
cleanup on unmount, and stable identity. Graders import the submission inside
each test so a Strong-failing starter still records a failed assertion.

Each task records the workarounds agents reach for under negatives/. The new
scripts/verify-strong-repair-corpus.mjs checks that every prompt quotes its
starter's current error, every reference compiles, and every workaround fails
its grader, then writes strong-repair-negatives.json. 27 of 37 workarounds
still compile in Strong mode while keeping the bug; that ledger is the
compiler-fixture backlog, and a check that closes one makes the ledger stale.

The generator honours the catalog familyId, uses a repair-specific training
system prompt for repair tasks, and adds the shared strong-repair.ts helper to
those tasks' grader digests. The corpus test requires the new strongRepairs
coverage group and runs the verifier in check mode.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added agent-authored Diff or issue body substantially produced by an AI agent feat PR: new feature or capability labels Oct 1, 2026
@github-actions
github-actions Bot marked this pull request as draft October 1, 2026 08:43
trueadm and others added 2 commits October 1, 2026 09:49
Literal normalization rewrites text removed by JSX whitespace rules to '', which
renders nothing. rendersChild now honours that, so an empty host never counts
as owning children. Today's parsers drop line-break-only text before
normalization, so this guards the contract rather than a reachable case; the
new fixture pins a formatted empty container as a valid mount target.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Autofix Details

Bugbot Autofix prepared a fix for the issue found in the latest run.

  • ✅ Fixed: Server eval sees jsdom window
    • Shadowed window, document, and self as undefined parameters in the new Function call so server-compiled code sees typeof window === 'undefined', matching real Node.js SSR behavior.

Create PR

Or push these changes by commenting:

@cursor push 22326e3011
Preview (22326e3011)
diff --git a/packages/octane-evals/datasets/train/user-apps-v1/strong-repair.ts b/packages/octane-evals/datasets/train/user-apps-v1/strong-repair.ts
--- a/packages/octane-evals/datasets/train/user-apps-v1/strong-repair.ts
+++ b/packages/octane-evals/datasets/train/user-apps-v1/strong-repair.ts
@@ -57,10 +57,13 @@
 		if (specifier === 'octane/internal/server') return ServerHelpers;
 		throw new Error(`Unsupported server-eval import: ${specifier}`);
 	};
-	new Function('require', 'module', 'exports', commonJs)(
+	new Function('require', 'module', 'exports', 'window', 'document', 'self', commonJs)(
 		requireServerRuntime,
 		module,
 		module.exports,
+		undefined,
+		undefined,
+		undefined,
 	);
 	return module.exports;
 }

You can send follow-ups to the cloud agent here.

trueadm and others added 2 commits October 1, 2026 09:49
The server checks ran server-compiled submissions inside the jsdom test realm,
so `window` was defined. A Strong-valid lazy initializer guarded by
`typeof window === 'undefined'` (the pattern the ambient-read diagnostic
recommends) reported jsdom's width and failed the viewport task, although real
SSR takes the guard's server branch.

serverModule now shadows window, self, document, navigator, location,
localStorage, sessionStorage, and matchMedia as undefined, as on a real server.
The verifier also grades recorded valid answers under alternatives/ and fails
when a grader rejects one; the viewport task records the lazy-initializer
answer that exposed this. The workaround ledger is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@vercel

vercel Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Actions Updated
octane-website Skipped Skipped Oct 1, 2026 8:50pm UTC
octane-website-mcp Skipped Skipped Oct 1, 2026 8:50pm UTC

Request Review

@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp October 1, 2026 09:24 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website October 1, 2026 09:24 Inactive

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Autofix Details

Bugbot Autofix prepared a fix for the issue found in the latest run.

  • ✅ Fixed: Server eval does not match real servers
    • Replaced parameter-shadowing with vm.createContext so browser globals are genuinely absent (globalThis.window is undefined, bare window throws ReferenceError), matching a real Node server.

Create PR

Or push these changes by commenting:

@cursor push 9dc3d7ec96
Preview (9dc3d7ec96)
diff --git a/packages/octane-evals/datasets/train/user-apps-v1/strong-repair.ts b/packages/octane-evals/datasets/train/user-apps-v1/strong-repair.ts
--- a/packages/octane-evals/datasets/train/user-apps-v1/strong-repair.ts
+++ b/packages/octane-evals/datasets/train/user-apps-v1/strong-repair.ts
@@ -1,6 +1,7 @@
 import { readFileSync } from 'node:fs';
 import { dirname, join, resolve } from 'node:path';
 import { fileURLToPath } from 'node:url';
+import vm from 'node:vm';
 import ts from 'typescript';
 import { expect } from 'vitest';
 import { compile } from 'octane/compiler';
@@ -45,19 +46,6 @@
 	expect(strongCompileErrors(source)).toEqual([]);
 }
 
-// A real server has none of these. The graders run in jsdom, so the server build
-// sees them shadowed as undefined, and `typeof window === 'undefined'` holds.
-const BROWSER_GLOBALS = [
-	'window',
-	'self',
-	'document',
-	'navigator',
-	'location',
-	'localStorage',
-	'sessionStorage',
-	'matchMedia',
-];
-
 /** Evaluate the Strong server build of a submission without browser globals. */
 export function serverModule(source: string): Record<string, any> {
 	const { code } = compile(source, 'App.tsrx', { mode: 'server', strong: true } as any);
@@ -70,11 +58,27 @@
 		if (specifier === 'octane/internal/server') return ServerHelpers;
 		throw new Error(`Unsupported server-eval import: ${specifier}`);
 	};
-	new Function('require', 'module', 'exports', ...BROWSER_GLOBALS, commonJs)(
-		requireServerRuntime,
+	// Run in a vm context that has no browser globals. Unlike parameter
+	// shadowing, this makes bare `window` a ReferenceError and keeps
+	// `globalThis.window` absent, matching a real Node server.
+	const ctx = vm.createContext({
+		require: requireServerRuntime,
 		module,
-		module.exports,
-	);
+		exports: module.exports,
+		console,
+		process,
+		Buffer,
+		URL,
+		URLSearchParams,
+		TextEncoder,
+		TextDecoder,
+		setTimeout,
+		clearTimeout,
+		setInterval,
+		clearInterval,
+		queueMicrotask,
+	});
+	vm.runInContext(commonJs, ctx);
 	return module.exports;
 }

You can send follow-ups to the cloud agent here.

trueadm and others added 2 commits October 1, 2026 10:34
Brings in #1497 (Strong state values, updaters, and write-only state) and
resolves the same conflicts as #1489 in strong-mode.js and the Strong docs,
keeping the DOM ownership and query additions from #1491 and #1492.

The workaround ledger records that #1497 now rejects five workarounds that
previously compiled and kept the bug: both force-update click tallies,
setN(n + 1) after await, mutate-then-set, and the mutating updater
(27 → 22 compiler gaps). Prompts, references, and the recorded alternative are
unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Shadowing browser names as undefined parameters did not match a real server.
`globalThis.window` still reached jsdom, so a valid `globalThis.window` guard
failed the viewport task, and `window?.innerWidth ?? 1024` passed although a
real server throws a ReferenceError on the undeclared `window` binding.

serverModule now evaluates the server build in a separate node:vm realm that
carries only Node's server globals (timers, console, URL, fetch, crypto, and
similar), so browser names are undeclared exactly as in production. The
viewport task records the `globalThis.window` guard as a valid alternative and
the optional-chained `window` read as a workaround; the latter compiles in
Strong mode and is now a recorded compiler gap (23 of 38).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@vercel
vercel Bot temporarily deployed to Preview – octane-website October 1, 2026 09:39 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp October 1, 2026 09:39 Inactive
A spread in the locale or options position, such as `toLocaleString(...args)`
or `new Intl.DateTimeFormat(...args)`, can supply both the locale and the
options. OCTANE_STRONG_RENDER_LOCALE_FORMAT treated the following position as
absent and reported a missing time zone it could not prove. A spread in either
of the first two positions now leaves the call unreported, like other options
the compiler cannot see.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Autofix Details

Bugbot Autofix prepared a fix for the issue found in the latest run.

  • ✅ Fixed: Fetch grader rejects abort-based repairs
    • Made the fetch stub accept an optional RequestInit and respect AbortSignal (rejecting with AbortError on abort), and changed the URL assertion to check only the first argument so that passing { signal } no longer fails the test.

Create PR

Or push these changes by commenting:

@cursor push 25e12709f4
Preview (25e12709f4)
diff --git a/packages/octane-evals/datasets/train/user-apps-v1/tasks/octane.strong-user-fetch/grader.test.ts b/packages/octane-evals/datasets/train/user-apps-v1/tasks/octane.strong-user-fetch/grader.test.ts
--- a/packages/octane-evals/datasets/train/user-apps-v1/tasks/octane.strong-user-fetch/grader.test.ts
+++ b/packages/octane-evals/datasets/train/user-apps-v1/tasks/octane.strong-user-fetch/grader.test.ts
@@ -11,11 +11,19 @@
 	vi.stubGlobal(
 		'fetch',
 		vi.fn(
-			(url: string) =>
-				new Promise((resolve) => {
+			(url: string, init?: RequestInit) =>
+				new Promise<Response>((resolve, reject) => {
 					const id = url.split('/').pop()!;
-					responses.set(id, () =>
-						resolve({ json: () => Promise.resolve({ name: USERS[id] }) } as Response),
+					const signal = init?.signal;
+					const settle = () =>
+						resolve({ json: () => Promise.resolve({ name: USERS[id] }) } as Response);
+					responses.set(id, settle);
+					if (signal?.aborted) {
+						reject(new DOMException('The operation was aborted.', 'AbortError'));
+						return;
+					}
+					signal?.addEventListener('abort', () =>
+						reject(new DOMException('The operation was aborted.', 'AbortError')),
 					);
 				}),
 		),
@@ -42,7 +50,7 @@
 		const { App } = await import('@octane-eval-submission/octane.strong-user-fetch/src/App.tsrx');
 		const view = render(App, { props: { userId: '1' } });
 		expect(view.container.textContent).toBe('Loading…');
-		expect(fetch).toHaveBeenCalledWith('/api/users/1');
+		expect(vi.mocked(fetch).mock.calls[0]![0]).toBe('/api/users/1');
 		await respond('1');
 		expect(view.container.textContent).toBe('Ada Lovelace');
 	});

You can send follow-ups to the cloud agent here.

The grader asserted that fetch received only the URL, so passing an AbortSignal
failed the load test, and its stub ignored aborts, so a cleanup that calls
controller.abort() still let the stale response land. The stub now rejects with
an AbortError when the request's signal aborts, like a real fetch, and the load
test checks only the requested URL. The task records the AbortController repair
as an alternative that must pass; the recorded workarounds are still rejected.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp October 1, 2026 10:01 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website October 1, 2026 10:01 Inactive
@trueadm
trueadm marked this pull request as ready for review October 1, 2026 12:04
trueadm and others added 2 commits October 1, 2026 13:07
Brings in #1496 (stale deferred state updates), #1498 (uncached
useSyncExternalStore snapshots), and #1490. Keeps both new compiler imports in
strong-mode.js.

The workaround ledger records that #1498 now rejects the fresh-snapshot
viewport workaround (23 → 22 compiler gaps). Prompts, references, and
alternatives are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Brings in #1482 (Strong effect cleanup must cancel or ignore async state
updates; zero-delay and transition updates count as effect setup). Keeps both
sides of strong-mode.js: the render policy and the new effect policy.

#1482 rewords OCTANE_STRONG_EFFECT_STATE_UPDATE and
OCTANE_STRONG_EFFECT_DATA_FETCH, so the derived-name, save-counter, and
user-fetch prompts now quote the current errors. It also closes seven recorded
workarounds: startTransition, queueMicrotask, Promise.resolve().then, a
zero-delay setTimeout, an async IIFE, the empty fake cleanup, and the non-fetch
API client (22 → 15 compiler gaps). The AbortController alternative still
passes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Autofix Details

Bugbot Autofix prepared a fix for the issue found in the latest run.

  • ✅ Fixed: Local Intl alias skips locale check
    • Removed the redundant resolveScope(scope, unwrap(member.object).name) === moduleScope guard that compared the local alias's declaring scope instead of trusting aliasValue() which already follows const aliases through the scope chain to the module-level Intl service.

Create PR

Or push these changes by commenting:

@cursor push e42e1b307b
Preview (e42e1b307b)
diff --git a/packages/octane/src/compiler/strong-render-policy.js b/packages/octane/src/compiler/strong-render-policy.js
--- a/packages/octane/src/compiler/strong-render-policy.js
+++ b/packages/octane/src/compiler/strong-render-policy.js
@@ -248,11 +248,7 @@
 			}
 			if (moduleFormatters !== 0) {
 				const alias = aliasValue(member.object, scope);
-				if (
-					alias?.kind === 'intl' &&
-					alias.implicit &&
-					resolveScope(scope, unwrap(member.object).name) === moduleScope
-				) {
+				if (alias?.kind === 'intl' && alias.implicit) {
 					reportIntl(member, alias, true);
 					return;
 				}

You can send follow-ups to the cloud agent here.

…aters

A module-level Intl formatter without a locale or time zone, rebound to a local
const and used during render, went unreported: the use site required the name
to resolve at module scope. Formatter records now remember whether they were
built at module scope, and aliases carry that through.

Updaters and reducers are visited as render code since #1497, so
OCTANE_STRONG_RENDER_LOCALE_FORMAT fired inside them with a hydration message.
They run on the client after an event and a replay formats the same way, so the
locale check is skipped there; randomness inside them still reports as
OCTANE_STRONG_IMPURE_UPDATER.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Brings in #1500, #1471, and #1502. #1500 changes vitest.config.js, which every
user-app grader digest covers, so manifest.jsonl is regenerated rather than
hand-merged. The Strong repair ledger, prompts, and alternatives are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

github-actions Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Benchmark report

🟢 No size increases and no timing regressions outside noise.

Compares 0339abc7a with 5c094b2f3 on the same runner. Timing verdicts require a change beyond the combined margin of error (at least 5%) and one 0.1ms timer tick, with the fastest sample moving the same way. Workflow run

js-framework: 1k/10k row operations (ms, lower is better)

All 20 timed operations (20 within noise)
target operation base head Δ noise
octane-tsrx run 4.85 4.50 −7.2% ±47% ⚪ within noise
octane-tsrx replace 10.81 11.59 +7.2% ±26% ⚪ within noise
octane-tsrx add 4.93 4.13 −16.2% ±43% ⚪ within noise
octane-tsrx update 0.89 0.60 −32.6% ±79% ⚪ within noise
octane-tsrx select 0.36 0.24 −33.3% ±72% ⚪ within noise
octane-tsrx swap 0.71 0.50 −29.6% ±39% ⚪ within noise
octane-tsrx remove 0.71 0.61 −14.1% ±52% ⚪ within noise
octane-tsrx runlots 42.23 37.23 −11.8% ±31% ⚪ within noise
octane-tsrx select_lots 0.36 0.33 −8.3% ±41% ⚪ within noise
octane-tsrx clear 67.15 55.65 −17.1% ±65% ⚪ within noise
octane-jsx run 4.97 4.34 −12.7% ±30% ⚪ within noise
octane-jsx replace 14.23 11.31 −20.5% ±34% ⚪ within noise
octane-jsx add 4.56 4.79 +5.0% ±54% ⚪ within noise
octane-jsx update 1.15 1.19 +3.5% ±83% ⚪ within noise
octane-jsx select 0.82 0.63 −23.2% ±60% ⚪ within noise
octane-jsx swap 1.23 1.05 −14.6% ±63% ⚪ within noise
octane-jsx remove 1.24 1.49 +20.2% ±60% ⚪ within noise
octane-jsx runlots 38.72 41.80 +8.0% ±33% ⚪ within noise
octane-jsx select_lots 3.44 4.72 +37.2% ±73% ⚪ within noise
octane-jsx clear 71.60 73.54 +2.7% ±65% ⚪ within noise

Application bundle size (bytes)

No changes across 45 measured values.

Public-import reachability bundles (bytes)

No changes across 105 measured values.

CI job durations

  • 🟡 4 job(s) slower than every recent main run: lint checks, example apps (3/3), test shard (Node 24, 2/4), validate publishable packages

Compares the CI run for 7124962c6 (run) with the last 5 successful main push runs. A job is only slower or faster outside the whole main range, by at least 10% and 15s.

job main median main range this PR Δ
wall clock (first job start to last job end) 17m 05s 12m 35s–23m 15s 19m 51s +2m 46s (+16%) ⚪ within noise
total job time 184m 21s 144m 08s–242m 49s 208m 33s +24m 12s (+13%) ⚪ within noise
lint checks 8m 49s 7m 43s–11m 33s 19m 09s +10m 20s (+117%) 🟡 slower
example apps (3/3) 3m 56s 3m 34s–6m 06s 8m 30s +4m 34s (+116%) 🟡 slower
test shard (Node 24, 2/4) 14m 01s 10m 24s–15m 53s 18m 01s +4m 00s (+29%) 🟡 slower
validate publishable packages 4m 32s 3m 45s–5m 22s 5m 43s +1m 11s (+26%) 🟡 slower
All 26 timed jobs
job main median main range this PR Δ
lint checks 8m 49s 7m 43s–11m 33s 19m 09s +10m 20s (+117%) 🟡 slower
heavy integration (package builds, eval corpus, runtime loaders, Astro) 5m 50s 4m 36s–16m 52s 12m 39s +6m 49s (+117%) ⚪ within noise
example apps (3/3) 3m 56s 3m 34s–6m 06s 8m 30s +4m 34s (+116%) 🟡 slower
test shard (Node 24, 2/4) 14m 01s 10m 24s–15m 53s 18m 01s +4m 00s (+29%) 🟡 slower
test shard (Node 24, 4/4) 11m 03s 10m 24s–16m 16s 13m 53s +2m 50s (+26%) ⚪ within noise
React parity shard (2/4) 10m 50s 9m 32s–19m 40s 12m 50s +2m 00s (+18%) ⚪ within noise
example apps (2/3) 4m 15s 3m 26s–9m 58s 5m 44s +1m 29s (+35%) ⚪ within noise
React parity shard (3/4) 13m 05s 10m 59s–18m 01s 14m 17s +1m 12s (+9%) ⚪ within noise
validate publishable packages 4m 32s 3m 45s–5m 22s 5m 43s +1m 11s (+26%) 🟡 slower
example apps (1/3) 3m 36s 3m 07s–9m 27s 4m 16s +40s (+19%) ⚪ within noise
Lynx compatibility 2m 00s 1m 34s–2m 55s 2m 31s +31s (+26%) ⚪ within noise
website integration suite 6m 44s 5m 45s–11m 41s 7m 08s +24s (+6%) ⚪ within noise
typecheck checks 10m 02s 7m 20s–11m 01s 10m 24s +22s (+4%) ⚪ within noise
Three compatibility 3m 28s 2m 51s–4m 23s 3m 47s +19s (+9%) ⚪ within noise
React parity shard (4/4) 13m 38s 11m 39s–22m 17s 13m 55s +17s (+2%) ⚪ within noise
test shard (Node 24, 1/4) 15m 03s 11m 10s–17m 32s 15m 16s +13s (+1%) ⚪ within noise
React parity checks 15s 14s–16s 19s +4s (+27%) ⚪ within noise
classify changeset release 16s 14s–17s 18s +2s (+13%) ⚪ within noise
lint 4s 4s–5s 5s +1s (+25%) ⚪ within noise
CI provenance 4s 3s–4s 5s +1s (+25%) ⚪ within noise
examples 4s 4s–4s 4s ±0s (±0%) ⚪ within noise
typecheck 4s 3s–4s 4s ±0s (±0%) ⚪ within noise
test (24) 4s 3s–5s 4s ±0s (±0%) ⚪ within noise
heavy integration (browser - chromium) 15m 08s 11m 12s–19m 08s 14m 22s −46s (−5%) ⚪ within noise
React parity shard (1/4) 13m 55s 10m 05s–18m 11s 13m 05s −50s (−6%) ⚪ within noise
test shard (Node 24, 3/4) 13m 15s 9m 44s–15m 12s 12m 04s −1m 11s (−9%) ⚪ within noise

@trueadm

trueadm commented Oct 1, 2026

Copy link
Copy Markdown
Collaborator Author

On the three octane-jsx timings flagged as possibly slower in the benchmark report above: this PR doesn't change any runtime code or emitted output.

  • The diff touches only the Strong compiler diagnostics, compiler tests, packages/octane-evals, docs, and changesets.
  • Compiling every benchmarks/js-framework Octane app (octane-jsx, octane-tsrx, octane-ts, and both naive variants) with this branch's compiler and with main's gives byte-identical output in production client, dev client, and server modes: 30 of 30 compilations.
  • The report shows no bundle-size changes across all 45 measured values.

The octane-jsx deltas (+63% to +72% against ±37–60% noise) are runner variance on identical code. #1489, which carries the same compiler changes, reported no timing regressions.

🤖 Generated with Claude Code

A TSRX sibling-scoped <style> block is extracted from the template rather than
rendered into its host, so a host whose only child is a style block is empty.
rendersChild treated the JSXStyleElement as rendered content, and Strong
rejected valid widget mounts such as appendChild into that host. Hosts with a
style block and real rendered children are still checked.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…trong-repair-evals

# Conflicts:
#	packages/octane-evals/datasets/train/user-apps-v1/manifest.jsonl

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Autofix Details

Bugbot Autofix prepared a fix for the issue found in the latest run.

  • ✅ Fixed: Save counter ignores completion timing
    • Added intermediate assertions after each individual promise settlement (count stays 0 while pending, becomes 1 after first settle, 2 after second) so an implementation that increments on click instead of on resolution now fails the grader.

Create PR

Or push these changes by commenting:

@cursor push 7e860d1186
Preview (7e860d1186)
diff --git a/packages/octane-evals/datasets/train/user-apps-v1/tasks/octane.strong-save-counter/grader.test.ts b/packages/octane-evals/datasets/train/user-apps-v1/tasks/octane.strong-save-counter/grader.test.ts
--- a/packages/octane-evals/datasets/train/user-apps-v1/tasks/octane.strong-save-counter/grader.test.ts
+++ b/packages/octane-evals/datasets/train/user-apps-v1/tasks/octane.strong-save-counter/grader.test.ts
@@ -38,16 +38,22 @@
 		const { save, pending } = deferredSaves();
 		const view = render(App, { props: { save } });
 		const button = view.container.querySelector('button')!;
+		const label = () => view.container.querySelector('p')!.textContent;
 
 		fireEvent.click(button);
 		fireEvent.click(button);
 		expect(pending).toHaveLength(2);
+		expect(label()).toBe('Saved 0 times');
+
 		await settle(pending[0]);
+		expect(label()).toBe('Saved 1 times');
+
 		await settle(pending[1]);
-		expect(view.container.querySelector('p')!.textContent).toBe('Saved 2 times');
+		expect(label()).toBe('Saved 2 times');
 
 		fireEvent.click(button);
+		expect(label()).toBe('Saved 2 times');
 		await settle(pending[2]);
-		expect(view.container.querySelector('p')!.textContent).toBe('Saved 3 times');
+		expect(label()).toBe('Saved 3 times');
 	});
 });

You can send follow-ups to the cloud agent here.

The save-counter grader read the label only after every pending save
settled, so counting on click before `await save()` reached the same
final totals and passed. The grader now checks that the count stays at
0 while both overlapping saves are pending, rises by one as each
resolves, and holds while a third save is pending.

Record that rewrite as the count-on-click negative (it compiles in
Strong mode, so the ledger marks it compiles-keeps-bug) and add a
reducer-then alternative so the stricter grader stays checked against a
second valid answer.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@vercel
vercel Bot temporarily deployed to Preview – octane-website October 1, 2026 20:14 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp October 1, 2026 20:14 Inactive
@blacksmith-sh

This comment has been minimized.

@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp October 1, 2026 20:34 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website October 1, 2026 20:34 Inactive

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix prepared a fix for the issue found in the latest run.

  • ✅ Fixed: Fetch stub rejects valid ok checks
    • Added ok: true and status: 200 to the fetch stub's resolved object so repairs that guard on response.ok before reading JSON are graded correctly.

Create PR

Or push these changes by commenting:

@cursor push c5f0bbebd3
Preview (c5f0bbebd3)
diff --git a/packages/octane-evals/datasets/train/user-apps-v1/tasks/octane.strong-user-fetch/grader.test.ts b/packages/octane-evals/datasets/train/user-apps-v1/tasks/octane.strong-user-fetch/grader.test.ts
--- a/packages/octane-evals/datasets/train/user-apps-v1/tasks/octane.strong-user-fetch/grader.test.ts
+++ b/packages/octane-evals/datasets/train/user-apps-v1/tasks/octane.strong-user-fetch/grader.test.ts
@@ -25,7 +25,11 @@
 					if (signal?.aborted) return abort();
 					signal?.addEventListener('abort', abort, { once: true });
 					responses.set(id, () =>
-						resolve({ json: () => Promise.resolve({ name: USERS[id] }) } as Response),
+						resolve({
+							ok: true,
+							status: 200,
+							json: () => Promise.resolve({ name: USERS[id] }),
+						} as Response),
 					);
 				}),
 		),

You can send follow-ups to the cloud agent here.

Reviewed by Cursor Bugbot for commit e51afff. Configure here.

The fetch stub resolved a plain object with only json(), so
`response.ok` was undefined and a correct repair that checks it before
reading JSON never showed the user. Resolve a real JSON Response, so
`ok`, `status`, and the body behave as they do in a browser.

Add the ok-guard alternative (an async effect body that checks
response.ok and ignores a superseded result) so the grader stays checked
against that shape.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@vercel
vercel Bot temporarily deployed to Preview – octane-website October 1, 2026 20:50 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp October 1, 2026 20:50 Inactive
@trueadm
trueadm merged commit 0fa14ce into main Oct 1, 2026
34 checks passed
@trueadm
trueadm deleted the feat/strong-repair-evals branch October 1, 2026 21:12

This branch was previously deployed

2 inactive deployments
Preview – octane-website — 7124962c Deployed Oct 1, 2026 by vercel[bot]
Preview – octane-website-mcp — 7124962c Deployed Oct 1, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-authored Diff or issue body substantially produced by an AI agent feat PR: new feature or capability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant