-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathROBOT.SELFSEARCH.AVIS
More file actions
63 lines (51 loc) · 1.61 KB
/
Copy pathROBOT.SELFSEARCH.AVIS
File metadata and controls
63 lines (51 loc) · 1.61 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# FILE: ROBOT.SELFSEARCH.AVIS
# ================================================================
# ROBOT SELF-SEARCH ENGINE (AVIS-LAW)
#
# PURPOSE:
# Teach robots how to derive their own search patterns
# based on repo type (CORE, LANGUAGE, TOOLING, EXAMPLE, EXPERIMENT).
# ================================================================
begin.selfsearch.types
type.CORE {
pattern."**/*.h"
pattern."**/*.c"
pattern."**/*.meta"
pattern."**/*.map"
}
type.LANGUAGE {
pattern."**/*.h"
pattern."**/*.c"
pattern."**/*.cy"
pattern."**/*.lang"
}
type.TOOLING {
pattern."**/*.c"
pattern."**/*.h"
pattern."**/*.sh"
pattern."**/*.py"
}
type.EXAMPLE {
pattern."**/*.c"
pattern."**/*.h"
pattern."**/*.md"
pattern."**/*.txt"
}
type.EXPERIMENT {
pattern."**/*.c"
pattern."**/*.h"
pattern."**/*.exp"
pattern."**/*.log"
}
end.selfsearch.types
begin.robot.selfsearch.rules
rule.001."Determine repo.type from MERCWAR.CONSTELLATION.AVIS."
rule.002."Load patterns for that type from ROBOT.SELFSEARCH.AVIS."
rule.003."Apply patterns only within that repo root."
rule.004."Record hits into SentinelKnowledge."
rule.005."If no patterns for type: fall back to global search.order."
rule.006."If search fails: return.home and log failure."
end.robot.selfsearch.rules
# ================================================================
# END OF ROBOT.SELFSEARCH.AVIS
# ================================================================