Repository navigation
feat(environment)!: serve the environment state by default #5351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
morluto
merged 34 commits into
morluto:main
from
earakely-scale:feat/environment-state-serve
Oct 21, 2026
+5,681
−467
Merged
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
ad439bd
feat(environment): extract the initial state a capture's reads observed
earakely-scale 7a668b7
Merge main into feat/environment-state-view
earakely-scale f2c9a2e
fix(environment): bound state at redacted writes; infer identity only…
earakely-scale 2999128
fix(environment): keep first sightings, one list pointer and linear f…
earakely-scale a5c7b92
fix(environment): keep post-write values and partial lists out of the…
kaoru0822-kitauji 4e93547
docs(environment): scope item-shaped and deleted written paths out of…
kaoru0822-kitauji aba9cb1
fix(environment): count writes in flight when a value changes between…
kaoru0822-kitauji 856c8c0
Merge main into feat/environment-state-view
kaoru0822-kitauji 55480bd
chore: merge main (5fa4defc) into environment state view
earakely-scale 9fee36d
fix(environment): catch cross-tool changes across writes; read only i…
earakely-scale 3c64cbe
chore: merge the branch's own main merge (856c8c0b), identical to 554…
earakely-scale 47f8a27
chore: merge main (f93a0335, rich captures) into environment state view
earakely-scale 32fbaa5
chore: merge main into environment state view
gensokyo-dev 04e2c56
fix(environment): keep post-write observations out of initial state
gensokyo-dev 3daeebb
chore: retain author main integration in environment state view
gensokyo-dev 25923c3
chore: sync environment state view with latest main
gensokyo-dev 6ad63bc
fix(environment): retain field provenance and bound state inference work
gensokyo-dev 2bd0b3c
feat(environment): serve tool calls from the environment state
earakely-scale 9f60e54
Merge the environment state view's review fixes into feat/environment…
earakely-scale cb04dcd
docs(environment): record verification after merging the state view's…
earakely-scale e96484b
Merge main (#5319 squashed, #5349) into feat/environment-state-serve
earakely-scale 6676582
feat(environment)!: serve the environment state by default
earakely-scale 83fcc73
fix(environment): bound data-plane replies, keep batch order, cancel …
earakely-scale d9c0357
fix(environment): keep bodies too deep for the state's nesting out of…
earakely-scale 57b1168
fix(environment): measure data-plane replies before building them
earakely-scale 5956e00
chore: merge main (d2a3269d) into environment state serve
earakely-scale 5a61853
fix(environment): release batch replies as they are encoded; judge ex…
earakely-scale c00fde4
fix(environment): keep room for refusals and framing in the reply budget
earakely-scale 25b6622
chore: merge main (335c042d) into environment state serve
earakely-scale 6b8db19
fix(environment): refuse a loaded state that data/get would write pas…
earakely-scale 31a618e
chore: merge main (d9767eb4) into environment state serve
cursoragent 96ce6c6
fix(environment): keep merged export checks on the shared test graph
cursoragent bfe9d4b
chore: merge main into environment state serve
morluto 0da8e23
fix(environment): keep a state file whose close failed owned until it…
earakely-scale File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(environment): release batch replies as they are encoded; judge ex…
…act numbers by value answerBatch kept every settled reply in its pending array until the batch ended, so a batch alternating data/add and data/get held each loaded state alive; each reply now leaves the queue as it is encoded. The exact-number policy judged a number by its recorded spelling, so a state loaded with 1e20 came back from data/get as 100000000000000000000, which data/add refused, breaking the promise that data/get output loads back unchanged. A number is exact only when both its recorded spelling and the one serialization writes are safe, so integers from 2^53 below 1e21 are refused in any spelling; replay keeps such bodies as recorded text. A domain test checks that every accepted number is accepted again once written back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Loading branch information
commit 5a61853a697a742153c9c3f797e7d58dc7e4ee5f
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| import { expect, it } from "vitest"; | ||
|
|
||
| import { isExactJsonNumber } from "./exactJsonNumber.js"; | ||
|
|
||
| const spellings = [ | ||
| "0", | ||
| "42", | ||
| "-7", | ||
| "1.5", | ||
| "0.1", | ||
| "1e3", | ||
| "1e-7", | ||
| "9007199254740991", | ||
| "9007199254740992", | ||
| "9.007199254740992e15", | ||
| "1e20", | ||
| "100000000000000000000", | ||
| "1e21", | ||
| "1.7976931348623157e308", | ||
| ]; | ||
|
|
||
| it("judges a number alike in every spelling, so an accepted number is accepted again once written back", () => { | ||
| for (const spelling of spellings) { | ||
| const value = Number(spelling); | ||
| if (isExactJsonNumber(value, spelling)) | ||
| expect(isExactJsonNumber(value, String(value)), spelling).toBe(true); | ||
| } | ||
| expect(isExactJsonNumber(1e20, "1e20")).toBe(false); | ||
| expect(isExactJsonNumber(1e20, "100000000000000000000")).toBe(false); | ||
| expect(isExactJsonNumber(1e21, "1e21")).toBe(true); | ||
| expect(isExactJsonNumber(9007199254740991, "9007199254740991")).toBe(true); | ||
| expect(isExactJsonNumber(-0, "-0")).toBe(false); | ||
| }); |
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.