Skip to content
This repository was archived by the owner on Mar 14, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 7 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![Node 20+](https://img.shields.io/badge/node-%3E%3D20-brightgreen.svg)](https://nodejs.org/)

**CLI and library for Palo Alto Prisma AIRS — guardrail refinement, AI red teaming, model security scanning, and profile audits.**
**Full operational coverage over Palo Alto Prisma AIRS AI security — guardrail refinement, runtime scanning, AI red teaming, model security, and profile audits.**

> **[Read the full documentation](https://cdot65.github.io/daystrom/)** — installation, configuration, architecture, CLI reference, and examples.

## Install

Expand All @@ -21,24 +23,18 @@ cp .env.example .env # add your API keys
daystrom generate # interactive guardrail generation
```

## Documentation

Full docs — installation, configuration, architecture, CLI reference, examples, and more:

**[cdot65.github.io/daystrom](https://cdot65.github.io/daystrom/)**

## Commands

| Command | Description |
|---------|-------------|
| `generate` | LLM-driven guardrail generation with iterative refinement |
| `resume` | Resume a paused or failed generation run |
| `report` | View results for a saved run |
| `report` | View results for a saved run (terminal, JSON, HTML) |
| `list` | List all saved runs |
| `runtime` | Prompt scanning + AIRS config management (profiles, topics, API keys, apps) |
| `runtime` | Prompt scanning + config management (profiles, topics, API keys, apps, scan logs) |
| `audit` | Multi-topic profile evaluation with conflict detection |
| `redteam` | Red team scanning — targets, prompt sets, scans, reports |
| `model-security` | ML model supply chain security — groups, rules, scans |
| `redteam` | Adversarial scanning — targets, prompt sets, scans, reports |
| `model-security` | ML model supply chain security — groups, rules, scans, labels |

## License

Expand Down
4 changes: 2 additions & 2 deletions docs/architecture/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ graph LR
| Domain | CLI Commands | Service Layer |
|--------|-------------|---------------|
| **Guardrail Generation** | `generate`, `resume`, `report`, `list` | Core loop + LLM + Scanner + Management |
| **Runtime Security** | `runtime scan`, `runtime bulk-scan` | `SdkRuntimeService` (sync + async scan) |
| **Runtime Security** | `runtime scan`, `runtime bulk-scan`, `runtime profiles`, `runtime topics`, `runtime api-keys`, `runtime customer-apps`, `runtime deployment-profiles`, `runtime dlp-profiles`, `runtime scan-logs` | `SdkRuntimeService` (sync + async scan) + `SdkManagementService` (config CRUD) |
| **AI Red Teaming** | `redteam scan`, `redteam targets`, `redteam prompt-sets`, `redteam prompts`, `redteam properties` | `SdkRedTeamService` + `SdkPromptSetService` |
| **Model Security** | `model-security groups`, `model-security rules`, `model-security scans`, `model-security labels` | `SdkModelSecurityService` |
| **Profile Audits** | `audit` | Audit runner + Scanner + LLM |
Expand Down Expand Up @@ -96,7 +96,7 @@ graph TD
| **`config/`** | Zod schema with coercion and defaults; cascade loader merges CLI flags, env vars, config file, and defaults |
| **`core/`** | AsyncGenerator loop that yields typed events, metric computation (TPR/TNR/F1), and AIRS constraint validation |
| **`llm/`** | Factory for 6 LangChain providers, structured output with Zod schemas, and prompt templates for all 4 LLM calls |
| **`airs/`** | Scanner (sync scan + batched concurrency), Runtime (sync + async bulk scan with polling), Management (topic CRUD + profile linking), Red Team (scan CRUD/polling/reports), Prompt Sets (custom prompt set management), Model Security (groups/rules/scans) |
| **`airs/`** | Scanner (sync scan + batched concurrency), Runtime (sync + async bulk scan with polling), Management (topic CRUD, profile CRUD, API keys, customer apps, deployment/DLP profiles, scan logs), Red Team (scan CRUD/polling/reports), Prompt Sets (custom prompt set management), Model Security (groups/rules/scans) |
| **`memory/`** | File-based learning store, LLM-driven extraction after each run, and budget-aware injection into future prompts |
| **`persistence/`** | `JsonFileStore` serializes `RunState` to `~/.daystrom/runs/` for pause/resume support |
| **`audit/`** | Profile-level multi-topic evaluation — generates tests per topic, computes per-topic and composite metrics, detects cross-topic conflicts |
Expand Down
2 changes: 0 additions & 2 deletions docs/features/runtime-security.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ Daystrom exposes full CRUD over AIRS runtime configuration resources via `daystr

```bash
daystrom runtime profiles list
daystrom runtime profiles get <profileId>
daystrom runtime profiles create --config profile.json
daystrom runtime profiles update <profileId> --config profile.json
daystrom runtime profiles delete <profileId>
Expand All @@ -172,7 +171,6 @@ daystrom runtime profiles delete <profileId> --force --updated-by user@example.c

```bash
daystrom runtime topics list
daystrom runtime topics get <topicId>
daystrom runtime topics create --config topic.json
daystrom runtime topics update <topicId> --config topic.json
daystrom runtime topics delete <topicId>
Expand Down
8 changes: 8 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ Daystrom is a CLI tool that provides full operational coverage over **Palo Alto

Optionally carry forward test prompts across iterations with dedup, catching regressions that fresh tests might miss.

- :material-shield-search:{ .lg .middle } **Runtime Security**

---

Scan prompts against live security profiles and manage AIRS configuration — profiles, topics, API keys, customer apps, and scan logs via `daystrom runtime`.

[:octicons-arrow-right-24: Runtime Security](features/runtime-security.md)

- :material-sword:{ .lg .middle } **AI Red Teaming**

---
Expand Down
4 changes: 0 additions & 4 deletions docs/reference/cli-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,6 @@ Security profile CRUD.

```bash
daystrom runtime profiles list
daystrom runtime profiles get <profileId>
daystrom runtime profiles create --config <path>
daystrom runtime profiles update <profileId> --config <path>
daystrom runtime profiles delete <profileId>
Expand All @@ -297,7 +296,6 @@ daystrom runtime profiles delete <profileId> --force --updated-by <email>
| Subcommand | Flags |
|------------|-------|
| `list` | — |
| `get <profileId>` | — |
| `create` | `--config <path>` (required) |
| `update <profileId>` | `--config <path>` (required) |
| `delete <profileId>` | `--force`, `--updated-by <email>` |
Expand All @@ -308,7 +306,6 @@ Custom topic CRUD.

```bash
daystrom runtime topics list
daystrom runtime topics get <topicId>
daystrom runtime topics create --config <path>
daystrom runtime topics update <topicId> --config <path>
daystrom runtime topics delete <topicId>
Expand All @@ -318,7 +315,6 @@ daystrom runtime topics delete <topicId> --force --updated-by <email>
| Subcommand | Flags |
|------------|-------|
| `list` | — |
| `get <topicId>` | — |
| `create` | `--config <path>` (required) |
| `update <topicId>` | `--config <path>` (required) |
| `delete <topicId>` | `--force`, `--updated-by <email>` |
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@cdot65/daystrom",
"packageManager": "pnpm@10.6.5",
"version": "1.14.1",
"version": "1.14.2",
"description": "CLI and library for Palo Alto Prisma AIRS — guardrail refinement, AI red teaming, model security scanning, profile audits",
"type": "module",
"main": "dist/index.js",
Expand Down
Loading