Skip to content

feat(roadmap): the verify screen records serious findings for a live fit #5273

Not planned

Description

@dan-petty

Problem or Motivation

stage.verify_screen (ADR 0020) runs in shadow in the live Service since 2026-11-11 06:40Z. The decision-model study of 2026-11-12 joined its live records. They show that the screen cannot reach its bar for on, and that the records cannot measure that bar.

Measure (Loki, 2026-11-11 06:40Z to 2026-11-12 21:58Z) Value
Decision records 44, on 17 items
Band continue 0 of 44
Band flag: the review found an open finding 12 of 14 (86%)
Band review: the review found an open finding 24 of 25 (96%)
Base rate: the review found an open finding 36 of 39 (92%)
Bands of the 3 clean plans flag (#3785), flag (#1928), review (#1878)
Held-out reports of jev_screen_cuts.json with bar_met true 0 of 4
  • The band flag has no lift over the base rate, and the screen ranks the only clean plans high.
  • false_premise is at or above the shared continue cut of 0.595 in 43 of 44 records. The lowest highest answer is 0.62. So no plan gets continue.
  • The cuts were fitted on 48 golden cases on 2026-11-10. The golden oracle was 9 of 48 (19%) against a bar of 30%. The live clean share is 3 of 39 (7.7%) against the bar of 10%.
  • The bar counts serious findings only. ADR 0020 says: "at least 30 reviews in the band continue with no open serious finding". But record_review (src/devops_cli/roadmap/stage/stage_jev_screen.py:205-212) writes must_run=bool(open_findings), which is true for any open finding. The outcome record holds no severity and no finding type. So we cannot measure the bar, the agreement of each question, or a false-clear rate.
  • parse_record and join (src/devops_cli/roadmap/decision_point.py:343 and :387) have no caller in src. devops roadmap eval screen fits again only on the golden set. ADR 0020 section 6 says that the join gives the labelled cases of the next fit.
  • Some records are missing. 5 decisions have no outcome record (on feat(roadmap): Run devops review on the diff before marking PR ready #3049, fix(config): a bare off or on in YAML stops the settings load #4481 two times, fix(tools): install-tools --check passes an older openspec binary #5107 and fix(roadmap): a claim release leaves the item In Progress #5118). Prometheus counts 4 decisions of the Job roadmap-fix-plan-validation that have no line in Loki.

Proposed Solution & Architectural Design

  1. Outcome. The outcome record of this point holds serious (an open finding of severity BLOCKER or MAJOR, the set _SERIOUS of stage_screen_eval.py:51) and the count of open findings for each question of QUESTIONS. must_run becomes "an open serious finding", so it matches the bar.
  2. A caller for the join. devops roadmap eval screen gets a live source: it reads the decision and outcome lines from Loki with the LogQL client of src/devops_cli/k8s/logql.py, or from a file of log lines. It joins them with parse_record and join, and it fits and reports on those cases with the code that fits the golden set. A decision with no outcome counts as not labelled, and the report counts it.
  3. A rule before the model. On the joined cases, test one rule from the digest facts (the criteria, the groups, the missing paths, and whether the verify command names a test file of the group). Keep a rule only if it beats the base rate on the held-out half (ADR 0019).
  4. The go or no-go rule, before the data. Write it in ADR 0020 (or in the record of docs(adr): one decision-model record supersedes ADR 0019 and ADR 0020 #5239): after 100 outcome records with the new fields, if the share of plans with no open serious finding is under 10%, the point goes off. Otherwise, fit the cuts on the live halves and check the bar.
  5. The missing records. Find why 5 decisions have no outcome, and why the decisions of the fix-plan Job have no log line.

The measured go or no-go comes later, after 100 outcomes. This item writes the rule and the report that gives it.

Files: src/devops_cli/roadmap/stage/stage_jev_screen.py, stage_screen_eval.py; src/devops_cli/roadmap/decision_point.py; src/devops_cli/commands/roadmap_eval_screen.py; ADR 0020; tests/roadmap/.

Target Subsystem

SDLC, Git & PR Governance (src/devops_cli/roadmap/stage/, the decision points).

Existing Tool Considered

The project's decision_point.parse_record and join, decision_fit, stage_screen_eval, and the LogQL client k8s/logql.py. No new tool. Cost: about 0.6M tokens and 4 hours.

Acceptance Criteria

  1. A test: a review with one open MINOR finding and no serious finding writes an outcome with serious false, must_run false, and the count for the type of that finding.
  2. A test: devops roadmap eval screen with a fixture of decision and outcome lines joins them by id and prints the report of the live cases. A decision with no outcome counts as not labelled.
  3. The report gives the clean share, the lift of each band against the base rate, and the result against the go or no-go rule.
  4. ADR 0020 states the go or no-go rule.

Dependencies

None.

Related

Source: https://github.com/dan-petty/devops-cli/blob/main/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

Alternatives check of 2026-11-28: none.
Tool: none found.
Reason: Searches found no open, maintained tool that joins this project's decision and outcome log lines, records finding severity, fits cuts and reports band lift; the change extends the project's own parse_record, join, decision_fit and LogQL client.

Proposed design

Problem statement

stage.verify_screen runs in shadow. Its outcome record holds only must_run, weight and result; it holds no severity and no finding type, so it cannot give the agreement of each question or a false-clear rate. parse_record and join have no caller in src, so no live labelled case reaches devops roadmap eval screen. This change records the serious flag and the count for each question, joins the live decisions to their outcomes, reports the live cases against the go or no-go rule, and writes that rule in ADR 0020.

Acceptance criteria

Requirement: The outcome record holds the serious flag and the per-question counts

The outcome record of the verify screen SHALL hold serious and the count of open findings for each question of QUESTIONS.

Scenario: A review with one open MINOR false_premise finding

  • WHEN record_review gets a decision and one open MINOR false_premise finding.
  • THEN The outcome record has serious false, must_run false, and the count of false_premise is 1.

Requirement: A serious finding makes the plan run

The outcome record SHALL set must_run true only when an open finding has severity BLOCKER or MAJOR.

Scenario: A review with one open MAJOR finding

  • WHEN record_review gets a decision and one open MAJOR finding.
  • THEN The outcome record has serious true and must_run true.

Requirement: The eval screen command joins the decision and outcome lines

devops roadmap eval screen SHALL read decision and outcome lines from Loki with the client of src/devops_cli/k8s/logql.py, or from a file with --log-lines. It SHALL join them by id with parse_record and join.

Scenario: A file with one decision and its outcome

  • WHEN devops roadmap eval screen runs with --log-lines on a file that holds one decision line and its outcome line.
  • THEN The report holds one labelled case with the id of that decision.

Requirement: A decision with no outcome is not labelled

The report SHALL count each decision that has no outcome as not labelled.

Scenario: Two decisions and one outcome

  • WHEN devops roadmap eval screen runs with --log-lines on a file that holds two decision lines and one outcome line.
  • THEN The report states one labelled case and one case that is not labelled.

Requirement: The report gives the clean share, the band lift and the count

The report SHALL state the clean share, the lift of each band against the base rate, the count of outcome records and the result of the go or no-go rule.

Scenario: A fixture of live cases

  • WHEN devops roadmap eval screen prints the report of a file of live cases.
  • THEN The report holds the clean share, one lift value for each band, the count of outcome records, and the result of the go or no-go rule.

Requirement: The go or no-go rule waits for 100 outcome records

The go or no-go rule SHALL return wait when it gets fewer than 100 outcome records.

Scenario: 99 outcome records

  • WHEN The rule gets 99 joined cases.
  • THEN The rule returns wait.

Requirement: The go or no-go rule sets the point off under the bar

The go or no-go rule SHALL return off when the band continue holds under 10% of 100 outcome records.

Scenario: 100 outcomes with 5 in the band continue

  • WHEN The rule gets 100 joined cases, and 5 of them are in the band continue.
  • THEN The rule returns off.

Requirement: The go or no-go rule sends the cuts to a live fit at or above the bar

The go or no-go rule SHALL return fit when the band continue holds 10% or more of 100 outcome records.

Scenario: 100 outcomes with 12 in the band continue

  • WHEN The rule gets 100 joined cases, and 12 of them are in the band continue.
  • THEN The rule returns fit.

Requirement: ADR 0020 states the go or no-go rule

ADR 0020 SHALL state the go or no-go rule, with the share of the band continue, the 100 outcome records and the 10% threshold.

Scenario: The docs check passes with the new section

  • WHEN uv run devops ci --check --only docs runs after the change.
  • THEN The check passes with the new section of ADR 0020 that names the share of the band continue, the 100 outcome records and the 10% threshold.

Existing Tool Considered

No open, maintained tool covers the need. The alternatives check of 2026-11-22 in the issue body gives the verdict none with no tool, and its Lacks: list states the gaps. A search of 2026-11-27 for an open, maintained tool found none that reads this project's decision and outcome lines, joins them by id, records the serious severity and per-question counts, fits cuts and reports band lift. The change therefore extends the project's own parse_record, join, decision_fit, stage_screen_eval and the LogQL client of src/devops_cli/k8s/logql.py. Written cost: about 0.6M tokens and 4 hours.

Key questions

  • What does the outcome record of the verify screen hold?: It holds serious, true for an open finding of severity BLOCKER or MAJOR, and the count of open findings for each question of QUESTIONS. must_run becomes true only for an open serious finding, so it matches the bar of ADR 0020. open_findings already limits the live caller to OPEN_SEVERITIES; the new fields make the record's contract explicit and add the per-question data. (best practice) [sources: src/devops_cli/roadmap/stage/stage_jev_screen.py:205, src/devops_cli/roadmap/stage/stage_jev_screen.py:63, src/devops_cli/roadmap/stage/stage_verify.py:655, src/devops_cli/roadmap/stage/stage_verify.py:108, src/devops_cli/roadmap/stage/stage_screen_eval.py:51, 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]
    • Rejected: Keep must_run=bool(open_findings). The record holds no severity and no per-question counts. open_findings limits the live caller to serious findings, but the record cannot give the agreement of each question.
    • Chosen: Add serious and the per-question counts, and set must_run from serious. It matches the bar of ADR 0020 and gives the per-question data that the agreement of each question needs.
  • Which severities count as a serious finding?: BLOCKER and MAJOR, the set OPEN_SEVERITIES of src/devops_cli/roadmap/stage/stage_verify.py:108, which _SERIOUS of src/devops_cli/roadmap/stage/stage_screen_eval.py:51 repeats. [sources: src/devops_cli/roadmap/stage/stage_verify.py:108, src/devops_cli/roadmap/stage/stage_screen_eval.py:51, src/devops_cli/roadmap/stage/stage_verify_eval.py:69]
  • Where does devops roadmap eval screen read the live decision and outcome lines?: From Loki with execute_logql_query of src/devops_cli/k8s/logql.py:446, or from a file of log lines with a new --log-lines option. One reader gives both sources to parse_record and join. (best practice) [sources: src/devops_cli/k8s/logql.py:446, src/devops_cli/commands/roadmap_eval_screen.py, src/devops_cli/roadmap/decision_point.py:535, src/devops_cli/roadmap/decision_point.py:579]
    • Rejected: Loki only. A test cannot reach Loki, so the join would have no offline proof.
    • Rejected: A file of log lines only. It reads none of the live cases that the report must give.
    • Chosen: Both sources through one reader. It gives the live cases and an offline test of the join.
  • Which share decides the go or no-go rule, and at what threshold?: The share of the band continue decides. After 100 outcome records with the new fields, a share under 10% sets the point to off. Otherwise, the cuts are fitted on the live halves and the bar of ADR 0020 is checked. Under 100 records the rule returns wait. (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:139, src/devops_cli/roadmap/stage/stage_screen_eval.py:174]
    • Rejected: The share of plans with no open serious finding, as item 4 of the body reads. ADR 0020 states the bar on the band continue: 30 reviews with no open serious finding, and at least 10% of all reviews in that band. The body's share of plans is a different measure.
    • Chosen: The share of the band continue, at 10%. ADR 0020 names that share and that threshold, so the rule and the bar use one measure.
  • What does the report give for the joined cases?: The clean share is the share of labelled cases with serious false. The lift of a band is its clean share divided by the base rate of all labelled cases. The report also gives the count of outcome records, the count of decisions with no outcome, and the result of the go or no-go rule. (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:94, src/devops_cli/roadmap/stage/stage_screen_eval.py:174]
    • Chosen: The clean share, the lift of each band and the count. ADR 0020 section 7 says the join of the decision records with the outcome records gives the measure of the screen.
    • Rejected: The false-clear rate alone. ADR 0020 section 7 removes it as a live series, and the bar counts the clean cases of the band continue.
  • Does this item fit the cuts again on the live cases?: No. This item fits no cut and writes no new cut. The fit of the cuts runs after 100 outcome records with the new fields. (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:139, src/devops_cli/roadmap/stage/stage_screen_eval.py:174]
    • Rejected: Fit the cuts again on the live cases. The live set holds 44 records on 17 items. ADR 0020 fits the cuts only after the bar is met.
    • Chosen: Report only, and fit no cut. It gives the live cases and the go or no-go result, and the fit waits for 100 outcome records.
  • Does the digest rule and the cause of the missing records stay in this item?: No. The digest rule and the cause of the missing records are separate items (feat(roadmap): test a digest rule before the verify screen model #6180 and fix(roadmap): find why a verify screen decision has no outcome record #6181). This item keeps the record fields, the join, the report and the go or no-go rule, so it fits one pull request. (best practice) [sources: docs/roadmap/refine.md:11, docs/roadmap/refine.md:18]
    • Rejected: Test a digest rule and find the missing records here. Those parts have their own items, and this item would then exceed one pull request.
    • Chosen: Keep this item to the record, the join, the report and the rule. The deferred parts have their own items, so this item fits one pull request.
  • Does this item wait on another item?: Yes. It waits on chore(roadmap): hold incremental stage and implement work #6521, the hold issue of the re-architecture of refactor(roadmap): re-architect stage and implement on Coder #6519. The hold line - #6521 (hold: ... of #6519) names chore(roadmap): hold incremental stage and implement work #6521, and chore(roadmap): hold incremental stage and implement work #6521 has no sub-issue and no type/epic label, so it is no tracker and it holds the item back. Stage and implement leave the item while chore(roadmap): hold incremental stage and implement work #6521 is open. [sources: docs/roadmap/refine.md:24, docs/roadmap/refine.md:32]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

#6521

Moved to new items

#6180, #6181

Activity

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

    @dan-petty
    OwnerAuthor
  3. added
    priority/p2-medium
    on Nov 12, 2026
  4. dan-petty commented on Nov 12, 2026

    @dan-petty
    OwnerAuthor

    Scope note from the decision-model docs review of 2026-11-12. The owner approved it on 2026-11-12.

    The documents say:

    Now: one shared continue_below of 0.595 applies to all 9 questions. It was fitted on 48 golden cases (about 24 for each half). It reads 0.3-0.595 as a clear no, inside the band that TypeSafe calls unsure. The lowest live highest answer (0.62) is within the run-to-run noise of the cut (up to 0.08).

    Order and scope:

    1. feat(roadmap): ask the verify screen one atomic question each #5281 rewrites the questions first. Fit no new cuts on the old questions.
    2. Then fit one cut for each question on at least 100 to 200 labelled live outcomes. Select each cut from a stable range, not a point.
    3. Treat 0.3-0.7 as review, unless the fit shows a stable range outside it.
    4. Write the stop rule before the data: if the share of the band continue stays under the 10% bar of ADR 0020 after 100 outcomes, set the point to off. Item 4 of the body uses the clean share of plans. The two shares can differ, so the record states which one decides.
  5. devops-cli-service commented on Nov 16, 2026

    @devops-cli-service
    Contributor

    Alternatives check: none

    Reason: Searches for an open, maintained tool that joins decision records to outcome logs, records finding severity, and fits per-question cuts on live labelled data returned nothing relevant (only unrelated MDN pages). The need is specific to this project's own decision-point framework, and the issue explicitly says "No new tool," proposing to extend its internal parse_record/join, decision_fit and stage_screen_eval code instead.

    Tool: none found

    Searches run:

    • library tune decision threshold on labelled production data Python, results: 5
    • open source tool join decision records with outcome logs and fit cuts, results: 5
    • library join event records with outcome severity and compute lift against base rate, results: 5
    • open source tool calibrate classification thresholds evaluate labels production traces, results: 5

    Checked on 2026-11-16. A person decides what this means for the item. The check changes no label and closes no issue.

  6. added
    status/ready
    and removed
    status/new
    on Nov 17, 2026
  7. devops-cli-service commented on Nov 17, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at 3f422ad (see proposed design in issue body).

    Moved to new items: #6180, #6181.

  8. dan-petty commented on Nov 20, 2026

    @dan-petty
    OwnerAuthor

    Frozen on 2026-11-20. The stage, implement and fix-checks jobs grade under 60%, so the owner rule asks for a re-architecture before more fixes inside the current design (tracker #6519). This item is incremental work on those jobs, so its Dependencies section now names #6521 first. Stage and implement leave this item while #6521 is open. When the experiments of #6519 decide, a person closes #6521 (this item can then continue) or closes this item as not planned.

  9. added
    status/new
    and removed
    status/ready
    on Nov 27, 2026
  10. devops-cli-service commented on Nov 27, 2026

    @devops-cli-service
    Contributor

    Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies in the section Proposed design of the body.

  11. dan-petty commented on Nov 30, 2026

    @dan-petty
    OwnerAuthor

    Triage under #6519 (owner instruction of 2026-11-30), before the hold #6521 closes. This item adds or extends a gate, refusal, screen, cap, limit, retry, result line, shell allowlist, tool catalog or plan-shape rule of the stage, implement or fix-checks job. #6519 found that 263 of about 900 issues in four weeks added such rules and none replaced the engine. Stage now runs on stock Coder (grade 60 on 30 graded attempts), where the agent reads the repository, runs the checks in its loop and has a real shell; implement follows (#6527). The code paths that this item names have also moved. If the failure class still shows in graded attempts, file a new item from that evidence. Closed as not planned; a person may reopen it.

  12. removed
    status/new
    on Nov 30, 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