# Post-release continuous evaluation

After release, score recent production traces on a recurring cadence (hourly / daily). Stratix's SDK doesn't ship a scheduler — wire the per-trace `client.trace_evaluations.create(...)` call into your own scheduled job.

## Per-run pattern

```python
from layerlens import Stratix
client = Stratix()

# Pull a sample of recent production traces
recent = client.traces.get_many(
 page=1,
 page_size=50,
 sort_by="created_at",
 sort_order="desc",
 # plus any source / judge_id / search filters relevant to your feature
)

# Score each with your continuous-eval judge
import asyncio
from layerlens import AsyncStratix

async def score_batch():
 aclient = AsyncStratix()
 creates = [aclient.trace_evaluations.create(trace_id=t.id, judge_id=CONTINUOUS_JUDGE_ID)
 for t in recent.traces]
 evals = await asyncio.gather(*creates)
 return await asyncio.gather(*[aclient.trace_evaluations.wait_for_completion(e.id) for e in evals])

results = asyncio.run(score_batch())
fails = [r for r in results if not r.passed]
if len(fails) / max(len(results), 1) > 0.05:
 alert_oncall(fails)
```

## Wire to a scheduler

Run this script from a GitHub Actions schedule, AWS EventBridge → Lambda, k8s CronJob, or any scheduler — same pattern as [daily smoke eval](/9.-improve-tune-the-system/daily-smoke-eval.md).

## See also

* [Concept: Continuous evaluation](/7.-observe-see-whats-happening/continuous-evaluation.md)
* [Tutorial 4: Score live traces](/8.-evaluate-score-the-outputs/04-score-traces.md)


---

# Agent Instructions: 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:

```
GET https://docs.layerlens.ai/7.-observe-see-whats-happening/postrelease-continuous.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
