Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
879a292
docs: record executed organization transfers and remaining gates
HemSoft Oct 8, 2026
acb469e
ci: validate executed transfer evidence in inventory checks
HemSoft Oct 8, 2026
2c89b7b
fix: bind transfer evidence and enforce the onboarding release contract
HemSoft Oct 8, 2026
701cd38
fix: validate executed retention and pilot qualification evidence
HemSoft Oct 8, 2026
347c3a1
fix: replay pilot fixtures and bind terminal evidence chronology
HemSoft Oct 8, 2026
0df204d
test: bind transfer reports to complete primary evidence
HemSoft Oct 8, 2026
bce841c
test: validate executed App phase and historical protection limitation
HemSoft Oct 8, 2026
69a6457
docs: distinguish historical rc21 proof from current canonical runtime
HemSoft Oct 8, 2026
3e1d4d4
fix: bind transfer visibility and retrospective evidence paths
HemSoft Oct 8, 2026
f27ea51
fix: bind final manifest evidence and refresh validation primaries
HemSoft Oct 8, 2026
05d6631
fix: bind downloaded coverage archive and exact installed version
HemSoft Oct 8, 2026
b1d7e63
fix: bind retained and pilot gate evidence to primary identities
HemSoft Oct 8, 2026
bce4b8b
fix: verify retained release signatures and terminal capture chronology
HemSoft Oct 8, 2026
f12ef52
fix: bind policy repairs refs and review comments to their captures
HemSoft Oct 8, 2026
bf70c88
fix: bind phase policy chronology and disclose historical evidence li…
HemSoft Oct 8, 2026
d8fb077
fix: verify full historical deployment and final provider captures
HemSoft Oct 8, 2026
6c4d481
fix: derive historical pilot gates from authenticated check listings
HemSoft Oct 8, 2026
0dc80ab
fix: refresh bound validation evidence and recheck current source gate
HemSoft Oct 8, 2026
35c2c92
fix: compare retained validation result with current execution
HemSoft Oct 8, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .github/workflows/validate-gh-sfl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ on:
pull_request:
paths:
- 'gh-sfl/**'
- 'docs/ORGANIZATION-ONBOARDING.md'
- 'deployment/**'
- '.github/workflows/sfl-pr-review*'
- '.github/workflows/validate-gh-sfl.yml'
push:
branches: [main]
paths:
- 'gh-sfl/**'
- 'docs/ORGANIZATION-ONBOARDING.md'
- 'deployment/**'
- '.github/workflows/sfl-pr-review*'
- '.github/workflows/validate-gh-sfl.yml'
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/validate-org-migration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,16 @@ on:
- 'deployment/governance/CODEOWNERS'
- 'deployment/scripts/capture-org-migration.py'
- 'deployment/tests/test_org_migration.py'
- 'deployment/scripts/validate-executed-transfers.py'
- 'deployment/scripts/check-executed-validation-record.py'
- 'deployment/tests/test_executed_transfers.py'
- 'deployment/scripts/validate-org-rollout.py'
- 'deployment/tests/test_org_rollout.py'
- 'deployment/scripts/validate-executed-transfers.py'
- 'deployment/tests/test_executed_transfers.py'
- 'deployment/tests/run-org-observer-fixtures.cjs'
Comment thread
HemSoft marked this conversation as resolved.
Resolved
- 'deployment/infrastructure/sfl-pr-review-auto.yml'
- 'deployment/tests/observer-snapshots/**'
- 'docs/organization-migration/**'
- '.github/workflows/*.yml'
push:
Expand All @@ -23,9 +30,16 @@ on:
- 'deployment/governance/CODEOWNERS'
- 'deployment/scripts/capture-org-migration.py'
- 'deployment/tests/test_org_migration.py'
- 'deployment/scripts/validate-executed-transfers.py'
- 'deployment/scripts/check-executed-validation-record.py'
- 'deployment/tests/test_executed_transfers.py'
- 'deployment/scripts/validate-org-rollout.py'
- 'deployment/tests/test_org_rollout.py'
- 'deployment/scripts/validate-executed-transfers.py'
- 'deployment/tests/test_executed_transfers.py'
- 'deployment/tests/run-org-observer-fixtures.cjs'
- 'deployment/infrastructure/sfl-pr-review-auto.yml'
- 'deployment/tests/observer-snapshots/**'
- 'docs/organization-migration/**'
- '.github/workflows/*.yml'

Expand All @@ -50,3 +64,9 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
run: python3 -B deployment/scripts/validate-org-rollout.py docs/organization-migration
- name: Test executed transfer evidence and corruption rejection
run: python3 -B -m unittest discover -s deployment/tests -p test_executed_transfers.py -v
- name: Validate executed transfer identity without claiming migration acceptance
run: python3 -B deployment/scripts/validate-executed-transfers.py docs/organization-migration
- name: Reject stale retained executed validation output
run: python3 -B deployment/scripts/check-executed-validation-record.py
35 changes: 35 additions & 0 deletions deployment/scripts/check-executed-validation-record.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
"""Reject stale retained execution outputs after evidence-validator changes."""
import ast
import argparse
import hashlib
import json
import pathlib
import re
import subprocess

