Workspace Bandwidth Limit Phase 1 (top-K-per-epoch enforcement)#127
Closed
TSchonleber wants to merge 1 commit into
Closed
Workspace Bandwidth Limit Phase 1 (top-K-per-epoch enforcement)#127TSchonleber wants to merge 1 commit into
TSchonleber wants to merge 1 commit into
Conversation
Closes the second half of the May 15 audit's workspace partial entry. Thalamus mode-broadcast closed the first half (org_state coupling); this closes the bandwidth-limit half. Biology: Dehaene-Changeux global neuronal workspace has a hard ~4-chunk ignition bandwidth. Phase 1 is bookkeeping + shadow enforcement. Phase 2 wires the limit into workspace_ingest. Phase 3 lets ARAS modulate the bandwidth. - Migration 072: workspace_bandwidth_state (single row, defaults: limit=4, epoch=60s, mode=shadow) + workspace_bandwidth_epochs (historical log of completed epochs with saturation tracking). - mcp_tools_workspace_bandwidth: 4 tools (status, set, admit, epochs_history). admit returns admitted/rejected/saturated; in shadow mode all admits go through but saturated=True is logged; in enforce mode admits over the limit are rejected. - Auto-rotation: status + admit check epoch expiry and roll the live counters into the historical table. - 9 tests covering defaults, status, admit, saturation, enforce rejection, set validation, rotation timing, history filters. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Owner
Author
|
Superseded by #138 ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes the second half of the May 15 audit's workspace 🟡 partial entry. Thalamus mode-broadcast closed the first half; this closes the bandwidth-limit half. Biology: Dehaene-Changeux global neuronal workspace has a hard ~4-chunk ignition bandwidth —
workspace_broadcastscurrently has no such constraint.What's in
workspace_bandwidth_status,_set,_admit,_epochs_history.What's NOT in
workspace_ingestyet (Phase 2).Live
~/agentmemory/backups/brain.db.pre-wb-*.db🤖 Generated with Claude Code