fix(cron): tighten [SILENT] instruction to prevent report-with-silent-prefix (#3901)

The model was interpreting [SILENT] as a metadata prefix and writing
full reports with [SILENT] slapped at the front. The old instruction
said 'optionally followed by a brief internal note' which gave too
much room. New instruction explicitly says: [SILENT] means nothing
else, do NOT combine it with a report.
This commit is contained in:
Teknium
2026-03-30 00:11:00 -07:00
committed by GitHub
parent 138ea3fbe8
commit a4b064763d

View File

@@ -236,11 +236,12 @@ def _build_job_prompt(job: dict) -> str:
# Always prepend [SILENT] guidance so the cron agent can suppress # Always prepend [SILENT] guidance so the cron agent can suppress
# delivery when it has nothing new or noteworthy to report. # delivery when it has nothing new or noteworthy to report.
silent_hint = ( silent_hint = (
"[SYSTEM: If you have nothing new or noteworthy to report, respond " "[SYSTEM: If you have a meaningful status report or findings, "
"with exactly \"[SILENT]\" (optionally followed by a brief internal " "send them — that is the whole point of this job. Only respond "
"note). This suppresses delivery to the user while still saving " "with exactly \"[SILENT]\" (nothing else) when there is genuinely "
"output locally. Only use [SILENT] when there are genuinely no " "nothing new to report. [SILENT] suppresses delivery to the user. "
"changes worth reporting.]\n\n" "Never combine [SILENT] with content — either report your "
"findings normally, or say [SILENT] and nothing more.]\n\n"
) )
prompt = silent_hint + prompt prompt = silent_hint + prompt
if skills is None: if skills is None: