|
1 | | -# 🧠 BBC — Bitter Brain Context v8.4 |
| 1 | +# 🧠 BBC — Bitter Brain Context v8.5 |
2 | 2 |
|
3 | 3 | > **Zero-Hallucination AI Coding Framework** — Analyzes your project, detects your active IDE, and provides AI assistants with a verified sealed context. |
4 | 4 |
|
5 | 5 | [](https://www.python.org/) |
6 | 6 | [](LICENSE) |
7 | | -[](https://github.com/Anubis44197/BBC) |
| 7 | +[](https://github.com/Anubis44197/BBC) |
8 | 8 |
|
9 | 9 | --- |
10 | 10 |
|
@@ -155,13 +155,19 @@ BBC's daemon (`bbc_daemon.py`) actively monitors your project for changes every |
155 | 155 |
|
156 | 156 | The daemon uses `adaptive_mode.check_context_freshness()` for hash-based staleness detection and recommends `RESCAN` or `PARTIAL_RESCAN` based on the ratio of changed files. |
157 | 157 |
|
158 | | -### 🧠 Adaptive Mode (STRICT / RELAXED) |
159 | | -BBC operates in two modes depending on context match quality: |
| 158 | +### � Agent Integration Layer (v8.5) |
| 159 | +BBC now exposes its operational mode directly to AI agents through the sealed context and injected instruction files. |
160 | 160 |
|
161 | | -| Mode | Trigger | Behavior | |
162 | | -|---|---|---| |
163 | | -| **STRICT** | `context_match_ratio ≥ 0.8` | AI only uses verified symbols from `.bbc/bbc_context.json` | |
164 | | -| **RELAXED** | `context_match_ratio < 0.8` | AI may use broader knowledge with a hallucination warning | |
| 161 | +- **Versioning / Compatibility** — `bbc_instructions_version` and `context_schema_version` are written into `.bbc/bbc_context.json` and `BBC_INSTRUCTIONS.md` |
| 162 | +- **Freshness Gate** — `context_fresh` tracks whether the current context still matches the project on disk |
| 163 | +- **Fail Policy** — `fail_closed` blocks code generation on stale or missing context, while `fail_open` allows continuation with a warning |
| 164 | +- **Enforcement Profiles** — `strict`, `balanced`, and `relaxed` profiles define how aggressively BBC should enforce context-first behavior |
| 165 | + |
| 166 | +| Profile | Behavior | |
| 167 | +|---|---| |
| 168 | +| **strict** | Verified symbols only, impact-first workflow, verify-after-change, patch check, stale context blocks work | |
| 169 | +| **balanced** | Verified symbols only, verify-after-change, stale context warns but keeps workflow practical | |
| 170 | +| **relaxed** | Context-first guidance remains active, but broader iteration is allowed with warnings | |
165 | 171 |
|
166 | 172 | If a symbol is not in the sealed context, BBC returns: `"Information not found in sealed context"` |
167 | 173 |
|
@@ -259,7 +265,7 @@ Verification also runs automatically at the end of every `bbc start` and `bootst |
259 | 265 |
|
260 | 266 | --- |
261 | 267 |
|
262 | | -## �️ CLI Commands |
| 268 | +## 🖥️ CLI Commands |
263 | 269 |
|
264 | 270 | All user-facing commands go through `bbc.py` — the single entry point: |
265 | 271 |
|
@@ -295,7 +301,7 @@ All user-facing commands go through `bbc.py` — the single entry point: |
295 | 301 |
|
296 | 302 | --- |
297 | 303 |
|
298 | | -## �📂 Project Structure |
| 304 | +## 📂 Project Structure |
299 | 305 |
|
300 | 306 | ``` |
301 | 307 | BBC/ |
@@ -370,7 +376,7 @@ MIT License — see [LICENSE](LICENSE) for details. |
370 | 376 |
|
371 | 377 | <div align="center"> |
372 | 378 |
|
373 | | -**BBC v8.4 STABLE** — Your AI assistants now see your project through a verified sealed context. |
| 379 | +**BBC v8.5 STABLE** — Your AI assistants now see your project through a verified sealed context. |
374 | 380 |
|
375 | 381 | *No hallucinations. No guesswork. Only verified context.* |
376 | 382 |
|
|
0 commit comments