Repository navigation
Support repository-relative imports and staged connector dry-runs - #76933
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
✅ PR Specification Reviewer completed successfully! PR Specification ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ Ponytail Reviewer completed successfully!
|
|
✅ PR Code Quality Reviewer completed the code quality review. PR Code Quality ReviewerOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft. Design Decision Gate 🏗️Outcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
There was a problem hiding this comment.
What this change does: It fixes the smoke workflow connector imports and allows generated connector handlers in dry-run compilation. I reviewed the validation path for a normal single-workflow compilation.
Should fix:
- The inline comment identifies a copied validation view that the existing validator can replace with a direct marker check. This removes extra plumbing while keeping authored scripts subject to the same check; keeping it leaves two validation paths to maintain.
Verdict: Ship.
Lean: -15 lines possible.
Generated by ✂️ Ponytail Reviewer for #76933 · codex · routed: gpt61 medium · ~5 AIC · ⌖ ~1 AIC · ⊞ 181
Comment /ponytail to run again
Comment MemoryPeek at saved memory (pr-code-quality-reviewer)Note This comment is managed by comment memory.Expand the saved memory block to view or edit the persistent context for this thread.
|
There was a problem hiding this comment.
Found one actionable test-isolation issue: the new connector import regression leaves a persistent mock implementation that can affect later tests. The connector dry-run changes otherwise look consistent with the stated behavior. Static review only; tests were not run per review instructions.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~6 AIC · ⌖ ~1 AIC · ⊞ 1.6K
Comment /review to run again
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /diagnosing-bugs and /tdd. No blocking issues found. Submitting COMMENT rather than APPROVE because the Go and JS suites could not be run in this sandbox.
📋 Verification notes
What was checked
- Host-code gate exemption (
/diagnosing-bugs):validateDryRunEffectsWithConnectorsremoves only scripts flaggedconnectorDryRun. That flag is set solely on compiler-generated<alias>-<operation>entries. An authored script with the same name is rejected at expansion by theconflicts with a connector effectcheck.MergeSafeOutputsmerges only the fields insafeOutputHandlers, andScriptsis not one of them, so an import cannot add a same-named script that would inherit the exemption. - Credential re-narrow (
attachConnectorInputSchemas): it only rewrites env entries that already exist. Dry-run never creates them, so it cannot add a live credential. - Regression coverage (
/tdd):TestConnectorDryRunRejectsLiveParsedHandlersand the dry-run subtest exercise the rejection path. The JSsmoke-issues connector importsblock covers both API and local-fallback modes.
Not verified
Go 1.27.4 is required and the npm registry is unreachable here, so neither suite was run. The findings above come from static reading of HEAD.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~9 AIC · ⌖ ~2 AIC · ⊞ 6.6K
Comment /matt to run again
Resolve .github imports from the repository root in both hash walkers, including nested object imports. Cover missing and escaping compiler imports without changing unrelated pre-existing lint findings. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
The tests can miss import-resolution regressions because the API case permits silent local fallback and the fallback case never exercises strict unresolved-import checks.
2 open issues
What changed in this PR
This PR fixes smoke-issues activation and allows compiler-generated connector handlers during gh aw dry-run compilation, while preserving restrictions on authored scripts.
Changes:
- Switches smoke connector imports to workflow-relative paths and regenerates the production lock.
- Exempts privately marked connector handlers from dry-run script rejection, while retaining forced staging and omitting connector writer credentials.
- Adds activation and connector safety regressions, and documents the dry-run exception.
| File | Description |
|---|---|
pkg/workflow/safe_scripts.go |
Adds a private marker for dry-run connector handlers. |
pkg/workflow/connectors_test.go |
Tests forced staging, credential omission, and script rejection. |
pkg/workflow/compiler_yaml.go |
Routes dry-run checks through connector-aware validation. |
pkg/workflow/compiler_orchestrator_workflow.go |
Passes compiler state into connector schema attachment. |
pkg/workflow/compiler_connectors.go |
Marks generated handlers and filters a cloned validation view. |
docs/src/content/docs/reference/compilation-process.md |
Documents staged connector support during dry-run compilation. |
actions/setup/js/check_workflow_timestamp_api.test.cjs |
Adds smoke source/lock coverage for API and local fallback paths. |
.github/workflows/smoke-issues.md |
Corrects connector imports to workflow-relative paths. |
.github/workflows/smoke-issues.lock.yml |
Refreshes import metadata and workflow hashes. |
.github/aw/debug-compilation.md |
Clarifies the connector exception and remaining restrictions. |
Review effort: Max (auto)
Use direct generated-handler validation and isolate GitHub API mocks. Prevent local fallback from masking API-path failures and exercise strict fallback after connector import read failures. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
No code change or ADR is needed for this design-gate notice, which reports no actionable finding or draft. This batch keeps the existing staging and credential-boundary design. |
|
No additional code change is needed for this completed review. Its static-only validation limitation is covered by the focused Go and JavaScript checks run for this batch. |
|
No separate code change is needed for this completion notice. The associated inline request was accepted: the copied validation wrapper is removed in favor of a direct marker check. |
|
No code change is needed for this saved reviewer metadata. The related mock-isolation finding is fixed; the managed comment and memory block are unchanged. |
|
The actionable isolation finding behind this review status is fixed by resetting |
|
No code change is needed for this test-quality completion notice, which contains no requested action. The affected suites were independently run for this batch rather than treating the status as test evidence. |
|
No code change is needed for this completion notice. It reports no actionable specification feedback, so I have not treated the status alone as verification. |
Use the imports resolver's base selection, section parsing, and lexical containment for hash readers. Keep checkout handling name-agnostic and verify Go/JavaScript parity for normal and .github repositories. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
🎉 This pull request is included in a new release. Release: |

smoke-issuesfails during activation because lock verification resolves repository-relative connector imports beneath.github/workflowsa second time. Diagnostic compilation also rejects compiler-generated connector handlers as authored host scripts.Changes
importsbase selection, section parsing and lexical containment with Go hash resolution; mirror those rules in JavaScript. Reuse imports' directory traversal rather than special-case checkout names, so repositories named.githubwork normally../paths, repository-relative paths,/.github/,/.agents/and#sectionreferences. Filesystem and symlink safeguards remain in the native resolver, and unsafe hash paths fail before reader access..github-named checkouts. Compare hash paths directly with the native import resolver.staged: false.Validation
smoke-issues --dry-runpasses strict validation, model checks and ShellCheck, with two experimental connector notices. Diagnostic locks were preserved separately and the production lock restored.make agent-report-progressreports 21 verified pre-existing custom-linter findings in unchanged code: 11 inpkg/parser/frontmatter_hash.go, six inpkg/workflow/compiler_development_safety.go, and four inpkg/parser/remote_path_predicates.go. Go lint, JavaScript lint, impacted tests and schema checks otherwise pass; unrelated code was left unchanged.