Repository navigation
Description
Problem Description
#5042 (closes #5034) merged before the fix of its review findings. The constants gate of the stage job (src/devops_cli/roadmap/stage/stage_constants.py) still refuses good plans in two forms:
- A Python integer literal with a
_digit separator. A correct quote ofCONST_AGENTS_MD_MAX_CHARS: Final[int] = 6_500gives the problem "CONST_AGENTS_MD_MAX_CHARS is 6500 in the staged tree, but the plan says 6."(\d+)takes6, the lookahead lets_pass, and the lookbehind drops500. fix(roadmap): the constants gate reads only a stated value #5034 lists this false refusal (test(cli): Convert ratchets to bans and merge invariant tests #1336), and 13 module constants insrc/use_separators (for example65_536and262_144). The stage prompt asks the model to cite the staged value of each constant, so the gate refuses the citation that the prompt asks for. - A new value after
to. The staged tree is the commit before the change, so "RaiseNAMEto 40" or "The test patchesNAMEto 1" always differs from the staged value. Thetolink of_VALUE_LINKmakes the gate refuse a plan that changes a constant. fix(roadmap): the constants gate reads only a stated value #5042 put this refusal into the spec ofroadmap-stage/claimsand into a test (set-to).
The archived change of #5034 also holds false claims: "the change adds no refusal" (a sentence that held a range and a value claim is now checked), and "the gate was made for the #3200 defect" (neither the old nor the new gate refuses the real #3200 plan, so the gate has no recorded true positive). Its Impact section does not list the value-claim forms that the gate no longer refuses.
Reproduction Steps
- On
origin/mainat cf4733e, callconstant_problems(["constants.py:195:CONST_AGENTS_MD_MAX_CHARS: Final[int] = 6_500"], {"CONST_AGENTS_MD_MAX_CHARS": 6500}). - Call
constant_problems(["RaiseCONST_Xto 40."], {"CONST_X": 30}).
Expected vs Actual Behavior
Expected: no problem for either text. Actual: step 1 gives "... the plan says 6." and step 2 gives "CONST_X is 30 in the staged tree, but the plan says 40."
Environment Diagnostics
origin/main at cf4733e (after #5042).
Logs, Traces, or Terminal Output
Review of #5042: findings 1 (blocking), 2 (major), 3 to 5 (minor). Each finding was reproduced on cf4733e with constant_problems.
Source: #5042
Activity
dan-petty commentedon Nov 12, 2026
Both target constant_problems in stage_constants.py, but #5034 fixed lookahead and any-number defects while the candidate fixes underscore separators and the to-construct refusal.devops-cli-service commentedon Nov 12, 2026
Released in v0.119.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.119.0
devops-cli-service commentedon Nov 12, 2026
Live since 2026-11-12 15:46 UTC