aws-samples / aws-samples/sample-autonomous-cloud-coding-agents

enhancement(registry): tighten adapter types, comments, and lifecycle coverage

Abierto
#783 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

enhancement registry
Lenguaje dominante
TypeScript
Estrellas
146
Forks
46
Merge medio
3 d 10 h
PR fusionados (30 d)
24

Descripción

Context

Consolidated non-blocking clarity and coverage follow-ups from the final review of PR #779.

Comment and documentation corrections

  • Distinguish MCP _meta storage from SKILL x-abca-runtime frontmatter in the adapter header.
  • Correct the claim that duplicate YAML keys are parser errors under js-yaml with { json: true }; the emitter prevents key injection by quoting/escaping caller-controlled values.
  • Include SKILL in the resolve path commentary.
  • Clarify that waitPastCreating waits only until the record leaves CREATING, not until a terminal lifecycle state.
  • Clarify that autoApprove gates only the final approval call; create and submit always occur.

Type cleanup

  • Evaluate a discriminated representation linking registry kind to its payload variant instead of a broad kind: string shape.
  • Simplify DeleteAttempt to the states its consumers need, or document why all current states are valuable.

Keep any public RegistryClient port change separately reviewable and compatible with the architecture boundary.

Coverage gap

Add a delete-lifecycle test proving isComplete rethrows a non-retryable, non-404 GetRegistry failure rather than treating it as absent or retryable.

References

  • PR #779
  • cdk/src/handlers/shared/registry/agent-registry-client.ts
  • cdk/src/handlers/registry-provisioning/index.ts

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Lee cdk/src/handlers/shared/registry/agent-registry-client.ts y cdk/src/handlers/registry-provisioning/index.ts, usando PR #779 como contexto. Traza el ciclo de vida de eliminación y el límite de RegistryClient antes de evaluar los cambios de tipos. Se considera terminado cuando los comentarios son precisos, los tipos de los adaptadores reflejan a sus consumidores y la cobertura demuestra que los fallos de GetRegistry no reintentables que no sean 404 se vuelven a lanzar.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
typescript
Área
backend, testing
Tipo de issue
Refactorización
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Activo
Claridad
Bastante claro
Aptitud para principiantes
48/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.