caelum0x 2d2b15c7fe feat: full guardrail-alpha system + CLI modularization + Vercel deploy config
- Rust engine: real bootstrap/wiring preflight (guardrail-agent), execution layer (retry/router/pre-trade/post-trade/reconciliation), guardrail-doctor diagnostics with allowlist-drift guard.

- guardrail-cli: extracted pure helpers into util.rs (split in progress).

- 6 Track-2 skills + ensemble; python-lab analytics (regime/drawdown/montecarlo/dossier/ensemble/journal/seed); clients (ts/py/go/mcp/langchain/web-lite/proof-verifier); alert relay; scenarios; helm/k8s/compose; docs.

- dashboard/vercel.json + docs/VERCEL_DEPLOY.md for Vercel deployment.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-15 11:02:22 +03:00

27 lines
544 B
Rust

//! Tests for identifier helpers.
use common::ids::{new_id, new_run_id};
#[test]
fn new_id_is_non_empty() {
assert!(!new_id().is_empty());
}
#[test]
fn new_id_is_unique_across_calls() {
assert_ne!(new_id(), new_id());
}
#[test]
fn new_run_id_has_run_prefix() {
let id = new_run_id();
assert!(id.starts_with("run_"), "expected run_ prefix, got {id}");
// Something follows the prefix.
assert!(id.len() > "run_".len());
}
#[test]
fn new_run_id_is_unique_across_calls() {
assert_ne!(new_run_id(), new_run_id());
}