ROOT = pathlib.Path(__file__).resolve().parents[2]
INPUTS = ('deployment/scripts/validate-executed-transfers.py',
'deployment/tests/test_executed_transfers.py',
'deployment/scripts/check-executed-validation-record.py')
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument('--record', type=pathlib.Path, default=ROOT / 'docs/organization-migration/execution/executed-transfer-validation.json')
record = json.loads(parser.parse_args().record.read_text())
expected = {name: hashlib.sha256((ROOT / name).read_bytes()).hexdigest() for name in INPUTS}
if record.get('inputs_sha256') != expected:
raise ValueError('Retained validation output predates the current validator, corruption suite or record checker')
module = ast.parse((ROOT / INPUTS[1]).read_text())
count = sum(isinstance(node, ast.FunctionDef) and node.name.startswith('test_') for node in ast.walk(module))
tests = record['tests']
if record['exit_code'] != 0 or tests['exit_code'] != 0 or tests['command'] != [
'python3', '-B', '-m', 'unittest', 'discover', '-s', 'deployment/tests', '-p', 'test_executed_transfers.py', '-v']:
raise ValueError('Retained corruption suite execution is not bound to its successful current command')
if not re.search(r'(?m)^Ran ' + str(count) + r' tests in [0-9.]+s$', tests['stderr']) or not tests['stderr'].rstrip().endswith('OK'):
raise ValueError('Retained corruption suite output does not match its current test count and result')
if record['command'] != ['python3', 'deployment/scripts/validate-executed-transfers.py', 'docs/organization-migration']:
raise ValueError('Retained validator execution is not bound to the actual command')
Comment thread
HemSoft marked this conversation as resolved.
Resolved
actual = subprocess.run(record['command'], cwd=ROOT, capture_output=True, text=True)
if actual.returncode != 0:
raise RuntimeError('Current validator recomputation failed: ' + actual.stderr)
if json.loads(actual.stdout) != record['result']:
raise ValueError('Retained validator result differs from the actual current validator output')
print('Retained executed-transfer validation record matches the current validator and ' + str(count) + ' corruption tests')
16 changes: 14 additions & 2 deletions deployment/scripts/set-release-version.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<#
.SYNOPSIS
Synchronizes the HemSoft distribution version across release metadata.
Synchronizes the HemSoft distribution version and operator install instruction.
#>
[CmdletBinding()]
param(
Expand All @@ -21,14 +21,25 @@ if ($Version -notmatch $semanticVersionPattern) {
$versionPath = Join-Path $RepositoryRoot 'VERSION'
$manifestPath = Join-Path $RepositoryRoot 'sfl.json'
$metadataPath = Join-Path $RepositoryRoot 'deployment\release-metadata.json'
foreach ($path in @($versionPath, $manifestPath, $metadataPath)) {
$onboardingPath = Join-Path $RepositoryRoot 'docs\ORGANIZATION-ONBOARDING.md'
foreach ($path in @($versionPath, $manifestPath, $metadataPath, $onboardingPath)) {
if (-not (Test-Path -LiteralPath $path -PathType Leaf)) {
throw "Release metadata file not found: $path"
}
}

$manifest = Get-Content -LiteralPath $manifestPath -Raw | ConvertFrom-Json
$metadata = Get-Content -LiteralPath $metadataPath -Raw | ConvertFrom-Json
$onboarding = Get-Content -LiteralPath $onboardingPath -Raw
$installPattern = '(?m)^(Install the \[checksum-verified canonical release\]\()[^)\r\n]+(\)\.)'
if ([regex]::Matches($onboarding, $installPattern).Count -ne 1) {
throw 'Onboarding install instruction must be unique before updating release metadata.'
}
$installUrl = "https://github.com/$($metadata.distribution.repository)/releases/tag/v$Version"
$updatedOnboarding = [regex]::Replace($onboarding, $installPattern, {
param($match)
$match.Groups[1].Value + $installUrl + $match.Groups[2].Value
})
$manifest.version = $Version
$metadata.distribution.version = $Version

Expand All @@ -48,5 +59,6 @@ $utf8NoBom = [System.Text.UTF8Encoding]::new($false)
[System.IO.File]::WriteAllText($versionPath, "$Version`n", $utf8NoBom)
[System.IO.File]::WriteAllText($manifestPath, "$(ConvertTo-Json $manifest -Depth 100)`n", $utf8NoBom)
[System.IO.File]::WriteAllText($metadataPath, "$(ConvertTo-Json $metadata -Depth 100)`n", $utf8NoBom)
[System.IO.File]::WriteAllText($onboardingPath, $updatedOnboarding, $utf8NoBom)

Write-Output "Synchronized HemSoft release metadata for v$Version (prerelease=$($isPrerelease.ToString().ToLowerInvariant()))."
Loading
Loading