sync-preview: merge main into preview#1057
Conversation
* refactor: move harness resources to .github/harness/ Move PR reviewer harness files into a dedicated .github/harness/ directory, separate from the general .github/scripts/ used by Strands workflows. - Move harness_review.py, prompts/ to .github/harness/ - Add Dockerfile for the harness container (dual-token: CLONE_TOKEN for git clones, GITHUB_TOKEN for gh CLI/PR comments) - Add README documenting the harness directory - Update pr-ai-review workflow to reference new path - Update .prettierignore for new prompts location * fix(harness): update Dockerfile comment to accurately describe token handling Tokens are baked into image layers at build time — the previous comment incorrectly implied they were not stored. Updated to make the security posture explicit: the image itself must be treated as a secret. * refactor(harness): use boto3 invoke_harness instead of raw SigV4 HTTP Replace manual SigV4 signing + urllib3 + EventStreamBuffer parsing with the native boto3 bedrock-agentcore client's invoke_harness method. This simplifies the code significantly and leverages the typed event stream response from the SDK. Rejected: keep raw HTTP approach | boto3 now supports invoke_harness natively Confidence: high Scope-risk: narrow Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This reverts commit aef3890.
…voke_harness - Move harness_review.py, prompts/ to .github/harness/ - Add Dockerfile for the harness container (dual-token setup) - Add README documenting the harness directory - Update pr-ai-review workflow to reference new path - Replace manual SigV4 signing + urllib3 with native boto3 invoke_harness - Update .prettierignore for new prompts location
chore: reland harness refactor without co-author metadata
Wrap the invoke_harness_streaming call in a try/except so boto3 errors (bad credentials, network issues, invalid ARN) produce a clean error message instead of a raw traceback in GitHub Actions logs.
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Coverage Report
|
|
The previous SigV4-based parser treated any event with A couple of ways to fix:
(Minor side note while you're in there: the new |
Release v0.12.2
# Conflicts: # CHANGELOG.md # package-lock.json # package.json
Description
Merge main into preview — includes harness Dockerfile and review script refactor.
Type of Change