Skip to content

feat(roadmap): report the Phase 0 funnel base from the cluster #6256

Open

Description

@devops-cli-service

Split from #5494.

Problem: devops roadmap eval funnel reports each cohort by step from live label events and result lines, but no run gives the Phase 0 base. The base needs the command in a released image, a runner Job in the cluster as the App, and 28 days of data. No comment on #5494 gives n, the shares, the intervals, the tokens and the cost_usd_micros for each staged plan, or the cohorts that have token data (from the release of #5168). #5494 delivers the command, the tests and the docs page only. This issue holds the live proof, so #5494 can merge with no cluster run. Why deferred: the proof runs only after the release that carries the command. A pull request check cannot run a Job as the App. Acceptance criteria: (1) After the release, a runner Job runs uv run devops roadmap eval funnel --since <date> --repo dan-petty/devops-cli --json as the App for the last 28 days and exits 0. (2) A comment on #5494 gives n, each share with its interval, and the tokens and cost_usd_micros for each staged plan. (3) The comment names the cohorts that have token data.

Proposed design

Problem statement

The Phase 0 funnel base is missing. No run gives n, the share of each step with its interval, or the tokens and cost_usd_micros of each staged plan. The command devops roadmap eval funnel comes with #5494. This issue runs that command as the App in a cluster Job over the last 28 days after the release and reports the result in a comment on #5494.

Acceptance criteria

Requirement: Pending a person after the merge

A person SHALL run uv run devops roadmap eval funnel --since <date> --repo dan-petty/devops-cli --json as the App in a cluster Job after the release that carries the command.

Scenario: Live funnel run after the release

  • WHEN the release that carries devops roadmap eval funnel is published, and a person starts the Job as the App with a --since date 28 days back
  • THEN the command exits 0 and prints its JSON report with one cohort for each ISO week of the window

Requirement: Funnel base comment on #5494

A comment on #5494 MUST give n, each share with its Wilson 95% interval, and the tokens and cost_usd_micros of each staged plan.

Scenario: Comment matches the report

Requirement: Cohorts with token data

The comment MUST name each cohort that has token data and each cohort that has none.

Scenario: Token cohorts named

Requirement: Run window named

The comment MUST name the --since date of the run.

Scenario: Window is repeatable

Existing Tool Considered

No alternatives check has run. No open, maintained tool reports a funnel over this repository's own GitHub label events and Loki result lines. The project's own command devops roadmap eval funnel covers the need, and #5494 delivers it. This issue writes no code, so it adds no build cost.

Key questions

  • Where does the live funnel run execute?: In a one-off Job in the cluster, from the released runner image, as the App. The App private key is in the cluster Secret, and the Job runs next to it. (best practice) [sources: docs/adr/0004-ci-is-the-authoritative-gate.md, SECURITY.md, CONTEXT.md]
    • Chosen: One-off cluster Job as the App. The issue names a runner Job, and the App private key lives in the cluster Secret.
    • Rejected: Workstation run as the App. The workstation must reach loki.url, and the issue names a Job in the cluster.
    • Rejected: GitHub Actions workflow. ADR 0004 keeps the App private key out of GitHub Actions secrets.
  • Which date does --since take?: The Monday 28 days before the run date, in UTC, with the run started on a Monday. The window then holds four whole ISO-week cohorts, which are the funnel's unit. (best practice) [sources: docs/guidelines/agentic-jobs.md, docs/commands/roadmap.md:601, docs/roadmap/job-success.md:143]
    • Chosen: Monday 28 days back. The window holds four whole ISO-week cohorts, so each share compares with a later run.
    • Rejected: 28 days back from any weekday. The first and last ISO-week cohorts are partial, so their shares do not compare.
    • Rejected: Fixed date at plan time. The date goes stale before the release, and the window stops covering the last 28 days.
  • Where do n, the intervals, tokens and cost_usd_micros come from?: From the JSON report that the command prints. The comment copies n, each share with its Wilson 95% interval, and the tokens and cost_usd_micros of each staged plan. (best practice) [sources: docs/roadmap/job-success.md:143, openspec/specs/roadmap-eval-funnel/spec.md:47, src/devops_cli/roadmap/job_funnel.py, src/devops_cli/roadmap/job_result.py:217]
    • Chosen: Copy the command report. The command holds the queries, and its tests check them, so the comment adds no second implementation.
    • Rejected: Recompute in a script. A second implementation has no test and can disagree with the command.
  • Which cohorts have token data?: The cohorts whose attempts recorded tokens and cost_usd_micros in the attempt context, from the release of feat(roadmap): result lines state first-pass, model calls and cost #5168 onward. The comment names those cohorts and the cohorts with none. [sources: docs/roadmap/job-success.md:20, openspec/specs/roadmap-service-logs/spec.md, src/devops_cli/roadmap/job_result.py:217]
  • Which release carries the devops roadmap eval funnel command?: The first release that release-please publishes after the command merges to main. release-please opens or updates one release pull request on each push to main. [sources: .github/workflows/release.yml, ARCHITECTURE.md, docs/adr/0013-releases-use-release-please-as-it-ships-and-agents-stay-out.md]

Fit

Fits in one pull request.

Suspected block

The release that publishes devops roadmap eval funnel in the devops-cli image; the run starts after that release.

Dependencies

#5494

Watched files

A commit on the default branch that changes one of these files starts the next refine round.

  • src/devops_cli/roadmap/job_funnel.py

Activity

  1. added
    type/feature
    source/agent
    scope/roadmap
    status/new
    value/medium
    effort/low
    on Nov 18, 2026
  2. devops-cli-service commented on Nov 18, 2026

    @devops-cli-service
    ContributorAuthor
  3. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    ContributorAuthor

    Refine cannot set this item to Ready at 5e6822d while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.

  4. devops-cli-service commented on Nov 25, 2026

    @devops-cli-service
    ContributorAuthor

    Owner question: See Suspected block in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  5. devops-cli-service commented on Nov 27, 2026

    @devops-cli-service
    ContributorAuthor

    Owner question: See Suspected block and Watched files in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

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

    effort/lowpriority/p2-mediumscope/roadmapsource/agentstatus/newtype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions