> ## Documentation Index
> Fetch the complete documentation index at: https://committ.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# March 8th, 2026

> Architected Sovereign Enforcement, pre-emptive redemption arcs, high-urgency visual timers, and 'on-the-fly' CAPTCHA state machines.

# March 8th, 2026

**Sovereign Enforcement & High-Fidelity Redemption**

Today brought a massive hardening to the accountability engine, ensuring that automated penalty jobs operate independently of deleted tasks, while introducing a thrilling 'Redemption Arc' UI for users attempting to waive off failures at the last minute.

### 1. Sovereign Instance Execution & Enforcement

We decoupled the penalty logic so that task instances are graded as independent contracts:

* **Parent-Task Independence:** The `firePenalty` worker now relies entirely on an immutable `instance.penalty` snapshot. It guarantees that an earned penalty fires even if the user deletes the parent master habit to try and "hide" their failure.
* **Sovereign Grading:** Removed early exits in `runVerification`. The system now grades manual edits directly on their own merit, ensuring isolated tracker instances finish their lifecycle organically.
* **Proactive Defusal (The "Janitor"):** The core `Instances.delete` service now proactively cancels `enforcement_job_id` tasks when a habit is deleted correctly, preventing "Ghost Penalties."

### 2. Pre-emptive Waiver Sessions

We implemented a production-grade "Redemption Arc", letting users start solving challenges *before* the timeframe expires:

* **Server-Authoritative Arming:** Extracted `armAccountabilityContract` to support passing a custom `baseTime`. The backend mutation `startSession` dictates exactly when the redemption window closes to prevent clock manipulation.
* **Polymorphic Challege Initialization:** Refactored the `waiver_state` schema using a Strategy pattern to route to specific handlers like `CaptchaHandler`, which generates secure, difficulty-aware secrets inside a database Vault.

### 3. High-Urgency Verification UI

We concentrated the "Redemption" experience into a high-density "cockpit" dashboard within the Verification Status Circle:

* **Integrated Live Timer:** Built an `InternalTimer` utilizing 1s ticking logic that counts down exactly how much time remains to resolve the waiver.
* **Urgency Heartbeat:** Integrated a Reanimated pulsing effect. The timer and SVG ring turn from Blue to a flashing Red when `< 5 minutes` remain in the redemption window.
* **Dual-Data Stack:** The circle dynamically updates to show the live challenge ratio (e.g., "3/7" CAPTCHAs solved) stacked directly above the MM:SS timer.
* **Visual Consequences:** Added native thumbnails to the failing status ring so users are forced to look at the exact "Embarrassing Photo" that will be published if they let the timer expire.

### 4. "On-The-Fly" CAPTCHA State Machine

To guarantee security and a premium UI experience, we re-architected how CAPTCHAs are served during the penalty waiver:

* **Lazy Dequeue:** Replaced bulk generation with a "deal-one-at-a-time" sequence to prevent users from predicting or leaking all secrets at once.
* **Submit & Flip:** The `verifyCaptchaChallenge` backend handler ensures atomic puzzle grading and triggers automated penalty job cancellation immediately upon the user hitting their solution quota.
* **Modular Views:** Decoupled the challenge logic from the standard modal out into `CaptchaWaiverView`, making the system easily extensible to "Paragraph" or "Physical Run" waivers in the future.
