Skip to content

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

Merged
dan-petty merged 5 commits into
mainfrom
feat/4395-jev-intake-shadow-mode
Nov 11, 2026
Merged

dan-petty merged 5 commits into
mainfrom
feat/4395-jev-intake-shadow-mode

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

roadmap.intake.jev is now off, shadow or on (variable DEVOPS_CLI_ROADMAP_INTAKE_JEV). The bool goes, with no shim.

In shadow, the triage model gives every label and flag. After the checks accept its reply, intake asks Jev the same fields in one request and writes the mark intake.jev_shadow with the Priority: the time and, per field, the Jev answer, its probability and the triage answer. No issue text. A Jev error changes nothing. A Jev duplicate flag is only recorded: nothing is closed or dropped.

Shadow counts agree, differ and jev_error in devops_cli_roadmap_intake_jev_fields_total, beside jev and fallback of mode on. No second instrument: at most 25 series, 15 in shadow.

devops roadmap eval jev --from-shadow joins the marks with the current labels for the accuracy of Jev and triage per field and probability band. It makes no model request.

Closes #4395

Change: openspec/changes/archive/2026-11-10-4395-a-shadow-mode-for-the-jev/

Shadow mode counts agree, differ and jev_error in
devops_cli_roadmap_intake_jev_fields_total, beside jev and fallback of
mode on. No second instrument is added: 5 fields and 5 outcomes give at
most 25 series, and one mode writes at most 15. The setting gets the
variable DEVOPS_CLI_ROADMAP_INTAKE_JEV. The mypy error in the duplicate
field of the observation is fixed. Tests cover the shared counter, the
secret refusal in shadow mode and the variable.
@dan-petty dan-petty added type/feature Type feature: a new function scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 11, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test evidence

uv run devops ci fail-to-pass --base origin/main (base 6a09588, the branch rebased onto it):

  • Errored on the base (collection failure, the new modules do not exist there): tests/roadmap/intake/test_roadmap_intake_jev_shadow.py (18 tests) and tests/roadmap/test_roadmap_jev_shadow_report.py (8 tests).
  • Failed on the base:
    • tests/commands/test_roadmap_eval_jev.py::test_from_shadow_with_no_record_says_how_to_start_one
    • tests/commands/test_roadmap_eval_jev.py::test_from_shadow_with_dry_run_opens_no_store
    • tests/commands/test_roadmap_eval_jev.py::test_from_shadow_prints_the_report_of_the_records_and_makes_no_model_call
    • tests/security/test_config_declarations.py::test_the_variables_are_those_before_one_for_each_read_option_that_had_none_and_later_ones (the new variable DEVOPS_CLI_ROADMAP_INTAKE_JEV)
  • All of them pass on the branch. The other 50 tests of these files pass on both.

The shadow tests cover: no label or flag changes, the mark holds the answers and no issue text, the duplicate field records a flag and closes nothing, a Jev error changes nothing and counts jev_error, both modes share one counter with separate outcomes, a candidate with a secret reaches no model, the variable sets the mode, and the old bool is refused.

The first local CI run of this branch ended with exit 1 because of one mypy error in intake_jev_shadow.py (the loop variable near was reused for a Neighbour | None value). The variable is renamed. A later local run passed every static gate (mypy, ruff, docs, openspec, k8s, test tree and the others). Its pytest gate did not finish: other sessions loaded the host (load average 63 on 16 CPUs). The GitHub checks run the full suite.

@dan-petty

Copy link
Copy Markdown
Owner Author

ConfigMap change for a person (not done by the agent)

The live ConfigMap devops/devops-cli-config has no roadmap.intake key today, so this pull request breaks nothing when it merges. To start the shadow mode, do these steps in this order:

  1. Wait until deployment/roadmap-service runs an image that holds this change. An older image has the bool field and refuses jev: shadow: the settings do not load.
  2. In the key devops-cli.yaml of the ConfigMap, add these lines under roadmap:, after the stage: block and before alternatives: (the order of k8s/devops/configmap.example.yaml). The indentation is that of the block in the ConfigMap:
    roadmap:
      intake:
        jev: shadow

Only the two lines intake: and jev: shadow are new. Keep mcp, stage (with jev_screen: shadow), alternatives and implement as they are.
3. Restart the Service so that it reads the ConfigMap: kubectl -n devops rollout restart deployment/roadmap-service. The CronJobs read it at each run.

To stop the shadow mode, set jev: "off" or remove the two lines, and restart the Service again. Do not set on: ADR 0020 does not allow on for intake.proposal before its bar is met.

The variable DEVOPS_CLI_ROADMAP_INTAKE_JEV=shadow sets the same mode, if a person prefers the environment of the Deployment.

After some days, read the records from a checkout: uv run devops roadmap eval jev --from-shadow. It reads GitHub only and makes no model request.

A later pull request migrates intake.proposal onto the decision-point registry of #4397 (ADR 0020, migration step 3). That pull request removes roadmap.intake.jev and states its own ConfigMap change.

@dan-petty
dan-petty marked this pull request as ready for review November 11, 2026 01:04
@dan-petty
dan-petty merged commit 6cf9251 into main Nov 11, 2026
32 checks passed
@dan-petty
dan-petty deleted the feat/4395-jev-intake-shadow-mode branch November 11, 2026 01:04
dan-petty pushed a commit that referenced this pull request Nov 11, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.110.0](v0.109.1...v0.110.0)
(2026-11-11)


### Features

* **roadmap:** a shadow mode for the Jev intake labels
([#4438](#4438))
([6cf9251](6cf9251))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant