RFC: Configurable maturity scoring system#18
Open
stuart-gano wants to merge 2 commits intomainfrom
Open
Conversation
Replace hardcoded scoring with a YAML-based config engine and admin UI for workspace admins to customize maturity scoring weights, enable/disable criteria, and adjust stage thresholds. - Add maturity_config_default.yaml with 5-stage model (16 criteria) - Add maturity_config.py service (YAML defaults + Lakebase overrides) - Rewrite scanner.py as config-driven engine with registered checks - Add admin API endpoints (GET/PUT/POST maturity-config) - Add MaturityConfigEditor React component with save/reset - Add tabbed admin dashboard (Overview + Scoring Config) - Add score_all_spaces.py scheduled job for batch scoring - Add genie-space-maturity.md documentation - Update models, types, and IQScoreTab for 5-stage breakdown
60 tests covering the scoring engine, check functions, stage boundaries, config loading, YAML integrity, and merge logic.
This was referenced Apr 28, 2026
Collaborator
|
Opened a new epic to track this feature (see #199 ) |
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.
RFC: Configurable Maturity Scoring System
Status: Draft — requesting feedback
Author: Stuart Gano
Branch:
configurable-maturity-scoringProblem
The maturity scoring logic is hardcoded in
scanner.pyandscore_all_spaces.py. If an admin wants to adjust scoring weights, disable a criterion, or change stage thresholds, it requires a code change and redeployment. Different workspaces may have different priorities (e.g., some care more about Unity Catalog compliance, others about SQL coverage).Proposal
Make the maturity scoring system fully configurable by workspace admins through:
maturity_config_default.yaml) — ships with the app, defines the 5-stage model with 16 criteria, point weights, and stage thresholdsArchitecture
Merge Strategy
id— override fields win, unmentioned fields preserved, new IDs appendedWhat Admins Can Configure
pointsper criteriontables_attached: 10 → 15enabledflagsql_functionsrangebounds@_registerin codeSecurity
Check functions are registered Python functions, not eval'd expressions. The YAML config only contains metadata (IDs, points, descriptions). Adding a new custom criterion ID requires a corresponding
@_register("id")decorator inscanner.py— there's no arbitrary code execution path.Changes
Backend
maturity_config_default.yamlservices/maturity_config.pyservices/scanner.py@_registercheck functionsmodels.pyCriterionResult, updatedScoreBreakdownto 5-stage keysrouters/admin.pyGET/PUT /maturity-config,POST /maturity-config/resetFrontend
MaturityConfigEditor.tsxAdminDashboard.tsxIQScoreTab.tsxtypes/index.tsMaturityConfig,MaturityConfigStage,MaturityConfigCriterionlib/api.tsgetMaturityConfig,updateMaturityConfig,resetMaturityConfigOther
jobs/score_all_spaces.pydocs/genie-space-maturity.mdtests/test_maturity_scoring.pytests/test_maturity_config.pyOpen Questions
Stage threshold validation — Currently the UI lets you set non-contiguous ranges (e.g., Nascent 0-25, Basic 30-49 leaving a gap). Should we enforce contiguous ranges in the UI, the API, or both?
Custom criteria workflow — An admin can add a new criterion ID in the UI, but it won't score anything until a
@_registerfunction is added in code. Should we surface a warning for unregistered criterion IDs? Or is this an acceptable admin-only footgun?Score history after config change — If an admin changes weights, historical scores become stale. Should we re-score all spaces on config change? Add a "config version" to scan results? Or just let the next scan pick up the new config?
Batch job config —
score_all_spaces.pycurrently has its own inline scoring logic (mirrors scanner.py). Should it import from the app's scanner instead, or stay self-contained for notebook portability?Test Plan
uv run pytest tests/test_maturity_scoring.py tests/test_maturity_config.py— 60/60 passingnpm run build— frontend compiles clean