gwt-context

GWT Runtime Contracts

This document records the concrete runtime contract behind the GWT language in the project.

State Boundaries

State Owner Allowed Inputs Allowed Side Effects
Long-term memory IngestionPort + MemoryRepositoryPort gwt_store, persisted query results, linked records Store and vector index writes through ingestion only.
Preconscious buffer SelectionBroadcastCycle stored items, admitted query matches, evicted workspace items, linked conscious targets Rankable candidates only; items are not globally visible until competition admits them.
Conscious workspace GlobalWorkspace through SelectionBroadcastCycle competition winners above GWT_MIN_ACTIVATION Broadcast formatting, broadcast history, state updates to CONSCIOUS.
Broadcast bus BroadcastBus through SelectionBroadcastCycle latest BroadcastRecord plus task context Proposal reports only; subscribers do not mutate workspace or storage.

Admission Policy

Subscriber Execution

After each broadcast, conscious workspace items activate explicit linked_ids into the preconscious buffer for the next cycle. This is the runtime reentry path for graph-like memory: linked facts become eligible for the next competition without parsing the rendered broadcast text.

Benchmark Isolation