TypeSpec remediation skill for Python

Open
#49,990 0 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
28/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
github, python

Research direction

Read the shared remediation contract in Azure/azure-rest-api-specs#48168 and the dependent review skill issue #49969 first; the skill path is still a placeholder, and the maintainers and CODEOWNERS are unconfirmed. Build the guidance skill and historical findings evals, including routing uncertain findings to manual investigation, then run the evals in CI. Done means the language team confirms the skill meets the contract, documents its supported planes, and approves the evidence and ownership.

Written by the indexing model from the issue text.

Description

needs-triage

Parent: https://github.com/Azure/azure-rest-api-specs/issues/48167
Repository: Azure/azure-sdk-for-python
Depends on: #49969 (generated SDK review skill)

Language-team ownership

  • Language owner completing this issue:
  • Remediation skill maintainers:
  • CODEOWNERS paths or team: <paths/team>

Summary

Author and maintain a TypeSpec remediation skill that takes the findings from the Python review skill and maps each one to where the spec author (or SDK team) should fix it.

This skill consumes the review skill's output, so it depends on #49969. The initial phase is guidance only. The pipeline never edits the spec PR or the SDK repo.

Shared skill contract

The central invocation, input, output, and trusted-validation contracts are defined in Azure/azure-rest-api-specs#48168.

The language team owns the skill's internal design, rules, supporting tools, and methodology. Central integration requires only that the skill satisfies the shared remediation contract within the provided read-only execution environment.

Deliverable: TypeSpec remediation skill

Location: .github/skills/<remediation-skill-name>/SKILL.md

  • Accepts the immutable review result and typespec-review-context.json supplied by the central workflow.
  • Returns the versioned TypeSpec remediation result defined in Azure/azure-rest-api-specs#48168.
  • Maps every review finding exactly once without adding, removing, or rewriting findings.
  • Produces guidance only and does not edit or regenerate code.

Evidence and evals

  • A small set of historical findings with known accepted fixes (TypeSpec, client.tsp, SDK-repository customization, or manual).
  • Examples for every plane supported by the review skill, or a documented subset with gaps and follow-up ownership.
  • Evals confirm that each finding is routed to the expected target and that uncertain cases go to manual-investigation.
  • Evals run in CI in this repository.
  • Evidence links and expected outcomes are reviewed by the language-team maintainers.

Pilot packages

Uses the pilot packages selected in #49969.

Maintenance

  • Named maintainers for the remediation skill (added to CODEOWNERS for the skill folder).
  • Process for updating the skill as client.tsp decorators, emitter options, or SDK customization mechanisms change.

Completion criteria

  • The skill path is final and owned by the language team.
  • The skill satisfies the shared remediation contract in Azure/azure-rest-api-specs#48168.
  • Supported planes match the review skill or are a documented subset.
  • Historical examples and evals are reviewed and passing.
  • Maintainers and CODEOWNERS are confirmed.
  • The language team confirms the skill is ready for central remediation integration.

Out of scope

Generated SDK review (tracked in #49969), central workflow implementation, PR publication, blocking checks, applying fixes, and regeneration.

Dominant language
Python
Stars
5.6k
Forks
3.4k
Avg merge
1d 22h
Merged PRs (30d)
189

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Azure/azure-sdk-for-python

All issues in Azure/azure-sdk-for-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.