docs(site): document exec-context-pr.js bundle in ado-script reference#908
Merged
jamesadevine merged 1 commit intoJun 8, 2026
Merged
Conversation
Add the missing third ado-script bundle to the reference page. The exec-context-pr.js bundle has been shipping in ado-script.zip since it was introduced for execution-context PR support, but the ado-script.mdx docs only mentioned gate.js and import.js. Changes: - Update intro paragraph to list all three bundles - Add '## What exec-context-pr.js does' section with merge-base resolution strategy, trust-boundary notes, and env-var contract table - Update workspace layout tree to include exec-context-pr/ directory and exec-context-pr.js build output - Update release-workflow paragraph to list exec-context-pr.js - Rename 'Agent job' wiring section to reflect two consumers (import.js and exec-context-pr.js) - Expand 'What gets emitted' table with on.pr/exec-context column - Add exec-context-pr.js as a real working example in 'Add a new bundle' - Add Execution Context to See also Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.
Summary
ado-script.mdxnow see all three bundles (gate.js,import.js,exec-context-pr.js) instead of just twoexec-context-pr.jsdoes, how merge-base resolution works, the trust boundary, and its full env-var contractChanges
site/src/content/docs/reference/ado-script.mdx## What exec-context-pr.js doessection with merge-base strategy, trust-boundary notes, and env-var contract tableexec-context-pr/source directory andexec-context-pr.jsbuild outputexec-context-pr.js### Agent jobwiring subsection to reflect dual consumers (import.jsandexec-context-pr.js)### What gets emitted, by casetable with anon.pr w/ exec-contextcolumn (8-row matrix)exec-context-pr.jsas a real working example in### Add a new bundle## See alsoAccuracy checks
scripts/ado-script/src/exec-context-pr/src/compile/extensions/exec_context/pr.rs::prepare_step()andscripts/ado-script/src/exec-context-pr/validate.tsscripts/ado-script/src/exec-context-pr/merge-base.tson.pr+execution-context.pr.enabled != false) verified againstsrc/compile/extensions/exec_context/pr.rs::should_activate()src/compile/extensions/exec_context/pr.rsmodule docstring andgit.ts::bearerEnvsrc/compile/extensions/ado_script.rs::prepare_steps()(installs bundle whenexec_context_pr_active)Validation
cd site && npm ci && npm run build— passed, all 34 internal links validCreated by the docs-writer workflow.