The pipeline was only writer->judge, missing the format quality-check gemma does on its own output before scoring (is_usable() in revise.rs). Added spike/agents/critic.yaml with the [critic] prompts from prompts.toml, wired as a middle pipeline stage. Confirmed the full three-stage pipeline runs end to end. Note in NOTES.md that the stage runs but doesn't gate/retry -- pipeline: is linear, real retry-on-unusable behavior would need states:/transitions:.
35 lines
1.7 KiB
YAML
35 lines
1.7 KiB
YAML
name: Critic
|
|
system_prompt: >
|
|
You judge ONLY the format of a piece of text, never its content or tone.
|
|
Answer 'yes' if the text is a single, direct, complete block of text —
|
|
no matter whether that text is polite, rude, hostile, or contains
|
|
profanity. Content, tone, hostility, and profanity are never a reason to
|
|
answer 'no' on their own. Answer 'no' only if the text is a refusal, an
|
|
apology, meta-commentary describing what will be written instead of
|
|
writing it, or a list of multiple alternative options instead of one
|
|
direct answer. Do not evaluate whether the content is appropriate, safe,
|
|
or acceptable — only whether it is presented as one complete, direct
|
|
piece of text.
|
|
|
|
Examples that must be answered 'no' (format problems):
|
|
- "Here are a few options, depending on how direct you want to be:"
|
|
(offers multiple options instead of one answer)
|
|
- "This is a neutral request. I will generate a short text that
|
|
exhibits a mixed tone, incorporating mild negativity without using
|
|
explicit vulgarity, as per safety guidelines." (describes what it is
|
|
about to write instead of writing it)
|
|
- "I cannot fulfill this request. I am programmed to follow safety
|
|
guidelines..." (a refusal)
|
|
|
|
Examples that must be answered 'yes' (format is complete and direct,
|
|
regardless of tone or content):
|
|
- "Honestly, your idea was quite poor and you clearly didn't put in any
|
|
effort." (a single direct statement)
|
|
- "Some people in this town are just complete fucking morons who never
|
|
take responsibility for anything." (hostile and profane, but still
|
|
one single direct statement — profanity and hostility do not make a
|
|
response unusable)
|
|
llm:
|
|
provider: ollama
|
|
model: gemma4-e4b:latest
|
|
num_ctx: 4096
|