Skip to content

AI-First Context Infrastructure

This proposal establishes a unified AI-accessible layer ensuring all product development information (code, specs, designs, project management) is within AI's reach. This is the infrastructure layer that enables truly AI-assisted development.

Core Insight: AI effectiveness depends on the quality and completeness of accessible context. When AI can only see code but cannot access requirements, designs, and decision records, its output is necessarily limited. Building unified context infrastructure transforms AI into a true development partner.

Problem Statement

Current State: Context Silos

Evidence from Team Feedback

Pain PointImpact on AI Workflow
Scattered RequirementsAI cannot understand full feature context, can only guess from code
Isolated Design AssetsAI-generated UI inconsistent with design specs, requires extensive manual correction
Lost Decision RecordsAI doesn't know why certain design choices were made, may repeat mistakes
Unclear Project StatusAI cannot determine which features are in development vs completed
Cross-Team Information GapsAI cannot discover that other teams have already solved similar problems

Fundamental Challenge: Accessible ≠ Usable

Even after solving access issues, there's a deeper challenge:

Key Insight: Various platforms (Confluence, Figma, Jira, etc.) were not designed to serve as a Single Source of Truth, and humans currently lack the awareness to maintain such information properly. Therefore, even if we can access information through agents, we face three problems:

  1. The information may be outdated
  2. The information may be incomplete
  3. High probability of not knowing where to look—unclear where in the platform to find the needed information

This means this proposal has two levels of objectives:

LevelObjectiveChallenge
Level 1: AccessibilityEnable AI to access product development informationTechnical integration and data governance
Level 2: EffectivenessEnsure AI accesses truly meaningful informationCulture and process change (building maintenance awareness)

Level 1 Solution Paths:

Level 1 is not limited to "connecting AI directly to existing platforms." There are two complementary paths:

PathApproachBest For
Path A: Real-time ConnectionConnect to existing platforms (Figma, Jira, etc.) via MCP ServersInformation that changes frequently, requires real-time queries
Path B: Centralized MigrationCreate a new Git-based platform, migrate data from various platformsCore knowledge, information requiring long-term maintenance

For Path B implementation details, refer to the Agent-Friendly Knowledge Base proposal, which details how to migrate from human-oriented wikis like Confluence to Git-based Markdown knowledge systems.

Level 2 Solution Strategies:

  1. Centralize Core Knowledge: Migrate critical information from various platforms to Git-based systems, establishing clear maintenance responsibilities
  2. Standardize Frontmatter: Use structured metadata (e.g., lastUpdated, status) to help AI assess information timeliness
  3. Continuous Context Cleanup: Establish regular review mechanisms to keep knowledge base content updated (see Continuous Context Cleanup)
  4. AI-Assisted Validation: Have AI proactively check document update status and consistency before using information

Proposed Solution: Hybrid AI Context Architecture

Target Architecture

Core Principles

  1. Context Completeness: All information affecting development decisions should be AI-accessible
  2. Hybrid Architecture: Core knowledge centralized (Git-based), external systems connected via MCP in real-time
  3. Single Entry Point: Unified access through MCP Gateway, reducing AI's cognitive burden
  4. Incremental Migration: Start from the most painful context silos, gradually expand coverage
  5. Permission Alignment: AI access permissions align with user permissions, no additional exposure

Architecture Layers

Layer 1: Core Knowledge Base (Centralized)

Information requiring long-term maintenance, suitable for centralized management:

SystemContentSource Proposal
Knowledge BaseDomain knowledge, guidelines, best practicesAgent-Friendly Knowledge Base
Requirement StoreProduct requirements, user stories, acceptance criteriaGlobal Requirement Store
Spec PlatformFeature specs, API contracts, UX specsInternal Spec Platform
Ubiquitous Language GlossaryTerm definitions, domain conceptsUbiquitous Language
Architecture Decision RecordsADRs, technology selection rationaleTo be established

Layer 2: Real-time Connections (MCP Servers)

Information that changes frequently, suitable for real-time queries:

MCP ServerContext ProvidedPriority
Git MCPCode, PRs, Issues, Commit historyP0 (Existing)
Figma MCPDesigns, Design Tokens, Component libraryP1
Jira MCPTask status, Sprint, Roadmap, EpicsP1
Confluence MCPExisting docs (transitional use)P2
Teams MCPDiscussion records (for search)P3

Layer 3: MCP Gateway

Unified access entry point providing:

typescript
// MCP Gateway Concept
const mcpGateway = {
  // Unified query interface
  query: async ({ intent, scope, filters }) => {
    // Determine which resources to query based on intent
    // e.g., "find all related information for this feature"
    const results = await Promise.all([
      knowledgeBase.search(intent),
      requirementStore.search(intent),
      specPlatform.search(intent),
      figmaMcp.search(intent),
      jiraMcp.search(intent)
    ]);
    return aggregateResults(results);
  },

  // Context loading
  loadContext: async ({ feature, product }) => {
    return {
      requirements: await requirementStore.get(product, feature),
      specs: await specPlatform.get(product, feature),
      designs: await figmaMcp.get(product, feature),
      tasks: await jiraMcp.get(product, feature),
      relatedCode: await git.search(feature)
    };
  }
};

Information Flow Integration

Complete Context for Feature Development

Cross-System Traceability

Requirements              Specs                    Designs                Implementation
────────────────────────────────────────────────────────────────────────────────────────
REQ-001            →     func/device-mgmt    →   Figma/DeviceList   →   DeviceList.tsx
(User Story)             (Feature Spec)           (UI Design)            (Code)

                   →     api/device-mgmt     →                      →   deviceApi.ts
                         (API Contract)                                  (API Client)

                   →     ux/device-mgmt      →   Figma/DeviceCard   →   DeviceCard.tsx
                         (UX Spec)               (Component Design)      (Component)

Implementation Roadmap

Phase 0: Requirements Discovery (Q2 2026/Apr-Jun)

Goal: Understand current state, determine priorities

  • [ ] Inventory all product development information sources
  • [ ] Assess AI accessibility status for each source
  • [ ] Identify most painful context gaps
  • [ ] Design hybrid architecture details
  • [ ] Determine MCP Server development priorities

Deliverables:

  • Information source inventory with AI accessibility assessment report
  • Hybrid architecture design document
  • Implementation priority ranking

Phase 1: Core Knowledge Base Establishment (Q3 2026/Jul-Sep)

Goal: Build centralized core knowledge layer

WeekWork Items
1-2Establish Git-based knowledge base repository
3-4Migrate critical domain knowledge and guidelines
5-6Build requirement store basic structure
7-8Pilot one product's requirement migration
9-10Spec platform MVP launch
11-12Integration testing and adjustments

Deliverables:

  • Working knowledge base repository
  • One product's requirement migration complete
  • Spec platform MVP

Phase 2: Expansion & Integration (Q3-Q4 2026/Jul-Dec)

Goal: Expand knowledge base coverage, evaluate if real-time connection layer is needed

Primary Path: Centralize to Git

Prioritize migrating information from various platforms to Git-based knowledge base, accessed via AI's native Git MCP support:

Information TypeSource PlatformMigrate To
Design SpecsFigmaknowledge-base/designs/ (Design Tokens, component specs)
Project StatusJiraknowledge-base/projects/ (Sprint summaries, Roadmap)
Technical DocsConfluenceknowledge-base/docs/ (migrate active content)

Backup Plan: MCP Server Development

If centralization cannot meet real-time requirements, then consider developing MCP Servers to directly connect to platforms:

MCP ServerScopeTrigger Condition
Figma MCPDesign Token reading, component spec queriesDesign changes too frequent to migrate in time
Jira MCPTask status, Sprint info, Epic linksNeed real-time Sprint status
MCP GatewayUnified queries, context loadingWhen multiple MCP Servers exist

Deliverables:

  • Expanded knowledge base coverage
  • Migration process and tooling documentation
  • (If needed) Working MCP Servers

Phase 3: Full Integration & Rollout (Q4 2026/Oct-Dec)

Goal: Fully enable AI-First context access

  • [ ] All products complete knowledge base/requirement migration
  • [ ] MCP Gateway running stably
  • [ ] Developer training and promotion
  • [ ] Establish maintenance mechanisms and governance processes
  • [ ] Performance optimization and caching strategies

Deliverables:

  • Fully operational AI-First context infrastructure
  • Developer usage guide
  • Maintenance and governance documentation

Relationship with Existing Proposals

This proposal serves as an orchestration layer, integrating the following existing proposals:

ProposalRole in This Architecture
Agent-Friendly Knowledge BaseCore Knowledge Layer - Domain knowledge and guidelines
Global Requirement StoreCore Knowledge Layer - Requirement management
Internal Spec PlatformCore Knowledge Layer - Spec hosting
Ubiquitous LanguageCross-Layer Shared - Terminology consistency

Success Metrics

MetricTargetHow to Measure
Context Completeness>80% features have complete contextAudit accessible information per feature
AI Context Load Time<5sMCP Gateway latency monitoring
Developer Satisfaction>4/5Quarterly survey
Context Usage Rate>70% of AI sessions use itSession analysis
Cross-System Traceability100% requirements traceable to codeLink verification

Risks and Mitigation

RiskMitigation
Migration Cost Too HighUse incremental migration, migrate active content first; leverage AI-assisted migration tools
Real-time Requirements UnmetEvaluate actual requirements first; consider MCP Server development as backup if Git sync is insufficient
Permission Management ComplexityLeverage Git's existing permission system; add access control at knowledge base level
Information FreshnessEstablish regular sync mechanisms; use frontmatter lastUpdated for AI to assess timeliness
Team Adoption ResistanceStart from pain points, demonstrate concrete value

Related: Agent-Friendly Knowledge Base | Global Requirement Store | Internal Spec Platform | Back to: Proposals Overview