The Cluster Computing Grid System (CCGSC) is a distributed, heterogeneous grid computing framework designed to orchestrate browser worker tabs and edge nodes executing WebAssembly (WASM) and high-performance JavaScript workloads. The system partitions extensive numerical search spaces and dense matrix operations across concurrent worker clients, coordinating task assignment, lease lifecycle management, result validation, and audit trail preservation without requiring client-side installations.
CCGSC implements three distinct computational pipelines, termed lanes:
Node coordination and cluster state are synchronized across Node.js backend processes, Fastify HTTP microservices, Redis persistence keys, and PM2 process management, ensuring fault tolerance, automatic failover, and zero feature loss during computational runs.
The platform separates operational responsibilities into independent server daemons and client-facing dashboards:
coordinator_server.js): Manages WebSocket connectivity for the IsPrime lane, maintains the in-memory task queue, registers connected workers, executes periodic state saves to config/isprime_config.v1.json, and writes timestamped archives into archive/isprime/<timestamp>/.server/admin_server.js): Fastify-based HTTP application hosting the SSPrime routes (server/routes/prime.js), Matrix routes (server/routes/matrix.js), Worker Pool administration (server/routes/pool_admin.js), and Session Authentication.server/pool_gateway.js): Redis-backed registration and heartbeat aggregator managing worker liveness TTLs, cluster tagging, and lane policy dispatch.task_log.csv), and append-only audit segments.public/director.html)The IsPrime Director interface monitors and commands the WebSocket-based prime distribution coordinator. It allows operators to configure search limits, partition work units into discrete tasks, initiate distributed runs, monitor real-time worker progress, and archive run evidence.
logout-btn control. Normal status shows authenticated role (director, admin, or owner).Idle, Running, or Paused), upper limit N, active worker counts, and legacy control buttons. The clearStateBtn remains in the visible row; legacy buttons (start-btn, pause-resume-btn, restart-btn) are housed in a collapsed details box.rebuild-worker-stats-btn button.start-seg-btn.wo6-ip-*): The primary visible operator surface for setting parameters, staging changes, controlling execution, refreshing status, and executing archives.control_renderer.js; provides clust-apply-isprime to enforce cluster routing.persistence_panel.js to monitor storage health and snapshot intervals.h7-audit-refresh and h7-audit-rotate.wo6-ip-N): Inclusive upper bound of the prime search space (must be integer ≥ 2).wo6-ip-tasks): Total number of discrete partition ranges to generate across the search space.wo6-ip-auto): Checkbox enabling the coordinator to automatically compute an optimal task partition count based on N.| Control ID | Label | What it does | Endpoint | Role | Reversible? | Safe-use note |
|---|---|---|---|---|---|---|
wo6-ip-reload |
Reload Config | Fetches the active configuration snapshot from the coordinator and populates form fields. | WS getPrimeConfig |
director, admin | Yes | Safe read-only action. Discards unsaved local form edits. |
wo6-ip-stage |
Stage Config | Validates and holds form parameters in memory as the staged configuration for subsequent runs. | WS stagePrimeConfig |
director, admin | Yes | Can be undone with wo6-ip-unstage. Refused with PRIME_CONFIG_LOCKED if run is active. |
wo6-ip-save |
Save as Default | Persists staged or active configuration to config/isprime_config.v1.json as boot default. |
WS savePrimeConfigDefault |
director, admin | Yes | Overwrites the existing default file on disk. Reversible by staging and saving again. |
wo6-ip-unstage |
Reset Staged Changes | Clears staged parameter changes and reverts form values back to the active run settings. | WS resetPrimeStagedConfig |
director, admin | Yes | Disabled when no staged configuration exists. Safe no-op if nothing staged. |
wo6-ip-stagego |
Stage & Start New Run | Stages current form parameters and immediately launches a fresh computation run. | WS stagePrimeConfig then startComputation |
director, admin | Partial | Prompts confirmation if tasks ≥ 1000. Stops any active run and starts afresh. |
wo6-ip-start |
Start New Run | Launches a new computation run using the currently staged or active configuration parameters. | WS startComputation |
director, admin | Partial | Automatically archives prior state file on server before starting. Can be paused or stopped. |
wo6-ip-pause |
Pause Run | Suspends assignment of new task leases while permitting active leases to complete. | WS pauseComputation |
director, admin | Yes | Reversible with wo6-ip-resume. Does not terminate currently running worker leases. |
wo6-ip-resume |
Resume Run | Resumes leasing tasks to connected workers from the paused queue position. | WS resumeComputation |
director, admin | Yes | Enabled only when computation is in paused state. |
wo6-ip-stop |
Stop Run | Halts active computation run, revokes leasing, and sets run state to idle. | WS stopComputation |
director, admin | No | A stopped run cannot be resumed from where it stopped; start a new run instead. |
wo6-ip-restart |
Restart Run | Stops current execution and restarts computation from task zero under a new run ID. | WS restartRun |
director, admin | Partial | Prompts confirmation if tasks ≥ 1000. Resets task queue and prime counters. |
wo6-ip-refresh |
Refresh Now | Queries coordinator for latest state snapshot and updates UI metrics. | WS refreshState |
any | Yes | Safe read-only poll. Panel automatically auto-polls every 15 seconds. |
wo6-ip-clear |
Archive & Clear Previous Run Data | Moves computation_state.json and task_log.csv into archive/isprime/<ts>/ and sets phase idle. |
WS archiveAndClearPrimeRun |
director, admin | No | Requires modal confirmation. Does not clear in-memory prime results (use clearStateBtn for that). |
wo6-ip-rsrv |
Restart Server | Restarts the coordinator service process via PM2 (pm2 restart coordinator). |
WS restartServer |
director, admin | No | Affects only the IsPrime coordinator process. Workers reconnect automatically. |
logout-btn |
Logout | Terminates the active session and redirects to the login screen. | POST /auth/logout |
any | Yes | Can be undone by logging in again. Destroys session cookie. |
clearStateBtn |
Clear Previous Data | Conditionally archives state, resets run ID, clears audit tip, empties task queue, and resets results. | WS clearState |
director, admin | No | Stays in visible Dashboard row per WP8 row 4. Distinct from wo6-ip-clear. |
start-btn |
Connecting... / Start | Legacy lifecycle starter initiating distributed computation. | WS startComputation |
director, admin | Partial | Housed in collapsed legacy details. Identical action to wo6-ip-start. |
pause-resume-btn |
Pause / Resume | Legacy toggle pausing or resuming the active computation run based on running status. | WS pauseComputation / resumeComputation |
director, admin | Yes | Toggles state. Completion-based disabling is deliberately commented out. |
restart-btn |
Restart Server | Legacy server restarter invoking coordinator PM2 restart. | WS restartServer |
director, admin | No | Housed in collapsed legacy details. Prompts confirmation before sending. |
rebuild-worker-stats-btn |
Rebuild Worker Stats | Executes python3 tools/WorkerStats.py to recalculate worker analytics from disk logs. |
WS requestWorkerStatsRebuild |
admin only | No | Gated server-side by ENABLE_WORKER_STATS=1 and ENABLE_WORKER_STATS_REBUILD=1. |
start-seg-btn |
Start Segmented Sieve (HTTP) | Legacy launcher button opening a segmented sieve HTTP worker tab. | Client navigation | operator | Yes | Opens worker tab in background. Can be closed or terminated at any time. |
h7-audit-refresh |
Refresh | Queries coordinator for audit segment status, active file size, and writer health. | Client WS query | any | Yes | Safe read-only check. Updates segment metric cards. |
h7-audit-rotate |
Rotate now | Forces immediate closure and background gzip compression of the active audit segment. | Client WS command | director, admin | No | Cannot be undone; creates a new active audit segment immediately. |
clust-apply-isprime |
Apply Cluster Policy | Stages and applies logical cluster dispatch configuration for the IsPrime lane. | POST /pool/cluster/config |
director, admin, owner | Yes | Takes effect immediately. IsPrime supports off and observe modes. |
public/ssp_director.html)
The SSPrime Director drives the HTTP segmented-sieve computational lane hosted by the Fastify admin server (server/routes/prime.js). Workers lease segment blocks over HTTP GET/POST rather than WebSockets, enabling high-density task distribution and robust segment verification.
logout-btn button.start-run-btn, stop-run-btn, pause-run-btn, resume-run-btn).GET /prime/status every 2 seconds.GET /pool/summary.pool_workers_panel.js filtered to prime workers.worker_events_control.js providing logging switches and summary tables.wo6-ssp-*): Single visible operational deck.control_renderer.js; provides clust-apply-ssprime.persistence_panel.js showing storage backend connectivity.wo6-ssp-N): Search ceiling for prime sieve evaluation.wo6-ssp-seg): Number of values evaluated per segment pass (segmentK).wo6-ssp-ttl): Task deadline granted to each worker lease before lease expiry.wo6-ssp-want): Ceiling on number of segments a worker may lease in a single batch.| Control ID | Label | What it does | Endpoint | Role | Reversible? | Safe-use note |
|---|---|---|---|---|---|---|
wo6-ssp-reload |
Reload Config | Reloads active SSPrime parameters and status from the server into the form. | GET /prime/config |
director, admin, owner | Yes | Safe read-only poll. Overwrites local form edits. |
wo6-ssp-stage |
Stage Config | Stores form parameters in memory on the server for the next run. | PUT /prime/config |
director, admin, owner | Yes | Returns 409 conflict only if the run is actively running and not paused. |
wo6-ssp-save |
Save as Default | Persists staged or active configuration to config/ssprime_config.v1.json. |
POST /prime/config/save-default |
director, admin, owner | Yes | Overwrites existing default configuration file on disk. |
wo6-ssp-unstage |
Reset Staged Changes | Discards pending staged configuration and reverts server to active values. | POST /prime/config/reset-staged |
director, admin, owner | Yes | Disabled when no staged configuration exists. |
wo6-ssp-stagego |
Stage & Start New Run | Stages form values and immediately starts a new SSPrime sieve run. | PUT /prime/config then POST /prime/admin/start |
director, admin, owner | Partial | Stops active run if running. Prompts confirmation on large search ranges. |
wo6-ssp-start |
Start New Run | Promotes staged configuration and constructs a fresh SSPrime execution run. | POST /prime/admin/start |
director, admin, owner | Partial | Under R-45, initializes fresh state in-memory and atomically replaces it on disk. |
wo6-ssp-pause |
Pause Run | Pauses segment leasing on the server; workers in flight finish their current segment. | POST /prime/admin/pause |
director, admin, owner | Yes | Reversible with wo6-ssp-resume. Enabled only when running and not paused. |
wo6-ssp-resume |
Resume Run | Resumes segment lease distribution to waiting worker tabs. | POST /prime/admin/resume |
director, admin, owner | Yes | Enabled only when computation is paused. |
wo6-ssp-stop |
Stop Run | Stops active computation and invalidates active worker segment leases. | POST /prime/admin/stop |
director, admin, owner | No | Cannot be resumed; start a new run instead. Archive recommendation applies. |
wo6-ssp-restart |
Restart Run | Restarts the computation from segment zero under a newly generated run ID. | POST /prime/admin/restart |
director, admin, owner | Partial | Resets segment counters and reinitializes sieve state. |
wo6-ssp-refresh |
Refresh Now | Reads latest configuration and execution status from the server. | GET /prime/config + /prime/status |
any | Yes | Safe read-only poll. Does not alter server state. |
wo6-ssp-clear |
Archive & Clear Previous Run Data | Moves SSPrime run state and evidence into archive/ssprime/<ts>/ and resets. |
POST /prime/admin/clear |
director, admin, owner | No | Requires confirmation. Safely preserves all historical evidence on disk. |
wo6-ssp-rsrv |
Restart Server | Restarts the shared pool_admin backend daemon via process exit after 300 ms. |
POST /prime/admin/restart-server |
director, admin, owner | No | Affects BOTH SSPrime and Matrix lanes concurrently. PM2 restarts the process. |
start-run-btn |
Start New SSP Run | Legacy button initiating SSPrime computation on the server. | POST /prime/admin/start |
director, admin | Partial | Housed in collapsed legacy details. Same endpoint as wo6-ssp-start. |
stop-run-btn |
Stop SSP Run | Legacy button stopping the active SSPrime run. | POST /prime/admin/stop |
director, admin | No | Housed in collapsed legacy details. Same endpoint as wo6-ssp-stop. |
pause-run-btn |
Pause SSP Run | Legacy button pausing task leasing on the SSPrime server. | POST /prime/admin/pause |
director, admin | Yes | Housed in collapsed legacy details. Reversible with resume-run-btn. |
resume-run-btn |
Resume SSP Run | Legacy button resuming task leasing for connected pool workers. | POST /prime/admin/resume |
director, admin | Yes | Housed in collapsed legacy details. Same endpoint as wo6-ssp-resume. |
clust-apply-ssprime |
Apply Cluster Policy | Stages and applies logical cluster dispatch configuration for SSPrime. | POST /pool/cluster/config |
director, admin, owner | Yes | Supports off, observe, and affinity modes. |
public/MatrixDirector.html)
The Matrix Director controls the distributed dense block-matrix multiplication pipeline (server/routes/matrix.js). It configures matrix dimensions, initializes task sets, leases matrix slices to dedicated Matrix worker tabs (WASM ABI V2), tracks the Hash-Chained Immutable Audit (HCIA) chain, and qualifies computation artifacts.
logout-btn.btn-init, btn-run-pause, btn-run-resume, btn-run-stop, btn-run-restart inside a collapsed legacy container. phase-pill stays visible.btn-refresh, btn-pause, btn-export, and anchor link to Matrix-Task-JSON-Logs.html.btn-config-stage, btn-config-reload, and btn-config-apply.GET /matrix/gates.persistence_panel.js showing active mode and journal metrics.h5-apply./pool/list by only-matrix checkbox.worker_events_control.js scoped to matrix lane.wo6-mx-*): Primary visible operator control deck.control_renderer.js; provides clust-apply-matrix.wo6-mx-square): Checkbox locking dimensions M and K to N.wo6-mx-M, wo6-mx-K, wo6-mx-N): Matrix dimensions.wo6-mx-slices): Number of vertical/horizontal task slices to divide the matrix into.wo6-mx-tasks): Explicit total count of partition tasks generated for the run.wo6-mx-reps): Repetitions per slice for benchmarking stability.wo6-mx-want): Tasks requested per worker lease polling cycle.wo6-mx-slots): Maximum concurrent computation slots per worker tab.wo6-mx-op): Matrix operation identifier (e.g. matmul).wo6-mx-backend): Preferred computation engine (wasm, cpu).wo6-mx-seed): Pseudo-random generator integer seed base for input matrices.| Control ID | Label | What it does | Endpoint | Role | Reversible? | Safe-use note |
|---|---|---|---|---|---|---|
wo6-mx-reload |
Reload Config | Reloads active matrix configuration from the server into the form. | GET /matrix/config + /matrix/run/state |
director, admin | Yes | Safe read-only poll. Overwrites unsaved form edits. |
wo6-mx-stage |
Stage Config | Stages operator form configuration in memory for the next run. | PUT /matrix/config |
director, admin | Yes | Returns 409 MATRIX_CONFIG_LOCKED if run is active. Can be undone with wo6-mx-unstage. |
wo6-mx-save |
Save as Default | Saves current staged or active configuration as server boot default. | POST /matrix/config/save-default |
director, admin | Yes | Overwrites saved default configuration file on disk. |
wo6-mx-unstage |
Reset Staged Changes | Discards staged configuration changes and reverts to active settings. | POST /matrix/config/reset-staged |
director, admin | Yes | Disabled when nothing is staged. Safe no-op. |
wo6-mx-stagego |
Stage & Start New Run | Stages form configuration and immediately initializes a new matrix run. | PUT /matrix/config then POST /matrix/init |
director, admin | Partial | Prompts confirmation if tasks ≥ 1000. Stops active run if running. |
wo6-mx-start |
Start New Run | Initializes and starts a new matrix computation run using staged configuration. | POST /matrix/init |
director, admin | Partial | Prompts confirmation if tasks ≥ 1000. Can be paused or stopped once started. |
wo6-mx-pause |
Pause Run | Pauses task leasing for the active matrix run. In-flight tasks complete. | POST /matrix/run/pause |
director, admin | Yes | Reversible with wo6-mx-resume. Workers do not receive new slice tasks. |
wo6-mx-resume |
Resume Run | Resumes task leasing for the paused matrix run. | POST /matrix/run/resume |
director, admin | Yes | Enabled only when computation is paused. |
wo6-mx-stop |
Stop Run | Stops the active matrix run and appends summary audit event without resetting counters. | POST /matrix/run/stop |
director, admin | No | Stopped runs cannot be resumed; start a new run instead. Counters and evidence preserved. |
wo6-mx-restart |
Restart Run | Restarts the matrix run with active or staged config under a new run ID. | POST /matrix/run/restart |
director, admin | Partial | Confirms if tasks ≥ 1000. Resets progress and builds a new task partition set. |
wo6-mx-refresh |
Refresh this panel | Refreshes operator panel config and run state. | GET /matrix/config + /matrix/run/state |
any | Yes | Safe read-only action. Re-reads server parameters into UI. |
wo6-mx-clear |
Archive & Clear Previous Run Data | Archives current run data into archive/matrix/<ts>/ and resets to idle. |
POST /matrix/admin/archive-clear |
director, admin | No | Prompts confirmation. Preserves evidence in timestamped directory. |
wo6-mx-rsrv |
Restart Server | Checkpoints state then restarts shared pool_admin service after 300 ms. |
POST /matrix/admin/restart-server |
director, admin | No | Affects Matrix and SSPrime lanes simultaneously. PM2 triggers restart. |
btn-init |
Start Run (Initialize) | Legacy button initializing a new matrix run and building the task set. | POST /matrix/init |
director, admin | Partial | Housed in collapsed legacy details. Same endpoint as wo6-mx-start. |
btn-run-pause |
Pause Run | Legacy button pausing task leasing for the running matrix job. | POST /matrix/run/pause |
director, admin | Yes | Housed in collapsed legacy details. Reversible with btn-run-resume. |
btn-run-resume |
Resume Run | Legacy button resuming task leasing for the paused matrix job. | POST /matrix/run/resume |
director, admin | Yes | Housed in collapsed legacy details. Same endpoint as wo6-mx-resume. |
btn-run-stop |
Stop Run | Legacy button stopping the current matrix run and halting task dispatch. | POST /matrix/run/stop |
director, admin | No | Housed in collapsed legacy details. Prompts confirmation. |
btn-run-restart |
Restart Run | Legacy button restarting the matrix run under a new run ID with reset counters. | POST /matrix/run/restart |
director, admin | Partial | Housed in collapsed legacy details. Prompts confirmation. |
btn-refresh |
Refresh whole page | Polls status, health, audit tip, pool list, and run state immediately. | GET /matrix/status, etc. |
any | Yes | Safe read-only poll invoked via refreshAll(). |
btn-pause |
Pause Auto-Refresh | Toggles page-level automatic polling timer on or off for this browser tab. | Client timer toggle | any | Yes | Does NOT pause computation or stop WO6 separate 15s timer or worker events polling. |
btn-export |
Export Evidence Report | Generates and downloads the full matrix evidence report artifact. | GET /matrix/report/export |
director, admin | Yes | Opens in new tab. Records MATRIX_EXPORT_CREATED audit event in log. |
btn-config-stage |
Stage Config | Stages advanced schema-generated configuration in memory. | PUT /matrix/config |
director, admin | Yes | Disabled while run is active. Located in collapsed advanced configuration. |
btn-config-reload |
Reload From Server | Reloads configuration from server into the advanced schema form. | GET /matrix/config |
any | Yes | Safe read-only action discarding unapplied edits in advanced form. |
btn-config-apply |
Stage & Restart Run | Stages the advanced configuration and restarts the computation run. | PUT /matrix/config then POST /matrix/run/restart |
director, admin | Partial | Prompts confirmation. Resets current run progress. |
h5-apply |
Switch mode now | Switches persistence checkpoint mode in the archived h5 card. | POST /matrix/persistence/mode |
director, admin | Yes | Superseded by shared Persistence panel above; kept functional for backward compatibility. |
clust-apply-matrix |
Apply Cluster Policy | Stages and applies logical cluster dispatch configuration for the Matrix lane. | POST /pool/cluster/config |
director, admin, owner | Yes | Takes effect immediately. Supports off, observe, and affinity modes. |
public/WorkerPool.html)
The Worker Pool dashboard lists every browser worker node registered in the Redis worker pool (/pool/list). It provides detailed telemetric visibility across worker identities, connection status, hardware capabilities, and cluster affinity, as well as operational controls for cluster tagging, bulk refresh broadcast, worker banning, and delayed eviction purging.
info.deviceId (held in browser localStorage under ccgsc_worker_id) with fallback to WorkerStats cache. Identifies physical browser profiles across multiple tabs on the same origin. Never displays ephemeral tab IDs. If metadata is missing, displays waiting deviceId.sessionStorage and sent as Redis pool key. Uniquely distinguishes individual tabs.online badge if Redis lease TTL is active (ttl !== -2) or stale if expired, accompanied by operational mode text (e.g. Busy, Idle, Draining).workers:lease:<tabId>). Renewed continuously by worker heartbeats. Value of -2 indicates expired lease.busy · id not published.navigator.hardwareConcurrency).used/total MB. Displays n/a on Firefox, Safari, or non-Chromium browsers where the proprietary performance.memory API is unavailable.x-forwarded-for). Untrusted and XSS-escaped.matrix or generic).(proof) when worker connects with proof telemetry enabled.(tagged) badge if an administrative override exists. Operators with admin privileges can edit cluster tags inline. Submitting an empty tag clears the override.ADMIN_WRITE=1.| Control ID | Label | What it does | Endpoint | Role | Reversible? | Safe-use note |
|---|---|---|---|---|---|---|
btn-refresh-all |
Safe Refresh | Broadcasts a reload command to connected workers, skipping tabs reporting busy status. | POST /pool/refresh-all (mode: safe) |
director, admin | No | Text heuristic check on worker body; does not guarantee task drain ACK. Disables for 3s after click. |
btn-refresh-soft |
Soft Refresh | Broadcasts immediate standard page reload (location.reload()) to all connected tabs. |
POST /pool/refresh-all (mode: soft) |
director, admin | No | Interrupts active compute tasks. Disables for 3s after click. |
btn-refresh-deep |
Deep / Force Refresh | Broadcasts cache-busting reload (location.replace() with timestamp flag) to all tabs. |
POST /pool/refresh-all (mode: deep) |
director, admin | No | Prompts confirmation modal. Forces fresh asset retrieval from server. |
wp7b-btn-save-global |
Save Global | Saves global compute concurrency slots limit (1–3) across all worker devices. | POST /pool/lane-default |
director, admin | Yes | Gated by CCGSC_LANE_POLICY flag. Controls how many compute slots workers may instantiate. |
logout-btn |
Logout | Terminates pool administration session and clears session cookie. | POST /auth/logout |
any | Yes | Can be undone by logging in again. |
ADMIN_WRITE=1)/pool/ban/:id): Adds worker tab ID to Redis set workers:banlist. Checked upon worker registration (pool.register); banned connections are rejected with code 4001 (reason banned). Does not terminate active heartbeats immediately; takes effect on next reconnect./pool/unban/:id): Removes tab ID from workers:banlist, allowing future registrations./pool/purge/:id with { delaySec: 600 }): Schedules delayed purge in Redis ZSET workers:purge:pending. Row transitions to ticking button: Purging in m:ss · Cancel./pool/purge-cancel/:id): Aborts scheduled purge prior to expiration of the 600-second countdown./pool/tag/:id with { clusterId }): Overrides worker cluster assignment in Redis. Submitting an empty string removes the override and restores worker-reported metadata.
The public worker client (public/worker.html) attaches to the CCGSC cluster grid, registers hardware capabilities, and executes assigned tasks. URL query parameters control execution mode, lane filtering, and telemetric features:
| URL Flag | Description & Behavior | Lane Assignment |
|---|---|---|
(default) |
No query flags: https://ccgsc-demo.digitalbd.org, / and /worker.html
all start every lane in one tab โ IsPrime and SSPrime through the generic connector, and Matrix as well
whenever /matrix/health answers healthy. If Matrix is unavailable the tab keeps the two prime
lanes and says so. |
IsPrime + SSPrime + Matrix |
?lanes=all ยท ?lanes=multi |
The same three-lane mode, requested explicitly. Identical to the default; kept so a link can state the intent. | IsPrime + SSPrime + Matrix |
?family=matrix |
Matrix lane specialist. Loads Matrix WASM runtime (ABI V2), attaches to /matrix/lease, and computes dense block slices. |
Matrix |
?primeStandalone=1 |
Standalone IsPrime worker executing trial division and Miller-Rabin algorithms directly on the browser main thread. | IsPrime |
?proofMode=1 |
Enables cryptographic verification instrumentation and appends (proof) flag to worker pool metadata. |
Inherits lane + proof telemetrics |
?p2pLite=1 |
Enables WebRTC P2P-lite data channels for direct worker-to-worker telemetry and block verification sharing. | Inherits lane + P2P channel |
?family=auto |
Reserved multi-lane dynamic routing mode. Gated by feature flag; imports no modules unless explicitly enabled. | Gated / Managed |
?cluster=<id> |
Supplies worker-reported cluster identity for logical affinity dispatch (e.g. ?cluster=lab-east). |
Applies cluster tag to worker |
CCGSC servers reject invalid state mutations or unauthorized operations with specific semantic refusal codes:
| Refusal Code | Trigger Condition | Recovery / Resolution |
|---|---|---|
PRIME_CONFIG_LOCKED |
Attempting to stage or mutate IsPrime configuration parameters while a computation run is actively executing. | Pause or Stop the IsPrime run before staging new parameters. |
MATRIX_CONFIG_LOCKED |
HTTP 409 conflict returned by PUT /matrix/config when attempting to modify configuration during an active Matrix run. |
Stop the Matrix run or unstage changes with wo6-mx-unstage. |
SSP_PERSISTENCE_BLOCKED |
SSPrime server cannot flush state records due to disk storage write locks or file permission denials. | Check write permissions on CCGSC_DATA_DIR and ensure no stale lock files exist. |
SSP_INIT_REFUSED |
SSPrime run initialization rejected due to invalid segment bounds or an unresolved concurrent initialization. | Verify wo6-ssp-N and wo6-ssp-seg bounds; refresh status and retry. |
LANE_POLICY_DISABLED |
Attempting to mutate lane assignments when server flag CCGSC_LANE_POLICY=0 or unset. |
Enable lane policy on backend (CCGSC_LANE_POLICY=1) and restart server. |
LANE_POLICY_STALE |
Optimistic concurrency conflict caused by submitting a policy update with an outdated revision number. | Reload current policy from GET /pool/lane-policy and resubmit with incremented revision. |
Pool 401 Unauthorized |
HTTP 401 returned by /pool/* admin endpoints when request lacks valid session authentication. |
Authenticate via login screen with a user account holding director, admin, or owner role. |
Coordinator 426 Upgrade Required |
Accessing WebSocket endpoint /ws via plain HTTP GET without WebSocket upgrade headers. |
Use a WebSocket client (ws:// or wss://) with standard upgrade protocol headers. |
wo6-ip-stage.wo6-ip-start (or composite wo6-ip-stagego) to begin computation.wo6-ip-pause. In-flight tasks complete.wo6-ip-resume to continue leasing.wo6-ip-stop.wo6-ip-clear to archive computation state and task logs to archive/isprime/<ts>/.wo6-ssp-stage.wo6-ssp-start to begin sieve leasing.wo6-ssp-pause; resume with wo6-ssp-resume.wo6-ssp-stop.wo6-ssp-clear (preserved in archive/ssprime/<ts>/).wo6-mx-stage.wo6-mx-start to initialize the run.wo6-mx-pause; resume with wo6-mx-resume.wo6-mx-stop.wo6-mx-clear (saved into archive/matrix/<ts>/)./MatrixDirector.html).compact-adaptive: Default; batches state saves dynamically between 0.5s and 10s.compact-immediate: Saves state synchronously after every task report.full-legacy: Preserves full pre-h5 legacy state serialization.journal: Writes compact snapshots plus an append-only fsynced line journal (h8).h5-apply)./director.html).h7-audit-refresh to inspect current segment line count and error metrics.h7-audit-rotate to manually trigger rotation.Write Errors remains 0 and the chain sequence advances monotonically./WorkerPool.html) with administrator privileges.workers:banlist. The row updates to Banned. Future connection attempts will be rejected with code 4001./pool/purge-cancel/:id, removing the deadline.sessionStorage. Identifies an individual tab connection in Redis.localStorage (ccgsc_worker_id). Identifies physical machines across multiple tabs on the same origin.workers:lease:<tabId> in Redis. Renewed continuously via worker heartbeat messages.batchK, maxWant).clusterId string used for selective task dispatching.workers:purge:pending.compact-adaptive, compact-immediate, full-legacy, or journal).concurrentTasks, defining how many tasks one worker tab runs at the same time (IsPrime is locked to 1; Matrix 1โ16, shipped at 10; SSPrime 1โ4, shipped at 1). Older names for this same concept include Matrix "Max Concurrent Slots" (batchPolicy.maxConcurrentSlots) and WorkerPool "Compute Slots (1-3)" (gated off by CCGSC_LANE_POLICY). A Matrix tab still computes one task at a time today. Shipped warning: several tasks at once compete for the same CPU; only 1 has been measured. Safe use: leave 1.startComputation; Resume Run sends resumeComputation; Restart Run sends restartRun; and Stage & Start New Run stages candidate configuration and then starts computation. Resume Run only un-pauses the current run (retaining the same run ID, completed results, task queue, and log files; refused for a stopped run). Start New Run and Restart Run both archive the old run to archive/isprime/<timestamp>/, promote staged configuration, generate a new run ID, and rebuild the task queue. ONLY Restart Run also frees tasks that worker tabs are holding (and discards their late answers if N or the task count changed).