Conversation
This branch has not been deployed
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
Design walkthrough (not implemented) for a proposed fix to the orchestrator-role selection problem uncovered while root-causing PR #448: today,
orchestratorsilently falls back to whichever registered member sorts first whenroleMap.orchestratoris unset, which can hand every pre-sprintbd/git/Dolt operation to a remote member with a stale clone.The proposed model: on sprint launch, the supervisor itself creates a fresh git worktree, registers it as a throwaway local member, reserves it to the sprint, and injects it as
roleMap.orchestrator-- so the user never configures this, and it's torn down (worktree removed, reservation released, member unregistered) on every terminal path.This document walks the model phase-by-phase (Sprint Setup, Plan, Develop, Test, Harvest, supervisor launch/teardown) against the actual current codebase, with file:line references throughout, and calls out what's genuinely reusable vs. new plumbing.
Key findings
Ensure Sprint Branchdispatches a checkout to every member including the orchestrator and hard-throws on non-dirty-tree failures -- so the orchestrator's parent clone must come from a repo no registered member shares. Not a preference, a hard requirement.orchestratorMember-routed call isbd/git/twonode -eone-liners; deploy/integ/regression already route to their own roles.registry.tshas no locking, so concurrent launches can clobber each other'sregister_memberwrite, (3) the beads directory-walk-up trick needs to be verified under the supervisor's actual environment, not assumed.Status
Design/proposal only -- no code changes. Intended as a scoping document for a future bead/epic under
apra-fleet-eft, not something to merge-and-ship as-is.