mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-23 00:21:14 +01:00
Run ids in /ship's follow-up review approvals are no longer flagged as phone numbers, and teams named GStack can record rulings (GST-3246) (#4549)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
858679423c
commit
1bd86d9a45
11 files changed
+148
-16
No files matched your search
+7
-3
@@ -1765,7 +1765,9 @@ and ask `ruled_note <fingerprint> at <head>: <reason>`, with the head's full sha
|
||||
two findings ruled with the same reason in one reply get two rows, and a ruling at
|
||||
a later head is a new row. Its `by` is the ruler and its `recorded_at` the time.
|
||||
`rule` refuses a `--head` that is not a commit in the repository, a reason with a
|
||||
newline or control character, a `--by` naming gstack, and a ruling while this
|
||||
newline or control character, a `--by` naming gstack (any `--by` that starts with
|
||||
`gstack`, except a crew named `GStack <Name>` such as `GStack Minder`, which is a
|
||||
person's crew; `gstack` and `gstack no-stop default (K1)` are always refused), and a ruling while this
|
||||
checkout holds an open /ship run's marker (the lane's own runner) unless the lane
|
||||
relays the owner's words with `--owner-ref <thread code>:<message id or timestamp>`
|
||||
(on Capy the owner, a Captain, has no session on the lane's checkout). A relayed row's
|
||||
@@ -1845,7 +1847,8 @@ The row is an approved `gstack-approvals` row with scope `gate_disposition
|
||||
<head>: <reason>` and the owner's words in `words` (`lib/gate-dispositions.ts`).
|
||||
`gate` refuses a missing `--gate-id` (or a literal `undefined` or `null`), empty
|
||||
`--words`, a reason, words or `--by` with a newline or control character (each is
|
||||
trimmed first), a `--head` that is not a commit, a `--by` naming gstack, a row that
|
||||
trimmed first), a `--head` that is not a commit, a `--by` naming gstack (as for
|
||||
`rule`: a `GStack <Name>` crew may record), a row that
|
||||
`dispositions` would not list (a head that is not 40 hex, for one), and any call
|
||||
while a /ship run is open on the branch in any worktree of the repository: its
|
||||
marker counts while its lease is open, the same test preflight uses, so a run parked
|
||||
@@ -1939,7 +1942,8 @@ gstack-approvals lane-exception --head <pushed head> --files <f1,f2> \
|
||||
The row is an approved `gstack-approvals` row with scope `test_lane_exception <head>
|
||||
<files>` and ask `test_lane_exception at <head>: <files>: <reason>`
|
||||
(`lib/test-lane-exception.ts`). `lane-exception` refuses a head that is not a
|
||||
commit, a file with whitespace, a multi-line reason, a `--by` naming gstack and
|
||||
commit, a file with whitespace, a multi-line reason, a `--by` naming gstack (as
|
||||
for `rule`: a `GStack <Name>` crew may grant) and
|
||||
any grant while this checkout holds an open /ship run's marker, and `add` refuses
|
||||
the scope, so the lane's own runner cannot write one; a row by gstack is ignored
|
||||
wherever it came from. `gstack-evidence record-ci` binds a grant only when its
|
||||
|
||||
+11
-1
@@ -2240,7 +2240,8 @@ a `--date` that is not a real `YYYY-MM-DD` day) or exceeds a length cap (ask, sc
|
||||
pending 300 characters, words 2,000). Exit 2. Nothing was written.
|
||||
`rule` and `lane-exception` refuse with this code too: a `--head` that is not
|
||||
a commit in the repository, a reason that is missing or holds a newline or
|
||||
control character, a `--by` naming gstack, any record while this checkout
|
||||
control character, a `--by` naming gstack (a crew named `GStack <Name>`, such as
|
||||
`GStack Minder`, is not gstack and may record), any record while this checkout
|
||||
holds an open /ship run, and for `lane-exception` a `--files` list that is
|
||||
empty or holds whitespace. `add` refuses a `ruled_note` or
|
||||
`test_lane_exception` scope ([ruled notes](ship-policy.md#ruled-notes),
|
||||
@@ -2277,6 +2278,10 @@ the id has the minted shape `<name>-<14 digits>` (GST-2047; since GST-3015 the
|
||||
name ends in six random letters); a phone number in
|
||||
the rest of the directory name, the same id anywhere else, and every other
|
||||
finding in the row still refuse.
|
||||
Likewise a `pii.phone.e164` finding that starts inside the `stop=` run id of a
|
||||
fix-check round grant's scope (`review_round_grant <sha> pr=<n> kind=fix-check
|
||||
stop=507-7192673 findings=…`) is skipped (GST-3246); the same digits in the
|
||||
reason, the words or any other field still refuse.
|
||||
|
||||
**Fix.** Record the words with the secret replaced by `[redacted]`, or ask the person to
|
||||
restate them. Rotate the secret if it was real.
|
||||
@@ -3305,6 +3310,11 @@ exact tokens it finds in these positions:
|
||||
shape above (#4480). The same value on a line without that prefix, on a
|
||||
receipt-prefixed line inside a hand-written or non-receipt code block, or a
|
||||
phone number elsewhere on a receipt line still reports.
|
||||
- in a rendered `## Approvals` table (the header, its rule line and the
|
||||
closing `Source: gstack-approvals record for …` footer `render` writes),
|
||||
the `stop=` run id of a row whose Covers cell is a whole fix-check round
|
||||
grant scope (GST-3246). The same digits in another cell, in prose or in a
|
||||
table without that footer still report.
|
||||
|
||||
A bare 11-digit number with none of that context, a 10-digit national number
|
||||
and an E.164 `+14155551234` still report, so the finding means the id stands
|
||||
|
||||
Reference in new issue
Block a user