Repository navigation
Fix connector safe-output metadata causing unknown argument failures - #76981
Merged
Merged
Conversation
Strip orchestration metadata before strict connector validation. Reproduce the smoke-issues failure through all five generated handlers and cover live and staged execution without relaxing undeclared-input rejection. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Replace generated base64 plan payloads with indented JSON, escaping Actions expression openers and JavaScript template delimiters. Preserve digest verification, exact numeric tokens, byte limits, and legacy snapshot compatibility. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Store one compact plain-JSON plan per connector in the safe-output job environment. Generated JavaScript reads its compiler-owned variable rather than embedding plan data. Keep credential-free staging, per-runtime environment isolation, and explicit missing-plan and collision checks. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
GraphQL variables are incorrectly rewritten as environment references, causing connector startup digest failures, while the Zendesk staging test still expects base64 rather than newline-stripped JSON.
2 open issues
What changed in this PR
This PR fixes connector safe-output delivery in gh-aw by separating message metadata from operation inputs. It also makes compiled connector plans easier to inspect in workflow locks.
Changes:
- Filter protocol metadata while preserving declared inputs and strict argument validation.
- Emit readable JSON plans with digest verification and legacy base64 compatibility.
- Add regression coverage, update contracts, and regenerate the smoke-issues lock.
| File | Description |
|---|---|
pkg/workflow/connector_content_host_test.go |
Tests metadata filtering and generated JSON safety. |
pkg/workflow/compiler_connectors.go |
Filters message metadata and emits readable plans. |
pkg/connectors/runtime_node_parity_test.go |
Checks Go/Node compatibility for both snapshot formats. |
pkg/connectors/CONTRACT.md |
Updates the snapshot serialization contract. |
pkg/connectors/compiled.go |
Adds JSON encoding and backward-compatible decoding. |
pkg/connectors/compiled_test.go |
Tests readable snapshots and byte limits. |
docs/src/content/docs/specs/connector-specification.md |
Specifies JSON formatting, escaping, and size limits. |
docs/src/content/docs/reference/connectors.md |
Documents plan formats and metadata handling. |
actions/setup/js/connector_runtime.test.cjs |
Tests digest normalization, tampering, and UTF-8 bounds. |
actions/setup/js/connector_runtime.cjs |
Decodes JSON plans and normalizes digest inputs. |
.github/workflows/smoke-issues.lock.yml |
Regenerates all five connector handlers. |
.changeset/patch-connector-message-metadata.md |
Records the fixes for release notes. |
Review effort: Max (auto)
Escape all dollar signs as JSON Unicode sequences before MCP configuration rendering so shell and gateway environment substitution cannot corrupt frozen plan queries or digests. Add rendered Linear MCP regression coverage and retain the already-correct Zendesk credential-free staging assertion. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
|
🎉 This pull request is included in a new release. Release: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


The live smoke-issues run failed both Linear and Jira creation with
Unknown connector argument. Generated handlers forwarded safe-output message IDs and dependency metadata into the connector's strict input validator.Strip only the protocol fields (
type,output_id,depends-on, anddepends_on) at the generated handler boundary. Preserve declared inputs such astemporary_id, strict rejection of undeclared arguments, and dependency scheduling in the handler manager.Store one compact, plain-JSON plan per connector in the safe-output job's YAML
envmapping. Generated JavaScript reads its compiler-owned environment variable and forwards only that plan asGH_AW_CONNECTOR_PLANto the runtime. No base64 or inline executable plan data. Endpoints, capability selections, grants, and secret names remain visible in the lock. Preserve expression safety, digest verification, exact numeric tokens, byte limits, and legacy snapshot compatibility. Missing plan variables and user-defined collisions fail explicitly.Validation
make agent-report-progresspassed, including build, lint, impacted tests, and drift validation across 365 workflows.