Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

docs: define runtime trace observation model - #1901

Merged
DeusData merged 1 commit into
mainfrom
docs/issue-612-runtime-trace-model
Aug 29, 2026
Merged

DeusData merged 1 commit into
mainfrom
docs/issue-612-runtime-trace-model

Conversation

@DeusData

Copy link
Copy Markdown
Owner

Summary

  • Define a durable, versioned runtime-observation sidecar with immutable producer contributions and deterministic aggregation.
  • Keep static graph semantics and default graph responses unchanged.
  • Expose runtime-derived calls only through an explicit RUNTIME_CALL overlay pinned to an atomic {static_generation, runtime_generation} publication head.

Closes #612

Selected recommendation

Use a durable, versioned runtime-observation sidecar plus an opt-in RUNTIME_CALL overlay. Runtime observations never patch static CALLS edges, fabricate static nodes, or become persistent edges in the default graph.

Benefits

  • Preserves static semantics and existing default search, architecture, and trace behavior.
  • Gives symbol, runtime-only, and unknown endpoints honest, explicit identities.
  • Makes producer retries, deterministic replay, and commutative aggregation testable.
  • Provides coherent reader snapshots through pinned composite publications.

Accepted trade-offs

  • Adds a sidecar schema and independent wire, schema, semantic, and artifact version boundaries.
  • Requires one shared per-project publication lock across static and runtime publishers.
  • Adds generation-scoped symbol resolution, aggregate rebuild, and overlay-query complexity.

The recommendation wins because it keeps runtime provenance distinct from source-derived facts while providing durable, deterministic, and generation-coherent reads. The added mechanisms make conflict handling, recovery, privacy, and compatibility explicit rather than implicit.

Material alternatives considered

Alternative Benefit Trade-off and disposition
Patch static CALLS edges Existing graph queries would see runtime evidence without an overlay option. Conflates observed and source-derived semantics, lets sampled telemetry alter the static graph, and makes provenance and rollback ambiguous; rejected.
Fabricate static nodes for runtime endpoints Every endpoint would fit the existing node/edge model. Creates identities that look source-derived, introduces unstable cardinality, and pollutes architecture/search results; rejected.
Store generic persistent runtime edges Reuses existing edge uniqueness and json_patch upsert machinery. Lacks immutable producer-contribution identity and deterministic conflict/aggregation semantics, while exposing runtime data to default readers; rejected.
Keep observations entirely ephemeral Avoids durable schema, retention, and migration cost. Cannot provide restart-safe idempotence, reproducible aggregation, stable pagination, or pinned composite publications; rejected as the primary model.

Validation

  • One-file scope: docs/RUNTIME_TRACE_MODEL.md.
  • Mandatory content screen clean at exact SHA-256 a06c7472cd05166c80f07311fbc97294cd01b4909e1998eadb472f5dc37cefd2.
  • Base-relative git diff --check passed.
  • DCO signoff present on the exact commit.
  • Independent exact-snapshot review approved.
  • No canonical Markdown/docs lint exists in the screened repository configuration.
  • Documentation only: no runtime behavior or version value changes.

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
@DeusData
DeusData merged commit d8f8f45 into main Aug 29, 2026
61 of 63 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

implement ingest_traces — create CROSS_* edges from runtime traces (currently a no-op stub)

1 participant