aws-samples / aws-samples/sample-autonomous-cloud-coding-agents
enhancement(registry): tighten adapter types, comments, and lifecycle coverage
Nadie ha tomado este issue todavía.
- 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
_metastorage from SKILLx-abca-runtimefrontmatter in the adapter header. - Correct the claim that duplicate YAML keys are parser errors under
js-yamlwith{ json: true }; the emitter prevents key injection by quoting/escaping caller-controlled values. - Include SKILL in the
resolvepath commentary. - Clarify that
waitPastCreatingwaits only until the record leavesCREATING, not until a terminal lifecycle state. - Clarify that
autoApprovegates only the final approval call; create and submit always occur.
Type cleanup
- Evaluate a discriminated representation linking registry
kindto its payload variant instead of a broadkind: stringshape. - Simplify
DeleteAttemptto 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.tscdk/src/handlers/registry-provisioning/index.ts
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- 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