Skip to content

refactor(acp): sever nori-acp → codex-core (slice E)#526

Open
CSRessel wants to merge 2 commits into
refactor/protocol-import-detourfrom
refactor/sever-acp-core
Open

refactor(acp): sever nori-acp → codex-core (slice E)#526
CSRessel wants to merge 2 commits into
refactor/protocol-import-detourfrom
refactor/sever-acp-core

Conversation

@CSRessel

@CSRessel CSRessel commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

Slice E of docs/specs/crate-layering.md §6 (stacked on #524). nori-acp no longer depends on codex-corecargo tree -p nori-acp -i codex-core finds no path.

Moves (git renames, harness-domain code into the harness crate):

  • user_notification, custom_prompts, parse_command/ + shell/bash/powershell, compact constants (+ templates/compact/), and create_patch_with_context (split out of core's util.rs into acp/src/patch.rs, with its test) → nori-acp
  • McpServerConfig/McpServerTransportConfigcodex_protocol::config_types (their consumers span acp/tui/core; protocol is the neutral home). Core keeps an intra-crate re-export shim until slice F.
  • Deleted default_prompts_dir (zero callers; its CODEX_HOME semantics don't map post-move)
  • tui/cli reach the moved helpers via nori_acp::; core_test_support now uses nori_acp::shell (test-only crate reaching up — no production-layer inversion)
  • Dep lines for notify-rust/tree-sitter/tree-sitter-bash/shlex/regex rehomed with their code (existing workspace deps, nothing new)

Includes a noridocs refresh (core/acp/protocol/tui/root/execpolicy/login docs.md) documenting the new boundaries.

Validation

  • Full cargo test green except one cloud_mode e2e flake under full-parallel load — 10/10 green in isolation, and the dedicated e2e step (AGENTS.md protocol) reports 23 suites ok
  • Close-the-loop TUI drive (elizacp): prompt → input → prompt
  • just fmt / just fix -p nori-acp clean

CSRessel and others added 2 commits July 3, 2026 21:18
Move the harness-domain helpers nori-acp consumed from core into nori-acp
itself: user_notification, custom_prompts (dead default_prompts_dir
dropped), parse_command + shell/bash/powershell, compact constants (+
templates), and create_patch_with_context (new patch.rs, out of util.rs).
Hoist McpServerConfig/McpServerTransportConfig into
codex_protocol::config_types; core keeps an intra-crate re-export shim.
nori-acp's Cargo.toml no longer lists codex-core; cargo tree confirms the
edge is gone. tui/cli reach the moved helpers via nori_acp::.

Slice E of docs/specs/crate-layering.md §6.
…nment)

🤖 Generated with [Nori](https://noriagentic.com)

Co-Authored-By: Nori <contact@tilework.tech>
@cursor

cursor Bot commented Jul 4, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant