Repository navigation
feat(evals): add the Strong mode repair task family - #1493
Conversation
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]>
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]>
There was a problem hiding this comment.
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.
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.
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]>
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
There was a problem hiding this comment.
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.
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.
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]>
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]>
There was a problem hiding this comment.
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.
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]>
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]>
There was a problem hiding this comment.
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) === moduleScopeguard that compared the local alias's declaring scope instead of trustingaliasValue()which already follows const aliases through the scope chain to the module-level Intl service.
- Removed the redundant
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]>
Benchmark report🟢 No size increases and no timing regressions outside noise. Compares js-framework: 1k/10k row operations (ms, lower is better)All 20 timed operations (20 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
Compares the CI run for
All 26 timed jobs
|
|
On the three
The 🤖 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
…trong-repair-evals # Conflicts: # packages/octane/src/compiler/strong-mode.js
There was a problem hiding this comment.
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.
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]>
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
Bugbot Autofix prepared a fix for the issue found in the latest run.
- ✅ Fixed: Fetch stub rejects valid ok checks
- Added
ok: trueandstatus: 200to the fetch stub's resolved object so repairs that guard onresponse.okbefore reading JSON are graded correctly.
- Added
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]>


Summary
Adds a Strong mode repair task family to the
user-apps-v1eval 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.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 sharefamilyId: octane.strong-repairandcapability: repair. Each covers one Strong failure mode:Prompts. Each starter opts into
"use strong"and fails to compile, and itsprompt.mdquotes the compiler's exact error.Graders. A shared
strong-repair.tshelper compiles the submission withstrong: truein 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-delaysetTimeout, and an async IIFE around a setter;fetchAPI client;useSyncExternalStoresnapshot;setN(n + 1)afterawait;const [, force] = useState(0)over module state.Verifier. The new
scripts/verify-strong-repair-corpus.mjs(pnpm --filter @octanejs/evals strong-repair:verify, orstrong-repair:check):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:setN(n + 1)afterawait, mutate-then-set, and the mutating updater.useSyncExternalStoresnapshot.fetchAPI client.setIntervalwithoutclearIntervaland theresizelistener without a cleanup.Review feedback added two workarounds that compile:
window?.innerWidth ?? 1024in a lazy initializer, which throws on a real server;count-on-click, which increments beforeawait 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 areducer-thenalternative 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-strongand--checkasks for the ledger to be regenerated, which makes the change visible in review.Corpus plumbing:
generate-user-app-corpus.mjshonours the catalogfamilyId, uses a repair-specific training system prompt for repair tasks, and includesstrong-repair.tsin those tasks' grader digests.user-app-corpus.test.tsadds the requiredstrongRepairscoverage group and runs the verifier in check mode.Validation
pnpm --filter @octanejs/evals corpus:check, and the verifier in--checkmodevitest --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.pnpm format:files:check;pnpm typecheckpassed on the combined local workpnpm test: same local caveat as feat(compiler): close Strong render determinism gaps #1489. 82,876 tests passed; 2 load-related failures pass in isolation.Risk / follow-ups
pnpm typecheck:filescan't check eval corpus files because no tsconfig covers them. That's pre-existing and also true of the existing graders.count-on-click) are candidate compiler fixtures, for exampletext-node-writeandcomputed-class-method.Provenance
agent-authored)🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith 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 familyoctane.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. Sharedstrong-repair.tsdrives compile checks and server HTML evaluation in a Node realm without browser globals.strong-repair-negatives.jsontracks whether each workaround isrejected-by-strongor stillcompiles-keeps-bug(compiler backlog).pnpm --filter @octanejs/evals strong-repair:verifyvalidates prompts, references, and negatives.catalog.jsongains astrongRepairscoverage map and task metadata;manifest.jsonland grader digests are regenerated. Docs and READMEs now describe repair capability and the new count.source-contracts.test.tsenforces 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.