Expand description
khive-request — transport-agnostic DSL parser for verb-dispatch requests.
Re-exports§
pub use atomic::check_atomic_admissible;pub use atomic::AtomicRejection;
Modules§
- atomic
- Pure ADR-099 atomic-admissibility preflight over parsed operations.
Structs§
- Parsed
Op - One parsed tool name and its deterministically ordered named arguments.
- Parsed
Request - Parsed operations in input order plus their execution mode.
- Typed
Json Op - One already-decoded JSON operation for a bounded trusted transport.
- Unit
KeyConflict - One cross-unit static write-key conflict:
leaf(inside the unit this entry is filed under) claims the same statically knowable write key asother_leaf, which belongs to a different unit,other_unit.
Enums§
- ArgValue
- A concrete JSON argument or chain-time
$prevexpression. - DslError
- Request syntax or preflight error surfaced as MCP
invalid_params. - Execution
Mode - Execution mode:
Single(one op),Parallel([...]), orChain(op | op). - Prev
Failure - Explains why a
$prevpath failed to resolve, for error-message construction. Distinguishes three mistakes that a single generic “not found” message conflates:
Constants§
- MAX_OPS
- Maximum operations in a batch or chain.
- MAX_
OPS_ INPUT_ LEN - Maximum raw
opsbyte length, checked before parsing. - NESTING_
DEPTH_ LIMIT - Maximum array/object nesting in function and JSON forms.
- RESERVED_
ENVELOPE_ ARGS - Names reserved at the request-envelope level; rejected if they appear inside verb args. Argument names owned by the outer request envelope rather than verb handlers.
Functions§
- parse_
request - Parses function-call, batch, chain, or JSON request syntax.
- parse_
typed_ json_ batch - Validates an already-decoded JSON batch without reapplying the raw DSL byte cap.
- plan_
request - Parses a request and describes its stages using a verb-to-pack catalog.
- unit_
write_ key_ conflicts - Finds every statically knowable write-key collision between different units of a bracketed batch of chains (ADR-016 Amendment 2).
- value_
nesting_ within_ limit - Returns whether every array/object in
valueis at mostmax_depthdeep. - write_
keys_ for_ op_ pub - Extracts statically knowable, substrate-prefixed write-conflict keys for
op.