docs(06.2): capture phase context + fix admin user creation 500

- Phase 6.2 CONTEXT.md: cloud-delete propagation, SHARE-03/05, audit
  log CSV export fix, daily export UI, user handle display
- Fix: admin create_user missing session.flush() before write_audit_log
  caused FK violation on PostgreSQL (silent on SQLite)
- Regression test: test_create_user_writes_audit_log in test_admin_api.py

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
curo1305
2026-05-31 11:00:45 +02:00
parent 3825f670a1
commit 7be48266ae
6 changed files with 252 additions and 1 deletions
+21
View File
@@ -318,6 +318,26 @@ Before any phase is marked complete, all three gates must pass:
---
### Phase 6.2: Close v1 sharing + cloud-delete + CSV export gaps
**Goal**: Close remaining v1 gaps — sharing edge cases, cloud document deletion propagation to the remote backend, and CSV export for the admin audit log.
**Mode:** mvp
**Depends on**: Phase 6.1
**Requirements**: TBD
**Success Criteria** (what must be TRUE):
1. TBD
**Plans**: TBD
**Phase gates (must pass before Phase 6.2 is complete):**
- [ ] `pytest -v` — zero failures
- [ ] Security agent: bandit + pip audit + npm audit all clean
---
## Progress Table
| Phase | Plans Complete | Status | Completed |
@@ -329,3 +349,4 @@ Before any phase is marked complete, all three gates must pass:
| 5. Cloud Storage Backends | 12/12 | Complete | 2026-05-30 |
| 6. Performance & Production Hardening | 0/TBD | Not started | — |
| 6.1. Close v1.0 audit gaps | 2/2 | Complete | 2026-05-30 |
| 6.2. Close v1 sharing + cloud-delete + CSV export gaps | 0/TBD | Not started | — |