Temporal Intelligence

The Architecture of Time-Aware AI Systems   /   Article 02 of 03

Engineering Time: Inside the Architecture of Epochal's Time Portal

How historical data ingestion, temporal indexing and time-aware retrieval make the past searchable.

Author   PRADY K Series   Temporal Intelligence Category   Artificial Intelligence
A luminous stack of translucent glass layers with interconnected data points, representing the architecture of information capture, indexing and retrieval across time.
Intelligence requires more than information. It requires the architecture to organise, retrieve and connect it across time.

01 / ENGINEERING THE PASTThe Engineering Problem Behind a Searchable Past

A conventional search engine is designed to answer a question using information available to it now. A historical search engine faces a different requirement. It must answer the same question as if the information environment had been frozen at a specific moment in the past.

That requirement changes almost every part of the system.

The web is not a static database. Pages appear, disappear and change continuously. A single URL can represent thousands of different states over its lifetime. The same article may be reproduced across hundreds of websites. Some pages change every few seconds, while others remain untouched for years. Captures can arrive out of order, and a historical query may need to be answered with the same reliability as a query about the present.

The scale of the problem becomes more difficult when many AI agents operate at different historical instants simultaneously.

An agent working in 1999 and another working in 2026 should be able to use the same underlying information infrastructure without one having to wait for the other, and without the system maintaining a separate search index for every historical date.

Epochal's Time Portal is designed around this problem.

In its engineering account, published on 24 November 2026, the company describes an infrastructure that records historical page states, reduces duplication across captures, and supports point-in-time search and retrieval. The system is built around three requirements:

  • The past should be as fast as the present. Historical queries should not become progressively slower simply because they reach further back in time.
  • One index should serve every instant. The system should avoid maintaining separate indexes for different historical periods.
  • Search results should not change because of incidental system behaviour. Differences in batching, timing or tie-breaking should not introduce noise into historical retrieval.

These are not merely performance targets. They define the architecture required to make historical search dependable.

The central engineering challenge is to preserve the changing web without allowing its history to become an unmanageable collection of duplicated documents, fragmented indexes and inconsistent retrieval paths.

02 / ENGINEERING THE PASTThe Lifecycle of a Historical Capture

The foundation of Time Portal is the capture.

A capture is a timestamped record of a page as observed by the system. It represents the state of a URL at the time the page was collected. Multiple captures of the same URL create a history of its changing content.

Epochal describes a pipeline with two connected paths: a write path that processes incoming captures, and a read path that serves historical queries.

The write path

The process begins with discovery. The system must first identify a URL among the enormous number of pages available on the web.

Once discovered, the page is captured. Its content is stored, and the visit is recorded in a capture list. The parsed content then moves through a message queue partitioned by URL. This is an important architectural decision: captures belonging to the same URL are routed to the same worker.

Ingestion workers fingerprint the content, compare it with existing indexed material, generate an embedding and write a new version into the index when a meaningful change is identified.

Discovery → Capture → Content Storage → Capture List → URL-Partitioned Queue → Fingerprinting → Indexing

Each stage addresses a different concern.

Discovery identifies what should be collected. Capture records what was observed. Storage preserves the collected material. The capture list maintains the record of visits. Fingerprinting helps determine whether the content represents a new version. Indexing makes the material available to retrieval systems.

The distinction between a capture and an indexed version is particularly important. A crawler may visit a page repeatedly without finding a meaningful content change. Those visits still belong to the capture history, but they do not necessarily need to create additional searchable versions.

This separation allows the system to preserve the history of collection while controlling the growth of the search index.

The read path

The read path begins with a different requirement: every request must specify the historical instant against which it should be evaluated.

Epochal represents this instant as T.

Search uses the index to identify relevant documents visible at T. Fetch bypasses the search index and retrieves the newest available capture at or before T. Sandbox provides an execution environment whose clock and supported network access are constrained to the same instant.

