Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

6 Commits

Repository files navigation

FMS — Foundation Model Service for CoreSense

A reference implementation of a CoreSense cognitive structure for deploying AI Foundation Models (FM)—both open-source models for local deployments and closed systems accessed through commercial APIs—as typed cognitive organs inside a CoreSense awareness pipeline.


Overview

Modern AI Foundation Models (LLMs, VLMs, and multimodal FMs) are powerful but structurally incomplete as autonomous reasoners: they lack grounded consistency guarantees, cannot self-verify commutativity against the world, and are prone to hallucination.
CoreSense treats an FM not as an "intelligent system" but as a typed cognitive organ—a specialised component placed at well-defined stages of the awareness pipeline, with its outputs entering the knowledge base only through consistency-maintaining integration.

This repository provides:

ArtefactPurpose
README.mdTop-level orientation and catalog index
docs/FMS_Architecture.mdFull architecture description, SysMLv2 models and diagrams
docs/catalog/One document per FM use pattern

The CoreSense Awareness Pipeline

 ┌─────────┐ ┌─────────┐ ┌───────────────┐ ┌───────────┐ ┌──────────┐
│ Sense │───▶│ Extract │───▶│ Model-Propose │───▶│ Integrate │───▶│ Evaluate │
└─────────┘ └────┬────┘ └──────┬────────┘ └─────┬─────┘ └────┬─────┘
│ │ │ │
◀─ FM eligible ─▶ ◀─ FM eligible ─▶ ◀── FM excluded ──▶

Foundation Models are admitted only at the Extract and Model-Propose stages.
They are deliberately excluded from Integrate and Evaluate, because a corpus-grounded model cannot check its own commutativity against the world.
Every FM exertion yields a provenance-tagged candidate assertion plus a process record, entering the knowledge base only through the consistency-maintaining integrator.


Catalog of FM Use Patterns

Eight canonical patterns are defined, spanning both deployment mode and epistemic role:

#PatternEpistemic RoleDeploymentDocument
1Abductive EngineHigh-recall candidate model fragment proposerAPI / LocalP1
2Feature ExtractorSignal → symbolic feature vectorLocal / EdgeP2
3Knowledge ElicitorUnstructured text → structured KB fragmentsAPIP3
4NL InterfaceNatural-language ↔ formal query bridgeAPI / LocalP4
5Code/Logic GeneratorProduce executable symbolic programsAPIP5
6Similarity OracleSemantic similarity and analogical retrievalLocalP6
7Hypothesis GeneratorScientific/causal hypothesis draftAPIP7
8Explanation NarratorTranslate formal derivations into NL explanationsAPI / LocalP8

Supported FM Deployment Modes

ModeExamplesKey Characteristic
Local OSSLlama 3, Mistral, Phi-3, Qwen 2, DeepSeekFull data residency, tunable latency
Commercial APIClaude (Anthropic), GPT-4o (OpenAI), Gemini (Google), Kimi K3 (Moonshot)State-of-the-art capability, usage-metered
Cloud ML PlatformAzure ML, AWS Bedrock, Google Vertex AIEnterprise governance, managed endpoints
Hybrid (draft+verify)Local draft → Cloud verifyCost-latency optimisation

Key Design Principles

  1. Type discipline — every FM is assigned a CognitiveOrganType with an explicit epistemic contract.
  2. Provenance — every FM output carries a ProvenanceRecord (model id, version, temperature, prompt hash, timestamp).
  3. Quarantine — FM outputs enter a CandidateBuffer; only after passing the ConsistencyIntegrator do they enter the KnowledgeBase.
  4. Pipeline placement — FM organs are wired via FMPort connectors only to Extract and ModelPropose pipeline blocks.
  5. Observability — each exertion emits a ProcessRecord for audit.

Repository Structure

fms/
├── README.md ← this file
├── docs/
│ ├── FMS_Architecture.md ← full architecture + SysMLv2 + diagrams
│ └── catalog/
│ ├── P1_AbductiveEngine.md
│ ├── P2_FeatureExtractor.md
│ ├── P3_KnowledgeElicitor.md
│ ├── P4_NLInterface.md
│ ├── P5_CodeLogicGenerator.md
│ ├── P6_SimilarityOracle.md
│ ├── P7_HypothesisGenerator.md
│ └── P8_ExplanationNarrator.md
└── LICENSE

References

About

A cognitive structure to deploy AI foundation models inside CoreSense systems

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors