Repository navigation
Conversation
…ng peer no longer hides a module's error From review of 917a50b. - evaluateModules runs checkModule on every module and returns its errors without evaluating, so no caller can evaluate a module that hasn't passed them. compile relies on that instead of running the checks itself. The sandbox and run-twice layers behind the checks are evaluateUnchecked: internal, exported from no package entry, used only by the tests for those layers (nondeterminism, and .env, write and fetch denied), which a module must get past the checks to reach. - compile reports findModules' diagnostics before the E_IR_MISSING return, so a capabilities.tsx is reported even when the peer is missing (non-blocking). - known() uses Object.hasOwn (non-blocking). Tests: evaluateModules refuses a module importing app code without evaluating it; a .tsx's E_CAPABILITY_SYNTAX shows beside E_IR_MISSING. next passes 102 in parallel; root fmt:check, lint and typecheck are 0; check-clean-build passes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nstalls don't fail with TS2307
next's index.ts exported createAffordances, defineAction and defineState
with inferred types, so tsdown's declarations inlined core's whole
structure, including import("@standard-schema/spec"). That's core's
dependency, not next's, so under a strict install (vlt, pnpm), or with
skipLibCheck: false, an app's typecheck failed with TS2307. It's on main
and in the published 0.5.1.
The types are now core's own, named: Core<Session> =
ReturnType<typeof createCore<Session>>, annotating all three exports. So
next's .d.ts imports createAffordances from @affordances/core, which
next declares, and nothing else.
- The evidence, on main (e9645ab), in a clean export:
- a strict-layout app (next copied, its own dependencies linked,
nothing hoisted) with skipLibCheck: false fails with four TS2307
on @standard-schema/spec;
- with only this index.ts applied and next rebuilt, it passes.
- test/index-types.test.ts: next's createAffordances, defineAction and
defineState equal core's types. That holds for the old, inferred code
too, so the public types are unchanged.
- test/dts-imports.test.ts, the sweep:
- next, from a fresh build in a scratch dir;
- every other published package, from its dist.
Each must import only what it declares (dependencies, peers, optional
dependencies), itself, or Node's built-ins. Every package is clean, so
there are no other findings.
- .changeset/next-core-types.md: a patch for @affordances/next.
Only index.ts, the two tests and the changeset, so it can be
cherry-picked to main ahead of the branch.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…m ir, the optional peer, as the one entry that references it (M6b) Intake's ruling (10:07Z to 10:10Z): ir is next's optional peer, never bundled. /author re-exports the app-facing authoring API from it, in code and in types: the define functions, guard, when and their types, but not the compiler's internals. Its own tsdown entry keeps ir external. The tests, in the same commit so the suite is never red or loosened: - dist.test: the old 'no declaration refers to ir' rule is narrowed and made stricter. Only author.js and author.d.ts refer to ir, the evaluator only by its bare dynamic import, and every other entry has 0 references. /author holds none of ir's code; - no-ir.test (written by backend): an app outside the repo without ir, which it asserts, typechecks and emits against next's main entry with strict and skipLibCheck false. It passes after 03e1e39's .d.ts fix. RFC 0005 §1 records the optional peer, E_IR_MISSING, the /author exception and the reason: no private package or second zod in a public one. Publishing ir is the human's call. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… build's own process never loads ir From the M6c wiring plan agreed with design. withAffordances is synchronous, and compile was async only because it loaded ir and ir's digest is async. - merge.ts: the merge (a module's definition wins, E_CAPABILITY_DUPLICATE, bound actions, E_BOUND_REDEFINES, the extractor's source), moved out of compile.ts. It's pure, with no file system and no ir. - evaluate.ts, the sandboxed child: after fromModules, it runs the merge and ir's normalize, validate, canonical JSON and digest. Its input is on stdin, since extraction's output can outgrow an argument. - evaluator.ts: passes the extraction, and returns the canonical JSON, digest and bindings. Two runs still compare byte for byte, which now covers the merge too. - compile.ts: compileSync, pure and re-runnable, with caching left to the caller. It extracts, resolves each bound action's import to a module export (the file system is here), and checks ir's presence by resolution only (E_IR_MISSING), never by loading it. - order.ts and source.ts: byCodeUnit and SOURCE in modules of their own, so the child's merge can use them without loading codegen or the extractor. codegen.ts and extract.ts re-export them. Tests: the pipeline tests run on compileSync. A fresh process whose load hook records any module loaded from ir's package runs compileSync and writeCompiled on a full app, and records none. The hook is shown to catch a real ir load. next passes 109 in parallel; root fmt:check, lint and typecheck are 0; check-clean-build passes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…atusOf, shared by every host Boundary review #12, folded into M6d (intake, 10:40Z). The refusal to HTTP status mapping lived in hosting-lab. It's the rule for the runtime's own codes, so it moves into packages/runtime as an @experimental export, and hosting-lab imports it. The projection route will too, so hosts can't drift. - statusOf: unauthorized is 401 with WWW-Authenticate: Bearer when the caller isn't signed in, and 403 when they are; invalid_input 422; precondition, stale and confirmation_required 409; not_found 404; rate_limited 429; succeeded 200, failed 500. Any other code is 400, looked up with Object.hasOwn. - Retry-After, from review's note: Refusal gains an optional retryAfterSeconds, and a 429 carries Retry-After, rounded up to whole seconds, when it's set. Nothing produces rate_limited yet, so the first producer only has to set it. - The unit tests move to packages/runtime/test/http.test.ts, with the signed-in 403 no route reaches and the 429 cases. hosting-lab keeps its route-level 401, 422 and 400 tests. runtime passes 135 and hosting-lab 83; root fmt:check, lint and typecheck are 0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…Seconds Review's note on 29f0804: NaN or Infinity would have sent 'Retry-After: NaN'. Now such a time sends no header, and a test covers both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…mespace imports and real tsconfigs
Design's withAffordances wiring, run as hosting-lab's real next build,
failed all 8 bound actions. Three causes, each under the last:
- The rename: a bound capability was matched by its local name, so
'import { cancel as cancelCapability }' looked for an export named
cancelCapability. The extractor now records the imported name,
including a namespace import's member (caps.cancel).
- The alias: aliasesOf stripped tsconfig comments with a regex. In
hosting-lab's tsconfig, '@/*' in paths and '**/*.ts' in include read
as one /* */ comment, so the parse failed and every alias silently
went. Now a string-aware JSONC reader, and paths found through a
relative extends resolve against the config that sets them.
- v0's effects: they're delta keys, not consequences (RFC 0005 §2.2),
so a bound action keeps them. They no longer count as redefining the
capability's effects (E_BOUND_REDEFINES).
An unresolved bound capability is now E_BOUND_UNRESOLVED, not
E_CAPABILITY_IMPORT, which stays for a module importing app code; it's
in the catalog with its RFC 0005 §3 row, and §2.1 lists the import
forms. Each cause has a test, shown to fail on the old code.
hosting-lab's real build in a clean export, with design's wiring: green,
with 0 diagnostics and the manifest its defineManifest's namespace asks
for. next passes 123; root lint, fmt and typecheck are 0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…affordances/, and fails next build on a failed compile (M6b with M6c) It wires backend's compileSync and writeCompiled into the config: - once per process and root, since next loads its config more than once per build and each compile runs the evaluator twice; - each diagnostic printed once, through format(); - outside dev, a failed compile throws, so next build fails. In dev it's logged, and the watcher recompiles on an actions, state or capabilities change, with one watcher per root instead of one per config load; - W_NO_NAMESPACE is printed only when no manifest was built and nothing failed, so a namespace from a module's own defineManifest counts, as in hosting-lab. Backend found the false warning in the real build. Proven on the real path: a clean export of 65d47dd with these files. The root build is green. hosting-lab builds with 0 diagnostics and its manifest, and example and docs, which have no namespace anywhere, each print W_NO_NAMESPACE once. ir passes 352 tests and next 118, with 0 type errors. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s worker processes too Review found W_NO_NAMESPACE printed twice in one next build of apps/example: next loads its config in more than one process, and the once-per-root record lived in the module. The roots compiled so far are now also kept in the environment, which next's worker processes inherit, so a later load in the same build neither compiles nor prints again. A different app in the same build still gets its own compile. The test loads a fresh module with the same environment, as a worker does, and fails on the old code. The real path, in a clean export of 0fa4ea4 with this commit's files: the root build is green, example and docs print W_NO_NAMESPACE once each, and hosting-lab prints nothing and builds its manifest. next passes 119 tests and ir 352, with 0 type errors. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…and an unreadable tsconfig is W_TSCONFIG_UNREADABLE Review of 65d47dd: jsonc() threw on a trailing comma followed by a comment ('"paths": {...}, // aliases' then '}'), and aliasesOf then returned [] silently, the same failure as the regex it replaced. TypeScript isn't among next's dependencies, and a JavaScript Next app has none, so its reader isn't available. jsonc() is fixed instead. - Two passes outside strings: comments first, then trailing commas, so a comma followed by a comment is still seen as trailing. Tested against a corpus of comment and comma placements and strings that look like either. An unterminated block comment is unreadable. - readAliases: tsconfig.json, else jsconfig.json, as Next reads them, then each relative extends. As in tsc, the nearest paths and baseUrl win, and paths resolve against baseUrl when it's set. - Never silent: an unreadable config, or a missing extended one, is W_TSCONFIG_UNREADABLE, naming the file. It's a warning that fails in strict mode (design's call), in the catalog with its RFC 0005 §3 row. A v0 app resolves no aliases, so it's never checked. The real path: a clean export of 0fa4ea4 plus these files and design's uncommitted config.ts and config.test.ts. vlt run build exits 0, and hosting-lab's diagnostics are [], with its manifest. next passes 128; root lint, fmt and typecheck are 0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…does Review's non-blocking note on 9f30e30: a tsconfig saved with a BOM gave W_TSCONFIG_UNREADABLE, though tsc reads it. jsonc() now drops one leading U+FEFF, and the corpus has the case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…mpiled capabilities' views RFC 0005 §5's createProjectionRoute: it builds a runtime from the compiled manifest.json, the app's resolvers, and handlers from bindings.ts, and serves views, inspections, expansions and executions on hosting-lab's surface, @experimental until RFC 0004. - The contract, design's option (A): the app passes manifest and bindings, imported from .affordances/, with resources, principal and an optional v0 session. Design updates §5 to match. - Handlers: each runs its v0 action's run, with v0's agent context (session, request, via: 'agent'), and E7's opaque guard runs the action's guard against its route's state. - The rules: views only, an Origin check for cookie POSTs, private, no-store responses that vary by credential, and RFC 0004 §2.3's statuses from the runtime's statusOf. - One runtime per route, as one promise, so concurrent first requests share one approval key. - Approvals (design, for RFC 0002 R2): in production, approvalKey and a shared seenTokens store are required, and the route throws when made without them, since per-process defaults would let a token run once per instance. Elsewhere they default to a key per process and an in-memory store that drops expired nonces. - Packaging (intake, 10:40Z): @affordances/runtime is next's second optional peer and a devDependency. /projection is built on its own, like /author, imports runtime's values on the first request, and types only statically. Without the peer, the first request fails with one error naming it. The dist test checks that only /projection refers to runtime and bundles none of it; the no-ir app, with neither peer, still typechecks and gets that error. The lockfile change was generated in a clean export. next passes 134; root lint, fmt and typecheck are 0; check-clean-build leaves git status unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
createProjectionRoute takes manifest and bindings explicitly, as the
app's own imports of .affordances/, with no aliased module. It also
takes session, approvalKey and seenTokens, and returns { GET, POST }.
Outside production the key and the store default to per-process ones.
In production both are required and missing either throws, since RFC
0002's R2 (an approval token runs once) can't hold across instances
with per-process ones. next build runs as production, so an app missing
them fails at build time, by design.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…duped across a build, and .affordances/ is written atomically Review's notes on ede4bdf: - AFFORDANCES_COMPILED, inherited by every descendant, would let a next build spawned by a process that already compiled (a test suite, a harness) skip compiling and leave a stale .affordances/. Compiling is per process and root again. Only the printing is deduped, across the build's processes, by root and a hash of each line (AFFORDANCES_PRINTED). dev's watcher always prints, so an error that returns after a save shows again; - with each worker compiling, two processes can write .affordances/ at once. codegen's new writeIfChanged writes a temp file in the same directory and renames it into place, so a reader never sees half a file. manifest.ts uses it, and compile.ts switches to it next (backend). Tests: a worker prints nothing new; a harness's child, after the sources change, writes the new manifest, which fails on ede4bdf; and the atomic write (new inode, nothing written when unchanged, no temp left). The real path, in a clean export of 9f30e30 with these four files: the root build is green, example and docs print W_NO_NAMESPACE once each, and hosting-lab prints nothing. next passes 124 tests and ir 352, with 0 type errors. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Design's request, after 47a6d7e: each of next's workers now compiles and writes .affordances/ for itself, and a plain writeFileSync could let a reader see a half-written manifest.json or bindings.ts. compile.ts drops its own copy and imports codegen's, which writes a temp file in the same directory and renames it into place. All of .affordances/ is now written one way. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he kit fails it with the reason Boundary review #3, now confirmed: fitContext coerced every wrongly typed fresh value of a type to one constant (7919, '~fresh'). So two paths the search told apart came out equal, and eq between two number attributes was no longer false. The kit would expect a refusal that never came, or attribute it wrongly. - Distinct and ordered: one pass learns every value that needs a type, then each distinct value gets its own value of that type, in the search's order, so eq, ne and lt keep their truth. Numbers count up from 7919, strings from '~fresh-0000', both past any value the context holds; booleans are false, then true. - Re-checked: each case's fitted context is evaluated against what it must falsify (p alone, or p with every other condition true). The merged witness, then the searched state, then the non-isolated case are tried in turn, and one that fitting undoes carries a reason. - The kit fails a case with a reason, naming it, and runs nothing for it. Tests: eq, ne and lt between two number attributes (eq failed before); a mistyped comparison fitting can't keep false gets its reason; and the kit fails such a case without running it. ir passes 356, runtime 136 and hosting-lab 83; root lint, fmt and typecheck are 0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…y a missing runtime is called a missing peer Review of b96dee4, two points: - The gate failed open: approvalKey and seenTokens were required only when NODE_ENV was 'production', so an unset or 'staging' NODE_ENV quietly got per-process defaults, and a token could run once per instance (RFC 0002 R2). Now both are required unless NODE_ENV is development or test, named. Tested: production, empty, staging and unset throw; development and test get the defaults. - The lazy import called any module-not-found that mentioned @affordances/runtime a missing peer, including an installed runtime's own missing dependency, whose error names runtime's path. Now only "Cannot find package|module '@affordances/runtime'" is, and every other error is rethrown as it is. Tested with an installed runtime missing one of its imports, which fails on the old match. next passes 136; root lint, fmt and typecheck are 0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… and runtime is next's second optional peer From review, with backend's 21749df: approvalKey and seenTokens are required unless NODE_ENV is exactly development or test, so an unset, empty or staging NODE_ENV can't get per-process defaults and cross-instance replay (RFC 0002 R2). §5 also records intake's 10:40Z ruling, which b96dee4 built: @affordances/runtime is next's second optional peer, a mirror of the ir ruling, imported only by /projection, with one missing-peer error. The route needs runtime, and so ir, published, which is the human's call. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hema library's own lossy methods Boundary review #4: only non-computed member calls were checked against LOSSY, and LOSSY held zod's methods alone. So z.string()['refine'](…) converted with lossy: [] and passed strict mode, and Effect's Schema.filter, arktype's narrow and morph, and valibot's rawCheck and rawTransform were never named. The IR's schema would then accept what the app rejects. - A literal computed member is the method it names. - LOSSY is per library: zod, valibot, arktype, typebox and Effect each list their own methods JSON Schema drops. - The walk collects every method the slice calls and every library it imports, then names the lossy ones. An Array's filter beside zod isn't Effect's, and a schema refined in a module that never imports zod still counts. Tests: the computed member converts lossy, and is opaque in strict mode; one per library on the static plan; and the Array filter and cross-module cases. Six of these fail on the old code. The real path: a clean export of eed3942 plus this, vlt build 0, and hosting-lab, example and docs all have diagnostics []. next passes 143; root lint, fmt and typecheck are 0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…fore any extractor runs on either app The measurement's rule, fixed first: - the pipeline is M6's extract, on a clean export of a tip that includes backend's boundary fix #4 (intake), named in the results; - two apps, apps/example and a v0 rewrite of hosting-lab built by fixed rules, each at two stages: as written, and after the id codemod; - matching is by binding, never by id; - each field has an exact match rule, with TP, FP and FN, and precision and recall per field; - what's reported, including every mismatch and diagnostic, and precision below 1 as a defect. The references, the rewrite and score.py follow before any run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r run: hosting-lab's reference and v0 rewrite, the runner and the scorer
Committed before the extractor runs on either app, so nothing can be
tuned to its output (the planner, 11:45Z):
- hosting-lab-reference.json, generated by reference.ts from
hosting-lab's hand-written manifest, with each binding from its real
bound actions (sha256 e1fb5350...);
- hosting-lab-v0/, the v0 rewrite of hosting-lab's 8 bound actions, by
SCORING.md §3's fixed rules, with no ids;
- measure.ts, which runs extract over apps/example and the rewrite at
stage A (as written) and stage B (after writeIds), in a clean export;
- score.py, SCORING.md §4 to §6 as code. Scoring each reference against
itself gives 1.00 on every scored field, and one changed value gives
one FP and one FN.
SCORING.md gains two pre-run rules: an input-less capability is written
z.object({}) in the rewrite, and matches an absent reference input.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…y hand, before the measurement runs reference.ts took the bindings from the extractor's view of the bound app, and matching is by binding, so an extractor binding error would make that part of the scoring circular (the planner, 11:50Z). Each binding is checked from source, independently of the extractor: the route from the actions.ts folder, the action from its name literal, and the capability traced through its renamed import to its id. All 8 equal the reference, which is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…M7a) The field RFC 0002 §6.6's comparison needs: a claim gains cites?: string[], the target attributes its statement relies on. Every cited attribute is in a shown choice set's comparison, for every member, and survives any cut (the runtime's half, next commit). - validate, as §9 states: each name is a top-level property of the target type's declared attributes, and none repeats (E_PATH). A claim whose subject has no target type can't cite (E_PATH). - schema.json regenerated: cites is an array of strings. Tests: an undeclared name, a repeat, a subject with no target type, and a valid claim citing two attributes. ir passes 360. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…son (RFC 0002 §6.6, rule 6, M7a) M5's product conclusion: C's view held the plan choice set whole, and no member said what its own bandwidth was. Now every choice set a view carries comes with its comparison: every declared attribute of every member, as the resolvers returned them for this principal. - The table (comparison.ts): columns are the target type's top-level declared attributes but its key. differ holds those the members differ on, by RFC 8785 bytes, with one row per member in members order. shared holds those every member supplied with one value, stated once. unsupplied names what a resolver left out, counted as differing. omitted names the columns cut. - The order: what a shown claim cites, then what the capability's conditions and effects read (every target.x path), then the rest in declared order. A request's Budget.facts, a limit in cells, cuts columns from the end, the first that doesn't fit and every one after, never the first two groups. - No policy removes it: it's attached under every policy, claims omitted included. A policy's default budget never cuts it, only the request's own facts. A set an offers budget summarizes carries its comparison on its members expansion, since a set is still never in choiceSets in part (§6.3). expand along 'comparison' returns the whole table. - No new reads: it's built from the targets the projection already loaded. ClaimView carries a claim's cites. Tests (runtime/test/comparison.test.ts): - every built-in policy under seven requests, with every choice set carrying every declared attribute; - a narrow custom policy, claims omitted, with a default budget that sets facts: 0, which cuts nothing; - a request's facts: 0 cuts every trial column by name, and keeps subscribe's cited bandwidthGb and read priceUsd and regions; - the cut order, and the whole table by expansion; - unsupplied; - R3's invariance across start, task, policy and seen. The generated invariant test (§6.3, 1,000 seeded cases, every view and expansion) checks that every carried set has a comparison covering every declared attribute, with a row per member and nothing cut. choice-bench/test/comparison.test.ts is the audit's case: under C's advocated policy at depth 1, T6's first view, as the agent's tool returns it, still leaves hosting.plan.list out, and now states Pro's bandwidthGb. views.test's summarized-set test asserts the summarized set's comparison. ir passes 360, runtime 142, hosting-lab 83, choice-bench 96 and next 143; root lint, fmt and typecheck are 0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d Effect's filterEffect Review of a8fd2bf, on the installed zod 4.6.7: z.codec converts to its input's schema, while its decode can reject what that schema accepts, and codec wasn't in zod's LOSSY list, so strict mode passed it. It is now, with a real-zod test: the codec converts lossy, and is opaque in strict mode. The test fails without the entry. Also review's non-blocking list: valibot's forward, everyItem and someItem, and Effect's filterEffect. Each is a check JSON Schema can't hold. They're tested on the static plan, like the other libraries. next passes 146; root lint, fmt and typecheck are 0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The field was proposed with RFC 0002 §6.6 and marked not implemented. M7a implemented it, so the status line says so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s are never cut either Intake (12:06Z): the person approves the summary's words, so a facts limit mustn't cut an attribute the summary names, such as the plan's name. They join the never-cut group, beside cited attributes and those the conditions, effects and input read. backend's runtime change and its sweep test follow, and so do the inspector's read marks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…29 is rerun once, then scored failed; an auth failure stops the run Boundary review #8 and intake's ruling (2026-11-18 12:05Z). Any nonzero exit with no final text was recorded as a turn cap, so crashes, 529s and auth failures were scored capped, which inflates the cap count. (M5 had 0 capped, so no M5 result changes.) - A cap is the CLI's own signal: claude's result subtype error_max_turns, recorded by the driver as stopped: 'turns'. Codex has no turn flag, and its limit is the server's calls cap, already counted. - Every other nonzero exit, other than the timeout's 124, is a driver failure, classed by the CLI's own error text (its error result or events, and stderr, which the drivers now keep) as auth, overloaded or crash. - A crash or a 529: a failure record is written, the trial's files go to interrupted/, kept, and it's thrown. With no complete trace, the resume reruns the spec once. A second failure is scored 'failed': not optimal under intent to treat, reported per cell, with its attempts and the failure on the end line. - An auth failure is thrown every time and never scored. It stops the run: no further trial starts, the logins are checked read-only after, and the run exits 5 for the planner and intake. It's never retried or worked around. - The PLAN's pause, now code: a resume doesn't start while more than 5% of specs have failed and await their rerun. Tests, one per class: the classifier on a cap signal, the timeout, a crash, a 529 and two auth texts; a capped trial is scored; a crash and a 529 are set aside, then scored failed on the rerun; an auth failure is thrown on both attempts; the pause at 5%; and claude's parse of error_max_turns against a crash with no result. On the old rule, the cap test fails. choice-bench passes 103; root lint, fmt and typecheck are 0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…I's own, crashes and 529s rerun once, auth failures stop the run Intake's 12:05Z ruling, as built in 006e290. It replaces 'retried once, both attempts kept': - a cap is only the CLI's own signal (error_max_turns, or the tool server's calls cap), and other failures are classed by error text; - a crash or a 529 is recorded failed, kept in interrupted/, and rerun once with its pre-assigned spec. A second failure is scored failed (not optimal under ITT) and reported per cell; - retries count against the budget, a resume waits while more than 5% of specs need one, and the 35-failure pause stands; - an auth failure is never retried. It stops the run, checks both logins read-only, and tells the planner, intake and the human. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nformatted Review's one blocker at bd2a882 (01:57Z), approved by intake and the planner under the freeze: the root's fmt:check walk failed on three long lines from #22's small parts. oxfmt, and nothing else: - apps/choice-bench/src/integrity.ts: masked's body wrapped, its redundant parentheses dropped; - apps/choice-bench/src/webmcp-server.ts: the parsedOrText cast's type literal laid out one member a line, its ';' separator a line break; - apps/hosting-lab/src/lib/task-edits.ts: manifestFor's parameters one a line, with a trailing comma. Not whitespace-only in git diff -w's sense, since a line break, a dropped pair of parentheses, a separator and a trailing comma all differ; but each file's minified JavaScript (esbuild, ts loader) is byte-identical before and after. The root's vlt run fmt:check now reports only the seven root notes, which aren't this seat's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…te and the future study it leaves Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…flight and end records, and the pin The T8 pilot ran from the pinned, read-only export of 38ee40e (2026-11-19, 02:12:31Z to 02:18:58Z): 40 of 40 scored, 0 missing, 0 faults, no reruns, no pause. Intake cleared its integrity report (02:20Z) and ruled on the headroom gate (02:21Z): FAIL, as pre-registered, so there's no confirmatory T8 run and M8e closes on this pilot. - traces.tar.gz: the run's output directory, archived by the pinned export's archive.ts (email scan checked, 0 found, so unredacted): the 40 traces with their server records and raw stream logs, the canaries and the preflight's working files, its T8 record check's fake trials included, 380 files in all. - launch-1.json, preflight-1.json and end-1.json, as the run wrote them. The credential files' digests read 'recorded outside git' by design (the sidecar), with no edit: a scan of every committed file and every file in the archive finds neither real digest. - pin.json: 38ee40e's export pin. Design's README carries the gate's verbatim output and the descriptive per-surface table. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…closes on the pilot The headline is the pre-registered gate's verbatim output: Sonnet 5.5 18/20 (in range), Haiku 5.5 20/20 (above 18), so it fails. By the plan and intake's ruling, there's no confirmatory run and no fixture change and rerun; the gate worked as designed, spending 40 trials instead of 440. Beneath it, the per- surface table labelled pilot, descriptive, not a test, with intake's forking guard, the two non-optimal trials from the labeller, PLAN §2 and §9's limits verbatim, and the app-change note with its restoration path. headroom.json and analysis.json are the pinned analyze.py's outputs (38ee40e), reproduced byte for byte from the committed archive (f9b321b, sha256 61afd715…). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…iku at the ceiling, Sonnet's two misses on progressive Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… T8's pilot, and names the progressive-surface hypothesis as future work Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…which intake withdrew Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…intake's verbatim line Per review and intake (02:23Z): T8 isn't a ceiling on every surface. The gate failed on Haiku 5.5 (20 of 20); Sonnet 5.5 was 18 of 20, both misses on progressive, each buying the favored option with the deciding fact unseen (pilot, n=5 per cell, descriptive, not a test). The line is in the headline, and beside the forking guard, word for word. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ng the runner's, the oracle's and the replay's 37 surface branches The deferred B1 round, after M8e's runs (the planner and intake, 02:21Z). - surface-adapters.ts holds one adapter per surface kind (the four tools, v0, the browser, MCP and WebMCP): its tool server and config, the record a server writes before its first call, the tools its driver's trace is compared on, its reads before the first request event, the allowance matcher, its replay records with a shared ReplayContext, the requests a replay holds, the stall its record shows, its trial evidence and its extra metrics. surface.ts' runner and scorer, and intended.ts' replay, ask the surface's adapter; factsOf becomes recordFacts, one shape over every surface's reads. - oracle.ts: one reader per form (views, v0's pages, the browser's tree) for the walk, the matchers, regionSeen and the depth check, whose full and progressive checks are named functions. The preflight asks readsViews. - runSurfaceSpecs takes its ports, required; each worker's port is the trial's. - The Request type moves to requests.ts beside keyOf. Behaviour-neutral, and checked so: the standing check also rebuilds every committed surface trace's replay.json (and the browser's replay-confirm.json) through the adapters and compares the committed bytes, which no re-score could see. A local probe gave 516 of 516 traces the same, 124 confirm replays included, and a changed replay was flagged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ords, the record read once, and the runners' shared failure and trace checks - The browser and WebMCP servers record their harness faults in one list, harnessFaults, each with its kind: 'browser' (the browser itself failed), 'ref' (a ref from the preceding snapshot didn't resolve) or 'page-tools' (the page's tools failed). Each adapter reads that list, or, on a record archived before it, the errors and stalls it keeps; stallOf makes the stall from either, with the messages unchanged. record-faults.test.ts reads every committed browser and WebMCP record, set-aside attempts included, and checks its faults and stall against the old fields' reading. - The surface runner reads the server's record once, for the stall and for the trial. - recordFailure and traceCheck in harness.ts are the failure file and the driver-trace check that M5's runTrial and the surface runner each wrote out; their outputs are unchanged. The end lines stay apart: they differ in fields and order, so one builder would need a flag for each difference. The trace format changes only for new browser and WebMCP records; no scoring reads these fields. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…and WebMCP servers, and one project.read lookup for the cross-check - trial-browser.ts launches Chromium with a surface's flags, records its versions and flags, holds the trial's session cookie, and confines the context to the trial's origin, telling the server of each request it aborts. browser-server.ts and webmcp-server.ts each drive it; their records keep the same fields in the same order. browser-server.ts' dead origin check on a review load goes, since the handler has already returned for any other origin. - lab-server.ts' projectReadOffer is the one lookup of the trial's project.read offer, for projectKeyOf and crossCheck. - Skipped, as intake and the planner ruled (02:38Z): remote.ts over httpAdapter. It sends the task statement on every call and executes under the trial's start, and tools.ts keeps one projection per start; matching that would grow the product adapter for the benchmark alone. The refusal rule isn't shared either: httpAdapter's isn't exported, and its message differs from the one remote.ts' callers can show. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…demo and the limits, each claim traced rfcs/research/article.md, design's draft per the approved outline, with backend's sections (§2, the build; the harness half of §3; §7's boundary row) left as stubs for its text. Every claim has a row in the claim-and-trace table, naming the committed file and its commit. M5 as committed in M5-REPORT, with H2's validity note and its mechanism post hoc and descriptive; M7f as a ceiling and T8's result, each in intake's words verbatim; the gate as working (40 trials, not 440); the security result; the demo; the limitations. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…alf and §7's boundary Pasted from backend's input as sent, with its corrections (C2.1's generated JSON Schema, C2.9's 136 fields across 10 capabilities, C2.10's slice rule), and its 17 rows. No stub is left. Design hands the file to backend as lead next. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…efines it, a different structure carrying A's information Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ct of 40a52cb Review's five must-fix items and seven precision items, with design's replacement text for the four in its sections: - §8: the demo never lets an agent approve. v0 would run a call on the agent's own confirm: true resend, so the demo never sends it, and MCP and WebMCP return no token. - §9: WebMCP's consent is scoped to the Chromium build measured (156.0.8078.4, headless, flagged); C9.4 cites 9eeb8fd for RFC 0004 §5. Codex's gap is the harness's, citing M5's label (d56aa19). - §2: v0's golden check is a tool run by hand at each wire change, with its results in ec7e80d's and a60bd87's messages. The JSON Schema is tested to agree with the validator, the route's refusals before the runtime have its shape, and 127 of per-capability MCP's 133 lost fields are on the 9 capabilities it doesn't export. - §3: no pass is claimed without a committed record: the archives hold 1630 traces, 516 from the surface studies. Pins are the surface studies', and M5's run had none; 'review checks each pin' goes. C3.6 and C3.8 add the files that do the work. - §4: the 38.6-point figure is an association, cross-run and exploratory. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review's one sentence before acceptance (02:55Z): in v0, an agent can approve its own call by resending confirm: true; that's why version 1 gives the approval to the person, through a single-use token, and no product transport hands a model that token. Row C7.3 cites v0's confirm path in core and RFC 0004 §1 and §7, the sections that say it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…bels The two public-text edits intake required on accepting the content (03:07Z), and nothing else: - No seat names: 'in intake's words' becomes 'the reading recorded with the results' (§5, §6), 'until intake clears' becomes 'until ... is cleared' (§3, twice), and the table's two rows say 'the recorded reading'. The Status line drops the seats, as does §5's 'which review checked' and §3's 'the operator's email'. The quoted readings stay byte-identical to their READMEs. - §3 opens by defining the labels: studies are named by the project milestone that ran them, M5, M7f and M8e. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s stated as taken, and hosting-lab's v0 table by its commit Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
f20c4e4 changed '…which review checked.' inside M7f's quoted reading, so the quote no longer matched its record. Intake's ruling (03:09Z): restore it, since 'review' there names the process, not a seat. Checked strictly, whitespace alone normalized, over each whole quoted bullet: M7f's equals its README's (422 characters), and T8's is exactly the recorded line, in its README. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review accepted the final pass at 75c2546 (03:21Z), with a green root, after intake's word on the content. The Status line only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… that made them
Intake's seat-name rule (wording only): '(intake, <date>)' and the like become
'(decided <date>)' or '(amended <date>)', and the seat possessives ('backend's
review', 'the planner's ruling') become process wording. No decision, number or
rule changes. The method's own roles (who approves or sizes a run) stay, as
intake ruled. rfcs/architecture/ had none.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…name rule '(an RFC 0001 §9 amendment, for backend)' and '(M7a, backend)' credit a seat in prose, so the seat goes. RFC 0005 §6's ownership table keeps its role assignments, as roles in the plan. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… child, the second evaluation only re-evaluates, and the app read once #13, the slice evaluator: sliceInputs evaluates every input of an extract run in one child under the same permission model, run twice, so a build pays two process starts rather than two per input. Each input is still its own try, compared with its own second evaluation, and a shared child that fails as a whole falls back to one child per input. One parse cache per run, seeded from the actions files' own parse, serves every slice; each slice's libraries are still read from only the modules it reached. #14, the capability evaluator: readable() is computed once; the second child runs in a check mode that only evaluates the modules again, compared with the first run's evaluation, since the merge, normalize and validate are pure functions of it; the digest is digestOf over the normalized manifest, which normalize's idempotence makes the same. Both runs stay separate processes, since the determinism check needs a fresh one. #15: compileSync takes generate()'s route scan from withAffordances, the tsconfig aliases are read once per compile and passed to every import resolution, and checkModule walks the tree once, with a line-start table, reporting in the same order. Measured (7 cold runs each, alternated, clean exports of 75c2546 and the same tree with this src), median total of generate() and compileSync(): apps/example with five v0 inputs evaluated 1988 -> 769 ms (-61%), hosting-lab's capability modules 565 -> 530 ms (-6%), and apps/example as configured, v0 only, 54 -> 55 ms. Each case's whole compile result is byte-identical before and after. #16, the input-hash skip, isn't needed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…realm let one input change another's schema Review's probe of 1f2cd0b (03:37Z): input A wrapped JSON.stringify, keeping its output valid, and input B's string came out a number in the shared batch child, with no fallback and no determinism error. The slice rule has no write check, so a shared realm can't isolate inputs. Intake's ruling (03:38Z): revert the batch. sliceInputs goes, and extract evaluates each input with sliceInput, one child per input, as before 1f2cd0b. Kept, since none shares a realm between inputs: the parse cache, childArgs computed once per slice, the check mode, digestOf, the scan feeding compile, aliases read once, and the single walk. The runner also holds JSON.stringify and String before the slice runs. Tests: review's H1, H1b, H2, H3 and H4, a write to Object.keys, zod's config and its global registry, each B evaluated after A equal to B alone; and a slice that tampers with a builtin changes only its own answer. Run against 1f2cd0b's batch, H4 and the Object.keys write changed B; on this path, none does. Measured again, same bench (7 cold runs each, alternated, against 75c2546): hosting-lab 570 -> 542 ms (-5%), apps/example with five inputs 1987 -> 1982 ms (no change), apps/example v0 only 59 -> 63 ms (noise). Each whole compile result byte-identical. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…oute gives one With the target's type known, as E9 infers it (segmentResource: the last dynamic segment's parent, as written, never singularized, and no type when two routes infer it with different keys), a suggestion is <prefix>.<type>.<name>: /shop/products/[slug]/reviews and add give products.add. The verb is the action's name as written; nothing maps it to a standard verb. Without a type, it's the route's folders and the name, as before. One function suggests for both the W_NO_ID diagnostic and the codemod, and collisions are numbered as before. Every id the codemod writes is still labelled a placeholder, typed or not (intake, 03:44Z): an id is the developer's to choose. segmentResource moves to codegen.ts, which extract re-exports. The assumption-8 inputs are unchanged. Rerun in an export with this code, the measurement's tp, fp and fn on every field, its diagnostic counts and stage B's ids all equal the committed scores.json and results: the two apps' typed routes already gave the same ids. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review's point on 5bb1796, ruled by intake (03:50Z): products.add, for add on /shop/products/[slug]/reviews, reads as creating a product. The rule is now <prefix>.<type>.<static segments after the target>.<name>, so that action is products.reviews.add, /shop/products/[slug]/reviews/ drafts with save is products.reviews.drafts.save, and a route that ends at its target keeps its id: /products/[slug] with addToCart is products.addToCart. Every written id is still a placeholder. The assumption-8 rerun at this code, against the committed results: tp, fp and fn on every field, the diagnostic counts, and stage B's ids are equal for all four app-and-stage pairs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…for everything since 0f2c390 Each page as the code is at 4524efd: - ir.md: the JSON Schema is tested to agree with the validator, its refinements mirrored by hand, not guaranteed by construction; and the helpers ir exports for the runtime, next and mcp-v1 (chargesOf, the pointer helpers, localId). - runtime.md: the exports as they are (inputOf, the start codec, ALONG, the approval defaults); one approval gate for every host, with the route's word-for-word copy held to it in all 24 cases; the offer id parsed by the one codec. - next.md: one child per input slice (with why the shared child was reverted), the parse cache and the runner's held builtins; the check mode; the scan and aliases read once; the id suggestions' <prefix>.<type>.<folders after the target>.<name>, every written id a placeholder; credentialOf, ALONG and the drift test; the runtime option, which hosting-lab uses. - mcp.md: 1 of 10 capabilities exported, the fate table beside capabilityTool, mcp-v1's options, and the loss report's figures with M7c's kept. All 55 relative links resolve, anchors included, and there are no downstream names. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.