The read path therefore connects three distinct operations:

  • Discover relevant information through historical search.
  • Retrieve a specific historical page.
  • Execute work inside an environment that uses the same temporal boundary.

The write path builds the historical record. The read path makes that record usable.

03 / ENGINEERING THE PASTThe Web Does Not Change at a Uniform Rate

A historical information system cannot assume that every webpage changes at the same frequency.

Some pages remain stable for long periods. Others are continuously updated. News homepages, live blogs, social feeds, financial tickers and weather services can change repeatedly within a short interval.

Epochal's engineering article illustrates this variation through a page captured 2,082 times on 13 November 2026. The median interval between visits was 48 seconds. Its content changed 690 times during that day.

The example demonstrates why a simple daily or hourly snapshot model may be insufficient for highly dynamic pages.

At the same time, capturing every visit as a new searchable version would create substantial redundancy. A page can be visited repeatedly without changing its meaningful content. Some changes are only rotating banners, counters or shuffled elements.

Epochal reports that the overwhelming majority of URLs in its index have only one version, while approximately one in a hundred has five or more. A relatively small group of highly dynamic pages accounts for a disproportionate share of historical versions.

This distribution has important implications for the ingestion design.

Adaptive capture and versioning

For pages that change continuously, the system needs to balance historical fidelity against the cost of storing and indexing every observed state.

Epochal describes a sampling heuristic that retains at most one new version per minute for certain rapidly changing pages. This is intended to preserve a useful representation of the page's history without allowing repeated, low-value changes to overwhelm the index.

The system also treats disappearance as a meaningful change.

When a page is no longer available, Epochal records a tombstone for the URL. A historical query after that disappearance should not automatically return the last available copy as though the page were still live. If the URL becomes available again, the system can record its return.

This matters because historical availability is part of the information environment. A page that existed in the past but had disappeared by a later date should not be presented as available at that later date.

A reliable historical system must therefore represent three kinds of change:

  1. Content changes within an existing page.
  2. Repeated observations where no meaningful change has occurred.
  3. Changes in availability, including disappearance and subsequent return.

The objective is not to preserve every network request as a separate document. It is to preserve a meaningful history of the web.

04 / ENGINEERING THE PASTDeduplication: Preserving Change Without Multiplying Copies

The next challenge is duplication.

The same content can appear at several URLs. A news agency may distribute an article to multiple publishers. A press release may be reproduced across industry websites. A page may be captured repeatedly without changing. Other versions may differ only in a headline, byline, timestamp or small formatting element.

Treating every capture as a completely new document would make the index unnecessarily large and reduce its information density.

Epochal approaches this as a two-dimensional deduplication problem.

Within a URL, meaningful changes must remain part of the page's history. If a page changes three times, the system should retain its distinct versions.

Across URLs, copies of the same underlying content should be identified so that the index does not treat every reproduction as an independent piece of information.

The company reports that, during the week ending 20 November 2026, every 100 pages offered for indexing resulted in:

Ingestion outcomeShare
New versions56%
Near-copies of other URLs25%
Exact copies of other URLs13%
Repeated content from the same page6%

These figures are Epochal's own reported measurements for that period. They illustrate the scale of duplication encountered by its ingestion pipeline, rather than a universal distribution for the web.

The figures also explain why exact-match detection alone is insufficient.

Exact duplicates and near-duplicates

Exact duplicates can be identified through content hashing. If two documents produce the same content hash under the chosen representation, the system can recognise them as identical.

Near-duplicates are more difficult.

Consider two versions of a news article. The headline may change, a byline may be added, or a publisher may append a sharing element. Most of the underlying text remains the same, but the documents are not byte-for-byte identical.

A strict hash comparison would treat them as different.

Epochal uses MinHash to identify this kind of similarity.

How MinHash works

MinHash is a technique for estimating the similarity between sets. In document processing, the text is first represented as overlapping word sequences, often called shingles.

The system then generates compact signatures from these sets. Under multiple hash functions, the minimum hash value is retained for each signature position. The probability that two signatures agree at a position is related to the Jaccard similarity of their underlying shingle sets.

