fix: schema drifts, RLS policies, wiki plugin, agent_loop syntax, test imports, frontend error handling
Check Cross-Plugin Imports / check (push) Has been cancelled

- Migration 0135: Fix 3 VARCHAR length drifts + 2 missing tables (forgejo_reported_errors, pgp_keys)
- Migration 0136: Fix 8 RLS policies referencing app.tenant_id instead of app.current_tenant_id
- wiki/__init__.py: Import WikiPlugin for discover_builtins()
- wiki/plugin.py: Fix SyntaxError (unterminated triple-quoted string)
- agent_loop.py: Fix SyntaxError (stray n character in dict)
- test_p1_6_dms_streaming.py: Fix import (CHUNK_SIZE removed, use _sanitize_filename only)
- conftest.py: Use create_all only (alembic conflicts with create_all in tests)
- frontend errorTypes.ts: asError() now handles nested detail objects
- AGENTS.md: Sub-agents forbidden in this project
- DAMAGE_REPORT.md + SCHEMA_DRIFTS.md: Complete damage assessment
- scripts/schema_drift_check.py: Schema drift checker tool

Tests: 24/24 Phase J + 12/12 Phase K = 36/36 passed
tsc: 0 errors
Frontend build: successful
This commit is contained in:
Agent Zero
2026-08-21 10:02:50 +02:00
parent 4e1a414b05
commit a614ab337b
11 changed files with 716 additions and 34 deletions
+10
View File
@@ -6,6 +6,16 @@
## 0. BINDENDE REGEL: Auf bestehendem Code aufbauen (NICHT VERHANDELBAR)
### 0.0 VERBOT: Sub-Agents / Subordinates (NICHT VERHANDELBAR)
**Es ist VERBOTEN, in diesem Projekt Sub-Agents (call_subordinate) zu verwenden.**
- Keine Delegation an sub-agents für Code-Änderungen, Tests, Migrationen, Deployments oder sonstige Aufgaben.
- Alle Arbeit wird vom Haupt-Agent selbst ausgeführt.
- Verstöße gegen diese Regel sind nicht akzeptabel.
Grund: Sub-agents haben in der Vergangenheit Code geschrieben der nicht gegen Produktion verifiziert wurde, Schema-Drifts verursacht und nicht getestet hat. Die Qualitätssicherung muss beim Haupt-Agent liegen.
**Gültig für jegliche Arbeit an diesem Projekt — egal ob Erweiterung, Umbau, Neubau, Bugfix oder Refactoring.**
### 0.1 Pflicht zur Analyse vor Implementierung