Skip to content

Complete stable preview guards, runner bootstrap and version footer - #69

Merged
MrHinsh merged 3 commits into
mainfrom
codex/runner-dependency-scope
Dec 1, 2026
Merged

MrHinsh merged 3 commits into
mainfrom
codex/runner-dependency-scope

Conversation

@MrHinsh

@MrHinsh MrHinsh commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Fresh Linux consumer builds failed before Dependencies could install powershell-yaml with the runner's explicit CurrentUser scope: settings parsing invoked the AllUsers fallback first. Run dependency installation after platform identity/consent validation and before settings parsing, preserving the local AllUsers default.

Also reject unapproved local preview directories and ZIPs before executing package-owned validation scripts. Explicit, exact, expiring consent remains mandatory for temporary preview testing; production continues to reject previews.

Regression coverage exercises dependency ordering/scope and package-code tripwires for directory, ZIP and dedicated consent entrypoints. Publish a new stable patch only after Linux CI passes, then adopt it through the four existing site PRs. No preview consumer adoption is authorised.

Validation: focused Pester 5.7.1 suites passed (20 before the consent-order extension, then 16 covering the final changed paths). Independent review of the exact four-file diff found no substantive issues. Full Windows run: 652 passed, 28 failed, 3 skipped; 23 missing-GitVersion failures cleared after restoring the workspace tool. Five unchanged governance tests still reject linked trusted paths on the restored Windows environment. Per operator decision, passing full hosted Linux CI is mandatory before merge/publication; no acceptance check is waived or weakened.

The shared footer now implements the agreed one-paragraph wording: SITE_VERSION of this site was built by OpenGuidePlatform PLATFORM_VERSION · Design and theme by Martin Hinshelwood. Both names link to the approved URLs; the build injects platform and site versions separately. Rendered footer/SEO tests (6), updated Prepare overlay test (1), and both root sample targets passed. Exact footer diff independently reviewed without findings. The restored C: source path is a junction to D:; canonical D: checkout validation preserves all linked-path guards. Full final-revision Linux CI must pass.

The approved credit is exposed as components/site-build-credit.html so Kanban's bespoke homepage footer can use the identical text during adoption. Final shared partial independently reviewed; rendered tests and both sample targets passed. No bespoke footer is removed.

Copilot AI balanced review requested due to automatic review settings December 1, 2026 15:32
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-01T15:34:00.006674Z 7f19ada PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The resolver now checks preview consent before package validation across manifest, ZIP and consent-entrypoint paths. Guide-site builds now return from the Dependencies stage before loading settings. Tests cover dependency installation and unapproved package resolution.

Changes

Preview package consent

Layer / File(s) Summary
Consent checks and resolution tests
system/OpenGuidePlatform.PowerShell.GuideSiteAdoption/Resolve-OpenGuidePlatform.ps1, tests/Core/PreviewPlatformUsage.Tests.ps1
The resolver checks consent before package validation in the covered paths. Regression tests verify that directory, ZIP and consent-entrypoint resolution fails without approval before package-owned validation runs.

Guide-site dependency stage

Layer / File(s) Summary
Dependency stage and settings loading
system/OpenGuidePlatform.PowerShell.GuideSiteBuild/GuideSiteBuild/Invoke-GuideSiteBuild.ps1, tests/Core/CompleteGuideBuild.Tests.ps1
The Dependencies stage returns before settings load. The test checks dependency installation with CurrentUser scope and confirms that no build stage was recorded.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related PRs

Merge Risk: Minimal · up to 7f19a

The change moves preview consent checks ahead of package validation and delays settings loading until after dependency installation. No actionable merge-blocking risk was identified; hosted Linux CI should still pass before merge.

Pre-merge checks: Passed 3 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Title check Inconclusive The title names three areas: preview guards, runner bootstrap and a version footer. The raw summary covers preview consent ordering in Resolve-OpenGuidePlatform.ps1, dependency installation ordering i… Confirm whether the version footer change is part of this pull request. If it is not, remove it from the title. A title such as 'Fix runner dependency bootstrap and preview package consent ordering' matches the stated objectives. If the foo…
Passed Passed checks: 3 passed

Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title names three areas: preview guards, runner bootstrap and a version footer. The raw summary covers preview consent ordering in Resolve-OpenGuidePlatform.ps1, dependency installation ordering in Invoke-GuideSiteBuild.ps1, and related tests. The summary does not mention a version footer, so that part of the title is not supported by the changeset evidence. The title is partly related: the main change (consent ordering and runner bootstrap) is present, but the 'version footer' element and the vague word 'Complete' do not match the described changes.

Resolution

Confirm whether the version footer change is part of this pull request. If it is not, remove it from the title. A title such as 'Fix runner dependency bootstrap and preview package consent ordering' matches the stated objectives. If the footer change is present, list it in the description and the file summaries.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

A consent check goes first in line,
Then package checks can run in time.
The dependency stage returns,
Settings wait until that point turns.
Tests confirm the paths behave,
And keep unapproved scripts at bay.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c15b0174-f9ad-4912-a3f2-216d4d2d7f8e
Commits

Reviewing files that changed from the base of the PR and between da0ea54 and 7f19ada.

Files selected for processing: 4

  • system/OpenGuidePlatform.PowerShell.GuideSiteAdoption/Resolve-OpenGuidePlatform.ps1
  • system/OpenGuidePlatform.PowerShell.GuideSiteBuild/GuideSiteBuild/Invoke-GuideSiteBuild.ps1
  • tests/Core/CompleteGuideBuild.Tests.ps1
  • tests/Core/PreviewPlatformUsage.Tests.ps1

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Required hosted Linux CI evidence is missing, and human verification is needed to confirm fresh-runner dependency bootstrap behavior and resolution of reported governance-test failures.

No open issues 🎉

What changed in this PR

This PR fixes dependency bootstrap ordering for fresh Linux consumer builds and moves preview-consent checks ahead of package-owned validation code.

Changes:

  • Runs the Dependencies stage before settings parsing, after platform identity and consent validation, preserving the requested installation scope.
  • Checks preview consent earlier for local directories, ZIP packages, and the dedicated consent entrypoint.
  • Adds regression tests for dependency ordering and scope, and rejection before package validation executes.
File Description
tests/​Core/​PreviewPlatformUsage.Tests.ps1 Adds package-validation tripwires for unapproved preview selections.
tests/​Core/​CompleteGuideBuild.Tests.ps1 Verifies dependency installation uses CurrentUser before settings parsing.
system/​OpenGuidePlatform.PowerShell.GuideSiteBuild/​GuideSiteBuild/​Invoke-GuideSiteBuild.ps1 Moves settings parsing after the Dependencies-stage return.
system/​OpenGuidePlatform.PowerShell.GuideSiteAdoption/​Resolve-OpenGuidePlatform.ps1 Moves preview-consent checks before package-owned validation and ZIP extraction.

Review effort: Balanced

@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Prepare completed. Workflow evidence. This is the candidate assessment, not independent policy or deployment approval.

Prepare: pass

Commit: 76320a5 · Platform: 0.0.0-local · Target: canary

Selection: v0.0.0-local; resolved: v0.0.0-local; OGP ring: preview.

Severity Scope Subject Finding What to fix
warning platform github.com/nkdAgility/OpenGuidePlatform/system/OpenGuidePlatform.Hugo.Guides/v2 MODULE_FRESHNESS_UNAVAILABLE: Could not establish module freshness: Go module query failed (1): go: module github.com/nkdAgility/OpenGuidePlatform/system/OpenGuidePlatform.Hugo.Guides/v2: not a known dependency Review the module version through the coordinated platform update process; never change the pin during Prepare.

Guide status

No guide fixes identified by these checks.

Artifact and live-site checks run in later stages.

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

Preview deployed for commit 7f19ada: https://blue-field-06cea8c03-69.westeurope.6.azurestaticapps.net/. Live verification follows in Actions.

@MrHinsh MrHinsh changed the title Fix runner dependency bootstrap and preview package consent ordering Complete stable preview guards, runner bootstrap and version footer Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

Preview deployed for commit 76320a5: https://blue-field-06cea8c03-69.westeurope.6.azurestaticapps.net/. Live verification follows in Actions.

@MrHinsh
MrHinsh merged commit e9c41e0 into main Dec 1, 2026
10 checks passed
@MrHinsh
MrHinsh deleted the codex/runner-dependency-scope branch December 1, 2026 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants