Skip to content

G126 Bee launch console and observability smoke - #346

Merged
delete-cloud merged 1 commit into
mainfrom
codex/bee-launch-g126-final
May 22, 2026
Merged

delete-cloud merged 1 commit into
mainfrom
codex/bee-launch-g126-final

Conversation

@delete-cloud

@delete-cloud delete-cloud commented May 22, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • surface durable Bee launch records in the Developer Console with sanitized fallback metadata
  • add low-cardinality Bee launch Prometheus metrics and final smoke coverage
  • add Bee launch usage and implementation report docs

Verification

  • uv run pytest tests/coding_agent/test_bee_launch.py -q
  • uv run pytest tests/coding_agent/test_observability_platform_smoke.py -q
  • uv run pytest tests/ui/test_developer_console.py -q
  • uv run pytest tests/coding_agent/test_bee_command_bridge.py tests/coding_agent/test_bee_workspace.py tests/coding_agent/test_bee_runtime.py tests/coding_agent/test_scheduled_runs.py -q
  • uv run pytest tests/coding_agent/test_topic_layer_smoke.py tests/integration/test_durable_runtime_smoke.py tests/coding_agent/test_context_system_smoke.py tests/coding_agent/action_safety/test_safe_action_smoke.py -q
  • uv run pytest tests/coding_agent/evaluation/ tests/dogfood/test_workspace_provider_demo.py tests/agentkit/runtime/test_pipeline.py -k "build_context or runtime_stage_spans" -q
  • uv run pytest tests/coding_agent/test_observability.py tests/coding_agent/test_observability_local_stack.py -q
  • uv run ruff format --check src/coding_agent/bee_launch.py src/coding_agent/observability.py src/coding_agent/ui/developer_console.py src/coding_agent/ui/http_server.py tests/coding_agent/test_bee_launch.py tests/coding_agent/test_observability_platform_smoke.py tests/ui/test_developer_console.py
  • uv run ruff check src/coding_agent/bee_launch.py src/coding_agent/observability.py src/coding_agent/ui/developer_console.py src/coding_agent/ui/http_server.py tests/coding_agent/test_bee_launch.py tests/coding_agent/test_observability_platform_smoke.py tests/ui/test_developer_console.py
  • git diff --check -- .

Local subagent review: no blockers after durable launch store console fix.

Summary by CodeRabbit

Release Notes

  • New Features

    • Developer Console now displays Bee launch summaries with launch status, source type, and linked template/task/topic/schedule/signal information
    • Observability metrics added for Bee launches, including duration tracking and launch source categorization
  • Documentation

    • Added comprehensive Bee Launch usage guide and implementation documentation
  • Tests

    • Added end-to-end and observability smoke tests for Bee launch functionality

Review Change Stack

@coderabbitai

coderabbitai Bot commented May 22, 2026 •

Copy link
Copy Markdown
Contributor

Caution

Review failed

Pull request was closed or merged during review

📝 Walkthrough

Walkthrough

This PR integrates bee launch observability and console rendering. It defines low-cardinality Prometheus metrics for bee launches, emits them during launch orchestration, renders launch summaries in the developer console backed by a durable store with metadata fallback, validates the integration end-to-end with metrics and UI tests, and documents the completed implementation phase.

Changes

Bee Launch Observability and Console Integration

Layer / File(s) Summary
Bee launch metrics definition and recording
coding-agent/src/coding_agent/observability.py, coding-agent/src/coding_agent/bee_launch.py
Observability module adds allowlists for source/status/proactive_kind dimensions, PrometheusMetricsRecorder.record_bee_launch() method that increments counters and records duration histogram, exposition rendering for bee_launches_total, scheduled_bee_launches_total, proactive_bee_launches_total, and bee_launch_duration_seconds, plus public record_bee_launch_metric() helper. Bee launch orchestrator emits metric after attaching launch result with computed duration and fixed proactive kind.
Console UI schema for launch summaries
coding-agent/src/coding_agent/ui/developer_console.py
ConsoleBeeLaunchSummary dataclass carries launch id, source, status, template/task/topic/schedule/signal/error identifiers for rendering. ConsoleBeePage gains launches field. _bee_launch_table() renders Bee Launches section with HTML-escaped values and dash fallbacks for missing fields.
HTTP server launch summary aggregation
coding-agent/src/coding_agent/ui/http_server.py
Computes launch_summaries in _console_bee_page() by merging durable PGBeeLaunchStore records with run metadata fallback, filters by auth context, and sorts stably. Helpers normalize BeeLaunchRecord and parsed run metadata into ConsoleBeeLaunchSummary with per-auth visibility. _console_bee_launch_store() conditionally initializes store based on Postgres session storage.
Observability metrics validation
coding-agent/tests/coding_agent/test_bee_launch.py, coding-agent/tests/coding_agent/test_observability_platform_smoke.py
E2E smoke test drives manual, scheduled, and proactive-signal launches, validates launch state/task metadata/artifacts, and asserts Prometheus counter presence while forbidding high-cardinality identifier labels. Low-cardinality metrics test records multiple bee launch scenarios and verifies aggregated series without forbidden label parts.
Console UI launch rendering tests
coding-agent/tests/ui/test_developer_console.py
In-memory _ConsoleBeeLaunchStore mock filters BeeLaunchRecord by optional source/status/session/topic. Fixture extends runtime metadata with launch id/source/status, template id, schedule id. Tests validate /console/bee renders safe launch summary from store and metadata, excludes forbidden identifiers, and tightens metrics label redaction assertions.
Feature documentation and acceptance tracking
coding-agent/docs/adr/0044-bee-launch-surfaces.md, coding-agent/docs/bee_launch/GOAL_PROGRESS.md, coding-agent/docs/bee_launch/IMPLEMENTATION_REPORT.md, coding-agent/docs/bee_launch/USAGE.md
ADR marks console and observability tests as completed. GOAL_PROGRESS (G126) records durable-store-backed console launch summaries with safe error fields, fail-open Prometheus metrics, and low-cardinality expositions. New IMPLEMENTATION_REPORT documents phase scope, landed goals, safety boundaries, verification commands, and deferred items. USAGE.md explains launch semantics, sources, lifecycle controls, console rendering, metrics, and label/identifier export rules.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

Poem

🐰 A bee takes flight with metrics bright,
The durable store holds launch insight,
Safe summaries bloom on the console page,
Low cardinality metrics mark the stage,
From orchestration to observability's grace!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly refers to the main change: adding Bee launch console surface and observability smoke tests (G126 goal).
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/bee-launch-g126-final

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 and usage tips.

@delete-cloud
delete-cloud merged commit 7c2c924 into main May 22, 2026
1 check was pending
@delete-cloud
delete-cloud deleted the codex/bee-launch-g126-final branch May 22, 2026 18:53
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