Skip to content

feat(roadmap): a shadow mode for the Jev intake labels #4395

Closed

Description

@dan-petty

Problem or Motivation

The setting roadmap.intake.jev is a boolean (#4298). When it is on, Jev decides the labels of a new issue. The offline comparison (devops roadmap eval jev, 25 closed issues and 16 duplicate cases) shows that Jev must not decide yet:

Field Jev triage model
Type 17 of 25 17 of 25
Priority 10 of 25 15 of 25
Value 12 of 25 16 of 25
Effort 15 of 25 17 of 25
True duplicates found 0 of 3 1 of 3
False duplicates 0 0

The offline set is small. The owner wants live observations of Jev on real new issues to find the best use of Jev in the Service workflow. A boolean has no mode in which Jev answers and decides nothing.

Proposed Solution & Architectural Design

Follow ADR 0019, as the pilot 1 screen does with roadmap.stage.jev_screen.

  • roadmap.intake.jev becomes off, shadow or on (default off). The bool goes away, with no shim: the live ConfigMap has no roadmap.intake key.
  • shadow: intake uses the triage model for every label and every flag, as with off. After the triage answer, it asks Jev the same fields (one request for each candidate, the existing question builder), and records the answers. A Jev failure changes nothing and is counted.
  • The record is a mark intake.jev_shadow in the job record of the issue, written in the same write as the Priority. It holds the time of the proposal and, for each field, the Jev answer, its probability and the triage answer. It holds no issue text. The final labels join by issue number from GitHub.
  • devops roadmap eval jev --from-shadow reads the marks and the current labels (GitHub reads, no model request) and reports the agreement of Jev and triage for each field, the accuracy of each against the final labels, and a table of probability bands.
  • A metric devops_cli_roadmap_intake_jev_shadow_total with the labels field (type, priority, value, effort, duplicate) and outcome (agree, differ, jev_error): 15 series.
  • The duplicate flag in shadow only records the neighbour that Jev flags beside the triage verdict. Nothing is closed or dropped.

Cost: about 0.0001 USD for each candidate. The text of a public issue goes to the hosted Jev, as the owner policy allows. Intake refuses a candidate that holds a secret before any model call.

Target Subsystem

SDLC, Git & PR Governance

Existing Tool Considered

The pilot 1 screen already has the pattern (off|shadow|on, ADR 0019, roadmap/decision_step.py), and the job record already stores per-issue marks. This change reuses both and adds no library. The report uses the existing eval command and the existing store.

Proposed design

Problem statement

The setting roadmap.intake.jev is a boolean, so Jev either decides every label of a new issue or does nothing. The offline comparison shows that Jev is less accurate than the triage model on priority, value, effort and duplicates. The owner needs live observations of Jev on real new issues. A boolean has no mode in which Jev answers and decides nothing. This item adds that mode.

Acceptance criteria

Requirement: Three-mode intake setting

The setting roadmap.intake.jev SHALL accept only off, shadow or on, and SHALL default to off.

Scenario: A boolean value is refused

  • WHEN The configuration sets roadmap.intake.jev to true.
  • THEN Loading the settings raises a validation error that names the three accepted values.

Requirement: Triage decides every label in shadow mode

In shadow mode, intake SHALL take every label and every flag from the triage model and SHALL NOT apply a Jev answer to the issue.

Scenario: Jev differs from triage

  • WHEN The triage model answers priority P2 and Jev answers P1, and the mode is shadow.
  • THEN The issue gets the label priority/P2 and the job record holds P1 as the Jev answer.

Requirement: A Jev failure changes nothing

A failed Jev request in shadow mode SHALL change no label and SHALL count one jev_error outcome for each field.

Scenario: The Jev request fails

  • WHEN Jev returns an error during a shadow intake of one issue.
  • THEN Intake writes the triage labels and the counter adds one increment with outcome="jev_error" for each of the five fields.

Requirement: The shadow mark holds no issue text

Intake SHALL write the mark intake.jev_shadow in the job record in the same issue write as the Priority, and the mark SHALL hold the time, the Jev answer, its probability and the triage answer for each field, and no issue text.

Scenario: The mark holds no text from the issue

  • WHEN A shadow intake runs on an issue whose body holds a sentence.
  • THEN The mark intake.jev_shadow holds no part of that sentence.

Requirement: The shadow report makes no model request

devops roadmap eval jev --from-shadow SHALL read the shadow marks and the current labels from GitHub and SHALL make no model request.

Scenario: The report runs on shadow marks

  • WHEN The command runs with --from-shadow on a repository that holds shadow marks.
  • THEN The report prints the agreement of Jev and triage for each field, the accuracy of each against the final labels and a table of probability bands, and the model client receives no request.

Requirement: The shadow metric has 15 series

The metric devops_cli_roadmap_intake_jev_shadow_total SHALL carry the label field with the values type, priority, value, effort and duplicate, and the label outcome with the values agree, differ and jev_error.

Scenario: One shadow intake adds five increments

  • WHEN One shadow intake finishes and Jev agrees with triage on every field.
  • THEN The counter adds five increments, one for each value of field, each with outcome="agree".

Requirement: The shadow duplicate flag records only the neighbour

In shadow mode the duplicate flag SHALL record the neighbour that Jev names beside the triage verdict and SHALL NOT close, drop or relabel an issue.

Scenario: Jev flags a duplicate

  • WHEN Jev flags issue 12 as a duplicate of issue 7 in a shadow intake.
  • THEN The mark holds issue 7 as the Jev neighbour and issue 12 stays open with its triage labels.

Requirement: A secret stops intake before any model call

Intake SHALL refuse a candidate that holds a secret before it makes any model request.

Scenario: The candidate holds a secret

  • WHEN A candidate body holds a token that the secret scan finds, and the mode is shadow.
  • THEN Intake makes no triage request and no Jev request, and it reports the secret.

Requirement: The documents name the modes and the metric

docs/ENV_VARS.md SHALL describe the three modes and docs/TELEMETRY.md SHALL list the new metric with its two labels.

Scenario: The documents name the setting

  • WHEN A reader searches docs/ENV_VARS.md for roadmap.intake.jev.
  • THEN The entry names off, shadow and on, and docs/TELEMETRY.md lists devops_cli_roadmap_intake_jev_shadow_total.

Existing Tool Considered

No alternatives check has run. No open library covers a shadow mode for a project's own label pipeline, and the repository already holds the pattern. The pilot 1 screen gives off, shadow and on for roadmap.stage.jev_screen under ADR 0019, and the job record already holds a mark for each issue. The change reuses both and adds no library. The code it builds is a three-value setting, a shadow call, a mark writer, a flag on the eval command and a counter. Cost: about 90,000 tokens to build, about 20,000 tokens a year to keep, about 30,000 tokens to fix, and about 3 days of elapsed work.

Key questions

  • Which store holds the shadow record?: The job record in the issue body holds it, as a mark intake.jev_shadow, in the same write as the Priority. ADR 0016 amends ADR 0001 so that the issue body holds the job record, and the pilot 1 screen already writes a mark. (best practice) [sources: docs/adr/0001-github-is-the-roadmap-source.md, src/devops_cli/roadmap/stage/stage_jev_screen.py, docs/ENV_VARS.md:132]
    • Chosen: Mark in the job record. It reuses the existing write and adds no second store.
    • Rejected: A new label. Labels hold only Status, Priority, Value and Effort.
    • Rejected: An external database. It adds a store, a schema and a migration.
  • Which model decides the labels in shadow mode?: The triage model decides every label and every flag. Jev answers the same fields after the triage answer, and intake records the Jev answers only. (best practice) [sources: docs/ENV_VARS.md:132, src/devops_cli/roadmap/stage/stage_jev_screen.py]
    • Chosen: Triage decides, Jev records. The offline table shows better triage accuracy on priority, value, effort and duplicates.
    • Rejected: Jev decides with a review. The offline table shows worse Jev accuracy on four of the five fields.
    • Rejected: A person decides each issue. It does not scale to every new issue.
  • How does the item remove the boolean?: The setting becomes a three-value enum with the default off, and the boolean goes away with no shim. ADR 0001 removes a replaced flow rather than keeping it, per the pre-1.0 policy, and a test guards each removed setting. (best practice) [sources: docs/adr/0001-github-is-the-roadmap-source.md, tests/config/test_removed_settings_fields.py, src/devops_cli/config/settings.py]
    • Chosen: Remove with no shim. The pre-1.0 policy removes a replaced setting and keeps one name for one mode.
    • Rejected: Keep true as an alias of on. Two names for one mode make the configuration ambiguous.
    • Rejected: Keep the boolean and add a second setting. Two settings can disagree, and no code resolves the conflict.
  • What does the shadow mark hold?: The mark holds the time of the proposal and, for each field, the Jev answer, its probability and the triage answer. It holds no issue text, so the public issue body keeps no second copy of the candidate. (best practice) [sources: docs/adr/0001-github-is-the-roadmap-source.md, src/devops_cli/roadmap/stage/stage_jev_screen.py]
    • Chosen: Answers and probabilities only. The record sits in a public issue, so it holds no text.
    • Rejected: The issue text for offline replay. It copies the candidate into a second public place and keeps stale text.
    • Rejected: The model prompt. The prompt holds the issue text.
  • Which metric shape reports the agreement?: One counter devops_cli_roadmap_intake_jev_shadow_total with the labels field and outcome gives 15 series, as the decision-step counter already does with step, mode and band. (best practice) [sources: docs/TELEMETRY.md:106, src/devops_cli/telemetry/instruments.py]
    • Chosen: One counter with two labels. It gives 15 series and one dashboard query.
    • Rejected: One counter for each field. Five names measure one thing and break the series rule.
    • Rejected: A histogram of probabilities. The eval report already gives the probability bands.
  • Where does the shadow report get the final labels?: The report reads the final labels from GitHub by issue number, because GitHub holds the roadmap fields. It reads the marks from the job records and makes no model request. (best practice) [sources: docs/adr/0001-github-is-the-roadmap-source.md, src/devops_cli/roadmap/run.py]
    • Chosen: Read the labels from GitHub. ADR 0001 makes GitHub the source of the roadmap fields.
    • Rejected: Store the final labels in the mark. A person can change a label after intake, so the stored value goes stale.
    • Rejected: Ask a model to judge the agreement. The report needs no model request.
  • Does the shadow duplicate flag act on the issue?: No. In shadow mode the flag records the neighbour that Jev names beside the triage verdict, and nothing closes, drops or relabels an issue. (best practice) [sources: CONTEXT.md, tests/roadmap/stage/test_roadmap_stage_jev_screen.py]
    • Chosen: Record only. A shadow mode must change no item, and Jev found 0 of 3 true duplicates offline.
    • Rejected: Close the duplicate. A wrong close removes a candidate that a person wrote.
    • Rejected: Comment on the candidate. It writes to a person's issue for no decision.
  • What happens when a deployment still holds the boolean value?: Settings validation refuses the boolean value, so the deployment must remove the roadmap.intake key. The live ConfigMap already holds no such key, so no value must move. [sources: tests/config/test_removed_settings_fields.py, src/devops_cli/config/settings.py, src/devops_cli/config/defaults.py]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    type/feature
    scope/roadmap
    status/new
    value/medium
    effort/medium
    on Nov 10, 2026
  2. dan-petty commented on Nov 10, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/feature. The feat prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P2-Medium. It is an observability step for the owner's Jev decision, not a blocker for existing workflow.
    • Value: Medium. It gives live agreement data to decide whether to enable Jev for intake, but the triage model already covers the need.
    • Effort: Medium. It reuses ADR 0019, the job-record mark, and the existing eval command, but still needs config change, shadow logic, mark writing, eval flag, and a metric.
    • Related: feat(roadmap): Jev decides the labels of an intake proposal #4298, which asks for a different change. Both work on the roadmap.intake.jev setting and Jev intake labels, but #4298 delivered the boolean on/off while this candidate adds a shadow observation mode.
  3. added
    priority/p2-medium
    type/feature
    source/agent
    scope/roadmap
    status/new
    value/medium
    effort/medium
    owner/agent
    on Nov 10, 2026
  4. added
    status/ready
    and removed
    status/new
    on Nov 10, 2026
  5. devops-cli-service commented on Nov 10, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at 013c1f4 (see proposed design in issue body).

  6. added
    status/in-progress
    and removed
    status/ready
    on Nov 11, 2026
  7. removed
    status/in-progress
    owner/agent
    on Nov 11, 2026
  8. added
    status/in-review
    owner/agent
    on Nov 11, 2026
  9. devops-cli-service commented on Nov 11, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-11 01:28 UTC

  10. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    The delivered metric differs from two acceptance criteria of this issue. This comment records the change.

    • The criteria name a new counter, devops_cli_roadmap_intake_jev_shadow_total, with the labels field and outcome, and require docs/TELEMETRY.md to list it.
    • PR feat(roadmap): a shadow mode for the Jev intake labels #4438 adds no new counter. Shadow mode counts in the counter of mode on, devops_cli_roadmap_intake_jev_fields_total, with its own outcomes agree, differ and jev_error. The fields are the same: type, priority, value, effort and duplicate. Shadow mode writes at most 15 series, as the criteria ask. docs/TELEMETRY.md lists the shared counter with the shadow outcomes.
    • The reason: ADR 0020 (merged in docs(roadmap): the decision-point design for Jev workflows #4398, after the refine job wrote these criteria) gives one counter, devops_cli_decision_point_total, to all decision points in section 7, and its catalogue has the point intake.proposal. A second counter for the same point adds a name that the ADR 0020 counter must remove later. The design of the archived change records this choice under "Rejected alternatives": design.md.

    A query for the shadow agreement reads devops_cli_roadmap_intake_jev_fields_total{outcome=~"agree|differ|jev_error"}.

  11. removed
    status/in-review
    owner/agent
    on Nov 22, 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

    effort/mediumpriority/p2-mediumscope/roadmapsource/agenttype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions