Caller-ID pool and reputation
Traced at commit ffe4e48 ·
libs/contracts/src/lib/did-pool.ts ·
libs/temporal/src/activities/{did-pool,dial-gate}.ts ·
libs/contracts/src/lib/breakers.ts
Summary
- A caller ID has five states:
WARMING,ACTIVE,THROTTLED,QUARANTINED,RETIRED. - A new number starts in
WARMING. It dials a small, rising volume. - The warm-up ramp is 10 business days. Nobody can shorten it.
- A number becomes
ACTIVEonly after the carrier confirms its registration. - The platform throttles a number with degraded health. The platform quarantines a number that continues to degrade.
- A quarantined number returns to
WARMING, never straight toACTIVE. - The platform checks reputation once each business day. The platform does not check reputation on each dial.
- This check refuses more dials than any other check in the gate.
Workflow 1 — the states
The five states
WARMING— the number dials a small daily volume. The volume rises across the ramp.ACTIVE— the number dials at the full daily cap.THROTTLED— the number dials a reduced volume. Its health has degraded.QUARANTINED— the number does not dial. The number rests.RETIRED— the number leaves the pool. It does not return.
The transitions
WARMINGtoACTIVE— the ramp is complete and the carrier has confirmed the registration.ACTIVEtoTHROTTLED— health degrades. The platform reduces volume before it stops the number.THROTTLEDtoQUARANTINED— health continues to degrade. Reduced volume did not save the number.QUARANTINEDtoWARMING— the carrier clears the label. The number restarts the ramp.- Any state to
RETIRED— the number leaves the pool.
Read the two asymmetries. Escalation says that reduced volume did not work. The platform therefore stops the number. A number that stays throttled loses reputation slowly. The platform stops it instead. A cleared label does not restore trust. A number returned to full volume earns the same label again within days. A second label is harder to clear than the first.
Registration
- Registration with the carrier is a precondition for
ACTIVE. - It is not an administrative formality.
- An unregistered number that dials at volume matches the profile the carrier models detect.
- Registration afterwards does not remove that label.
Workflow 2 — the daily reputation sweep
What the sweep does
- The platform sweeps reputation once each business day.
- The platform does not check reputation on each dial.
- A per-dial check would add a vendor network call to every call the platform makes.
- A number therefore carries the label of yesterday into today.
- If the vendor entitlement is absent, the platform skips the sweep. The platform does not estimate the value.
Pool-level alarms
- The platform counts quarantines in a 24-hour window.
- Too many quarantines in that window opens a breaker.
- That pattern is the signature of a reputation collapse across the pool.
- The breaker stops the platform. It does not stop one number.
- The platform also watches the share of the pool quarantined across 7 days.
The dial gate — check 11 asks this pool for a number, and refuses 354,514 dials when none is free.