Conversation
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis PR extends the consciousness actor with two new capabilities: an Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…(BRO-457) Add AutonomicSignal event variant to the consciousness actor for receiving context-pressure rulings (Compress/Emergency) from the autonomic subsystem. When elevated pressure is detected, set a needs_compaction flag that injects a "[Context pressure: compact]" hint into the next agent cycle's system prompt. Add stall detection to run_agent_cycle: track events_emitted across iterations and break the loop after 3 consecutive ticks with no progress, emitting a consciousness.stall_detected Custom event for observability. Two new integration tests: stall_detection_breaks_stuck_loop and autonomic_signal_sets_compaction_flag. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1920ef8 to
800f598
Compare
Summary
AutonomicSignal { ruling }variant toConsciousnessEventfor receiving context-pressure rulings from the autonomic subsystemhandle_autonomic_signal()that setsneeds_compactionflag on Compress/Emergency rulings, which injects[Context pressure: compact]into the next agent cycle's system promptrun_agent_cycle: tracksevents_emittedacross iterations, breaks after 3 consecutive no-progress ticks, emitsconsciousness.stall_detectedCustom eventstall_counterandneeds_compactionfields toConsciousnessStatestall_detection_breaks_stuck_loopandautonomic_signal_sets_compaction_flagTest plan
cargo check -p arcandpassescargo clippy -p arcandpasses (zero warnings)cargo test -p arcandpasses (70 tests: 51 unit + 10 canonical API + 9 consciousness)cargo test --workspacepasses (full workspace)stall_detection_breaks_stuck_loopverifies actor completes without hangingautonomic_signal_sets_compaction_flagverifies signal processing without mode change🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Tests