[#369] 🤖 - Enforce localized productagent responses - #369
Conversation
|
To preview the documentation for this pull request, visit the following URL:
|
1 similar comment
|
To preview the documentation for this pull request, visit the following URL:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #369 +/- ##
===========================================
+ Coverage 90.94% 92.11% +1.17%
===========================================
Files 135 640 +505
Lines 6251 16442 +10191
Branches 1338 4244 +2906
===========================================
+ Hits 5685 15146 +9461
- Misses 172 523 +351
- Partials 394 773 +379
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Current status: Overall coverage is partial; this snapshot does not prove that all of its findings are resolved.
Last reconciled onb47ff20. See aggregate Bugbot status.
🤖 Bugbot review snapshot
Bugbot reported 1 potential problem(s) when commit 8fd0046 was analyzed. This snapshot is historical; use the status block above for current state. 1 finding(s) are linked to changed code.
Findings
- medium: Unchanged status is persisted when no previous recommendation exists —
src/application/usecases/actions/recommend_steps_result_policy.ts:63
Bugbot: review incomplete
Incomplete coverage
|
📌 Summary
Enforces an exact canonical
outputLocalecontract for product-facing agent responses and rejects invalid or mismatched responses before GitHub publication or state mutation. Recommendation responses now use typed structured results instead of output sentinels and duplicated headings.🎯 Related Issues / Tickets
🧩 Scope of Changes
outputLocalefields and typed recommendation response statuses.unchangedresponses.NO_NEW_RECOMMENDATIONSoutput sentinel.🛠️ Technical Details
outputLocale, and every prompt requires the agent to echo the exact canonicaltargetLocale.locale.output-invalidapplication error while retaining unchanged state.status: recommendation | unchangedwith nullablesteps, allowing workflows to produce semantic results without parsing agent-output sentinels or adding duplicate headings.targetLocaleandoutputLocale.🔍 How to Test
pnpm testand confirm the locale policy, response schemas, workflow behavior, prompt contracts, Bugbot lifecycle, and architecture boundary tests pass.pnpm typecheckandpnpm lint.graphify update ..outputLocalemetadata from an agent and confirm the operation fails before publication or state mutation.status: unchangedandsteps: nulland confirm no duplicate recommendation comment is created.🧪 Test Coverage
🚀 Deployment Notes
Details:
No database migration, environment variable change, or feature flag is required. Generated bundles are included and must remain synchronized with the source changes.
🔒 Security Considerations
Agent-generated product content is treated as untrusted until its structured response and exact canonical locale are validated. Invalid output is rejected before GitHub comments, reviews, descriptions, labels, or recommendation state can change.
📈 Performance Impact
The change adds bounded schema and locale checks to existing agent workflows without changing the overall workflow model or introducing additional publication operations.
📝 Notes for Reviewers
Please verify that every product-facing agent task remains represented in
PRODUCT_FACING_AGENT_TASKS, has a requiredoutputLocaleschema property, and validates output before its publication boundary. Pay particular attention to locale inheritance for issue and pull-request surfaces and to the semanticunchangedrecommendation path.✅ Checklist
📚 Additional Context
The change updates source code, prompts, workflows, schemas, documentation, specifications, tests, and generated bundles so the locale contract remains consistent across all product-facing agent boundaries.