Scorecards
A node's measured performance over a rolling window, with a grade (aggregate NodeScorecard).
Introduction
REST contract of the node-performance bounded context of the retail network, derived from retail-network-docs model/model.yaml (contexts[node-performance].rest, .aggregates, conventions.errors) and adjusted by the cross-context decisions (G20, G33, E18). Node Performance grades every node from observed facts only (purchase orders issued, accepted, rejected and expired, packages handed over against requiredShipBy, promises kept or broken, inventory feeds applied) over a 7-day and a 30-day window. A scorecard below the observation minimum (50) is PROVISIONAL. Both routes are read-only, so none takes an Idempotency-Key. vendor-connectivity calls GET /scorecards/{nodeId} in-organization to serve a vendor's scorecard read; delivery-promise and order-sourcing do not call this API, they consume NodeScorecardUpdated. No authentication, consistent with the rest of the retail network. Errors are RFC 9457 problem details (application/problem+json); the problem types are the 400 request ones (malformed-request-query, invalid-limit, invalid-cursor, unknown-query-parameter), not-found (404), validation-failed (422) and internal-error (500, a panic answered by the recoverer or an error no problem maps to; the detail never leaks internals).
Get both scorecards (7-day and 30-day) of one node (GetScorecard)
Returns the 7d and the 30d scorecard of the node, in that order. A scorecard exists from the first observation recorded for the node, so a node nothing was observed about answers not-found.
List the scorecards whose current grade matches (ListScorecardsByGrade)
Lists every scorecard whose current grade is the one given, ordered by scorecardId ascending, one page at a time. The model names no window filter and no caller; the optional window filter and the keyset pagination (limit, cursor) are additive (ADR 0002, A18; ADR 0012).
Scorecards
Scorecards