Session lifecycle
The episode lifecycle as an operator sees it: every open episode of this checkout's store rather than only the one the pointer follows, the episodes that can no longer close themselves, the commit this process is answering about against the commit the repository is on, what each provider's adapter declares it can do, and the tracked records a clone receives. Read from the local half of the layer and from the index; written by nothing here.
The episode lifecycle as an operator sees it: every open episode of this checkout's store rather than only the one the pointer follows, the episodes that can no longer close themselves, the commit this process is answering about against the commit the repository is on, what each provider's adapter declares it can do, and the tracked records a clone receives. Read from the local half of the layer and from the index; written by nothing here.
- module lifecycle
- builtin
- behaviorally_verified
- 5 capabilities
Capabilities
Each composed in this module's file; each with its own page.
lifecycle.closedThe tracked, durable projection of closed episodes: how many there are, how many closed on this branch, and the newest twenty. This is the only half of the subsystem that survives a clone; everything under .ai/local/ names this machine and travels nowhere.query · behaviorally_verified · majordomus_lifecycle_closed · GET /api/v1/lifecycle/closedlifecycle.episodesEvery open episode in this checkout's store, with the provider session that owns it, the worktree and branch it opened on, where it stands, and what the ledger last saw it do. `continuity.state` reports the one episode the pointer resolves to, which is right for a briefing and blind to every other window open on the same worktree.query · behaviorally_verified · majordomus_lifecycle_episodes · GET /api/v1/lifecycle/episodeslifecycle.providersPer provider: the lifecycle events its adapter declares in the provider's own vocabulary, whether it can archive prompts, and which of this repository's enforcement entries name its hook. Declared in share/providers.yaml and in the policy; never inferred from whether a shim happens to be on disk.query · behaviorally_verified · majordomus_lifecycle_providers · GET /api/v1/lifecycle/providerslifecycle.recoveryOpen records that can no longer close themselves, temporary files a killed close left in the tracked sessions section, whether the pointer has been migrated to the per-provider layout, and the arithmetic that says whether every episode the ledger has seen start is accounted for. Every finding carries the command that clears it.query · behaviorally_verified · majordomus_lifecycle_recovery · GET /api/v1/lifecycle/recoverylifecycle.runtimeThe commit the served index was built at, against the commit the repository is on, read on this call. A server that froze its index at start-up answers every question about a commit from hours ago with nothing in the answer saying so; this is the reading that can tell.query · behaviorally_verified · majordomus_lifecycle_runtime · GET /api/v1/lifecycle/runtime
Claims implemented in this module
Attached by the file that implements each claim; every one links to its page with the implementation and the test that proves it.