{"version":"2.1.265","anchor":"requestshaperequestnoninteractiveworkflowphase-threaded-th","canonical_anchor":"agent-spawn-telemetry-records-workflow-phase-and-non-interac","heading":"Agent spawn telemetry now records request shape, non-interactive flag, and workflow phase","tier":"internal","area":"Telemetry","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.265\/e\/requestshaperequestnoninteractiveworkflowphase-threaded-th","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.265","markdown":"### Agent spawn telemetry now records request shape, non-interactive flag, and workflow phase\n\nSubagent launches now report whether a request is foreground\/background, non-interactive, and its workflow phase to telemetry\n\n**Unclear.** What workflowPhase records and what this telemetry is used for is not stated.\n\n**What**\n\n- Agent\/task spawn telemetry now includes optional `workflowPhase`, `requestShape`, and `requestNonInteractive` fields when present.\n\n- A new helper computes `{requestShape, requestNonInteractive}` for each subagent launch: `requestShape` is `'foreground'` or `'background'` depending on how the subagent was launched, and `requestNonInteractive` is a boolean. These are captured at subagent launch time, propagated through to teardown, and merged into telemetry-adjacent objects in several places, including worktree teardown and subagent tool launch options.\n\n- Relatedly, another new helper scans queued messages for a `SubagentStart` hook's additional context and for skill-loading metadata (`isSkillLoadingMetadata`), computing `hookContextCarried` and `carriedPreloads` so hook context and preloaded skill state carry across resumed, skill-loaded turns.\n\n**Why** This gives more detail in telemetry about how and why subagents are launched (foreground vs. background, interactive vs. not, and at what point in a workflow), and ensures hook context and skill preloads aren't lost when a subagent's turn is resumed after loading a skill.\n\n- Area: Telemetry\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5"}