A comprehensive runtime system for documenting and verifying agent operational reliability through structured artifact recording, validation, and compliance reporting.
/scripts)rep.mjs - Main CLI for initialization, validation, and bundle managementrep-validate.mjs - Schema validation engine for REP artifactsrep-heartbeat-cron.mjs - Records agent heartbeats on a schedulerep-near-miss-cron.mjs - Tracks near-miss reliability eventsrep-performance-baseline.mjs - Captures performance metricsrep-generate-bundle.mjs - Generates REP bundles from artifacts/cli)cli/README.md for installation and usage/github-action)github-action/README.md for setup/schemas)decision_rejection_log.jsonhandoff_acceptance_packet.jsonmemory_reconstruction_audit.jsonnear_miss_reliability_trailer.jsonsigned_divergence_violation_record.json/examples)No other system binaries required.
# Clone or copy this bundle to your project
cp -r rep-bundle-v2 /path/to/your/project/rep
cd rep
# Make scripts executable
chmod +x scripts/*.mjs
# Test
node scripts/rep.mjs --help
cd cli
npm install -g
rep --help
- uses: ./github-action
with:
bundle-path: ./rep
Set environment variables to configure behavior:
# Path to artifacts directory (default: ./artifacts)
REP_ARTIFACTS_PATH=./artifacts
# Path to schemas directory (default: ./schemas)
REP_SCHEMAS_PATH=./schemas
# Log file path (optional)
REP_LOG_FILE=/var/log/rep.log
node scripts/rep.mjs init --name "my-agent"
node scripts/rep-validate.mjs ./artifacts --strict
REP_ARTIFACTS_PATH=./artifacts node scripts/rep-heartbeat-cron.mjs
# Add to crontab - run heartbeat every 5 minutes
*/5 * * * * cd /path/to/rep && REP_ARTIFACTS_PATH=./artifacts node scripts/rep-heartbeat-cron.mjs >> /var/log/rep-heartbeat.log 2>&1
| Artifact | Purpose |
|---|---|
agent_heartbeat_record |
Agent lifecycle events |
decision_rejection_log |
Decisions and their outcomes |
context_snapshot |
Memory/context state |
handoff_acceptance_packet |
Inter-agent handoff validation |
near_miss_reliability_trailer |
Near-miss events |
memory_reconstruction_audit |
Memory integrity checks |
signed_divergence_violation_record |
Policy violations |
MIT
SPEC.md, QUICKSTART.md, INTEGRATION.mdexamples/node scripts/rep-validate.mjs --help7w4.net收錄了海量優質技能外掛。
REP captures context snapshots, decision logs, and memory-like artifacts that may contain sensitive information.
- Set REP_ARTIFACTS_PATH to an isolated, access-controlled directory
- Review or redact artifacts before sharing externally
- Consider running in a container or unprivileged account
The SPEC includes signature fields for artifact integrity, but key management is operator-defined: - Do NOT place private keys in the artifacts directory - Use external KMS or secure vault for production signing - For testing, generate keys externally and pass via environment (future feature)
The GitHub Action is local to your repository:
- Review github-action/entrypoint.sh before use in public CI
- Ensure no artifacts leak to external endpoints
- Use isolated artifact paths in CI environments
All scripts operate locally: - No telemetry or external API calls - No automatic updates - All file I/O is to configured artifact paths only
.gitignore這個 Skill 整體質量較好,文件詳細、整合方式多樣、場景示例豐富,能滿足可靠性證據收集需求。但存在一些小問題:部分文件描述不一致、有個別檔案缺失、合規狀態為部分通過(非完全)。對於需要完整可靠性的生產環境,建議先確認這些小問題得到修復。日常使用體驗應該是不錯的。