pessimistic-offline-lock-implementer - Implement Pessimistic Offline Locking
Implements Pessimistic Offline Lock with a durable lock manager, lock protocol, aggregate locking, implicit locking, and tests.
Tags
Updated: 2026-12-02Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Choose the lock type
- Design durable lock storage
- Implement atomic lock acquisition
- Implement lock release operations
- Define timeout and cleanup policies
- Specify lock acquisition protocols
- Add aggregate-level locking
- Add implicit lock wiring
- Define force-release authorization
- Audit locking anti-patterns
- Write concurrency and timeout tests
- Produce an implementation plan
Inputs
- Persistence-layer codebase
- Session-management code
- Schema files
- Lock type decision
- Entities requiring locking
- Aggregate boundaries
- Deployment topology
- Session management approach
- Schema mutability
- Stack and ORM
- Expected edit duration
Outputs
- Pessimistic Offline Lock implementation plan
- Durable lock manager implementation
- Lock table schema
- Lock protocol specification
- Aggregate-lock integration
- Implicit-lock integration
- Lock-owner and force-release UX specification
- Concurrent-acquire test
- Timeout test
Requirements
- Relational database
- ORM or hand-rolled persistence
- Multi-step editing workflow
- Session management
- Schema-change capability when needed
