Skip to content

feat(telemetry): propose pass-through entries for unregistered groups #7622

Backlog

Description

@devops-cli-service

Split from #6598.

ProblemThe ranking can propose a pass-through entry only for a group whose registry entry names a tool. src/devops_cli/core/passthrough.py holds one entry, gh run list. The groups k8s, kustomize, tf, uv, test, pipeline, docker sign, docker verify, the single-tool rows of devops ci, and the root aliases lint, format and tui have no entry. An unknown command under one of them gets no proposal at any error count.## Why deferredThe proposal needs the tool name of the group. No registry entry gives it. The threshold of 5 errors on 3 days cannot name the entry to propose. This part waits on registry entries for those groups, or on a rule that maps a devops group to a tool. The rest of #6598 needs neither.## Acceptance criteria- A test replays a ledger record of an unknown command under k8s at 5 errors on 3 days and gets a pass-through proposal that names the tool of the group.- A test replays 4 errors on 3 days for the same group and gets is_proposal false.- Each group in the list gets the same result.- The ranking reads the tool name from the registry and keeps no second list.

Proposed design

Problem statement

The usage-error ranking can propose a pass-through entry only for a group that has a registry entry with a tool name. The passthrough registry holds one entry, gh run list. An unknown command under k8s, kustomize, tf, uv, test, pipeline, docker sign, docker verify, a devops ci row or a root alias gets no proposal, however many errors it has. The ranking must read the tool of the group from one registry and propose the entry.

Acceptance criteria

Requirement: Group tool map

The passthrough registry SHALL hold one mapping from a devops command group to the tool that the group mirrors.

Scenario: Map of a group that runs a tool

  • WHEN A test walks each group in the mapping.
  • THEN The CLI tree resolves each group and the mapping gives a non-empty tool name for it.

Requirement: Proposal at both thresholds

The ranking SHALL emit a pass-through proposal for an unknown command under a mapped group when the group meets both thresholds.

Scenario: Five errors on three days

  • WHEN A test replays a ledger record of an unknown command under k8s at 5 errors on 3 days.
  • THEN is_proposal is true and the suggestion holds the tool name that the mapping gives for k8s.

Requirement: No proposal below a threshold

The ranking SHALL keep is_proposal false for a mapped group below either threshold.

Scenario: Four errors on three days

  • WHEN A test replays 4 errors on 3 days for the group k8s.
  • THEN is_proposal is false and the group stays in the ranked output.

Requirement: One list

The ranking MUST read the tool name from the passthrough registry and keep no second list.

Scenario: Changed mapping

  • WHEN A test sets the mapping entry of k8s to a sentinel name and replays the record.
  • THEN The suggestion holds the sentinel name.

Requirement: Unmapped group

The ranking SHALL emit no pass-through proposal for a group that the mapping does not name.

Scenario: Group with no tool

  • WHEN A test replays a ledger record of an unknown command under a group outside the mapping at 5 errors on 3 days.
  • THEN is_proposal is false and the group keeps its class.

Requirement: Each mapped group

The ranking SHALL give the same result for each group in the mapping.

Scenario: Every mapped group

  • WHEN A test parametrizes the replay over each group in the mapping.
  • THEN Each group gets is_proposal true at 5 errors on 3 days and false at 4 errors on 3 days.

Existing Tool Considered

No alternatives check has run. No open, maintained tool or library covers this need: the change is one table in the project's own passthrough registry and one branch in its usage-error ranking, and no library knows the tool of a devops group. The written cost to build, keep and fix this code is about 40,000 tokens and 3 hours of elapsed time.

Key questions

  • Which entries does the passthrough registry hold today?: One entry, gh run list, with devops_paths=("devops gh run list",). No other group has an entry. [sources: src/devops_cli/core/passthrough.py]
  • What makes a group a proposal today?: is_proposal is true when the count is at least telemetry.usage_errors_min_count (default 5) and the distinct days are at least telemetry.usage_errors_min_days (default 3). The classes are resolved, hinted, alias_candidate, flag_candidate, feature_candidate and help_candidate, in that order. [sources: src/devops_cli/telemetry/usage_error_report.py:463, openspec/specs/usage-error-ranking/spec.md]
  • Where does the ranking read the tool name of a group?: From one mapping in src/devops_cli/core/passthrough.py, next to REGISTRY. The ranking imports the mapping and holds no copy. (best practice) [sources: src/devops_cli/core/passthrough.py, openspec/specs/tool-passthrough-registry/spec.md, openspec/specs/usage-error-ranking/spec.md]
    • Chosen: Mapping in the passthrough registry. The registry already names the tool of a pass-through path, so one list stays in one module.
    • Rejected: Second list in the ranking module. The issue forbids a second list, and two lists drift apart.
    • Rejected: Read the tool from each command module at run time. No declarative attribute names the tool, so the ranking would parse command code.
  • What does the ranking do for a group that the mapping does not name?: It emits no pass-through proposal and keeps the current class for the group. (best practice) [sources: openspec/specs/usage-error-ranking/spec.md, src/devops_cli/telemetry/usage_error_report.py:463]
    • Chosen: Keep the current behavior. The ranking has no tool to name, and a proposal with no tool is wrong.
    • Rejected: Propose a generic alias. A generic proposal names no tool and cannot be built.
  • Which tool does each group in the list mirror?: The tool that the command of the group starts, such as kubectl for k8s. The mapping names a tool only for a group that runs one. A group with no tool stays out of the mapping. (best practice) [sources: src/devops_cli/core/passthrough.py, src/devops_cli/commands/kustomize.py, src/devops_cli/core/command_resolver.py]
    • Chosen: Name a tool only for a group that runs one. A pass-through entry mirrors a tool, so a group with no tool cannot get one.
    • Rejected: Name a tool for every group in the list. Some groups run project code only, so the mapping would hold a false tool name.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    type/feature
    scope/telemetry
    source/agent
    status/new
    value/medium
    on Nov 28, 2026
  2. devops-cli-service commented on Nov 28, 2026

    @devops-cli-service
    ContributorAuthor
  3. added
    effort/medium
    priority/p2-medium
    on Nov 28, 2026
  4. changed the title [-]feat(telemetry): propose pass-through entries for tool groups with no registry entry[/-] [+]feat(telemetry): propose pass-through entries for unregistered groups[/+] on Nov 28, 2026
  5. devops-cli-service commented on Nov 28, 2026

    @devops-cli-service
    ContributorAuthor

    The job shortened the title of this item. The summary had 67 characters, and the limit is 60. The type and the scope stay.

    • Before: feat(telemetry): propose pass-through entries for tool groups with no registry entry
    • Source of the summary: the background model
  6. devops-cli-service commented on Nov 28, 2026

    @devops-cli-service
    ContributorAuthor

    Next step: the alternatives check records a verdict. See the section Proposed design of the body.

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/mediumpriority/p2-mediumscope/telemetrysource/agentstatus/newtype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions