Skip to content

Add CCIL core contracts and OIM intelligence module scaffold#13

Open
DigitalBlueprint239 wants to merge 1 commit into
masterfrom
codex/design-ccil-architecture-and-contracts
Open

Add CCIL core contracts and OIM intelligence module scaffold#13
DigitalBlueprint239 wants to merge 1 commit into
masterfrom
codex/design-ccil-architecture-and-contracts

Conversation

@DigitalBlueprint239

Copy link
Copy Markdown
Owner

Motivation

  • Establish a modular CCIL (Coach Core Intelligence Layer) that centralizes intelligence contracts and enforces phase-agnostic domain payloads.
  • Provide OIM (Offensive Intelligence Module) as the first domain plugin that must route through CCIL and be extension-ready for DIM/STIM.
  • Deliver a single Analysis object that drives both Assist and Coach UX modes with deterministic confidence gating and a minimal Assist surface.
  • Make the system testable, performance-safe, and adapter-friendly for Smart Playbook integration.

Description

  • Add universal intelligence contracts in src/modules/intelligence/contracts/intelligence.ts including IntelligenceIssue, IntelligenceRecommendation, IntelligenceScores, and generic IntelligenceAnalysis<TDomain>.
  • Add the phase-agnostic CanonicalPlay schema in src/modules/intelligence/domains/canonicalPlay.ts and an AnalysisContext shape for caller metadata.
  • Implement OIM scaffold at src/modules/intelligence/oim/ including analyzers (conceptDetection, spacingEngine, timingEngine, coverageStressEngine stub), recommendation builders (smartRouting, adjustmentSuggestions), coaching utilities (installCues, qbProgressionBuilder), adapter (smartPlaybookAdapter), and API wrapper (analyzePlay).
  • Implement CCIL dispatcher and rendering policy in src/modules/intelligence/core/ (analyze.ts, renderingPolicy.ts), public re-exports in src/modules/intelligence/index.ts, golden blueprint at docs/CCIL_OIM_BLUEPRINT.md, and update package-lock.json for test environment consistency.

Testing

  • Attempted CI=true npm test -- --runTestsByPath src/modules/intelligence/oim/tests/oim.intelligence.test.ts --watch=false which initially failed due to react-scripts not present in the environment.
  • Resolved local test environment by running npm install --legacy-peer-deps and re-ran the same test command.
  • Final result: test run passed (1 test suite, 5 tests passed) validating concept detection, spacing false-positive prevention, recommendation ranking, assist gating, and adapter mapping.

Codex Task

@netlify

netlify Bot commented Feb 17, 2026

Copy link
Copy Markdown

Deploy Preview for magical-starlight-0c1207 failed.

Name Link
🔨 Latest commit 0cc1b74
🔍 Latest deploy log https://app.netlify.com/projects/magical-starlight-0c1207/deploys/6994b70ac841c900084c85ff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant