pub enum FacetKind {
SourceHistory,
ConfidentialRuntime,
Collaboration,
AgentTimeline,
}Expand description
Durable facet a repository fact belongs to.
Closed on purpose: a newly added variant is a compile failure at every
match until its checkout, land, projection, sync, and purge laws are
written down.
Variants§
SourceHistory
Immutable source states and trees. The only facet Git Projection, checkout, and land may select.
ConfidentialRuntime
Encrypted runtime profiles (env/secret store). Never a checkout, land, or Git Projection target.
Collaboration
Collaboration operations (discussions, context). Adjacent metadata.
AgentTimeline
Agent timeline operations. Adjacent execution provenance.
Implementations§
Source§impl FacetKind
impl FacetKind
pub const fn as_str(self) -> &'static str
Sourcepub const fn source_history_laws(self) -> Option<SourceHistoryLaws>
pub const fn source_history_laws(self) -> Option<SourceHistoryLaws>
Source History laws, or None when this facet cannot be checked out,
landed, or selected by Git Projection.
pub const fn may_checkout(self) -> bool
pub const fn may_land(self) -> bool
pub const fn git_projection_visits(self) -> bool
Sourcepub const fn require_worktree_materialization(
self,
) -> Result<SourceHistoryLaws, Self>
pub const fn require_worktree_materialization( self, ) -> Result<SourceHistoryLaws, Self>
Refuse worktree materialization unless this is Source History.
Sourcepub const fn require_land(self) -> Result<SourceHistoryLaws, Self>
pub const fn require_land(self) -> Result<SourceHistoryLaws, Self>
Refuse land/merge-into-HEAD unless this is Source History.
Sourcepub const fn require_git_projection(self) -> Result<SourceHistoryLaws, Self>
pub const fn require_git_projection(self) -> Result<SourceHistoryLaws, Self>
Refuse Git Projection unless this is Source History.