File size: 8,581 Bytes
3dfd0dd | 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 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 | # Phase 18 - Admin Control Station Finalization and Operational QA
## Phase Name
Phase 18 - Admin Control Station Finalization and Operational QA.
## Current Baseline Assumptions
- `docs/CURRENT_JEFFY_BASELINE.md` is the primary active baseline.
- Phase 17.5 closure/context cleanup is the active transition point.
- Phase 17.1 live Hugging Face root and `/health/deployment` checks are verified.
- Phase 17.2 provider runtime adapter metadata/test expansion is complete.
- Phase 17.3 Document RAG quality/indexing scale work is code/build recorded.
- Browser/manual interaction QA remains `Manual confirmation required` unless actually tested.
- PostgreSQL-only runtime, Python-only Docker, Hugging Face deployment, Admin/Family separation, Command Router, Credential Vault, Storage Registry, LLM/OpenRouter config, LangGraph workflows, browser voice/text fallback, search/source registry, sounds, and logo/assets must be preserved.
- Phase 24 Desktop Buddy and Mobile Buddy are planned only; do not start Phase 24.
## Full End-to-End Objective
Finalize the Admin Control Station as the central operational surface for Jeffy, verify its core browser/manual workflows, fix bounded Admin UX defects found during QA, preserve Family Area separation, and leave a clear Phase 19 recommendation without starting unrelated feature expansion.
## In-Scope Workstreams
- Admin navigation and menu/submenu verification.
- Dashboard status and click-through control verification.
- Top-bar command execution and notification routing where already implemented.
- Voice command connection where browser/runtime support is already available.
- Repository modal/viewer verification.
- Knowledge References verification.
- System Repository verification.
- Development Monitor verification.
- Logs & Events verification.
- Settings cleanup and confirmation of real-data-only status.
- Bottom notification bar verification.
- Family Area separation verification.
- Family voice/text fallback and food flow verification.
- Admin refresh/PIN gate behavior verification.
- Safe cleanup of unused legacy Admin UI only when clearly unused and non-risky.
- Build, compile, repository hygiene, and documentation closure.
## Out-of-Scope Items
- Phase 24 Desktop Buddy or Mobile Buddy implementation.
- Android/Capacitor/APK work.
- Hardware, robotics, camera, sensor, vision, object detection, or local LLM runtime implementation.
- Provider-wide storage sync.
- Full external provider file operations.
- Production vector database deployment or large-scale embedding jobs.
- Unrestricted shell execution, unrestricted file access, or unrestricted browser automation.
- Fake UI, placeholder actions, fake statuses, or fabricated QA passes.
- New product features beyond bounded fixes needed to finalize Admin Control Station QA.
## UI Expectations
- Admin Control Station should remain the central operational UI.
- Active Admin menu remains Dashboard, Agents, Management, Repository, Development, Configuration Center, Logs & Events, and Settings unless Phase 18 finds a concrete UI defect requiring a bounded adjustment.
- Visible controls must either work end-to-end or be hidden/disabled with honest status.
- Browser/manual checks must be recorded as passed only when actually tested.
- Family Area must not expose admin controls or internal development records.
- Notification and error states must be clear, non-secret, and routed to the correct Admin or Family surface.
## Backend Expectations
- Preserve `backend.main:app`.
- Preserve existing auth/login behavior, seeded family users, child pet endpoints, search/source registry, command router, storage registry, credential vault, approvals, and LangGraph workflow foundations.
- Backend changes are allowed only for defects found during Phase 18 QA and must stay bounded to Admin Control Station operational readiness.
- Responses must remain secret-safe and permission-aware.
## Storage/Database Expectations
- Preserve PostgreSQL-only runtime through required `DATABASE_URL`.
- Do not add SQLite runtime fallbacks.
- Do not change schema or migrations unless a concrete Phase 18 blocker requires it.
- Storage operation visibility must remain bounded by permission checks, approval checks, path traversal protection, secret-file filtering, scope validation, audit logging, safe confirmation UI, and safe failure visibility.
- Document RAG must remain bounded to safe document references, local embeddings, PostgreSQL chunk metadata, source/reference display, and honest weak-grounding messages.
## Security Rules
- Preserve current admin and last-admin protection.
- Preserve admin re-authentication/PIN gate behavior.
- Do not bypass permissions or approvals.
- Do not expose internal admin controls to Family Area users.
- Do not introduce unrestricted local machine control.
- Do not print, commit, hardcode, or log secrets.
## Permission/Approval Rules
- Sensitive actions require permission checks.
- Risky actions require approval gating where configured.
- Approval decisions and denied attempts must be logged safely where current logging exists.
- UI must show safe failure/approval states without exposing sensitive details.
## Secret Safety Rules
- Required secret names only: `DATABASE_URL` and `JEFFY_CREDENTIAL_ENCRYPTION_KEY`.
- Never expose actual secret values in docs, logs, UI, health output, reports, or terminal summaries.
- Use masked status such as `CONFIGURED`, `MISSING`, `DISABLED`, or `PARTIAL`.
- Do not index, upload, render, or expose `.env`, tokens, private keys, password files, raw API keys, hidden credential files, or secret configuration files.
## Deployment Rules
- Preserve Hugging Face Spaces Docker deployment.
- Preserve Python-only Docker runtime.
- Preserve runtime port `7860`.
- Regenerate `frontend/dist/` with `npm run build` if frontend source changes because Docker/Hugging Face uses the production build.
- Do not run Android/Capacitor sync or APK build.
- Live deployment checks may be recorded only if actually run.
## Manual QA Rules
- Manual/browser items must be marked `Passed` only when actually tested.
- Untested manual/browser items must remain `Manual confirmation required`.
- Record blockers separately from non-blocking deferred backlog.
- Do not advance claims from code/build ready to runtime accepted without real browser/runtime verification.
## Validation Commands
Backend:
```powershell
.\.venv\Scripts\python.exe -m compileall backend
```
Frontend:
```powershell
cd frontend
npm run build
```
Repository hygiene:
```powershell
git status --short
git status --short --ignored
git diff --stat
git diff --cached
```
Optional live checks only when explicitly run against the target runtime:
```powershell
Invoke-WebRequest -Uri "<live-app-url>/" -UseBasicParsing -TimeoutSec 60
Invoke-WebRequest -Uri "<live-app-url>/health/deployment" -UseBasicParsing -TimeoutSec 60
```
## Completion Criteria
- Admin Control Station QA scope is completed or remaining items are explicitly listed as `Manual confirmation required`.
- Any defects fixed during Phase 18 are bounded, validated, and documented.
- Admin/Family separation is preserved.
- Secret safety, permissions, approvals, audit logging, PostgreSQL-only runtime, Hugging Face deployment, and Python-only Docker are preserved.
- Backend compile and frontend build are run when code changes require them.
- Git status and diff summary are reviewed.
- Phase 19 recommendation is clear.
## Reporting Format
Report:
- Changed files.
- Commands run.
- Validation result.
- Manual QA result, with `Passed`, `Blocked`, or `Manual confirmation required`.
- Git diff summary.
- Deferred backlog.
- Remaining risks or follow-ups.
- Next phase recommendation.
## Deferred Backlog Rules
- Non-blocking Phase 18 gaps go to deferred backlog with owner phase recommendation.
- Provider maturity and storage operation expansion belong to Phase 19.
- Document RAG quality and knowledge intelligence beyond current bounded implementation belong to Phase 20.
- Agent automation and workflow orchestration belong to Phase 21.
- Voice/Family interaction refinement beyond Admin acceptance belongs to Phase 22.
- Monitoring/report intelligence belongs to Phase 23.
- Desktop Buddy and Mobile Buddy belong to Phase 24 and must not start during Phase 18.
## Next Phase Recommendation
After Phase 18 closure, recommend Phase 19 - Storage Operations and Provider Maturity as the next single-batch phase unless Phase 18 uncovers blocking Admin Control Station issues that require a focused corrective pass.
|