Gateway Decision Receipt (call_tool/gateway_receipt.rs)

lean-ctx · rust/src/server/call_tool/gateway_receipt.rs · rust · Apache-2.0
security, pos, lang:rust, tag:content-addressed

Rust module that creates validated, content-addressed receipts for tool call admission decisions with signed audit trail persistence.

// Source: https://github.com/yvgude/lean-ctx | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
// SPDX-License-Identifier: Apache-2.0
//! One Context Gateway Decision Receipt per tool call (G4).
//!
//! After the final result exists, the call's admission decisions become a
//! validated receipt that binds the returned bytes. The receipt is persisted
//! content-addressed, and its security actions are recorded once through the
//! signed audit trail, which is where the status line and `lean-ctx value`
//! take their numbers from. A receipt that fails to persist is never claimed:
//! `lean-ctx inspect` only shows stored receipts.

#[allow(clippy::wildcard_imports)]
use super::*;

use

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key