Skip to content

fix(instructions): prevent model from echoing injected banner#603

Open
Tanmay9223 wants to merge 2 commits into
DietrichGebert:mainfrom
Tanmay9223:fix-595-no-self-reference
Open

fix(instructions): prevent model from echoing injected banner#603
Tanmay9223 wants to merge 2 commits into
DietrichGebert:mainfrom
Tanmay9223:fix-595-no-self-reference

Conversation

@Tanmay9223

Copy link
Copy Markdown
Contributor

🎯 What: Adds a "no self-reference" rule to the canonical AGENTS.md, skills/ponytail/SKILL.md, and fallback instructions.
💡 Why: To prevent the model from echoing the injected ponytail banner as fake hook output (e.g. inventing a _ctx_hook or <system-reminder>) when it receives an instruction-only prompt.
Verification: Re-synced all rule copies using scripts/check-rule-copies.js, added a check for the new rule invariant, and verified all tests pass (npm test).
Result: The model will no longer hallucinate fake hook logs or echo the instructions back when invoked via a skill or on an empty turn.

Closes #595

…etrichGebert#438)

Update the skills/ponytail-help/SKILL.md documentation which

incorrectly stated that OpenCode ships 2 commands. It now accurately

states that OpenCode ships all 6 commands.

Re-run scripts/build-openclaw-skills.js to sync the updated

documentation to the generated .opencode/command/ponytail-help.md

file so tests pass.
…ietrichGebert#595)

Add a "no self-reference" rule to the canonical AGENTS.md, the ponytail
SKILL.md, and the fallback instructions. This prevents the model from
hallucinating fake hook output when no conversational prompt is given.

- Add the rule to skills/ponytail/SKILL.md
- Add the rule to hooks/ponytail-instructions.js
- Update AGENTS.md and all per-platform rule copies
- Add invariant check to scripts/check-rule-copies.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add "no self-reference" rule to SKILL.md - model echoes injected banner as fake hook output

1 participant