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 Distribution

zeromodel_navigation-1.1.0.tar.gz (23.4 kB view details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file zeromodel_navigation-1.1.0.tar.gz.

File metadata

  • Download URL: zeromodel_navigation-1.1.0.tar.gz
  • Upload date:
  • Size: 23.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.4

File hashes

Hashes for zeromodel_navigation-1.1.0.tar.gz
Algorithm Hash digest
SHA256 4e4cca369bca2c016fa81a019ac938eb6637d2eabcffc603efe60158578e19fa
MD5 5a0b2f1dc8264b5037180b76f42abb0d
BLAKE2b-256 9270e8863e7a3aa5421bd1ec9a7b4e513e48639be8a8912c9c5711762930ddbb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zeromodel_navigation-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0d764df227a7e8339799944effb596d1fc450308ac2698840632424efee23d23
MD5 0756f42705f9577eed1cd40f9d160df5
BLAKE2b-256 3d9cce900b1638c6b8f718162afdf5ae8f36ef5edf6c0f7318463f70ff2f0cbb

See more details on using hashes here.

Release history Release notifications | RSS feed

1.2.0

1 file

This release

1.1.0 This release

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