Expand description
Posting gate shared by GitHub titles, descriptions and comments.
Structs§
- Language
Decision - A model’s verdict on whether a title and a body’s prose are English.
- Withheld
- What the gate withheld. Categories only, never the text.
Enums§
- Reply
- What the owner’s answer asks for.
- Violation
- Categories only: diagnostics must never repeat the offending secret.
Constants§
- ASK_
NODE - Graph node of the question filed when the gate withholds a title or body.
- ASK_
SEAT - Seat recorded on that question.
- NEUTRAL_
BODY - Fixed fallback for a rejected description or comment.
- NEUTRAL_
TITLE - Fixed fallback for a rejected title.
- USE_
FALLBACK - Choice: post the fixed neutral text for every withheld field.
- USE_
MY_ TEXT - Choice: post the owner’s own replacement title (their latest message).
Functions§
- category
- Stable name of a violation category.
- check
- Pure checker. Language exemptions never exempt sensitive data.
- check_
with checkwith an optional decision fromjudge_language.- expired
- Has the fixed
asked_at + timeoutdeadline passed? - fingerprint
- Identity of a rejected text: FNV-1a over title and body, so one run asks at most once per text and the text itself is never stored.
- judge_
language - Ask
[roles] language_judgewhethertitleandbody’s prose are English. - parse_
decision - Read the judge’s reply: one JSON object with required bools, optionally in a code fence, else the last non-empty line (a wrapper may log before it).
- prepare
- Scrub local identity and pattern matches, then replace failing prose. Every intervention is recorded without copying the offending material.
- prepare_
with preparewith the decisionjudge_languagereached for this very text.- question_
choices - The choices a question for
woffers. - question_
detail - Question body (English; it is also what a deputy reads). Names the rules that fired and shows a candidate only if it passes the redaction rules.
- question_
summary - One-line summary; the only line allowed to follow the configured language.
- read_
reply - Read the answer.
use my texttakes the latest operator message that is not newer than the answer; none means fallback. - shareable
- May this text be shown to the owner? Only when the shared redaction rules leave it untouched.
- vet_
title - Vet an owner-supplied title with the same rules as a generated one.
Errcarries categories only. Sensitive data is rejected, never redacted into something the owner did not write.