Discussion: expose structured agent-log sink loss diagnostics

オープン
#501 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
15/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
活発
技術スタック
typescript
領域
observability

調査の方向性

Start in apps/node-services/src/agent/observability/agent-log-file-sink.ts, where the dropped and failed counters are closure-private, and in apps/node-services/src/agent/main.ts, where the flush/close boolean is discarded on shutdown. Diagnostics reads from apps/desktop/src/main/diagnostics.ts. This is a discussion: the first step is for maintainers to confirm a real consumer and its contract. Done means that decision is recorded, not that code is written.

索引モデルが issue の本文から書いたものです。

説明

The agent file-backed log sink already handles bounded failures and emits agent_log.file_loss warnings (worker_unavailable, write_failed, buffer_full, drain_timeout). Its dropped/failed counters are closure-private, and the production shutdown path discards the flush/close boolean. Diagnostics currently selects .json/.log, not .ndjson. Warnings may still be visible in collected logs; the gap considered here is a structured loss summary, not missing logging.

Would maintainers want that summary exposed through an existing diagnostics read path? I would first like to confirm the real consumer and its contract. I would not add an unused accessor, change /readyz to not-ready for observability loss, introduce new persistence or OTLP/SDK plumbing, or change redaction.

This does not take over #490's model failure-reason work or #492/WHI-768's diagnostics collection. If the existing warning is sufficient, no code change is needed.

Evidence: sink, shutdown, diagnostics.

AI-assisted code-review proposal. No new-feature reproduction or user-facing defect claim. The earlier local baseline exercised the existing log pipeline only; it does not validate this proposed feature.

主要言語
TypeScript
スター
3.8k
フォーク
360
平均マージ
8時間 10分
マージ済み PR(30日)
540

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

simplexai-labs/linger のほかの issue

simplexai-labs/linger の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。