fix(harness): add prompt preamble and stop rules - #358
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📜 Recent review details⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (12)
🧰 Additional context used🧠 Learnings (12)📓 Common learnings📚 Learning: 2026-04-28T06:47:23.328ZApplied to files:
📚 Learning: 2026-04-24T17:08:46.780ZApplied to files:
📚 Learning: 2026-04-27T12:59:49.844ZApplied to files:
📚 Learning: 2026-04-24T05:39:58.329ZApplied to files:
📚 Learning: 2026-04-24T03:51:56.211ZApplied to files:
📚 Learning: 2026-04-28T06:51:58.496ZApplied to files:
📚 Learning: 2026-04-28T07:28:17.158ZApplied to files:
📚 Learning: 2026-04-28T08:14:35.518ZApplied to files:
📚 Learning: 2026-04-27T10:33:12.228ZApplied to files:
📚 Learning: 2026-04-26T15:35:36.505ZApplied to files:
📚 Learning: 2026-04-25T12:52:49.735ZApplied to files:
🔇 Additional comments (2)
📝 WalkthroughWalkthroughThis PR updates the PawWork system prompt to require a brief acknowledgment and declaration of the first step before multi-step/tool-driven work, and adds explicit stop rules covering when to stop tool use, a single-fallback strategy for empty/partial/unexpected tool results, and confirmation requirements for irreversible/external side-effect actions. Tests were updated to assert these prompt additions. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related issues
Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Review rate limit: 9/10 reviews remaining, refill in 6 minutes. Comment |
There was a problem hiding this comment.
Code Review
This pull request updates the pawwork.txt prompt instructions by adding guidelines for handling multi-step requests, implementing 'Stop rules' for tool execution, and requiring user confirmation for external side-effect actions. The system.test.ts file was updated to ensure these new instructions are present in the prompt. Feedback suggests consolidating the new confirmation rules with existing sections to eliminate redundancy and optimize token consumption.
Summary
Closes #355
Verification
bun --cwd packages/opencode test test/session/system.test.tsManual smoke checklist
Scope notes
This is intentionally prompt-only. It does not change
plan.txt,max-steps.txt, model defaults, reasoning effort, verbosity, tool schemas, Responses state replay, assistant-item phase handling, or runtime orchestration.pawwork.txtapplies through the defaultSystemPrompt.provider()path. Custom agent prompts remain outside this PR's scope.Summary by CodeRabbit
New Features
Tests