Skip to main content

AI-Assisted Development, MCP-Ready Documentation & Capstone Delivery

This example is the capstone package: a compact EnterpriseOps Command Center (KPIs and a work queue from EnterpriseOps.Services, an approve command with a permission check, an optimistic version and an audit line, a diagnostics card), plus a Capstone Review screen that presents and checks the deliverables — the AI prompt library, the generated-code review checklist (run over an AI draft), the MCP-shaped documentation index, the demo script, the defense deck outline and the production readiness statement. No AI service is called: the "AI draft" is a committed sample and the review engine is deterministic.

Nothing here is deployed anywhere; it is a plain Wisej.NET 4 project that runs on your machine.

Run it

cd "LearnWisej-Samples/Enterprise Wisej.NET Course/Module 14/EnterpriseOps"
dotnet run -f net10.0 --urls http://localhost:5214

Then open http://localhost:5214. (Visual Studio: open EnterpriseOps.slnx, press F5 — the port is in Properties/launchSettings.json.) The project multi-targets net10.0-windows;net10.0, so dotnet run needs -f. Start it from the project folder: the Capstone Review reads docs/ relative to Application.StartupPath.

Requirements: .NET 10 SDK, the Wisej-4 4.1.0 NuGet package.

What to click

Command Center (UI/CommandCenterDashboard)

ControlWhat you should see
⟳ Refresh / status filter (cboStatus)DashboardService KPIs (open · escalated · due today · overdue · done in 7 days) and the queue page; the dark footer names the service, the row count, the elapsed ms and the correlation id
select a row → ✓ Approve selectedthe service authorizes, validates, writes with the row's version and audits; the footer shows the audit line. A New row is refused as data ("only InProgress or Escalated can be approved"), a stale version as a red banner — never as an exception
▶ Run health check / ■ Cancelsix probes fill in one at a time (session context, store, audit log, documentation index, capstone package, review engine), cancellable
Capstone review →Application.MainPage = CapstoneReviewPage — same session, same services

Capstone Review (UI/CapstoneReviewPage)

Tab / controlWhat you should see
Capstone package✓ Verify packageCapstonePackageService checks every deliverable on disk (file present, size, a marker heading) and the index: ready to submit
AI prompt librarythe prompts from docs/PromptLibrary.md, each expanded with the project-rules header
Review checklistthe ten questions from docs/GeneratedCodeReviewChecklist.md
Generated-code reviewLoad AI draft #214▶ Review generated codethe failure path: REJECTED with eleven findings (static session state, undocumented Wisej API members caught against the catalog built from Wisej.Framework.xml, no permission check, a swallowed exception, …)
Load rev 2 (fixed)▶ Review generated codeACCEPTED — no checklist finding
Sign the decisionthe decision is recorded (author ai-assistant, signed by ana.ops) and shown on the AI usage notes tab
Documentation indexdocs/index.json read back in MCP resources/list shape, every path resolved on disk
← Command Centerback to the dashboard, session intact

Where things live

EnterpriseOps/
├─ Program.cs composition root: SessionContext → Application.Session → CommandCenterDashboard
├─ UI/ CommandCenterDashboard.cs (+.Designer.cs) · CapstoneReviewPage.cs (+.Designer.cs)
├─ Controls/ KpiTile.cs the reusable KPI tile
├─ Domain/ WorkOrder · Capstone (deliverables, checks) · Review (findings, verdicts)
├─ Services/ DashboardService · WorkOrderService (approve = authorize → validate → write with version → audit)
│ WorkQueue · CapstonePackageService · PromptLibraryService
│ GeneratedCodeReviewService · GeneratedCodeSamples (PR #214 draft + rev 2) · DocumentedApiCatalog
│ DocumentationIndexService · SessionContext · CommandContext · CommandResult
├─ Security/ Permissions (Role → Permission) · AuditLog (append-only)
├─ Data/ InMemoryWorkOrderStore (120 rows / 3 tenants, optimistic Version) · DocsFolder (locates docs/)
├─ Diagnostics/ ActivityTrace (server log → System.Diagnostics.Trace) · DiagnosticsService (the six probes)
└─ docs/ the deliverables above + index.json