DS_ERR_INVAL
|
-1 |
NULL pointer to a non-optional argument; invalid enum; out-of-range integer |
[NERR.4] |
DS_ERR_OOM
|
-2 |
allocation failed inside libds; its detail may be NULL ([NERR.2.3]) |
[NERR.4] |
DS_ERR_NOT_FOUND
|
-3 |
required lookup miss (e.g. ds_engine_schema_at out of range) |
[NERR.4] |
DS_ERR_STATE
|
-4 |
rejected by current engine state (e.g. ds_engine_clock_set in live mode; any call from inside a callback into the engine that invoked it, a pump’s or an enumerating read’s, [RARC.13.16], [RARC.13.17]; a second ds_engine_load_dsc on one engine, [NFCT.1.1]) |
[NERR.4] |
DS_ERR_OVERFLOW
|
-5 |
a bounded queue / counter would overflow (internal boundaries) |
[NERR.4] |
DS_ERR_UNSUPPORTED
|
-7 |
an operation unavailable in this build (e.g. ds_engine_mem is RETE-only) |
[NERR.4] |
DS_ERR_INTERNAL
|
-8 |
invariant violation inside libds — a bug; file an issue with the detail |
[NERR.4] |
DS_ERR_IO
|
-9 |
an integrator callback (a recording sink, a storage backend, [NSTG.3.3]) reports a failure of its own I/O. libds performs no I/O and raises it nowhere itself; the call whose callback returned it returns it ([NCBK.1.5]) |
[NERR.4] |
DS_ERR_ENGINE_HALTED
|
-10 |
an EngineError halted the tier, or a load failed ([RDSC.9.8]). Returned by the call that raised the EngineError, and by every later call but the few [NCBK.2.9] leaves valid, which does nothing; a failed load returns its own code. Returned whatever caused the halt — the cause is carried by the EngineError or the failed load’s status, not by this code ([NCBK.2.9]) |
[NERR.4] |
DS_ERR_PARSE
|
-100 |
a DSC atom body, or ds_json_parse input, is malformed; JSON text in which one object repeats a key is malformed ([LGRA.5.8.7]), and so is JSON text holding an integer literal outside the 64-bit signed range ([LGRA.5.8.9]) or a float literal past the largest finite Float ([LGRA.5.8.10]) |
[NERR.5] |
DS_ERR_SCHEMA_UNKNOWN
|
-101 |
an action referenced a schema that isn’t registered; or a replayed FactAssert names a schema the stream never announced or the engine does not hold ([RFCS.5.4]) |
[NERR.5] |
DS_ERR_SLOT_UNKNOWN
|
-103 |
a referenced slot is not on the schema |
[NERR.5] |
DS_ERR_SLOT_TYPE_MISMATCH
|
-104 |
a slot value’s kind ≠ the schema’s declared type (assert path), or a fact-ref whose schema ≠ the slot’s schema_ref |
[NERR.5] |
DS_ERR_FACT_INVALID
|
-200 |
ds_engine_retract was handed a fact handle that holds no fact. Every handle the engine hands out holds one, so a caller obeying [NFCT.3.2] does not meet this code. A handle whose fact is not live, or one another engine handed out, is not this code: passing one is undefined behaviour, and no status reports it ([IDAT.1.6])
|
[NERR.6] |
DS_ERR_ACTION_FAILED
|
-202 |
a callback’s own report that it failed: the call that fired the callback returns it ([NCBK.1.5]). libds raises it for no condition of its own, and a call with no call callback is DS_ERR_STORAGE_UNAVAILABLE instead ([NERR.7]) |
[NERR.6] |
DS_ERR_TIME_RANGE
|
-205 |
a Time outside the representable nanosecond range (≈1678–2262), or a Date outside the same range — a hard error, not a silent integer wrap (LTIM.1.1.5, LTIM.1.2.2) |
[NERR.6] |
DS_ERR_NAN_REJECTED
|
-216 |
a NaN Float rejected at ds_engine_assert, or as a call argument, which refuses the call ([LEXP.4.2]) — NaN must not enter working memory or a payload; Inf is allowed. Increments ds.facts.nan_rejected_total |
[NERR.6] |
DS_ERR_JSON_NONFINITE
|
-217 |
a host call that would put a non-finite Float (±Inf, or a NaN) into a Json value, such as ds_json_new_float, is refused with it and changes nothing; it holds no engine, so no metric moves ([LGRA.5.8.10]). A rule’s path does not return this code. There a non-finite Float forced into a JSON data-plane body, the cache value or a Json call argument, is a NOT_REPRESENTABLE trap at the verb ([LDET.3.2.7]): the activation is abandoned there, the verb does not run, so no invalid inf token reaches the wire, and ds.json.nonfinite_total{verb} increments. The trap’s ComputationError on the stream is its report ([NCBK.2.8]) |
[NERR.6] |
DS_ERR_SERIES_NO_BACKING
|
-218 |
a series aggregation read that no declared backing can answer — the emit plan asked for a value nothing computes — or a read whose backing query failed. The rule still has to match on something, so it receives the aggregation’s cold value (LSER.19.8) and the error is stashed, surfacing from ds_engine_pump rather than being returned from the read. Distinct from “no samples yet”, which stays silent and is expected: backend instances allocate lazily (LSER.9.1.1) |
[NERR.6] |
DS_ERR_SCHEMA_HASH_MISMATCH
|
-219 |
ds_engine_assert_external met a FactExternal whose schema_hash differs from the program’s schema of that name — a record from a changed schema, read before migration ([NCBK.10.4])
|
[NERR.6] |
DS_ERR_FACT_REF_CONFLICT
|
-220 |
ds_engine_assert_external met a nested fact reference whose key a different live fact already holds; nothing was asserted ([NCBK.10.4])
|
[NERR.6] |
DS_ERR_JSON_LIMIT
|
-221 |
a Json value the host hands the engine — a slot value, JSON text to parse, a call response, a cache entry — would exceed one of its limits: depth, node count, string bytes, or text length ([LGRA.5.8.6]). The call is refused and changes nothing; nothing is truncated. The status is the whole refusal: no event is recorded |
[NERR.6] |
DS_ERR_ENCODING
|
-222 |
text the host hands the engine is not well-formed UTF-8: a String slot value at ds_engine_assert, JSON text at ds_json_parse, a string or key at ds_json_new_string or ds_json_object_set, a seed at ds_engine_cache_seed, or a call’s response ([LSTR.8.5]). The call is refused and changes nothing; nothing is repaired. The status is the whole refusal: no event is recorded |
[NERR.6] |
DS_ERR_STORAGE_UNAVAILABLE
|
-400 |
a call fired with no call callback registered — not the cache verbs, which fall back to a volatile in-engine cache ([NSTG.2.1]) |
[NERR.7] |
DS_ERR_STORAGE_QUERY_FAILED
|
-401 |
propagated verbatim from a callback that returned it |
[NERR.7] |
DS_ERR_STORAGE_NOT_FOUND
|
-402 |
integrator-driven from a storage-query callback; not a cache read — a cached() miss is engine-local and returns null, never this ([NSTG.2.2]) |
[NERR.7] |
DS_ERR_DSC_TRUNCATED
|
-500 |
file too short; a declared atom length exceeds remaining bytes |
[NERR.8.1] |
DS_ERR_DSC_BAD_MAGIC
|
-501 |
the first atom is not a DscHeader ([RDSC.1.4]) |
[NERR.8.1] |
DS_ERR_DSC_VERSION
|
-502 |
the artefact is outside the runtime’s version series |
[NERR.8.1] |
DS_ERR_DSC_DECODE
|
-503 |
an atom body fails protobuf decode |
[NERR.8.1] |
DS_ERR_DSC_SEMANTIC
|
-504 |
a decoded body violates a per-atom rule |
[NERR.8.1] |
DS_ERR_DSC_DANGLING
|
-506 |
a reference to an entity absent from the artefact |
[NERR.8.1] |
DS_ERR_DSC_DECOMPRESS
|
-507 |
a body declared a compression codec other than COMPRESSION_NONE; the runtime carries no decompressor ([RDSC.4.5.1]) |
[NERR.8.1] |
DS_ERR_DSC_CAPABILITY_ABSENT
|
-514 |
the artefact requires a capability this build was compiled without; the detail names the capability, as a value of proto/capabilities.proto#Capability ([RDSC.16.2.7]) |
[NERR.8.1] |
DS_ERR_RETP_INVALID
|
-601 |
an AlphaNode, BetaNode or TerminalNode carrying node_id 0 or a repeated node_id, or a left_parent_id cycle; a node cross-reference not found ([RDSC.11.1]). A body that fails decode is DS_ERR_DSC_DECODE ([RDSC.11.4]) |
[NERR.10.1] |
DS_ERR_RETP_INDEX_OOB
|
-602 |
an AlphaNode, BetaNode or TerminalNode carrying node_id 0 or a repeated node_id, or a left_parent_id cycle; a node cross-reference not found ([RDSC.11.1]). A body that fails decode is DS_ERR_DSC_DECODE ([RDSC.11.4]) |
[NERR.10.1] |
DS_ERR_FN_NOT_FOUND
|
-604 |
a call expression in the artefact names an op with no builtin; ds_engine_load_dsc refuses the artefact |
[NERR.10.1] |
DS_ERR_BUDGET_EXCEEDED
|
-605 |
a bounded run reached its max_fires |
[NERR.10.1] |
DS_ERR_BACKEND_ABI_VERSION
|
-620 |
abi_version mismatch: a series backend’s vtable ([ISBK.1.7]) or the integrator’s cache callbacks ([NSTG.2.4])
|
[NERR.10.2] |
DS_ERR_BACKEND_BAD_MAGIC
|
-621 |
a backend’s atom_field names none of the seven backings ([ISBK.3.3]) |
[NERR.10.2] |
DS_ERR_BACKEND_BAD_AGGS
|
-622 |
supported_aggs exceeds the backing’s static set ([ISBK.3.2])
|
[NERR.10.2] |
DS_ERR_BACKEND_NOT_REGISTERED
|
-623 |
a DSC series atom names a backing with no registered backend |
[NERR.10.2] |
DS_ERR_BND_DSC_MISMATCH
|
-700 |
dsc_sha256 disagrees between artefacts
|
[NERR.11.1] |
DS_ERR_BND_DIALECT_MISMATCH
|
-701 |
resolved settings or their hash disagree ([NDLC.4.5]), or the admission policy does not admit a setting ([NLFC.10.2]) |
[NERR.11.1] |
DS_ERR_BND_INCOMPLETE
|
-703 |
a required tuple field is missing / zero-length |
[NERR.11.1] |
DS_ERR_CONTRACT_BREACH
|
-710 |
a declared cap would be exceeded; the operation is refused and the engine stays usable |
[NERR.12.1] |
DS_ERR_FS_VERSION
|
-720 |
an event-trace session header reports a ds_version outside the reader’s <major>.<minor>. series ([LDET.1.10]) |
[NERR.13] |
DS_ERR_FS_DIVERGENCE
|
-725 |
replay: a re-derived compare atom (RuleFireAnnotation/CallIssued) differs byte-for-byte from the recorded atom at that seq, or is missing/extra/reordered — a determinism failure ([LFST.9.3.7]). Distinct from the EngineDivergence stream event. |
[NERR.13] |
DS_ERR_FS_UNKNOWN_INJECT
|
-726 |
an Atom carries an unknown field number in the inject band (1-127) — an input the writer recorded and this reader cannot deliver, reached whatever version either side is ([RFCS.18.8]) |
[NERR.13] |
DS_ERR_FS_RECORDING_INCOMPLETE
|
-729 |
replay: the recording’s first event has a seq other than 0 — its stream callback was attached after the engine’s first input or sample, so the inputs before it are missing ([LTIM.2.8.5]) |
[NERR.13] |
DS_ERR_FS_UNKNOWN_FACT_ID
|
-730 |
replay: a FactRetract names a fact_id that no earlier FactAssert, FactEmit or ExternalAssert left in working memory, or that an earlier FactRetract already named ([RFCS.7.3]) |
[NERR.13] |