# 17 — Registry web administration Implementation status: IMPLEMENTED & VERIFIED (2026-11-26). See [STATE](../agent-workflow/STATE.md) and [VERIFICATION](../agent-workflow/VERIFICATION.md) for implemented files and observed checks. ## Requirements and ownership - Requirements: R-009, R-012. - Delivery phase: Full v1 registry. - Intended configured role: sol_implementer at XHigh; fresh astra_reviewer acceptance. - Dependencies: 16 stable authenticated API/error model; 12/15 package metadata shapes. - Proposed exclusive implementation scope: registry/web/, tests/registry-web/; API changes requested from service owner, never made silently. Before dispatch, reconcile these paths with the real HEAD, write a full task spec, lint it, and transfer shared-file ownership explicitly. Paths that do not yet exist are NEW. Source-disjoint work still coordinates shared state, ports and build directories. ## Design and interfaces - Provide a browser interface for package search, release detail, source/binary variants, publish/yank, user/role/token management, audit history and storage administration. - Use ordinary HTML/CSS/JavaScript assets served with the C++ service. Keep runtime business logic and authorization in the service; no independent browser-side solver or privileged policy. - Use authenticated sessions with HttpOnly cookie handling, origin/CSRF protection for mutations and server-side role checks. Never persist privileged bearer tokens in public URLs or rendered logs. - Render package descriptions, names, filenames and diagnostics as untrusted text. Apply escaping/content policies; show integrity and compatibility metadata without executing package content. - Design loading, empty, unauthorized, expired-session, validation/conflict, upload-progress and server-error states. Keyboard navigation, labels, focus management and accessible confirmation/status messages are required. - Publishing/yanking and role/token changes show the affected package/version/user and server result. Do not present an optimistic success before durable publication; double submissions must be safe. ## Implementation sequence 1. Create package browsing/search/detail flows against API fixtures. 2. Add authenticated session/navigation and role-aware administration views. 3. Implement upload/publish/yank and user/role/token/audit/storage workflows. 4. Run browser/accessibility/security-state fixtures and integrate real service end-to-end tests. ## Failure behavior and boundaries - Hidden buttons do not establish authorization; every mutation is checked server-side. - Expired/revoked sessions cannot leave stale privileged controls functioning. - Malformed server responses produce recoverable errors without rendering raw unsafe HTML. - No required paid UI service or public hosting is introduced. ## Acceptance scenarios 1. Browse/search/empty/error states and keyboard-only workflows. 2. Login/logout/session expiry; reader/publisher/admin access and direct unauthorized request attempts. 3. XSS payloads in all displayed package metadata; CSRF rejection on mutations. 4. Successful/failed/interrupted uploads, duplicate clicks, conflicting publish and yank recovery. 5. User/role/token changes, token shown only at creation, redacted audits and storage quota errors. ## Verification and integration gate NEW browser automation plus real local service integration, with test runner versions pinned in the future harness. Do not call a mock UI proof of backend authorization. Public deployment remains separate. Acceptance requires observed results for these scenarios, the affected regression suite, reviewed cross-component contracts, and a fresh independent review. Record unrun checks and environment limitations; tests passing alone do not waive an invariant. No merge, push or deployment is authorized by a review verdict. ## VoidLibrary reuse and upstream candidates The same C++ registry API owns data and security. Void HTML/text helpers may assist server rendering; avoid duplicating escaping/auth mechanisms across layers. Shared invariants and input/publication policies are defined in [ARCHITECTURE](ARCHITECTURE.md); requirement authority is [REQUIREMENTS](REQUIREMENTS.md). Return implementation evidence to [VERIFICATION](../agent-workflow/VERIFICATION.md).