AIKernel.Contracts
0.0.4
See the version list below for details.
dotnet add package AIKernel.Contracts --version 0.0.4
NuGet\Install-Package AIKernel.Contracts -Version 0.0.4
<PackageReference Include="AIKernel.Contracts" Version="0.0.4" />
<PackageVersion Include="AIKernel.Contracts" Version="0.0.4" />
<PackageReference Include="AIKernel.Contracts" />
paket add AIKernel.Contracts --version 0.0.4
#r "nuget: AIKernel.Contracts, 0.0.4"
#:package AIKernel.Contracts@0.0.4
#addin nuget:?package=AIKernel.Contracts&version=0.0.4
#tool nuget:?package=AIKernel.Contracts&version=0.0.4
AIKernel.NET
AIKernel.NET is a specification-first repository for Semantic Context OS contracts.
The src tree contains the canonical specification projects that define interfaces, DTOs, enums, and external boundary contracts.
Projects
AIKernel.Abstractions
- Purpose: Interface layer (no concrete business logic).
- Main namespaces:
AIKernel.Abstractions.ContextAIKernel.Abstractions.ConversationAIKernel.Abstractions.DslAIKernel.Abstractions.EventsAIKernel.Abstractions.ExecutionAIKernel.Abstractions.GovernanceAIKernel.Abstractions.HistoryAIKernel.Abstractions.HostingAIKernel.Abstractions.KernelAIKernel.Abstractions.MaterialAIKernel.Abstractions.ModelsAIKernel.Abstractions.PromptAIKernel.Abstractions.ProvidersAIKernel.Abstractions.RomAIKernel.Abstractions.RoutingAIKernel.Abstractions.SchedulingAIKernel.Abstractions.SecurityAIKernel.Abstractions.TasksAIKernel.Abstractions.TimeAIKernel.Abstractions.ToolingAIKernel.Vfs(Vfs contracts, owned by the Abstractions assembly)
- Project references:
AIKernel.Dtos,AIKernel.Enums
AIKernel.Contracts
- Purpose: Cross-boundary contract interfaces for orchestration/context projections.
- Main namespace:
AIKernel.Contracts - Project references:
AIKernel.Dtos,AIKernel.Enums
AIKernel.Dtos
- Purpose: POCO/record data carriers and wire metadata key constants only (no business logic).
- Main namespaces:
AIKernel.Dtos.ContextAIKernel.Dtos.CoreAIKernel.Dtos.DslAIKernel.Dtos.EventsAIKernel.Dtos.ExecutionAIKernel.Dtos.GovernanceAIKernel.Dtos.KernelAIKernel.Dtos.KernelContextAIKernel.Dtos.HistoryAIKernel.Dtos.MaterialAIKernel.Dtos.PromptAIKernel.Dtos.RomAIKernel.Dtos.RoutingAIKernel.Dtos.RulesAIKernel.Dtos.SandboxAIKernel.Dtos.SecurityAIKernel.Dtos.TokenizationAIKernel.Dtos.TimeAIKernel.Dtos.Vfs
- Project references:
AIKernel.Enums
DTO packages may expose stable metadata key constants for wire formats such as DSL ROM and History ROM. Those constants are part of the serialized contract surface; parsing, validation, and runtime behavior still belong to Core/Common or host implementations.
AIKernel.Enums
- Purpose: Shared enum primitives used across the specification layer.
- Main namespace:
AIKernel.Enums - Project references: none
Dependency Rules (Normative)
AIKernel.Abstractions→AIKernel.Dtos,AIKernel.EnumsAIKernel.Contracts→AIKernel.Dtos,AIKernel.EnumsAIKernel.Dtos→AIKernel.EnumsAIKernel.Enums→ (none)
Prohibited examples:
Abstractions→ContractsContracts→AbstractionsAbstractions→ separate Vfs package/project
AIKernel.Vfs is a public namespace inside AIKernel.Abstractions; the separate AIKernel.Vfs compatibility project was removed in v0.0.4.
Notes on Decomposition
AIKernel.KernelContextproject has been decomposed and moved intoAIKernel.Dtos.KernelContext(models) andAIKernel.Abstractions(contracts).AIKernel.Eventsproject has been decomposed and moved intoAIKernel.Dtos.Events(models) andAIKernel.Abstractions.Events(contracts).- Concrete runtime implementations are out of this repository scope and belong to
AIKernel.Core.
Testing
src/tests/AIKernel.Abstractions.Tests: spec-alignment and interface-composition tests.
License
MIT License
Copyright © 2026 Takuya Sogawa
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- AIKernel.Dtos (>= 0.0.4)
- AIKernel.Enums (>= 0.0.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
AIKernel.NET v0.0.4 — DSL / History ROM Contract Extraction
• Promoted deterministic DSL pipeline contracts into AIKernel.Abstractions.
• Added DTOs for DSL IR, DSL pipeline execution, DSL ROM metadata, and DSL ROM snapshots.
• Added History ROM DTOs and registry/exporter contracts for reusable chat-history ROMs.
• Added DSL ROM and History ROM store contracts for VFS-backed ROM publication.
• Removed the separate AIKernel.Vfs compatibility package/project; Vfs contracts remain in AIKernel.Abstractions with the AIKernel.Vfs public namespace.
• Made AIKernel.Abstractions and AIKernel.Contracts interface-only packages.
• Moved Context Assembly, prompt generation, KernelRequest, and VfsCredentials DTOs into AIKernel.Dtos.
• Moved execution status and prompt option enums into AIKernel.Enums.
• Removed contract-package exception implementations; runtime/Core adapters should own failure mapping.
• Removed ambiguous ChatChain interface names by replacing IResult and ISemanticHasher with chat-turn-specific names.
• Added Kernel timestamp and clock contracts without binding Abstractions to Core/Common.
• Preserved the package DAG: Abstractions depends only on DTOs/Enums.
• Breaking change for Core adapters: Core Result-based DSL/ROM interfaces should adapt to the v0.0.4 DTO contract surface and remove any dependency on the old AIKernel.Vfs compatibility package.
AIKernel.NET v0.0.4 — DSL / History ROM 契約抽出
• 決定論的 DSL pipeline 契約を AIKernel.Abstractions に昇格。
• DSL IR、DSL pipeline execution、DSL ROM metadata/snapshot DTO を追加。
• 再利用可能な chat-history ROM のための History ROM DTO と registry/exporter contract を追加。
• VFS-backed ROM 公開のため、DSL ROM / History ROM store contract を追加。
• 個別の AIKernel.Vfs 互換 package/project を削除。Vfs contract は AIKernel.Vfs 公開 namespace を維持したまま AIKernel.Abstractions に残存。
• AIKernel.Abstractions / AIKernel.Contracts を interface-only package 化。
• Context Assembly、prompt generation、KernelRequest、VfsCredentials DTO を AIKernel.Dtos へ移動。
• execution status / prompt option enum を AIKernel.Enums へ移動。
• contract package 内の例外実装を削除。failure mapping は runtime/Core adapter 側の責務。
• ChatChain の曖昧な IResult / ISemanticHasher を chat-turn 専用名へ置換。
• Abstractions を Core/Common に結合せず Kernel timestamp / clock contract を追加。
• package DAG は Abstractions -> DTOs/Enums のまま維持。
• Core adapter 向け破壊的変更: Core の Result ベース DSL/ROM interface は v0.0.4 DTO contract surface へ適応し、旧 AIKernel.Vfs 互換 package への依存を削除してください。