Skip to content

docs(#24): dispatcher+gate unification design (draft for review)#41

Draft
Grant Foster (grantfosterdev) wants to merge 1 commit into
mainfrom
design/dispatcher-gate
Draft

docs(#24): dispatcher+gate unification design (draft for review)#41
Grant Foster (grantfosterdev) wants to merge 1 commit into
mainfrom
design/dispatcher-gate

Conversation

@grantfosterdev

Copy link
Copy Markdown
Contributor

Design-first artifact for #24 (the ticket mandates decision-table-before-refactor). Builds on #30.

  • Unified gate.Decision shape (collapses ownergate + threadowner outputs).
  • The mode-selected decision table = the gate-matrix test fixtures (default/personal/team, 19 rows; the audit's 'conflict' cases resolved by mode-selection).
  • ThreadOwnership interface: one identity-valued API, two backends (Redis enum for the fleet, per-pod file for PA).
  • Joanne's welcome-routing modeled as a default-mode ChannelPolicy hook.
  • handleMessage→Runner unification (unblocks Joanne's deferred sessionqueue).
  • Ordered sub-slices S1–S6, lowest-risk first (S1 = the gate decision + matrix test, no dispatcher).

Decisions (Grant): full dispatcher extraction; end-state deferred. Review the decision table + interfaces before I build S1. Relates to #24.

🤖 Generated with Claude Code

Design-first artifact for #24: unified gate Decision shape, the mode-selected
decision table (13-row gate-matrix fixtures), two-backend ThreadOwnership
interface, Joanne welcome-routing as a ChannelPolicy hook, handleMessage→Runner
unification, and ordered sub-slices S1-S6. Grant: full dispatcher extraction;
end-state deferred.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
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.

1 participant