Repository navigation
fix(environment): bound create learning and invalidate stale write proofs - #6929
Conversation
…ent-coverage view A new inspect_analysis_view kind over capture Evidence. It projects the state an environment derives with the given template rules and reports each tool as answered from state, replayed with its view reason, a served write, or a withheld write with its reason, the records behind it and a hint about what to record next. The hints cover every write reason, so a new reason without one fails to compile. Co-Authored-By: Claude Opus 5.5 <[email protected]>
rea environment-build <capture> [directory] inspects a HAR (or reads capture Evidence), projects the environment manifest from the in-memory Evidence, authenticates the pair, prepares the state and writes the bundle environment-export writes. Every bundle file is byte-identical to the three-step path for the same capture and options. The report adds the capture and manifest identities, the coverage summary, warnings (a loopback capture named after its file, credential-named body members by pointer) and the next command. --dry-run writes nothing. The default template rules are the four the published environments use. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Domain tests check the hint table against the state view's reasons, the summary, and the view against the environment-state view it summarizes. Service tests build the fixture capture and compare every file with the three-step path, a dry run, loopback naming and the refusals. A CLI test compares a HAR built in one step with the three CLI steps byte for byte, and an MCP test projects the view from every source kind. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ment-build The lane now runs the command users run: it builds the Grafana-shaped HAR with environment-build and the packed checkout, checks the report, then runs the bundle with agent-env as before. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The agent environments guide opens with the one-step build: the report, the hint for each withheld write reason, and what a bundle ships. The CLI guide, the capture guide and the skill reference name the command and the environment-coverage view. Co-Authored-By: Claude Opus 5.5 <[email protected]>
- The credential scan walks with its own stack, so a deeply nested body cannot crash the build, and it also reports credential-named header names, query names, form body members and string arrays. - The build checks SIGINT between stages: cancelled before the bundle stage it writes nothing, during the write it names the written bundle. - A dry run opens the package tarball, so it refuses what a build refuses. - Repeated template rules are refused, a HAR saved as .json gets a hint, file-derived names follow the bundle name rules, `localhost.` counts as a loopback origin, and the next command is shell-quoted. - --capture-timeout-ms passes through to the HAR inspection, and a missing directory is refused before inspection. - The no-observation hint covers updates and deletes of entities the state never held; the coverage view states that it does not apply the serve-time admission checks; the inspect_analysis_view description names the view. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…cation The guides now state when the one-step bundle equals the three-step one, which headers inspection excludes, what the credential warning scans, how cancellation behaves, and that the coverage view does not apply the serve-time admission checks. The spec folder records the census, the end to end runs, the gates and the review. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e check The manifest, state and coverage stages run synchronously, so a SIGINT that arrived during them was only dispatched once the bundle write had begun. Each check now yields first, so an interrupt before the bundle stage cancels the build with nothing written. 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bc35ef3cc0
ℹ️ 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".
The export file read returns permission refusals through Result under the calling operation's name. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…and serialize Evidence once A browser scenario's retained header values and the query parameters of its recorded URLs are scanned for credential names as a HAR's are, through a review projection of its records. A dry run admits and releases the package tarball through the export's regular-file scope, so a close it cannot confirm keeps its owner, and checks for cancellation after that last await. Evidence is written into one exactly sized buffer instead of chunks joined by a copy. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Scenario records keep main's response-body retention map beside the review projection. 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: fce1aba86b
ℹ️ 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".
…odies The build's credential scan collapsed form bodies with Object.fromEntries, so a repeated field kept only its last occurrence: `api_key=secret&api_key=` warned about nothing although the Evidence ships the value, and repeated values were undercounted. Form fields are now scanned as ordered name/value pairs, as headers and query strings already are. The review projection of a capture_browser_scenario dropped a request body recorded without a media type, so the scan never saw it. Review keeps such a body's text with an empty media type; the manifest projection still reads only bodies it can classify. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
On behalf of the repo owner, I pushed eeab0bd to this branch. It closes the two Codex P2 findings on fce1aba. I pushed only because your last push was ~55 minutes earlier, to avoid racing you. What changed and why
Evidence
CI note: the Test shard (1/8) / Portable tests failure on fce1aba is in 🤖 Generated with Claude Code |
The environment-coverage sentence joins main's BEAM additions to the view description. 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: 53a03c06a5
ℹ️ 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".
…e of unattributed scenario transactions A HAR request recorded with postData.params and no text is scanned by those parameters, each occurrence counting, and the review projection keeps the request side of a scenario transaction whose response cannot be attributed, so the credential warning covers what evidence.json ships in both cases. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Correction: two Codex threads surfaced after this comment; both are fixed in |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 74f7ad28ae
ℹ️ 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".
[Medium impact] The PR appears safe to merge; no new blocking issue was found. SummaryThis PR keeps create inputs pinned when copied fields cannot be rebuilt. It also retires inconsistent read views and removes their write proofs and saved overrides.
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Read contradicts learned array order] --> B[Retire read view]
B --> C[Remove earlier write confirmations]
B --> D[Remove saved view overrides]
B --> E[Keep comparison-only view]
E --> F[Check later reads without array order]
F --> G{Values match?}
G -->|Yes| H[Add no write proof]
G -->|No| I[Reject affected writes after ownership checks]
Reviews (17) · Last reviewed commit: "fix(environment): keep checking retired ..." · Reviewed by Greptile |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Integrating main took main's credential scan and coverage view, which dropped 0895c89's tests and its body-unusable hint. Main's scan passes the tests, now reading the scenario by event. The hint names the response too, since extraction and serving also withhold a write as body-unusable when its recorded response cannot be read. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Main's event scan reads both content events of a transaction whose content the capture recorded twice; the test fails on 0895c89, whose review projection dropped that transaction's response. The spec names event pointers among the first 20. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@gensokyo-dev @morluto heads-up: I pushed
Checked at
I also ran my own stricter sort tests against |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 47d820e9c3
ℹ️ 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".
|
@gensokyo-dev I am taking the four threads opened on |
|
Validation at Thread outcome:
Checks on macOS, Node v24.22.1:
@gensokyo-dev, this is a merge-only push; nothing in your integration's files changed. |
|
Independent check of the integrated head
Over the 50 real captures, every write plan, session replay and served read equals |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fc8176694e
ℹ️ 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".
Summary
Create learning buffered future requests to relax guards, although request variation cannot rebuild copied dependent references or state. Withdrawn array-sorting rules also left stale write confirmations or snapshot overrides.
Verification
Final head:
a6c145a21468224a915f73c27af028fbc454a1e5, preserving all author updates. Local: 1,353 source cases; 46 CLI/MCP/process cases with five platform skips; static/typecheck/module boundaries, architecture, docs and packaged build passed. The unchanged SDK/schema contracts passed 16 cases atfc8176694after regenerating stale test metadata.Greptile passed; no unresolved review threads. CI passed 18,159 source cases (13 skipped), static/docs/package/Windows-controls builds, Linux native-package baseline and the actual agentenv runner.
Unrelated CI failure: PR shard 2 has the same two Windows-path error-category assertions as main
798450638shard 2. Normalized failure sections are byte-identical; test blob and PR ownership scope are unchanged. Seven other shards were cancelled by fail-fast and remain unverified in this run. The user explicitly authorized bypassing confirmed unrelated main failures.Current-head real workflows:
0895c89bc; the later-retired-observation regression fails atfc8176694and passes at this head.Post-merge
41cf869949b82bd0f24d425f6557432ae3a63545: rebuilt the actual merged runtime and bundles. All four recordings retained identical write plans and per-record read/write outcomes; generated-bundle HTTP MCP and independent Chromium/SQLite qualification passed again.Measured workflow costs
Three alternating rounds per input, 15 matched pairs; complete bundles were byte-identical. Evidence workflows take two CLI calls → one; HAR takes three → one. One-CPU medians:
Fresh CLI processes; OS caches uncontrolled; persistent-process warm runs unmeasured. Includes orchestration/hashing, excludes install/download/package preparation. These compare equivalent workflows on the same implementation. Payload-exit counters and cleanup verified; final whole-scope counters unavailable. Maximum build-workflow peak: 433.7 MiB; no general memory-saving claim.
cl100k_baseestimates: coverage replies 1,892–2,031 tokens versus full state 8,907–64,282, preserving parent/artifact/coverage/unknowns and retained Evidence. Already-redirected workflows' arguments + final stdout increase from 521–591 to 630–986 tokens because build reports include coverage/warnings. No blanket token-saving claim: actual model usage, schemas, prompts, orchestration and retries are outside that estimate. The affected SDK entry separately measures 114,557 tokens (20,088 for name/description/input).Author readiness
Human owner: @earakely-scale