|
| 1 | +<!-- SPDX-License-Identifier: PMPL-1.0-or-later --> |
| 2 | +<!-- TOPOLOGY.md — Project architecture map and completion dashboard --> |
| 3 | +<!-- Last updated: 2026-02-19 --> |
| 4 | + |
| 5 | +# Preference Injector — Project Topology |
| 6 | + |
| 7 | +## System Architecture |
| 8 | + |
| 9 | +``` |
| 10 | + ┌─────────────────────────────────────────┐ |
| 11 | + │ APPLICATION │ |
| 12 | + │ (Consumer Requesting Prefs) │ |
| 13 | + └───────────────────┬─────────────────────┘ |
| 14 | + │ Inject / Query |
| 15 | + ▼ |
| 16 | + ┌─────────────────────────────────────────┐ |
| 17 | + │ INJECTOR CORE (RESCRIPT) │ |
| 18 | + │ (Priority Logic, Conflict Resolutn) │ |
| 19 | + └──────────┬───────────────────┬──────────┘ |
| 20 | + │ │ |
| 21 | + ▼ ▼ |
| 22 | + ┌───────────────────────┐ ┌────────────────────────────────┐ |
| 23 | + │ PREFERENCE PROVIDERS │ │ SECURITY & SYNC │ |
| 24 | + │ - Memory Provider │ │ - AES-256-GCM Encryption │ |
| 25 | + │ - File Provider (JSON)│ │ - Audit Logging │ |
| 26 | + │ - Env Provider (APP_) │ │ - CRDT Sync (Distributed) │ |
| 27 | + │ - API Provider (Remote)│ │ - Schema Validation │ |
| 28 | + └──────────┬────────────┘ └──────────┬─────────────────────┘ |
| 29 | + │ │ |
| 30 | + └────────────┬─────────────┘ |
| 31 | + ▼ |
| 32 | + ┌─────────────────────────────────────────┐ |
| 33 | + │ RUNTIME (DENO) │ |
| 34 | + │ (Secure File I/O, API Calls) │ |
| 35 | + └─────────────────────────────────────────┘ |
| 36 | +
|
| 37 | + ┌─────────────────────────────────────────┐ |
| 38 | + │ REPO INFRASTRUCTURE │ |
| 39 | + │ Justfile Automation .machine_readable/ │ |
| 40 | + │ Nickel config (ncl) 0-AI-MANIFEST.a2ml │ |
| 41 | + └─────────────────────────────────────────┘ |
| 42 | +``` |
| 43 | + |
| 44 | +## Completion Dashboard |
| 45 | + |
| 46 | +``` |
| 47 | +COMPONENT STATUS NOTES |
| 48 | +───────────────────────────────── ────────────────── ───────────────────────────────── |
| 49 | +CORE INJECTOR |
| 50 | + Priority System ██████████ 100% Conflict resolution verified |
| 51 | + ReScript Type Safety ██████████ 100% Exhaustive pattern matching active |
| 52 | + Caching (LRU/TTL) ████████░░ 80% Performance tuning refining |
| 53 | + Validation (Schema-based) ██████████ 100% Type-safe rules verified |
| 54 | +
|
| 55 | +PROVIDERS & SYNC |
| 56 | + Memory / Env Providers ██████████ 100% Core providers stable |
| 57 | + File Provider (Watch) ██████████ 100% JSON/Env format verified |
| 58 | + API Provider ████████░░ 80% Retry/Timeout logic active |
| 59 | + CRDT Support ██████░░░░ 60% G-Counter/OR-Set in progress |
| 60 | +
|
| 61 | +REPO INFRASTRUCTURE |
| 62 | + Justfile Automation ██████████ 100% Standard build/test tasks |
| 63 | + .machine_readable/ ██████████ 100% STATE tracking active |
| 64 | + Nickel Config ██████████ 100% Validated settings verified |
| 65 | +
|
| 66 | +───────────────────────────────────────────────────────────────────────────── |
| 67 | +OVERALL: █████████░ ~90% Stable and production-ready |
| 68 | +``` |
| 69 | + |
| 70 | +## Key Dependencies |
| 71 | + |
| 72 | +``` |
| 73 | +Nickel Config ───► Injector Core ─────► Priority Queue ─────► Resolution |
| 74 | + │ │ │ │ |
| 75 | + ▼ ▼ ▼ ▼ |
| 76 | +Provider Set ────► Deno Fetch ──────► CRDT Merge ───────► Preference |
| 77 | +``` |
| 78 | + |
| 79 | +## Update Protocol |
| 80 | + |
| 81 | +This file is maintained by both humans and AI agents. When updating: |
| 82 | + |
| 83 | +1. **After completing a component**: Change its bar and percentage |
| 84 | +2. **After adding a component**: Add a new row in the appropriate section |
| 85 | +3. **After architectural changes**: Update the ASCII diagram |
| 86 | +4. **Date**: Update the `Last updated` comment at the top of this file |
| 87 | + |
| 88 | +Progress bars use: `█` (filled) and `░` (empty), 10 characters wide. |
| 89 | +Percentages: 0%, 10%, 20%, ... 100% (in 10% increments). |
0 commit comments