Skip to content

Docs: Correct the default path base for #runtime-import - #79907

Merged
pelikhan merged 4 commits into
mainfrom
copilot/docs-fix-runtime-import-path
Nov 22, 2026
Merged

pelikhan merged 4 commits into
mainfrom
copilot/docs-fix-runtime-import-path

Conversation

@pelikhan

@pelikhan pelikhan commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

The templating reference incorrectly says unprefixed runtime imports resolve relative to .github. The resolver uses .github/workflows, so following the old guidance can produce a Runtime import file not found error during activation.

  • Path resolution: Document .github/workflows as the default base and .github/ and .agents/ as repository-root prefixes. Runtime behavior is unchanged.
  • Examples: Show two equivalent paths for coding-standards.md and give the line-range example an explicit .github/docs/auth.go path.

Either form below imports the same file:

{{#runtime-import coding-standards.md}}
{{#runtime-import .github/workflows/coding-standards.md}}

pelikhan and others added 2 commits November 21, 2026 21:57
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
@pelikhan pelikhan changed the title [WIP] Update runtime imports documentation for default path base Docs: Correct the default path base for #runtime-import Nov 21, 2026
@pelikhan
pelikhan marked this pull request as ready for review November 21, 2026 22:15
Copilot AI adaptive review requested due to automatic review settings November 21, 2026 22:15
@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

PR Code Quality Reviewer

Outcome: reported_action

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.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt56 · ~3 AIC · ⌖ ~1 AIC · ⊞ 1.6K · ◷

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

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.

🧪 Test quality analysis by Test Quality Sentinel · copilot · routed: haiku55 xhigh · ~2 AIC · ⌖ ~2 AIC · ⊞ 7.2K · ◷

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Ponytail Reviewer

Outcome: reported_no_action

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.

Generated by Ponytail Reviewer for #79907 · codex · routed: gpt61 medium · ~3 AIC · ⌖ ~1 AIC · ⊞ 185 · ◷

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Specification Reviewer completed successfully!

Caution

agentic threat detected
Threat detection flagged this output in warn mode. Manual review is REQUIRED before any follow-up automation.

Details

Potential security threats were detected in the agent output. Detected threat types: prompt injection.

Review the workflow run logs for details.

Generated by PR Specification Reviewer for #79907 · copilot · gpt56 · ~3 AIC · ⌖ ~2 AIC · ⊞ 1.7K · ◷

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~6 AIC · ⌖ ~2 AIC · ⊞ 6.6K · ◷

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the changed documentation and verified the documented path bases against the runtime resolver. I found no actionable correctness, regression, or maintainability issues in the changed lines.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~3 AIC · ⌖ ~1 AIC · ⊞ 1.6K
Comment /review to run again

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

agentic threat detected
Threat detection flagged this output in warn mode. Manual review is REQUIRED before any follow-up automation.

Details

Potential security threats were detected in the agent output. Detected threat types: prompt injection.

Review the workflow run logs for details.

Reviewed head 5a52d3eb39da279b00b19f4c79a733bf3af87c4c against specs/compiler-threat-detection-spec.md §5.2.3 (local-only runtime imports) and the related reference contract.

Blocking finding:

  • docs/src/content/docs/reference/imports.md:87 still says unprefixed paths resolve within .github and that shared/editorial.md equals .github/shared/editorial.md. The implementation (actions/setup/js/runtime_import.cjs:885-887) and this PR’s updated templating.md:115 establish that unprefixed paths resolve under .github/workflows; the equivalent is .github/workflows/shared/editorial.md. This leaves the public imports reference contradictory and can direct users to a path that fails activation. Update the imports reference examples and path-resolution paragraph in the same change (the formal security boundary remains unchanged).

No tests were run; this was a static specification review. No specification synchronization was applied because the affected text is outside the permitted specs/ specification allowlist.

Generated by PR Specification Reviewer for #79907 · copilot · gpt50 · ~3 AIC · ⌖ ~2 AIC · ⊞ 1.7K
Comment /review-specs to run again

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The two lockfile diffs introduce unrelated PageIndex installation and cache-key workflow changes in a documentation-only PR, so they must be reverted or justified with corresponding source workflow changes.

2 open issues
What changed in this PR

This PR corrects the #runtime-import documentation to match the existing resolver behavior, while also including unrelated PageIndex workflow lock changes.

Changes:

  • Documents .github/workflows as the default base for unprefixed runtime-import paths.
  • Corrects equivalent-path and line-range examples.
  • Updates PageIndex dependency installation and cache inputs in two generated workflow locks.
File Description
docs/​src/​content/​docs/​reference/​templating.md Corrects runtime-import path resolution guidance and updates the related path examples.
.github/​workflows/​spec-librarian.lock.yml Contains generated PageIndex dependency-installation and cache-input changes.
.github/​workflows/​daily-doc-updater.lock.yml Contains generated PageIndex dependency-installation and cache-input changes.

Review effort: Lite (adaptive)

Comment on lines +2655 to +2658
uv pip sync --require-hashes --only-binary=:all: \
--python /tmp/gh-aw/pageindex/venv/bin/python \
.github/workflows/requirements-pageindex.txt
uv pip check --python /tmp/gh-aw/pageindex/venv/bin/python

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merged main in 0671a97; this lock now matches main and is no longer in the PR diff. The PageIndex change was independently merged upstream in fd3d1c5.

Comment on lines +2404 to +2407
uv pip sync --require-hashes --only-binary=:all: \
--python /tmp/gh-aw/pageindex/venv/bin/python \
.github/workflows/requirements-pageindex.txt
uv pip check --python /tmp/gh-aw/pageindex/venv/bin/python

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merged main in 0671a97; this lock now matches main and is no longer in the PR diff. The PageIndex change was independently merged upstream in fd3d1c5.

@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (review-history)
{"id":"ldg-96b5f6d5-ae64-47c7-87f7-aebbdebb5891","parents":[],"payload":{"id":"ldg-d1eba2b1-4c93-4d53-9321-a96ead38344f","operation":"append","value":{"finding_count":0,"head_sha":"5a52d3eb39da279b00b19f4c79a733bf3af87c4c","outcome":"no_findings"}},"sha":"sha256:b12aba2dcdf629ce6b783e9ecadd6648e43f9dddd3335ab64f985f75c9bdd895","timestamp":"2026-11-21T22:23:37.474Z","type":"ledger_append","version":1}
History

@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (spec-review-history)
{"id":"ldg-67c181bb-d134-4388-803b-7479a2b76011","parents":[],"payload":{"id":"ldg-39ad4b92-0e26-405c-871d-a01529b7e4d5","operation":"append","value":{"finding_count":1,"head_sha":"5a52d3eb39da279b00b19f4c79a733bf3af87c4c","outcome":"regression"}},"sha":"sha256:67c911051d93085eb8ef014d97f5156522ab92a94bb1675b9b7f873b46e1ae63","timestamp":"2026-11-21T22:24:15.951Z","type":"ledger_append","version":1}
History

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skills-Based Review 🧠

Applied /grill-with-docs to this docs-only change. The path-base correction matches the runtime resolver, and the three example edits check out. Posting as COMMENT: the same file and imports.md still contain stale examples that describe the old base.

📋 Verification & Findings

Verified against actions/setup/js/runtime_import.cjs

  • Unprefixed coding-standards.md resolves to .github/workflows/coding-standards.md, the same file as the explicit form. ✅
  • .github/docs/auth.go:45-52 resolves to .github/docs/auth.go. The old docs/auth.go example would have resolved to .github/workflows/docs/auth.go, so the fix is correct. ✅
  • .agents/ paths resolve from the repository root. ✅

Stale examples the PR leaves behind (outside the diff hunks, so no inline comments)

  1. templating.md:182: {{#runtime-import ../src/config.go}} is labelled as an error, but it resolves to .github/src/config.go, which is inside .github. ../../src/config.go does error. Suggest changing the example to ../../src/config.go.
  2. templating.md:208: the path-traversal row uses ../src/main.go. Use ../../src/main.go for the same reason.
  3. imports.md:87: ".github/shared/editorial.md and shared/editorial.md are the same file" is false for runtime imports. They resolve to .github/workflows/shared/editorial.md and .github/shared/editorial.md. Reword to say unprefixed runtime paths are relative to .github/workflows.

These predate this PR, but they are the same path-base error this PR corrects. Folding them in keeps the reference consistent.

@copilot please address the stale examples above.

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~6 AIC · ⌖ ~2 AIC · ⊞ 6.6K
Comment /matt to run again

@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot

🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:

  1. Update this branch with the latest main using make merge-main, resolving any conflicts and preserving the intended changes.
  2. Review (.github/workflows/daily-doc-updater.lock.yml:2658): address unresolved feedback - Review comment
  3. Review (.github/workflows/spec-librarian.lock.yml:2407): address unresolved feedback - Review comment

Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering.

Structured data
{
  "completed_task": 0,
  "head": "5a52d3eb39da279b00b19f4c79a733bf3af87c4c",
  "kind": "requested",
  "schema_version": "1",
  "state": "f5566eb7b048ab64e599c7e34f7b364f75811a12c30f071d7e93fc45bd3236e2",
  "work": [
    "8e55f61043f3cf94e4d7d1deb3297270afab917eef5858ca3da54837c93398f8",
    "cd94829fda5c088b6ebf261080a90611e34ff06b1090bbcb8491dd3289d268d5"
  ],
  "workflow": "pr-sous-chef"
}

Generated by 👨🍳 PR Sous Chef · pi · routed: haiku55 xhigh · ~4 AIC · ⌖ ~2 AIC · ⊞ 7K · ◷
Comment /souschef to run again

…ime-import-path

Co-authored-by: copilot-swe-agent[bot] <[email protected]>

Copilot AI commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

@copilot

🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:...

Merged main in 0671a97 and addressed both lockfile threads. The PR diff now contains only the documentation change; the change-scoped validation passed.

Copilot AI requested a review from gh-aw-bot November 21, 2026 23:03
@pelikhan
pelikhan merged commit b6df7d0 into main Nov 22, 2026
20 checks passed
@pelikhan
pelikhan deleted the copilot/docs-fix-runtime-import-path branch November 22, 2026 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs: Correct #runtime-import default path base from .github to .github/workflows

4 participants