File size: 1,249 Bytes
80fa878
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# BASE_ARCHITECTURE.md



## Components



### Orchestrator



Coordinates tasks, selects agents, enforces workflow gates and tracks status.



### Codebase Scout



Searches existing code, docs and tests before implementation.



### Data Agent



Handles datasets, schemas, temporal metadata and anti-leakage checks.



### Code Agent



Implements scoped changes after the reuse decision and minimal design.



### Reviewer



Checks correctness, scope, security, tests and leakage before merge.



### Context Compressor



Updates `PROJECT_STATE.md` with durable memory and removes conversation noise.

### Storage

Stores project files, reports, templates, ADRs and local configuration.

### Reports

Task reports live under `reports/task_reports/` and provide the audit trail.

### Project State

`PROJECT_STATE.md` is the short memory read before every task.

## Mermaid Architecture

```mermaid

flowchart LR

    U[User] --> O[Orchestrator]

    O --> S[Codebase Scout]

    S --> O

    O --> D[Data Agent]

    O --> C[Code Agent]

    C --> T[Tests]

    D --> L[Leakage Audit]

    C --> R[Reviewer]

    L --> R

    T --> R

    R --> TR[Task Reports]

    R --> PS[Project State]

    PS --> O

    TR --> O

```