In T272032 we created a rate limit for assigning new Item IDs. There are still a considerable number of IDs being skipped (about 1% atm).
We want to effectively lower the rate limit for bad requests (requests that don't end up creating an Item), while still allowing creating at the same rate as it is possible right now (90/minute).
GIVEN a API user sending Item creation requests
WHEN a bad request is sent
THEN increase the counter for how much of the rate limit this account is currently using by more than for a successful request
- for Wikidata we add 9 to the rate limit counter if Item creation fails when ID generation has happened
- by default we add 0 to the rate limit counter if Item creation fails when ID generation has happened
- this value is configurable per installation
- code example in T272032#6834213