pg-trim-cot-leakage
/pg-trim-cot-leakage
Wyszukuje w kodzie, dokumentach i komentarzach ślady wewnętrznego toku rozumowania, takie jak odwołania do decyzji i narracji, i proponuje ich usunięcie.
- Autor
- JusticeSc ↗
- Repozytorium
- project-governance ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 09.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 3
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 09.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Wyszukuje w kodzie, dokumentach i komentarzach ślady wewnętrznego toku rozumowania, takie jak odwołania do decyzji i narracji, i proponuje ich usunięcie.
Wyzwalacze z opisu
Oryginalny opis (EN)
Use when auditing or fixing prose that reads like a leaked reasoning transcript — dead design-session citations such as (decision N), audit item codes, or §N of uncommitted drafts; change narration such as "used to", "no longer", "this cut"; stack or review vantage ("a later PR in this stack", "rejected in review"); reviewer-addressed justifications; control-flow narration; or hedged planning residue in comments, JSDoc, docs, or Agent Notes.
Jak działa
- The one test
- Taxonomy
- What is not leakage
- Workflow
Podgląd SKILL.md
---
name: pg-trim-cot-leakage
description: Use when auditing or fixing prose that reads like a leaked reasoning transcript — dead design-session citations such as (decision N), audit item codes, or §N of uncommitted drafts; change narration such as "used to", "no longer", "this cut"; stack or review vantage ("a later PR in this stack", "rejected in review"); reviewer-addressed justifications; control-flow narration; or hedged planning residue in comments, JSDoc, docs, or Agent Notes.
---
# Trimming Chain-of-Thought Leakage
Chain-of-thought leakage is prose whose vantage is the authoring session rather than the repository: it cites artifacts only that session could see, narrates the change instead of the state, or argues with a reviewer who has left. The fix is never deletion alone when a passage carries factual clauses — restate each so it stands at HEAD, then delete the transcript around it; a passage carrying none (an audit code, control-flow narration) is deleted outright. **REQUIRED BACKGROUND:** [pg-prose-standard](../pg-prose-standard/SKILL.md) owns the complete-proposition rule this skill applies. It is guidance, not a script.
## The one test
For every suspect passage ask: **could a reader at HEAD, with no access to any session transcript, PR thread, or uncommitted draft, resolve every reference and verify every claim?** If no, restate the surviving facts from the repository's vantage and delete the rest. If yes, it is not leakage, however historical it sounds — but resolvability only clears this skill's bar: on current-state surfaces (READMEs, docs, JSDoc) a resolvable change story is still change narration, and class 3 routes it to its sanctioned home.
## Taxonomy
1. **Dead design-session citations** — `(decision 7)`, `(audit C2)`, `design §4.7`, `plan §1.4`, phase labels (`T4`, `W3`, `P-I`), "the design ledger", "(B ruling)". If the decision has a committed owner, cite it by name and path; otherwise delete the citation and restate its factual clause to stand alone.
2. **Stack and PR vantage** — "a later PR in this stack", "this PR adds", "the previous commit". State the shipped mechanism or the extension point; deferred work moves to a `TODO` marker or an issue reference.
3. **Change narration and version stamps** — "used to", "no longer", "the old X", and indexical stamps ("v1", "this cut", "today", "now" contrasting with a past state). State the present behavior; a fixed regression becomes a present-tense counterfactual ("without X, Y happens"), never repo history ("used to Y").
4. **Review choreography** — "Rejected in review:", "the reviewer confirmed", draft ordinals ("v5 of this note"), round attributions. Keep the surviving decision and rationale as plain fact; delete who said it when.
5. **Reviewer-addressed justification** — "the cast is safe — it simply…", "this is correct because…". A comment arguing its own correctness addresses a reviewer, not a maintainer. State the invariant that makes the code safe, or delete the comment if the code shows it.
6. **Restatement and derivation transcripts** — control-flow narration ("first we X, then we Y"), test walkthroughs, proofs of obvious branches. Delete; keep only a non-obvious contract or invariant.
7. **Hedges and planning residue** — "probably fine for now", "should be enough", deferrals with no marker. Promote to `TODO`/`FIXME` or restate as the actual bound; delete the hedge.
8. **Authoring-language slips** — untranslated working-language fragments (端, 设计稿, `---- 私有 ----` separators) in prose whose language is otherwise English, or the reverse in a zh counterpart. Translate or delete.
## What is not leakage
Unaided citation passes fail in both directions by deleting durable references and keeping dead ones. Apply these keep rules as written; [examples](references/examples.md) calibrates each:
- **Issue references** — `#1470`, `TODO(name):`, "issue #N owns the follow-up" resolve at HEAD; keep them on any surface, including READMEs. Do not relocate them to Agent Notes.
- **Merged-PR and issue citations inside Agent Notes and postmortems** — sanctioned evidence per the [documentation standard](../../../docs/AGENTS.md)'s change-story routing.
- **Suppression justifications** — `oxlint-disable … -- reason`, coverage-ignore reasons, empty-catch explanations are required prose; fix a false reason, never delete it.
- **Counterfactual-present regression pins** — "without X, Y happens", "a naive X would…".
- **Measured bounds** — "(measured: 512 nests ≈ 0.15s)" calibrating a constant; the evidence word "measured" is load-bearing.
- **Runtime old/new states** — "the old connection drains before the new one accepts" is runtime lifecycle, not change history.
- **Historical stage names inside a note's change-story sections** — "the first cut shipped X" is current-state-safe there; indexical stamps ("this cut") stay banned everywhere.
- **External references that resolve outside the repo by design** — standards sections (RFC 9110 §10.1.5), Figma frame names; the §-ban covers uncommitted internal drafts, not external standards or committed docs that own their §-numbering.
- **Project voice and genre forms** — "we" as project voice; a note's Alternatives-considered section.
## Workflow
1. Scope and exclusions per [pg-prose-standard](../pg-prose-standard/SKILL.md): require an explicit scope; never touch vendored source, installed or generated trees (`node_modules/`, package `lib/`, `coverage/`), or `.agents/notes/archived/`, including symlink traversal into excluded trees. Recorded fixtures and snapshots are derivatives, not prose targets: change the owning source or scenario and regenerate them only when an authorized behavior change requires new evidence.
2. Audit read-only first: run the [recall batteries](references/recall-batteries.md) (with `--hidden` so `.agents/` is searched), calibrating each probe against a known positive and a near-miss negative before trusting its output, then judge every hit semantically. The batteries are probes, not the definition — each review round of the original purge found cases the batteries missed, so also read the densest prose in scope (module JSDoc, READMEs, Agent Notes) without a pattern in hand.
3. Fix owner-first per surface: generated catalogs → trace every consumer, fix the source JSDoc or generator template, then regenerate all derivatives; type-equivalence fences → fix the source JSDoc, then re-paste both bilingual pages; bilingual prose → update the counterpart minimally and re-record it through the [lightweight routine](../../../docs/AGENTS.md#writing-rules); bilingual fences → copy the corrected verbatim block byte-for-byte into both sides per [pg-doc](../pg-doc/SKILL.md), then re-record the pair; user-visible strings → route through [pg-prose-standard](../pg-prose-standard/SKILL.md) and change only with owning behavior evidence, otherwise leave unchanged and report the deferral.
4. Before deleting anything, enumerate the passage's propositions (prose-standard) and check the [overcorrection traps](references/examples.md#overcorrection-traps): trims that flip an obligation into an endorsement, promote a hypothetical to a shipped feature, delete a true fact, or drop the evidence source.
5. Verify: re-run the calibrated batteries expecting only sanctioned keeps, this skill's own directory, and the owning note's quoted evidence; confirm remaining citations resolve at HEAD. Run the touched-surface checks (`doc-sync`, scoped `verify-translation-pairing`) and `pnpm run verify-type-equiv` whenever source-derived type/JSDoc reproductions exist. Fix the source then synchronize every bilingual paste; current absence of a reproduction never cancels this conditional responsibility.
Pliki w paczce (3)
- SKILL.md 8 KB
- references/examples.md 12 KB
- references/recall-batteries.md 5 KB
Wersje
W bazie nie ma innych skilli o nazwie pg-trim-cot-leakage.
Migawka bazy z 13.11.2026 · wersja paczki 23ca1b5aed67 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Podobne skille
- 100dsh-trim-cot-leakage
Wyszukuje i poprawia teksty brzmiące jak wyciekły zapis rozumowania: martwe odwołania do sesji projektowych, narracja o zmianach, perspektywa stosu PR i recenzji oraz asekuracyjne ślady planowania w komentarzach i dokumentacji. - 100dsh-trim-cot-leakage
Wyszukuje i poprawia tekst przypominający wyciek toku rozumowania: martwe odwołania do sesji projektowych, narrację zmian i uzasadnienia pisane do recenzenta w komentarzach i dokumentacji. - 100dx-trim-leakage
Audytuje i poprawia teksty brzmiące jak wyciekły zapis rozumowania lub narracja sesji tworzenia: martwe odwołania do planu, perspektywa PR, narracja o zmianach i uzasadnienia adresowane do recenzenta. - 100prose-review
Sprawdza nowy tekst w dokumentach, komentarzach, opisach PR i commitach względem zasad pisania zapisanych w repozytorium. - 84audit-comment-residue
Wskazuje w komentarzach kodu pozostałości, takie jak opowieści o historii zmian, odwołania do planów i ticketów czy obejścia bez linku, bez edytowania plików. - 100mstar-prose
Sprawdza, czy tekst nie wygląda na przeciek wewnętrznego rozumowania, i weryfikuje, czy odniesienia istnieją w HEAD.