This makes it possible to estimate document similarity without comparing every word in every pair of documents.

Epochal describes dividing the signature into bands. When two documents share an entire band, they become candidates for further comparison. This reduces the number of document pairs that need more expensive examination.

The original research foundation for this family of techniques can be traced to Andrei Broder's 1997 work on document resemblance and containment, developed in the context of large-scale web indexing.

The value of MinHash in this setting is not simply that it finds duplicates. It helps distinguish a meaningful new version from a slightly modified copy of content already represented elsewhere.

Engineering for repeatable fingerprints

Epochal reports that it rewrote its fingerprinting implementation in Rust, using branchless 32-bit integer operations with a fixed seed. The company says the compiler produces AVX2 vectorised code, making the process approximately ten times faster per core than its previous implementation.

It also reports bit-for-bit reproducibility: the same content produces the same fingerprint across machines.

That reproducibility matters in a distributed ingestion system. If identical captures are processed by different workers or replayed later, the fingerprinting decision should not depend on which machine performed the computation.

The company also identifies a limitation of similarity-based deduplication.

Two regulatory filings may follow the same template and differ only in a small number of names, figures or cells. Their text can appear highly similar even though they are distinct documents with separate legal identities.

Epochal addresses this by preserving SEC accession numbers as identity signals. Similarity alone is not allowed to collapse distinct filings into one document.

This is an important principle in data engineering: content resemblance and document identity are related, but they are not the same thing.

05 / ENGINEERING THE PASTTemporal Indexing: Making One Index Serve Every Instant

After captures have been collected and deduplicated, the system must solve the central retrieval problem.

A conventional search index identifies documents relevant to a query. A temporal search index must also determine which versions were valid at the requested instant.

The simplest conceptual model uses two timestamps for every version:

  • valid_from: when the version became valid.
  • valid_to: when the version stopped being valid.

For a query at instant T, the system retrieves versions satisfying:

valid_from ≤ T < valid_to

This is a familiar approach in temporal databases. Microsoft SQL Server, for example, supports point-in-time queries against system-versioned temporal tables using an AS OF clause.

Epochal initially considered this two-sided interval design for its historical index.

The approach is conceptually straightforward. Each new version closes the validity period of the previous version. A query then identifies the version whose interval contains the requested instant.

However, the design creates a significant write-side problem.

The cost of rewriting history

When a new capture arrives, the previous version must be updated with its valid_to timestamp.

This means that adding a new version is not simply an insertion. It also requires rewriting an existing record.

The problem becomes more pronounced when pages change frequently. A page receiving a new version every minute creates a continuous sequence of inserts and updates.

Out-of-order captures introduce another complication. If an older capture arrives after a newer one, the system may need to insert it into the middle of an existing version sequence and adjust adjacent validity intervals.

The index then spends part of its write capacity maintaining the boundaries between existing versions rather than simply adding new historical records.

Epochal describes this as one of the limitations of the two-sided interval design.

The one-sided, append-only alternative

The company's solution is to use a one-sided design based on valid_from.

Instead of storing and updating both ends of every interval, the index records the start time of each version. Existing versions are not rewritten when new captures arrive.

This makes the version history append-only at the record level: versions are written once rather than repeatedly updated to close their validity periods.

The challenge then moves from query-time interval evaluation to ingestion-time visibility calculation.

When a new version is written, the system examines the existing history for that page and precomputes the visibility outcome. Epochal describes grouping versions by a hashed page identity so that versions belonging to the same URL can be processed together.

At query time, most of the work becomes a simpler lookup. Only a smaller subset of pages requires an exact check against the requested instant.

The company reports that its benchmarks showed approximately twice the query speed of the original double-interval design, while retaining exact historical results. It also says the new approach removed much of the complex ingestion logic required to update neighbouring records in a version chain.

This is a consequential architectural decision.

The system does not abandon temporal correctness. It changes where the work is performed. Instead of repeatedly updating old records and resolving every interval at query time, it performs more of the visibility calculation when new versions enter the index.

