Repository navigation
chore(life): bump aiOS for BRO-422 turn middleware - #450
Conversation
LAGO_ARCHITECTURE.md: reflect completed work (MEMORY.md, prompt cache, memory tools, /search, session resume, E2E tests, embedding provider). Submodule updates: - arcan: BRO-388 (embedding provider), BRO-390 (/search), E2E tests, CI fixes - lago: BRO-382 (Lance embedding column + vector_search) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Entire-Checkpoint: 8bbef783ce6b
BRO-422 Turn Middleware Chain for Agent Loop
WhatDefine a This is the same pattern as HTTP middleware (tower/axum) applied to agent turns — cleanly separates cross-cutting concerns from core agent logic. WhyArcan's 8-phase tick lifecycle has structure, but cross-cutting concerns (guardrails, compression, loop detection, memory injection) are either hardwired into the loop or missing entirely. A middleware chain makes the pipeline extensible without touching the core loop. This is the single most important architectural change — it enables all Phase B and C features to plug in cleanly. ImplementationTarget crate: #[async_trait]
pub trait TurnMiddleware: Send + Sync {
async fn process(
&self,
ctx: &mut TurnContext,
next: &dyn TurnMiddleware,
) -> Result<TurnResponse>;
}
Acceptance Criteria
SourceDeerFlow — 12-middleware chain architecture (§1 in research doc) |
ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Free Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThree subproject/submodule pointers are updated to newer commits: aiOS, arcan, and lago each receive commit hash updates without visible code or logic changes in the diff. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. Comment |
chore(life): bump aiOS for BRO-422 turn middleware
Summary
aiOSsubmodule pointer to include the BRO-422 turn middleware chain implementationbroomva/aiOS#4Validation
cargo fmt --allcargo clippy --workspace -- -D warningscargo test --workspaceDepends on: broomva/aiOS#4
Linear: BRO-422
Summary by CodeRabbit