Skip to content
Back to skills

Atom Compare Drift

ASecurity

Use when you have assembled drift signals for two versions of an agent and need the calibrated drift index + multi-run trend — hand the per-facet signals to the AsterVault `drift.compare` gateway. The baseline/trend model runs server-side; offline falls back to the deterministic local report.

  • 10 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 25, 2026
ai-agentstesting

Security analysis

A100/100

Scanned November 25, 2026

npx -y skills add Asterguard/asterguard-skills --skill atom-compare-drift --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Atom Compare Drift?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Atom Compare Drift
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/asterguard-atom-compare-drift/badge)](https://www.skillsdirectory.com/skills/asterguard-atom-compare-drift)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: atom-compare-drift
description: Use when you have assembled drift signals for two versions of an agent and need the calibrated drift index + multi-run trend — hand the per-facet signals to the AsterVault `drift.compare` gateway. The baseline/trend model runs server-side; offline falls back to the deterministic local report.
---

# Atomic: Compare Drift

Hand the assembled, per-facet drift signals for two versions to the gateway `drift.compare`
and get back one calibrated **drift index** (0–10), a band, and the multi-run **trend** for
this target. The baseline and trend models run server-side — the harness assembles the
signals (via the `tools/drift` comparators) and consumes the index; it does **not** run the
drift model locally.

**ID:** `ATOM-COMPARE-DRIFT`
**Purpose:** Produce one calibrated drift index + trend for a version-to-version change, so
release gates and continuous-testing route on a consistent, baseline-aware number — not an
ad-hoc read of a single diff.
**Trigger:** The `drift` skill (or `tools/drift/drift.py`) has assembled the per-facet
`Delta`s + signals for two versions and needs the calibrated index + trend.

## Inputs Required

- `${DRIFT_SIGNALS}`: object — the assembled signals and per-facet direction/magnitude, e.g.
  `{signals:[...], by_facet:{tools:{direction,magnitude}, surface:{...}}}`. *Source:* the
  `tools/drift` comparators / `drift.py build_report`.
- `${CONTEXT}` (optional): object — `{app_id, from_version, to_version, tenant}` for the
  per-target trend and the per-tenant overlay.

## Execution Steps

1. **Tool Selection** — gateway tool `drift.compare` (sole remote call; the model is gateway-side).
2. **Parameter Mapping** — `drift.compare(signals=${DRIFT_SIGNALS}, context=${CONTEXT})`.
   Connected: attach `X-ARS-Token` (see `ars-token`).
3. **Execute** — call `drift.compare`; the gateway returns the index + trend (the harness does
   **not** materialize the baseline/trend model locally). Record `audit_id`.
4. **Extract** — read `drift_index`, `band`, `trend`, and `rationale[]` into `${DRIFT_READ}`.

## Outputs Expected

- `${DRIFT_READ}`: object — `{drift_index (0–10), band ∈ hardening|stable|minor-regression|regression|critical-regression, trend, rationale[]}`.
- `${AUDIT_ID}`: string — metered-call handle (connected).
- `${STATUS}`: ["Success" | "Degraded" | "Failure"] — `Degraded` = local structural report only.

```mermaid
sequenceDiagram
    participant Caller as drift skill
    participant RB as atom-compare-drift
    participant GW as AsterVault gateway (baseline/trend server-side)
    Caller->>RB: ${DRIFT_SIGNALS}, ${CONTEXT}?
    RB->>GW: drift.compare(signals) [X-ARS-Token]
    GW-->>RB: {drift_index, band, trend, rationale}, audit_id
    RB-->>Caller: DRIFT_READ, AUDIT_ID, STATUS
```

## Decision Logic / Next Steps

- The index is a **read**, not a disposition — the caller (drift / pr-gate) decides pass/block.
- IF `band` ∈ {regression, critical-regression} → caller routes to the gate's FAIL/WARN path.
- IF `Degraded` → the gateway was unavailable; use the deterministic local band from
  `tools/drift/drift.py` and say the trend is not available.

## Connected vs Offline

- **Connected**: `drift.compare` live + metered — the server returns the calibrated index and
  the per-target trend; carry `X-ARS-Token`, record `audit_id`.
- **Offline**: no trend/baseline model — use the deterministic local report (direction,
  magnitude, band, cause→effect narrative) from `tools/drift`, mark `${STATUS}=Degraded`, and
  say so. Never present the local band as the calibrated index.

## AI Agent Execution Notes

- Do **not** attempt to run or approximate the baseline/trend model locally — assemble the
  signals, call the gateway, consume the index.
- Keep `${DRIFT_SIGNALS}` the exact signals the local comparators emitted, so the index is
  reproducible for `evals` and the local narrative and the gateway index always agree on what
  changed.
- `drift.compare` is the planned gateway tool; until it is deployed every call degrades to the
  local report — that is expected, not an error.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.