/ docs · functional specification

The full platform
functional reference.

Every functional area of AI API Mapper documented at implementation depth so architects, security reviewers, and platform engineers can evaluate the product with real technical context.

Jobs Worker · Retention & lifecycle

Jobs Worker Retention And Data Lifecycle

Purpose

This functional area applies scheduled data retention rules.

Main Capabilities

  • governance audit retention
  • inactive refresh-token session cleanup
  • device flow session expiry and purge
  • scheduled cleanup execution

How It Works

Each nightly run applies retention rules consistently, covering:

Governance audit records — records older than the configured audit retention window are deleted.

Refresh token sessions — inactive sessions past their retention window (expired and not revoked, or revoked) are deleted.

Device-flow authentication sessions — sessions from abandoned or completed device-flow logins are expired and then purged once they are past the configured retention window, so a session that has just become eligible is not removed before operators or auditors have had a chance to see its final state.

Functional Value

This area helps the platform control data growth and maintain operational hygiene over time. Without it, device flow sessions from abandoned authentication attempts would accumulate alongside old audit and token records.