Repository navigation
fix(ci): restore main workflows and captured-state replay - #9763
Conversation
environment-build inspected a HAR without the caller path that inspect-web-network-capture records, so the published evidence.json omitted caller_input_path and failed the byte-for-byte portable check. Also update three stale portable expectations that already fail on main: the no-reader verifier digest matches the #9185 selector parent, uncapped IDA callee pages report complete discovery, and a CLI refusal of a malformed artifact inspection includes the undelivered source closure.
Codex Review Summary: ✅ CompletedThis 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: 48eaf31e32
ℹ️ About Codex in GitHub
Your team has set up Codex to 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 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
The witness page linked task anchors that were never written, so any docs-touching PR failed the route check. A selected state directory was restored as a dangling symlink by a duplicated helper. An empty safetensors file reports the extent as outside the file before offset conversion. Windows cleanup refusal uses the runtime's in-progress message.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: adabb98dd5
ℹ️ 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".
inspect-web-network-capture records the path the caller typed. The one-shot build had already absolutized that path, so a relative capture disagreed with the three-step bundle. The byte-for-byte check now runs from the capture directory and requires caller_input_path grafana.har.
A missing settings file was created as a directory because the helper treated any absent path as a directory. The capture's selected path kind now travels with the alias, and only a directory alias creates its target. An absent file alias stays a file the app can create.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 481c96e77e
ℹ️ 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".
Captures written before selected_paths.kind leave the alias unknown. Defaulting those to a directory makes an omitted settings file a directory, so a later write through the alias fails with EISDIR.
The export plan was widening a missing selected path kind to string. Record file or directory only when the capture says so, and unknown otherwise.
The selected path kind was widened to string, so the export plan could not keep the file, directory, or unknown distinction.
The export now records whether a selected alias is a directory. The rendered STATE_ALIASES tuples include that kind.
The POSIX read maps a record past the compact endpoint bound to "Ghidra TCP endpoint is invalid". The Windows lease reported that same bound as a generic observation failure, so an expanded endpoint failed the Windows lane with a different message.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9482a836b3
ℹ️ 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".
…tory A capture written before selected path kind can still nest one alias inside another. That parent is a directory. A legacy leaf stays unknown so a missing settings file is not created as a directory.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 938417fcf6
ℹ️ 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".
An empty state directory does not become an owned path, so the class was ownless and never called _ensure_state_aliases. The ownless class now restores aliases whenever the export recorded some.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3bfd458f2d
ℹ️ 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".
A file alias must stay a file. When its parent directory was not seeded, the symlink was dangling and a write through it failed with ENOENT.
The Windows lane timed out in webModuleCli, which this diff does not touch, and the rerun API is unavailable.
gensokyo-dev
left a comment
There was a problem hiding this comment.
Automated maintainer validation: reviewed the producer and all six resolved review findings; independently ran seven key files (187 passing tests). Strengthened the CLI refusal oracle to preserve the original error projection; 50 normal tests pass and a dropped-parent fault that previously falsely passed is now detected. Static checks passed. Current-head portable CI is green; Windows package validation is still running. This approval does not attest to human review.
Summary
Portable tests and CI required fail on current
main(d4a7c20e). Those failures are what keep the open fix PRs red. No dedicated issue.Head
e99745e4a996a291d9ea056ae4fdab3ccff66e25adds a two-line test-oracle correction to the original repair. The original repair at073a5f4594be3e4f4d96b1a53d385899bdbc53cfpassed every selected check in CI run 42756079140, including Windows, browser, and environment bundle workflows. Current-head CI run 42760660261 passed every selected job, including all eight shards, Windows native/package/Node 22 boundaries, browser, agentenv, and Linux/macOS package lanes; merged normally after final CI success.Related: #9770 overlaps the documentation, verifier golden, and safetensors expectation changes; this PR also covers HAR provenance, alias restoration, and Windows verification.
Problem and expected behavior
environment-buildof a HAR must publish the same capture Evidence asinspect-web-network-capture, including the caller's original path spelling.docs/desktop-build-witness.mdlinked#readersand#screen-judges, which were never headings.Change and scope
Ordinary fixes inside existing evidence, export, and test contracts. Not included: new reader or screen-judge task sections, or a change to the safetensors extent-before-conversion order. Contribution scope: not applicable.
Contract and boundary impact
environment-buildnow passes the caller's capture spelling intoWebNetworkCaptureService. Alias restoration stays in_ensure_state_aliases, called from both the owned and ownless class bodies. Windows endpoint observation maps a reader limit to the same invalid-endpoint error as POSIX.environment-buildevidence includescaller_input_pathwith the caller's spelling. No flag or catalog change.#assertOpenalready throws once cleanup has started.Expected effects:
Evidence and regression coverage
grafana.harwithcaller_input_pathgrafana.har; verifier digest; IDA callee coverage; CLI source closure; safetensors extent; desktop alias file, unknown leaf, unknown parent, missing file parent, and ownless class; renderedSTATE_ALIASEStuples.mainatd4a7c20e. The Windows cleanup message and the Ghidra endpoint message were taken from the Windows lane logs. The witness links were the only markdown fragments whose headings are absent.For evidence-bearing changes:
Validation performed
Independent validation on
073a5f459: seven key files, 187 passed, using pinned Node 24.22.1/npm 11.16.0 and verified same-SHA CI runtime artifacts. Two CPUs; 62.7 s elapsed, 108.8 s user+system CPU, 2.31 GiB peak sampled session RSS (200 ms sampling; shared pages may be counted twice).Updated
evidenceBundleFiles.test.ts: 50 passed; original dropped-parent mutation falsely passed, strengthened assertion detects it. Mutation restored;npm run check:fast -- --concurrency=1and commit/push hooks passed.npm run test:focusedon the four originally failing files — 95 passed.npx vitest run tests/boundary/providers/desktopExportPython.test.ts— 18 passed.npx vitest run src/application/desktop/DesktopApplicationExport.test.tsfiltered to the alias cases — passed, including an empty state directory.npx vitest run tests/acceptance/modelArtifactCli.test.tsand the impossible-safetensors boundary test — passed afternpm run compile.npx vitest run tests/boundary/providers/ghidra/ghidraTransport.test.ts— 5 passed on Linux.npm run check:fast— passed on the pushed head, including the pre-push hook.GitHub on
bdff224296e0babe8fc65aace63d0deadf917305: Static checks SUCCESS, Portable tests SUCCESS, Conventional PR title SUCCESS, CI required FAILURE. The Windows job129621768435timed out intests/acceptance/webModuleCli.test.ts.Compatibility, safety, and release
environment-buildevidence gainscaller_input_path. RenderedSTATE_ALIASEStuples gain a kind.WebNetworkCaptureService.Author readiness
Human owner: @morluto
Before merge
type(scope): outcome.