Skip to content

refactor(broker): close horizon lane selection behind HorizonSet - #156

Merged
christopherkarani merged 1 commit into
mainfrom
arch/f1fd967c/T1
Aug 25, 2026
Merged

christopherkarani merged 1 commit into
mainfrom
arch/f1fd967c/T1

Conversation

@christopherkarani

Copy link
Copy Markdown
Owner

Spec: spec/spec-architecture-type-system-hardening.md (ticket T1)

What

Replaces the includeWorking/includeEpisodic/includeDurable Bool×3 threading across BrokerCommand -> AgentBrokerService -> LayeredRecall.SearchRequest with a package-internal HorizonSet OptionSet over the existing Horizon lanes.

Compiler gain

An empty lane selection no longer compiles through: decode rejects it with a named error mentioning lanes (previously it silently searched nothing). The hand-written scope override table collapses into pure set algebra pinned by an exhaustive 24-cell test against the old behavior.

Wire compatibility

Wire keys include_working/include_episodic/include_durable unchanged, defaults unchanged (absent = all lanes). Only behavior delta: all-false requests now fail decode instead of returning empty results.

Verification

Targeted suites green: HorizonScopeSelectionTests 4/4, BrokerCommandDecodeTests 25/25, LayeredRecallTests 37/37 combined run, brokerMemorySearch end-to-end 4/4. Two WaxMCPServerTests source-scanner failures proven pre-existing at base 572b786.

Review skills used: swift-adversarial-pr-review x2 (fresh-context fix-allowed review + independent final pass, both APPROVE, zero code findings).

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@christopherkarani christopherkarani added the ready-for-review Ready to squash-merge after pipeline review label Aug 25, 2026
@christopherkarani
christopherkarani merged commit d0b89ca into main Aug 25, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Ready to squash-merge after pipeline review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant