Repository navigation
fix(codex): preserve TOML values and routing marker ownership - #6308
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: lidge-jun/opencodex/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughCodex TOML injection and restoration now use structural source-line parsing for ownership checks and assignment edits. The changes preserve BOMs, line endings, multiline content, and user-owned values across config transformations. New integration tests cover preservation, rollback, and fallback restoration. ChangesConfiguration preservation
Priority: ⬇️ Low Estimated code review effort: 4 (Complex) | ~45 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to The added preservation tests are registered consistently and were exercised in sharded CI. The local changed-mode timeout did not identify a failing test, so no concrete merge-blocking risk is established. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 5 systems. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 39.53% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 43 functions across 7 files. (2 skipped: 2 unsupported.)
✨ Finishing Touches🧪 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 |
|
✅ Deterministic PR hygiene checks passed. |
|
@coderabbitai full review @codex review Please review head |
✅ Action performedFull review finished. |
리뷰 · 우선순위 68 / 80이 PR은 Codex 예전에는 줄 단위 라인 - 라인 - 검증 · 집중 회귀(8파일 215통과)와 typecheck·structure·docs build는 본문에서 통과로 적혀 있습니다. 로컬 라인 - 동작 변화(의도) · 소유 판정이 부분 문자열에서 “줄 전체 일치”로 좁아졌습니다. 메인테이너의 판단이 필요한 지점 draft를 ready로 올리기 전에 호스트 test 3/4·4/4(및 관련 shard)가 초록인지 보고 머지할지입니다. 로컬 너의 추천 집중 테스트·문서·의도한 소유 경계는 설득력 있습니다. CI 남은 shard가 초록이면 draft만 풀고 머지해도 됩니다. 부호 진수 BigInt throw는 가능하면 이 댓글은 grok-bot이 작성했습니다 |
|
Thanks for the review. I checked the signed-radix concern at head Cross-platform CI is now successful for this exact head: https://github.com/lidge-jun/opencodex/actions/runs/36693484295 . The failed local 900-second run and the limited baseline comparison remain documented rather than treated as passing. I am still checking the requested review results before changing the draft state; no merge or runtime application is requested. |
Resolve test-layout registration conflicts by retaining both configuration-preservation and credits tests. Preserve the five TOML runtime modules unchanged.
|
Maintainer integration into
Thanks @luvs01! |
Summary
# Auto-injected by opencodex (undo: ocx restore)marker. Reinjecting a managed configuration remains byte-idempotent.Verification
Current conflict-resolution checkpoint
55839fb96c6d5eba8e619363975c915235c8fd8d; tree:24dbe2dfeee4984f70a6700e588e6deeaa8d1b3d. Integrated dev592c5cfc043cd5b69e8aea0f12b9a0644cc50612by a fast-forward update of this PR branch to a two-parent integration commit; no target branch or PR was merged.bun test tests/test-layout.test.ts tests/test-layout-tooling.test.tspassed 18 tests, 555 assertions. Typecheck, structure, privacy and file-size checks passed.git diff --cached --check origin/devpassed; unrelated upstream planning documents contain pre-existing EOF whitespace and were not edited.bun test tests/codex-integration/codex-config-preservation.test.tsproduced 75 pass / 2 fail. Both artifact-failure rollback cases fail because the fixture's synthetic failure stage was not reached. Running those same two cases against the unchanged previous headbbf349aee2ba32b59cbe25d70373dcd105968734reproduced both failures in this cloud environment. Their cause remains unclassified; neither this run nor the control is a pass.Previous-head verification record
Publication preparation is based on
devcommit6538001e2fdf54ef657f5057e8c3cbd3249d8e59(2.74.0). The existing affected runtime files, documentation, and provider-table tests are unchanged from the independently reviewed patch base; both test inventories preserve newer upstream additions.Validated and published head:
bbf349aee2ba32b59cbe25d70373dcd105968734; tree9693b6adaaeab33103d6eb1e2233ecb9354b3cf3. The remote Git tree and commit match the locally tested objects exactly. The latest observeddevis2405624f3987293a8fd607a889dcb61e3a376bd7, two commits ahead of the base. Those upstream changes are not incorporated into this branch; the PR is mergeable and its current-head hosted CI completed successfully. The latest readiness check observeddevatcda8ff4e4eb5c48d7af1f5b108e6551fbdc1e5d3, three commits ahead of the base, within the documented recent-dev limit.Previous-head local results:
bun test tests/test-layout.test.ts tests/test-layout-tooling.test.ts: 18 passed, 0 failed.bun run typecheck,bun run privacy:scan,bun run structure:check,bun scripts/file-size-ratchet.ts, andgit diff --check 6538001e2fdf54ef657f5057e8c3cbd3249d8e59 HEAD: passed.bun run lint:gui:if-changed: exited 0 with the official no-GUI-changes skip; GUI lint itself was not run.docs-site,bun install --frozen-lockfileandbun run build: exited 0; build generated 545 HTML pages and completed its search index.bun run test:changed: failed with exit 124 at the unchanged 900-second budget. Incomplete output contains 6,106 passing-test lines and 86 failing-test lines; those are partial log counts, not a final suite summary. Failures include hook/test/request/CLI timeouts and later API assertions. Their individual causes are not all established. This run is retained and is not represented as passing.The exact focused regression command was:
bun test tests/codex-integration/codex-config-preservation.test.ts tests/codex-integration/codex-inject.test.ts tests/codex-integration/codex-injected-marker.test.ts tests/codex-integration/codex-provider-table-retention.test.ts tests/codex-integration/codex-inject-retained-table.test.ts tests/codex-integration/codex-restore-app-rewrite.test.ts tests/codex-integration/codex-web-search-switch.test.ts tests/codex-integration/codex-catalog-restore.test.tsThe full local suite and combined
prepushcommand have not completed. Under the resource exception inAGENTS.md, the focused set above covers the changed ownership, assignment-span and rollback behavior, including read-as-data layout guards. Repeated broad runs are disproportionately expensive on this Windows host: the import-connected run reached its fixed 15-minute limit and the dependency/documentation work also took substantial time. Remaining broad import-connected/full-suite and integration coverage is left to hosted CI; the failed local aggregate remains a failure, not a substitute pass. Previous-head review readiness was based on the focused resource exception and the successful hosted checks below; the failed local aggregate is retained as a failure.The earlier investigation's
bun run test:changedat 2.73.0 hit the unchanged 900-second main budget (exit 124). Its incomplete output included failures; two representative request-timeout cases also failed on the immutable unmodified base. Not every historical failure was classified. That failed run is preserved, and no timeout is disabled or increased. Any focused-validation exception and coverage left to CI will be documented explicitly before review readiness.Checklist
Summary by CodeRabbit
Summary by CodeRabbit
Focused follow-up of two local integration failures
bun test tests/codex-integration/codex-composed-acceptance.test.ts --test-name-pattern "#1802|A-reduced"reproduced two failures at the published head: a requestTimeoutErrorandCLI watchdog: ocx ensure(0 pass, 2 fail, 6 filtered). These exact failure modes were also reproduced in the retained immutable, unmodified 2.73.0 baseline. The composed fixture and the five affected TOML source modules have identical Git blob hashes in that baseline and the 2.74.0 publication base. This is a limited comparison; it is not a new full 2.74.0 baseline run and does not classify the other aggregate failures. No timeout was increased or disabled.The initial CodeRabbit draft-skip status is not counted as a completed code review. The subsequent explicitly requested full review completed for the published head, with no actionable comments and no unresolved inline threads.
Previous-head hosted verification and review readiness
bbf349aee2ba32b59cbe25d70373dcd105968734: all four test shards, aggregateci, gates, storage policy, API usage, docs build, structure, Docker, Windows/Ubuntu keyring and Windows/Ubuntu npm-global smokes passed.nullwithout throwing. The expression permits a sign only on its decimal alternative. No production change was needed for that non-reproduced finding.@codex reviewrequest has no confirmed response and is not counted as a completed GitHub Codex review.Renewed review-readiness checkpoint
55839fb96c6d5eba8e619363975c915235c8fd8d, including all four test shards, aggregate, docs and applicable gates/smokes. Skipped optional jobs are not counted as passing.bbf349a...to this exact head and reported no actionable comments. The original runtime source review remains applicable to the byte-identical five TOML modules. No unresolved inline findings are present.592c5cfc..., and GitHub reports no conflict. Review readiness is restored; human maintainer approval and any merge remain separate.