Repository navigation
Stop false phone-number holds on /ship run ids and name interactive /autoplan runs - #4747
Merged
Merged
Conversation
…autoplan runs gstack-post read the run id on each line of a PR body's gstack-receipt-runs block as a phone number, so every /ship that rewrote a body holding earlier runs stopped for a confirmation (#4725). The run value of a well-formed runs line (canonical JSON, 40-hex head, a /ship session id) is now skipped, and a phone number anywhere else is still caught. gstack-approvals import --autoplan now records an interactive /autoplan run under the run id its gate rows carry instead of the folder name "autoplan" (#4402). Interactive run ids put "autoplan" between the branch name and the time stamp, so a branch name ending in digits no longer reads as a phone or card number. Co-authored-by: thomsjack <[email protected]> Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
The run history exemption now applies only to a block that opens outside any other code fence, and a line that cannot be re-serialized is skipped instead of stopping the post. A Plan line naming a shared interactive /autoplan folder that holds several runs no longer resolves to the newest one. Run ids that interactive /autoplan minted before this change still import on branch names ending in digits. Review-Finding: p1/outside-voice#1 reader=outside-voice Review-Finding: p1/outside-voice#2 reader=outside-voice Review-Finding: p1/outside-voice#3 reader=outside-voice Review-Finding: p1/outside-voice#4 reader=outside-voice Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
A Plan line naming a shared interactive /autoplan folder that holds several runs now resolves to no run at all, so approvals imported before this change under the shared id autoplan cannot stand in for it. Review-Finding: p2/red-team#1 reader=red-team Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
An interactive run id minted before #4402 is exempt only when its stamp is a real calendar time, and a Plan line naming an interactive /autoplan folder whose decision log cannot be read resolves to no run. Review-Finding: p2/outside-voice#1 reader=outside-voice Review-Finding: p2/outside-voice#2 reader=outside-voice Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
The privacy check's troubleshooting entries now say which run ids it skips in the run history block and which older interactive /autoplan run ids import, and that a run id that also reads as a card number still asks. The changelog entry says the same. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This was referenced Nov 23, 2026
capy-ai Bot
added a commit
that referenced
this pull request
Nov 24, 2026
Posting a PR body that lists earlier /ship runs, or the /ship result record, no longer stops for a "card number" that is really a /ship run id. About 1 in 10 run ids passes the card-number checksum, so those bodies still waited for a confirmation after #4747's phone-number fix (#4725). Nothing to do after merge. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Merged
capy-ai Bot
added a commit
that referenced
this pull request
Nov 24, 2026
- `/ship` now tells you what to change when GitHub refuses a push for email privacy. (#4748) - The release gate's /cso check accepts the low-confidence hypotheses /cso now reports. (#4753) - /cso reports every security finding the code supports instead of dropping most of them. (#4739) - /cso can search the whole repository in one call, and a daily report now lists its low-confidence hypotheses. (#4742) - A first version's plan and try-it message now open with the owner's own words, and the build is tried the same way he will try it before he is asked. (#4759) - A first version's public export now keeps out the owner's short quotes and his reasons to leave something out, and a phone first-use check installs a build the cloud phone can actually run. (#4772) - Three intermittent test failures are fixed. (#4745) - Free Tests runs its shards on 8-core runners again. (#4749) - A land that waits on an earlier CI run now decides on what that run actually did. (#4763) - Landing a PR no longer starts a new CI run when one for the same merged code is already running or has passed. (#4760) - /ship no longer misses a file-mode change from main on files whose names start with `:`. (#4774) - make-pdf keeps quotes in alt text, link titles and raw HTML attributes inside the attribute, so a Markdown file can no longer add an `onerror`, `onload` or `javascript:` link that runs in the print browser. (#4761) - Posting a PR body that lists earlier /ship runs no longer stops for a phone number that isn't there. (#4747) - A first version's public export now catches a short owner quote whose padding or quote marks are encoded. (#4778) - A first version's public export now also keeps out a short owner quote written with spaces just inside its quote marks. (#4776) - Posting a PR body that lists earlier /ship runs no longer stops for a card number that isn't there. (#4751) - /ship no longer asks for an extra reader when you merge the base branch next to code that was already reviewed. (#4754) - /ship no longer plans narrow re-checks after a fix. (#4741) - /ship can't quietly gain new refusals. (#4740) - `gstack-upgrade` no longer refuses to run after you disable skills. (#4743) - The free test suite splits its shards from this week's recorded test times. (#4744) - gstack now writes up a failed or shelved attempt before closing it. (#4735) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Posting a PR body that lists earlier /ship runs no longer stops for a "phone number" that is really a run id, and an interactive /autoplan approval is imported under its own run id instead of
autoplan.Every /ship that rewrote a body holding earlier runs waited for a confirmation (#4725; about 1 in 10 run ids also reads as a card number and still asks, fixed in a follow-up), and interactive /autoplan runs could not be cited by run id (#4402).
Nothing to do after merge.
Issues
Fixes #4402
Refs #4725 (partly fixed: run ids no longer read as phone numbers; a run id that also reads as a card number still asks for confirmation until the follow-up PR)
Refs #4729 (outside PR by @thomsjack; its idea is rebuilt here on current main, with credit)
What changed
gstack-postskips /ship's run ids in the run history block. In each closed run history block that /ship writes into a PR body, a line that is a JSON object byte-identical to itsJSON.stringifyrendering, with a 40-hexheadand arunshaped like a /ship session id (<pid>-<epoch>-<8 hex or digits>), has the column span of that top-levelrunvalue skipped forpii.phone.e164only. Repro on main c4cfe6d: the reporter's body exits 2 withRULE: pii.phone.e164 LINE: 4; on this branch it scans clean.gstack-approvals import --autoplanuses the run id written on its gate rows. With norun.json(an interactive run), the import takes the newestrunwritten on itsdecisions.jsonlrows and only that run's rows, instead of the folder nameautoplan. APlan: approved: <folder>line resolves the same way.<branch>-<YYYYMMDD-HHMMSS>; on a branch likefix-4402the privacy check read4402-20261122-093321as a phone and card number, so the import was refused and aPlan:line citing it would be held. The id is now<branch>-autoplan-<YYYYMMDD-HHMMSS>, which scans clean in the import and in a PR body. No scanner exemption was widened for this; the restore file name is unchanged.Security read
This adds an exemption to a privacy check, so it is additive only: the existing catch is unchanged, and the new code only adds skip spans.
runvalue is skipped, only forpii.phone.e164(a card-number or any other finding there still reports), only inside a closed fence whose opening line is exactly the run history block's fence line, only on a canonical JSON line with a 40-hex head, and only when the value matches the session-id shape the PR body's other /ship record already uses.reasonon the same line as a valid run; a phone number as therun; a truncated id; a session id under another key (grant) and nested underreview_loop; non-canonical spacing; a duplicatedrunkey; a missing head; a non-sha head; an unclosed block; the same id in prose after the block; the same line in ajsonblock.Tests
test/gstack-post.test.ts: the new runs-block test fails on main'slib/gstack-post.tsand passes here.test/approval-record.test.ts: the new numbered-branch test fails on main'sautoplan/SKILL.md.tmpland passes here; the interactive import tests and the plan-record path test pass.bun run typecheckandtypecheck:testclean. CI is the full run.Documentation
docs/troubleshooting.md: the run-id-as-phone entry now says run ids in the run history block are skipped for the phone check, and that a run id which also reads as a card number still asks. The approval-record entry names the interactive /autoplan run id shape, and a new paragraph explainsPLAN_UNRESOLVEDwhen a run folder holds several runs or an unreadable log.changelog.d/privacy-check-skips-run-ids.md: the release note, including the known card-number gap.lib/gstack-post.ts,lib/approval-record.tsandlib/plan-record.ts; docs/review-policy.md and docs/unattended.md need no change.Agent notes
Lane GSTA-802 (GST-3484). The run history block is the
gstack-receipt-runsfence; the session-id shape isSESSION_IDin lib/gstack-post.ts, already used for the ship receipt'srun. Commit fields checked:head,tree,carried_from. The outside PR #4729 was read as text only; nothing from its branch was fetched or run. The approval import change returns from e91936b, which moved it out of #4681.Plan: exempt: bug fix
REVIEW_LOOP: passes=3 blocking_found=12 deferred=0 noted=12 fixed=7 scope=frozen open=5 ledgers_read=6 dispatches=12
Ruled note: lib/gstack-post.ts:593:outside-voice at c2eb4bb ruled by GSTA-36 (relayed from GSTA-36:2026-11-23T16:54:58Z) at 2026-11-23T16:54:58.520Z: below the R12 floor: fails closed (false privacy hold only); a Markdown-exact fence rule would loosen main's receipt-line check (approval a-544dbb01d3b6)
Ruled note: lib/approval-record.ts:407:outside-voice at 253c73c ruled by GSTA-36 (relayed from GSTA-36:2026-11-23T17:05:23Z) at 2026-11-23T17:05:23.709Z: below R12 floor: rows stay filtered to their own run id (approval a-d585882213ba)
Ruled note: lib/plan-record.ts:157:outside-voice at 253c73c ruled by GSTA-36 (relayed from GSTA-36:2026-11-23T17:05:23Z) at 2026-11-23T17:05:23.877Z: below R12 floor: a folder citation is a pointer; main pooled runs (approval a-69038737011f)
Ruled note: lib/approval-record.ts:228:outside-voice at 253c73c ruled by GSTA-36 (relayed from GSTA-36:2026-11-23T17:05:23Z) at 2026-11-23T17:05:24.019Z: below R12 floor: long or non-ASCII branches fail closed, no leak (approval a-4d80d33705be)
Ruled note: lib/gstack-post.ts:655:outside-voice at 253c73c ruled by GSTA-36 (relayed from GSTA-36:2026-11-23T17:05:23Z) at 2026-11-23T17:05:24.160Z: partial-fix gap (1 in 10 ids trip pii.cc); follow-up PR (approval a-27581ab5d275)