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.
- POST_
ORIGINAL - Choice: post the original text of every withheld field, unmodified, past the posting gate. Publishing cannot be taken back.
- 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§
- artifact_
name - Artifact file name for the scrubbed full text of a withheld message.
- artifact_
text - What the artifact holds: the original text exactly as written and the text
use fallbackwould post, for the withheld fields. It stays inside the run directory on the operator’s machine and is never sent anywhere. - category
- Stable name of a violation category.
- check
- Pure checker. Language exemptions never exempt sensitive data.
- check_
with checkwith an optional decision fromjudge_language.- deputy_
brief - Brief for the deputy that serves this question (node
ASK_NODE). - diagnose
- Which part of the text each fired rule points at, as ready-made lines. Deterministic (heuristics only): the same text gives the same lines. Sensitive data yields field, line and kind only, never the value; a snippet is shown only when it passes the redaction rules untouched.
- expired
- Has the fixed
asked_at + timeoutdeadline passed? - fallback_
text - What
use fallbackposts, as(title, description): neutral text for a field withheld for language, the redacted text for one withheld only for sensitive data. The one place that decides it, for both the question’s CHANGED version and the posting itself (which still runsprepare_withover it, a no-op on already redacted text).title/bodyare the original texts; a field that is not withheld comes back redacted too. - 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, for each withheld field, the ORIGINAL text exactly as
written next to the CHANGED text
use fallbackwould post. The question lives only in the local UI, so the original is not redacted here; nothing of it goes to a notification, GitHub or the event log.rejectedcarries the categories of an owner-supplied title that failed the gate (a retry). - 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.