NeoGraph 0.16.0
A C++20 Graph Agent Engine Library — LangGraph for C++
Loading...
Searching...
No Matches
bundle.h File Reference

Immutable, content-addressed Program compilation artifacts. More...

#include <neograph/program/coordinate.h>
#include <neograph/program/plan.h>
#include <neograph/program/source.h>
#include <cstdint>
#include <memory>
#include <optional>
#include <string>
#include <string_view>
#include <vector>
Include dependency graph for bundle.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  neograph::program::ProgramBundleData
 Mutable construction input. More...
 

Enumerations

enum class  neograph::program::ExecutionGuarantee : std::uint8_t
 The lowest recoverability/integrity class reachable through an executable closure. More...
 

Functions

NEOGRAPH_PROGRAM_API std::string neograph::program::core_compiled_plan_identity (const SealedCoreDefinition &definition, std::string_view compiler_build_id, std::string_view registry_snapshot_fingerprint, const std::vector< ExecutableIdentity > &executable_closure)
 Returns the deterministic Core compiled-plan identity for a sealed definition and the exact executable closure resolved from one compiler and registry snapshot.
 
NEOGRAPH_PROGRAM_API std::string neograph::program::sealed_core_definition_hash (const json &definition)
 Returns the v1 content identity required by SealedCoreDefinition::definition_hash.
 
NEOGRAPH_PROGRAM_API void neograph::program::validate_contract_schema (const ContractRecord &contract, std::string_view path="$schema")
 Validate the Program-v1 JSON Schema subset retained by a contract.
 

Detailed Description

Immutable, content-addressed Program compilation artifacts.

Definition in file bundle.h.

Enumeration Type Documentation

◆ ExecutionGuarantee

enum class neograph::program::ExecutionGuarantee : std::uint8_t
strong

The lowest recoverability/integrity class reachable through an executable closure.

Strict is strongest; unmanaged is an explicit developer-authorized escape hatch and must never be presented as strict recovery.

Definition at line 29 of file bundle.h.

Function Documentation

◆ validate_contract_schema()

NEOGRAPH_PROGRAM_API void neograph::program::validate_contract_schema ( const ContractRecord &  contract,
std::string_view  path = "$schema" 
)

Validate the Program-v1 JSON Schema subset retained by a contract.

Supported assertion keywords are type, const, enum, required, properties, items, and additionalProperties. Other keywords are retained canonically as annotations and do not affect runtime validation.

References neograph::program::validate_contract_schema().

Referenced by neograph::program::validate_contract_schema().