Identity projection failures must not report themselves as CI enforcement failures #22

Stängd
öppnade 2026-08-02 12:31:01 +00:00 av supernaut · 0 kommentarer
Ägare

reconcileIdentity sets the same degraded flag the Actions step uses, and
writeReconcilerMetric publishes that single boolean as
gitborg_reconciler_actions_enforcement_degraded. So a failed full_name/email write or a failed
rename raises an alert that says "Reconciler is not applying Actions (CI) tier enforcement" and
tells the operator to broaden the token scope. The token is fine; an identity value was refused.

It is also permanent: the projection recomputes the same diff every run, so a value the git host
will never accept produces one warning per tick and a stuck degraded flag, under the wrong name.

The two identity gauges we do publish count successes only. Nothing counts failures.

What to do

  • give the identity projection its own degraded flag, separate from the Actions one
  • publish gitborg_reconciler_identity_projection_degraded and a
    gitborg_reconciler_identity_failures count, with HELP text that names the likely cause
    (a value valid upstream but refused by the git host — reserved name, taken name, over-length
    email)
  • keep the existing Actions gauge meaning exactly what it says
  • cover both with unit tests asserting that an identity failure does not move the Actions gauge

Relates to the identity validation epic on the roadmap (bitborg-docs#66).

`reconcileIdentity` sets the same `degraded` flag the Actions step uses, and `writeReconcilerMetric` publishes that single boolean as `gitborg_reconciler_actions_enforcement_degraded`. So a failed `full_name`/email write or a failed rename raises an alert that says "Reconciler is not applying Actions (CI) tier enforcement" and tells the operator to broaden the token scope. The token is fine; an identity value was refused. It is also permanent: the projection recomputes the same diff every run, so a value the git host will never accept produces one warning per tick and a stuck degraded flag, under the wrong name. The two identity gauges we do publish count successes only. Nothing counts failures. ## What to do - give the identity projection its own degraded flag, separate from the Actions one - publish `gitborg_reconciler_identity_projection_degraded` and a `gitborg_reconciler_identity_failures` count, with HELP text that names the likely cause (a value valid upstream but refused by the git host — reserved name, taken name, over-length email) - keep the existing Actions gauge meaning exactly what it says - cover both with unit tests asserting that an identity failure does **not** move the Actions gauge Relates to the identity validation epic on the roadmap (bitborg-docs#66).
Logga in för att delta i denna konversation.
Ingen milstolpe
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-auth-reconciler#22
Ingen beskrivning angiven.