Skip to content

feat: rename opsai-incident-triage and opsai-capacity-cost to *-for-ai-workloads - #322

Closed
ankitsri-aws wants to merge 1 commit into
aws:mainfrom
ankitsri-aws:opsai-updates
Closed

ankitsri-aws wants to merge 1 commit into
aws:mainfrom
ankitsri-aws:opsai-updates

Conversation

@ankitsri-aws

Copy link
Copy Markdown
Contributor

Description

Renames two skills and carries over their content and eval results:

  • opsai-incident-triage → incident-triage-for-ai-workloads, with a new description and metadata.summary.
  • opsai-capacity-cost → capacity-and-cost-analysis-for-ai-workloads.

The old folders are removed, so validate-skills reports two removed-folder errors and needs the skip-validate-skills label.

Also in this PR:

  • Incident triage reads a throttling or quota finding's quota with one GetServiceQuota call by code, instead of paging ListServiceQuotas.
  • Capacity and cost adds api-quirks.md section 23 (latency-optimized throttles are published under the base model ID) and the Nova Pro V1 latency-optimized quota codes to quota-codes.md.
  • llms.txt and the skill-policies template text use the new names. The EnableOpsaiIncidentTriage and EnableOpsaiCapacityCost parameter names are unchanged, so existing stacks keep working.
  • docs/hooks/skills_catalog.py: ai added to the display-name acronyms.

Type of change

  • New skill
  • New custom agent
  • New MCP server
  • Update to an existing skill, agent, or MCP server
  • Documentation or infrastructure change

Required before review

  • Repository layout is correct — skills in /skills, MCP servers in /mcp, custom agents in /custom-agents; skills and MCP servers are never mixed in one directory.
  • A domain SME has reviewed and signed off. A named subject-matter expert for this domain — someone other than the author — has reviewed the tool for technical correctness and approved it in this PR. Required for any change to what the tool tells the agent; an edit that changes no technical claim can be marked n/a with the reason, as CONTRIBUTING.md describes.
  • Evaluation evidence is included (see Testing).
  • No internal-only or proprietary content — no internal hostnames, account IDs, customer names, ticket numbers, internal URLs, or secrets in the tool, its examples, or its tests.
  • README is complete — prerequisites, setup/deployment, and at least one sample prompt or usage example.
  • CHANGELOG updated and the version bumped.
  • Named owner for ongoing maintenance.

Testing

  • structure checks pass.
  • best-practices run across multiple iterations, with consistent results.
  • functional run with and without the change, so the difference in the agent's behavior is visible.
  • evals/evals.json includes positive cases (should trigger) and at least one negative case (should not trigger on unrelated input).

Eval results are carried over from the opsai-* runs. Locally: validate_skill_evals.py passes for both skills, 399 unit tests pass, mkdocs build --strict passes and the AWS identifier scan has no findings.

Skills — complete if this PR adds or changes a skill

  • SKILL.md frontmatter is valid: name matches the directory, description present and within length limits, body at most 500 lines.
  • The description is written from the agent's point of view — scenarios, services, error types, symptoms.
  • Scoped to a specific agent type in metadata.aws-devops-agent-skills.agent-types (INCIDENT_RCA, INCIDENT_TRIAGE, INCIDENT_MITIGATION, …), not left GENERIC without reason. n/a: unchanged from the opsai skills; both serve chat and investigations, so they stay GENERIC.
  • Procedures are structured as decision trees on real conditions, not flat prose.
  • Reference material lives in references/ or assets/ and loads on demand.
  • Non-executable content only — no scripts or code in the skill directory. Deterministic compute belongs in an MCP server.

Security and safety

  • Read-only by default; any action that changes customer state is explicit, documented, and approval-gated.
  • Customer data stays in the customer's account.
  • No destructive operations without an explicit, documented confirmation step.

License confirmation

  • By submitting this pull request, I confirm that my contribution is made under the terms of the Apache License 2.0.

…i-workloads

Renames two skills:

- opsai-incident-triage -> incident-triage-for-ai-workloads (1.0.0), with a
  new description and metadata.summary.
- opsai-capacity-cost -> capacity-and-cost-analysis-for-ai-workloads (1.0.0).

The old folders are removed. Skill content and eval results carry over.
llms.txt and the skill-policies template text use the new names; the
EnableOpsaiIncidentTriage and EnableOpsaiCapacityCost parameter names are
unchanged so existing stacks keep working. docs: "ai" added to the
display-name acronyms.

Also, from the DevOps Agent service team:
- incident-triage-for-ai-workloads: a throttling or quota finding uses
  capacity-and-cost-analysis-for-ai-workloads for the quota (one
  GetServiceQuota call by code) instead of paging ListServiceQuotas or
  handing it to a sub-agent. The related-skills fallback no longer pages
  ListServiceQuotas and reads the latency-optimized quota and both metric
  series.
- capacity-and-cost-analysis-for-ai-workloads: api-quirks section 23,
  latency-optimized throttles are published under the base model ID.
  quota-codes.md adds the latency-optimized form and the Nova Pro V1
  latency-optimized RPM (L-98317D9C) and TPM (L-BF13118E) codes, checked
  live in us-east-1 and us-west-2.
@github-actions github-actions Bot added the needs-checklist PR checklist incomplete — not reviewed until resolved label Nov 27, 2026
@github-actions

Copy link
Copy Markdown

This PR is on hold — checklist incomplete

Required items in the PR description are unchecked. A maintainer will not review this PR until each one is checked and actually done.

The check's summary lists them. Complete the work, tick the boxes, and this clears automatically. CONTRIBUTING.md explains each item.

@ams-thakkar ams-thakkar 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.

Approving as a one-time exception for re:Invent. This rename removes the two opsai-* folders rather than deprecating them, which validate-skills flags, and it carries over eval results recorded before the new incident-triage description. Future renames follow the repo process.

What I verified on f21ca62: apart from the changes listed in the description, the moved files are unchanged. The template's parameters, policies and actions are untouched. validate_skill_evals passes for both skills, the AWS identifier scan is clean, 399 tests pass, and mkdocs build --strict has 0 warnings.

@ankitsri-aws

Copy link
Copy Markdown
Contributor Author

Closing in favour of a new PR that keeps the existing skill folders and adds a title to each instead of renaming them. Link to follow.

@ankitsri-aws

Copy link
Copy Markdown
Contributor Author

Replaced by #323.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-checklist PR checklist incomplete — not reviewed until resolved

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants