Saving notes and data
This commit is contained in:
15
.ae_brief
Normal file
15
.ae_brief
Normal file
@@ -0,0 +1,15 @@
|
||||
# Aether Project Brief: aether_api_fastapi
|
||||
**Last Updated:** 2026-01-16 17:22:55
|
||||
**Current Agent:** mcp_agent
|
||||
|
||||
## 🛠️ What I Just Did
|
||||
1. Resolved 'Bootstrap Paradox' bug in lib_config_v3.py (hosted file path fix). 2. Developed Aether Field Manager (ae_field_manage.py) with table/view snapshotting and complex view detection. 3. Verified infrastructure and dry-run logic for vertical-slice field management.
|
||||
|
||||
## 🚧 Current Blockers
|
||||
None. Awaiting user verification of the first 'execute' run for the Field Manager.
|
||||
|
||||
## ➡️ Exact Next Steps
|
||||
1. Execute real-world test of ae_field_manage.py with user. 2. Proceed with Journal Management architecture review (Task 155435511). 3. Initiate Pydantic V2 migration impact analysis.
|
||||
|
||||
---
|
||||
*Generated by ae_brief*
|
||||
32
GEMINI.md
32
GEMINI.md
@@ -22,35 +22,27 @@ I am the **primary orchestrator and main helper** for the development of the **U
|
||||
- **Environment Sync Clarification**: Critical understanding that the `/home/scott/OSIT_dev/` directory is **NOT** a synchronized directory across different machines (e.g., Workstation vs. Laptop). This means virtual environments and installed dependencies are environment-specific and do not propagate via Syncthing. This is crucial for debugging cross-machine environment issues.
|
||||
- **Circular Import Sensitivity**: Importing `JSONResponse` from `fastapi` in `app/routers/api.py` triggers a circular dependency crash. It is safer to rely on FastAPI's default dict-to-JSON serialization or use `mk_resp` without explicit `JSONResponse` typing in that specific file.
|
||||
|
||||
## Session Summary & Progress (Jan 15, 2026)
|
||||
## Session Summary & Progress (Jan 16, 2026)
|
||||
|
||||
This session focused on a comprehensive modernization of the API's core infrastructure to resolve boot-time circular dependencies and improve maintainability.
|
||||
This session focused on infrastructure automation and resolving critical environment configuration issues.
|
||||
|
||||
* **FastAPI Entry Point Modularization:**
|
||||
* **Registry Pattern:** Created `app/routers/registry.py` to centralize 50+ router registrations, slimming down `main.py`.
|
||||
* **Lifespan Context:** Integrated the `lifespan` context manager in `app/main.py` to manage startup/shutdown tasks cleanly.
|
||||
* **Naming Collision Fix:** Resolved a critical conflict between the `app` instance and the `app.middleware` package by using explicit aliases.
|
||||
* **Database Logic Decoupling:**
|
||||
* **Layered Architecture:** Split `app/db_sql.py` into `lib_sql_core` (engine/connection) and `lib_sql_crud` (high-level helpers).
|
||||
* **Dynamic Engine Refresh:** Implemented `reconnect_db()` to allow the SQLAlchemy engine to update credentials after the initial boot.
|
||||
* **Robust Configuration & Logging:**
|
||||
* **Logging Sandbox:** Moved `dictConfig` to `app/lib_log_v3.py` and deferred its execution to avoid boot-time traps.
|
||||
* **Safe Bootstrap:** Created `app/lib_config_v3.py` with a non-fatal fallback mechanism for DB configuration sync.
|
||||
* **Architecture Documentation & Cleanup:**
|
||||
* Created `documentation/V3_CORE_ARCHITECTURE.md` to document the new file structure and bootstrap sequence.
|
||||
* Created `documentation/V3_DEVELOPMENT_STANDARDS.md` as the unified master guide for V3 principles and infrastructure.
|
||||
* Archived outdated tactical plans into `documentation/archive/` and removed stray orchestration files.
|
||||
* **Aether Field Manager (ae_field_manage.py):**
|
||||
* Developed a "Vertical Slice" automation tool in `~/agents_sync/scripts/` to handle field additions across DB, SQL Views, Pydantic Models, and Search Registries.
|
||||
* Implemented multi-layer safety: Timestamped backups, syntax pre-verification, and mandatory `--execute` flag.
|
||||
* Verified "Dry Run" logic for both `person` and `site` objects.
|
||||
* **Hosted File Path Bugfix:**
|
||||
* Identified and resolved a "Bootstrap Paradox" in `app/lib_config_v3.py` where database-stored paths (for production) were overwriting local Docker container paths.
|
||||
* Ensured `FILES_PATH` remains controlled by the container environment variables, restoring functionality to file downloads.
|
||||
|
||||
## Current To-Do List
|
||||
|
||||
### 1. High Priority & Urgent (UE-AE-01 Orchestration)
|
||||
- [ ] **Review codebase investigator report for Aether extension and journal management.** (ID: 155435511) - In Progress (awaiting report from codebase_investigator).
|
||||
- [ ] **Implement scope expansion to `/home/scott/OSIT_dev/`.** - Pending registry update.
|
||||
- [ ] **Real-world test of ae_field_manage.py.** (ID: 153357623) - Pending user verification of first field addition.
|
||||
- [ ] **Review codebase investigator report for Aether extension and journal management.** (ID: 155435511) - In Progress.
|
||||
|
||||
### 2. Infrastructure & Technical Debt
|
||||
- [ ] **Psutil Container Update**: Rebuilding the API image with C-build tools (GCC) to support native system monitoring. (Deferred / Paused)
|
||||
- [ ] **Fix ComfyUI Container**: Resolve the restart loop in the Ollama/WebUI environment.
|
||||
- [ ] **Pydantic V2 Migration**: Begin impact analysis for the 400+ validators and .dict() calls.
|
||||
- [ ] **Psutil Container Update**: Rebuilding the API image with C-build tools (GCC). (Paused)
|
||||
|
||||
### 3. Other Agent Tasks
|
||||
- [ ] **Review and process new messages from various agents.** (ID: 134908245) - In Progress (Internal gemini_cli task).
|
||||
|
||||
Reference in New Issue
Block a user