Context Engineering and Prompt Management

Context Engineering and Prompt Management

Context Provenance — Stack

Context provenance › Stack

49 of 57 in this book · 3 min read

Technology landscape as of 2026-10-10. Knowledge cutoff May 2026.

Selection criteria

The record is only worth keeping if it is complete across producers, survives transformation, and can be joined to a response afterwards.

  • Coverage. Whether every producer can supply origin metadata, or only the ones that happened to be built with it. Partial provenance is often worse than none, because it is trusted.
  • Identifier stability. Whether source identifiers survive re-indexing, re-chunking, and document updates, since an unstable identifier makes every historical record unresolvable.
  • Transformation tracking. Whether a derived span can reference the spans it came from, and how many levels of derivation the representation supports.
  • Join key. Whether span identifiers appear in the trace, the stored response, and the provenance record without translation.
  • Storage cost and retention. The record's size relative to the context, and whether it can be retained on a different schedule from the content it describes.
  • Classification. Whether the record can be stored under the same access controls as the material it names, given that it carries titles, authors and excerpts.
  • Deletion propagation. Whether deleting a source document can find and remove the provenance records that refer to it.
  • Exposure control. Whether the record can be surfaced to the model for citation separately from the fields kept only for internal audit.

Options

Option Best for Watch out for
Span metadata carried in the assembler's own data structures The baseline; the only place with visibility of every producer at once Exists only in memory unless something persists it, and is the first thing lost when a shortcut path bypasses the assembler
Vector store payload metadata (Qdrant, Pinecone, Weaviate, pgvector columns) Retrieved material, where the store already holds document identity and timestamps Covers one producer; chunk identifiers change on re-indexing unless deliberately stabilised
Tracing platforms as the provenance store (Langfuse, LangSmith, Arize Phoenix, W&B Weave) Getting capture and a join to the request trace without building storage Payload limits truncate long contexts; retention is tuned for debugging, not for audit; the store aggregates every tenant's material
OpenTelemetry attributes and events on the model span Organisations standardising on one telemetry pipeline for everything Attribute size limits make per-span records awkward; sampling discards exactly the requests later questioned
Content hashing of each admitted span Proving that the text in the record is the text that was sent, independently of any identifier A hash identifies and does not resolve; you still need the source system to say what it was
Provenance vocabularies (W3C PROV-O serialisations) Cases where derivation chains must be expressed formally and queried Heavier than most products need; little tooling in this ecosystem, so the representation is yours to maintain
Document-level metadata and ACL systems in the content source Reusing the authoritative owner, classification, and permission facts rather than copying them Resolution at read time adds a dependency; the record then shows today's owner rather than the one at retrieval time
Citation identifiers injected into the context and parsed from the output Products that must show a user where an answer came from The model can emit identifiers it was never given; every citation must be validated against the record rather than trusted