Skip to content

feat: add architect for domain-specific review model selection - #110

Merged
lidge-jun merged 5 commits into
lidge-jun:devfrom
thisisjun786:codex/architect-role-proposal
Sep 9, 2026
Merged

feat: add architect for domain-specific review model selection#110
lidge-jun merged 5 commits into
lidge-jun:devfrom
thisisjun786:codex/architect-role-proposal

Conversation

@thisisjun786

@thisisjun786 thisisjun786 commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Problem and behavior

Architecture proposals and adversarial correctness reviews currently share one reviewer configuration. Add an independently configurable architect role while keeping executable plans and final decisions with the main agent.

Formal P follows: main gathers evidence → architect proposes design → main writes the plan → the same architect checks alignment → an independent reviewer audits it. This is agent-followed workflow guidance. Small C0/C1 edits retain the existing fast path.

Changes

  • Add architect to the shared settings store, CLI, MCP/API and settings UI, preserving global/project inheritance and per-role fallback settings.
  • Preserve native agent_type: "architect" through dispatch and provide explicit cxc subagents register architect. Registration preserves existing custom role files; restart Codex to expose a newly registered role.
  • Integrate current dev, including first-fallback support, retaining both CLI registration and fallback controls. Extend MCP fallback coverage to canonical ROLES.
  • Fix a real installed-entrypoint defect: the payload bin/cxc.mjs now routes subagents dispatch to the fallback protocol, matching the repository CLI. Add regression coverage to the existing payload test.

Validation

After integrating dev at 1ca63c86772d9860fd00f0373f2b092bc01557bd, the complete local suite passed: 2,824 passed, 0 failed, 72 skipped (2,896 total). Published counts and drift gate agree.

Component build, GUI build/typecheck, Linux platform smoke and inventory/drift checks passed during integration. The installed CLI correction additionally passed all three payload dispatcher tests.

Fresh native Codex runs against isolated fixtures exercised:

  • A formal-P request selected architect without naming it in the prompt, obtained a proposal, reused that child for an ALIGNED reflection, and obtained PASS from a separate reviewer.
  • An independent code-review request spawned reviewer and found the deliberately seeded duplicate-processing defect.
  • A typo-only request completed without spawning a child.

The tested architect and reviewer both inherited the parent's workspace-write permissions in this host. Architect remains advisory by role instructions, consistent with existing reviewer behavior; these tests do not claim a separately enforced filesystem sandbox. Requested model/effort values and actual child IDs were recorded. No provider failure was injected, so live primary-to-fallback transition is not claimed.

See devlog/_fin/260909_architect_native/020_dev_integration.md and 030_live_scenarios.md for evidence and limitations. The feature and installed-CLI correction were applied to the maintainer's local plugin with source and rollback backups; this PR does not publish a release.

Integration note

This targets dev directly. It overlaps #91 in the shared native-role registrar and executor guidance; reconcile those changes if both proposals are adopted. Architect does not alias itself to explorer/reviewer when its native role is unavailable.

Separate architecture proposals and plan alignment from independent reviewer audits. Add configurable native architect dispatch and explicit safe registration while preserving main-agent judgment and existing settings.
Keep upstream Added and Fixed entries alongside architect Changed notes. Remove identical duplicate badge conflict blocks inherited in the three upstream READMEs.
@thisisjun786
thisisjun786 marked this pull request as ready for review September 9, 2026 04:50
Preserve architect consultation and per-role fallback; route installed dispatch
to the protocol and record native scenario verification.
@lidge-jun
lidge-jun merged commit 369ed0e into lidge-jun:dev Sep 9, 2026
11 checks passed
lidge-jun added a commit to thisisjun786/codexclaw that referenced this pull request Sep 9, 2026
…le-registration

Keep lidge-jun#110's shared registrar (registerRole) and architect mapping; keep lidge-jun#91's
executor resolution: executor spawns use the registered native executor type
when $CODEX_HOME/agents/executor.toml exists, otherwise the built-in worker.
Tests from both sides retained; dist rebuilt; badges regenerated.
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.

2 participants