Repository navigation
release: 2.0.0-beta.76 — protected Codex 0.165.0 - #286
Merged
Merged
Conversation
The protected updater stopped at rust-v0.165.0: 174 guard-sensitive upstream paths needed semantic review, and the carried patch conflicted in Cargo.lock and core/src/hook_runtime.rs. Port the reviewed protection patch to 0.165.0 (source 360319d8, patch 128293eb). Protection hunks are unchanged apart from release stamps. 0.165 builds PreCompact hooks together with executor environment requirements hooks. Those are discovered as System hooks at <environment:ID>/requirements.toml: they may stop compaction but can never satisfy the required session-flags identity. Pins, the migration registry and retained Docker contracts were rotated with the updater's own replacement_files. The 0.164.0 contract stays available for saved sessions and rollback. Review: compaction callers, live-auto approval paths, execution and new entrypoints, recorded in scripts/codex-protected/reviews/0.165.0.json. Two pre-existing gaps that DOXA cannot reach are noted there for later hardening. Validation: installer build from the official tag with the exact patch, 8 core and 1 hook guard tests, automatic-compaction refusal proofs in the lowered and default windows (9 denial modes and an allow control), code-mode helper proof and its missing-helper control, doxa-engines, codex_legacy_protection, codex_review_source, router_compaction, the daemon process suite, and the updater/installer Python suites. The stale fixture toolchain in test_verified_patch_upgrade_keeps_the_previous_provider_immutable now follows the installer's legacy toolchain map. Compiled gates ran locally with 8 build jobs instead of the CI runner's 1-job, 8 GiB scope. Fixes #284. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Ports DOXA's protected Codex provider from 0.164.0 to official
rust-v0.165.0. The automatic updater had refused this release: 174 guard-sensitive upstream paths needed semantic review, and the carried patch no longer applied. Fixes #284.Identity
360319d8dee62d87e2d59fc0c21805d79519cfed(tagrust-v0.165.0), patch128293eb2e10aebdff916ab1d8fbce30fa10eba2dfac01cc501f9c1591034484, providercodex-0.165.0-precompact-v1, contract unchanged.c6321a9b…covers 685 changed paths, 174 of them guard-sensitive. Build inputs are unchanged: Rust 1.99.1 and the V8 152.2.0 manifests are byte-identical to 0.164.0.Port
Cargo.lockversions and the initialize user-agent). The diff of+/-lines against the reviewed 0.164.0 patch shows only a 3-line comment.run_pre_compact_hooks. 0.165 builds PreCompact hooks together with executor environment requirements hooks, discovered asHookSource::Systemat<environment:ID>/requirements.toml. They can stop compaction but can never satisfy the requiredSessionFlags/<session-flags>/config.tomlidentity, andallow_compactionlets extra hooks only deny.pin.jsonandretained.jsonwere generated by the updater's ownreplacement_files. 0.164.0 stays a retained contract for saved Docker sessions and rollback.LEGACY_BUILD_TOOLCHAINS. It hard-coded Rust 1.95.0, which only held while 0.163.0 was the previous provider.Semantic review (
scripts/codex-protected/reviews/0.165.0.json)write_stdin,apply_patch, network, MCP, PermissionRequest-hook, Guardian andrequest_permissionspaths. Grants are still finalized under theactive_turnlock.EnvironmentConfighas noDeserialize, and there is no productionenvironment_readycaller). No new model tools. Native agents stay disabled.features.context_managementre-enabling token budget (resets stay gated).Compiled verification (local, installer code paths, 8 build jobs instead of CI's 1-job/8 GiB scope)
git diff HEAD --binarymatched the reviewed patch byte-for-byte.20b63863…, code-mode host47453bd4…, toolchain 1.99.1, 0 paid requests.codex-coretests (doxa_auto_×6, async refusal, infrastructure failures) and 1codex-hookstest, all passing.verify_automatic.py, lowered and default windows: missing, carrier-missing, timeout, invalid, empty, plain, stopped, async and duplicate all give 0 history replacements and an interrupted turn. Explicit allow gives 1 replacement and a completed turn.verify_code_mode.py: the helper proof passed, and the missing-helper negative control refused.Tests on this branch (rebased on beta.75 / LORE 0.62.26)
doxa-engines,codex_legacy_protection,codex_review_source,router_compaction, the daemon process and bin suites: 343 passed, 0 failed.🤖 Generated with Claude Code