donaldfilimon/abi / .agents/skills/secure-demo
secure-demo
VerifiedBuild the abi CLI and run the WDBX security demo — int8 embedding compression, additive homomorphic-encryption sum, and a DGHV somewhat-homomorphic eval. Use when asked about WDBX compression ratios, homomorphic encryption, or the secure-demo output. Demo-grade, not security-audited.
secure.sh
View on GitHub#!/usr/bin/env bash
# secure-demo driver: build the abi CLI and run the WDBX "secure" demo —
# int8 embedding compression, additive homomorphic sum, and DGHV somewhat-
# homomorphic eval. Asserts each section's match/ratio marker.
#
# Usage: .agents/skills/secure-demo/secure.sh
set -uo pipefail
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)
REPO_ROOT=$(cd -- "$SCRIPT_DIR/../../.." && pwd)
cd "$REPO_ROOT"
ABI="$REPO_ROOT/target/debug/abi"
fail=0
say() { printf '\n=== %s ===\n' "$*"; }
say "build cli"
./tools/cargo.sh build -p abi-cli >/dev/null 2>&1 && echo "[ok] build" || { echo "[FAIL] build"; exit 1; }
[ -x "$ABI" ] || { echo "[FAIL] no binary"; exit 1; }
say "abi wdbx secure demo"
out=$("$ABI" wdbx secure demo 2>&1); rc=$?
printf '%s\n' "$out"
[ "$rc" -eq 0 ] || { echo "[FAIL] secure demo exit $rc"; fail=$((fail+1)); }
for marker in "compression:" "additive HE:" "homomorphic eval:" "match=true"; do
grep -qF -- "$marker" <<<"$out" && echo "[ok] marker: $marker" \
|| { echo "[FAIL] missing marker: $marker"; fail=$((fail+1)); }
done
say "summary"; echo "failed: $fail"
[ "$fail" -eq 0 ] && echo "RESULT: PASS — secure (compression + HE) demo ran." || echo "RESULT: FAIL — $fail check(s)."
exit "$fail"
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |