%%{init: {'theme':'base', 'themeVariables': {
'primaryColor':'#FFB3BA',
'primaryTextColor':'#000',
'primaryBorderColor':'#FF8B94',
'lineColor':'#BAE1FF',
'secondaryColor':'#BAE1FF',
'tertiaryColor':'#FFFFFF'
}}}%%
flowchart LR
A[Analyze Current Code] --> B[Design Change]
B --> C[Implement on Issue Branch]
C --> D[Open PR]
D --> E[Validation and Fixes]
E --> F[Merge to Main]
F --> G[Monitor Workflows]
G --> H[Close Issue and Cleanup]
Problem statement
Capability 43's locked rate-limit + abuse-detection contract:
This issue ships the APIM rate-limit policies plus the per-Entra-OID counter store and the manual-review-flag pipeline.
Acceptance criteria
POST /api/preflight: 1 / minute per Entra OIDPOST /api/deploy: 3 active concurrent + 3 starts / 24 h per Entra OID, 10 starts / 30 d per Entra OID/deploy/preflightafter the third pre-flight attempt within 1 h. Free option: hCaptcha or reCAPTCHA v3. Server-side verification before counting the attempt.Retry-Afterheader and human-readable JSON body.Risks and dependencies
Blocked by: epic 41 #1020; C1 #1027 (APIM + Redis/Cosmos); C5 #1031 (OBO/auth); R2 epic #1008; R1 epic #990.
Evidence links
ADR impact
Branch
feature/<this-issue-id>-deploy-rate-limit-and-abuse-detectionper ADR-018.BPMN process
%%{init: {'theme':'base', 'themeVariables': { 'primaryColor':'#FFB3BA', 'primaryTextColor':'#000', 'primaryBorderColor':'#FF8B94', 'lineColor':'#BAE1FF', 'secondaryColor':'#BAE1FF', 'tertiaryColor':'#FFFFFF' }}}%% flowchart LR A[Analyze Current Code] --> B[Design Change] B --> C[Implement on Issue Branch] C --> D[Open PR] D --> E[Validation and Fixes] E --> F[Merge to Main] F --> G[Monitor Workflows] G --> H[Close Issue and Cleanup]