mirror of
https://github.com/hanzoai/dev.git
synced 2026-10-25 03:32:32 +00:00
2.2 KiB
2.2 KiB
Next-Step Plan (Post Workstreams B → C)
Current State
code-rs/owns every forked crate; no crate depends on../codex-rs(guarded byscripts/check-codex-path-deps.sh).codex-rs/is synced toopenai/codex@c3951e50and treated as a pure upstream mirror.- Diff tooling (
scripts/upstream-merge/diff-crates.sh,highlight-critical-changes) highlights where our fork diverges.
Workstream C Priorities
-
Triage Critical Diffs
- Review
.github/auto/upstream-diffs/critical-changes/*.md. - For each crate (core, app-server, apply-patch, etc.), decide whether to adopt upstream wholesale, selectively port fixes, or keep the forked version.
- Review
-
Identify Re-export Candidates
- Crates now identical between
codex-rsandcode-rs(e.g., git-apply, linux-sandbox, responses-api-proxy) can potentially be removed fromcode-rsin favor of upstream to reduce maintenance. - Document which crates can be dropped vs. which require fork-only patches.
- Crates now identical between
-
Plan Merge Windows
- Use the updated
prompts/MERGE.mdplaybook for each upstream intake. - Prefer small, focused merges (e.g., TUI-only, CLI-only) followed by testing and guard verification.
- Use the updated
-
Port Upstream Improvements
- Where we lag (e.g., new config loader, execpolicy2, feedback view), cherry-pick or manually port upstream commits into
code-rsso future merges shrink. - Keep fork-specific UX (themes, browser) while importing upstream bug fixes.
- Where we lag (e.g., new config loader, execpolicy2, feedback view), cherry-pick or manually port upstream commits into
-
Clean Up Unused Crates
- Large upstream-only crates (async-utils, app-server-test-client, windows-sandbox-rs, etc.) exist solely under
codex-rs. Confirm they’re unnecessary for the fork and, if so, exclude them from future workstreams.
- Large upstream-only crates (async-utils, app-server-test-client, windows-sandbox-rs, etc.) exist solely under
-
Automation
scripts/check-codex-path-deps.shnow runs automatically at the start of./build-fast.sh, so both local builds and GH workflows that invoke it enforce the guard.- Continue regenerating diff/critical reports after every upstream merge to maintain visibility.
Success Criteria
- Regular merges from
openai/codex:mainproceed with minimal conflict. - Critical upstream fixes/features are either upstreamed back or intentionally tracked in
code-rsdiffs. codex-rs/remains a byte-for-byte mirror at every merge point.