Skip to content

refactor(edition): Rust 2024 migration + agent-teams-rs integration#65

Merged
RyderFreeman4Logos merged 9 commits intomainfrom
refactor/agent-teams-integration
Feb 13, 2026
Merged

refactor(edition): Rust 2024 migration + agent-teams-rs integration#65
RyderFreeman4Logos merged 9 commits intomainfrom
refactor/agent-teams-integration

Conversation

@RyderFreeman4Logos
Copy link
Owner

Summary

  • Migrate all crates from Rust 2021 → 2024 edition (rust-version 1.80 → 1.85)
  • Integrate agent-teams-rs as workspace dependency for backend traits and consensus
  • Fix 3 P0 bugs: UTF-8 truncation panic, session resume provider ID mismatch, csa todo diff empty default
  • Add DAG dependency graph (csa todo dag) with Mermaid/terminal/DOT output
  • Add multi-reviewer consensus to csa review (--reviewers N --consensus <strategy>)

Changes (7 commits, 44 files, +3276/-469)

  1. chore(edition): Migrate all crates to Rust 2024 — gen keyword reservation, ref/ref mut patterns, map_oris_none_or, unsafe extern blocks
  2. fix(session): Char-boundary-safe truncation for session descriptions — prevents panic on multi-byte UTF-8
  3. fix(session): Resolve provider session ID internally from state.toml on resume — CSA meta session IDs are now the only user-facing identifier
  4. fix(todo): Default csa todo diff shows last save changes instead of empty working tree
  5. feat(executor): New ExecutorAgentBackend implementing AgentBackend/AgentSession traits from agent-teams-rs; consensus re-exports in csa-core
  6. feat(todo): DAG dependency graph with BFS cycle detection, Kahn's topological sort, Mermaid/terminal/DOT visualization
  7. feat(consensus): Multi-reviewer orchestration with round-robin tool selection, verdict parsing, and configurable consensus strategies (majority/unanimous/weighted)

Test plan

  • just pre-commit passes on all commits
  • cargo clippy -- -D warnings clean
  • cargo test passes across all crates
  • @codex review

🤖 Generated with Claude Code

RyderFreeman4Logos and others added 7 commits February 12, 2026 23:14
[MOTIVATION]
Upgrade to Rust 2024 edition to enable direct dependency on agent-teams-rs
crates which require edition 2024 and Rust 1.85+.

[IMPLEMENTATION DETAILS]
- Updated all Cargo.toml files to edition 2024
- Set rust-version to 1.85
- Fixed any edition 2024 breaking changes

Co-Authored-By: Claude <noreply@anthropic.com>
[MOTIVATION]
Chinese/multi-byte UTF-8 descriptions cause panic when truncated at
non-char-boundary byte offsets during session listing.

[IMPLEMENTATION DETAILS]
- Use char-boundary-safe truncation for session descriptions
- Add test for multi-byte UTF-8 truncation edge cases

Co-Authored-By: Claude <noreply@anthropic.com>
…e on resume

[MOTIVATION]
Users should only interact with CSA meta session IDs. Provider session IDs
(e.g., Codex UUIDs) are internal implementation details that should not be
exposed to users.

[IMPLEMENTATION DETAILS]
- Ensure csa debate outputs CSA meta session ID (not provider ID)
- Session resume resolves provider ID internally from state.toml
- Add tests for session ID resolution

Co-Authored-By: Claude <noreply@anthropic.com>
…ing tree

[MOTIVATION]
After , running  showed "No changes" because
it compared working tree vs last commit. Users expect to see what changed
in the most recent save.

[IMPLEMENTATION DETAILS]
- When no uncommitted changes exist, default to comparing last two saves
- Preserve current behavior when uncommitted changes are present
- Add tests for post-save default diff behavior

Co-Authored-By: Claude <noreply@anthropic.com>
[MOTIVATION]
Directly depend on agent-teams-rs to leverage its AgentBackend/AgentSession
trait abstractions and pure-function consensus module.

[IMPLEMENTATION DETAILS]
- Add agent-teams-rs as path dependency
- Create adapter bridging CSA executor to AgentBackend trait
- Re-export consensus types for use in csa review
- Additive integration — no existing behavior changes

Co-Authored-By: Claude <noreply@anthropic.com>
[MOTIVATION]
Visualize task dependencies in TODO plans to understand execution order,
identify critical paths, and detect circular dependencies.

[IMPLEMENTATION DETAILS]
- Add DependencyGraph with BFS cycle detection and topological sort
- Parse dependency annotations from TODO markdown
- Add  subcommand with mermaid/terminal/dot output
- Add comprehensive tests for graph operations

Co-Authored-By: Claude <noreply@anthropic.com>
…r aggregation

[MOTIVATION]
Enable running multiple reviewers with consensus-based verdict aggregation
to improve review reliability through cognitive diversity.

[IMPLEMENTATION DETAILS]
- Add --reviewers N and --consensus flags to csa review
- Parallel multi-reviewer execution with round-robin tool selection
- Consensus resolution via agent-teams-rs (majority/weighted/unanimous)
- Single reviewer mode unchanged for backward compatibility

Co-Authored-By: Claude <noreply@anthropic.com>
@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@RyderFreeman4Logos RyderFreeman4Logos merged commit e3077b2 into main Feb 13, 2026
0 of 5 checks passed
@RyderFreeman4Logos RyderFreeman4Logos deleted the refactor/agent-teams-integration branch February 13, 2026 08:14
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