brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
persona-performance-tuningImprove Persona integration latency and throughput with event-driven processing, bounded reconciliation, and evidence-based measurement. Use when reducing polling or queue lag. Trigger with: "speed up Persona", "reduce inquiry polling", "tune Persona webhooks".
Independent GitHub snapshot · Automated classification · Original documentation governs
name: persona-performance-tuning description: >- Improve Persona integration latency and throughput with event-driven processing, bounded reconciliation, and evidence-based measurement. Use when reducing polling or queue lag. Trigger with: "speed up Persona", "reduce inquiry polling", "tune Persona webhooks". allowed-tools: Read, Grep, Write, Edit version: 2.0.0 argument-hint: '[latency-slo-and-volume]' model: inherit effort: high license: MIT author: Jeremy Longshore jeremy@intentsolutions.io tags:
Optimize the application around authentic webhook events and bounded GET reconciliation rather than parallel polling or speculative session creation. Measure customer latency, queue lag, rate headroom, and decision freshness separately.
Measure inquiry create, client start, verification progress, provider event creation, delivery, queue delay, reconciliation, and domain decision.
Use verified webhooks as the primary notification. Keep bounded polling only for recovery and customer-visible refresh with jitter and stop conditions.
Process unrelated accounts or inquiries concurrently while serializing consequential transitions per subject or inquiry.
Create or resume an inquiry session only when a client needs it; track issuance and prevent retries from consuming the default session allowance.
Cache template and non-sensitive configuration with versioned invalidation. Do not cache bearer credentials, session tokens, or stale identity decisions.
Adjust worker count, batch size, timeout, and reconciliation interval while protecting RateLimit-*, Quota-*, error, and stale-decision thresholds.
Performance work must preserve bearer-key isolation, raw webhook HMAC verification, and session-token confidentiality. Bypassing authentication or reconciliation is not an optimization.
Use Read and Grep to inspect application configuration, provider documentation, fixtures, schemas, tests, and redacted operational evidence before proposing a change. Use Write or Edit only for an approved implementation, configuration, test, runbook, or redacted receipt. Do not create, resume, approve, decline, redact, rotate, revoke, deploy, or otherwise mutate production Persona resources without explicit operator approval.
Return the environment, resource and event identifiers, API version, template context, source-contract fingerprint, evidence, unresolved risk, rollback state, and final decision without exposing bearer keys, webhook secrets, inquiry session tokens, raw identity documents, or unnecessary PII.
The service replaces five-second polling with verified events and a 90-second reconciliation timer. Median decision latency falls while request volume drops, and per-inquiry serialization prevents stale event transitions.
| Failure | Response |
|---|---|
| Queue lag improves but decisions regress | Roll back worker tuning and inspect per-subject ordering and reconciliation. |
| Rate headroom falls below 15 percent | Throttle background reads and preserve critical intake and reconciliation. |
| Session count grows unexpectedly | Stop eager resume calls and trace client retry behavior. |
Verify the result against the linked first-party evidence, the pinned API version, redacted contract fixtures, an expected failure path, and the documented rollback or manual-disposition path. A successful request is not proof of a successful identity decision.