Skip to main content

Directory Ontology

Storage Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 09 November 2026
Audio Overview
SEMANTIC LIBRARY — DIRECTORY ONTOLOGY
FLOW ALGEBRA v1.0 | Storage Entities

AUTHORS: Mark Anthony Higgins — Sky Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/storage-entities/directory-ontology.html
SOURCE PAGE: Directory Ontology; revised 02 August 2026.
STATUS: Constructed Flow Algebra mapping. The full embedded page specification was not accessible; the rules below are an independently formulated representation, not a verbatim extraction.
CITATION: Mark Anthony Higgins and Sky Recursive AI, "Directory Ontology", Kireth Research Semantic Library (source URL above).

1. PURPOSE
Represent a filesystem directory as a named container of entries with hierarchical relationships, metadata, access controls and atomic or ordered state transitions.

2. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = directory identity, path, parent reference, entry map, metadata, permissions and observed events.
R_t = containment, parent-child, path-resolution, ownership, permission and consistency relationships.
B_t = filesystem namespace rules, access rights, name constraints, link semantics, quotas and atomicity boundaries.
K_t = validated filesystem facts, directory invariants and operation history.

3. ENTITY MODEL
Directory D = (id, parent, entries, metadata, ACL, state)
Entry E = (name, target_id, entry_type)
Entry types = regular file, directory, symbolic link, and filesystem-specific types.
Relationships: CONTAINS(D,E), RESOLVES_TO(E,target), PARENT_OF(D,D_child), OWNED_BY(D,principal), PROTECTED_BY(D,ACL).
A directory is distinct from its path: rename or move may change paths without changing object identity.

4. FLOW ALGEBRA
E_t = expand(I_t, R_t)
V_t = {x in E_t | satisfies(x, B_t) and authorised(x, ACL)}
a_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t)
I_(t+1) = apply(I_t, a_t, observations_t)
K_(t+1) = validate(K_t union observations_t, B_t)
When deterministic filesystem operations are available, choose the authorised operation by explicit request and preconditions rather than probabilistic ranking.

5. DIRECTORY PATHWAY
INPUT(path, principal, operation)
 -> NORMALISE(path)
 -> RESOLVE_COMPONENTS(path, link_policy)
 -> CHECK_PERMISSIONS(principal, operation)
 -> VALIDATE_PRECONDITIONS(operation)
 -> APPLY_ATOMIC_OR_ORDERED_CHANGE(operation)
 -> VERIFY_POSTCONDITIONS
 -> OUTPUT(result, updated_state, audit_event)

6. OPERATIONS
CREATE_DIRECTORY(parent,name): requires valid name, authorised parent modification and absent conflicting entry; adds directory and entry.
LIST_DIRECTORY(D): requires appropriate enumeration permissions; returns permitted entries.
LOOKUP(D,name): resolves a name to an entry according to filesystem rules.
RENAME_OR_MOVE(E,destination): requires appropriate permissions and destination constraints; updates directory entries and relevant paths.
REMOVE_DIRECTORY(D): requires applicable deletion permissions and emptiness where mandated; removes the parent entry.
UPDATE_METADATA(D,fields): requires relevant privileges and valid field values.
TRAVERSE(D): requires search/traverse permission for each applicable path component.

7. INFERENCE RULES
IF CONTAINS(D,E) AND E.entry_type=directory THEN PARENT_OF(D,E.target_id).
IF entry names are unique within D THEN LOOKUP(D,name) resolves at most one directory entry.
IF a path component is inaccessible THEN path resolution must not disclose protected content.
IF move would place D inside its own descendant THEN reject the move.
IF operation violates quota, ACL, namespace or filesystem constraints THEN reject without claiming success.
IF a symbolic link is encountered THEN apply explicit link-following policy and loop limits.

8. RECURSIVE PROCESSING ENGINE
walk(D, visited, depth_limit):
  verify access and depth budget;
  enumerate permitted entries;
  emit directory and entry relationships;
  recurse into child directories where permitted;
  handle symbolic links under configured policy;
  detect cycles when link traversal is enabled;
  return partial results and errors explicitly.
Recursion is bounded; permission denial and I/O failure are terminal for the affected branch, not evidence that the branch is empty.

9. INVARIANTS AND BOUNDARIES
Each directory entry has a valid name under its filesystem's naming rules.
No ordinary directory-parent cycle is permitted.
Directory contents and metadata may change concurrently; snapshots or locking may be required for consistent enumeration.
Filesystem implementations differ in case sensitivity, link handling, permissions, rename atomicity and durability guarantees.
Never assume a successful API return implies durable persistence without the applicable synchronisation contract.

10. EXAMPLE EXECUTION
Request: create /research/flows when /research exists.
Check parent resolution and create permission; verify 'flows' is absent; create the directory; verify its entry and metadata; return the resulting path and status.
If 'flows' already exists, return a conflict or explicitly authorised idempotent result rather than silently overwriting.

11. SEMANTIC EQUIVALENCE
Directory ~ folder (user-facing label, context dependent).
Directory != regular file.
Directory entry != underlying file object.
Path != persistent object identity.

12. CONFIDENCE AND PROVENANCE
Ontology subject and page authorship: source page.
Operational definitions, formal rules and examples: constructed interpretation based on common filesystem semantics.
Confidence is conditional on the target filesystem and its documented guarantees.

13. UPDATE MODEL
On metadata change, entry addition/removal, rename, permission change or observed inconsistency:
  re-observe affected directory;
  recompute affected containment and path relationships;
  validate invariants;
  retain provenance and timestamp of observations.

END OF FLOW
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