Skip to content

Anthropic rules update#1344

Open
aperez-worklytics wants to merge 4 commits into
rc-v0.6.8from
anthropic_rules_update
Open

Anthropic rules update#1344
aperez-worklytics wants to merge 4 commits into
rc-v0.6.8from
anthropic_rules_update

Conversation

@aperez-worklytics

@aperez-worklytics aperez-worklytics commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Rules updated for Claude and Claude Enterprise Analytics:

Fixes

Psoxy updated

Features

paste links to issues/tasks in project management

Logistics

paste links to issues/tasks in project management

Change implications

  • dependencies added/changed? no
  • something important to note in future release notes?
    • NOTE in CHANGELOG.md anything that will show up in terraform plan/apply that isn't
      obviously a no-op?
    • breaking changes? if in module/example that is NOT marked alpha, requires major version
      change

Copilot AI 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.

Pull request overview

Updates the Anthropics connector rules/docs to reflect recent API schema changes: removing a deprecated Claude chat field and expanding Claude Enterprise Analytics metrics + field mappings.

Changes:

  • Removed deprecated organization_id from Claude chat/chat-message response schemas and sanitized examples.
  • Updated Claude Enterprise Analytics schema to add new metric groups/fields and rename tool action fields to *_count.
  • Refreshed Claude Enterprise Analytics example responses to match the updated metric/tool-action shapes.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
docs/sources/anthropic/claude/example-api-responses/sanitized/chats-response.json Removes deprecated organization_id from sanitized chat-list example.
docs/sources/anthropic/claude/example-api-responses/sanitized/chat-messages-response.json Removes deprecated organization_id from sanitized chat detail/messages example.
docs/sources/anthropic/claude/claude.yaml Drops deprecated organization_id from Claude chat response schemas/definitions.
docs/sources/anthropic/claude-enterprise-analytics/example-api-responses/sanitized/users.json Updates sanitized users analytics example with new metrics/tool-action field names (but currently misses last_activity_date).
docs/sources/anthropic/claude-enterprise-analytics/example-api-responses/original/users.json Updates original users analytics example formatting/fields (but currently misses last_activity_date).
docs/sources/anthropic/claude-enterprise-analytics/claude-enterprise-analytics.yaml Adds new metrics definitions/fields and renames tool-action properties; introduces last_activity_date.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 7 to 8
},
"chat_metrics": {
Comment on lines 121 to 122
},
"chat_metrics": {
"data": [
{
"user": { "id": "user_abc123", "email_address": "alice@example.com" },
"date": "2026-06-01",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That was an internal field not present in the model. Removed a couple of weeks ago but it appears now as I didn't update the rules for that minor change at that time

"multi_edit_tool": { "accepted": 3, "rejected": 0 },
"write_tool": { "accepted": 5, "rejected": 1 },
"notebook_edit_tool": { "accepted": 0, "rejected": 0 }
"edit_tool": { "accepted_count": 10, "rejected_count": 2 },

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

These are the important changes

"dispatch_turn_count": 0, "skills_used_count": 0, "distinct_skills_used_count": 0,
"connectors_used_count": 0, "distinct_connectors_used_count": 0
}
"connectors_used_count": 0, "distinct_connectors_used_count": 0,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

And adding other fields that we don't have mapped in the schema

"name":"{\"length\":31,\"word_count\":3}",
"created_at":"2025-06-07T08:09:10Z",
"updated_at":"2025-06-07T08:09:11Z",
"organization_id":"org_abc123",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is marked as deprecated in the API since months ago. Dropped from our model.

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.

2 participants