HarnessContextCompactionOutcome
NexusLabs.Foundry.MicrosoftAgentFramework¶
NexusLabs.Foundry.MicrosoftAgentFramework.Diagnostics¶
HarnessContextCompactionOutcome Enum¶
Public, privacy-safe mirror of Harness.Context.HarnessContextAssemblyOutcome: the explicit
categorical outcome of one hybrid context compaction/assembly attempt. The two termination
members double as the explicit termination category carried by
HarnessContextDiagnostics — there is no separate, redundant termination-category
field.
Fields¶
WithinLimit 0
The verified entries fit the hard limit without accepting a size-reducing proposal or using deterministic fallback.
Reduced 1
Evicting recoverable rehydrated bodies and/or a verified, strictly-size-reducing reducer proposal brought the entries within the hard limit.
PreservationFallback 2
The deterministic preservation-only fallback — required entries, plus any retained optional context that still fit — reached the hard limit after the reducer failed to produce a fitting, strictly-reducing, verified proposal within the configured attempt bound.
Irreducible 3
Required (and, where retained, optional) content alone still exceeds the hard limit even after the deterministic fallback. A distinct termination — never a silently forwarded unchanged over-budget history.
ConcurrentMutationLimit 4
Injected entries kept invalidating in-flight proposals until the attempt budget was exhausted before a detected version change could be consumed as a restart. Never a success.