I3379 — Each issue's CI reruns and rounds are counted from the Actions run record, attributed through plan.delivery
Fill ci_reruns per issue from the run record I3202 writes into the forge observation: for each pull request plan.delivery attributes to the issue, runs of the same head with run_attempt above 1 are reruns, runs of a later head are rounds, cancelled and superseded runs are apart, each with run id and attempt, with runner minutes where I3202 measures them. The reading never asks the forge itself.
BLOKOVÁNO vlna 1 · p1 · profil implementation · bezpečné paralelně
Blocked. This issue cannot start until I3376, I3202 are done. The status is derived from that, not declared.
Cíl
Fill ci_reruns per issue from the run record I3202 writes into the forge observation: for each pull request plan.delivery attributes to the issue, runs of the same head with run_attempt above 1 are reruns, runs of a later head are rounds, cancelled and superseded runs are apart, each with run id and attempt, with runner minutes where I3202 measures them. The reading never asks the forge itself.
Proč
T3 of the owner's report of 2026-10-19 asks for CI reruns. I3202 already plans to read run_attempt, head_sha and conclusion, and I2740's plan.delivery attributes pull requests to issues, so this adds only the per-issue count.
Aktuální stav
apps/majordomus-cli/src/integration/metrics.rs:14-16 counts rounds from the drain's trail only; grep -rn run_attempt apps/majordomus-cli/src/integration finds nothing; apps/majordomus-cli/src/plan/delivery.rs:1-15 attributes branches and pull requests to issues.
Cílový stav
Every record carries its issue's reruns, rounds and cancelled or superseded runs, or not_observed with the reason.
Rozsah
- apps/majordomus-cli/src/economics
- apps/majordomus-cli/tests/economics.rs
- docs/ECONOMICS.md
Mimo rozsah
- Reading the forge directly
- Changing CI or the drain
Závislosti
- I3376READY One capability states each task's wall time and episodes from every checkout's ledger, and names every field it cannot yet fill as not observed
- I3202BLOCKED CI timings measure the wait before a run starts beside the run, and count what cancelled runs spent
Kritéria přijetí
- One head run twice and a later head run once yield one rerun and one round, each with run id and attempt
- Cancelled and superseded runs are counted apart and keep their conclusion
- The same observation read twice counts each run once
- A missing observation or an unattributed issue reads not_observed with the reason
Validace
- cargo test --manifest-path apps/majordomus-cli/Cargo.toml --test economics
- majordomus plan validate
Požadované důkazy
- test_task_ci_reruns_are_attributed
Důkazy
Nic nezaznamenáno. Za každým tokenem výše musí stát příkaz nebo artefakt, než lze tento úkol dokončit; vyprávění se odmítá.
Časová osa
- zahájeno
- —
- ověřeno
- —
- dokončeno
- —
Tato tři pole, důkazy výše a stav závislostí jsou vše, z čeho se stav skládá. Neexistuje žádné pole stavu, které by s nimi mohlo být v rozporu.
Canonical record: .ai/repo/project/issues/I3379.yaml. Read it back with majordomus plan show I3379.