Skip to content
Back to skills

Offline Dataset Protocol

ASecurity

Validate fixed offline reinforcement learning transition datasets and summarize D4RL-style provenance before recovery experiments.

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 9, 2026
testingpython

Works with

  • terminal
  • cli

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill offline_dataset_protocol --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Offline Dataset Protocol?

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

Security grade badge for Offline Dataset Protocol
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-offline-dataset-protocol/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-offline-dataset-protocol)

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

SKILL.md
---
name: offline_dataset_protocol
description: Validate fixed offline reinforcement learning transition datasets and summarize D4RL-style provenance before recovery experiments.
---

# Offline Dataset Protocol

Use this skill when a recovery or benchmark task needs to verify that training data is a fixed offline RL transition dataset. Do not use it to collect online rollouts, run simulators, or claim that synthetic proxy data is a real D4RL dataset.

## Inputs

- A JSON file containing either a list of transition records or an object with a `transitions` list.
- Each transition must contain `observation`, `action`, `reward`, `next_observation`, `terminal`, and `timeout`.
- Optional metadata fields such as `source`, `domain`, `variant`, and `is_resource_derived`.

## Outputs

- A JSON validation report with `ok`, counts, `quality_tags`, `errors`, and `metadata`.
- The report preserves whether the dataset is synthetic proxy data, resource-derived data, or a real benchmark item.

## Workflow

1. Load the dataset JSON without mutating it.
2. Confirm that every transition has the required keys.
3. Coerce rewards to floats and terminal/timeout markers to booleans.
4. Count transitions, terminal endings, timeout endings, and combined episode endings.
5. Add the `fixed_dataset` tag and optional tags from metadata.
6. Reject empty datasets or missing fields.

## Validation

Run `python scripts/validate_offline_dataset.py <dataset.json>` for CLI validation. Run `python -m pytest tests` or the Distiller `validate_skill_tree.py --run-tests` command for deterministic tests.

## Limitations

This skill validates dataset structure and provenance; it does not implement a full D4RL environment, simulator, or benchmark download.

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.

Comments

Loading comments…