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

Abierto
#14,222 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
20/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
java

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Java
Estrellas
25k
Forks
6.6k
Merge medio
10 h 45 min
PR fusionados (30 d)
49

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de apache/skywalking

Todos los issues de apache/skywalking

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.