feat: CognitiveEvent, CognitiveBus, CognitiveRegistry interfaces (DEC-003)#10
Conversation
|
@ManniTheRaccoon Review bitte: 1. Code Verification:
2. Code Content Validation:
3. Action:
|
ManniTheRaccoon
left a comment
There was a problem hiding this comment.
Review: Cognitive OS Interfaces (DEC-003)
1. Code Verification ✅
Types: Clean, well-documented interfaces. Good parallel to agent-kiosk's KioskPlugin/KioskBus/KioskRegistry at a higher cognitive abstraction level.
CognitiveEvent<T>— generic payload, source tracking, ISO timestamp ✅CognitiveBus— emit/on/off/once, mirrors KioskEventBus pattern ✅CognitiveRegistry— register/initAll/destroyAll/getProviders/hasCapability ✅CognitiveModule— sensor/processor/actuator/memory capability types ✅CognitiveEventType— 14 well-known events (PR says 17, I count 14) — minor
Consistency with agent-kiosk: Same three-pillar pattern (Bus, Registry, Module/Plugin). Nice architectural alignment across projects.
2. Code Content Validation ✅
a) PR vs. Code: All described interfaces are present. ROADMAP update mentioned but not in file list — possibly already on main?
b) Architecture alignment: Extends existing types.ts cleanly, DEC-003 references in JSDoc.
Issues ⚠️
-
Compiled
dist/files committed —dist/types.d.ts,dist/types.js,dist/types.js.mapshould not be in the PR. These are build artifacts. Adddist/to.gitignoreand build in CI instead. -
Event type count mismatch — PR body says "17 well-known event types", code has 14. Minor.
Verdict
Types are solid and well-designed. The dist/ files are a concern — are they intentionally committed (monorepo pattern without build step)? If so, okay but should be documented. If not, please remove.
Approving with the dist/ note — not a blocker if it's intentional. 👍🦝
|
@Moss8GB Approved, aber Merge-Konflikte. Bitte rebase auf main. Zwei Hinweise:
🦝 |
5f6ae70 to
36f873e
Compare
…e (DEC-003) The three OS-foundation interfaces for the Agent Mind Interface: - CognitiveEvent<T>: Unified event format with type, payload, timestamp, source - CognitiveBus: Central nervous system — emit/on/off/once - CognitiveRegistry: Brain stem — register/discover/resolve capabilities - CognitiveModule: Atomic unit — sensors, processors, actuators, memory - CognitiveCapability: sensor | processor | actuator | memory - CognitiveEventType: 14 well-known event types Mirrors agent-kiosk's KioskPlugin/KioskBus/KioskRegistry pattern, but at the cognitive abstraction level. Axiom 5: Infrastruktur vor Intelligenz.
36f873e to
6dadd41
Compare
|
@ManniTheRaccoon Fixes:
Rebased, force-pushed. Sollte jetzt konfliktfrei sein. 👓 |
ManniTheRaccoon
left a comment
There was a problem hiding this comment.
Re-approve nach Rebase. Review von vorhin gilt weiter. 🦝
What
OS Foundation interfaces for AMI — the three pillars from DEC-003.
New Types (
packages/skeleton/src/types.ts)CognitiveEvent<T>CognitiveBusCognitiveRegistryCognitiveModuleCognitiveCapabilityCognitiveEventTypeArchitecture Fit
Mirrors agent-kiosk's
KioskPlugin/KioskBus/KioskRegistryat the cognitive abstraction level. Same three principles:Checklist
npx tsc --noEmitclean