Skip to main content

Module entities

Module entities 

Source

Structs§

Applied
Hub-internal LWW guard: the newest event applied per entity. id = “{item_type}:{item_id}”. ApplyLogEntry consults this before emitting an unwrapped event so that out-of-arrival-order events cannot clobber newer state (CLIs get the same guarantee by sorting the full log before replay; the hub applies incrementally and needs the marker).
AppliedCount
AppliedId
AppliedQuery
Claim
Advisory claim. id = task_id, so a SET overwrites any prior claim and “newest wins” falls out of LWW replay order. Ignored after ttl expires.
ClaimCount
ClaimId
ClaimQuery
Comment
Append-only comment. id = uuid.
CommentCount
CommentId
CommentQuery
CommitFact
Commit-graph slice: sha -> parent shas. id = commit sha (hex) — content addressed and immutable (a sha’s parents never change), so publication is idempotent. Lets git-free nodes (the hub) resolve ancestry.
CommitFactCount
CommitFactId
CommitFactQuery
CountAllApplieds
CountAllClaims
CountAllComments
CountAllCommitFacts
CountAllDependencys
CountAllLogEntrys
CountAllProjects
CountAllRefFacts
CountAllStatusChanges
CountAllTasks
CountApplieds
CountClaims
CountComments
CountCommitFacts
CountDependencys
CountLogEntrys
CountProjects
CountRefFacts
CountStatusChanges
CountTasks
DeleteApplied
DeleteAppliedArgs
DeleteAppliedResult
DeleteApplieds
DeleteAppliedsArgs
DeleteAppliedsResult
DeleteClaim
DeleteClaimArgs
DeleteClaimResult
DeleteClaims
DeleteClaimsArgs
DeleteClaimsResult
DeleteComment
DeleteCommentArgs
DeleteCommentResult
DeleteComments
DeleteCommentsArgs
DeleteCommentsResult
DeleteCommitFact
DeleteCommitFactArgs
DeleteCommitFactResult
DeleteCommitFacts
DeleteCommitFactsArgs
DeleteCommitFactsResult
DeleteDependency
DeleteDependencyArgs
DeleteDependencyResult
DeleteDependencys
DeleteDependencysArgs
DeleteDependencysResult
DeleteLogEntry
DeleteLogEntryArgs
DeleteLogEntryResult
DeleteLogEntrys
DeleteLogEntrysArgs
DeleteLogEntrysResult
DeleteProject
DeleteProjectArgs
DeleteProjectResult
DeleteProjects
DeleteProjectsArgs
DeleteProjectsResult
DeleteRefFact
DeleteRefFactArgs
DeleteRefFactResult
DeleteRefFacts
DeleteRefFactsArgs
DeleteRefFactsResult
DeleteStatusChange
DeleteStatusChangeArgs
DeleteStatusChangeResult
DeleteStatusChanges
DeleteStatusChangesArgs
DeleteStatusChangesResult
DeleteTask
DeleteTaskArgs
DeleteTaskResult
DeleteTasks
DeleteTasksArgs
DeleteTasksResult
Dependency
blocker blocks blocked. id = “{blocker_task_id}->{blocked_task_id}” — deterministic, so dep add is idempotent and dep rm is a plain DEL.
DependencyCount
DependencyId
DependencyQuery
GetAllApplieds
GetAllClaims
GetAllComments
GetAllCommitFacts
GetAllDependencys
GetAllLogEntrys
GetAllProjects
GetAllRefFacts
GetAllStatusChanges
GetAllTasks
GetAppliedById
GetAppliedsByIds
GetAppliedsByQuery
GetClaimById
GetClaimsByIds
GetClaimsByQuery
GetCommentById
GetCommentsByIds
GetCommentsByQuery
GetCommitFactById
GetCommitFactsByIds
GetCommitFactsByQuery
GetDependencyById
GetDependencysByIds
GetDependencysByQuery
GetLogEntryById
GetLogEntrysByIds
GetLogEntrysByQuery
GetProjectById
GetProjectsByIds
GetProjectsByQuery
GetRefFactById
GetRefFactsByIds
GetRefFactsByQuery
GetStatusChangeById
GetStatusChangesByIds
GetStatusChangesByQuery
GetTaskById
GetTasksByIds
GetTasksByQuery
LogEntry
Hub transport wrapper for one levi event. id = the event’s content address (git blob OID of its CBOR bytes); payload = base64(CBOR(MEvent)). Immutable and add-only, so “what are you missing” between a CLI and the hub is a set difference over LogEntry ids. A hub-side saga unwraps the inner event so dashboards query real entities.
LogEntryCount
LogEntryId
LogEntryQuery
Project
Project identity, minted by levi init. id = project UUID (32 hex chars), stored in the first event on the ref.
ProjectCount
ProjectId
ProjectQuery
RefFact
Observed branch head. id = “{project_id}:{branch}” — LWW: the newest observation wins.
RefFactCount
RefFactId
RefFactQuery
SearchComment
Search this entity type by query string.
SearchCommentResult
SearchTask
Search this entity type by query string.
SearchTaskResult
StatusChange
Append-only status-change record; never edited. Effective status of a task on a checkout is a fold over these, restricted to changes whose anchor_commit is an ancestor of HEAD (see resolve::effective_status).
StatusChangeCount
StatusChangeId
StatusChangeQuery
Task
A tracked task. NOTE (spec): status is not a field — it is derived per-checkout from crate::StatusChange records. Metadata edits are ordinary myko SET events; last-writer-wins by event created_at, ties broken by event id (levi sorts before replay — see materialize).
TaskCount
TaskId
TaskQuery

Enums§

Priority
StatusKind

Functions§

applied_id
dependency_id
foreign_dependency_id
Deterministic id for a cross-project dependency.
foreign_key
The ladder/cache key for a foreign blocker.
ref_fact_id