feat(session): plan-born task worker briefs carry standing project orders (#1549) - #1598
santoshkumarradha wants to merge 5 commits into
Conversation
Two-Pass Quality ReviewPass 1: Defects & Contracts
Pass 2: Architecture & Clean Code
Drafted with CodeAF · reviewed and owned by the author |
Pass 1 Review: Defects & Contracts
drafted with CodeAF |
Pass 2 Review: Architecture & Clean Code
drafted with CodeAF |
|
@AbirAbbas this is review ready |
santoshkumarradha
left a comment
There was a problem hiding this comment.
Reviewed in two passes.
Pass 1 — does it do what #1549 asks? Yes. session.StandingWorld is exported as the one resolver door, RunSpec.Standing resolves the project's standing orders once per run in beltRunSpec, and the section is threaded CrewFactory → NewBashWorker → BeltWorkerBrief so plan-born workers close on it in their opening brief. The headless codeaf do errand path gets the same answer via doStanding against the run's workspace with no conversation session, which matches the resolver's place semantics.
Pass 2 — naming, error paths, leftovers, coverage.
- Naming follows the surrounding code (standing/section/birth-seam vocabulary); comments cite the laws and the issue.
- Error paths: store-open failure and resolver error both return no section, consistent with the existing emptiness law in
standingWorld; whitespace-only orders render nothing (tested,TestBeltWorkerBriefRendersNoStandingSectionWithoutOrders). - Orders ride the opening brief, not a later note — correct, they are a birth fact.
- All
NewBashWorker/CrewFactory/BeltWorkerBriefcall sites updated, tests included; no leftovers from the rebase spotted. - Regression covered end-to-end by
TestAPlanBornWorkerIsHandedTheStandingOrdersplus the brief-levelTestBeltWorkerBriefClosesOnStandingOrders.
Nothing blocking from my side. LGTM once CI settles.
Summary
Fixes issue #1549: plan-born task worker briefs omit standing project orders.
Changes
Fixes #1549
Drafted with CodeAF · reviewed and owned by the author