spekra
v1.1.0
Published
Unified 60-second 12-engine operational reliability and compliance audit CLI
Maintainers
Readme
Spekra Doctor 🩺
Unified 60-Second Operational Reliability & Compliance Audit CLI
Scan codebases and cloud architectures across 8 critical reliability vectors with zero setup.
⚡ Instant Quickstart
Run a full 8-vector reliability audit directly in any project folder without installing anything:
npx spekra doctorOr install globally:
npm install -g spekra
spekra doctorShare your experience
Tried Spekra Doctor? Share honest feedback. Tell us your version, what worked, what was confusing and what would make it useful again. Positive and negative feedback are both welcome. Review reports before sharing; do not post credentials, private code or customer data.
📊 What Spekra Doctor Audits
In under 500 milliseconds, Spekra Doctor evaluates your application against 8 operational failure modes and compliance standards:
================================================================================
🩺 SPEKRA RELIABILITY DOCTOR — UNIFIED 8-ENGINE AUDIT SCANNER
================================================================================
📁 Target Directory: ./my-project
⏱️ Duration: 380ms
📄 Files Inspected: 4,820
🔐 Cryptographic Seal: sha256:8ebfc0a2679531975a028c90...
--------------------------------------------------------------------------------
📊 COMPOSITE SPEKRA RELIABILITY INDEX: 88 / 100 [B (SOUND / LOW RISK)]
RELIABILITY VECTORS BREAKDOWN:
--------------------------------------------------------------------------------
⚠️ [RestoreProof ] Disaster Recovery & RTO Verification 65/100
✅ [StreamRepair ] Stream Pipeline Parity & Replay 100/100
✅ [ExceptionLease ] Privileged Exception Leases & Fencing 100/100
✅ [TenantPorter ] Multi-Tenant Boundary & Data Portability 80/100
✅ [MigrationRehearsal ] Zero-Downtime Schema Migrations & Locks 85/100
✅ [RetireRight ] Infrastructure Decommission & Zombie Cleanup 100/100
✅ [OutcomeReplay ] Event-to-Outcome Reconciliation & Idempotency 100/100
⚠️ [RotationProof ] Zero-Downtime Credential & Secret Rotation 75/100
--------------------------------------------------------------------------------
🛠️ PRIORITY REMEDIATION PLAYBOOK:
→ RestoreProof (65/100): npx restoreproof init
Installs automated ephemeral sandbox recovery rehearsals and SOC 2 CC9.1 compliance proofs.
→ RotationProof (75/100): npx rotationproof scan
Orchestrates dual-phase credential rotation and validates workload adoption.
================================================================================🛡️ The 8 Reliability Vectors
| Vector | Specialist Engine | Compliance Scope | Architectural Risks Checked |
| :--- | :--- | :--- | :--- |
| 1. Disaster Recovery & RTO | RestoreProof | SOC 2 CC9.1 / ISO 27001 A.12.3.1 | Unrehearsed backups, sequence desynchronization, live PII in dumps, RTO breach hazards |
| 2. Stream & Queue Parity | StreamRepair | SOC 2 CC7.2 / ISO 27001 A.12.1.2 | Silent Kafka/CDC partition divergence, unacknowledged queue drops, consumer poison pills |
| 3. Privilege Leases & Fencing | ExceptionLease | SOC 2 CC6.3 / ISO 27001 A.9.2.3 | Permanent wildcard ingress (0.0.0.0/0) on ports 22/3389/5432, stale emergency access |
| 4. Multi-Tenant Boundaries | TenantPorter | GDPR Article 20 / SOC 2 CC6.6 | Cross-tenant database bleed, missing tenant discriminator foreign keys, unmasked tokens |
| 5. Zero-Downtime Schema Migrations | MigrationRehearsal | SOC 2 CC8.1 / ISO 27001 A.14.2.2 | Table-locking CREATE INDEX without CONCURRENTLY, destructive DDL lock timeouts |
| 6. Infrastructure Decommissioning | RetireRight | SOC 2 CC6.5 / ISO 27001 A.11.2.7 | Orphan cloud volumes, dangling DNS CNAMEs, privileged container socket mounts |
| 7. Event-to-Outcome Reconciliation | OutcomeReplay | SOC 2 CC7.4 / ISO 27001 A.12.4.1 | Webhooks missing raw HMAC verification, unverified async jobs, missing idempotency keys |
| 8. Credential & Secret Rotation | RotationProof | SOC 2 CC6.1 / ISO 27001 A.9.4.3 | Hardcoded API keys, database connection pools lacking connection recycling (maxLifetime) |
🛠️ CLI Options & Usage
Use npx spekra doctor or an installed spekra doctor. In a checkout, use npm run spekra -- doctor; npm spekra doctor is not an npm command. Invalid options, unreadable scan directories, and thresholds outside 0–100 fail with a nonzero exit code.
# From a repository checkout
npm run spekra -- doctor
npm run doctor -- --json
# Show all available options
npx spekra doctor --help
# Scan a specific directory
npx spekra doctor --dir ./services/billing
# List engines or run only selected checks
npx spekra doctor --list-engines
npx spekra doctor --engines RotationProof,EnvProof --fail-on high
# Show individual finding titles and severity levels
npx spekra doctor --verbose
# Output machine-readable JSON (ideal for CI/CD pipelines)
npx spekra doctor --json
# Output GitHub PR-ready Markdown report
npx spekra doctor --markdown
# Generate a self-contained interactive HTML audit report (radial score gauge & remediation cards)
npx spekra doctor --html report.html
# or save to the default output path:
npx spekra doctor --report
# Save the audit report to a file
npx spekra doctor --out audit-report.json --json
# Enforce a minimum score threshold (exits with code 1 if score < threshold)
npx spekra doctor --min-score 85
# Fail on high or critical findings, independently of the overall score
npx spekra doctor --min-score 85 --fail-on highSave team defaults in .spekra-doctor.json in the scanned directory:
{
"minScore": 85,
"failOn": "high",
"engines": ["RotationProof", "EnvProof"],
"verbose": true
}Doctor automatically loads this file from the --dir target (or the current directory). Use --config ./ci/doctor.json for an explicit file, or --no-config to skip discovery. Explicit config paths resolve from the current working directory. CLI values override saved defaults. Invalid configuration fails before scanning; configuration never executes code.
With --engines, scores, findings, remediation, and gates reflect only the selected engines; omitted engines are not assessed. Names are case-insensitive and duplicates run once. The default still runs all 12 engines.
JSON reports include findingsSummary counts by severity, the configured failOn gate, and failureReasons. The score and severity gates must both pass. These are static heuristic findings; review them before treating them as verified security or compliance evidence.
🚀 CI/CD Integration (GitHub Actions)
Add Spekra Doctor as an automated pull request reliability gate in .github/workflows/reliability.yml:
Option A: Using the Composite GitHub Action
name: Operational Reliability Gate
on:
pull_request:
branches: [main]
jobs:
spekra-audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Spekra Doctor Audit
uses: subash-thiruppathy/pulseOps@main
with:
min-score: '80'
verbose: 'true'Option B: Using npx spekra doctor directly
- name: Run Spekra Doctor
run: npx spekra doctor --min-score 80 --verbose🌐 The Spekra Ecosystem
Spekra provides an integrated suite of autonomous reliability engines and cloud operations tooling alongside focused collaboration and planning applications:
Engineering Operations & Reliability (12 Products)
- 🛡️ RestoreProof: restoreproof.spekra.in — Automated backup recovery rehearsals
- ⚡ StreamRepair: streamrepair.spekra.in — Event stream & CDC divergence repair
- ⏳ ExceptionLease: exceptionlease.spekra.in — Time-bounded temporary access leases
- 📦 TenantPorter: tenantporter.spekra.in — Cryptographic tenant data portability
- 🔄 MigrationRehearsal: migrationrehearsal.spekra.in — Safe database migration dry-runs
- 🛑 RetireRight: retireright-esh.spekra.in — Verified cloud service decommissioning
- 🎯 OutcomeReplay: outcomereplay.spekra.in — Webhook & event-outcome reconciliation
- 🔐 RotationProof: rotationproof.spekra.in — Zero-downtime secret rotation verification
- 🌐 EnvProof: envproof.spekra.in — Configuration drift & secret leak prevention
- ⏱️ CronProof: cronproof.spekra.in — Scheduled workload overlap & heartbeat monitoring
- 🛡️ EgressProof: egressproof.spekra.in — Outbound data & LLM PII egress redaction
- ⚡ RateProof: rateproof.spekra.in — Rate limit resilience & circuit breaker auditing
People & Coordination (12 Products)
- 🏃 SquadSprint: squadsprint.spekra.in — 7-day interview-prep peer sprint coordinator
- 🔒 PlanLock: planlock.spekra.in — Group plan decision locking & agreement tracking
- 🌉 BriefBridge: briefbridge.spekra.in — Versioned client deliverable approvals & feedback
- 🏀 CourtCrew: courtcrew.spekra.in — Recreational game rosters, waitlists & auto-replacements
- 🥗 PantryLoop: pantryloop.spekra.in — Household meal planning & shared inventory sync
- 📚 RecallCircle: recallcircle.spekra.in — Spoiler-safe book club reflections & discussion memory
- 🚶 QueueKind: queuekind.spekra.in — Walk-in ticket coordination & operator balancing
- 🥖 BatchBasket: batchbasket.spekra.in — Small-maker batch reservations & pickup scheduling
- ✈️ TripQuorum: tripquorum.spekra.in — Group travel proposals, private budgets & consensus
- 🎭 StageCue: stagecue.spekra.in — Band rehearsal arrangements & offline setlist sync
- ⚖️ ShiftFair: shiftfair.spekra.in — Voluntary shift cover offers & manager-approved transfers
- 📦 BorrowBlock: borrowblock.spekra.in — Community lending with two-party handover verification
For the enterprise observability platform, full product directory, documentation, and cloud console, visit spekra.in and spekra.in/products/.
📄 License
Licensed under the Apache-2.0 License.
