v2: Seal of Reliability: Re-evaluate a feed when a past UNKNOWN becomes known

オープン
#1,803 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
backend, databases

調査の方向性

Read the existing #1763 backfill implementation to understand how a feed is cold-started and evaluated through today, and where today's state is saved. Identify how late inputs are detected for a single feed; the payload does not name the relevant files or tests. Done means a detected late input triggers a full re-evaluation for that feed and saves only today's seal state.

索引モデルが issue の本文から書いたものです。

説明

A criterion can come out UNKNOWN on a given day because an input was missing — e.g.
Compliant has no validation report yet for the latest dataset. When that input arrives
later (the report lands after the fact), the stored seal state was computed without it and
may now be wrong. We need to re-run the evaluation so the feed's seal reflects it.

How

Reuse the #1763 backfill: cold-start the feed and march to today, saving only today's
state — just triggered for a single feed when a late input is detected, rather than as a
bulk run. Because the state is path-dependent (see #1763), the whole window is re-derived
rather than a single day patched.

Note

The following is now covered by #1809
A daily state snapshot (one seal_criterion row per feed, criterion and day) would:

  • let a correction resume from the day before the change instead of cold-starting the whole
    window;

  • preserve each criterion's past values — a real historical record — making re-evaluation
    more precise, since Official and Stable could be judged against their actual past values
    (only back to when snapshotting began, though; earlier days still fall back to assumed
    values — likely the earliest one we recorded);

  • cost DB space (one row per feed, per criterion, per day), which would need to be
    evaluated but is not expected to be huge.

  • We should consider the possibility of an audit trail for that, so we can explain to the user why a seal changed after a reevaluation.

主要言語
Python
スター
34
フォーク
7
平均マージ
2日 22時間
マージ済み PR(30日)
21

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

MobilityData/mobility-feed-api のほかの issue

MobilityData/mobility-feed-api の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。