fix(agent): keep public-safe packets free of private evidence - #892
Conversation
|
Note Gittensory Gate skippedPR closed before full evaluation. No late first comment was created.
💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers. |
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #892 +/- ##
=======================================
Coverage 96.71% 96.71%
=======================================
Files 108 108
Lines 14641 14643 +2
Branches 5298 5299 +1
=======================================
+ Hits 14160 14162 +2
Misses 102 102
Partials 379 379 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
gittensory · advisory review Reviewed 2 changed file(s) — two independent AI reviewers. Changed files: Suggested action: ✅ Safe to merge — both reviewers found no blocking issues. Reviewer A · Suggestions
Worth double-checking
Reviewer B · Suggestions
Worth double-checking
|
Motivation
public_safeby ensuring recommendation evidence is not serialized into public-safe action payloads.Description
actionRecordinsrc/services/agent-orchestrator.tsto only attachpayload.recommendationEvidencewhen the actionsafetyClassis notpublic_safe(preserving evidence for private actions).prepare_pr_packetbehavior aspublic_safewhile removing attachedlocalBranchEvidencefrom the returned public payload by making evidence injection conditional onsafetyClass.test/unit/agent-orchestrator.test.tsto verify thatprepare_pr_packetactions remainpublic_safeand that theirpayloaddoes not includerecommendationEvidenceor private score terms.Testing
npm run typecheckwhich completed successfully.npx vitest run test/unit/agent-orchestrator.test.ts, all tests passed (1 test file, 17 tests).git diff --check) were run as part of validation and reported no issues.Codex Task