Stdlib module path/walker.vitl

This page is a wiki-style reference for one concrete stdlib file. It explains what the file owns, where it fits in the family, and how to decide whether this is the right surface to depend on.

Visual portrait of path/walker.vitl
Wiki-style portrait for path/walker.vitl.

Family: path

Kind: public stdlib surface

Page style: this reference follows the same “encyclopedic card + portrait + usage contract” logic as the keyword pages, but for stdlib modules.

Summary

Overview

FieldValue
Pathpath/walker.vitl
Familypath
Kindpublic stdlib surface
Line count97
Declared procedures11
Declared forms/picks4

`path/walker.vitl` is a public stdlib surface inside the `path` family. It should be read as one focused slice of the broader family responsibility: Path manipulation, special locations, walkers, and globbing.

Purpose

This file should be chosen because of responsibility, not because its name “sounds close enough”. Inside the path family, it carries one focused part of the contract and keeps that responsibility separate from neighboring concerns.

  • A project root can be normalized before any file is read.
  • A walker can enumerate source files while parsing and diagnostics remain elsewhere.

Taxonomy

Think of this page as a generated encyclopedia entry rather than a hand-written tutorial. The goal is to show what kind of module this is, how dense it is, and what reading strategy makes sense before depending on it.

  • Medium procedure surface: this file groups several related operations behind one namespace.
  • Owns domain vocabulary: the module declares data shapes in addition to executable helpers, so its types are part of the contract.
  • Minimal top-level dependencies: the module reads as mostly self-contained from its opening declarations.
  • Explicit export surface: the file ends with visible export declarations instead of relying only on implicit namespace discovery.

Implementation profile

This profile is inferred directly from the source text. It does not replace reading the file, but it tells you quickly whether the module is mostly declarative, loop-heavy, branch-heavy, or organized around many small exits.

SignalCountWhat it suggests
if0Branching density and local decision-making.
while0Loop-heavy or iterative implementation style.
for0Collection-style traversal at source level.
match0Variant-driven branching or grammar-style decoding.
let2Local state and intermediate value density.
give11Number of explicit exit points and result shaping.

Top-level API inventory

SurfaceItems
Procedurespath_walk, path_walk_recursive, path_walker_next, path_walker_has_next, walker_version, walker_ready, walker_manifest, walker_health, walker_summary, walker_report, walker_selftest
FormsPathWalker, PathWalkerManifest, PathWalkerHealth, PathWalkerSummary
Picksnone declared at top level
Constantsnone declared at top level
Exports*

Imported surfaces

This file does not advertise a top-level `use` surface in its opening declarations. That often means it is either self-contained or an aggregation layer.

Position in family

This file is module 5 of 5 in the path family when ordered by path. By procedure count it ranks 5, and by line count it ranks 4. Those ranks are useful as rough signals of breadth, not as quality judgments.

Declaration map

The declaration map turns raw source into a scan-friendly catalog. It is useful when the file is large enough that a reader wants to orient by kinds of surfaces first.

LineNameKindRole
1vitte/path/walkerspaceDeclares the namespace that anchors this file in the stdlib tree.
8PathWalkerformIntroduces a structured data shape that other procedures can exchange.
14PathWalkerManifestformIntroduces a structured data shape that other procedures can exchange.
20PathWalkerHealthformIntroduces a structured data shape that other procedures can exchange.
25PathWalkerSummaryformIntroduces a structured data shape that other procedures can exchange.
30path_walkprocOwns path semantics, traversal, or normalization.
38path_walk_recursiveprocOwns path semantics, traversal, or normalization.
46path_walker_nextprocOwns path semantics, traversal, or normalization.
50path_walker_has_nextprocOwns path semantics, traversal, or normalization.
54walker_versionprocOwns path semantics, traversal, or normalization.
58walker_readyprocOwns path semantics, traversal, or normalization.
62walker_manifestprocOwns path semantics, traversal, or normalization.
70walker_healthprocOwns path semantics, traversal, or normalization.
77walker_summaryprocOwns path semantics, traversal, or normalization.
84walker_reportprocOwns path semantics, traversal, or normalization.
88walker_selftestprocOwns path semantics, traversal, or normalization.

The table is exhaustive for top-level declarations of the selected kinds. This file declares 16 matching surfaces.

Representative signatures

