[repository-quality] Repository Quality Improvement Report — ADR-42150: dispatch-repository Key Canonicalization #43206
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
🎯 Repository Quality Improvement Report — ADR-42150 Implementation Gap
Analysis Date: 2026-07-03
Focus Area: ADR-42150 —
dispatch-repositoryKey CanonicalizationStrategy Type: Custom (run 32/32, 72% custom rate)
Executive Summary
ADR-42150 decided
dispatch-repository(hyphen) is the canonical safe-output key. Three pieces are already done: thesafe-output-dispatch-repository-keycodemod, the JSON schema alias, and the runtime parser. However the core source-of-truth fields — theSafeOutputsConfigyaml struct tag, the handler registry key inGH_AW_SAFE_OUTPUTS_HANDLER_CONFIG, user-facing validation error messages, and agent docs — still use the underscore form. The ADR cannot advance from Draft to Accepted until these 7 gaps are closed.Five targeted tasks below complete the canonicalization. Tasks 1–2 carry zero runtime risk; Task 3 requires verifying firewall handler-config compatibility.
Full Analysis Report
Metrics Collected:
SafeOutputsConfigyaml tag (safe_outputs_config.go:74)dispatch_repositorysafe_outputs_handler_registry.go:654)dispatch_repositorysamples_validation.goskip-list (:48)dispatch_repositorydispatch_repository_validation.go, 8×)compiler_validators.go:374)dispatch_repository.github/aw/safe-outputs-automation.mdtest-copilot-dispatch-repository.mdsafe-output-dispatch-repository-keyAreas for Improvement
SafeOutputsConfigstruct tag isyaml:"dispatch_repository,omitempty"— affectsyaml.Marshalround-trips."dispatch_repository"is emitted intoGH_AW_SAFE_OUTPUTS_HANDLER_CONFIG— the runtime contract.dispatch_repository_validation.goshow deprecated form in example YAML snippets.samples_validation.goskip-list uses underscore — will mismatch if runtime key changes..github/aw/safe-outputs-automation.mdsaysdispatch_repository (underscore, preferred)— contradicts ADR.🤖 Tasks for Copilot Agent
NOTE TO PLANNER AGENT: Split the following tasks into individual work items.
Task 1: Update validation error messages to use
dispatch-repositoryPriority: High | Effort: Small
Description: 8+
fmt.Errorfand log strings indispatch_repository_validation.goandcompiler_validators.goshow the deprecated underscore form in example YAML snippets shown to users.Acceptance Criteria:
pkg/workflow/dispatch_repository_validation.gousedispatch-repository:in message prefixes and YAML examplesnewValidationLogger("dispatch_repository")→newValidationLogger("dispatch-repository")compiler_validators.go:374logMessage and errPrefix usedispatch-repositorymake agent-report-progresspassesCode Region:
pkg/workflow/dispatch_repository_validation.go,pkg/workflow/compiler_validators.goTask 2: Update
SafeOutputsConfigyaml tag andsamples_validationkeyPriority: High | Effort: Small
Acceptance Criteria:
pkg/workflow/safe_outputs_config.go:74yaml tag isyaml:"dispatch-repository,omitempty"pkg/workflow/samples_validation.go:48entry is"dispatch-repository": truego test ./pkg/workflow/... -count=1passesCode Region:
pkg/workflow/safe_outputs_config.go,pkg/workflow/samples_validation.goTask 3: Rename handler registry key to
dispatch-repositoryPriority: Medium | Effort: Medium
Acceptance Criteria:
pkg/workflow/safe_outputs_handler_registry.go:654key is"dispatch-repository"pkg/workflow/safe_outputs_tools_generation.golog/comments usedispatch-repositorypkg/workflow/safe_outputs_config.go:496comment updatedgo test ./pkg/workflow/... -count=1passesCode Region:
pkg/workflow/safe_outputs_handler_registry.go,pkg/workflow/safe_outputs_tools_generation.goTask 4: Update
.github/aw/safe-outputs-automation.mdto canonical keyPriority: Medium | Effort: Small
Acceptance Criteria:
dispatch-repository:(hyphen)dispatch_repositoryis a deprecated alias; rungh aw fixmake agent-report-progresspassesCode Region:
.github/aw/safe-outputs-automation.mdTask 5: Migrate test workflow and accept ADR-42150
Priority: Low | Effort: Small
Acceptance Criteria:
pkg/cli/workflows/test-copilot-dispatch-repository.mdusesdispatch-repository:keydocs/adr/42150-make-dispatch-repository-canonical-safe-output-key.mdstatus isAcceptedmake recompilepassesCode Region:
pkg/cli/workflows/test-copilot-dispatch-repository.md,docs/adr/42150-make-dispatch-repository-canonical-safe-output-key.md📊 Historical Context
Previous 5 Focus Areas
🎯 Recommendations
Immediate Actions (This Week)
Short-term Actions (This Month)
Long-term Actions
📈 Success Metrics
dispatch_repository→dispatch-repositoryReferences:
§28663341769— This analysis rundocs/adr/42150-...— ADR-42150 (Draft)Beta Was this translation helpful? Give feedback.
All reactions