feat(autonomy): runtime factory logs the autonomy level per session (P3.T3)#404
Conversation
…P3.T3) create_runtime_session() now accepts an optional pre-resolved ResolvedAutonomySettings and logs provider/mode/agent/autonomy at INFO for every session it builds; when no settings are injected the level is resolved from the environment, so the log line appears on every call path (coder, planner, QA) without touching the callers. Tests: 4 new (env-resolved level, default level, injected settings skip re-resolution, claude runtime path); test_agent_runtime.py suite green (245 total). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Signed-off-by: Oleg Miagkov <mrobenner@gmail.com>
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
|
Warning Review limit reached
Next review available in: 41 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 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 |
|



What
Roadmap P3·T3: «Фабрика принимает
autonomy_settingsи логирует уровень».create_runtime_session()gains an optionalautonomy_settings: ResolvedAutonomySettingsparam; when omitted, the level is resolved from the environment — so every runtime session (coder / planner / QA, any provider) now emits[runtime-factory] provider=<p> mode=<m> agent=<a> autonomy=<level>at INFO without requiring caller changes.
Acceptance (roadmap P3·T3)
Tests
tests/test_runtime_factory_autonomy_log.py: env-resolved level (safe), default level when env unset (claude), injected settings logged without re-resolution (guarded by a monkeypatched resolver that raises), and the Claude runtime path (off).tests/test_agent_runtime.pyfactory suite green — 245 passed total; ruff check + format clean.🤖 Generated with Claude Code