The result is a design better suited to a workload where historical versions accumulate continuously and queries can target any point in time.

06 / ENGINEERING THE PASTRetrieval at an Instant: Text Search and Vector Search

A correct temporal filter is necessary, but it does not guarantee useful search results.

A historical search engine must first identify which documents were available at the requested instant. It must then find the documents most relevant to the user's query.

Epochal's engineering account describes a retrieval pipeline that combines multiple retrieval paths, result fusion and reranking.

Two important retrieval mechanisms are text search and vector search.

Text search

Traditional text retrieval commonly relies on an inverted index. Search terms identify documents containing those terms, after which relevance calculations help determine the order of results.

In historical retrieval, however, the temporal filter can become more selective than the query terms themselves.

The web available in 2000 was much smaller than the web available in 2026. A search performed at an older instant may have only a small fraction of the total indexed material eligible for retrieval.

This creates a query-planning problem.

If the search engine evaluates text matches first, it may generate a large candidate set only to discard most of it because the documents fall outside the requested historical period.

If it evaluates the time condition first, it may reduce the search space substantially before examining text relevance.

Neither strategy is optimal for every instant and every query.

Epochal reports that it developed a planner that chooses which condition should lead based on the density of the historical slice. The system can therefore adapt its retrieval strategy to the amount of indexed material eligible at the requested time.

Vector search

Vector search introduces a related challenge.

An embedding represents a document as a numerical vector, allowing a search system to identify documents that are semantically close to a query even when they do not share the same words.

Approximate nearest-neighbour search is commonly used to make this process efficient at scale. It searches selected regions of the vector space rather than exhaustively examining every vector.

However, historical filtering changes the size of the eligible search space.

At older instants, the set of valid documents may be very small. An approximate search strategy designed for a large, dense index can return too few candidates once the temporal constraint is applied.

Epochal describes adapting vector retrieval according to the density of the historical slice. When the eligible set is sufficiently small, the system can abandon approximate search and perform an exact scan of that slice.

The company reports that its optimised exact path achieved approximately twice the speed of its earlier implementation while preserving result parity.

The underlying idea is straightforward: approximation is valuable when the search space is large, but it is not automatically the best choice when temporal filtering has already reduced the candidate set.

Text and vector retrieval therefore need to respond to the same historical constraint, but their optimisation strategies are not identical.

07 / ENGINEERING THE PASTRelevance Changes With Time

Finding documents that existed at a particular instant is only part of historical search. The system must also understand what those documents meant at that time.

Language changes. Product names acquire new meanings. Organisations change identities. Events alter the context in which familiar terms are interpreted.

A search system that applies a fixed, present-day understanding of relevance to every historical query risks producing anachronistic results.

Epochal illustrates this through the word "copilot".

In June 2019, a search for "copilot" would naturally be associated with aviation and dictionary definitions. By July 2021, references to GitHub's AI coding assistant began appearing. By April 2023, Microsoft 365 Copilot had become a major source of search relevance.

The word did not change in isolation. Its relationship with the technology landscape changed.

Epochal describes a similar evolution in searches for "Meta", which shifted from general dictionary meanings towards results about the technology company formerly known as Facebook.

The same problem appears with facts.

The company's example of NASA's StarChild page about Pluto illustrates how scientific terminology and public understanding can evolve. A page that once described Pluto as a planet later reflected its classification as a dwarf planet.

A search engine that treats relevance as timeless may return results that are semantically related to the query but historically inappropriate.

Time-aware reranking

Epochal describes using a time-parameterised reranker to address this problem.

The retrieval system first identifies a candidate set of documents. The reranker then examines the most relevant passages and determines their order in the context of the requested instant.

This allows ranking to reflect changes in terminology, facts and context.

The distinction between retrieval and reranking matters.

Retrieval determines which documents enter the candidate pool. Reranking determines how those candidates should be ordered. Both stages need to respect the historical instant, but they solve different problems.

