> For the complete documentation index, see [llms.txt](https://docs.sealights.io/knowledgebase/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sealights.io/knowledgebase/knowledge-base/sealights-for-abap/how-it-works/how-sealights-for-abap-works.md).

# How SeaLights for ABAP Works

SeaLights for ABAP operates in two layers that activate in sequence.&#x20;

#### Day Zero

The first, **Day Zero**, delivers change impact analysis and test recommendations from structural analysis alone, before a single test runs.&#x20;

SeaLights maps SAP executions to their associated code objects, and links those objects to the tests in your test repository. When a transport is applied, SeaLights identifies which objects changed and recommends the tests mapped to those objects. This model works from day one, with no execution history required, but because it relies on structural mapping rather than observed behavior, it may produce a broader recommendation list than strictly necessary.

The secon, **Day One Onward**, learns from actual test execution to verify coverage and sharpen every future recommendation.

***

### The Two-Layer Architecture

```
Transport imported into SAP system
            │
            ▼
┌───────────────────────────────────────┐
│             DAY ZERO                  │
│                                       │
│  Step 1 — Build the Dependency Map    │
│  Step 2 — Rank Most-At-Risk           │
│  Step 3 — Build Optimal Test Set      │
│                                       │
│  Output: Change Analysis,             │
│          Tests to Run, Test Gaps      │
└───────────────────────────────────────┘
            │
            ▼
       Tests Execute
            │
            ▼
┌───────────────────────────────────────┐
│         DAY ONE ONWARD                │
│                                       │
│  Observe what was actually hit        │
│  Confirm or drop predicted links      │
│  Refine the model for future cycles   │
│                                       │
│  Output: Verified coverage,           │
│          Smarter future recommendations│
└───────────────────────────────────────┘
```

***

### **Semantic Model**&#x20;

### **Statistical Model**&#x20;

As test executions are reported back to SeaLights, the system learns which tests actually exercise which code paths. Over time, this observed data refines the semantic mapping, improving precision and reducing the recommendation list to only the tests most likely to catch a regression. The statistical model builds on top of the semantic model - it does not replace it.

{% hint style="info" %}
Every integration level starts with the semantic model. The statistical model develops progressively as execution data is reported to SeaLights, improving recommendation effectiveness over time.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.sealights.io/knowledgebase/knowledge-base/sealights-for-abap/how-it-works/how-sealights-for-abap-works.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
