NetOSField accessMenu
Signed in user unavailable
Documentation/Roadmap & Known Gaps
Download PDF

Xiber NetOS — Roadmap & Known Gaps

What's built, what's missing, and the recommended path forward.


Current Phase: Foundation Prototype

The current build delivers a working UI and API for circuit lifecycle visibility. Core CRUD, bulk edit/delete, mapping, dashboards, import, audit activity, and the admin feedback queue are functional. Authentication hardening, financial accuracy, renewal automation, and document ingestion remain the primary gaps before production use.


Feature Inventory

What's Built

AreaDetails
Monorepo scaffoldapps/api, apps/web, apps/mcp, packages/shared, infra/docker
Database schema13+ tables, PostGIS geometry, pgvector embeddings, materialized financial view
MigrationsAlembic baseline + infrastructure + agreements migrations
APIFastAPI with OpenAPI 3.1, circuit CRUD, bulk actions, map, dashboard, import, providers, infrastructure
Circuit tableSearch, filter by carrier/status/type, bulk edit/delete, click-through to detail
Circuit detailFull attributes, endpoints, carrier info, NOC contacts, contract terms, lifecycle history
MapA→Z circuit lines, endpoint dots, infrastructure markers, colored by provider, thickness by bandwidth
Dashboard17 KPI cards/panels including spend by carrier, service mix, renewal pipeline, at-risk circuits
TimelineContract-term Gantt with install markers, renewal deadlines, today line, state colors
TopologyEndpoint graph with logical/geographic layouts, SPOF detection, carrier-colored edges
Service providersPortal links, NOC phones, account managers, circuit/infra counts, ETF exposure
InfrastructureData centers, towers, colos, rooftops, carrier hotels, POPs, offices, and aggregation facilities with costs, terms, and bulk edit/delete
ElectricalUtility service accounts attached to infrastructure or customer sites, with provider, meter, service details, average monthly cost, monitoring link, and documents
Financial / P&LPer-circuit modeled revenue, margin, ETF exposure, carrier spend rollups, and infrastructure attribution foundation
Address lookupSearch circuits by address, endpoint, city, state, carrier, or circuit ID
Mobile field viewPhone-friendly circuit lookup with NOC call, copy ID, and map links
Admin / auditRecent activity trail plus bug/feature queue with priority, status, and progress comments
CSV/XLSX importHeuristic column mapping, staging, upsert by natural key, auto-stub carriers/endpoints
Sample data4 carriers, 10 endpoints, 8 circuits with contracts and lifecycle events
MCP toolsToken-aware read/context tools for search, circuits, infrastructure, customers, RF links, quotes, carrier summary, renewal pipeline, and site documents/photos
RBAC8 roles defined, dev shim accepts x-user-role header
Docker dev stackPostgreSQL 16, Redis 7, API, Web with hot reload

Gap Analysis

1. Authentication & Authorization

Detail
---------
CurrentHeader-based dev shim (x-user-role: exec) plus support for common SSO email headers when present. Direct/demo mode falls back to dev@xiber.com.
ImpactCannot deploy to production. No audit trail of who did what.
NeededMicrosoft Entra OIDC JWT validation on API. Role assignment from Entra groups/claims. Session handling in Next.js (cookie-based, server-side). Token refresh flow.
Depends onEntra app registration (see Public Hostname & SSO)

2. Audit Logging

Detail
---------
CurrentActivity logging exists for request/write activity, feedback, and bulk actions. created_by/updated_by are populated on newer write paths.
ImpactBasic accountability exists, but sensitive read tracking and field-level redaction are incomplete.
NeededComplete field-level before/after coverage for all write paths. Field-level read audit for sensitive data (ETF formulas, banking, MD5 keys). Sensitive field redaction on read by role.

3. CSV/XLSX Import Enhancements

Detail
---------
CurrentHeuristic column mapping. Staging rows. Commit valid rows. Upsert by natural key.
ImpactColumn mapping is fragile for non-standard headers. No way to fix staging errors in-app.
NeededClaude Opus 4.7 mapping (send headers + 5 sample rows, get canonical mapping). Saved mappings by (user, source_signature). Inline staging row editor. Diff preview before updating existing circuits. Explicit confirmation dialog before overwriting financial fields.

4. PDF Contract Ingestion

Detail
---------
CurrentContract and AgreementExtraction schemas exist. No upload or extraction pipeline.
ImpactContract data must be entered manually or via CSV.
NeededPDF upload endpoint with S3/MinIO object storage. pdfplumber text extraction with pytesseract OCR fallback. Claude Opus 4.7 structured extraction (carrier, term, MRC, ETF formula, renewal terms). Confidence scoring with source quotes and page numbers. Side-by-side approval UI (PDF viewer left, extracted fields right). Mandatory human approval for MRC, ETF, and term fields before commit.

5. Renewal Engine

Detail
---------
CurrentRenewal states computed on-the-fly in API/frontend. No persistent tracking or notifications.
ImpactNo proactive alerts. Renewal deadlines can be missed.
NeededNightly Celery job to compute and persist renewal states (stable → watch → active → critical → overdue → decided). Materialized view or state table refresh. Email, Slack, and Monday.com notifications on state transitions. Decision workflow UI (renew / negotiate / terminate / port). DocuSeal termination notice generation. Test-mode fast-forward for QA.
State machinestable (>180d) → watch (90–180d) → active (30–90d) → critical (<30d) → overdue (past deadline) → decided

