Skip to main content

zeromodel-navigation

A finite, deterministic hierarchy compiler and traversal engine over identified artifacts.

This is not Search

This package compiles and traverses a finite, closed hierarchy of already-identified artifacts. It does not define similarity, relevance, or nearest-neighbour retrieval. Traversal rules are stable, declared descriptors with production implementations that route on explicit, declared criteria (a request attribute, a declared priority, a fixed target range) - never a learned or heuristic "closest match."

A later Search package may implement similarity-driven TraversalRules against the same TraversalRule protocol this package defines; that is out of scope here.

Two separate hierarchy concepts

  • The existing intra-artifact pyramid (zeromodel.analysis.hierarchy, build_pyramid) reduces a single VPM field into coarser levels of itself. Untouched by this package.
  • The artifact corpus hierarchy this package compiles is a tree over many identified artifacts: a root tile, internal navigation tiles, and leaf bindings to individual artifacts.

Dependency rule

navigation -> core + artifacts only. Navigation does not depend on, or import, Trust. Secure applications may compose Navigation and Trust without coupling the packages directly - see the integration seam example below.

Persistence

Navigation defines no store or repository of its own. Every tile and leaf binding is persisted as canonical bytes through the Artifacts package's ArtifactStore/ArtifactResolver protocol; Navigation owns the DTUs' semantics, Artifacts owns storage and identity.

Public API

HierarchyManifestDTO, NavigationTileDTO, HierarchyCompilerSpecDTO, TraversalRule, TraversalRequestDTO, TraversalStepDTO, TraversalResultDTO, TraversalReceiptDTO, compile_hierarchy, validate_hierarchy, traverse, replay_traversal.

Supporting DTOs (TileCoverageDTO, TilePointerDTO, LeafBindingDTO, TraversalRuleDescriptorDTO, TraversalFailureDTO) are available from zeromodel.navigation.dto for tests and advanced composition, but are not part of the curated top-level surface.

Claims boundary

The supported claim is: compiling and deterministically traversing a finite, identified hierarchy with complete artifact resolution and a replayable trace.

This package does not claim: planet-scale hierarchies, infinite in-memory capacity, logarithmic-time guarantees, semantic search, nearest-neighbour retrieval, "40-hop world navigation," or storage-independent performance.

Integration seam: composing with Trust (without depending on it)

Navigation never imports zeromodel.trust. A secure application composes both packages at the call site:

from zeromodel.navigation import compile_hierarchy, validate_hierarchy, traverse
from zeromodel.trust import verify_artifact_for_scope, require_authorized

# 1. Resolve the hierarchy root (Navigation + Artifacts only).
root_manifest = ...  # HierarchyManifestDTO, previously compiled

# 2. Verify the root/hierarchy is authorized before trusting its contents
#    (Trust only - Navigation is not involved in this step).
decision = verify_artifact_for_scope(
    artifact_ref=root_manifest.root_ref,
    ...,
)
require_authorized(decision)  # raises ArtifactNotAuthorized if not

# 3. Validate structural closure (Navigation only).
validate_hierarchy(root_manifest, store=artifact_store)

# 4. Traverse (Navigation only).
result = traverse(manifest=root_manifest, store=artifact_store, rule=rule, request=request)

# 5. Optionally, verify each resolved leaf artifact through Trust before use.

This example is illustrative only - it does not execute a real controller and makes no safety-certification claim. A safety-critical caller must not skip step 2 or step 5.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zeromodel_navigation-1.2.0-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

Details for the file zeromodel_navigation-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for zeromodel_navigation-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aa7fb8cce659923c20c9e0934a5ac10efaad0907b9bcb5788ab8d77150b1ece2
MD5 93aa6a3d65a14635e4179dd825e0f31a
BLAKE2b-256 eb9399af8d4fe2537f9a1f2b014ebcdf69809c43bfce23ec29b7f49bf4a90e54

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.2.0 This release

1 file

1.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page