[RCA] Deliver a public-safe offline incident diagnosis workflow

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

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
20/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
java

調査の方向性

Start by reading the required sub-issues #14223–#14237 and their merge prerequisites; this tracking parent does not identify implementation files or test selectors. The issue describes the end-to-end workflow and completion fixtures, but leaves the individual implementation contracts to its children. Done means all required children merge and their focused acceptance checks pass, followed by a separate decision on closing this parent.

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

説明

database feature

Summary

Deliver a public-safe offline RCA workflow for BanyanDB: the reporter collects bounded diagnostic evidence locally, selects and sanitizes a useful subset, explicitly approves an archive and transfers it manually. The maintainer validates the bundle and diagnoses it using local source and a prevalidated sandbox, without live-database access.

Scope

Native-log storage is already implemented. This milestone covers incident collection and offline diagnosis, not another log-storage implementation.

Evidence sources: native logs, per-component versions and identity mappings, FODC metric windows, crash records/stacks, memory-pressure profiles, and existing query-execution traces.
Raw profiles are collected privately and excluded from default public release. Unsupported artifacts must be explicitly listed as omitted; the workflow must not promise all raw evidence can safely be shared.

Completion criteria

  • A slow-query fixture completes the reporter-to-maintainer path, with evidence provenance, component versions and explicit coverage gaps.
  • A memory-pressure/crash fixture collects relevant available metrics, stacks and profiles; private-only artifacts have explicit omission records.
  • Typed sanitizers remove canary secrets while retaining independently specified diagnostic fields; unknown content fails closed.
  • Human approval is bound to reviewed contents; archive tampering and unsafe extraction are rejected.
  • Offline diagnosis cites evidence and source, uses an enforced sandbox for reproduction, and reports insufficient evidence rather than inventing a cause.
  • All required children merge and their focused acceptance checks pass. Closing this parent is a separate decision.

Implementation boundaries

  • Bounded collection with truthful partial/unknown coverage is sufficient. Advanced window splitting/pagination is excluded.
  • No live collection UI, automatic upload/posting, automatic query replay, new profiling service or public raw-profile release.
  • Skills orchestrate tested CLI operations; prompts are not the enforcement boundary for privacy or sandboxing.
  • The analysis skill requires an existing tested sandbox and an agreed evaluation harness. Reporter/analysis skills need an evaluation approach appropriate to skill changes, not an unmodified Go-only automation profile.

Readiness

Tracking parent — never an automated implementation job. Children are planning contracts, not claims of completed RED/GREEN verification. Merge prerequisites and revalidate exact schemas, limits, callers and test selectors before queueing. Do not add all children to Backlog.

Required sub-issues

  • #14223 — Collect a bounded native-log incident window
  • #14224 — Record component versions and incident-local identity mapping (blocked by #14223)
  • #14225 — Collect bounded FODC metric windows (blocked by #14223)
  • #14226 — Collect FODC crash records and reporter-provided crash stacks (blocked by #14223)
  • #14227 — Download FODC memory-pressure profiles into the private workspace (blocked by #14223)
  • #14228 — Import request-based query traces as incident evidence (blocked by #14223)
  • #14229 — Create a reviewable evidence-selection plan (blocked by #14223)
  • #14230 — Sanitize native logs and component inventory (blocked by #14224, #14229)
  • #14231 — Sanitize metric evidence (blocked by #14225, #14230)
  • #14232 — Sanitize structured crash evidence (blocked by #14226, #14230)
  • #14233 — Sanitize query-execution traces (blocked by #14228, #14230)
  • #14234 — Seal a human-reviewed public incident archive (blocked by #14230)
  • #14235 — Add the reporter RCA collection and release skill (blocked by #14227, #14234, #14231, #14232, #14233)
  • #14236 — Validate and quarantine a bundle for offline maintainer use (blocked by #14234)
  • #14237 — Add evidence-grounded offline RCA analysis skill (blocked by #14236)

Dependency model

The dependency graph describes implementation order, not mandatory evidence collection order. #14223 contains both the first native-log adapter and the minimal shared bydbctl rca command/workspace/manifest support. Other collectors depend only on that shared support. They must run independently of native logging and must not query the log stream implicitly.

Likewise, #14230 delivers shared sanitizer/alias infrastructure alongside its first typed transform. Later sanitizers reuse that infrastructure, not native-log contents. No separate framework-only issue is introduced.

Issue Direct implementation prerequisites Contract consumed
#14223 None Initial shared RCA plumbing plus usable native-log collector
#14224 #14223 source-neutral private workspace/manifest and CLI registration
#14225 #14223 source-neutral collection command, artifact writer, limits and source-status/coverage contract
#14226 #14223 source-neutral collection command, private workspace and artifact/status contract
#14227 #14223 source-neutral collection command, private workspace and artifact/status contract
#14228 #14223 source-neutral private workspace, artifact registration and CLI integration
#14229 #14223 source-neutral artifact inventory/manifest consumed by selection
#14230 #14224, #14229 component inventory and explicit identity-mapping format; selection/omission contract; delivers the initial shared sanitizer and alias policy
#14231 #14225, #14230 metric artifact format; shared sanitizer dispatch, candidate output, alias policy and transformation-report contract
#14232 #14226, #14230 structured crash artifact format; shared sanitizer dispatch, candidate output, alias policy and transformation-report contract
#14233 #14228, #14230 supported query-trace artifact format; shared sanitizer dispatch, candidate output, alias policy and transformation-report contract
#14234 #14230 candidate-release and review-report contract, not native-log content
#14235 #14227, #14231, #14232, #14233, #14234 private profile collection command; metric sanitizer and its transitive collector dependencies; crash sanitizer and its transitive collector dependencies; query-trace sanitizer and its transitive collector dependencies; approval-bound archive sealing; transitive dependencies cover inventory, selection and base sanitization
#14236 #14234 public archive schema, hashes and member rules; not a requirement to run sealing locally
#14237 #14236 validated intake and coverage/version report
Independent runtime paths
  • Metrics-only: FODC metrics → selection → metric sanitization → approval/sealing → intake → analysis. No native-log collection is required.
  • Crash/profile path: collect the available FODC evidence independently; raw profiles remain private with explicit public omission records.
  • Supplied trace: local trace import → selection → trace sanitization; no live query or native-log access is required.
  • #14235 orchestrates only the sources relevant to an incident. Missing sources produce coverage gaps, not an unconditional failure of all collection.
  • #14236 validates an archive independently of the reporter workspace or skill. #14237 depends on that intake, not on #14235.
  • #14237 additionally requires an existing validated sandbox and an agreed evaluation harness before queueing.

The source collectors, inventory and selection can be developed independently after the shared #14223 contract merges. Sanitizer adapters can proceed independently after their own artifact format and the shared #14230 contract merge. Sealing and intake need not wait for every evidence adapter. Full umbrella completion still requires all planned children and the cross-issue scenarios.

主要言語
Java
スター
25k
フォーク
6.6k
平均マージ
10時間 45分
マージ済み PR(30日)
49

環境構築

はじめの一歩

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

apache/skywalking のほかの issue

apache/skywalking の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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