You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Durable Execution And Recovery
Highlights
Added ExecutionService and ExecutionHandle for ordinary durable tasks on host-registered backends. Reconnect after a restart to inspect state, events, receipts, and budgets without a research contract.
Optional Codex Agent backend: Run workspace tasks with LightAgent(backend="codex").run("Summarize the workspace", workspace="./workspace"). This uses the locally installed and authenticated Codex CLI (tested protocol: 0.160.x on POSIX), not a model endpoint or a separate API key in LightAgent. The default backend does not require Codex. See the workspace execution guide for setup and limitations.
Unified the Job and Subagent lifecycle with leases, attempt fencing, cooperative cancellation, and explicit reconciliation when an external outcome is uncertain.
Added transactional Session and control-state updates, integrity checks, scoped messages and wakeups, durable budget accounting, and offline history backup and restore.
Added signed Provider attestation and explicit host trust approval. Signatures do not replace runtime policy, isolation, or operation-level approvals.
Preserved default Skills discovery and PyYAML in the base install. MCP, Mem0, Langfuse, LiteLLM, OSS/NOS, and signature verification are optional Python dependencies.
Fixed cancellation-token keyword detection and made LightDAG Worker factories handle positional-only, keyword-only, and no-argument callables (#126).
Compatibility And Scope
Ordinary run(), arun(), streaming, LightFlow, and LightDAG entry points remain available. Durable execution uses local SQLite and an explicit host backend; this release does not add distributed scheduling or a production UI.
Research functionality is separate in LightResearch. Legacy mode="persistent" keeps its research semantics and requires explicit LightResearch.enable_legacy_api() registration with a compatible extension. Older development wheels restricted to LightAgent <0.14.0 must be updated separately.