A temporally correct candidate set can still produce poor results if the ranking system applies present-day relevance assumptions. Time-aware reranking helps address that gap.

It is also important to recognise the limits of this approach. A time-aware ranking model does not automatically establish the truth of a historical claim. It orders available evidence according to its relevance within the system's design. The quality of that evidence and the completeness of the archive remain separate concerns.

08 / ENGINEERING THE PASTFetch: Why Historical Retrieval Needs a Strict Contract

Search and Fetch are connected, but they are not interchangeable.

Search identifies relevant documents from the historical index. Fetch retrieves a specific URL as it existed at or before the requested instant.

This distinction becomes particularly important when an AI agent follows a search result.

Suppose an agent is operating with an as-of timestamp of 1 January 2006. It searches for a company announcement and receives a result pointing to a page that was captured later that day.

A conventional archive may offer the closest available snapshot. For general browsing, a nearby capture can still be useful. For historical evaluation, however, a capture from after the requested instant introduces information from the future.

Epochal adopts a stricter contract.

When Fetch receives a URL and an instant T, it returns the newest capture available at or before T. If no such capture exists, the request returns an unavailable result rather than substituting a later version or the live page.

This is a critical property for time-bounded AI workflows.

A missing historical record should remain missing. Replacing it with a later capture would create a false impression that the information was available at the requested instant.

The storage challenge behind point reads

Fetch also creates a different performance problem from search.

Search usually examines a collection of candidate documents. Fetch may need to retrieve the content of one specific page.

Epochal reports that its captured content is stored using Lance on S3-compatible object storage. Lance is a columnar storage format designed for cloud object stores and random access, as well as analytical processing.

Storage layouts optimised for large scans are not necessarily ideal for retrieving a small amount of content from a particular record.

Epochal describes several changes to its point-read path:

  • Checkpointed decoding: Rather than decoding an entire compressed block, the system stores decoder checkpoints so that it can begin near the requested value and stop after retrieving it.
  • Reading large values in place: Large page bodies can be retrieved using the required byte range rather than loading the full stored value.
  • Selective index loading: The system loads the position information needed for a particular read rather than opening every block-level position index.
  • Smaller storage requests: The read path uses smaller byte ranges suited to individual page retrieval rather than the larger ranges useful for scanning.

The company reports the following improvements per Fetch operation after these optimisations:

MeasureReported improvement
Object-storage requests8.7× fewer
Bytes downloaded7.6× fewer
CPU time6.7× less

These are Epochal's reported engineering measurements. They demonstrate the importance of optimising the storage path for the actual access pattern rather than assuming that a format efficient for scans will automatically be efficient for individual historical page retrieval.

The broader lesson is that historical search and historical Fetch place different demands on the same underlying archive. A system needs separate retrieval paths designed around those demands.

09 / ENGINEERING THE PASTSandbox: Turning Historical Retrieval Into an Operating Environment

Search and Fetch allow an agent to discover and read historical information. Sandbox extends the model by giving the agent an environment in which it can execute code and interact with time-constrained resources.

Epochal describes the Sandbox as a Linux virtual machine whose clock is set to the selected instant. Its network can be configured to use Time Portal, so that HTTP and HTTPS requests are routed through historical retrieval rather than the live web.

The architecture connects the three capabilities:

  1. Search identifies relevant historical resources.
  2. Fetch retrieves specific page versions.
  3. Sandbox provides an execution environment whose clock and supported network access share the same temporal boundary.

The same instant is carried through the workflow using the Accept-Datetime header.

For Search and Fetch, the header defines the requested historical cutoff. When a Sandbox is created, its instant is established at creation time, and subsequent operations inherit that setting.

This consistency is essential. If an agent searches at one instant and later fetches pages or accesses the network at another, the information environment can become internally inconsistent.

A single task therefore needs to preserve one temporal boundary across its operations.

Sandbox also introduces execution controls. Commands run asynchronously, and the API supports operations for reading and writing files, sending input, retrieving output and terminating the environment.

