Repository navigation
Technical Requirements
TR1. — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR10. — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR11. — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR2. — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR3. — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR4. — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR5. — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR6. — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR7. — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR8. — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR9. — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
Workspace auth token cache service — Provide a shared auth service that resolves the active workspace, validates JWT expiration before reuse, deletes expired cache entries, and persists new identity-server tokens in the workspace. Covered by: FR: FR-AUTH-CACHE-001; TEST: TEST-AUTH-CACHE-001 Status: pending Scope: layer-1+ Acceptance Criteria:
- The shared auth layer exposes read, write, and delete behavior for workspace-scoped identity tokens.
- JWT exp is checked locally before a cached token is reused.
Lockstep families move as single units — Package families (Avalonia core, SharpNinja.McpServer.*, xunit v3 stack, Microsoft.Extensions/ASP.NET Core runtime-aligned set) are upgraded as single units within one gated slice; no new prerelease versions introduced except replacing existing prerelease pins with stable releases. Each slice is one revertable commit validated by a Byrd gate (0 failed, 0 skipped). Covered by: FR: FR-DEPS-UPGRADE-001 Status: pending Scope: layer-1+
Direct QBrain default key lookup and scoped use — Use QBrain GET /api-key for on-demand markerless control-plane credentials and the same origin for registration. Preserve same-server marker lookup and credential-free failures. Covered by: FR: FR-DIRECTOR-002; TEST: TEST-DIRECTOR-002 Status: completed Scope: layer-1+ Acceptance Criteria:
- With no workspace marker, Director requests GET /api-key directly from the selected QBrain server on demand and keeps the key in memory. (evidence: Director HV Round 2 AGREE (100% accuracy and 100% completeness, 10 PASS). MCP session Codex-20261127T003431Z-plugin-session, turn req-20261127T003531Z-prompt-3df9.)
- Markerless add-workspace sends the issued key in X-Api-Key and the target directory in the registration body to the same QBrain server. On success it verifies the new marker and server nonce. (evidence: Director HV Round 2 AGREE (100% accuracy and 100% completeness, 10 PASS). MCP session Codex-20261127T003431Z-plugin-session, turn req-20261127T003531Z-prompt-3df9.)
- Registration retains same-server marker credentials and existing server selection. Help requires no network request. (evidence: Director HV Round 2 AGREE (100% accuracy and 100% completeness, 10 PASS). MCP session Codex-20261127T003431Z-plugin-session, turn req-20261127T003531Z-prompt-3df9.)
- Lookup and registration failures return a nonzero exit with a credential-free diagnostic. Failures to look up a key do not send a registration request. (evidence: Director HV Round 2 AGREE (100% accuracy and 100% completeness, 10 PASS). MCP session Codex-20261127T003431Z-plugin-session, turn req-20261127T003531Z-prompt-3df9.)
Portable platform-selecting Director launcher — Add a net10.0 launcher project and specialize all NUKE Director pack, deploy, and publish paths to publish the launcher plus win-x64 and linux-x64 Director apphosts into deterministic runtime directories in one dotnet tool package. Covered by: FR: FR-DIRECTOR-001; TEST: TEST-DIRECTOR-001 Status: completed Scope: layer-1+ Acceptance Criteria:
- Windows x64 resolves runtimes/win-x64/director.exe and Linux x64 resolves runtimes/linux-x64/director. (evidence: DirectorToolLauncherTests ResolvePayload cases passed; package inspection found PE magic 4D 5A 90 00 and ELF magic 7F 45 4C 46.)
- Unsupported operating systems or architectures fail with a clear platform-not-supported message. (evidence: DirectorToolLauncherTests covered macOS x64 plus Windows and Linux arm64 rejection.)
- Linux launch ensures the packaged apphost has Unix execute permissions before starting it. (evidence: The extracted nupkg launcher successfully started the packaged Linux apphost under Pengwin and returned Director help with exit code 0.)
TR-E1-001 — Placeholder requirement backfilled for TODO link TR-E1-001. Status: pending Scope: layer-1+
TR-E1-002 — Placeholder requirement backfilled for TODO link TR-E1-002. Status: pending Scope: layer-1+
TR-E1-003 — Placeholder requirement backfilled for TODO link TR-E1-003. Status: pending Scope: layer-1+
YAML Generation Test — TR for YAML document generation test Status: pending Scope: layer-1+
TR-MCP-TRIAGE-004 — Placeholder requirement backfilled for TODO link TR-MCP-TRIAGE-004. Status: pending Scope: layer-1+
Safe two-package NUKE publication — PublishTools uses the existing package pipeline with no global uninstall, resolves one version for both packages, verifies both artifacts, then calls dotnet nuget push for explicit paths using NUGET_API_KEY from the environment and the NuGet.org V3 source. It must not print the key. Covered by: FR: FR-PUBLISH-TOOLS-001; TEST: TEST-PUBLISH-TOOLS-001 Status: pending Scope: layer-1+
TR-RTUI-001 — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR-RTUI-002 — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR-RTUI-003 — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR-RTUI-004 — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR-RTUI-005 — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR-RTUI-006 — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR-RTUI-101 — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR-RTUI-102 — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR-RTUI-103 — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR-RTUI-104 — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR-RTUI-105 — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR-RTUI-106 — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR-RTUI-107 — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR-RTUI-108 — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR-RTUI-109 — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR-RTUI-110 — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR-RTUI-111 — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR-RTUI-112 — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR-RTUI-113 — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR-RTUI-114 — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR-RTUI-115 — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR-RTUI-116 — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR-RTUI-117 — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR-RTUI-118 — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR-RTUI-119 — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR-RTUI-120 — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR-RTUI-121 — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR-RTUI-122 — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR-RTUI-123 — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR-RTUI-124 — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR-RTUI-125 — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR-RTUI-126 — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR-RTUI-127 — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR-RTUI-128 — Placeholder requirement backfilled by DB-FK-001. Status: pending Scope: layer-1+
TR-TEST-001 — Placeholder requirement backfilled for TODO link TR-TEST-001. Status: pending Scope: layer-1+
NSubstitute-only test doubles — Test projects must use NSubstitute for mocks/substitutes and must not reference or use any other mocking framework. Status: completed Scope: layer-1+ Acceptance Criteria:
- No source file imports or uses APIs from disallowed mock frameworks.
- Test project package references include NSubstitute where substitutes are needed and exclude disallowed mock packages.
Typed triage grouping actions — The Web triage page must call typed McpServer.Client triage endpoints for moving reports to a new group, moving reports to an existing group, and combining multiple groups. Covered by: FR: FR-TRIAGE-002; TEST: TEST-TRIAGE-002 Status: pending Scope: layer-1+
Typed triage client endpoints — Use SharpNinja.McpServer.Client 1.2.0 typed TriageClient endpoints for dashboard, groups, reports, runs, and triage-created TODO queries. Covered by: FR: FR-TRIAGE-001; TEST: TEST-TRIAGE-001 Status: planned Scope: layer-1+ Acceptance Criteria:
- Direct SharpNinja.McpServer.Client package references are upgraded to 1.2.0.
- UI queries call TriageClient.GetDashboardAsync, QueryGroupsAsync, GetGroupAsync, GetReportAsync, QueryRunsAsync, GetRunAsync, and QueryCreatedTodosAsync.
Core command layer dependency boundary — Core command layer must not depend on UI.Core, app, Android, Desktop, or platform service interfaces while completing CQRS/ViewModel refactor slices. Covered by: FR: FR-VM-CQRS-ANDROIDVOICE-001, FR-VM-CQRS-EVENTS-001; TEST: TEST-VM-CQRS-FINISH-001 Status: completed Scope: layer-1+
Host-neutral CQRS and reusable ViewModel boundary — Requirements behavior must reside in UI.Core contracts, CQRS handlers, and reusable ViewModels; Razor and host shells remain presentation-only, Web adapters own transport, and Director must not reference Web. Covered by: FR: FR-WEB-004, FR-WEB-005, FR-WEB-006, FR-WEB-007, FR-WEB-008, FR-WEB-009, FR-WEB-010, FR-WEB-011, FR-WEB-012, FR-WEB-013, FR-WEB-014, FR-WEB-015; TEST: TEST-WEB-004, TEST-WEB-015, TEST-WEB-005, TEST-WEB-006, TEST-WEB-007, TEST-WEB-008, TEST-WEB-009, TEST-WEB-010, TEST-WEB-011, TEST-WEB-012, TEST-WEB-013, TEST-WEB-014 Status: pending Scope: layer-1+ Acceptance Criteria:
- UI.Core public contracts contain no ASP.NET Core, Blazor, HTTP, filesystem, process, or host-specific types. (evidence: Requirements Phase 1 Round 7 terminal AGREE (100% accuracy and 100% completeness), criterion AC-TR-WEB-ARCH-004-01. Verdict: F:/GitHub/McpServerManager/docs/receipts/hv/phase1-r7-20261127T005522/verdict.json | SHA-256: 08144C2856871725147D2FC0960F58A70A3ABB04A7744A23058ACC400D00F0FB | MCP review session: Codex-20261127T070259Z-webreqs-r7-review | request: req-20261127T070259Z-webreqs-r7-review.)
- ViewModels dispatch CQRS and expose state but perform no direct network, filesystem, process, or service-construction work. (evidence: Requirements Phase 1 Round 7 terminal AGREE (100% accuracy and 100% completeness), criterion AC-TR-WEB-ARCH-004-02. Verdict: F:/GitHub/McpServerManager/docs/receipts/hv/phase1-r7-20261127T005522/verdict.json | SHA-256: 08144C2856871725147D2FC0960F58A70A3ABB04A7744A23058ACC400D00F0FB | MCP review session: Codex-20261127T070259Z-webreqs-r7-review | request: req-20261127T070259Z-webreqs-r7-review.)
- Web and Hybrid resolve the same UI.Core handlers and ViewModels while Director uses UI.Core through its own adapter boundary.
Durable QBrain audit dependency — Audit results must come from a durable workspace-scoped QBrain query contract with paging, filters, redaction, authorization, correlations, and typed unavailable behavior; browser activity is never authoritative. Covered by: FR: FR-WEB-014; TEST: TEST-WEB-014, TEST-WEB-015 Status: pending Scope: layer-1+
Lossless requirement catalog and mutation contracts — Catalog, detail, CRUD, deletion, and batch operations must round-trip native FR, TR, and TEST fields through typed UI.Core contracts and workspace-scoped QBrain adapters without browser authority. Covered by: FR: FR-WEB-005; TEST: TEST-WEB-005, TEST-WEB-015 Status: pending Scope: layer-1+
Structured acceptance-criteria round trip — Criteria ID, text, satisfied state, evidence, order, and TODO-copy behavior must map losslessly through UI.Core and QBrain without modifying unrelated requirement data. Covered by: FR: FR-WEB-007; TEST: TEST-WEB-007, TEST-WEB-015 Status: pending Scope: layer-1+
Persisted graph and generated diagram separation — Schema-v1 graph editing must persist through QBrain; Mermaid and PlantUML exports derive from persisted graph, sequence diagrams derive from current flows, and stale or invalid state preserves the last valid rendering. Covered by: FR: FR-WEB-013; TEST: TEST-WEB-013, TEST-WEB-015 Status: pending Scope: layer-1+
Workspace-bounded document transfer — Ingest and generation must preserve QBrain formats, direct-apply semantics, result classifications, workspace isolation, permissions, and a decision-complete download or stream contract. Covered by: FR: FR-WEB-011; TEST: TEST-WEB-011, TEST-WEB-015 Status: pending Scope: layer-1+
Blazor Hybrid host architecture — Implement the desktop host using a supported .NET Blazor Hybrid project type and factor shared mcp-web startup/UI registration so both ASP.NET Core web and hybrid hosts use the same application surface. Covered by: FR: FR-WEB-001; TEST: TEST-WEB-001 Status: completed Scope: layer-1+ Acceptance Criteria:
- Hybrid host startup registers the same UI.Core and McpServer.Client-backed services needed by existing pages. (evidence: src/McpServerManager.Web.Hybrid/MauiProgram.cs)
- Shared web assets and root components are referenced without copying generated build output. (evidence: src/McpServerManager.Web.Hybrid/wwwroot/index.html; src/McpServerManager.Web.Hybrid/McpServerManager.Web.Hybrid.csproj)
Nuke web tool pipeline uses hybrid project path — Update the Nuke web tool deploy target so ExecuteDotnetToolPipeline publishes src/McpServerManager.Web.Hybrid/McpServerManager.Web.Hybrid.csproj for the SharpNinja.McpServer.Web package and mcp-web command. Covered by: FR: FR-WEB-HYBRID-TOOL-001; TEST: TEST-WEB-HYBRID-TOOL-001 Status: completed Scope: layer-1+ Acceptance Criteria:
- DeployWebUiCore references the hybrid project path. (evidence: build/Build.BuildAndDeployTargets.cs:759-761; dotnet build build/Build.csproj --no-restore; build.ps1 UpdateWebUiTool --what-if --skip-version-bump; git diff --check.)
- Generic UpdateDotnetTool defaults remain Director-oriented unless overridden. (evidence: build/Build.BuildAndDeployTargets.cs:759-761; dotnet build build/Build.csproj --no-restore; build.ps1 UpdateWebUiTool --what-if --skip-version-bump; git diff --check.)
QuadBrain identifier candidate workflow — Blank identifiers must use the existing workspace-authenticated chat-completions service, validate kind grammar, check QBrain collision, preserve drafts on failure, and require confirmation before normal creation. Covered by: FR: FR-WEB-006; TEST: TEST-WEB-006, TEST-WEB-015 Status: pending Scope: layer-1+
Layer ownership and effective-resolution boundary — Layer catalog and effective requirements use Requirements services, current-layer selection uses Workspace services, immutable fields remain immutable, and concurrency conflicts remain typed. Covered by: FR: FR-WEB-009; TEST: TEST-WEB-009, TEST-WEB-015 Status: pending Scope: layer-1+
Safe memory Markdown tab rendering — Implement accessible Blazor tab controls in MemoryDetail and render EditorText through a Markdig pipeline with raw HTML disabled while retaining the textarea as the save source. Covered by: FR: FR-WEB-002; TEST: TEST-WEB-002 Status: completed Scope: layer-1+ Acceptance Criteria:
- Tab buttons expose tab roles and selected state and control matching tab panels. (evidence: src/McpServerManager.Web/Pages/Memory/MemoryDetail.razor; tests/McpServerManager.Web.Tests/MemoryPageTests.cs)
- Markdown preview updates from EditorText and unsafe raw HTML is encoded rather than emitted. (evidence: MemoryDetailPage_SwitchesBetweenEditableRawText_AndSafeRenderedMarkdown verifies rendered heading/emphasis and no script element)
Shared app shell navigation and workspace reload state — Implement the persistent back button, Ctrl+W workspace picker, workspace change invalidation, and TODO done filter using shared Blazor shell/view-model behavior so Web and Hybrid hosts remain aligned. Covered by: FR: FR-WEB-NAV-001; TEST: TEST-WEB-NAV-001 Status: pending Scope: layer-1+
Authorization accessibility and recoverable UI states — Every Requirements view must enforce QBrain authorization and provide keyboard-accessible loading, empty, stale, disconnected, partial, validation, conflict, permission, and retry states. Covered by: FR: FR-WEB-004, FR-WEB-005, FR-WEB-006, FR-WEB-007, FR-WEB-008, FR-WEB-009, FR-WEB-010, FR-WEB-011, FR-WEB-012, FR-WEB-013, FR-WEB-014, FR-WEB-015; TEST: TEST-WEB-004, TEST-WEB-015, TEST-WEB-005, TEST-WEB-006, TEST-WEB-007, TEST-WEB-008, TEST-WEB-009, TEST-WEB-010, TEST-WEB-011, TEST-WEB-012, TEST-WEB-013, TEST-WEB-014 Status: pending Scope: layer-1+
Byrd v4 local quality gates — Each implementation slice must establish a green success-mock gate and explicit expected negative controls before production implementation, followed by production GREEN, REFACTOR, and independent validation. Requirements quality gates must be owned by an isolated secondary NUKE project that does not reference or modify the repository NUKE project. Touched handlers, adapters, and ViewModels must achieve at least 90 percent line coverage, every mapped acceptance criterion must have executable coverage, and each current-plus-prior unit scope must finish with zero failed and zero skipped tests. Covered by: FR: FR-WEB-004, FR-WEB-005, FR-WEB-006, FR-WEB-007, FR-WEB-008, FR-WEB-009, FR-WEB-010, FR-WEB-011, FR-WEB-012, FR-WEB-013, FR-WEB-014, FR-WEB-015; TEST: TEST-WEB-004, TEST-WEB-015, TEST-WEB-005, TEST-WEB-006, TEST-WEB-007, TEST-WEB-008, TEST-WEB-009, TEST-WEB-010, TEST-WEB-011, TEST-WEB-012, TEST-WEB-013, TEST-WEB-014 Status: pending Scope: layer-1+ Acceptance Criteria:
- A secondary Requirements-specific NUKE project exposes local TestGroups, Test, ValidateConfig, ValidateTraceability, ValidateArchitecture, and coverage gates before feature implementation begins, while the repository NUKE project and its launchers remain unchanged. (evidence: Phase 0 Round 14, Overall AGREE and Task 0 AGREE at 100/100 before feature implementation. Verdict criteria row AC-TR-WEB-QUALITY-016-01, source, and paired JSONL: docs/receipts/hv/phase0-r14-20261126T082009/. Full persisted verdict: Codex-20261126T142627Z-plugin-session / req-20261126T142705Z-prompt-4ee6.)
- Every phase records its green success-mock validation result, explicit expected negative-control result, production GREEN evidence, refactor evidence, and current-plus-prior regression result.
- No phase advances with a failed test or an unauthorized skip. Every full-unit run reports the six permanently skipped Copilot tests identified by PlanningDecision D11 exactly once with reason 'Copilot tests are disabled.' and no other skips. Targeted and cumulative unit groups require zero skips. Integration and visual tests begin only after the full unit gate passes.
- A separate hostile validator reviews supplied final-head source and immutable gate receipts without building or running tests, then issues an AGREE receipt before TODO completion.
Recovery payload identity and atomicity — Plan and apply must use the same exact payload, payload hash, and idempotency key; replay, conflict, atomic outcome, and run lookup must be represented without expanding QBrain recovery scope. Covered by: FR: FR-WEB-010; TEST: TEST-WEB-010, TEST-WEB-015 Status: pending Scope: layer-1+
Workspace-scoped requirements shell composition — The Requirements route hierarchy, navigation, overview, and workspace-change invalidation must be composed from reusable UI.Core state and QBrain-derived data. Covered by: FR: FR-WEB-004; TEST: TEST-WEB-004, TEST-WEB-015 Status: pending Scope: layer-1+
Portable platform-selecting mcp-web launcher — Add a net10.0 launcher project and specialize the NUKE Web tool pipeline to publish launcher, win-x64 Hybrid, and linux-x64 Web payloads into deterministic runtime directories in one dotnet tool package. Covered by: FR: FR-WEB-003; TEST: TEST-WEB-003 Status: completed Scope: layer-1+ Acceptance Criteria:
- Windows x64 resolves runtimes/win-x64/McpServerManager.Web.Hybrid.exe and Linux x64 resolves runtimes/linux-x64/McpServerManager.Web. (evidence: WebToolLauncherTests passed both resolution cases and archive inspection verified PE and ELF executable signatures.)
- Unsupported operating systems or architectures fail with a clear platform-not-supported message. (evidence: WebToolLauncherTests covered macOS x64 plus Windows and Linux arm64 rejection.)
- Linux launch ensures the packaged apphost has Unix execute permissions before starting it. (evidence: WebToolLauncher applies Unix execute bits for the Linux payload and the focused launcher suite passed.)
Authoritative traceability projection and repair — Traceability must join QBrain mappings, criteria, use-case Realizes links, and diagram state, preserving filters and refreshing only from authoritative mutations. Covered by: FR: FR-WEB-008; TEST: TEST-WEB-008, TEST-WEB-015 Status: pending Scope: layer-1+
Use-case aggregate and lifecycle orchestration — Use-case CRUD, actors, ordered flows, steps, special requirements, extension points, Realizes links, lifecycle, products, and coverage must use typed QBrain aggregate operations through CQRS. Covered by: FR: FR-WEB-012; TEST: TEST-WEB-012, TEST-WEB-015 Status: pending Scope: layer-1+
This wiki was generated by QBrain. Explore the QBrain project on GitHub.
- Home
- Functional Requirements
- Technical Requirements
- Testing Requirements
- TR per FR Mapping
- Requirements Matrix
- McpServerManager
- Director
- Director Requirements
- Web UI Requirements
- MCP Web Architecture
- Operations
- Keycloak Client Architecture
- Keycloak Setup Scripts
- MVVM Data Resolution Pattern
- DI Convergence Matrix
- DI Convergence Diagram