New Entity AI



dugout-> navigation_methods_special.dugout



Provide special label-based responses to the environment. These special navigation methods can be expanded, but they should follow the provided convention to keep them uniform in structure. Special methods are to be provided a LABEL_* that is set in /dugout/static_variables/. All labels are to be housed there as a LABEL GROUP. Out of convention, if the group exceeds 50 entries, it should be made into a LABEL SLUG and read in a dynamic fashion. This can be done using a database, no-sql methods, or just by providing a text file. Special locations are usually only available at certain points during operations. Such as if a backup drive is available or a network location is available for discovery.


            
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
###############################################################################
## COPYRIGHT (C) 2020-2026 NEW ENTITY OPERATIONS INC.
## INSTANCE: navigation_methods_special.dugout
## MODIFIED: 2026/04/20
## OVERVIEW: Provide custom label-based responses to the environment
###############################################################################
## Storage Locations: Non-standard
###############################################################################
## Source the wrappers
. "$wrappers_generic"

## Mock failure for special
NAVIGATION_MOCK_FAILURE_SPECIAL() {
 # this will fail
 performTreeWalk "/THIS_DIR_WILL_FAIL_TEST" "/THIS_DIR_WILL_FAIL_TEST"
}

## Instances
NAVIGATION_*SPECIAL_LOCATION_ENDPOINT_LABEL_NAME*_SPECIAL() {
 ## /run/*VIRTUAL_BACKUP_LOCATION*/*SEGMENT_ID_LOCATION*/*SPECIAL_LOCATION_ENDPOINT*
 if [ -d "${LABEL_*SPECIAL_LOCATION_ENDPOINT_LABEL_NAME*}" ]; then
  perform_tree_walk "${LABEL_*SPECIAL_LOCATION_ENDPOINT_LABEL_NAME*}"
 else
  alert_location_special_not_found "${LABEL_*SPECIAL_LOCATION_ENDPOINT_LABEL_NAME*}"
 fi
}