Repository navigation
Description
Problem or Motivation
intake.proposal asks Jev in shadow (roadmap.intake.jev: shadow in the live ConfigMap). The triage model decides the labels. The decision-model study of 2026-11-12 compared the shadow answers with the labels. It can measure only agreement, not accuracy: the final labels are the triage labels (priority 103 of 103 marks; 193 of 193 since 2026-11-11). So no measure says if Jev or triage is correct.
| Field | Jev = triage, counter, 7 days | Jev = triage, last 60 marks | Jev = final label, 103 marks | Jev match by probability band (below 0.6 / 0.6 to 0.75 / 0.75 to 0.9 / 0.9 and up) |
|---|---|---|---|---|
| Priority | 176 / 137 (56%) | 30 of 60 (50%) | 59 of 103 | 13/25, 27/43, 17/31, 2/4 (52%, 63%, 55%, 50%) |
| Value | 196 / 117 (63%) | 39 of 60 (65%) | 60 of 103 | not measured |
| Effort | 216 / 97 (69%) | 47 of 60 (78%) | 78 of 102 | 24/36, 12/16, 16/20, 26/30 (67%, 75%, 80%, 87%) |
- Effort is the one calibrated field: a higher Jev probability goes with more agreement.
- Priority has no signal. The probability does not predict a match, and Jev picked P1-High where the label is P2-Medium 26 times in 60.
- 110 of 213 intake records of 2026-11-12 have no shadow mark. The probable cause, an inference: intake that agents run from the local CLI has
roadmap.intake.jevoff andai.decision_modelempty.
Sources: Prometheus devops_cli_roadmap_intake_jev_fields_total; the mark intake.jev_shadow in the job record of each issue, joined with the labels of the newest 300 issues.
Proposed Solution & Architectural Design
- Run
devops roadmap eval jev --from-shadow(no model call) and post its report on this item as the official join of the marks and the final labels. - Add a later signal of real effort for each closed item: the size of the merged diff of the pull request that closed it (lines changed and files), and the time of the implement job when the job record holds it.
- Fit the edges of the signal bands (Low, Medium, High) on half A of the closed items, check them on half B, and store them as data (ADR 0019 rule 4).
- In the
--from-shadowreport, add an Effort section: Jev = signal band and triage = signal band, with the Jev match for each probability band. An item with no merged pull request has no signal; the report counts it and leaves it out of the share. - Write the bar before the data: Jev Effort goes further only if it matches the signal band at least as often as triage, on at least 100 closed items (the bar of
intake.proposalin ADR 0020). - Priority stays in shadow with no more work until a truth exists.
Files: src/devops_cli/roadmap/jev_shadow_report.py, src/devops_cli/commands/roadmap_eval_jev.py, tests/roadmap/.
Target Subsystem
SDLC, Git & PR Governance (src/devops_cli/roadmap/, intake and its evaluation).
Existing Tool Considered
devops roadmap eval jev --from-shadow (jev_shadow_report.py) and the pull request fields additions, deletions and changed_files of the GitHub REST API, through the roadmap store. No new tool. Cost: about 0.5M tokens and 4 hours.
Acceptance Criteria
- A test: with a fixture of closed items that hold a mark, a merged diff size and fitted edges, the report gives the Jev and triage match against the signal band, and the Jev match for each probability band.
- A test: an item with no merged pull request counts as no signal, and the report counts it.
- A test: the report makes no model call (a fake model fails the test on any call).
- A comment on this item holds the report of step 1.
Dependencies
None.
Related
- chore(roadmap): track the decision model workflows #4408: the tracker of the decision model workflows.
- feat(roadmap): a shadow mode for the Jev intake labels #4395: the shadow mode of intake (closed; the move onto the registry has not started).
- feat(roadmap): Jev decides the labels of an intake proposal #4323: the offline comparison of Jev and the triage model.
Alternatives check of 2026-11-22: in-use.
The repository already uses this tool.
Tool: dan-petty/devops-cli (https://github.com/dan-petty/devops-cli), MIT, last activity 2026-11-22, maintained.
Reason: Searches found no external tool for joining shadow marks with a merged-diff effort signal; the repository's own --from-shadow report already covers the mark join and the no-model-call path, but lacks the effort signal and fitted bands.
Covers:
- Joins shadow marks with final labels
- Runs with no model call
- Renders the shadow field report
Lacks:
- Merged pull request changed-lines and files signal
- Fitted Low/Medium/High band edges stored as data
- Effort match per probability band against a signal
- Fit on one half, check on the other
Proposed design
Problem statement
The --from-shadow report joins Jev's marks with the final labels, but the final labels are the triage model's own labels, so the report measures agreement and not accuracy. This change gives the report a later, independent signal of real effort: the changed lines of the merged pull request that closed the item, read through the GitHub client's closing-pull read and its compare read, with the changed files and the seconds of the model calls in implement.trace as additional signals. It fits the Low, Medium and High band edges on one half of the items and checks them on the other, stores the edges as data, and adds an Effort section with the Jev match for each probability band and the bar written before the data. The command's output is posted on the item as the official join. It also applies the owner-approved intake changes: Jev is asked no priority, and the Value and Effort rubric strings carry the situation text alone.
Acceptance criteria
Requirement: Merged diff lines are the primary signal
The report SHALL take the changed lines of the merged pull request that closed the item, the sum of the changes of its compared files, as the primary effort signal.
Scenario: Merged pull request gives the primary signal
- WHEN the fixture answers the closing-pull read with merged pull request 7 and its compare read with two files whose
changesare 100 and 50 - THEN the report records 150 changed lines for the item
Requirement: Changed files and trace seconds are additional signals
The report SHALL report the count of the compared files and the seconds of the model calls of implement.trace as additional effort signals, and SHALL report no time when the record holds no trace.
Scenario: Files and trace seconds are additional signals
- WHEN the fixture has a merged pull request with 4 compared files and a job record whose trace holds model calls of 3,600 seconds
- THEN the report shows 4 changed files and 3,600 seconds for the item
Requirement: A truncated compare is no signal
The report SHALL count an item whose compare read reaches GitHub's file limit as no signal, because its changed lines are partial.
Scenario: Compare reaches the file limit
- WHEN the fixture answers the compare read with
truncatedset - THEN the report counts the item as no signal and the match share excludes it
Requirement: Edges are fitted on one half and checked on the other, both ways
The report SHALL split the items with a signal into two fixed halves with halves of decision_fit.py, fit the Low, Medium and High edges on one half, report the match on the other, and repeat with the halves swapped.
Scenario: Fit on half A and check on half B, then swap
- WHEN the test supplies items with a signal and a fixed seed
- THEN the report gives the edges fitted on half A with the match on half B, and the edges fitted on half B with the match on half A
Requirement: Fitted edges are stored as data and loaded
The report SHALL store the fitted edges with the step, the model, the fitted date, the cases, the split and the numbers as data in src/devops_cli/roadmap/effort_signal_edges.json, and SHALL load saved edges on a later run.
Scenario: Saved edges load on a later run
- WHEN the test loads the saved edges through the report's loader
- THEN the loader returns the Low and High edges, the fit count and the seed, and the report uses them without fitting again
Requirement: Effort section compares Jev and triage with the signal band
The --from-shadow report SHALL add an Effort section that gives the Jev effort answer and the triage effort answer against the signal band, with the Jev match for each probability band.
Scenario: Effort section compares both answers
- WHEN the fixture has a closed item whose Jev effort answer is High and triage effort answer is Medium in a signal band of High
- THEN the report shows a Jev match and no triage match for the item, and a Jev match count and total for its probability band
Requirement: No merged pull request counts as no signal
The report SHALL count an item with no merged pull request as no signal and SHALL leave it out of the match share.
Scenario: No merged pull request
- WHEN a closed item holds a shadow mark and the closing-pull read answers none
- THEN the report counts the item as no signal and the match share excludes it
Requirement: The shadow report makes no model call
The --from-shadow report SHALL make no model call.
Scenario: Fake model fails on any call
- WHEN the test runs the report with a fake model that fails on any call
- THEN the report completes and the fake model records no call
Requirement: The effort bar is written before the data
The report SHALL state that Jev Effort goes further only when it matches the signal band at least as often as triage on at least 100 closed items with a signal, and SHALL state that the bar is not met below 100.
Scenario: Fewer than 100 items with a signal
- WHEN the report has 99 closed items with a signal
- THEN the report states that the bar is not met and does not recommend Jev Effort
Requirement: Jev is asked no priority question
Intake SHALL remove the priority field from the Jev request and SHALL NOT ask the priority question.
Scenario: Jev request has no priority question
- WHEN intake builds the questions and the asked fields of a Jev request
- THEN the request holds no
priorityquestion andasked_fieldsnames no priority field
Requirement: Jev's proposal is valid without priority
A Jev proposal SHALL be valid with an empty priority while the triage model's schema still requires a priority.
Scenario: Jev proposal without priority
- WHEN the test builds a Jev proposal from answers with no priority field
- THEN the proposal validates with an empty priority and
proposal_schemastill refuses a reply with no priority
Requirement: Existing priority marks stay readable
The shadow report SHALL still read a priority answer from a mark written before the question was removed.
Scenario: Old priority mark remains in the report
- WHEN an issue holds a mark whose answers include
priority - THEN the report counts the priority field and prints its line
Requirement: The rubric sends the situation text alone
The Value and Effort rubric strings that the request sends SHALL be the situation text alone and SHALL NOT start with Low: , Medium: or High: .
Scenario: Rubric strings have no degree prefix
- WHEN the test builds the Value and Effort questions
- THEN no criteria string starts with
Low:,Medium:orHigh:, and a score answer still maps to the level name
Requirement: Value High describes one dimension
The Value High level description SHALL describe one dimension and SHALL NOT contain the phrase or removes a recurring cost or risk.
Scenario: Value High has no second dimension
- WHEN the test renders the Value High rubric string
- THEN the string does not contain
or removes a recurring cost or risk
Existing Tool Considered
The repository already uses devops roadmap eval jev --from-shadow in src/devops_cli/roadmap/jev_shadow_report.py (dan-petty/devops-cli, MIT, last activity 2026-11-16, maintained). It covers the shadow report that joins the marks with the final labels, the no-model-call path, and the rendering of the fields. It lacks the merged pull request effort signal (changed lines, changed files, trace seconds), the fitted Low/Medium/High band edges stored as data, and the Effort match section with the Jev match by probability band. No new external tool covers this project-specific join of shadow marks with merged pull request signals. Cost to extend the repository's own report: about 0.5M tokens to build, keep and fix, and about 4 hours.
Key questions
- Does the current
--from-shadowreport make a model call?: No._report_shadowreads the roadmap store and renders the report, and the module states that the report makes no model request. [sources: src/devops_cli/commands/roadmap_eval_jev.py:102, src/devops_cli/roadmap/jev_shadow_report.py:14] - Which existing tool covers the need to measure Jev effort against a later signal?: The repository already uses
devops roadmap eval jev --from-shadowinsrc/devops_cli/roadmap/jev_shadow_report.py. It covers the shadow report that joins the marks with the final labels and the no-model-call path. It lacks the merged pull request effort signal, the fitted band edges stored as data, and the Effort match section with the Jev match by probability band. The alternatives check recordsin-usefor dan-petty/devops-cli, so the tool stays and is extended. (best practice) [sources: src/devops_cli/roadmap/jev_shadow_report.py, src/devops_cli/commands/roadmap_eval_jev.py]- Chosen: Extend devops-cli
--from-shadow. The repository already uses it, and it owns the shadow marks, the report and the no-model-call path. - Rejected: Add an external effort-estimation library. No external library covers this project-specific join of shadow marks with merged pull request signals, and the alternatives check found none.
- Chosen: Extend devops-cli
- What is the later real-effort signal?: The primary signal is the changed lines of the merged pull request that closed the item.
GitHubClient.get_closing_pullgives the merged pull request number from the issue's lastclosedevent,get_pullgives its base ref and head sha, andget_compare_filesgives its files; eachPullRequestFileholdsadditionsandchanges, wherechangesis additions plus deletions, so the signal is the sum ofchangesand the changed files are the count of the files. A compare that reaches GitHub's file limit is truncated and gives no signal. The additional time signal is the seconds of the model calls inimplement.trace, whichtrace_totalssums; the job record holds no wall-clock job duration. The roadmap store holds no diff, so the report reads these facts from the GitHub client at report time and writes nothing. (best practice) [sources: src/devops_cli/github/client.py:786, src/devops_cli/github/client.py:502, src/devops_cli/github/client.py:613, src/devops_cli/github/client.py:183, src/devops_cli/github/client.py:629, src/devops_cli/roadmap/explain.py:84, src/devops_cli/roadmap/stores/store.py:645]- Chosen: Read the merged pull request at report time through the compare read. The typed
PullRequestFilemodel already gives the lines and the file count in one read, the closing-pull read already names the merged pull request, and the report writes nothing. - Rejected: Add
additions,deletionsandchanged_filesto thePullRequestmodel.PullRequestholds neither field today, and the compare read already gives the same numbers with no new model field and no untested assumption about the pull request payload. - Rejected: Count the lines of
get_pr_diff. It parses diff text and gives no changed-file count, where the compare read gives both as typed fields. - Rejected: Record the diff size in the job record when the item closes. It adds a write and a record key to the close path, and the report can read the signal offline with no write.
- Chosen: Read the merged pull request at report time through the compare read. The typed
- How does the report split the closed items into half A and half B?: Reuse
halvesfromdecision_fit.py: each stratum is sorted by the hash of the seed and the name and dealt out by turns, so the split is the same for the same names and seed. ADR 0019 rule 4 and ADR 0020 section 3 require two fixed halves, a fit on one, a report on the other, and then the same with the halves swapped; the report gives both directions. (best practice) [sources: src/devops_cli/roadmap/decision_fit.py:140, docs/adr/0019-a-decision-step-asks-jev-short-closed-questions-about-evidence-that-tools-extract.md:31, docs/adr/0020-a-decision-point-is-a-unit-of-a-workflow-with-a-resolver-chain-and-a-rule-goes-before-a-decision-model.md:70]- Chosen: Two fixed halves by a hash of the seed and the issue number. It is reproducible, it is the project's own split function, and it avoids a time or order bias between the halves.
- Rejected: First half and second half by issue number. The first half and the second half can differ by time and by intake changes.
- Rejected: Alternate items in issue-number order. It can still follow a pattern in the issue numbers, and it is not the split that the ADRs require.
- How does the report fit the Low, Medium and High effort band edges?: Fit the 33rd and 67th percentiles of the changed lines on the fit half as the two edges, so the three bands hold about one third of the items each. Store the edges as data in
src/devops_cli/roadmap/effort_signal_edges.jsonwith the provenance thatThresholdsrequires: the step, the model, the fitted date, the cases, the split and the numbers. The file followsalternatives_cuts.json, the repository's fitted-cuts data file, and the report loads it on a later run instead of fitting again. (best practice) [sources: docs/adr/0019-a-decision-step-asks-jev-short-closed-questions-about-evidence-that-tools-extract.md:31, docs/adr/0020-a-decision-point-is-a-unit-of-a-workflow-with-a-resolver-chain-and-a-rule-goes-before-a-decision-model.md:70, src/devops_cli/roadmap/decision_step.py:138, src/devops_cli/roadmap/alternatives_cuts.json]- Chosen: 33rd and 67th percentiles on the fit half, stored as data. The bands hold about one third of the items each, the fit uses one half only, and the values are data with their provenance as the ADRs require.
- Rejected: Fixed thresholds for changed lines. A fixed threshold does not adapt to the repository, and a cut in a constant is a guess that the ADRs refuse.
- Rejected: Cluster the signal into three groups. Clustering adds a dependency and makes the edges harder to reproduce from the stored cases.
- Should intake keep asking Jev for priority?: No. The owner-approved scope addition of 2026-11-12 supersedes item 6 of the body. Intake removes the priority question from
_questions, fromasked_fieldsand from Jev's proposal. BecauseModelProposal.priorityis required today, the base model takes a default of an empty string for Jev's proposal, whileproposal_schemastill makes priority one of the model's priorities required for the triage model.observation_ofstops recording a priority answer, and the report still reads the priority of marks written earlier. If priority comes back, a later item computes blocker priority inheritance by a rule, adds the urgency facts as named state fields and asks a Score with situation levels; that part is deferred. (best practice) [sources: src/devops_cli/roadmap/intake/intake_jev.py:140, src/devops_cli/roadmap/intake/intake_jev.py:242, src/devops_cli/roadmap/intake/intake_jev.py:255, src/devops_cli/roadmap/intake/intake_model.py:74, src/devops_cli/roadmap/intake/intake_model.py:98, src/devops_cli/roadmap/intake/intake_jev_shadow.py:147]- Chosen: Remove priority from the Jev request. The priority answer has no independent truth and shows a P1-first bias, and the owner approved the removal on 2026-11-12.
- Rejected: Keep priority in shadow. It collects more answers with no truth to measure them against, and the owner's scope addition removes the field.
- Rejected: Ask priority as a Score now. The state holds no blocker, milestone or dependent facts for the situation levels, so the question waits for that evidence.
- How should the Value and Effort level descriptions read?:
_rubricsends the situation text alone, with noLow:,Medium:orHigh:prefix, while the level name stays in the constants and inlevel_nameso a score answer still maps to its level. The Value High description keeps one dimension: it says that the change helps most users, and it drops the second clauseor removes a recurring cost or risk. (best practice) [sources: src/devops_cli/roadmap/intake/intake_jev.py:124, src/devops_cli/roadmap/intake/intake_jev.py:191, src/devops_cli/config/constants.py:4124, src/devops_cli/config/constants.py:4127]- Chosen: Send the situation text alone and keep one dimension. A rubric level stands alone and a Score question keeps one dimension, so the degree prefix and the second Value clause add no usable signal.
- Rejected: Keep the degree prefixes. The level name is not part of the situation, so the prefix spends text on a degree that the answer already carries.
- Rejected: Split Value into two questions. A second question adds cost and still leaves the Value level with two dimensions.
- What bar decides that Jev Effort goes further?: Jev Effort goes further only when it matches the signal band at least as often as triage on at least 100 closed items with a signal. The bar is the bar of
intake.proposalin ADR 0020, which sets at least 100 closed items of the shadow record and Jev as accurate as the triage model on the field. The report states when the bar is not met. (best practice) [sources: docs/adr/0020-a-decision-point-is-a-unit-of-a-workflow-with-a-resolver-chain-and-a-rule-goes-before-a-decision-model.md:148]- Chosen: At least as often as triage on at least 100 closed items with a signal. It follows the bar of
intake.proposalin ADR 0020 and prevents a small sample from deciding. - Rejected: Any higher match than triage. A small sample can show a higher match by chance.
- Rejected: No bar before the data. The bar must be written before the data to avoid a result-driven choice.
- Chosen: At least as often as triage on at least 100 closed items with a signal. It follows the bar of
- How does the report treat an item with no merged pull request?: The report counts the item as no signal and leaves it out of the match share, as the existing report counts a record with no final label in
recordsbut not injudged. A case with no signal gets no band, as ADR 0020 gives the bandnoneto a case that no resolver answers. (best practice) [sources: src/devops_cli/roadmap/jev_shadow_report.py:139, docs/adr/0020-a-decision-point-is-a-unit-of-a-workflow-with-a-resolver-chain-and-a-rule-goes-before-a-decision-model.md:80]- Chosen: Count as no signal and leave out of the share. The item has no later signal, so it cannot test the effort answer, and the existing report already counts such a record without judging it.
- Rejected: Count it as a Low signal. No merged pull request is missing data, not a low effort result.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 12, 2026
Both concern Jev decision-model work in the roadmap intake; #4408 is the umbrella tracker and the candidate is one specific evaluation step under it.dan-petty commentedon Nov 12, 2026
Scope addition from the decision-model docs review of 2026-11-12. The owner approved it on 2026-11-12.
The documents say:
Now: intake asks priority as a
ChoiceQuestionover P1-High, P2-Medium and P3-Low, with P1 first (src/devops_cli/roadmap/intake/intake_jev.py:140-143). The state holds no facts about blockers, milestones or dependents. This is consistent with the P1 bias (26 of 60) and the missing signal (50-56% agreement, a probability that is not calibrated). Each Value and Effort level text starts with a degree word (Low:,Medium:,High:). The Value High level adds a second dimension ("helps most users or removes a recurring cost or risk").Add to this item:
devops-cli-service commentedon Nov 16, 2026
Alternatives check: in-use
Reason: The searches surfaced no external open tool for this project-specific measurement, and the issue already names its own tool,
devops roadmap eval jev --from-shadow(jev_shadow_report.py), which produces the Jev shadow report joining theintake.jev_shadowmarks with the final labels — the reporting/agreement half of the need. It does not yet produce the later merged-diff effort signal, the fitted Low/Medium/High band edges, or the Effort match section that the issue adds, so it covers the need only in part.The repository already uses this tool.
Tool: dan-petty/devops-cli (https://github.com/dan-petty/devops-cli)
Covers:
Lacks:
Tools considered:
Searches run:
Sources:
Checked on 2026-11-16. A person decides what this means for the item. The check changes no label and closes no issue.
devops-cli-service commentedon Nov 17, 2026
Status set to Ready at 3f422ad (see proposed design in issue body).
Moved to new items: #6183.