gstack icon indicating copy to clipboard operation
gstack copied to clipboard

[feature] Lane discipline: name the return for a mid-build finding that defeats the approved plan

Open exGeni opened this issue 3 days ago • 2 comments

What happens

crew/docs/captain.md, Lane discipline (line 155): a lane "never stops to ask whether to continue. It comes back for new scope, a conflict with another owner, missing access, or a decision that is the owner's", and brings each decision with every option explained, what each does and what it costs. captain/templates/CREW.md rule 10 (line 81) repeats the list. Plan before build (heading at line 371; part-way scope at line 382) gives new functionality taken on part-way its own plan and ask.

The docs at 245281c do not say whether a finding during the build that the plan did not foresee, and that changes whether its goal should or can be reached while the scope stays the same, is a reason to come back. Two examples: the setting the plan turns on was turned off on purpose (turning it back on reverses someone's decision), or the job turns out to be done already. "A decision that is the owner's" may be meant to cover this, but the rules do not name it, so a lane has to infer it.

Once the run reports APPROVED (status=complete, crew/docs/captain.md:410), we found no documented way to amend the plan: lib/autoplan-revise.ts:148 refuses revise on a complete run with PHASE_NOT_AWAITING. /ship's plan-completion audit ("Step 8: Plan Completion Audit", ship/sections/plan-completion.md:3) runs at ship time, so it is not a rule for the moment of the finding.

What we see

In our sessions, which follow these lane rules off Capy, a lane that met such a finding either did less than the plan described without saying so before the report, or finished the plan as written; in both cases the owner learned of it from the final report.

What we would expect

Name the case in Lane discipline and in CREW.md rule 10: when such a finding comes up, the lane stops that part and brings the owner the decision in the existing ask format (each option, why it matters, what each answer does, what it costs), adding its own recommendation, and keeps the parts that do not depend on the answer moving, as it already does with a bad item (crew/docs/captain.md:162). How the plan record is then updated (a new plan and ask, or amending the completed run) is the maintainers' choice; the owner's answer should be recorded before the affected work resumes.

Alternatives

We carry it as a rule of our own beside the lane rules, which captain/templates/CREW.md (line 154) treats as a gap in gstack when it stays there for long.

Environment

  • gstack 1.106.2.0 (default branch, 245281c); Claude Code on Linux.
  • Related: none found for "re-plan", "plan drift", "mid-build", "plan still reaches its goal".

exGeni avatar Dec 01 '26 19:12 exGeni

Checked

DananjayaNadun avatar Dec 02 '26 04:12 DananjayaNadun

Thanks for the clear report, @exGeni. Confirmed on current main (a7ae510): crew/docs/captain.md (Lane discipline) and captain/templates/CREW.md don't explicitly name a mid-build finding that invalidates an already-approved plan's premise while scope stays unchanged, and lib/autoplan-revise.ts refuses revise once a run is complete (PHASE_NOT_AWAITING).

We're taking this for maintainer review alongside #4986 (tracked in GSTA-36) to document the mid-build return rule and how the owner's decision is recorded, and we'll link the PR here once it lands.

capy-ai[bot] avatar Dec 02 '26 16:12 capy-ai[bot]