Skip to content

feat(autonomy): runtime factory logs the autonomy level per session (P3.T3)#404

Merged
OBenner merged 1 commit into
developfrom
claude/p3-runtime-factory-autonomy-log
Jul 6, 2026
Merged

feat(autonomy): runtime factory logs the autonomy level per session (P3.T3)#404
OBenner merged 1 commit into
developfrom
claude/p3-runtime-factory-autonomy-log

Conversation

@OBenner

@OBenner OBenner commented Jul 6, 2026

Copy link
Copy Markdown
Owner

What

Roadmap P3·T3: «Фабрика принимает autonomy_settings и логирует уровень».

  • create_runtime_session() gains an optional autonomy_settings: ResolvedAutonomySettings param; 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.
  • Callers that already hold resolved settings can inject them and skip re-resolution.

Acceptance (roadmap P3·T3)

Уровень автономности виден в логе сессии

Tests

  • 4 new in 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.py factory suite green — 245 passed total; ruff check + format clean.

🤖 Generated with Claude Code

…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>
@cursor

cursor Bot commented Jul 6, 2026

Copy link
Copy Markdown

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.

@coderabbitai

coderabbitai Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@OBenner, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 41 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: e79cc803-4abd-4f33-9ab0-a2dc87089e7f

📥 Commits

Reviewing files that changed from the base of the PR and between a6f6538 and b46202f.

📒 Files selected for processing (2)
  • apps/backend/agents/runtime/adapters/__init__.py
  • tests/test_runtime_factory_autonomy_log.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/p3-runtime-factory-autonomy-log

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

sonarqubecloud Bot commented Jul 6, 2026

Copy link
Copy Markdown

@OBenner OBenner merged commit 190f4ac into develop Jul 6, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant