Skip to content

feat(audit): record read-only integration tool calls in tool.executed - #10725

Merged
waleedlatif1 merged 1 commit into
stagingfrom
feat/audit-read-tool-calls
Dec 3, 2026
Merged

waleedlatif1 merged 1 commit into
stagingfrom
feat/audit-read-tool-calls

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • tool.executed now records read-only integration tool calls made through the v2 API and Sim's MCP server, not just writes, so an admin can see who read a mailbox or repository through a coding agent
  • New metadata.effect (read | write) separates the two; a tool with no declared effect counts as a write, same as everywhere else
  • Unchanged: no inputs, outputs, or error text in the entry; calls refused before dispatch are still not recorded
  • Updated the audit-logs docs and the TOOL_EXECUTED doc comment

Type of Change

  • New feature

Testing

  • execute-tool.test.ts: 38/38 pass; the read test now asserts a read is recorded with effect: 'read' and no input copied
  • Red proofs: restoring the read skip fails the read test; hardcoding effect fails the write test
  • biome on changed files

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing (new tests pass the test-audit authoring gate)
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel

vercel Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Ready Ready Preview Dec 3, 2026 6:15pm UTC

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 4 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@waleedlatif1
waleedlatif1 merged commit 4a0c73d into staging Dec 3, 2026
72 of 73 checks passed
@waleedlatif1
waleedlatif1 deleted the feat/audit-read-tool-calls branch December 3, 2026 18:12
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

This branch was successfully deployed

1 active deployment
Preview — 3e75e6a5 Deployed Dec 3, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant