Shared knowledge · Advanced · Operations

Operate from Core facts, not assumptions

Input only says what the application wants. Read the configuration CoAkka Runtime accepted, its health, counters and structured outcomes to know what an instance is doing; then export only the facts your operations system needs.

01 · Configuration truth

Requested is not effective

1. Requested

Intent submitted by the application or connector. An absent field, zero and an explicit value can have different meanings.

2. Validated

Core checks lifecycle, capability, bounds and combinations. Refusal does not create a new configuration.

3. Accepted

Core returns normalized values with explicit/defaulted provenance. This is startup truth.

4. Effective

The CoAkka Runtime view reports the generation, bound port, routes, overload and security actually in force.

A rejected apply keeps the previous active configuration. Read the structured status, reason and validation returned by that apply; do not call a getter afterward and attribute the old snapshot to the failed proposal.

Current Core baseline when omitted

Network participation
EMBEDDED: no listener and no remote endpoints. Select a peer mode explicitly when deployment requires one.
CPU policy
AUTO: Core selects from CPUs allowed by the host, commonly preferring 2 logical CPUs or 1 when restricted. It is not a CPU reservation.
Connection strategy
Current native startup uses MULTIPLEXED. The frozen legacy constructor remains PER_EXCHANGE; do not collapse these scopes.
Transport security
PLAINTEXT. This is absence semantics, not a claim that the current network is safe enough.
Queue capacity
A request of 0 currently normalizes to 4096 in Core. Other requests can be rounded or clamped; read accepted capacity instead of copying a default table into connectors.
Overload policy
REJECT for ingress, local delivery and remote outbound; reply reserve is 0. The application still owns retry.
I/O opt-in
Off. Requested, compiled, probed and supported are different facts; read capabilities from the exact artifact.
Extra Monitor collection
Off. Health, counters and accepted settings remain directly readable; extra collection is chosen only at instance creation.

Scope. This is the baseline of the current native-startup contract audited by the portal. Another package or constructor must preserve its own presence semantics and project the Core snapshot; never infer defaults only from a connector input object.

02 · Health, stats and Monitor

Read snapshots directly; use Monitor as a doorbell

Health

CoAkka Runtime state, applied generation and readiness flags for one instance. Use it to understand lifecycle and dataplane availability.

Stats

Capacity, depth, high-watermark, rejection, deadletter, timeout and transport counters. Read trends rather than one isolated point.

Monitor update

A bounded signal that state may have changed. Refresh the latest snapshot; a signal is not an event log or request count.

Collection OFF
Direct health/stat/settings reads remain valid. APIs that await a Monitor update require collection ON.
Collection ON
Select it before instance creation. There is no live toggle; changing it requires a replacement instance and application-owned cutover.
change_sequence
Monotonic for the instance lifetime and able to advance by several steps when doorbells coalesce. It does not promise one record per change.
observed_mono_ns
Local monotonic observation time. Do not use it as a shared wall clock across machines.
No update
Only means a bounded wait expired or no new signal arrived; it does not prove healthy, unhealthy or stopped.
Monitor drops
Accounting for diagnostic signals/history, not a count of lost business requests.

Read pressure deliberately

03 · Observability ownership

Three evidence layers answer different questions

CoAkka Runtime evidence

Target/source, generation, admission, queue pressure, reply, timeout, Deadletter, transport and lifecycle facts. Core issues structured truth.

Business logs

Order, account, domain outcome, user message, retry decision and audit meaning. The application owns masking, retention and data policy.

Export and fleet view

Metrics backend, traces, dashboards, storage, alerts, SLOs and cross-instance correlation. Platform/app-host tooling owns this pipeline.

Do not turn CoAkka Runtime Core into a business logger or telemetry backend. Avoid synchronous hot-path logging, payload dumps, unbounded sinks and hidden loss. CoAkka Logger is optional when an application needs a bounded, cross-language, pressure-aware log boundary; it does not replace Core facts or the application's export system.

04 · Inspection surfaces

Choose the smallest surface that answers the question

Connector snapshot API

Use it inside the application, health endpoint or test. It projects typed copied values for the exact instance and is the first choice for accepted/effective state.

CoAkka Runtime Client

A script-first CLI whose executable is coakka-client. It asks an exposed runtime-info route, sends trial requests and returns JSON/exit codes. version/doctor inspect only the local binary.

CoAkka Runtime Inspect

The coakka-runtime-inspect browser explorer for snapshot source, runtime identity, route/topology, connection provenance, nonsecret TLS, health/pressure and request/reply trials.

Boundary

Client/Inspect is not an admin dashboard, service discovery, topology authority, schema registry, observability backend or TLS control plane.

The snapshot source and request destination can differ. Always record which instance supplied the snapshot, which target received the trial request and when it was observed. Private keys, PEM content and credential paths never belong in an inspection response.

Current companion-product identity. CoAkka Runtime Client and CoAkka Runtime Inspect 3.3.1 bundle Core 3.3 ABI 1. Archive hash, platform and loaded library still require verification for the specific run.

05 · Evidence ladder

An available package does not prove deployment readiness

01

Coordinate and bytes

Record package version, release channel, archive SHA-256 and inner native-library SHA-256.

02

Loaded identity

The process must report the actual loaded path/hash, Core generation, build ID, ABI, capabilities and effective configuration.

03

Installed consumer

Run from a package tree outside the build/source tree to detect loader, manifest and bundled-byte drift.

04

Contract and failure paths

Prove reply/deadletter, pressure, timeout/cancel, concurrent close, restart/reconnect and resource recovery.

05

Matching target host

Execute on the exact OS/CPU/container or device boundary. Cross-compilation and bundled bytes do not replace matching-host execution.

06

Deployment workload

Measure throughput with tail latency, RSS, allocation, threads/fds, wakeups, pressure and stop latency on a declared workload.

Source builds, packaged-byte inspection, installed execution, portability, stress/soak and capacity are different evidence types. Name the type that exists; one pass does not promote itself into the others. A benchmark is meaningful only with source/artifact identity, host, effective configuration, warmup, workload and aggregation rule.

06 · Incident first response

Collect structured facts first

  1. Record connector/package version, Core generation/build ID/ABI, archive hash and loaded-library hash.
  2. Record OS, CPU, container/VM/device boundary, framework and exact artifact profile.
  3. Capture requested and accepted/effective configuration, default provenance, capabilities, route generation and CoAkka Runtime state.
  4. Keep stable status/reason/validation, Deadletter metadata and transport failure; never branch on error text.
  5. Collect queue depth/capacity/high-watermark and counters over a time window, not only one snapshot.
  6. Reduce to the smallest reproduction that preserves the exact package and loader path before escalating.
Apply refused
Check lifecycle, capability, presence and validation. The previous active configuration remains in force.
No Monitor update
Confirm collection was ON at creation, the bounded wait uses the right sequence, then read direct health. A timeout is not a health verdict.
Queue rising or rejecting
Correlate routes/generation, downstream availability and workload. Tune a bound only after understanding who owns queued work and the full-queue outcome.
Timeout or transport failure
Do not replay by default. Check correlation, Deadletter, peer evidence and idempotency before the application decides to retry.
Wrong artifact loaded
Compare loaded path/hash with the manifest, OS/CPU and inner-library digest; an intended search path is not evidence of the file actually loaded.

07 · Review before rollout

Hand off facts, owners and limitations together

Developer

  • Keep defaults until measurement justifies change.
  • Expose direct health/settings reads.
  • Map stable outcomes; do not parse detail.
  • Bound waits and close by lifecycle.
  • Separate business logs from CoAkka Runtime evidence.

Deployment

  • Pin package and artifact hash.
  • Verify loaded identity.
  • Record effective network/connection/security.
  • Test restart, reconnect and pressure.
  • Qualify the target host and workload.

Operations

  • Export only facts needed for the SLO.
  • Label instance/generation/snapshot source.
  • Alert from trends and terminal outcomes.
  • Keep secrets/payloads out of telemetry.
  • Hand off known and untested limits.

Available Go projection

  • Run the Monitor lesson with package 3.2.1.
  • Read accepted startup configuration.
  • Read effective CoAkka Runtime configuration.
  • Keep one host for the application lifetime.
  • Export in the app/platform, not in Core.