Task-context models¶
akms.task_context.models
¶
Repository-agnostic models for deterministic task knowledge routes.
These models intentionally live outside :mod:akms.schema.models: task route
indexes are retrieval inputs, not part of the frozen AKMS v2 node frontmatter
or propagation schemas.
RouteRecord
¶
Bases: BaseModel
One required-node route and its audit information.
canonical_sort_key
¶
Return the stable ordering key used within one route.
Source code in packages/akms/src/akms/task_context/models.py
RouteValidationIssue
¶
Bases: BaseModel
A machine-readable route validation failure.
RouteIndexValidationError
¶
Bases: ValueError
Raised with all route-index validation issues found in one pass.
Source code in packages/akms/src/akms/task_context/models.py
errors
¶
Return Pydantic-style serializable issue dictionaries.
TaskRouteIndex
¶
normalize_repository_path
¶
Return a canonical repository-relative POSIX path.
Both POSIX and Windows separators are accepted. Absolute paths, drive prefixes, parent traversal, NUL bytes, and paths that normalize to the repository root are rejected.