Skip to main content

set_tier

Function set_tier 

Source
pub fn set_tier(
    path: &Path,
    object_type: &str,
    object_id: &str,
    new_tier: AccessTier,
    actor: &str,
    reason: &str,
) -> Result<StateCommandReport, String>
Expand description

v0.51: Re-classify the access tier of a finding / negative_result / trajectory / artifact. Emits a tier.set canonical event so the reclassification is replay-deterministic and auditable.

object_type must be one of finding, negative_result, trajectory, or artifact. The function captures the object’s previous tier for the event payload so a downstream auditor reading the event log can reconstruct the full classification history without re-deriving it from prior state.