Skip to content

feat(coding-agent): trace CLI invocations - #96

Merged
Pepps233 merged 3 commits into
feat/runtime-telemetry-instrumentationfrom
feat/invocation-trace-lifecycle
Aug 23, 2026
Merged

Pepps233 merged 3 commits into
feat/runtime-telemetry-instrumentationfrom
feat/invocation-trace-lifecycle

Conversation

@Pepps233

@Pepps233 Pepps233 commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds durable trace persistence for persisted coding-agent CLI invocations, covering session replacements, operation segments, harness activations, diagnostics, and shutdown outcomes.

Keeps ephemeral invocations untraced and treats recorder failures as passive so telemetry cannot block normal CLI behavior.

Reasoning

Invocation telemetry already exists in memory, but process and session replacement boundaries were not persisted.
The composition root now owns one recorder, while session runtimes report lifecycle facts through passive hooks.

Changes

  • Adds immutable coding-agent session cursors and lifecycle observer hooks.
  • Attaches session replacements, harness activations, operation segments, diagnostics, and termination status.
  • Defines trace storage permissions and retention behavior.
  • Vendors the private trace runtime into coding-agent release artifacts.
  • Adds process-level coverage for startup, resume, replacement, ephemeral commands, signals, and recorder failures.

Testing

  • npm run check
  • ./test.sh
  • node ../../node_modules/vitest/dist/cli.js --run test/invocation-tracing.test.ts test/suite/agent-session-harness-version.test.ts test/session-manager-trace-cursor.test.ts

- Gives invocation traces stable session entry boundaries\n- Keeps session persistence independent from trace codecs
- Preserve telemetry across persisted session replacements
- Keep ephemeral commands and recorder failures passive
- Verify persisted, resumed, replaced, failed, and aborted invocations
- Protect ephemeral and degraded recorder behavior
@Pepps233 Pepps233 self-assigned this Aug 19, 2026
@Pepps233
Pepps233 requested a review from Issacboy123 August 19, 2026 03:07
@Pepps233
Pepps233 marked this pull request as ready for review August 19, 2026 05:24
@Pepps233
Pepps233 merged commit 48a3721 into main Aug 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant