Skip to content

feat(telemetry): harness, constellation and telemetry profile report only what actually ran #710

Closed

Description

@dan-petty

Context & Rationale

ai harness status renders AgentHarness.create_default() (src/devops_cli/commands/ai_harness.py:60): claude/claude-3-7-sonnet, every slot attached (src/devops_cli/ai/harness/slots.py:709-764), not the configured ollama/gemma4:26b (src/devops_cli/config/defaults.py:63-64). harness run and offload call no model: execute_tiered templates Tier 1 "Decomposed" and Tier 3 "Verified" text (slots.py:785, 682-686), tokens are len(text)//4 (slots.py:142), offload passes frontier_tokens=0 (ai_harness.py:88), and is_target_met (slots.py:610) alone backs Principle 5's "85%+". register_task (src/devops_cli/ai/controller/manager.py:169) has no src caller, each CLI call builds a fresh manager (src/devops_cli/commands/ai_controller.py:119), and is_quiesced()/get_active_route() (manager.py:408, 412) have no consumer. telemetry profile <command> sets a child TRACEPARENT (src/devops_cli/commands/telemetry.py:349) that run_subprocess overwrites (src/devops_cli/core/process.py:264), reads only its in-process buffer (telemetry.py:361), and otherwise renders sample.* spans naming qwen2.5-coder (telemetry.py:362-367). --last (telemetry.py:299) is never read; the MCP tool's --command (src/devops_cli/ai/mcp/server.py:1118) is rejected. vibes worktree_arbiter.py main() likewise formats a default SwarmFleetStatus().

Scope & Deliverables

  • Context & Rationale*: ai harness status renders AgentHarness.create_default() (src/devops_cli/commands/ai_harness.py:60): claude/claude-3-7-sonnet, every slot attached (src/devops_cli/ai/harness/slots.py:709-764), not the configured ollama/gemma4:26b (src/devops_cli/config/defaults.py:63-64). harness run and offload call no model: execute_tiered templates Tier 1 "Decomposed" and Tier 3 "Verified" text (slots.py:785, 682-686), tokens are len(text)//4 (slots.py:142), offload passes frontier_tokens=0 (ai_harness.py:88), and is_target_met (slots.py:610) alone backs Principle 5's "85%+". register_task (src/devops_cli/ai/controller/manager.py:169) has no src caller, each CLI call builds a fresh manager (src/devops_cli/commands/ai_controller.py:119), and is_quiesced()/get_active_route() (manager.py:408, 412) have no consumer. telemetry profile <command> sets a child TRACEPARENT (src/devops_cli/commands/telemetry.py:349) that run_subprocess overwrites (src/devops_cli/core/process.py:264), reads only its in-process buffer (telemetry.py:361), and otherwise renders sample.* spans naming qwen2.5-coder (telemetry.py:362-367). --last (telemetry.py:299) is never read; the MCP tool's --command (src/devops_cli/ai/mcp/server.py:1118) is rejected. vibes worktree_arbiter.py main() likewise formats a default SwarmFleetStatus().
  • Deliverable*: First, a Typer CliRunner test per command that changes the source it should read (settings, quiesce.json, child spans) and asserts the output changes; these fail today. Harness: status shows the configured provider and model labelled "configured" and no unchecked attached; drop "sandbox state" from ai_harness_status (docs/MCP_TOOLS.md:20, server.py:2511). Delete TokenSavingsSummary and its output rows; execute_tiered reports the AST/glob search it ran and its match counts, naming no uncontacted model; Principle 5 stays an unmeasured target until paired runs are compared with devops ai runs compare. Constellation: default to deleting task registration and per-task fields, rewording quiesce/failover/resume as flag-only, unless a consumer is named; ai_gateway_failover already reroutes. Telemetry: profile <command> opens its span on the trace it hands the child, fetches child spans via query_jaeger_trace (src/devops_cli/telemetry/waterfall.py:159) with a bounded poll, and exits non-zero without a collector or a trace/command; delete the sample.* fallback and --last; the MCP tool passes the command positionally. Follow-ups: real model tiers; trace_span on logfire's OpenTelemetry TracerProvider with W3CBaggagePropagator (unowned since feat(telemetry): opentelemetry w3c traceparent context propagation, metric sdk & span waterfall optimization research #319); per-span token and tier columns plus delegation spans (src/devops_cli/ai/harness/workflow.py:280), tier from LLMResponse.served_by (feat(ai): llm gateway calls record their serving backend in the spend ledger #474).
  • Constraint*: Build-then-read-back tests prove only the serializer: test_status_suspended_task_count_reporting (tests/test_ai_controller.py:365) passes because it calls register_task itself. A zero-baseline percentage certifies the target where no model ran; a smaller figure or another hard-coded model keeps the false claim, and a waterfall cannot supply the baseline. AGENTS.md:382 allows None for sourceless scores; "wire it or remove it" for status fields is a new, stricter rule, stated as one. Port nothing from vibes' synthetic trace session. Out of scope: persona reply outcomes, evaluation_duration_avg, TLSEnablementSummary.k8s_secrets, K8sSummary.services.
  • Measured*: grep -rn '\.register_task(' src tests: 11 calls, all in tests/test_ai_controller.py. devops ai harness status --format json: provider claude, model claude-3-7-sonnet, every slot attached. devops ai harness offload --repo <probe repo> --symbol alpha --format json: frontier_tokens 0, savings_percentage 100.0, is_target_met true. devops telemetry profile --command "echo hi", the MCP tool's argv, exited 2; devops telemetry profile "echo hi" printed "No telemetry spans recorded for the specified trace."
  • Source*: vibes examples/worktree-swarm-arbiter/worktree_arbiter.py, examples/worktree-swarm-arbiter/README.md, examples/agent-telemetry-trace-generator/README.md, examples/agent-telemetry-trace-generator/generator.py, examples/agent-telemetry-trace-generator/test_generator.py, observations/systems/01-distributed-telemetry-and-agent-waterfalls.md, observations/systems/09-multi-agent-epistemic-loss-and-delegation-boundary-distortion.md, observations/systems/21-hierarchical-subagent-slot-offloading-and-epistemic-loss.md, tools/subagent_orchestrator.py, observations/systems/33-typed-epistemic-seams-and-lossless-subagent-handshakes.md, examples/epistemic-context-handshake/context_handshake.py (cited as not ported)

Strategic Alignment

  • Milestone: v0.2.24 (Reactive Workstation Command Center, Interactive TUI & Unified Operations Hub)
  • Roadmap Reference: docs/ROADMAP.md

Activity

  1. added this to the v0.2.24 milestone on Sep 28, 2026
  2. added
    type/feature
    scope/telemetry
    priority/p0-critical
    on Sep 28, 2026
  3. dan-petty commented on Oct 1, 2026

    @dan-petty
    OwnerAuthor

    Closed by #801, merged into release/v0.2.24.

    GitHub only acts on closing keywords when a pull request merges into the default branch, so this was closed by devops gh issues close-merged.

  4. added a commit that references this issue on Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/p0-criticalscope/telemetrytype/feature

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions