Refactor Cortex namespace/event contracts for KempOS reliability#11
Refactor Cortex namespace/event contracts for KempOS reliability#11jessekemp1 wants to merge 15 commits into
Conversation
|
Validation update after PR head ebe3d53:
Note: local commit/push used |
|
Ready-for-review validation update after PR head
I marked the PR ready for review because the PR body's draft blocker was local/CI validation, and that blocker is now cleared. |
|
Phase 1 merge order: hold this PR until #9 lands, then rebase onto updated main and rerun the focused namespace/event/bridge contract tests plus the full Cortex suite. Particular validation target: |
Summary
Implements Pass 1 and the first cut of Pass 2 from the KempOS reliability contracts refactor in issue #10.
This PR adds a minimal reliability substrate that KempOS can depend on without optional Cortex subsystems, then exposes those contracts through
CortexBridge.Added
Pass 1: Filesystem substrate
namespaces.py— safe namespace validation and private namespace directory resolutionevents.py— append-only JSONL event store scoped by namespacecapabilities.py— explicit capability registry with available/degraded/missing statuseshealth.py— namespace doctor checks for write/read/private-path validationPass 2: Bridge integration
recommendations_store.py— namespaced recommendation storagebridge_kempos.py— bridge mixin for capability/event/doctor/recommendation contractsbridge.pynow composesKempOSContractsMixintests/test_bridge_kempos_contract.pyRoadmap
docs/kempos_contracts_roadmap.md— full future phases roadmap through private KempOS MVP, scheduler, pattern intelligence, and dashboard/reportingDesign constraints
Intended test command
Compatibility note
CortexBridgenow usesKempOSContractsMixinbeforeIntelligenceMixin, soinject_recommendationis overridden to support optionalnamespaceandvisibilityparams while preserving default legacy behavior. This needs local/CI validation before the PR is marked ready.Notes
I could not run the test suite from this GitHub connector environment. The PR remains draft until local/CI validation passes.
Closes part of #10.