Example MR comment: api-gateway!7640: invitee tender requests lose lastStatusNegotiation (3 Nov)
A real past change, replayed: the comment the developer would have seen on the merge request that carried it, had the guard existed.
- Source: slabcom/api-gateway MR !7640 at 0559214f (src/authz/rules/tender.rules.ts lines 554-598, src/authz/project-access.guard.ts lines 528-532)
- What happened: The gateway's authorisation hardening (batch 4) added tender-invitee rules with dropBody: ['lastStatusNegotiation', 'eotDate'] for POST tenders/action and PUT tenders/tender-action/update/:UUID; the access guard deletes those fields from the body before the request reaches project-services. The invitee forms send the previous submission's negotiation status in lastStatusNegotiation, and project-services stores it on the new submission as tender_actions.status_negotiation. Without it, an invited subcontractor's resubmission can lose an accepted ('ACCEPT') status, and Procurement Executive Summary (status_negotiation = 'ACCEPT') can drop that tender. Found on 13 Nov by Claude reading the code (W05); caught by the request-field rule (W11) without a review decision. The diff is the two real hunks that hold the rules and the guard lines that apply them, with their real line numbers; the MR's other files are route permission tables reviewed Safe.
- Verdict: Affected: Affected 1, Safe 49. Expected labels:
eval/cases/r09_2026-11-03_gateway_drops_negotiation_status.json. - Rerun:
uv run mr-check --case r09
Report impact check: Affected. This MR changes data that 1 certified Superset dashboard shows. The reports keep working, but their numbers or labels can change.
Why: tender.rules.ts: lastStatusNegotiation is now dropped from the request before it reaches the service (tender.rules.ts). It carries tender_actions.status_negotiation in project-services, which the reports read, so the values stored there can change or stop being saved for the requests this applies to. Check what the receiving service does without it. (lines: tender.rules.ts line 564, tender.rules.ts line 593)
| Dashboard | Verdict | Charts it touches |
|---|---|---|
| Procurement Executive Summary | Affected | Procurement Executive Summary |
How the change reaches each dashboard
- Procurement Executive Summary (Affected, medium confidence):
project_services.public.tender_actions→ dataset "DATASET_Procurement Executive Summary" → 2 charts: Procurement Executive Summary, Procurement Executive Summary
Checked against the 50 published and certified Superset dashboards (map built 2026-11-17) by the Report Impact Checker AI Tool (read-only). Questions: Lucas (BI).