Repository navigation
T4/base pr 153 - #171
Open
SuperNova-W wants to merge 7 commits into
Open
T4/base pr 153#171SuperNova-W wants to merge 7 commits into
SuperNova-W wants to merge 7 commits into
Conversation
Add the horizon_ranking calculation schema (rubric_versions, ranking_runs, ranked_members, metric_values, member_scores, calibration_notes) and the shared horizon_api.publications table to schema.sql. Every statement is idempotent. Add pipeline/ranking with the v1 rubric YAML and a pydantic loader. The loader rejects bucket weights or metric shares that don't sum to 100, and refuses a changed file under an existing rubric version. Add the 08_ranking Dagster assets. ranking_run opens a run with source provenance and fails it when a project repository has no complete feature run in the 8 days before as_of. ranked_members snapshots tech leads (club-wide) and engineers (per project) from the T1.1 roster tables.
…y and consistency
Add pipeline/ranking/metrics_code.py with pure functions for files_majority_owned, non_boundary_lines, surviving_commits, active_week_ratio, longest_inactive_stretch, team_end_loading and tenure_semesters, and the code_and_tenure_metrics asset that writes them to horizon_ranking.metric_values. Rows follow the role's rubric, missing data is NULL with a reason, and re-running replaces only this step's metric keys for the run.
Add pipeline/ranking/metrics_reviews.py (prs_reviewed, team_prs_reviewed, review_turnaround_hours, collaborative_prs, review_spread) and pipeline/ranking/metrics_survey.py (the eng_* and lead_* ratings), and the review_and_rating_metrics asset that writes them to horizon_ranking.metric_values. Rows follow the role's rubric and skip buckets the run excluded. Co-authored-by trailers are not read, and the survey means use a stand-in for T3.4's semester_rating_means until it merges.
…ings Review metrics for an as_of before window_start are now NULL with window_not_started instead of 0, as in T4.2. Survey means ignore a member's rating of themself and answers with no submitted_at. Tests now cover REQUEST_CHANGES, teammates in any role, merges outside the window, PRs opened before the window, events in other repositories, re-requests answered by a later review, two projects' teammates, rating rows for an excluded review bucket, the SELECT column order of every ranking reader, and that the metric steps own disjoint keys.
Adds the delivery_metrics asset, which writes verified_completion for engineers and team_verified_completion for tech leads from T5.4's sow_task_status for the ranking run's project_run_id, with the latest sow_task_overrides row set by as_of applied. Tasks without a due date count once the project's real window_end has passed. With no published project run, or no tasks for the project in it, both roles get no_sow.
Overrides set at the same moment are ordered by override_id, so the result no longer depends on row order. New tests cover partial and not_done overrides, an override set exactly at as_of, a task due today, the club date near midnight UTC, and a NULL project run with real tasks.
This branch has not been deployed
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.
Description
Type of Change
Testing
Screenshots
Checklist