Repository navigation
feat(hydra-gates): SIG v18.1 star bands for gates 122 and 123, and gates.json per run - #909
Merged
Merged
Conversation
…tes.json per run Gate 122 now rates against the 4-star limits of the SIG/TUV NORD CERT Guidance for Producers v18.1 (2026 model): unit size 48.0/24.2/9.1%, complexity 20.7/7.5/1.1%, interfacing 15.4/3.4/0.9%, coupling 9.7/5.3/1.8%, duplication 5.8%, entanglement 0.075, independence 94.5%. Volume is not rated. Every report row carries the star level its share earns: 5, 3 and 2 stars from the v18.1 limits scaled by the band ratios of Alves, Correia and Visser 2011 (duplication: Heitlager 2007), 1 star below 2. Independence and entanglement have 5 stars at half the 4-star exposure and no band under 4. The five-star profile uses the derived 5-star band instead of half of each 4-star limit. Gate 123 records the guidance in the floor file and never lowers a floor on re-recording: a floored check the new limits miss stays in the file and is named, so the change of status is visible. The runner writes gates.json next to the findings logs: every declared gate with its verdict, findings count, scope and matrix category. Assisted-by: ClaudeCode:claude-opus-5-5
This was referenced Nov 5, 2026
Assisted-by: ClaudeCode:claude-opus-5-5
…ds-and-gates-json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
Gate 122 (sig-maintainability) rates against the 4-star limits of the SIG/TÜV NORD CERT Guidance for Producers v18.1 (31 March 2026, the 2026 model): unit size 48.0/24.2/9.1%, complexity 20.7/7.5/1.1%, interfacing 15.4/3.4/0.9%, coupling 9.7/5.3/1.8%, duplication 5.8%, entanglement 0.075, independence 94.5%. Volume is not rated.
Every report row now carries
stars, 5 to 1:<4). Entanglement is rated on our violation-degree estimate and is not a floored check.five-starprofile uses the derived 5-star band (36.0/17.0/5.5% and so on) instead of half of each 4-star limit.Gate 123 (sig-floor) records the guidance in the floor file.
writenever lowers a floor: a floored check the new limits miss stays in the file and is printed as "floored but missed at the current limits". A check that left the measured scope still leaves.gates.json. The runner writes
gates.jsonnext to the findings logs ($HYDRA_GATE_GATES_JSONmoves it): every declared gate with gate, name, verdict, findings, findings_from, scope, category and reason. Findings come from the count in the verdict reason, else from the gate's findings log, else null. A gate that emitted nothing isnot-run. The writer cannot change the run's verdict.Checks whose 4-star status flips on v18.1
All 20 apps, measured on
developmenton 5 November.FLOOREDmeans the check is in the app's floor. A floored check that flips to missed (filinq, integriq, opencatalogi independence; humaniq coupling >50) makes gate 123 fail on a run without a delta base until development meets it again. buildiq and shillinqvue unit_complexity >5were already floored and missed under v17.Verified
test_check_sig_maintainability.py46 OK,test_check_sig_floor.py35 OK,test_write_gates_json.py9 OK (includes a real runner run that writes gates.json).test_gate122_sig_maintainability_scope.shandtest_gate123_sig_floor_scope.sh: all arms passed.The page that reads this is the stacked PR for the quality matrix.
AI assistance: written with Claude Code (Opus); reviewed by the submitter before merge.