You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`blackbelt-2.c` — alternate C client with local response saving disabled.
11
13
-`Makefile` — build/install targets.
12
14
13
15
The existing BBEA input schema requires `style`, `belt_level`, `jurisdiction`, `conduct_observations`, and `ethical_responses`; optional fields include `legitimacy_hint`, `legal_context`, and `auditor_notes`. The CLI therefore accepts the same structured JSON rather than inventing a second input format.
@@ -22,7 +24,7 @@ From this directory:
22
24
make
23
25
```
24
26
25
-
This produces the C/C++ executables and the Java 21 class.
27
+
This produces the C/C++ executables and the Java 21 class. The standard build also normalizes the shell scripts in this directory to executable permissions.
The Java client connects directly to the engine. The C and C++ clients use the shared `blackbelt-engine.sh` adapter, which packages the canonical JSON request and sends it to the same engine endpoint. This gives all three front ends one engine contract and permits the transport to evolve later into a local Unix socket, TCP service, or direct native library without changing the audit input format.
70
+
The C and C++ clients use the shared `blackbelt-engine.sh` adapter, which packages the request and sends it to the same engine endpoint. Natural-language questions are sent without Ollama's JSON-output constraint; structured audit objects retain the established JSON output contract.
61
71
62
72
## Prompt selection
63
73
64
-
By default the engine adapter loads:
74
+
The repository prompt remains at:
65
75
66
76
```text
67
-
black.belt/sharp/system.prompt
77
+
../../../black.belt/sharp/system.prompt
68
78
```
69
79
70
-
A system-wide installation also places the prompt at `/usr/share/blackbelt/sharp/system.prompt`.
80
+
when running from this directory. A system-wide installation also places the prompt at `/usr/share/blackbelt/sharp/system.prompt`.
@@ -90,27 +106,40 @@ For a conventional local executable directory instead:
90
106
sudo make install PREFIX=/usr/local/bin
91
107
```
92
108
93
-
The repository implementation remains under `/bin`; the installation prefix is configurable for Linux distributions and packaging systems.
109
+
The installation prefix is configurable for Linux distributions and packaging systems.
110
+
111
+
## Output and transport
112
+
113
+
C and C++ save the exact engine stdout response bytes by default under:
114
+
115
+
```text
116
+
~/.local/state/blackbelt/responses/
117
+
```
118
+
119
+
Use `--save FILE` for an explicit output path or `--no-save` to disable the default local save. `blackbelt-2` is the alternate no-save binary.
120
+
121
+
Optional network transport is controlled with `BBEA_TRANSPORT`. HTTPS and SSH are supported directly; plaintext HTTP, Telnet, and raw TCP require explicit `BBEA_ALLOW_INSECURE=1`. Encrypted authenticated channels are recommended for network output.
+----------------+ | BBEA Engine Contract | | BBEA model |
134
+
| C++17 CLI |------>| | +-------------------+
135
+
+----------------+ | JSON audit / |
136
+
| blackbelt-2 |------>| natural language |
137
+
+----------------+ | question modes |
138
+
| Java 21 CLI |------>| |
139
+
+----------------+ +----------------------+
140
+
141
+
Repository location:
142
+
modules/black-belt/bin/
114
143
```
115
144
116
-
The existing web module and `sharp` model artifacts remain in place. The CLI intentionally does not duplicate the model prompt or create a second scoring system. It feeds the existing BBEA contract so the terminal and web interfaces can converge on the same AI evaluation path.
145
+
The existing web module and `sharp` model artifacts remain authoritative. The CLI does not duplicate the model prompt or create a second scoring system. It feeds the existing BBEA contract so the terminal and web interfaces can converge on the same AI evaluation path.
0 commit comments