fix(engine): Deep Review v20 wave 3 — resume revision guard, replay User-Agent and worker pin - #159
Merged
Merged
Conversation
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (9)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Result
Closes Deep Review v20 engine findings P2-5 and P2-6 and advances the reviewed worker-consumer pin (P2-3). Three commits in item order:
9851a9ef— resume refuses a cached repository clone whose HEAD moved off the recorded revision. The check is read-only (git rev-parse HEAD);_assert_checkout_revision()and itscheckout --detachare not called on this path and the altered clone is left untouched.a3439087— replay requests default toLyraShield/<version> (+https://lyrashieldai.com)via thelyrashield-enginepackage-version lookup. A caller-supplied User-Agent wins in any letter case.1667a1a0—.lyrashield-worker-pinmoves from the squash-orphaned68a31904to merged web mainc99cd61dandapps/worker/src/engine/run-json-1-1.test.tsjoinsscripts/worker-contract-tests.txt. Self-contained and independently droppable.Rulings honoured
strix/**; deliberateopenai,litellm,openai-agentsandcryptographypins unchanged; no lockfile regeneration.ENGINE_REVISIONvalues touched.Validation
scripts/verify-controlled-derivative.shon head1667a1a0: footprint digest PASS,uv sync --frozenPASS, ruff PASS, ruff format PASS (378 files), pytest PASS (2504 passed / 4 skipped), mypy PASS (191 files), bandit PASS (advisory only).test_resume_refuses_a_clone_whose_head_movedfailed on baseline withDID NOT RAISE SystemExit;test_replay_default_user_agent_identifies_lyrashieldfailed with['strix']on the wire;test_upstream_brand_default_header_fails_gatefailed because the exact-match allowlist hid the old default.test_resume_state.py,test_replay_scope_admission.pyandtest_customer_branding.py.1667a1a0: ALL GREEN — verify (ruff/pytest 2504/mypy/bandit/footprint + pinned worker contract), dependency audit, sandbox image build. The verify log showsWORKER_PIN: c99cd61dand a cleanverify-worker-contract.shrun against a real web checkout at that SHA.Evidence boundary
verify-worker-contract.shwas verified by CI (above), not re-run locally — the engine environment has no web checkout.deploy-azure.ymlandrelease-tauri.ymlremain pinned to engine81cd6f70; runtime closure for 3.1 and 3.2 requires a separately reviewed web engine-pin change and a production release with live readback.Not touched
strix/**, engine dependency pins and lockfile, sandbox flags, worker container definitions, webENGINE_REVISION, billing, pricing, Myra flags, trial-claim backfill.Report back
68a31904(squash-orphaned as the handoff stated). If web PRs 1–2 merge before this PR and the founder prefers the pin on the post-merge SHA, drop1667a1a0and re-pin.setdefault("User-Agent", "strix")emitted a duplicate header when a caller supplied a lowercaseuser-agentkey; the new default resolves caller keys case-insensitively.