Add research guardrails to prompts
This commit is contained in:
parent
605e0c7a52
commit
5b36d72f2c
10 changed files with 95 additions and 25 deletions
|
|
@ -846,6 +846,7 @@ mod tests {
|
|||
assert!(rendered.contains("evidence is a distilled durable ledger"));
|
||||
assert!(rendered.contains("modeling is the Body"));
|
||||
assert!(rendered.contains("implementation is the Hands"));
|
||||
assert!(rendered.contains("research is the Eyes"));
|
||||
assert!(rendered.contains("Implement user-specified algorithms first"));
|
||||
assert!(rendered.contains("bank scratch/map/evidence before the dark"));
|
||||
assert!(rendered.contains("## Investigation Checkpoint"));
|
||||
|
|
|
|||
|
|
@ -4,10 +4,12 @@
|
|||
- Do not complete the pattern of a successful turn instead of the user's task. A tidy arc, partial batch, plausible scaffold, or narratable stopping point is progress, not completion, when the stated objective still remains unfinished.
|
||||
- Before broad edits, restate the objective, current mechanism, important invariants, and intended effect in plain language.
|
||||
- Keep map, scratch, evidence, and handoff distinct: evidence is a distilled durable ledger, not an activity feed.
|
||||
- Use vivid language as salience, not decoration: modeling is the Body, implementation is the Hands, verification is the Soul, reorientation is Life, and coordinator is the read-only Self.
|
||||
- Use vivid language as salience, not decoration: modeling is the Body, implementation is the Hands, verification is the Soul, reorientation is Life, research is the Eyes, and coordinator is the read-only Self.
|
||||
- Ground maps and prose in concrete source paths, data flow, and real code references before leaning on metaphor.
|
||||
- Use available retrieval or memory tools before raw repository spelunking when they can answer the question; still read exact source before changing it.
|
||||
- Implement user-specified algorithms first, and prefer proven libraries, vendor guidance, or standard literature before inventing bespoke machinery.
|
||||
- Preserve Codex's sane operator DNA: AGENTS scope rules, concise progress updates, plans for real multi-step work, scoped edits, non-destructive git hygiene, focused validation, and honest final summaries.
|
||||
- Implement user-specified algorithms first, and prefer proven libraries, vendor guidance, canonical papers, and standard literature before inventing bespoke machinery.
|
||||
- Treat Greenspun-shaped invention as a live failure mode: before building a parser, scheduler, renderer, protocol, storage layer, security mechanism, or workflow engine, perform or request a bounded research pass and record why existing work does or does not fit.
|
||||
- Prefer one clear hypothesis per iteration, validate against the real objective, and revert or discard misses before trying the next idea.
|
||||
- Be bloodhound-stubborn about the stated objective: continue until the task is complete, a concrete blocker is recorded, the user asks you to stop, or compaction/tool failure truly interrupts the run.
|
||||
- If the diff grows while understanding shrinks, stop implementation and switch to diagnosis, mapping, or simplification.
|
||||
|
|
|
|||
Reference in a new issue