Repository navigation
fix(prompt): deliver the harness through appendSystemPrompt so bridge providers receive it - #1497
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (11)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthroughThe gentle-ai and gentle-todo hooks now append prompt content through ChangesPrompt injection
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Bug fix · Severity of issue fixed: Medium Suggested reviewers: Merge Risk: ⚪ Minimal · up to The prompt-routing change is ready to merge after normal checks; no actionable issue remains established. Security Architecture ReviewSecurity architecture risk: 🟡 Moderate · up to Task descriptions may gain instruction-level influence on a provider that previously did not receive them. The change is limited to active sessions, but the receiving provider’s authority rules have not been verified. Retained concerns
Security review detailsSecurity Blast Radius
Security Findings and Attack Paths
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 10.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 10 functions across 9 files. (2 skipped: 2 unsupported.)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Linked Issue
Closes #1485
PR Type
Summary
gentle-aiandgentle-todonow deliver theirbefore_agent_starttext by appending toevent.systemPromptOptions.appendSystemPromptinstead of returning a replacementsystemPrompt.pi-claude-bridgeforwards only the structuredsystemPromptOptionsparts, so underclaude-bridgethe harness (ODD workflow, visible todo projection, review contract, persona, RDD status) and the open-tasks block now reach the model.docs/extensions.md: prefer changing prompt sections over returningsystemPrompt) and adds no bridge-specific handling.Changes
lib/append-system-prompt.tsappendSystemPromptOncehelperextensions/gentle-ai.tsappendSystemPrompt; handler returnsundefinedextensions/gentle-todo.tsappendSystemPrompttests/append-system-prompt.test.tstests/append-system-prompt-route.test.tsappendSystemPrompt, in registration order, without duplicationtests/review-contract-prompt.test.ts,tests/gentle-todo.test.tstests/telemetry-trigger.test.ts,tests/runtime-harness.mjstests/odd-routing-contract.test.tsdocs/gentle-shell.mddocs/review-integration.mdis byte-pinned and stays unchanged)odd/tasks/fix-1485-append-system-prompt.mdTest Plan
node --experimental-strip-types --test tests/*.test.ts: 3876 pass, 0 fail, 43 skipped (pre-existing Windows-native skips).node --experimental-strip-types tests/runtime-harness.mjs: exit 0.node scripts/check-provider-contract.mjs: pass.node scripts/check-types.mjs: no regressions.gentle-shell -p --no-session --model claude-bridge/claude-opus-5-5: asked whether the instructions contain "Default workflow: Organic Driven Development". This branch: yes. Installed release: no.openai-codex/gpt-5.5on this branch: the phrase is present exactly once (no duplication on native providers).Notes
before_agent_start(agent-session.js_preparePromptAndToolLoadout), one fresh options object per run, so appends never accumulate across turns.appendSystemPromptrenders as the finaladdendumsection.gentle_odd_phaseafter ODD step 7. It previously lived only inassets/orchestrator-delegation.md, so no provider received it; live underclaude-bridgethe model now states when to call it.Contributor Checklist
status:approvedtype:*labelCo-Authored-BytrailersSummary by CodeRabbit
Bug Fixes
Documentation