docs(ax): add codex conventions

Clarify reload behaviour for immutable splitter wiring.

Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
Virgil 2026-04-05 01:12:06 +00:00
parent 3cd0909d74
commit 2a49caca03
2 changed files with 16 additions and 0 deletions

14
CODEX.md Normal file
View file

@ -0,0 +1,14 @@
# CODEX.md
This repository uses `CLAUDE.md` as the detailed source of truth for working conventions.
This file exists so agent workflows that expect `CODEX.md` can resolve the repo rules directly.
## Core Conventions
- Read `docs/RFC.md` before changing behaviour.
- Preserve existing user changes in the worktree.
- Prefer `rg` for search and `apply_patch` for edits.
- Keep names predictable and comments example-driven.
- Run `go test ./...` and `go test -race ./...` before committing when practical.
- Commit with a conventional message and include the required co-author line when requested by repo policy.

View file

@ -341,6 +341,8 @@ func (p *Proxy) Reload(config *Config) {
p.config = config
} else {
preservedBind := append([]BindAddr(nil), p.config.Bind...)
// Splitter wiring is established at start-up, so reload only swaps the
// knobs that live subsystems can absorb without reconnecting listeners.
preservedMode := p.config.Mode
preservedConfigPath := p.config.configPath
*p.config = *config