mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-05 08:23:59 +01:00
feat(contract): lanes run gstack-pregate (and the sealed guard where configured) before done; handoff carries the gstack trailer and PREGATE: line
The coordinator contract gains a 'Before done' paragraph and the handoff order GSTACK_RESULT, gstack: ok|fail <rev>, PREGATE:, gate summary; the spec section is regenerated and docs/unattended.md states the same rule. A new test pins the terms and their order; the byte-identity pins stay. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
22737a8f66
commit
6aeea57aec
4 files changed
+26
-2
No files matched your search
@@ -265,6 +265,17 @@ lines whose decision is still pending stay and are reported as
|
||||
`DRAFT_DIRECTION_UNRESOLVED` (exit 1). `gstack-autoplan answer` runs the same
|
||||
rewrite when a reply completes the gate (journal event `draft_directions_closed`).
|
||||
|
||||
## Lane done: pregate, the sealed guard and the handoff lines
|
||||
|
||||
A lane under a coordinator runs `gstack-pregate run --allow-repo-commands` on
|
||||
its branch before it reports done (the unit tier on the changed files plus
|
||||
the repo's guards, [docs/pregate.md#guards](pregate.md#guards)). In a repo
|
||||
whose `.gstack/pregate.json` has a `sealed` key it runs `gstack-pregate sealed`
|
||||
before any push or PR creation, since a PR tool may not run local hooks. Its
|
||||
handoff carries, right after the `GSTACK_RESULT` line, the `gstack: ok|fail
|
||||
<rev>` line and then the `PREGATE:` line. The coordinator contract
|
||||
(`gstack-autoplan contract`) states the same rule word for word.
|
||||
|
||||
## Timing
|
||||
|
||||
`/autoplan` prints `ESTIMATE: ...` at Phase 0 (`gstack-autoplan-timing
|
||||
|
||||
Reference in new issue
Block a user