Repository navigation
Conversation
Codex Review Summary: ❌ FailedThis 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. |
|
CI follow-up: fixed the single source-suite failure in separate commit The failed job was https://github.com/morluto/rea/actions/runs/42807724088/job/129801677134 ( The producing Validation after the fix: the full desktop export domain module plus the four endpoint test files passed 125/125, including compiled public CLI and stdio MCP. Fresh typecheck/lint and commit/pre-push hooks passed. The PR description now records the baseline reproduction and updated evidence. The initial Codex review completed on |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
CI follow-up in Run 42810193789 passed source tests, static checks, docs, package/native builds and shard 8. Shard 5 failed only Root cause: the pinned SDK's The child/enclosing test now have explicit 45/60-second budgets for cold imports plus the full contract check on loaded hosts, rather than removing coverage or adding retries. Final validation: 127/127 tests across seven files passed, including the presentation test (4.62 s), schema delivery, desktop aliases, endpoint domain tests, compiled CLI and stdio MCP. Typecheck/lint, formatting and normal commit/pre-push hooks passed. Different host loads mean these timings are not a controlled benchmark. The PR body is current; upstream CI for this new head still needs to finish. |
Resolve the presentation-order test so main's response-name set stays asserted and the branch keeps its longer timeout and per-tool schema validation. Co-authored-by: morluto <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a78a9574ab
ℹ️ 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".
Record path and URL literals when their own node is entered, so a nested array element keeps the earlier coordinate. REA_WEB_BUNDLE_ENDPOINT_LITERAL_CANDIDATES defaults to 1024, with a floor of 1 and a maximum of 4096. Further unique literals are omitted and completeness is partial. A change requires restarting REA.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 56923676ea
ℹ️ 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".
REA_WEB_BUNDLE_ENDPOINT_LITERAL_CANDIDATES still seeds web.bundle_endpoint_literal_candidates. Each analyze_web_bundle call sends the accepted snapshot to the worker, and update_analysis_settings changes the next analysis inside the existing floor and maximum.
Add the spec, plan and tasks AGENTS.md requires for the inventory and for web.bundle_endpoint_literal_candidates, and index them with the other feature records.
Use the traversal parent for array elements and const checks. Copy the ancestor list only after a node is a URL-shaped variable initializer.
Part of morluto#9881. Record every numeric REA_ limit and fail static checks when one is neither a runtime analysis setting nor a documented exception with a reason.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 31781a5f5d
ℹ️ 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".
Part of morluto#9881. Add effect immediate or next_process and keep rea_restart_required, restart_required, and restartRequired as compatibility aliases.
Callers read update_mode to see whether update_analysis_settings can change a limit, and pending_restart only when a configured value is not active in this process.
GitHub CI tests the merge with main. Main now removes copied authentication even when command cleanup fails, which the evaluation command test still required to remain.
Main removes copied authentication even when command cleanup stays incomplete, and CI tests that merge. Keep the incomplete-cleanup diagnostics and the retained run directory, and expect auth.json to be gone.
Depends on morluto#9885. That branch replaces rea_restart_required with update_mode and pending_restart and forbids the legacy fields.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 61ae5faa8e
ℹ️ 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".
…tions The numeric-limit check now treats REA_WEB_BUNDLE_ENDPOINT_LITERAL_CANDIDATES as a count limit and does not count registry text as a producer.
Invalid ChangeTime settings now carry update_mode and pending_restart through the configuration error and its projection, including startup parsing. Runtime recoveries name update_analysis_settings instead of telling the caller to restart REA.
Omit a path or URL literal when its serialized record, including provenance, does not fit the remaining worker result budget. When the count ceiling is already the setting maximum, report that ceiling as maximal. Depends on morluto#9885: the limit uses update_mode and pending_restart.
A template counts as a producer only when a chunk is the limit name or an assignment of that name. A diagnostic that merely mentions the name does not keep a removed registry entry alive.
The push of 8494912 updated the pull request head, but GitHub did not create the pull_request CI workflow for that revision.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e9d34a404d
ℹ️ 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".
| @@ -1,5 +1,7 @@ | |||
| # Changelog | |||
|
|
|||
| The next release changes analysis-setting output (#9885). `update_analysis_settings`, `inspect_analysis_settings`, and limit errors no longer include `rea_restart_required`, `restart_required`, `restartRequired`, or `effect`. Read `update_mode` (`runtime`, `restart`, or `parameter`) and `pending_restart`. `runtime` means the setter can change the active value. `restart` means this process keeps the value it started with. `parameter` means this call supplied the value, so `update_analysis_settings` cannot change it; artifact reader limits, web-network capture budgets, and an explicit `analysis_timeout_ms`, `max_heap_mb`, or `command_timeout_ms` use it. There is no compatibility alias. Release Please should copy this migration into that release's breaking-changes section. | |||
There was a problem hiding this comment.
Mark the analysis-setting removal as breaking
For clients consuming analysis-setting outputs, this entry explicitly documents removal of public fields with no compatibility alias, but the reviewed commit is titled feat(web): retain literal-shaped endpoint candidates and has no BREAKING CHANGE: footer; release tooling and downstream Conventional Commit consumers therefore see an ordinary feature rather than the required breaking-contract marker. Add ! to the subject or the required footer.
AGENTS.md reference: AGENTS.md:L107-L107
Useful? React with 👍 / 👎.
| accumulator.endpointLiterals.maximumCount | ||
| ) { | ||
| accumulator.endpointLiteralOmitted += 1; | ||
| accumulator.endpointLiteralOmittedExact = false; | ||
| return; |
There was a problem hiding this comment.
Backfill slots after oversized literals are dropped
When the ceiling is 1 and the first literal record is larger than the remaining worker result budget but a later small literal such as /api/ok would fit, this traversal-time return discards the later literal before retainLiteralCandidatesWithinResultBudget drops the oversized first record. The result can therefore retain zero candidates and report the useful small literal as count-omitted despite having space for it; apply byte admission before finalizing the count ceiling or retain a bounded overflow so vacated slots can be filled.
AGENTS.md reference: AGENTS.md:L19-L19
Useful? React with 👍 / 👎.
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
[High impact] The PR appears safe to merge based on the reviewed changes and previous-thread checks. SummaryThe PR retains path- and URL-shaped strings as low-confidence
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Captured script] --> B[Inspect source without executing it]
B --> C[Existing request and route facts]
B --> D[Path and URL literal candidates]
C --> E[Reserve checked route space]
D --> F[Apply candidate count and byte limits]
E --> F
F --> G[Worker result with omission details]
G --> H[Shared CLI and MCP output]
Reviews (5) · Last reviewed commit: "test(web): cover upper-case wrapper name..." · Reviewed by Greptile |
…ntion - webBundleEndpointLiterals: reject backslash-prefixed candidates to prevent relative URL credentials from leaking into endpoint_candidate values - webBundleAnalyzer: reserve bytes for omitted-literal records so that retaining literal candidates never displaces already-checked routes - webBundleEndpointLiteralBudget: maintain running counts on append/remove instead of recounting all selected inferences (quadratic -> linear) - rea-numeric-limits: parse registry entries and analysis settings with the TypeScript parser instead of order- and indentation-sensitive regexes - tests: cover reordered registry properties and irregular indentation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
Add a regression test for the relative-URL credential leak: a literal such as `/\user:pass@host/path` must never become an endpoint_candidate.
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
…sh guard - rea-numeric-limits.d.mts: declare readNumericLimitRegistryEntries and readAnalysisSettingUpdateModes, which NodeNext typechecking requires for the new imports in numericLimitCheck.test.ts - webBundleEndpointLiterals.test.ts: exercise the backslash guard through array elements (inspectEndpointLiterals) with a valid-path control, so the credential-leak regression actually reaches webBundleEndpointLiteral
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Closing as superseded by #11822. This branch is 54 commits behind
Nothing else from this branch is carried over. |
Summary
Fixes #3539.
Retain path/URL-shaped literals missed by
analyze_web_bundleas low-confidenceendpoint_candidateinferences, not endpoint observations.Problem and expected behavior
The issue fixture retained the existing
http.postcandidate andfetchobservation, but missed the wrapper argument, three array entries and absolute base URL. Analyst discovery should retain these strings without claiming that a wrapper performs a request or that an array is a route table.Change and scope
constinitializers.analyze_javascript_applicationbehavior unchanged.Related #9509 handles method-first
request(method, url)calls and explicitly leaves this issue uncovered. This PR does not edit its shared request-argument helper or implement its rule; both touch the existing bundle test file in different cases.Contract and boundary impact
literal:path-shaped/literal:url-shapeddetectors; no tool or option changes.Expected effects:
Evidence and regression coverage
d2f9b8b7de6aeec86d0e818bf1d04cb43bbc22af, all three new domain tests failed before production edits. The issue fixture returned only['/api/verified-post']as candidates instead of six; the other two tests returned no shape candidates.low:/api/daily/complete,/api/daily/stats,/api/progress/complete,/api/multiplayer/hint,https://api.example.test./api/verified-postkeeps its existing request-spelling candidate;/api/feedbackalone remains an endpoint observation; Mapget('dpl')stays excluded.Evidence contract:
Validation performed
Final upstream CI run 42830350358 on
ba41a1fpassed: source tests, all 8 test shards, portable tests, static checks, documentation, package build, Windows native build, Linux native package baseline, andCI required. Author readiness and PR title checks also passed. No inline review findings or unresolved review threads are present. Codex could not complete its latest-head review because the repository's code-review usage limit was reached; this is an unavailable automated review, not a passing review or a code finding.Windows x64, pinned Node 24.22.1 / npm 11.16.0:
npm run compile— passed, including runtime bundles/catalog recording.npm run artifacts:skills— passed (ignored generated output).npm run check:fast— passed (typecheck and lint).node node_modules/vitest/vitest.mjs run tests/boundary/mcp/contractPresentation.test.ts tests/boundary/mcp/toolErrorSchemaDelivery.test.ts src/domain/webBundleEndpointLiterals.test.ts src/domain/webBundleAnalyzer.test.ts src/domain/webBundleAnalyzerAst.test.ts tests/boundary/cli/webBundleEndpointLiterals.test.ts src/domain/desktop/appExport.test.ts --maxWorkers=1— 7 files, 127 tests passed (17.49 s), including compiled CLI/stdio MCP, full advertised-schema equality and the inherited CI regressions below.node scripts/verify/architecture-guards.mjs— passed.node scripts/check-doc-facts.mjs— passed after generating ignored skill output.git diff --check— passed.Environment limitation:
npm run build:cachedinitially required the missing Windows native artifact, restored from the matching published[email protected]package and verified by the repository's artifact verifier. Its exclusive child subsequently failed catalog temporary-directory creation withEPERM; the same operation worked directly, andnpm run compilepassed outside that exclusive wrapper. No permissions or build scripts were changed. A test-options typing failure during development was corrected before the final passing static gate.Inherited CI failure corrected separately
The first upstream source suite passed 26,579 tests but failed the desktop export assertion for an alias whose captured kind is missing. Reproduced the identical failure in an isolated, unmodified main worktree at
94ca4b656aede76eda0ebac3af9aed42a27c21a5(two selected cases pass, the missing-kind case fails). The owningcapturedStateAliasesproducer and typed export plan explicitly normalize missing kinds to"unknown"; Python boundary tests already cover that representation. A separate CI-only commit updates the stale expectation and its name, preserving all three cases. No desktop production behavior was changed. The complete 36-test desktop module and the 89 endpoint tests pass, followed by a fresh passing typecheck/lint gate.MCP presentation fixture CI timeout corrected separately
Run
42810193789passed source tests, static checks, documentation, package/native builds and shard 8, but shard 5 timed out in the existingcontractPresentationchild after 20 seconds; matrix fail-fast cancelled the remaining shards. The fixture and test were unchanged from the PR baseline. Reproduced the timeout locally; a standalone complete execution took 25.90 s. A bounded CPU profile and call trace identified SDKClientResponseCache.outputValidatoreagerly compiling the output schemas of every advertised tool at the first call, including tools this test never calls.The fixture now resolves each tool definition by name from the full advertised catalog and passes it to
client.callTool, retaining SDK schema validation while avoiding unrelated validators. No catalog, schema-equality or handler assertions are removed. Set an explicit 45 s child / 60 s enclosing budget to cover cold imports and complete contract verification on loaded hosts; no retries or skipped tests. The final seven-file run passed all 127 tests, with the presentation check completing in 4.62 s. Timings were from different host loads and are not a controlled performance benchmark. Typecheck/lint passed again. Only test code changed; no production refactor or lifecycle change is needed.Compatibility, safety, and release
No schema migration or dependency change. More low-confidence candidates are intentional; no interprocedural resolution, constant propagation, dynamic string evaluation, runtime reachability or API completeness claim. Real-browser behavior and the full repository suite were not run locally; upstream results and the test-fixture failure are distinguished above. Public CLI/MCP evidence above uses simulated CDP transport. No new networking or execution authority, and no generated/native files are committed.
Author readiness
Human owner: @gongfpp
Before merge
type(scope): outcome.Review follow-up
Head
e9d34a404d802b55d5428bb98674ecb2e189446c.Checked route facts are reserved before optional path/URL literals. An inexact omission count is described as occurrences, not unique literals. Numeric-limit discovery ignores a prose template that only mentions a limit name, and still counts a template that assigns that name.
npm run check:fastpassed. Focused tests passed:src/domain/webBundleEndpointLiterals.test.ts,tests/evaluation/numericLimitCheck.test.ts, andsrc/browser/WebBundleAnalysisWorkerServer.test.ts(32 tests).node scripts/verify/rea-numeric-limits.mjspassed.GitHub created the pull_request_target readiness workflow for this head and did not create the pull_request CI workflow. The previous CI run is still the queued run for
f2797c3ce.The MIPS instruction-context probe remains removed in
.github/workflows/ghidra-bridge-sources.ymlon this branch. Restoring it changes a workflow file, and this credential cannot push workflow updates.mainstill runs the MIPS probe.