Repository navigation
feat(environment): give more write tools a state target - #6385
Conversation
A POST that repeats the latest read of its path, tunnels only read operations, names a lookup in its path's last meaningful word, or renews a session no longer counts as a state write: it is replayed, does not cut initial windows, and does not end observation searches. A tool stays a write when a related read line changes across one of its calls. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…first shows it A successful item read of an entity the gate's copy never held, after a write no built plan models, puts the entity into the copy instead of failing the read, so later writes to it are checked as usual. An entity a modelled write touched is never taken back. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… under A POST whose path names no state type becomes a create into the type whose item read first names an id its response returned, when the id is new to the state; serving creates in that read's collection. A successful POST that returned an id a type's reads only show after it also ends that type's initial window, so entities a capture created stay out of the initial state. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…isagree across When a type's reads disagree across a write under another root, the type's initial window now ends at the earliest write within that change and the state is extracted again, instead of leaving every view of the type replayed. The cut composes with the creation cut; the earlier wins. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…form A read line that shows the same entities in another form, by an extra query parameter that adds or drops members, or conflicts with a base line on a shared entity, is a variant: it leaves the view's checks and the entity observations, the view names it with the query keys that pick it out, and a call matching those keys replays its recording. A filter role whose name matches no field needs two agreeing values. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
[Medium impact] The PR appears safe to merge, with a non-blocking performance concern remaining in repeated-call analysis. SummaryThe PR gives more recorded write tools a state target while keeping unsupported reads on replay.
The previous-review ancestry check passed, but the merge bases differed. This review therefore used the full PR diff. Supersession could not be checked on GitHub because authentication was unavailable. No new security issue was established from the changed paths; no runtime verification was performed. Diagram%%{init: {'theme': 'neutral'}}%%
flowchart LR
Capture[Recorded calls] --> Classify[Separate reads from writes]
Classify --> Extract[Build initial state]
Extract --> Cut[Apply creation and rewrite cuts]
Cut --> Variants[Separate variant reads]
Variants --> Gate[Check recorded write effects]
Gate --> Serve[Serve confirmed writes]
Variants --> Replay[Replay variant reads]
Reviews (12) · Last reviewed commit: "docs(environment): record the tenth revi..." · Reviewed by Greptile |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 28c3ae97a9
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
…incomplete Body-level container operations are skipped like query ones, a lookup is named only by the path's last literal segment and never alongside a write word, a tool with a redirected or unanswered call is not reclassified, and the mutation veto is resolved over all candidates at once so another read-only call cannot explain a read change. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…it exactly Serving tests a field selection before any variant key: a projection value a replayed read gave, or one no checked line gave other than `*`, replays. A list sets aside a line asking for some fields only before the identity proof, and a dropped variant's membership change no longer rewrites the type. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e recording shows An adopted entity is charged against the view's budget like a created one. A linked create holds only for its exemplar's path arguments: serving refuses others and the gate counts such a call as unmodelled. A response's identity-named id links at any length, but a short one only to a type read before the call. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6656816dd6
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
…gain A rewrite cut clears the first pass, so the budget rewinds to a checkpoint taken after the write cutoffs and created ids before the state is extracted again. Rewrite spans are charged and appended without spreading them into an argument list. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… read only whole batches A linked create is rejected when an earlier list of its type or read of its collection showed the returned id. Body ids are walked without spreading children into an argument list. An RPC call reads only when every operations entry names an operation of its own. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Serving's replay decision moves to the domain as replayReason, and the write gate uses it: a read serving replays can neither approve nor veto a write, and a read of every field beside a replayed selection is checked. A selection read missing a required field is still skipped, since part of an entity can neither confirm nor check it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e-targets Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 197b1a3d8b
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
…ence that rules out other causes - A read-only POST repeats only a read that finished before it began; the veto compares the latest read finished before a call with the first begun after it, and counts a recorded absence on one side as a change. `modify` and `replace` are write words. - A redirected or unanswered write lets a later item read adopt the entity it may have made. - A creation cut counts a read still running when the POST began as after it, and a list read shows its listed entities' own ids, not those they nest. - A linked create's item read must come before any other tool's write. - Line shapes are charged to the budget as they are built. - A `fields=*` list line is whole, not a field selection. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ed78be263c
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
… earlier reads, and bound late lines and read-only stretches - An item only a replayed line showed replays only while no served create has added to its type, so a created and deleted item stays missing. - A linked create's earlier item-read veto checks only reads of the candidate's type or collection that show the item, so another type's id does not hide it. - An item read answered with JSON null shows no id to a creation cut. - Late lines' member names are charged before they are kept. - The read-only check precomputes nearest writes and passes once over each write-free stretch per path, skipping lines whose reads all agree. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…reads once and keep only returned ids for creation cuts - A linked create passes over a later item read naming its id whose body shows no item, such as JSON null, and links the next one. - Read-only repeated reads are found in one sweep: each path's reads wait by end time until a call's start passes them, and a write clears them. - A creation cut keeps, and charges, only the shown ids some creation returned. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
kaoru0822-kitauji
left a comment
There was a problem hiding this comment.
Review of c166a69 (correctness, performance, and the composability/evidence principles). I found no correctness defects in the new read-only, adoption, link, rewrite or variant logic. I traced the counterexamples I could think of (overlapping reads, redirected calls, short ids, envelope ids, field selection *), and the existing tests cover them.
Findings are inline. All are performance or budget-accounting issues, and only the first is measured. AGENTS.md (Performance) asks for before/after timing, CPU and peak memory when a change affects analysis cost. This PR adds several passes over the timeline (read-only detection with a veto loop, creation limits, variant lines, a possible second planning pass after a rewrite cut), but the PR body and verification.md report coverage counts only. A cold/warm timing of the 50-capture sweep on main vs this branch would close that gap.
Note: the Validate author declaration check fails on this head. That is the human-owner readiness declaration, which only you can complete; it isn't something a reviewer can fix.
Codex couldn't review this head: the retrigger returned "usage limits reached".
🤖 Generated with Claude Code
…parse each compared body once The variant pass indexes a tool's lines by the entities they show and compares only lines that share one, charging the index to the budget while it is held; the pairwise work limit still decides when a tool keeps every line checked. Read-only decisions keep each response body's canonical digest, taken once while its parse is charged, across calls and veto passes. The creation cut no longer parses reads at or after the write that ends the initial reads, and reads the ids a body shows inside its lease. Adoption looks up a read's target only after an unplanned write before it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@morluto this is ready for review. It merges cleanly with main ( |
|
Follow-up performance check on 53b2966, on behalf of the repo owner. Thanks for adopting the variant change. 9614465 brings the 1000-item capture (each item read plainly and with Where the remaining ~150 ms goes
Result with the patch below: 286–299 ms vs main's 265–292 ms, i.e. parity within noise, while serving a view main refuses. With the patch applied on 53b2966, all 41 environment / web-network analysisView and I'm leaving this as a suggestion rather than pushing: Patch (git apply on 53b2966)diff --git a/src/domain/analysisView/environmentStateVariants.ts b/src/domain/analysisView/environmentStateVariants.ts
index da5918930..e6b6ba049 100644
--- a/src/domain/analysisView/environmentStateVariants.ts
+++ b/src/domain/analysisView/environmentStateVariants.ts
@@ -273,19 +273,42 @@ const isVariant = (
[...conflictingLines(mine, shown)].some((line) => base.lines.has(line)) ||
(namesNewParameter(record.query, base) && showsOtherMembers(mine, base));
+/** What replay keys are found against: every value each base line gave a parameter, and the parameters every base line names. */
+interface KeyBase {
+ readonly values: ReadonlyMap<string, ReadonlySet<string>>;
+ readonly everywhere: readonly string[];
+}
+
+/** Parse the base lines' queries once, for any number of replayed lines. */
+const keyBase = (base: readonly (string | null | undefined)[]): KeyBase => {
+ const baseValues = base.map(queryValues);
+ const values = new Map<string, Set<string>>();
+ for (const line of baseValues)
+ for (const [name, given] of line) {
+ const seen = values.get(name) ?? new Set<string>();
+ values.set(name, seen);
+ for (const value of given) seen.add(value);
+ }
+ const everywhere = [...values.keys()].filter(
+ (name) =>
+ !PAGING.has(name.toLowerCase()) &&
+ baseValues.every((line) => line.has(name)),
+ );
+ return { values, everywhere };
+};
+
/** The keys that tell replayed lines from base lines: a parameter or value only replayed lines give, or a parameter every base line names that one leaves out. */
export const replayKeys = (
base: readonly (string | null | undefined)[],
replayed: readonly (string | null | undefined)[],
retain: (bytes: number) => void = () => undefined,
+): ReplayKey[] => keysAgainst(keyBase(base), replayed, retain);
+
+const keysAgainst = (
+ { values: baseValues, everywhere }: KeyBase,
+ replayed: readonly (string | null | undefined)[],
+ retain: (bytes: number) => void,
): ReplayKey[] => {
- const baseValues = base.map(queryValues);
- const named = new Set(baseValues.flatMap((values) => [...values.keys()]));
- const everywhere = [...named].filter(
- (name) =>
- !PAGING.has(name.toLowerCase()) &&
- baseValues.every((values) => values.has(name)),
- );
const keys = new Map<string, ReplayKey>();
const add = (key: ReplayKey): void => {
const id = JSON.stringify([
@@ -302,14 +325,10 @@ export const replayKeys = (
const values = queryValues(query);
for (const [name, given] of values) {
if (PAGING.has(name.toLowerCase())) continue;
- const unseen = given.filter(
- (value) =>
- !baseValues.some(
- (other) => other.get(name)?.includes(value) === true,
- ),
- );
- if (!named.has(name)) add({ name });
- else for (const value of unseen) add({ name, value });
+ const seen = baseValues.get(name);
+ if (seen === undefined) add({ name });
+ else
+ for (const value of given) if (!seen.has(value)) add({ name, value });
}
for (const name of everywhere)
if (!values.has(name)) add({ name, absent: true });
@@ -408,13 +427,14 @@ export const withoutVariants = (
const release = facts.checkpoint();
const found = variantLines(plan.latest, facts.shapeOf, facts.retain);
release();
- const unkeyed = plan.latest.filter((record) => !found.includes(record));
+ const variant = new Set(found);
+ const base = keyBase(
+ plan.latest
+ .filter((record) => !variant.has(record))
+ .map((line) => line.query),
+ );
const variants = found.filter(
- (record) =>
- replayKeys(
- unkeyed.map((line) => line.query),
- [record.query],
- ).length > 0,
+ (record) => keysAgainst(base, [record.query], () => undefined).length > 0,
);
const lines = new Set(variants.map(requestLine));
const latest = plan.latest.filter(
diff --git a/src/domain/analysisView/environmentStateWriteChecks.ts b/src/domain/analysisView/environmentStateWriteChecks.ts
index 7526160d6..17c97e6fd 100644
--- a/src/domain/analysisView/environmentStateWriteChecks.ts
+++ b/src/domain/analysisView/environmentStateWriteChecks.ts
@@ -240,12 +240,13 @@ const matchingTarget = (
readonly ids: readonly string[];
readonly written: string;
},
- collections: readonly string[],
+ /** Read only when the path's own collection holds no id, since listing them walks the type's entities. */
+ collections: () => readonly string[],
held: (collection: string, id: string) => boolean,
): { readonly collection: string; readonly id: string } | undefined => {
for (const id of path.ids)
if (held(path.written, id)) return { collection: path.written, id };
- const ranked = [...new Set(collections)]
+ const ranked = [...new Set(collections())]
.flatMap((collection) => {
const verbatim = segmentMatch(segmentsOf(collection), path.read);
return verbatim === undefined ? [] : [{ collection, verbatim }];
@@ -278,12 +279,12 @@ export const itemTarget = (
return (
matchingTarget(
path,
- state.ofType(type).map((entity) => entity.collection),
+ () => state.ofType(type).map((entity) => entity.collection),
(collection, id) => state.entity(type, collection, id) !== undefined,
) ??
matchingTarget(
path,
- removed.map((target) => target.collection),
+ () => removed.map((target) => target.collection),
(collection, id) =>
removed.some(
(target) => target.collection === collection && target.id === id,🤖 Generated with Claude Code |
|
On behalf of the repo owner, I pushed f151988: a merge of latest main (d87e73f) into this branch, with no conflicts and no other changes. Your last push was over two hours ago, so I wasn't racing you. Why: the red required checks on the previous head came from main, not this PR. They were native plist tests ( Validation (local, Node 24.22.1): 41 environment / web-network analysisView and 🤖 Generated with Claude Code |
… holds no id, and parse variant base lines once The write gate's item target lists the type's held collections, and the removed targets', only when the path's own collection holds none of its ids, so a served item view's reads no longer walk every entity of the type. The variant pass parses the base lines' queries once for all the variants they key, and not at all when it found none. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…weep's cost Co-Authored-By: Claude Opus 5.5 <[email protected]>
…to st Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@morluto this is ready for review: CI is green at @kaoru0822-kitauji thanks for the follow-up: both changes are in |
Summary
Across the 50 published capture-built environments, 91 of 195 write tools got no state target. The gate refused them before weighing any evidence, because their path named no state type, item or document. We traced each of the 91 to its cause in the recordings and the code. This PR fixes the five largest shared causes:
POST /Playlists, read as/Items/{Id}) had no target, and their entity leaked into the initial state.?counts=true,?expand=,?fields=), which show the same entities in another form, failed the whole view.Over the same captures, served write tools go from 46 to 61 and no-state-target from 91 to 61. No served write and no state-backed read view is lost, and every served write tool applies.
Refs #4933. One commit per cause; each commit's tests fail on the commit before it. The spec is
docs/specs/agent-environments/state-targets/.Problem and expected behavior
Read-only calls. A POST stops counting as a state write, and is replayed, when any of these holds:
It stays a write when a related read line changes across one of its calls, or finds its entity gone after it; a read overlapping the call counts on neither side. For example, Grafana's
query-historystays a write.Adopted entities. A write that no built plan models, or one redirected or unanswered, can create an entity the gate's copy never held. When a successful item read later shows that entity, the gate puts it into the copy, and later writes to it are checked as usual. An entity a modelled write touched is never taken back.
Linked creates. A POST whose path names no state type becomes a create into the type whose item read first names an id its response returned, before any other tool's write, as long as the id is new. Its observation is a read of an id its response returned, in an envelope too. Serving creates in that read's collection, for the recorded path arguments in either spelling. If a type's reads only show such an id once the POST began, the POST ends that type's initial window; a list read shows its listed entities' own ids, not those they nest.
Rewrite cuts. When a type's reads disagree across a write under another root, its initial window ends at the earliest write within the change, and the state is extracted again. When both cuts apply, the earlier wins.
Variant lines. A read line that shows the same entities in another form is a variant.
projected_query_keys).A learned filter role whose name matches no field needs two agreeing values.
Change and scope
environmentStateQueryCalls.ts,environmentStateWriteAdoption.ts,environmentStateWriteLinks.ts,environmentStateRewrites.tsandenvironmentStateVariants.ts;/{type}/{id}/archive);Contract and boundary impact
src/domain/analysisView/), then serving.projected_query_keys, and list views may now carryprojected_record_ordinals;variant;docs/public/product-catalog.json), package, or installation impact: none.Expected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.
Evidence and regression coverage
Measurements. All 50 published captures, one commit at a time on main.
Newly served write tools:
Of the 40 views that variant lines make state-backed, 146 of 151 recorded reads made before the first write match. The other five are Sentry projects, which replay the first of several differing recordings, as before.
Review round. The 10 Greptile and Codex threads are fixed in three commits, each finding with a test that fails without it:
fieldsline is set aside before the identity proof.No write verdict changes; one NocoDB records list becomes state-backed (7 of 7 recorded reads match).
A second round fixed 8 more threads in three commits, again each with a test that fails without it: the write gate now skips exactly the reads serving replays; an earlier list or collection read showing a returned id vetoes a linked create; an RPC batch reads only when every entry names a read operation; a planning pass a rewrite cut discards is released from the budget; and no unbounded array is spread into call arguments. No measurement changes.
A third round fixed 9 more Codex and Greptile threads in one commit, each with a test that fails without it:
findAndModify-style operations stay writes;fields=*list line is whole.Mailpit's send, a linked create that was never observed, loses its target, because other writes ran before the read naming its id. No served write, read view or matching read changes.
A fourth round fixed the 6 threads the bots raised on that push, in one commit, each with a test that fails without it:
projectId) distinct across its entities;No verdict, read view or recorded read changes. A purge of temporary files removed 32 of the local captures, so this round was measured on captures restored from the published datasets. Where a local copy survived they are byte-identical; Baserow's, Grocy's and Keycloak's published captures predate the ones in the table. On that set, the previous head and this one both give 187 write tools, 62 served (smoke 62 of 62), 1,151 views and 2,085 of 2,155 recorded reads matching.
A fifth round, after main
6a34be41was merged, fixed Greptile's 3 threads in one commit, each with a test that fails without it:projectIdas its entities' ids only when no id-named field identifies them, so a foreign key besideidcuts no window;Nothing changes on the restored captures.
A sixth round fixed 5 more Greptile and Codex threads in one commit, each with a test that fails without it:
Nothing changes on the restored captures.
A seventh round, after main
96ea32b7was merged, fixed 4 more Greptile and Codex threads in one commit, each with a test that fails without it:WordPress's post create moves from side-effect to unconfirmed, still unserved: its only later read asks for
context=edit, which shows the edit representation, so it is now replayed rather than checked.An eighth round, after main
3e7e102awas merged, fixed 6 more Greptile and Codex threads in two commits, each with a test that fails without it:?include=shelfbeside a dropped?expand=shelfreplays, and a later?fields=id,namethat keeps the identity replays too;Nothing changes on the restored captures.
A ninth round, after main
b7ebccf8was merged, fixed 5 more Greptile and Codex threads in one commit, each with a test that fails without it:nullshows no id;Nothing changes on the restored captures, session replay included (2,764 of 3,022 session reads matching).
A tenth round, after main
a2235b09was merged, fixed 3 more Greptile threads in one commit, each with a test that fails without it: a linked create passes over an item read naming its id that shows no item; repeated reads for read-only POSTs are found in one sweep; and a creation cut keeps and charges only the ids some creation returned. Nothing changes on the restored captures.Three serving cases an independent review flagged were fixed before this PR:
expandnow answers without it;End-to-end rebuilds. Five published environments last built on 10-18 were re-recorded on disposable Linux VMs and rebuilt with this branch.
POST /channels/{id}/members/idsreplays as a lookup, and its channel, members and pinned reads answer from state.accessas a summary while its item shows the full map, and a created entity carries only the item's values;5.0000…;Tests, each failing on the commit before:
Nine existing view tests that asserted a rewritten type stays
fields-differnow assert the cut and re-plan.Remaining proof gaps:
For evidence-bearing changes:
Validation performed
Run on macOS with Node v22.23.1, on the branch with main
a2235b09merged.npm run -s check:fast(no new oxlint warnings in the changed files),npm run -s format:check,npx knip,npm run -s scan:todos,npm run -s docs:check,npm run -s verify:test-discovery,npm run -s verify:module-boundaries,npm run -s mcp-catalog:checkandnpm run jscpd(3.59%): passed.npx vitest run --project domain --project services: 9393 passed, 6 pre-existing skips, and 10 failures that main has on its own (javascriptStaticAnalysis.mapEndpoints,javascriptStaticAnalysisReturnedInvocation,FridaInstrumentationService).npm run -s test:prepare, then the 8 focused boundary files (environment serve and export CLI, serve and served-writes MCP, analysis-view CLI and MCP, compact input schema, tool schema validity): 90 passed.After merging main
3d4f5565and then2968d1e9, both without conflicts, intoc166a694:npm run jscpd: 3.52%, main's own level.npx vitest run --project domain --project servicesat3d4f5565: the same 148 failing tests as main3d4f5565on this machine (Node v22.23.1, below main's new^22.23.4floor), none new. The boundary failures (clientConfigurationEnvironmentand oneanalysisViewCliinventory test) fail on main too.c166a694: typecheck and format passed, the environment tests passed (1013), and the 8 focused boundary files passed (91). The census, served smoke, initial serve check and session replay are unchanged: 187 write tools, 62 served (smoke 62 of 62), 59 without a state target, 1,151 views, 2,085 of 2,155 initial reads and 2,764 of 3,022 session reads matching.c166a694: every build and test job passed.After the four performance review threads on
c166a694(9614465f, checks recorded in53b2966c):c166a694with the old accessors wired as production wired them (work counts, a budget charge, and body access outside a lease); the test I/O now hands bodies throughwithBody, so the files' other tests no longer run against the old interface.npm run jscpd: 3.53%);npx vitest run --project domain --project services: 9814 passed, 6 skipped, none failed; the environment boundary projects: 100 passed; the 8 focused boundary files: 91 passed.?expand=, the variant pass falls from 401 ms to 2 ms and the state build from 659 ms to 216 ms.After the reviewer's second performance suggestion (
3dd85f21), maind87e73f2(f55c7315, and the same merge pushed by the reviewer,f151988a) and the round's checks (dee4dd75), at3608c5aa, on macOS with Node v24.22.1 and main's locked dependencies:53b2966c; the other 180 tests in their files pass there.npm run jscpd: 3.58%);npx vitest run --project domain --project services: 9852 passed, 6 skipped, none failed; the environment boundary projects: 101 passed; the 8 focused boundary files: 93 passed. Every census, serving-check and session-replay row equals the previous head's.?expand=): 259–264 ms against main's 244–247 ms, from 378–397 ms (Node v22.23.1, medians of seven warm runs).d87e73f2's 2.61 s, 3.41 s and 516 MiB (warm medians of three runs; cold within 2%). The environment-state view takes 2,093 ms against 1,791 ms and its results grow from 3.69 MB to 3.84 MB; agent tokens were not measured.Compatibility, safety, and release
Author readiness
Human owner: @earakely-scale
Before merge
type(scope): outcome.🤖 Generated with Claude Code