ai-powered-conversational-intelligence

Implementation roadmap — enterprise source connectivity

Scope. The ordered batch plan derived from feature-inventory.md and data-source-matrix.md. This document owns sequencing, prerequisites, acceptance criteria and rollback for the source-connectivity work. It does not restate architecture or per-source configuration.

Date: 2026-10-14. Commit: b4d74d2.


1. What the audit changed about the plan

The prompt pack that triggered this audit (00_MASTER_INSTRUCTIONS.md and Prompts 1–5) was written for a less mature codebase. Three of its assumptions do not hold here, and the roadmap below reflects the corrections rather than the original sequence.

Pack assumption Reality Consequence
A platform foundation (config, flags, model gateway, typed contracts, routing, retrieval, citations, eval) needs building — Prompt 2 All of it exists: 232 settings fields, 54 feature flags, model_routing/, api/schemas.py, agent/orchestrator/, retrieval/, SourcesUsedPanel.tsx, eval_platform/ Prompt 2 is almost entirely a no-op. Its only real gap is streaming
A connector framework is greenfield — Prompt 3 §A onboarding/ is already a complete RBAC-gated, secret-by-reference connection lifecycle for databases (feature-inventory.md §4.1) Batch 1 becomes a generalisation of existing code, not new code
All nine source types are schedulable SharePoint/OneDrive/Dataverse/Outlook need a tenant; Teams additionally needs a Microsoft protected-API approval and has an unresolved licensing requirement (data-source-matrix.md §3.4) Teams leaves committed scope; the other three become credential-gated

Net effect: the useful work is smaller and differently ordered than the pack proposes, and roughly half of what the pack asks for is either already built or cannot be verified here.


2. Status

Batch State Commit
0 — doc accuracy done 550d5ba (stale CLAUDE.md §13 entry corrected)
1 — connector contract done cc332a8 — see source-connector-contract.md
2 — existing sources behind contract deferred (see §6) —
3 — per-conversation source selection done AskRequest.sources + picker; see source-connector-contract.md §8
4, 6, 7 — SharePoint/OneDrive, Dataverse, Outlook blocked (no tenant) —
5 — REST/OpenAPI done rest/ + security/outbound_url.py; see source-connector-contract.md §9
8 — MCP client done mcp_client/; see source-connector-contract.md §10
Teams not scheduled —

Batch 1 shipped the descriptor half live and the connector-lifecycle half as a contract with a conformance suite and no production implementer. It added no persistence — whether OnboardingJob generalizes is a Batch 4 decision, deferred until a real connector needs it.


3. Batch plan

Batches are ordered so that each is independently shippable, testable and revertible. Batches 0–3 need no external credentials. Batches 4+ are credential-gated.

Batch 0 — Documentation accuracy (P0, S)

Two items, both small. This batch exists because the audit found CLAUDE.md §13 is dated, and §13 is the first thing a future session reads about known gaps.

Item Why
Correct §13’s stale search/ entry It claims search/ has no mocked unit test file and calls it “a real, worthwhile follow-up”. tests/test_web_search.py (236 lines, 14 tests) already closed it. A future session will otherwise redo finished work — this audit nearly did. See feature-inventory.md §7 R3
Optionally fix the ruff I001 in agent/multiagent/agents.py Owner’s call, not a default. §13 records it as known and accepted. Fixing it clears the baseline so later batches’ lint output is unambiguous; leaving it is equally defensible. Re-weighted 2026-10-17: “equally defensible” no longer holds. .github/workflows/ci.yml runs ruff check . unscoped and blocking, so this one accepted finding makes a blocking CI gate fail — filed as F-011 in ../certification/2026-10-17_release_gate_v2.md §11.3. The decision is still yours, but it is now “accept a red blocking gate” versus “fix an import order”, not a cosmetic preference. A certification pass on 2026-10-17 deliberately left it alone for exactly that reason: this row assigns the call to you

An earlier draft of this batch also proposed mocked search/ tests and a .gitignore fix for env1/. Both were based on wrong findings and have been removed: the tests exist, and env1/ is ignored by its own nested env1/.gitignore.

Batch 1 — Connector lifecycle contract (P0, M)

Generalise onboarding/’s lifecycle into a source-type-parameterised contract. Do not build a parallel framework — that would create a second owner of connection lifecycle, violating CLAUDE.md §4.5 and §4.8.

Batch 2 — Existing sources behind the contract (P1, M)

Adapt the sources that already work — SQL, attachments, document RAG, policy RAG, web search — to the Batch 1 contract without changing their behaviour.

Batch 3 — Per-conversation source selection (P1, M)

The highest-value user-visible gap: AskRequest has no source-selection field, so a user cannot scope a question to chosen sources.

Batch 4 — SharePoint + OneDrive (P1, L) — CREDENTIAL-GATED

Batch 5 — REST / OpenAPI (P2, M)

No credentials needed, so it can run in parallel with Batch 4’s blocked wait.

Batch 6 — Dataverse (P2, L) — CREDENTIAL-GATED

Batch 7 — Outlook / email read (P2, L) — CREDENTIAL-GATED

Batch 8 — MCP client (P2, L)

Not scheduled — Microsoft Teams

Deliberately excluded from committed scope, not merely deprioritised:

  1. Org-wide message reads are application-permission only (delegated not supported), so the provider cannot enforce ACLs for us
  2. It is a protected API needing Microsoft validation/approval beyond admin consent — a request-and-wait process outside our control
  3. Licensing is unresolved — sources conflict (E5 / Microsoft Communications service plan may be required)

Revisit only if an owner accepts re-implementing membership checks and completes the approval process. See data-source-matrix.md §3.4.

Not scheduled — streaming

The one real gap in Prompt 2’s subject matter (feature-inventory.md §5). It is a disclosed gap in CLAUDE.md §13, independent of source connectivity, and should be prioritised on its own merits rather than smuggled into this programme.


4. Summary table

Batch Capability Pri Size Credentials? Blocking risk
0 Doc accuracy (stale CLAUDE.md §13 entry) P0 S no —
1 Connector lifecycle contract P0 M no R1 design
2 Existing sources behind contract P1 M no regression
3 Per-conversation source selection P1 M no R4 security — done, mutation-proven
4 SharePoint + OneDrive P1 L yes R2
5 REST / OpenAPI P2 M no SSRF — done, 3 mutations proven
6 Dataverse P2 L yes R2
7 Outlook read P2 L yes R2 + injection
8 MCP client P2 L no trust process — done, 5 mutations proven
— Teams — — yes + approval not scheduled
— Streaming — M no separate programme

Sizes are S/M/L complexity, not time estimates.


5. Cross-cutting requirements for every batch

Each batch must satisfy CLAUDE.md §11’s definition of done. These are the ones this programme touches most:


Every batch that does not need external credentials is now done (0, 1, 3, 5, 8). What is left falls into three groups.

Ready to do, no credentials needed:

Blocked on an Entra tenant and admin consent: Batches 4, 6 and 7 (SharePoint/OneDrive, Dataverse, Outlook). Configuration and adapter seams can be written; live verification cannot.

Not scheduled: Teams — see data-source-matrix.md §3.4 for the three reasons.

Batches 4, 6 and 7 remain blocked on an Entra tenant and admin consent; Teams is not scheduled (see data-source-matrix.md §3.4). Streaming is still the one unmet item from the pack’s platform-foundation prompt and should be prioritised on its own merits.

Batch 1 is the decision that constrains everything after it, and R1 (a second owner of connection lifecycle) is the programme’s largest design risk. The contract should be reviewed against onboarding/ before any connector is written on top of it.