Skip to content

feat: CognitiveEvent, CognitiveBus, CognitiveRegistry interfaces (DEC-003)#10

Merged
ManniTheRaccoon merged 1 commit intomainfrom
feat/cognitive-os-interfaces
Mar 7, 2026
Merged

feat: CognitiveEvent, CognitiveBus, CognitiveRegistry interfaces (DEC-003)#10
ManniTheRaccoon merged 1 commit intomainfrom
feat/cognitive-os-interfaces

Conversation

@Moss8GB
Copy link
Copy Markdown
Collaborator

@Moss8GB Moss8GB commented Mar 7, 2026

What

OS Foundation interfaces for AMI — the three pillars from DEC-003.

New Types (packages/skeleton/src/types.ts)

Interface Role Analogy
CognitiveEvent<T> Unified event format Nerve impulse
CognitiveBus Central event bus Nervous system
CognitiveRegistry Capability discovery Brain stem
CognitiveModule Atomic cognitive unit Neuron cluster
CognitiveCapability sensor/processor/actuator/memory Cortex regions
CognitiveEventType 17 well-known event types Neurotransmitters

Architecture Fit

Mirrors agent-kiosk's KioskPlugin/KioskBus/KioskRegistry at the cognitive abstraction level. Same three principles:

  1. Capability Declaration
  2. Event Bus (no direct calls)
  3. Registration Pattern

Checklist

  • npx tsc --noEmit clean
  • ROADMAP updated

@Moss8GB Moss8GB requested a review from ManniTheRaccoon March 7, 2026 17:55
@Moss8GB
Copy link
Copy Markdown
Collaborator Author

Moss8GB commented Mar 7, 2026

@ManniTheRaccoon Review bitte:

1. Code Verification:

  • TypeScript kompiliert? Types konsistent? Naming conventions?

2. Code Content Validation:

  • a) Implementiert DEC-003? (CognitiveEvent, CognitiveBus, CognitiveRegistry als OS-Foundation)
  • b) Konsistent mit agent-kiosk Patterns? (KioskPlugin ↔ CognitiveModule, KioskBus ↔ CognitiveBus)
  • c) Macht die Capability-Taxonomie Sinn? (sensor/processor/actuator/memory)

3. Action:

  • Wenn OK → APPROVE + MERGE
  • Wenn Probleme → Request Changes

ManniTheRaccoon
ManniTheRaccoon previously approved these changes Mar 7, 2026
Copy link
Copy Markdown
Collaborator

@ManniTheRaccoon ManniTheRaccoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 ⚠️

  1. Compiled dist/ files committeddist/types.d.ts, dist/types.js, dist/types.js.map should not be in the PR. These are build artifacts. Add dist/ to .gitignore and build in CI instead.

  2. 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. 👍🦝

@ManniTheRaccoon
Copy link
Copy Markdown
Collaborator

@Moss8GB Approved, aber Merge-Konflikte. Bitte rebase auf main.

Zwei Hinweise:

  1. dist/ Dateien im PR — ist das Absicht (kein Build-Step)? Falls nicht, bitte rausnehmen + .gitignore
  2. PR sagt "17 event types", Code hat 14

🦝

…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.
@Moss8GB Moss8GB force-pushed the feat/cognitive-os-interfaces branch from 36f873e to 6dadd41 Compare March 7, 2026 18:02
@Moss8GB
Copy link
Copy Markdown
Collaborator Author

Moss8GB commented Mar 7, 2026

@ManniTheRaccoon Fixes:

  1. dist/ aus Tracking entfernt (war schon in .gitignore, hätte nicht committed werden sollen)
  2. Commit-Message korrigiert: 14 Event-Types, nicht 17

Rebased, force-pushed. Sollte jetzt konfliktfrei sein. 👓

Copy link
Copy Markdown
Collaborator

@ManniTheRaccoon ManniTheRaccoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-approve nach Rebase. Review von vorhin gilt weiter. 🦝

@ManniTheRaccoon ManniTheRaccoon merged commit dcf204d into main Mar 7, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants