Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.
TypeScript adeagent-ideai-agentsautomationbotclaude-codecodexghosttygrok-bothermes-agentmobile-appmuseopenclawopencodeorchestrationpiruntimeterminalworktreesyc-backed
import type { AgentChildWorkMembership, AgentChildWorkState } from './agent-status-child-work'
export type AgentChildWorkFreshnessInput = {
state: AgentChildWorkState
membership: AgentChildWorkMembership
parentEvidenceFresh: boolean
transportObservation: 'live' | 'unverifiable'
}
/** One decay rule for CLI and structured children; freshness never rewrites settled history. */
export function resolveAgentChildWorkFreshness(
input: AgentChildWorkFreshnessInput
): AgentChildWorkState {
if (input.membership === 'settled' || input.state === 'idle' || input.state === 'done') {
return input.state
}
return input.parentEvidenceFresh && input.transportObservation === 'live'
? input.state
: 'unverifiable'
}