browser-lease-manager

Manage per-origin browser leases with a state machine and persistence.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/FSGER9326/My-Anbennar --skill browser-lease-manager
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: browser-lease-manager
Source: https://github.com/FSGER9326/My-Anbennar/tree/main/skills/browser-lease-manager
Command: npx skills add https://github.com/FSGER9326/My-Anbennar --skill browser-lease-manager

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

browser leases enforce a single-owner lifecycle for per-origin browser tabs, preventing session bleed and race conditions when multiple tasks try to use the same origin.

Core Features & Use Cases

  • Lease model ensures one active tab per origin/account/profile, preventing conflicts.
  • State machine handles active, cooldown, and retired states with automatic recovery where possible.
  • Session handoff and persistence across restarts to maintain continuity.

Quick Start

Acquire a lease for a target origin to have the system manage the tab lifecycle automatically.

Frequently Asked Questions about browser-lease-manager

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent browser session bleed when multiple tasks access the same origin?

Browser session bleed is prevented by enforcing a single-owner lease per origin, serializing tab access to stop race conditions and cross-task conflicts. A lease state machine manages active, cooldown, and retired states to ensure deterministic tab ownership.

How does browser tab lease management handle automated recovery from transient failures?

Browser tab lease management handles automated recovery by tracking health metrics like lastHealthAt and failureCount. The lease state machine transitions through active, cooldown, and retired states, persisting to the user's home directory to enable session handoff across restarts.

Can I maintain browser tab ownership across application restarts using session handoff?

Yes, you can maintain browser tab ownership across restarts through session handoff. The lease system persists lease states to the user's home directory, ensuring continuity and deterministic tab ownership even after transient failures or application restarts.

What's the best way to serialize access to browser tabs for deterministic per-origin workflows?

The best way to serialize browser tab access is acquiring a per-origin browser lease. This enforces a single-owner lifecycle for tabs, preventing race conditions and session bleed by managing the tab lifecycle through a state machine with active, cooldown, and retired states.

Why do I need a lease state machine for browser tab lifecycle management?

A lease state machine is needed for browser tab lifecycle management to handle active, cooldown, and retired states automatically. It tracks health with lastHealthAt and failureCount, ensuring automated recovery from transient failures and preventing cross-task conflicts on the same origin.

Does per-origin browser lease management work for workflows requiring one active tab per profile?

Yes, per-origin browser lease management works for workflows requiring one active tab per profile. The lease model ensures a single active tab per origin, account, or profile, preventing conflicts and managing session handoff across restarts.