feat: wire telemetry into all remove.* commands#1069
feat: wire telemetry into all remove.* commands#1069Hweinstock wants to merge 1 commit intoaws:mainfrom
Conversation
|
/strands review |
89d3db7 to
7cbfdc9
Compare
7cbfdc9 to
9e49ed7
Compare
9e49ed7 to
5c078b8
Compare
5c078b8 to
30ec334
Compare
30ec334 to
af77f7d
Compare
af77f7d to
5ac07cb
Compare
Additional Context on the Blocking IssueTo clarify: However, since:
...it would be most consistent to address Options:Option A (Recommended): Add
Option B: Explicitly document that
Let me know which approach you prefer! |
5ac07cb to
2f065b0
Compare
Overall AssessmentCode Quality: ✅ Excellent This PR demonstrates strong software engineering practices:
Architecture: ✅ Sound The telemetry wiring correctly separates concerns:
Completeness: The only issue is the Great work overall! The implementation is solid and the pattern is maintainable. 🎉 |
|
Reviewed the diff end-to-end and didn't find any merge-blocking issues. The CLI path refactor in One minor note (non-blocking): the PR description says LGTM. |
2f065b0 to
9ecf1be
Compare
9ecf1be to
304bda5
Compare
304bda5 to
86abe2d
Compare
Description
Wire telemetry
withCommandRun()into allremove.*CLI command handlers and TUI remove flows, following the same pattern established in #1050 foradd.*commands.CLI paths use
cliCommandRunwhich wraps the action handler with telemetry recording, error formatting, andprocess.exit. TUI paths use a newwithTuiTelemetryhelper (generalized fromwithAddTelemetry) that wraps each remove operation.Supporting changes:
withAddTelemetrygeneralized towithTuiTelemetry— works for any{ success: boolean }result type (add, remove, etc.).withAddTelemetrykept as deprecated alias.remove.alladded toCOMMAND_SCHEMASAll remove commands emit
NoAttrs(no command-specific attributes per the telemetry metric shape spec).Related Issue
N/A — continuation of #1050
Type of Change
Testing
npm run test:unitandnpm run test:integnpm run typechecknpm run lintadd-remove-resources.test.ts) verifying audit JSONL entries forremove.memory,remove.credential, andremove.policy-engineAGENTCORE_TELEMETRY_AUDIT=1→ confirmed success and failure entries in audit filesChecklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the
terms of your choice.