The network setting determines whether the sandbox has no outbound connectivity or can access the historical web through Time Portal.

This makes Sandbox more than a virtual machine with an altered clock. Its purpose is to connect execution, time and external information access within a defined environment.

There are still important boundaries. The operating-system images are available at quarterly intervals, package mirrors cover supported ecosystems, and optional applications may be current builds rather than historical versions. Model weights are also not rewound to the selected instant.

Those limitations are important when designing rigorous historical experiments. The Sandbox provides temporal controls over specified parts of the environment, not a perfect reconstruction of every software and knowledge state.

10 / ENGINEERING THE PASTOne Architecture, Many Historical Instants

The engineering choices described in Time Portal address different parts of the same problem.

Capture records the changing state of a page. Versioning distinguishes meaningful changes from repeated observations. Deduplication reduces unnecessary copies while preserving distinct documents. Temporal indexing determines which versions are visible at a requested instant. Retrieval combines time-aware filtering with text and vector search. Reranking accounts for changes in meaning and relevance. Fetch retrieves a specific historical state, while Sandbox allows an agent to operate within the same temporal boundary.

The most significant architectural decision is that these capabilities are designed to operate over a shared historical index.

Maintaining a separate index for every year or every instant would introduce duplication and operational complexity. A single index with time-aware retrieval allows agents working in different historical periods to use the same infrastructure.

The architecture also reveals a broader engineering principle: temporal correctness cannot be added as a final filter to an otherwise conventional search engine.

It influences data collection, storage, version management, indexing, retrieval, ranking and execution. Each stage must preserve the same historical boundary for the complete workflow to remain coherent.

Epochal's Time Portal is an example of how these requirements can be brought together into a functioning system. Its engineering account provides a useful view into the trade-offs involved in building a large-scale, time-addressable web.

The next question extends beyond the mechanics of historical search.

Once information can be retrieved according to when it existed, how should AI systems represent the evolution of facts, evidence and interpretations? How should they distinguish what was observed from what was inferred? How can organisations reason about the changing state of knowledge rather than treating every document as an isolated record?

Historical retrieval makes the past accessible. A more complete form of temporal intelligence must also make the evolution of understanding intelligible.

That is the subject of the final article in this series.

References & Further Reading

Epochal: Engineering and Architecture

  1. Epochal. (24 November 2026). Building the Time Portal Engine.
    https://epochal.com/blog/building-the-time-portal-engine
  2. Epochal. Introducing the Time Portal.
    https://epochal.com/blog/introducing-time-portal
  3. Epochal. How the Instant Works. Time Portal API Documentation.
    https://docs.epochal.com/docs/time-portal/how-the-instant-works
  4. Epochal. Search. Time Portal API Documentation.
    https://docs.epochal.com/docs/time-portal/search
  5. Epochal. Fetch. Time Portal API Documentation.
    https://docs.epochal.com/docs/time-portal/fetch
  6. Epochal. Sandbox Overview. Time Portal API Documentation.
    https://docs.epochal.com/docs/time-portal/sandbox
  7. Epochal. Images and Network. Time Portal API Documentation.
    https://docs.epochal.com/docs/time-portal/sandbox/images-and-network
  8. Epochal. Time Portal Search API Reference.
    https://docs.epochal.com/reference/timePortalSearch
  9. Epochal. Time Portal Fetch API Reference.
    https://docs.epochal.com/reference/timePortalFetch

Foundational Research and Technical Documentation

  1. Broder, A. Z. (1997). On the Resemblance and Containment of Documents. Proceedings of the Compression and Complexity of Sequences 1997, pp. 21–29.
    https://doi.org/10.1109/SEQUEN.1997.666900
  2. Microsoft. Query Data in a System-Versioned Temporal Table. Microsoft Learn.
    https://learn.microsoft.com/en-us/sql/relational-databases/tables/temporal/query-data
  3. Lance. Lance File Format Specification.
    https://lance.org/format/file/