mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-30 03:44:38 +01:00
A first version's public copy catches a short owner quote whose padding or quote marks are encoded (#4778)
A first version's public export now catches a short owner quote when its padding or quote marks are encoded, such as ` `, a zero-width space, `"` or a JSON `\"`. Why: those spellings kept the owner's words in the public copy and `validate --public` passed them; short quotes are now matched on the same decoded text the long-quote scan reads. Nothing to do: the redaction still replaces only the original characters of the quote. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: p1/specialist-batched#1 reader=red-team
This commit is contained in:
1 parent
f3a89d2105
commit
bb6d13ea30
6 files changed
+40
-6
No files matched your search
@@ -6030,7 +6030,7 @@ Markdown markup, invisible format characters, contractions and case; replies
|
||||
of 1 or 2 words are not scanned for, and words the owner echoed from earlier
|
||||
text he didn't write are not his (the words a reply adds to an echo still are).
|
||||
A plan quote of any length is also one wherever it appears inside quote
|
||||
marks, spaces just inside them included, and so is its `leave out:` reason after `leave out:`, `leave it out for
|
||||
marks, padding just inside them and encoded characters included, and so is its `leave out:` reason after `leave out:`, `leave it out for
|
||||
now:` or `reason to leave it out:`, in any case. See
|
||||
[the public copy](unattended.md#the-public-copy). `gstack-artifact validate --public <dir> --private
|
||||
<run>/run.json` reports each quote with file:line, and `gstack-autoplan export
|
||||
|
||||
+1
-1
@@ -387,7 +387,7 @@ owner's own words: nothing a person wrote leaves without their click (GST-1243).
|
||||
quote too. Replies of 1 or 2 words ("yes", "do it") are not scanned for:
|
||||
they are codes or grammar, and the field itself is already dropped. A quote
|
||||
under the plan's `### Owner's words` heading is redacted at any length
|
||||
wherever it appears inside quote marks (spaces just inside them included), and the reason on its
|
||||
wherever it appears inside quote marks (padding just inside them included, and the same after entities, JSON escapes and invisible characters are decoded), and the reason on its
|
||||
`leave out:` line wherever it follows `leave out:`, `leave it out for now:`
|
||||
or `reason to leave it out:`, in any case; a bare mention of a short quote's
|
||||
words outside quote marks stays. A quote
|
||||
|
||||
Reference in new issue
Block a user