Repository navigation
feat(hydra-gates): gate 122 estimates the SIG maintainability rating and its levers - #911
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
…and its levers The report now carries `rating`: a continuous 0.5 to 5.5 estimate per check (Alves, Correia and Visser 2011, eq. 1), per property and language, per property across languages (weighted by code), per sub-characteristic and overall. SIG publishes no power-mean exponent for the 2026 model, so the overall rating is reported under p = 1 and p = -1 as a range. Levers: per property and language, the overall gain from fixing the next 1,000 exposed lines worst band first, and the lines needed to raise the property by 0.5. A lever is sure when it ranks in the top 3 under both exponents. Report rows now also carry the lines above each bound. Component independence and entanglement get assumed 3 and 2 star caps for the estimate only; their discrete check still reads <4 below 4 stars. Assisted-by: ClaudeCode:claude-opus-5-5
This was referenced Nov 5, 2026
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.
Base: this branch stacks on #909 (
feat/sig-v18-star-bands-and-gates-json). Review or merge #909 first; until then this diff also shows #909's commit.What changes
Gate 122's report gains a
ratingsection: an estimate of SIG's continuous maintainability rating (0.5 to 5.5).loc, the lines above each bound, and independence carrieshidden_loc.<4below 4 stars.Sources, quotes and every assumption:
~/sig-lanes/shared/research/sig-stars.md, section 4.Verified
python3 hydra-gates/scripts/lib/test_check_sig_maintainability.py: 57 tests OK, 11 of them new. They cover the Alves 2011 ArgoUML example (2.68), the interpolation edges, p = 1 being the plain mean, LOC weighting, a language without code, a single language, a report without structure, independence and entanglement below 4 stars, lever order on a fixture, and the bisection for +0.5.test_check_sig_floor.py: 35 tests OK.test_gate122_sig_maintainability_scope.shandtest_gate123_sig_floor_scope.sh: all arms pass.Not verified
🤖 Generated with Claude Code