Repository navigation
test(lsp): bound lifecycle child Tokio worker pools (#8283) - #8291
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 47 minutes. View limit details
Comment |
EffortlessSteven
left a comment
There was a problem hiding this comment.
No actionable source or oracle findings. This COMMENT records the independent exact-head LLM review and the delivery owner's inspection of its evidence.
reviewed_head_sha: 99c4226a802d800cd3af41a8ad56a5f5c4f45519
integration_basis: authored/tested a1ea790; current main 60a22c66851e8f5f6d932361c8e6cd758b9efd48. Observed GitHub merge e4873e761faf23c71007b3e71457782580381306, ordered parents main60 + head99, tree 629cc28c37b4ee7b2c3251bc4eb58da19d448fb3; the local clean composition matches that tree. This is a subject observation, not execution evidence.
claim_boundary: lifecycle-test children receive two Tokio scheduler workers. Existing protocol assertions and multi-thread runtime remain intact; no production scheduler default or total-native-thread bound changes.
changed_surfaces_and_semantic_owners_inspected: complete two-file diff; all LspSession consumers including corpus-currentness sessions; CLI dispatch, runtime builder, Tokio 1.53.2 environment selection, transport's four-request concurrency, analysis-thread ownership, cleanup, process allowance, changelog and hosted test commands. Removing precisely the three added launcher lines recovers base bytes. Main's explain-selector change bypasses the LSP snapshot-identity route and does not affect this claim. #3742 fixture-copy ownership is separate.
blocking_findings: none in source/oracle.
non_blocking_suggestions: none.
refuted_or_stale_findings: no assertion or subject was removed; sampled PID lists are not treated as launch inventories.
proof_and_ci_observed: identical 64-test inventories and named passing subjects; 103 actual LSP executions per full trace; process creations1105→1105; thread creations2889→2695. The three ambient16 protocol/load/shutdown controls retain the same subjects and three launches, while thread creations62→20; the retained original harness is an exact overlay-removal witness rejected by the scoped guard. Shared real CLI hash and both harness hashes were independently verified. Candidate build, focused strict Clippy, process policy and fragment validation exited0. Root read back the published head and empty review/thread/comment inventories; current Draft advisory work is separate from required qualification.
proof_or_review_missing: aggregate local ci-policy hit its300s outer budget after cold checker compilation and passing through source-role authority; it is incomplete. Published-head required hosted qualification has not yet run. No full workspace local, whole-precommit or candidate check-fast pass is claimed.
affected_currentness_dimensions: implementation, test stimulus/oracle and artifacts remain unchanged at head99. New main interaction and final focused proof were inspected without a behind-only rebase.
residual_assumptions_and_non_claims: serial Linux libtest differs from hosted nextest concurrency. Counts include fixture descendants; time includes strace overhead; maximum descendant RSS rose slightly. No process reduction, general speed/memory saving, simultaneous-worker execution proof or native Windows measurement is claimed.
disposition: REVIEW_INCOMPLETE for merge, with source/focused proof reasonably expected green for one hosted qualification. Inspect actual checkout/artifacts/results and refresh published-head review before protected squash integration. Shell gh reads previously denied remain held; this independent reviewer performed no subsequent remote action.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
There was a problem hiding this comment.
Decision
- Needs verification checks before upstream.
Verification questions
- Confirm hosted required proof (full test matrix on published merge subject) is pending; author self-declares REVIEW_INCOMPLETE. Local 64/64 + controls are strong but not the full required-success signal.
- Confirm diff is six lines across two files; even strong opposition finds no actionable defect at the source level. Closest substantive risks: (1) Windows portability of TOKIO_WORKER_THREADS (Tokio honors it on Windows too; not a defect, just confirm), (2) future tests using --nocapture or threading overrides could be surprised by env inheritance, (3) overclaim risk: PR proof is one-host one-Rust-version; counts may differ on Windows/macOS but child worker count of 2 should hold wherever Tokio honors the env.
Refuted
- No resizable buffer or active-view surface exists in ripr; lane scope is N/A for this Rust test diff.
- Setting TOKIO_WORKER_THREADS=2 on a child LSP process could cause stale SharedArrayBuffer length views across spawn boundaries; refuted because: ripr is pure Rust with no wasm/js/SharedArrayBuffer surface; the env var only caps Tokio scheduler workers and does not affect any buffer/view lifecycle; diff is byte-identical to independently reviewed head.
- Architecture should extract a launch_with_tokio_workers helper to centralize the new env var across all child Command builders in the test file; refuted because: Only one LspSession::spawn site exists in lsp_lifecycle.rs and the diff targets it directly; introducing a helper for a single inline directive would expand scope, add an abstraction layer with one consumer, and violate smallest-complete-fix posture. The current inline form preserves call-site readability and matches the file's existing .env/.args chaining style.
- TOKIO_WORKER_THREADS=2 in the test child could be exploited to manipulate a real production LSP server it connects to.; refuted because: Binary is CARGO_BIN_EXE_ripr invoked with stdio; there is no outbound network or third-party LSP server target in this test file. The env var only affects the test-spawned child's own Tokio runtime; production code paths are not invoked.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
EffortlessSteven
left a comment
There was a problem hiding this comment.
This COMMENT records the final independent exact-head LLM review, verified and adopted by the delivery owner. It supersedes the earlier hosted-proof wait for the same head. Independent record SHA256: 4c4e9cb76e2f27b78c064dc6644e38c4524fae84eb299e768646099fb03307a7.
No actionable findings emitted. Disposition: REVIEW_READY.
reviewed_head_sha: 99c4226a802d800cd3af41a8ad56a5f5c4f45519 — PR #8291, issue #8283. Final native inventory observed 2026-10-17 02:44:49 UTC confirms this unchanged published head, open/Ready, mergeable/clean.
integration_basis: authored base a1ea790e923ae6036efdd9457ffc16ea2ad93348. Hosted run 38990425326, attempt 1, actually checked out and used reusable workflow commit e4873e761faf23c71007b3e71457782580381306, ordered parents 60a22c66851e8f5f6d932361c8e6cd758b9efd48 + reviewed head, tree 629cc28c37b4ee7b2c3251bc4eb58da19d448fb3. PR-evidence inputs BASE_SHA=60a22c6 and HEAD_SHA=99c4226 are distinct from that actual checkout. Current main is faf7ca01b0a3363f0d4ca676b5f33eaf6433c5ca; the PR response's base/merge snapshot remains the older qualified basis. Current local composition 730214ec4e46fa9b1325ef6f2dd21bb9fa48d74d was inspected, not executed, and must not be described as the hosted-tested tree.
claim_boundary: lifecycle-test LSP children receive two Tokio scheduler workers while retaining the production multi-thread runtime and every existing assertion. No production scheduler default, process-count reduction, total-native-thread ceiling, general speed/RSS saving or native Windows measurement is claimed.
changed_surfaces_and_semantic_owners_inspected: complete two-file diff; all launcher consumers including corpus-currentness sessions; actual CLI dispatch, production runtime, Tokio environment selection, four-request transport concurrency, analysis-thread ownership and cleanup. Exact removal of the three added launcher lines reproduces base harness bytes. Prior same-CLI paired proof and ambient-16 removal control remain valid. Current-main instructions, launcher/corpus/runtime/transport, workflows, Cargo and process allowance blobs are unchanged. The five later main commits were inspected for interaction: #3742 gate fixture ownership is confined to cfg(test) library/CLI gate helpers and is separate from lifecycle CompatFixtureRoot/fixture_git ownership; mixed-quote rename handling and side-flip assertion gates add no worker/runtime coupling; npm recovery and draft-file deletion do not touch this claim. Current composition differs from current main only by this candidate's same two files. No concrete conflict or changed prerequisite warrants a behind-only rebase or duplicate qualification.
proof_and_ci_observed: verified decoded native job-log SHA256 f117408fa3567d6fb2406f0c64cafe0adf188df297fa0db01753b6f6e109cfcd. Independently parsed 16,545 unique nextest PASS events; native summary selects 109 binaries, reports 16,545 passed and 3 skipped in 1435.919 seconds. All 64 distinct lifecycle subjects match the retained local inventory exactly and passed. PASS events cover 107 binaries; no assertion that every selected binary had subjects is made. Doctests report two passed/one ignored, plus zero repo-policy doctest subjects. Native job steps confirm completed hosted policy, workspace/all-target and all-features checks, strict workspace Clippy, promotion honesty, goldens, fixtures, corpora and PR evidence. The selected GitHub-hosted implementation ran; alternative implementation routes and docs gate were skipped. The native Result log confirms TARGET=github, GITHUB_RESULT=success and DOCS_ONLY=false. Both artifact upload digests match the two run/head-bound metadata entries; ZIP contents were not inspected.
protection_and_late_review_observed: fresh inventory contains all 32 head-bound checks, 16 success/16 skipped, including required Ripr Rust Small Result from app 15368. Classic protection names that context/app. Active default-branch ruleset 18845973 requires thread resolution, has zero minimum approvals and no bypass actors/current-user bypass. Two COMMENT reviews are unchanged; inline comments and review threads are empty. The late bot's hosted-proof question is now satisfied. Its statement that production paths are not invoked is incorrect: the actual CLI and production LSP runtime are exercised; production defaults are unchanged. Windows/future-override concerns identify no current defect. Off-scope buffer speculation is irrelevant. Rejected model-proof intent and provider quota/rate notices are not credited as completed provider review or proof; this independent substantive review supplies the exact-head disposition.
proof_or_review_missing_and_residuals: local aggregate ci-policy remains incomplete at its 300-second outer timeout; hosted policy success supplies a separate merge-proof dimension and does not retroactively turn that local run into a pass. No whole local precommit, candidate check-fast or local full-workspace pass is claimed. Local resource measurements remain single-host, instrumented observations. Latest-main composition has source/currentness inspection rather than a new full execution; no material interaction was found. Artifact ZIP payloads and native Windows lifecycle execution remain uninspected. No remaining blocking finding was established.
continuation: this supersedes the earlier pending-hosted-proof REVIEW_INCOMPLETE for unchanged head99. Proceed through ordinary protected squash integration, retaining exact-head checks and normal protection; no bypass or release/publication authority is implied. Reconcile stale PR-body pending-CI/current-main prose with the observed completed qualification.
reviewer_resource_closeout: all reviewer reads are complete. This reviewer releases every source/worktree, frozen-witness and mutable-build-target consumer and has no running commands or builds. Retain this review and its cited evidence; the delivery owner may reconcile other consumers before recoverable archival. This final pass made no remote access attempt, build, source edit or checkout mutation; only this requested evidence record was written. Previously denied shell gh routes remain held.
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_READY remains current for unchanged head 99c4226a802d800cd3af41a8ad56a5f5c4f45519. This is an independent-review currentness addendum to the full final review.
The final merge gate caught new main 577a95ab26fd1811eccfd19887eb87af0ba937da (#8294). The independent reviewer and delivery owner inspected its complete nine-file delta: JSON rendering for unusable roots in agent verify-execute, three CLI smoke cases and related docs/spec/trace/changelog. Lifecycle/LSP paths do not invoke that route. Launcher, runtime, dispatch, instructions, dependencies and workflows are unchanged; no material interaction or changed prerequisite was found.
The clean current composition is tree 04e27d74cccc986337346dd9962e5b7ed6009a26, inspected not executed. Hosted qualification remains bound to tested tree 629cc28c37b4ee7b2c3251bc4eb58da19d448fb3. No behind-only rebase or repeat build was performed.
Fresh native inventory still has the same head, required Result success, all34 checks terminal (16success/18skipped), no inline findings/threads and unchanged bodies for the same three provider comments. Two added skipped droid records came with metadata updates. The temporary guard used an incorrect two-comment assumption; comparison of actual IDs and full bodies established no new finding. Source/currentness inspection restores the new-main guard; no failed transition was attempted.
Previously denied policy/read routes remain held. Existing ruleset18845973 receipt was saved at2026-10-17T02:44:51.042337Z from GET /repos/EffortlessMetrics/ripr-swarm/rulesets/18845973. This active default-branch ruleset has no bypass and requires resolved threads. The local save timestamp is not a server observation timestamp. Existing minimal branch metadata names successful Result/app15368; unreadable classic-policy detail remains a gap, not a claim of the complete policy union. No new policy request or settings change was made for this addendum; ordinary GitHub merge enforcement remains binding.
No blocking finding. All independent reviewer consumers are released. The reviewer made no remote access, build or source mutation in this addendum.
Summary
Lifecycle tests start real LSP children whose Tokio pools inherit host or ambient sizing. Set a child-local two-worker scheduler budget, retaining the multi-thread runtime and every existing assertion.
Closes #8283. Coordination: #4987; resource accounting: #4841. This test-only claim is distinct from landed #8235/#8249 and the separately owned #3742 corpus-copy/helper work. No production, dependency, workflow, security/permission or release change.
Candidate and scope
codex/lsp-lifecycle-worker-budget; head:99c4226a802d800cd3af41a8ad56a5f5c4f45519; tree:fef8b2b001acf30dd28baccae6840530ee608788.a1ea790e923ae6036efdd9457ffc16ea2ad93348. Hosted qualification used main60a22c66851e8f5f6d932361c8e6cd758b9efd48plus head 99. Integration parent577a95ab26fd1811eccfd19887eb87af0ba937daadded six independently inspected commits (fix(side_flip): share fail-closed test gates between rules 3 and 3b #8281, fix(npm): give missing native executables exact recovery advice #8243, fix(diff): disclose mixed-quote renames and prevent adjacent-file scope masking (#7795) #8285, test(gate): clean owned hermetic corpus copies (#3742) #8287, chore: remove stray pr-tmp PR body drafts #8312 and fix(agent): keep verify-execute root failures machine-readable #8294). Harness, LSP runtime/transport, workflows, Cargo and process allowance are unchanged; test(ripr): de-flake the parallel-build test family — fixture git hardening, wall-clock asserts, fixed repo paths #3742's landed fixture cleanup is separate cfg(test) code. The later fix(agent): keep verify-execute root failures machine-readable #8294 affects only agent verify-execute unusable-root output, separate from lifecycle/LSP routes. No material interaction or source prerequisite was found. No behind-only rebase.changelog.d/8283-lsp-lifecycle-worker-budget.mdfollows the canonical Internal / CI marker, dash bullet and trailing issue reference. Standalone fragment and process-policy checks passed; existing three-site process allowance is unchanged. Rollback is a revert.Measured proof
Both retained harnesses executed against the same absolute real CLI and unchanged bytes, with Rust 1.95.0, Linux/default features, serial libtest and identical strace/proc instrumentation.
The three controls retain normal requests, the 96-request/cancel burst and shutdown under 32-request load. A scoped thread-creation guard of 30 rejects the original/overlay-removal witness and accepts the candidate; the 42-thread difference equals 14 fewer workers across three sessions. All semantic assertions pass in both versions.
Sampled tree RSS sums were 100,420→63,588 KiB for the full pair and 45,892→45,220 KiB for the control. These transient samples differ from maximum per-descendant RSS. Counts include fixture descendants, and sampled server tasks are neither scheduler counts nor inventories. Single host/instrumented samples establish no general speed or memory improvement, total-native-thread ceiling, process reduction, Windows measurement or hosted-nextest concurrency result.
Retained hashes:
cb1503237ad87ee86bb3fc31e92750cb8814f361a763e61c3f47ec31287498e5.59fd9aef0f6bcd81eeb79ec04807c8fbd5bc70f83db1c7a8ef3939bd0ee36b6e.0845c46f2467f4dd8cc786318194f7aa2669b2cd99b98a3fac3f9090c5b0dd09.c2e3b313c0903d4466246e5d92a6b6ac3975999bbc5093fb7ff17edb36c53174.Validation and limits
Base narrow check, doctor and check-fast passed; its empty selector was independently verified against the exact base. Candidate build, both 64-test runs, both three-control runs, process policy, changelog validation, diff whitespace and focused strict Clippy passed.
ci-policyreached its 300-second outer budget after cold policy-checker compilation and passing through source-role authority. It is incomplete, with no reported source failure. No whole precommit, candidate check-fast or full local workspace matrix pass is claimed. The unchanged base-built xtask owner was reused honestly; source owner blobs match the candidate. The separate hosted required qualification passed; it does not turn the local timeout into a pass.Run 38990425326 attempt 1, GitHub-hosted Rust job 117271453078, actually checked out
e4873e761faf23c71007b3e71457782580381306(parents main 60 + head 99; tree629cc28c37b4ee7b2c3251bc4eb58da19d448fb3). Nativecargo nextest run --workspace --profile cireports 16,545 passed, three skipped, 109 selected binaries in 1435.919 seconds. All 64 lifecycle subjects match the retained local inventory exactly. Native doctests, policy preflight, workspace checks, strict Clippy, goldens, fixtures, corpora, PR evidence and dry-run steps passed. PR-evidence producer inputs bind base60/head 99 separately from the checkout identity.The required Result job 117282160788 passed with selected target github and routing reason runner_api_failed; unused implementation routes and the docs-only gate were skipped. Artifact metadata and native upload digests agree for nextest/run-context (
793e500d177379f21228ec8b6f9d5c2ca80b89a9da134a2758090acaf12e012c) and wildcard calibration (722bc5a406a003d00afe784efe6f32b790009495b5fba63e93db67e1747ebbb7). Archive/XML contents were not read. Total run request-to-result was about 51m11s; no CI-duration improvement is claimed. The final pre-merge inventory contained 36 terminal success/skipped head 99 checks, including the Windows advisory subset; that subset is not a Windows pool measurement.Admission preceded builds: 16 GiB cgroup RAM, four CPU quota, one Cargo job, debug0/nonincremental target, build virtual-memory limit 8 GiB; peak additional storage budget 14 GiB with 6 GiB reserve. Post-closeout free space is30,896,418,816 bytes (about 28.8 GiB). Timeout cleanup found no live observed descendant; one zero-RSS zombie awaits platform-init reaping. Paired runtime children terminated normally. An earlier floor receipt's inherited cumulative rusage was rejected before measurements; paired RSS uses direct wait4.
Evidence, exact Cargo artifact records, raw logs/traces, native hosted logs/metadata and comparison receipt are retained under
/workspace/child-amplification-evidence. Inactive lane worktree, target, task-local tools and expanded witnesses were released after full restoration verification of 40,607 entries (bytes, type, mode, uid/gid, mtime and symlink targets). Recovery archive/workspace/child-amplification-closeout/recovery.tar.gzis1,098,726,393 bytes; SHA256f94f178f54453eb6169bce9de4bbad88958530f2903c46be8b93482f2cf0647a. Manifest, verification/release receipts and RESTORE.md are beside it. Default extraction initially exposed one umask-masked mode; a full --same-permissions extraction passed before any original removal. Net free-space gain since admission is2,625,048,576 bytes. The pre-existing common Git store/primary checkout and exact source branch remain; verification staging is released.Continuation
99c4226a802d800cd3af41a8ad56a5f5c4f45519.e4873e761faf23c71007b3e71457782580381306, ordered parents main 60 + head 99, tree629cc28c37b4ee7b2c3251bc4eb58da19d448fb3. Current-main composition main 577+head 99 is clean with tree04e27d74cccc986337346dd9962e5b7ed6009a26; it is independently inspected and has not been executed.d9f671af8106433448fd03fe8597c0bbb1be953bon 2026-10-17T02:49:54Z, normal expected-head guarded squash. Native API and Git verify its sole parent main 577, exact reviewed composition tree04e27d74cccc986337346dd9962e5b7ed6009a26, and main ancestry. test(lsp): bound lifecycle child Tokio worker amplification #8283 is closed/completed. This inspected landed tree is distinct from the older hosted-tested tree; no execution of the later combined tree is claimed. Resource closeout above is verified; no further action remains for this slice. Broader coordination/release work remains separate. No package/release publication or deployment is included.