You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BUG-10: Capacity is simulated, so the auto-approval capacity guard always passes; delete thresholds lack requestToPeakRatio and openRequestOnNamespace #62
In-ProgressWork started and not complete; the comment gives the pull request or the jobbugSomething isn't workingclass:INVInnovation: a new feature, design, idea or methodclass:TDTTech debt: works today, but costs more to change, operate or upgradesev:mediumIncorrect data, a weak control or a slow service, with no direct lossstatus:partly-fixedPart of the work is fixed; the rest is a story or an owner action
What is wrong:core/capacity_backend.py answers fits/fresh from clusters.yaml sizes; reserve and release are no-ops; requestToPeakRatio and openRequestOnNamespace facts are never set. Phase 3 (cmapi-capacity) closes this; until then auto-approval on CRC does not test the guard. Raised by Opus (C10).
Where:cmapi/src/cmapi/core/capacity_backend.py:59 (reserve) and :62 (release). The lines exist at ecc5cb3.
How to prove it: Ask for more capacity than a cluster has free. The capacity guard of auto-approval must refuse. A new test in cmapi/tests/service/ shows it, not written yet.
Measured or inferred: Measured by reading the code. Nobody ran the guard against real capacity data.
Severity: Medium. The guard is a weak control, with no direct loss.
What must hold after the fix: The capacity answer comes from stored snapshots of cmapi-capacity. reserve and release change the reservations. The two delete facts are set from measured data.
Research: Not done yet.
Solution: Not written. Wave 7 ships cmapi-capacity and the real capacity guard (build-tracker.md).
Class: INV and TDT. The fix is the new service cmapi-capacity. The simulated backend is an earlier shortcut.
changed the title [-]Open: capacity is simulated, so the auto-approval capacity guard always passes; delete thresholds lack requestToPeakRatio and openRequestOnNamespace[/-][+]BUG-10: Capacity is simulated, so the auto-approval capacity guard always passes; delete thresholds lack requestToPeakRatio and openRequestOnNamespace[/+]on Nov 13, 2026
Work tag In-Progress. Evidence: merged part(s) of this issue: #394. The issue stays open for the rest; status:partly-fixed. Moved up from Backlog (records sweep 2026-11-19).
Found under this issue's migration 0011 by OB1 run 45 on CRC (2026-11-27): #744, the image has no time zone data, so psycopg logs a non-JSON warning in the migrate container and falls back to UTC. Low.
In-ProgressWork started and not complete; the comment gives the pull request or the jobbugSomething isn't workingclass:INVInnovation: a new feature, design, idea or methodclass:TDTTech debt: works today, but costs more to change, operate or upgradesev:mediumIncorrect data, a weak control or a slow service, with no direct lossstatus:partly-fixedPart of the work is fixed; the rest is a story or an owner action
Activity
[-]Open: capacity is simulated, so the auto-approval capacity guard always passes; delete thresholds lack requestToPeakRatio and openRequestOnNamespace[/-][+]BUG-10: Capacity is simulated, so the auto-approval capacity guard always passes; delete thresholds lack requestToPeakRatio and openRequestOnNamespace[/+]ephico2real2 commentedon Nov 19, 2026
Work tag In-Progress. Evidence: merged part(s) of this issue: #394. The issue stays open for the rest; status:partly-fixed. Moved up from Backlog (records sweep 2026-11-19).
#62 review fixes: one-lock snapshot of holds and totals, observation …
#62 a plan does not count the open request's hold on its own namespac…
#62 record: the double count of a namespace's own hold, found by CI's…
Merge pull request #725 from ephico2real2/fix/62-capacity-guard
Merge origin/main into feat/26-adoption: #725's capacity holds beside…
ephico2real2 commentedon Nov 27, 2026
Found under this issue's migration 0011 by OB1 run 45 on CRC (2026-11-27): #744, the image has no time zone data, so psycopg logs a non-JSON warning in the migrate container and falls back to UTC. Low.