Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions horizon/features/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ In Dagster, start at **Lineage** for the overview. Expand one numbered group at

**Needs:** Track 1 membership data; Track 2 ownership/contribution outputs; Track 3 survey data. The SOW-based delivery dimension also needs Track 5's SOW API. Build each dimension as its evidence becomes available, then combine and calibrate the scores.

**Dagster stage:** `08_ranking` starts with `ranking_run`, which opens a run in `horizon_ranking.ranking_runs` for one semester. It stores the rubric version from `pipeline/ranking/rubrics/`, the latest complete feature run per project repository, and the published projects run. It fails the run when any repository has no complete run in the 8 days before `as_of`. `ranked_members` then snapshots who is ranked in which role: tech leads in one club-wide group, engineers per project. Teams where engineers don't review PRs get a row in `horizon_ranking.project_review_settings` with `engineers_review_prs = false`. Their engineers' `review_collaboration` bucket is then excluded, its 15% is split equally over the other five engineer buckets, and the run records this in `ranked_members.excluded_buckets`. `code_and_tenure_metrics` then writes each member's code ownership, consistency and tenure rows to `horizon_ranking.metric_values` (`pipeline/ranking/metrics_code.py`). Blame metrics come from `blame_commit_summary` and `engineering_contribution` for the run's `source_runs`; activity comes from `member_commit_activity` and `git_commits`, filtered by date. Missing data is NULL with a `missing_reason`, never 0. `review_and_rating_metrics` adds the review, collaboration and survey rating rows (`metrics_reviews.py`, `metrics_survey.py`) from T1.1's Gitea PR tables, `pr_linked_commit_messages` and T3.4's survey answers, read as of the run's `as_of`; an engineer whose review bucket is excluded gets no review rows. `delivery_metrics` adds the delivery rows (`metrics_delivery.py`): the mean completion value of the due SOW tasks an engineer owns, or of all the project's due tasks for a tech lead, from T5.4's `sow_task_status` for the run's `project_run_id`, with the latest `sow_task_overrides` row set by `as_of` applied; with no published project run the rows are NULL with `no_sow`. Rubric weights come from `rubrics/v1.yaml`, not the draft weights below. A published rubric version is immutable; change it by adding a new version file.

## Track 5 — Project health and SOW analysis

**Suggested owner:** Project health / signals engineer
Expand Down
18 changes: 17 additions & 1 deletion horizon/pipeline/assets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

Dagster groups use ordered, plain-language stage names so the UI reads in the
order data moves through it: sources, capture, parse, identity, ownership
metrics, PR metrics, and database. Identity resolution has its own group because
metrics, PR metrics, database, and ranking. Identity resolution has its own group because
it joins blame records and PR commits to the member roster. Ownership and PR
metrics stay separate because they are distinct branches with different inputs.
"""
Expand Down Expand Up @@ -43,10 +43,21 @@
persist_member_repository_ownership,
persist_pr_linked_commit_messages,
)
from .ranking import (
RankingRun,
RankingRunConfig,
code_and_tenure_metrics,
delivery_metrics,
ranked_members,
ranking_run,
review_and_rating_metrics,
)
from .source import RepositoryConfig, authentik_users, gitea_repository

__all__ = [
"BlameCapture",
"RankingRun",
"RankingRunConfig",
"RepositoryConfig",
"authentik_users",
"blame_capture",
Expand Down Expand Up @@ -75,4 +86,9 @@
"persist_member_repository_ownership",
"persist_pr_linked_commit_messages",
"pr_linked_commit_messages",
"ranked_members",
"ranking_run",
"code_and_tenure_metrics",
"review_and_rating_metrics",
"delivery_metrics",
]
Loading
Loading