These signatures are shown in source order so the page keeps the feel of a reference manual, not just a keyword cloud.

  • form PathWalker { (line 8)
  • form PathWalkerManifest { (line 14)
  • form PathWalkerHealth { (line 20)
  • form PathWalkerSummary { (line 25)
  • proc path_walk(root: string) -> PathWalker { (line 30)
  • proc path_walk_recursive(root: string) -> PathWalker { (line 38)
  • proc path_walker_next(w: PathWalker) -> string { (line 46)
  • proc path_walker_has_next(w: PathWalker) -> int { (line 50)
  • proc walker_version() -> string { (line 54)
  • proc walker_ready() -> bool { (line 58)
  • proc walker_manifest() -> PathWalkerManifest { (line 62)
  • proc walker_health() -> PathWalkerHealth { (line 70)
  • proc walker_summary() -> PathWalkerSummary { (line 77)
  • proc walker_report(root: string) -> PathWalker { (line 84)
  • proc walker_selftest() -> bool { (line 88)

How to use this module

Start by reading the file as an ownership boundary. Ask three questions: what enters this module, what stable types or procedures it exports, and what adjacent module should stay outside of it.

  1. Read space and top-level imports first so the ownership boundary of path/walker.vitl is explicit.
  2. Read declared forms and picks before algorithms so the data vocabulary is stable in your head.
  3. Traverse procedures in source order; the early helpers usually explain the naming and numeric conventions used later.
  4. Use the source landmarks section below as a table of contents when the file is large.
  5. Only after that compare neighbor modules, because the right boundary choice matters more than memorizing one helper name.

User example

This example is generated from the actual stdlib module surface. Its job is not to be the smallest snippet possible; its job is to show a realistic consumer-shaped file that exercises the module and mirrors the language keywords the module itself relies on.

space demo/path_walker
form PathRun {
  pattern: string,
  ready: bool
}
proc run_example() -> PathRun {
  let entries = path_walk("sample")
  let ready: bool = true
  let stable: bool = ready and entries.len >= 0
  give PathRun { pattern: "src/**/*.vitl", ready: true }
}
export run_example

Keyword coverage

This table makes the “all keywords of the module” requirement auditable. It compares the detected Vitte keywords in the source file with the generated consumer example above.

KeywordPresent in module sourceUsed in generated user example
spaceyesyes
formyesyes
procyesyes
letyesyes
giveyesyes
exportyesyes
trueyesyes
andyesyes

The generated snippet exercises every detected Vitte keyword used by this module.

Source shape

space vitte/path/walker
// Walk filesystem
form PathWalker {
    root: string,
    entries: [string],
    index: i32
}
form PathWalkerManifest {
  name: string,
  version: string,

The excerpt is not meant to replace the file. It exists to make the module recognizable at first glance, the same way a Wikipedia infobox helps the reader orient before reading the whole article.

Source landmarks

Large files are easier to retain when they have visible landmarks. When the source contains explicit section banners, they are surfaced here; otherwise the first major declarations are used as anchors.

  • Path Walking Module

Source organization

When a file carries its own internal chaptering, those chapters usually reveal the intended reading order better than a flat symbol list. This section reconstructs that organization from the source itself.

Opening declarations

Top-level items: 1. Procedures: 0. Data surfaces: 0. Constants: 0.

First visible names: vitte/path/walker

Path Walking Module

Top-level items: 16. Procedures: 11. Data surfaces: 4. Constants: 0.

First visible names: PathWalker, PathWalkerManifest, PathWalkerHealth, PathWalkerSummary, path_walk, path_walk_recursive, path_walker_next, path_walker_has_next, walker_version, walker_ready

Complete API catalog

This catalog is the exhaustive file-level index for the module. It is intentionally closer to a generated encyclopedia appendix than to a tutorial summary.

Data surfaces

LineNameSignatureRole
8PathWalkerform PathWalker {Introduces a structured data shape that other procedures can exchange.
14PathWalkerManifestform PathWalkerManifest {Introduces a structured data shape that other procedures can exchange.
20PathWalkerHealthform PathWalkerHealth {Introduces a structured data shape that other procedures can exchange.
25PathWalkerSummaryform PathWalkerSummary {Introduces a structured data shape that other procedures can exchange.

Procedures

LineNameSignatureRole
30path_walkproc path_walk(root: string) -> PathWalker {Owns path semantics, traversal, or normalization.
38path_walk_recursiveproc path_walk_recursive(root: string) -> PathWalker {Owns path semantics, traversal, or normalization.
46path_walker_nextproc path_walker_next(w: PathWalker) -> string {Owns path semantics, traversal, or normalization.
50path_walker_has_nextproc path_walker_has_next(w: PathWalker) -> int {Owns path semantics, traversal, or normalization.
54walker_versionproc walker_version() -> string {Owns path semantics, traversal, or normalization.
58walker_readyproc walker_ready() -> bool {Owns path semantics, traversal, or normalization.
62walker_manifestproc walker_manifest() -> PathWalkerManifest {Owns path semantics, traversal, or normalization.
70walker_healthproc walker_health() -> PathWalkerHealth {Owns path semantics, traversal, or normalization.
77walker_summaryproc walker_summary() -> PathWalkerSummary {Owns path semantics, traversal, or normalization.
84walker_reportproc walker_report(root: string) -> PathWalker {Owns path semantics, traversal, or normalization.
88walker_selftestproc walker_selftest() -> bool {Owns path semantics, traversal, or normalization.

Exports

LineNameSignatureRole
97*export *Re-exports surfaces that the module wants to expose as part of its public boundary.

Integration boundaries

Within path, this file should remain focused. If a future helper changes the host boundary, scheduling boundary, or data-shape boundary, it probably belongs in a neighbor module instead of being added here by convenience.

  • Family responsibility: Path manipulation, special locations, walkers, and globbing.
  • Family architecture role: Use `path` when the program needs path semantics, traversal, or normalization. Keep it distinct from file contents and from business validation.

Composition guidance

Choose this module when

  • Choose path/walker.vitl when the main question is owned by this module rather than by transport, storage, orchestration, or user-interface code.
  • A project root can be normalized before any file is read.
  • A walker can enumerate source files while parsing and diagnostics remain elsewhere.

Pause before extending it when

  • Avoid extending this file when the new helper mostly changes the boundary to host I/O, runtime coordination, or foreign integration instead of staying inside path.
  • Check nearby modules such as path/globbing.vitl, path/manipulation.vitl, path/special.vitl before adding convenience wrappers here.

Relationship table

This table keeps the page closer to a real encyclopedia entry: a module is easier to understand when compared with its nearest alternatives in the same family.

NeighborProceduresData surfacesWhy compare it
path/globbing.vitl113Shares the same family boundary but carries a distinct slice of responsibility.
path/manipulation.vitl404Shares the same family boundary but carries a distinct slice of responsibility.
path/special.vitl193Shares the same family boundary but carries a distinct slice of responsibility.
path.vitl796Shares the same family boundary but carries a distinct slice of responsibility.

Neighbor modules