pub struct WorkspaceInspectionTruncationV1 {
pub walk_time_budget_exceeded: bool,
pub walk_entry_cap_exceeded: bool,
pub git_time_budget_exceeded: bool,
pub entries_visited: u64,
pub elapsed_ms: u64,
}Expand description
Additive: records why (if at all) a WorkspaceInspection was cut short
by the node’s own inner walk+git time/entry budget
(GATE4AGENT_NODE_WORKSPACE_INSPECTION_BUDGET_MS /
GATE4AGENT_NODE_WORKSPACE_INSPECTION_ENTRY_CAP) — distinct from
tree_truncated, which only reflects the walk’s fixed per-response caps
(WORKSPACE_TREE_MAX_ENTRIES / WORKSPACE_TREE_MAX_DEPTH). Every field
is #[serde(default)] and the field itself is optional on
WorkspaceInspection, so payloads produced before this field existed
still parse.
Fields§
§walk_time_budget_exceeded: boolThe directory walk stopped early because the shared walk+git time budget elapsed while entries were still being visited.
walk_entry_cap_exceeded: boolThe directory walk stopped early because it visited the configured entry cap’s worth of directory entries.
git_time_budget_exceeded: boolThe git phase (branch/status/log/worktree probes) was skipped or cut
short because the shared time budget was already spent by the walk;
see GitSnapshot::diagnostic for which probes ran.
entries_visited: u64Total directory entries the walk visited (pushed to entries or
not) before it stopped, for operator/log correlation.
elapsed_ms: u64Milliseconds actually spent inside the shared walk+git budget window before the response was returned.