mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-25 17:41:35 +01:00
A base branch with too many review_exclude_paths patterns no longer stops every /ship (GST-3399) (#4637)
When the base branch's ship policy fails only because of its `review_exclude_paths` or `review_content_patterns` list (for example 65 patterns, one over the limit of 64), /ship now reviews every file instead of stopping. Why: harness-evals main went to 65 patterns, and every /ship there stopped with POLICY_INVALID, including the PR that shortens the list. Nothing to do: the plan prints a `REVIEW_EXCLUDE: fallback (WARNING: ...)` line naming the error and the fix, and `gstack-ship-policy validate` still reports the list. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: p1/red-team#1 reader=red-team Review-Finding: p1/specialist-batched#1 reader=testing Review-Finding: lib/ship-receipt-depth.ts:69:stale-comment reader=core
This commit is contained in:
1 parent
2887261a47
commit
dd611038ca
15 files changed
+211
-19
No files matched your search
@@ -3842,6 +3842,14 @@ a typo never silently means "default".
|
||||
**Fix.** `gstack-ship-policy validate` lists every problem;
|
||||
`gstack-ship-policy init --explain` prints each key, its meaning and default.
|
||||
|
||||
When the invalid file is the base branch's and its only errors are in
|
||||
`review_exclude_paths` or `review_content_patterns` (for example `more than 64
|
||||
patterns`), /ship does not stop: `gstack-review-plan` prints `REVIEW_EXCLUDE:
|
||||
fallback (WARNING: …)`, reviews every file and applies the base's other keys,
|
||||
so open a PR that corrects the list and ship it as usual
|
||||
([review_exclude_paths](ship-policy.md#review-exclude-paths)). Any other error
|
||||
on the base stops the plan and the merge step until a PR fixes it.
|
||||
|
||||
<a id="policy-containment"></a>
|
||||
### `POLICY_CONTAINMENT`
|
||||
|
||||
|
||||
Reference in new issue
Block a user