Skip to content

v2.1.0: Asynchronous Operations & Job Queue Engine

Latest

Choose a tag to compare

@jmrenouard jmrenouard released this 09 Nov 16:38
· 98 commits to main since this release
459295a

API Executor v2.1.0 Release Notes — Asynchronous Operations & Priority Job Engine

Release Tag: v2.1.0
Previous Tag: v2.0.0
Date: 2026-11-09
Repository: go-admin-tool
License: Apache 2.0


Executive Overview

API Executor v2.1.0 introduces a high-performance Asynchronous Action Execution and Priority Queue Subsystem (Milestones 1–5), decoupling long-running infrastructure commands, multi-domain plugin workflows, and database queries from synchronous HTTP server threads.

This release provides non-blocking job submission (POST /api/v1/jobs), priority heap queuing (High, Normal, Low), worker pool management, OS process-group cancellation, concurrency-safe circular log buffering, two-tier RBAC authorization, Prometheus telemetry, SHA-256 tamper-evident audit chaining, and an interactive Web Administration Console (Tab 9: Async Jobs & Queue) with real-time log tailing.

Every feature is backed by a comprehensive 4-Tier End-to-End (E2E) Test Suite (88/88 E2E tests passing, 464 unit/integration tests passing, 100% pass rate, zero race conditions under Go's race detector) and certified across all 11 packages exceeding the >=80% statement coverage standard.


Key Highlights & Architectural Enhancements

HTTP Client / Web Console (Tab 9)
             │
             ▼
┌───────────────────────────────────────────────┐
│              internal/api/                    │
│  POST /api/v1/jobs ──► Two-Tier RBAC Check    │
│  GET  /api/v1/jobs ──► List & Query Filters   │
│  GET  /api/v1/jobs/{id}/logs ──► Chunked Stream│
│  POST /api/v1/jobs/{id}/cancel ──► Cancel Job │
└──────────────────────┬────────────────────────┘
                       │
                       ▼
┌───────────────────────────────────────────────┐
│              internal/jobs/                   │
│                                               │
│  ┌─────────────────────────────────────────┐  │
│  │    JobQueue (container/heap Priority)   │  │
│  │  High > Normal > Low (FIFO Tie-Breaker) │  │
│  │  Capacity Bound: 1000 (ErrQueueFull)    │  │
│  └────────────────────┬────────────────────┘  │
│                       │                       │
│                       ▼                       │
│  ┌─────────────────────────────────────────┐  │
│  │    WorkerPool (Bounded Goroutines)      │  │
│  │  Consumes jobs, passes Context & Buffer │  │
│  └────────────────────┬────────────────────┘  │
│                       │                       │
│        ┌──────────────┴──────────────┐        │
│        ▼                             ▼        │
│  ┌───────────┐                 ┌───────────┐  │
│  │ Core Exec │                 │  Plugins  │  │
│  │ (Process  │                 │ (Native / │  │
│  │  Group)   │                 │ Declarat.)│  │
│  └─────┬─────┘                 └─────┬─────┘  │
│        └──────────────┬──────────────┘        │
│                       ▼                       │
│  ┌─────────────────────────────────────────┐  │
│  │    JobLogBuffer (2 MiB Max, Thread-Safe)│  │
│  │  Simultaneous Subprocess Write & Read   │  │
│  └─────────────────────────────────────────┘  │
└──────────────────────┬────────────────────────┘
                       │
                       ▼
┌───────────────────────────────────────────────┐
│              Persistence & Audit              │
│  JobStore (SQLite / In-Memory Fallback)       │
│  AuditLogger (SHA-256 Chained Hash Log)       │
│  Prometheus Metrics (Normalized Route Labels) │
└───────────────────────────────────────────────┘
  1. Non-Blocking Execution Engine (Milestone 1): Long-running system diagnostics, container operations, and database inspections run asynchronously in a managed worker pool without tying up HTTP server threads.
  2. Prioritized Workload Scheduling (Milestone 1): Three-tier heap priority queue (High, Normal, Low) ensures urgent operational tasks leapfrog normal batches while preserving strict FIFO ordering within each tier.
  3. OS Process-Group Termination (Milestone 1): Subprocess cancellations propagate down the entire OS process hierarchy (SIGKILL to process groups on Unix; taskkill /T /F on Windows), eliminating orphan background processes.
  4. Circular Streaming Log Buffers (Milestone 1): Concurrency-safe memory buffers capture stdout and stderr streams in real time up to 2 MiB per job with offset-based chunked client polling and automatic EOF signaling.
  5. Two-Tier RBAC & Scope Protection (Milestone 2): Callers must possess the specific jobs:* scope AND have authorization for the underlying command or plugin action.
  6. Prometheus Telemetry with DoS Protection (Milestone 2): Dynamic job IDs in routes are normalized to static label templates (/api/v1/jobs/:id), preventing unbounded label cardinality DoS.
  7. Tamper-Evident SHA-256 Audit Trail (Milestone 2): Complete cryptographic hash chaining for every lifecycle transition (job.enqueued, job.started, job.completed, job.failed, job.cancelled, job.timed_out).
  8. Web Administration Console Tab 9 (Milestone 3): Interactive single-page operational dashboard featuring queue telemetry cards, background dispatcher, execution table, and real-time streaming log viewer modal.
  9. 4-Tier E2E Test Suite (Milestone 4): 88 opaque-box end-to-end tests exercising feature workflows, boundary conditions, concurrency races, and real-world multi-tenant scenarios.
  10. Enterprise Governance Compliance (Milestone 5): OpenAPI 3.0 / Swagger 2.0 specifications updated, architecture documentation published, and statement coverage exceeding 80% across all 11 packages.

Detailed Breakdown by Milestone

Milestone 1: Core Asynchronous Job Engine (internal/jobs/)

  • Domain Models & Thread Safety (internal/jobs/job.go):
    • Job struct with fine-grained sync.RWMutex protection.
    • Lifecycle states: queued -> running -> completed | failed | cancelled | timed_out.
    • Immutable terminal state guarantees: once terminal, a job cannot be transitioned or modified (IsTerminal() == true).
    • Thread-safe Snapshot() returning an immutable shallow clone without copying mutexes.
    • Custom MarshalJSON() synchronization preventing data races during concurrent worker mutations.
  • Priority Heap Queue (internal/jobs/queue.go):
    • Max-heap backed by Go standard library container/heap.
    • Priority levels: High (weight 3), Normal (weight 2), Low (weight 1).
    • Monotonic queueSeq tie-breaking guaranteeing strict FIFO ordering within identical priority tiers.
    • Bounded capacity (capacity: 1000, configurable) returning ErrQueueFull when full.
    • Efficient $O(\log N)$ queue-time cancellation via Remove(jobID) and internal lookup hash map.
  • Worker Pool Management (internal/jobs/worker.go):
    • Fixed pool of worker goroutines (default: 4 workers).
    • Per-job execution context with timeout enforcement (DefaultJobTimeout = 30s).
    • Active jobs map (activeJobs map[string]context.CancelFunc) enabling immediate mid-flight cancellation.
    • Panic recovery converting unexpected runtime panics into graceful StatusFailed terminal states.
    • Graceful draining on server shutdown (Shutdown(ctx)), allowing active jobs up to the shutdown context deadline to complete.
  • Process-Tree Execution & Cancellation (internal/core/executor.go):
    • Enhanced ExecuteCommandWithContext accepting context.Context and real-time io.Writer.
    • Unix: SysProcAttr{Setpgid: true} and syscall.Kill(-cmd.Process.Pid, syscall.SIGKILL).
    • Windows: taskkill /T /F /PID <pid> terminates child and grandchild processes.
    • cmd.WaitDelay = 200 * time.Millisecond prevents dangling pipe deadlocks on child exit.
  • Circular In-Memory Log Buffer (internal/jobs/buffer.go):
    • Thread-safe bounded memory buffer (DefaultMaxLogBytes = 2 << 20 / 2 MiB).
    • Implements io.Writer: excess output beyond 2 MiB is dropped, sets truncated = true, and returns len(p), nil to prevent broken pipe errors on child processes.
    • Chunked reading via ReadChunk(offset int) (logs string, nextOffset int, truncated bool, eof bool).
  • Dual Persistence Store (internal/jobs/store.go):
    • SQLiteJobStore: Backed by SQLite table job_history with composite indexes on status, action, actor_id, and created_at DESC.
    • MemoryJobStore: Pure-Go in-memory store using deep-cloning snapshots, providing full functionality when compiled with CGO_ENABLED=0.
    • Automatic background retention pruner running every 10 minutes, pruning terminal jobs older than MaxJobAge (7 days) or exceeding MaxRetainedJobs (10,000).

Milestone 2: REST API Endpoints, Security & Telemetry

  • 6 New REST API Endpoints (internal/api/job_handlers.go, router.go):
    • POST /api/v1/jobs: Submit asynchronous command or plugin job (returns HTTP 202 Accepted).
    • GET /api/v1/jobs: Query and list background jobs with status/type/action/actor filtering and pagination.
    • GET /api/v1/jobs/{id}: Retrieve detailed job execution metadata, timestamps, and results.
    • GET /api/v1/jobs/{id}/logs: Stream real-time chunked execution logs with byte offset tracking.
    • POST /api/v1/jobs/{id}/cancel: Abort an active queued or running job.
    • GET /api/v1/jobs/queue: Retrieve live queue depth, capacity, and active worker metrics.
  • Two-Tier RBAC Scopes (internal/auth/manager.go):
    • New scopes: jobs:submit, jobs:read, jobs:cancel.
    • Role inheritance: admin (*), operator (jobs:submit, jobs:read, jobs:cancel), viewer (jobs:read), service (jobs:submit, jobs:read).
    • Two-tier validation: Job submission requires jobs:submit scope AND commands:execute or plugins:execute for the underlying action.
    • Machine-to-machine service accounts are additionally checked against their allowed_actions allowlist.
  • Prometheus Metric Collectors (internal/api/job_metrics.go):
    • job_queue_depth: Gauge of jobs currently waiting in the queue.
    • job_workers_active: Gauge of worker goroutines currently executing jobs.
    • job_workers_total: Gauge of configured worker goroutines in the pool.
    • job_executions_total: Counter partitioned by labels status and action.
    • job_execution_duration_seconds: Histogram partitioned by action with 13 latency buckets (0.05s to 600s).
    • Cardinality protection: Route normalization collapses dynamic IDs to /api/v1/jobs/:id, /api/v1/jobs/:id/logs, /api/v1/jobs/:id/cancel.
  • SHA-256 Tamper-Evident Audit Logging (internal/jobs/engine.go):
    • Cryptographic hash chaining under category "job" for lifecycle events: job.enqueued, job.started, job.completed, job.failed, job.cancelled, job.timed_out.
    • Rejection and denial events recorded under category "job" with status "denied".
    • Verifiable via GET /api/v1/audit/verify.

Milestone 3: Web Administration Console Tab 9 (web/static/index.html)

  • Interactive Operational Dashboard:
    • Navigation tab: 9. Async Jobs & Queue with dynamic real-time badge displaying queued jobs count.
    • Live Queue Telemetry Cards:
      • Queued Jobs: Current queue depth with pulsating amber alert indicator.
      • Active Workers: Busy vs total ratio and percentage worker utilization.
      • Queue Capacity: Bounded max capacity and free slot counter.
      • Recorded History: Total executions recorded in SQLite journal.
      • Auto-Refresh Toggle: 5-second automatic polling with manual refresh button.
    • Job Dispatcher Form:
      • Target type selector: Command Action vs Plugin Action.
      • Dynamic target selection: Predefined commands list or Plugin ID + Action name.
      • Execution priority selector: Normal (FIFO), High (Front of Queue), Low (Background Idle).
      • Timeout override input (e.g. 30s, 2m, 5m).
      • JSON parameter payload editor with validation.
      • Instant bash cURL command generator for automation and CI/CD pipelines.
      • Visual state machine legend: QUEUED -> RUNNING -> COMPLETED, terminal aborts: FAILED, CANCELLED.
    • Execution History Table:
      • Multi-criteria filtering: Status dropdown (queued, running, completed, failed, cancelled, timed_out), Type dropdown (command, plugin), and action search input (300ms debounce).
      • Status badges with animated ping for actively running tasks.
      • Pagination controls: configurable page size (10, 20, 50, 100), previous/next navigation, showing X to Y of Z.
    • Live Streaming Log Viewer Modal (#job-log-modal):
      • Opened by clicking Job ID or "View Logs" button.
      • Real-time chunked log polling from byte offsets.
      • Live tailing indicator: "Tailing live...", "Stream Complete (EOF)", "Paused".
      • Auto-scroll lock toggle, manual scroll, copy to clipboard, and raw download.
      • Truncation banner: [TRUNCATED AT 2 MiB BUFFER CAP].
      • In-modal "Abort / Cancel Job" button (active only if non-terminal).

Milestone 4: Comprehensive 4-Tier E2E Test Suite (tests/e2e/)

  • 4-Tier Test Architecture:
    • Harness (setup_test.go): Single-pass directory loading and plugin catalog verification (1 test).
    • Tier 1 (Feature Coverage, tier1_feature_test.go): 31 tests covering catalog discovery, filtering, native plugins, declarative plugins, MCP integration, and 6 async job tests (command submission, plugin submission, status polling, pagination, queue stats, chunked log streaming).
    • Tier 2 (Boundary & Corner Cases, tier2_boundary_test.go): 23 test functions (38 test runs) covering injection defense, type mismatches, and 9 async job boundary tests (missing required fields, invalid job type, plugin without plugin_id, 404s on non-existent job ID, 409 Conflict on cancelling already terminal job, negative pagination sanitization, malformed JSON body, timeout enforcement timed_out, and queue capacity backpressure HTTP 429).
    • Tier 3 (Cross-Feature Combinations, tier3_cross_feature_test.go): 12 tests covering RBAC enforcement, service account allowlists, Prometheus correlation, and 5 async job cross-feature tests (two-tier RBAC, full lifecycle SHA-256 audit hash chaining, Prometheus telemetry invariants, high-concurrency 30-goroutine priority heap race, and async job cancellation with immediate subprocess group termination).
    • Tier 4 (Real-World Scenarios, tier4_real_world_test.go): 6 tests covering multi-step host diagnostics, database health inspection, autonomous LLM agent triage, and 2 async job production workflows (SRE batch diagnostics with chunked log tailing & cancellation, enterprise multi-tenant isolation with actor queries & audit segregation).
  • Quality Metrics:
    • 88/88 E2E tests passing (100% pass rate).
    • 464 unit and integration tests passing (100% pass rate across all 11 packages).
    • Zero data races detected under Go's race detector (go test -race).
    • Zero warnings under go vet ./....

Milestone 5: Documentation, OpenAPI & Code Quality Standards

  • Swagger 2.0 / OpenAPI 2.0 Specifications (docs/swagger.json, docs/swagger.yaml, docs/docs.go):
    • All 6 asynchronous operations (POST /api/v1/jobs, GET /api/v1/jobs, GET /api/v1/jobs/queue, GET /api/v1/jobs/{id}, GET /api/v1/jobs/{id}/logs, POST /api/v1/jobs/{id}/cancel) fully specified with request/response schemas, query parameters, path variables, HTTP status codes, and declarative Swaggo AST comments co-located in internal/api/job_handlers.go. Fully compatible with OpenAPI 3.0 tooling.
  • Architectural Documentation (docs/SECURITY_AND_ARCHITECTURE_ANALYSIS.md):
    • Section 5 comprehensively details the Asynchronous Job Engine architecture, data flow diagrams, thread safety, process tree termination, and security threat mitigations.
  • Repository-Wide Statement Coverage Standard:
    • All 11 repository packages exceed the >=80% threshold:
      • cmd/server: 86.6%
      • docs: 100.0%
      • internal/api: 84.3%
      • internal/audit: 94.2%
      • internal/auth: 92.0%
      • internal/core: 86.0%
      • internal/database: 94.6%
      • internal/jobs: 85.5%
      • internal/mcp: 92.7%
      • internal/plugins: 83.3%
      • tests/e2e: Test harness and 4-tier suite (100% test code)
  • Living Governance Registers:
    • docs/ACTION_LOGBOOK.md: Atomic actions ACT-042 through ACT-048 recorded.
    • docs/RCA_REGISTER.md: Technical analyses RCA-038 through RCA-042, technical dead-ends IMP-007 and IMP-008, simplifying assumptions APP-010, and roadmap ideas IDEA-008 through IDEA-010 recorded.

REST API Specification & Examples

1. Submit Asynchronous Job

  • Method & Path: POST /api/v1/jobs
  • Required Scopes: jobs:submit AND underlying execution permission (commands:execute or plugins:execute).
  • Request Body:
{
  "type": "command",
  "action": "system-diagnostics",
  "priority": "high",
  "timeout": "45s",
  "params": {
    "verbosity": "detailed"
  }
}
  • Response: HTTP/1.1 202 Accepted
  • Headers: Location: /api/v1/jobs/job_3f8a9b2c
{
  "job_id": "job_3f8a9b2c",
  "status": "queued",
  "priority": "high",
  "action": "system-diagnostics",
  "type": "command",
  "created_at": "2026-11-09T16:00:00Z",
  "poll_url": "/api/v1/jobs/job_3f8a9b2c",
  "logs_url": "/api/v1/jobs/job_3f8a9b2c/logs"
}

2. List Asynchronous Jobs

  • Method & Path: GET /api/v1/jobs?status=completed&limit=10&offset=0
  • Required Scopes: jobs:read
  • Response: HTTP/1.1 200 OK
{
  "jobs": [
    {
      "id": "job_3f8a9b2c",
      "type": "command",
      "action": "system-diagnostics",
      "priority": "high",
      "status": "completed",
      "created_at": "2026-11-09T16:00:00Z",
      "started_at": "2026-11-09T16:00:01Z",
      "completed_at": "2026-11-09T16:00:05Z",
      "duration_ms": 4120,
      "timeout": 45000000000,
      "actor_type": "user_token",
      "actor_id": "operator_alice"
    }
  ],
  "total": 42,
  "limit": 10,
  "offset": 0
}

3. Retrieve Job Detail

  • Method & Path: GET /api/v1/jobs/{id}
  • Required Scopes: jobs:read
  • Response: HTTP/1.1 200 OK
{
  "id": "job_3f8a9b2c",
  "type": "command",
  "action": "system-diagnostics",
  "priority": "high",
  "status": "completed",
  "created_at": "2026-11-09T16:00:00Z",
  "started_at": "2026-11-09T16:00:01Z",
  "completed_at": "2026-11-09T16:00:05Z",
  "duration_ms": 4120,
  "timeout": 45000000000,
  "actor_type": "user_token",
  "actor_id": "operator_alice",
  "result_data": {
    "output": "Memory: 16GB OK\nDisk: 82% OK\n"
  }
}

4. Stream Real-Time Chunked Logs

  • Method & Path: GET /api/v1/jobs/{id}/logs?offset=0
  • Required Scopes: jobs:read
  • Response: HTTP/1.1 200 OK
{
  "job_id": "job_3f8a9b2c",
  "status": "running",
  "logs": "Running diagnostic probe 1...\nProbe 1 passed.\n",
  "offset": 0,
  "next_offset": 48,
  "truncated": false,
  "eof": false
}

5. Cancel Asynchronous Job

  • Method & Path: POST /api/v1/jobs/{id}/cancel
  • Required Scopes: jobs:cancel
  • Response: HTTP/1.1 200 OK
{
  "job_id": "job_3f8a9b2c",
  "status": "cancelled",
  "message": "Job cancellation requested successfully"
}

6. Queue Telemetry

  • Method & Path: GET /api/v1/jobs/queue
  • Required Scopes: jobs:read
  • Response: HTTP/1.1 200 OK
{
  "queued_jobs": 3,
  "workers_total": 4,
  "workers_active": 2,
  "capacity": 1000
}

RBAC Permissions Matrix

Role Scope Included Submit Jobs (POST /jobs) View Jobs & Logs (GET /jobs/*) Cancel Jobs (POST /cancel) Under-the-Hood Actions
admin * Yes Yes Yes Unrestricted access across all domains.
operator jobs:submit, jobs:read, jobs:cancel Yes Yes Yes Commands, plugins, MCP, audit logs, file downloads.
viewer jobs:read No (403) Yes No (403) Read-only inspection of jobs, commands, plugins, TLS.
service jobs:submit, jobs:read Yes Yes No (403) Machine-to-machine; checked against allowed_actions.
anonymous (None when RequireAuth: true) No (401) No (401) No (401) Denied when authentication is required.

Prometheus Metrics Catalog

Metric Name Type Labels Description
job_queue_depth Gauge None Current depth of the asynchronous job queue.
job_workers_active Gauge None Current number of active worker goroutines executing jobs.
job_workers_total Gauge None Total number of configured worker goroutines in the pool.
job_executions_total Counter status, action Total number of asynchronous job executions partitioned by terminal status.
job_execution_duration_seconds Histogram action Histogram of asynchronous job execution latencies (buckets: 0.05 to 600 seconds).

Quality & Test Verification Metrics

Category Value Status
End-to-End Tests (tests/e2e/...) 88 / 88 passing (100%) PASS
Unit & Integration Tests (./...) 464 / 464 passing (100%) PASS
Go Race Detector (go test -race) 0 data races detected PASS
Static Analysis (go vet ./...) 0 warnings / 0 copylocks PASS
Statement Coverage Standard All 11 packages >= 80% (Average: 88.7%) PASS

Backward Compatibility & Breaking Changes Assessment

  • Zero Breaking Changes: All pre-existing synchronous endpoints (POST /api/v1/execute, POST /api/v1/plugins/execute, POST /api/v1/mcp) remain fully supported with unchanged request and response contracts.
  • Opt-In Asynchronous Mode: Workloads that previously ran synchronously can now opt-in to background execution by submitting to POST /api/v1/jobs.
  • Database Schema: The job_history table and composite indexes are created automatically during database initialization (internal/database/db.go), requiring no manual schema migrations.
  • Pure-Go Portability: Environments running with CGO_ENABLED=0 automatically fall back to the in-memory store without any loss of API functionality.

Upgrade & Migration Guide

Upgrading from v2.0.0 to v2.1.0 is seamless and backward compatible:

  1. Pull and Build the v2.1.0 Binary:
    git fetch --tags
    git checkout v2.1.0
    go build -o bin/api_executor cmd/server/main.go
  2. Configuration Updates (Optional):
    The async engine runs out-of-the-box with sensible defaults (4 workers, 1000 queue capacity, 2 MiB log buffer, 7-day retention). No configuration changes are required.
  3. Database Migration:
    On first boot, api_executor automatically checks and initializes the job_history table in SQLite (db.Init()).
  4. Token Permissions:
    Existing operator and service tokens will automatically receive their assigned jobs:* permissions upon restarting the daemon.
  5. Web Console:
    Navigate to the web interface (port 8080 by default) and click tab 9. Async Jobs & Queue to begin dispatching and monitoring background operations.

Cryptographic Checksum Verification & Asset Integrity

All release archives are cryptographically hashed with SHA-256. Both a unified checksum manifest and conventional per-archive .sha256 checksum files are attached as release assets:

Platform / OS Architecture Release Archive Asset Conventional .sha256 Asset SHA-256 Digest
Linux �md64 �pi_executor-v2.1.0-linux-amd64.tar.gz �pi_executor-v2.1.0-linux-amd64.tar.gz.sha256 e3151e0d38c18b128d97d39c2b07bc73fbce2ef13c66b486f0040ece11f0bff
Linux �rm64 �pi_executor-v2.1.0-linux-arm64.tar.gz �pi_executor-v2.1.0-linux-arm64.tar.gz.sha256 �416391a74ab35f8e738386803f1425881dced9e286a5d2c7864074fd41007af
macOS (Darwin) �md64 �pi_executor-v2.1.0-darwin-amd64.tar.gz �pi_executor-v2.1.0-darwin-amd64.tar.gz.sha256 44472b648619187585727ddb97e8a140ae12eab700ffa3262cc513f15c2f9af3
macOS (Darwin) �rm64 �pi_executor-v2.1.0-darwin-arm64.tar.gz �pi_executor-v2.1.0-darwin-arm64.tar.gz.sha256 e136b9f36f82a78ddf83b704de5b0c6802363bb8fd643f4db53cbc230f054e11
Windows �md64 �pi_executor-v2.1.0-windows-amd64.zip �pi_executor-v2.1.0-windows-amd64.zip.sha256 e50d18e9fa956e477b6e4776e72ba8014425704d987babd59456e653d3b0439d
Windows �rm64 �pi_executor-v2.1.0-windows-arm64.zip �pi_executor-v2.1.0-windows-arm64.zip.sha256 7a683f37173220cd1f8da7fdfe007e36e269fe417673d9e860658e9095a496ef
All Platforms Unified Manifest SHA256SUMS.txt — 3e3499dea256f04f65d04bbe18e328314c07d30aa3249c662b52cc9d8f3610c2

Verify via Unified Manifest (Linux / macOS)

bash sha256sum -c SHA256SUMS.txt --ignore-missing

Verify via Individual Checksum File (Linux / macOS)

bash sha256sum -c <archive-filename>.sha256

macOS Note: If sha256sum is unavailable on macOS, use shasum -a 256 -c SHA256SUMS.txt --ignore-missing or shasum -a 256 -c .sha256.

Verify via PowerShell (Windows)

``powershell
$archive = ""

Option A: Verify via individual .sha256 checksum file

$expectedHash = (Get-Content "$archive.sha256").Split(" ")[0]
$actualHash = (Get-FileHash $archive -Algorithm SHA256).Hash.ToLower()
if ($actualHash -eq $expectedHash) { Write-Host "Checksum verification PASSED" -ForegroundColor Green } else { Write-Error "Checksum verification FAILED" }

Option B: Verify via unified SHA256SUMS.txt manifest

$manifestHash = (Select-String -Path .\SHA256SUMS.txt -Pattern $archive).Line.Split(" ")[0]
if ($actualHash -eq $manifestHash) { Write-Host "Manifest verification PASSED" -ForegroundColor Green } else { Write-Error "Manifest verification FAILED" }
``


API Executor Team — Built with Go and Zero External Runtime Dependencies.