Director: objective commands + coordination-failure guard #6
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The plan
The Director is the grand picture: fixed in placement, in charge of a base, running multiple Commanders from the union of what they know. It issues objective commands and intervenes only to prevent coordination failures. This issue builds the Director's side of that contract. It depends on the Commander issue (the Director can only command what Commanders can execute) and the order-vocabulary issue (objectives translate into orders).
Current state
addons/daisy/src/director.gdhas the spine:commandersregistry,issue_objective(specific Commanders by id, or all when targets are empty),union_knowledge()computed on demand from Commanders' ledgers,check_coordination()with exactly one failure mode (every Commander committed to the same objective — the east-gate example), andon_commander_alert(flows an alert down to every Commander).receive_objectiveon the Commander currently translates onlyreinforce.What changes
Build the Director, in order:
current_objective. If review-before-execution wins, the Commander must propose before acting and the Director must answer in time — that changes the Commander's shape, so the decision lands here and is implemented across both classes.What done looks like
The Director issues every objective in the settled vocabulary, the guard catches every settled failure mode, the cadence and map picture are implemented, and the alert policy is the settled one — each proven by a test. The design doc's Director section matches.
Open questions