Repository navigation
Docs: Correct the default path base for #runtime-import - #79907
Conversation
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
#runtime-import
|
✅ 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.
|
|
✅ Ponytail Reviewer completed successfully! Ponytail 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.
|
|
✅ PR Specification Reviewer completed successfully! Caution agentic threat detected DetailsPotential security threats were detected in the agent output. Detected threat types: prompt injection. Review the workflow run logs for details.
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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:87still says unprefixed paths resolve within.githuband thatshared/editorial.mdequals.github/shared/editorial.md. The implementation (actions/setup/js/runtime_import.cjs:885-887) and this PR’s updatedtemplating.md:115establish 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
There was a problem hiding this comment.
🟡 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/workflowsas 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)
| 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 |
| 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 |
Comment MemoryPeek at saved memory (review-history)History |
Comment MemoryPeek at saved memory (spec-review-history)History |
There was a problem hiding this comment.
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.mdresolves to.github/workflows/coding-standards.md, the same file as the explicit form. ✅ .github/docs/auth.go:45-52resolves to.github/docs/auth.go. The olddocs/auth.goexample 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)
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.godoes error. Suggest changing the example to../../src/config.go.templating.md:208: the path-traversal row uses../src/main.go. Use../../src/main.gofor the same reason.imports.md:87: ".github/shared/editorial.mdandshared/editorial.mdare the same file" is false for runtime imports. They resolve to.github/workflows/shared/editorial.mdand.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
|
🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:
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"
}
|
…ime-import-path Co-authored-by: copilot-swe-agent[bot] <[email protected]>

The templating reference incorrectly says unprefixed runtime imports resolve relative to
.github. The resolver uses.github/workflows, so following the old guidance can produce aRuntime import file not founderror during activation..github/workflowsas the default base and.github/and.agents/as repository-root prefixes. Runtime behavior is unchanged.coding-standards.mdand give the line-range example an explicit.github/docs/auth.gopath.Either form below imports the same file:
#runtime-importdefault path base from.githubto.github/workflows#79317