6. Dashboard & Financial Accuracy

Detail
---------
CurrentCircuit-level modeled MRR uses MRC * 1.35 placeholder multiplier. Infrastructure detail now has subtended links, direct/downstream revenue and cost rollups, relationship effective dates, and circuit-linked attribution records.
ImpactCircuit margin remains illustrative until Sonar revenue is connected. Infrastructure economics can be modeled manually now, but allocation methods, period reporting, and actual invoice/revenue integrations are still needed for production financial reporting.
NeededSonar integration to pull actual customer revenue attribution. Real margin calculation using customer MRR, carrier MRC, facility MRC, transport allocation, and invoice actuals. Full infrastructure waterfall view by asset, parent/child relationship, market, provider, service type, and accounting period. ETF exposure formulas and renewal projection forecasts using contract escalators.

7. Map Enhancements

Detail
---------
CurrentA→Z lines with provider coloring and bandwidth thickness. Provider/type/status filters.
ImpactMap is useful but isolated from table view. No external data overlays.
NeededPolygon/lasso selection tool. Shared filter state with circuit table. Wisdm tower layer overlay. Sonar property/coverage layer overlay. Tile hosting decision (MapTiler vs. self-hosted). Cluster markers for dense endpoint areas.

8. Topology Enhancements

Detail
---------
CurrentEndpoint graph with logical/geographic layouts, SPOF detection by node degree.
ImpactLayout resets on reload. No true networking detail.
NeededDrag/drop layout with save per user and shared default. True networking fields: VLANs, BGP sessions, router interfaces, handoff ports, IP blocks. Better redundancy modeling (path diversity, not just node degree).

9. Financial / P&L View

Detail
---------
CurrentImplemented with per-circuit modeled P&L, carrier spend, margin, ETF exposure, and the first infrastructure subtended-link economics model.
NeededSonar revenue attribution, invoice actuals, carrier/customer/market/service rollups, infrastructure waterfall reports, renewal projection forecast, allocation calculators, and export to XLSX.

10. Address Lookup

Detail
---------
CurrentImplemented text search across circuit, carrier, endpoint, city, state, and address fields.
NeededIntegration with Xiber Service Address Availability Checker. Nearby endpoint/circuit search by radius. Quote-history cost-to-serve estimate.

11. Mobile Field View

Detail
---------
CurrentImplemented responsive field view with search, one-tap NOC call, copy circuit ID, and map app links.
NeededAdd infrastructure asset support, recent events, paired-circuit context, and offline-friendly behavior.

12. Invoice Ingestion

Detail
---------
CurrentInvoice and InvoiceLineItem schemas exist. No ingestion pipeline.
NeededMailbox polling (M365 Graph) or manual upload. PDF invoice parsing with line item extraction. Automatic matching to circuit by carrier circuit ID. Variance detection (invoiced MRC vs. contracted MRC). Auto-create Monday.com task for finance team on variance.

13. Vendor Portal Connectors

Detail
---------
CurrentNot implemented.
NeededLumen Control Center API connector. Zayo Tranzact API connector. Cogent portal connector. Vault/Doppler credential storage. Playwright scraping fallback where APIs are unavailable.

14. MCP Full Coverage

Detail
---------
CurrentToken-aware read/context tools exist for search, circuits, infrastructure, customers, RF links, quotes, quote draft queue, carrier summary, renewal pipeline, and site document/photo metadata. Quote draft MCP tools can stage vendor quotes for human review without committing them to quote history.
Neededget_circuit_pl, get_outage_history, broader write tools with explicit agent confirmation flow, and XOS MCP gateway registration/runtime management.

Recommended Build Phases

PhaseFocusWhy First
1Real Entra authenticationCannot deploy without identity. Blocks audit logging.
2Audit loggingRequired for compliance and accountability.
3Renewal engine + notificationsHighest business value — prevents missed deadlines and auto-renew traps.
4Contract CRUD + PDF ingestionEnables self-service contract management, reduces manual data entry.
5Financial/P&L + Sonar integration + infrastructure waterfallReal margin visibility, accurate business intelligence across circuits, structures, child facilities, and customer endpoints.
6Import enhancements (AI mapping, editor)Reduces friction for bulk data onboarding.
7Invoice ingestion + variance detectionCatches billing errors, automates finance workflows.
8MCP full coverageEnables XOS agents to query NetOS data for automated reporting and decisions.
9Map + topology enhancementsImproved operational visualization.
10Mobile, address lookup, exportsQuality-of-life features for field and sales teams.
11Vendor portal connectorsAutomated circuit status sync from carrier portals.

Technical Debt

ItemNotes
Celery workersDependencies installed, workers not yet running. Needed for renewal engine and invoice polling.
RedisRunning but only used for Celery broker. Could also cache dashboard aggregations.
pgvectorExtension installed but no embeddings generated yet. Future use for semantic circuit search.
Error handlingAPI returns generic 500s in some edge cases. Need structured error responses.
Test coverageNo automated tests. Need unit tests for import logic, API endpoints, and renewal state machine.
CI/CDNo pipeline. Need GitHub Actions or similar for lint, test, build, deploy.