Skip to content

Let update.check in the settings turn the Validate update check off (#67) - #74

Merged
Arthurvdv merged 2 commits into
mainfrom
wp09/update-check
Oct 8, 2026
Merged

Arthurvdv merged 2 commits into
mainfrom
wp09/update-check

Conversation

@Arthurvdv

Copy link
Copy Markdown
Member

Summary

  • schemas/rulebook-settings.schema.json: new update.check (boolean, default true; the schema stays closed). The template settings do not ship it; absent means true.
  • Validate action: checkForUpdates defaults to '' and Validate.ps1 takes it as a tri-state string. 'true'/'false' (case-insensitive) wins; '' or an omitted parameter follows update.check, read leniently (missing or unreadable settings, or a non-boolean value, leave the check on). When the setting turns it off the log says Update check off (update.check is false) and UpdateCheck stays $null; any other explicit value turns it off with the log line checkForUpdates '<value>' is not 'true' or 'false'; the update check is off.
  • The switch now lives in the settings, which survive updates, instead of the checkForUpdates input of Validate.yaml, a system file the update overwrites.
  • Engine CI is unchanged: its validate-action steps already pass checkForUpdates: 'false'.
  • Tests: input default ''; Invoke-Entry defaults to 'false' so no test downloads a template (OmitCheck leaves the parameter unbound); precedence cases on update-org copies (absent runs, false skips with the log line, explicit true beats false, explicit false beats true, omitted parameter with and without the key, an unrecognised value); schema fixtures update-check-false (valid) and update-check-not-boolean (invalid).
  • Docs: docs/reference/update-mechanics.md section 7, docs/ARCHITECTURE.md (Validate action inputs, step 5, settings section 8), template/README.md, the Validate.ps1 help.

Verification: Pester 1495 tests (1494 passed, 1 skipped: the Actions-only smoke test), PSScriptAnalyzer clean, Test-Rulebook V1 to V14 clean, Build-Template -WhatIf current.

Review: one Sonnet round at effort high, no must-fix; applied: default documented, omitted-parameter tests, log line for unrecognised values; not applied: the triple settings parse (follow-up with #58-style consolidation if it recurs).

Closes #67

🤖 Generated with Claude Code

Arthurvdv and others added 2 commits October 8, 2026 21:15
An organization that wanted the template update check off had to edit the
checkForUpdates input in Validate.yaml, a system file the next update
overwrites (#67). The settings survive updates, so the switch belongs there.

The settings schema gains update.check (boolean, default true; the schema
stays closed). The Validate action input checkForUpdates now defaults to ''
and Validate.ps1 takes it as a tri-state string: 'true' or 'false'
(case-insensitive, $true and $false from in-process callers too) wins, ''
follows update.check, read leniently so a missing or unreadable settings
file or a non-boolean value leaves the check on. When the setting turns it
off the log says "Update check off (update.check is false)" and UpdateCheck
stays $null. The template settings do not ship the key (absent means true);
the engine CI already passes checkForUpdates 'false' explicitly.

Tests: the action input default, Invoke-Entry defaulting to 'false' so no
test downloads a template, four precedence cases on update-org copies and
two schema fixtures. Docs: update-mechanics section 7, ARCHITECTURE 5.5 and
section 8, the template README.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Review round 1 of #67. The Validate.ps1 help and update-mechanics section 7
say that omitting -CheckForUpdates follows update.check (pass 'false' to skip).
An explicit value other than 'true' or 'false' still turns the check off, now
with the log line "checkForUpdates '<value>' is not 'true' or 'false'; the
update check is off" (no annotation, no exit-code effect). Tests cover the
omitted parameter with and without update.check and the unrecognised value.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@Arthurvdv Arthurvdv added the enhancement New feature or request label Oct 8, 2026
@Arthurvdv
Arthurvdv merged commit 41526e4 into main Oct 8, 2026
5 checks passed
@Arthurvdv
Arthurvdv deleted the wp09/update-check branch October 8, 2026 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Settings key to turn the Validate template update check off

1 participant