feat(streaming): shadow-publish flat collision assets
Carry one immutable prepared collision closure with each accepted near-tier generation and install graph plus flat views through the same retained publication receipt. Apply the same strict package-only rule to live entities, add exact sampled graph-authoritative comparison artifacts and lifecycle counters, and prove cancellation, demotion, rehydrate, revisit, teardown, reconnect, and the nine-stop route with 14,064 zero-mismatch samples. Co-authored-by: OpenAI Codex <codex@openai.com>
This commit is contained in:
parent
f7ff9f4eea
commit
d9446030e6
32 changed files with 2777 additions and 92 deletions
|
|
@ -8,7 +8,8 @@ param(
|
|||
[switch]$DenseTown,
|
||||
[switch]$CaptureContention,
|
||||
[switch]$SkipRuntimeCounters,
|
||||
[int]$LoginTimeoutSeconds = 90
|
||||
[int]$LoginTimeoutSeconds = 90,
|
||||
[int]$CollisionShadowEvery = 0
|
||||
)
|
||||
|
||||
Set-StrictMode -Version Latest
|
||||
|
|
@ -67,6 +68,7 @@ $markerLog = "$prefix.markers.log"
|
|||
$sampleCsv = "$prefix.samples.csv"
|
||||
$reportJson = "$prefix.report.json"
|
||||
$artifactDir = "$prefix.artifacts"
|
||||
$collisionShadowDir = Join-Path $artifactDir 'collision-shadow'
|
||||
$checkpointTimeline = Join-Path $artifactDir 'world-lifecycle.checkpoints.jsonl'
|
||||
$frameHistory = Join-Path $artifactDir 'frame-history.csv'
|
||||
$frameSummary = Join-Path $artifactDir 'frame-history-summary.json'
|
||||
|
|
@ -440,6 +442,26 @@ function Add-CanonicalCheckpointFailures([Diagnostics.Process]$Client) {
|
|||
}
|
||||
}
|
||||
|
||||
if ($CollisionShadowEvery -gt 0) {
|
||||
$shadow = $checkpoint.resources.PSObject.Properties['collisionShadow']
|
||||
if ($null -eq $shadow) {
|
||||
$failures.Add("canonical checkpoint '$expectedName' is missing resources.collisionShadow")
|
||||
}
|
||||
else {
|
||||
foreach ($field in @('mismatches', 'faults')) {
|
||||
$property = $shadow.Value.PSObject.Properties[$field]
|
||||
if ($null -eq $property) {
|
||||
$failures.Add(
|
||||
"canonical checkpoint '$expectedName' is missing resources.collisionShadow.$field")
|
||||
}
|
||||
elseif ([long]$property.Value -ne 0) {
|
||||
$failures.Add(
|
||||
"canonical checkpoint '$expectedName' has resources.collisionShadow.$field=$($property.Value), expected zero")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$streamingWork =
|
||||
$checkpoint.resources.PSObject.Properties['streamingWork']
|
||||
if ($null -eq $streamingWork) {
|
||||
|
|
@ -753,6 +775,10 @@ $env:ACDREAM_AUTOMATION_ARTIFACT_DIR = $artifactDir
|
|||
$env:ACDREAM_DUMP_MOVE_TRUTH = '1'
|
||||
$env:ACDREAM_NO_AUDIO = $null
|
||||
$env:ACDREAM_WB_DIAG = $null
|
||||
$env:ACDREAM_COLLISION_SHADOW_EVERY =
|
||||
if ($CollisionShadowEvery -gt 0) { "$CollisionShadowEvery" } else { $null }
|
||||
$env:ACDREAM_COLLISION_SHADOW_DIR =
|
||||
if ($CollisionShadowEvery -gt 0) { $collisionShadowDir } else { $null }
|
||||
|
||||
# Machine-readable disclosure of the exact launch configuration (2026-07-24
|
||||
# measurement-tooling review — the prior audit could only see
|
||||
|
|
@ -781,6 +807,7 @@ $envDisclosure = [pscustomobject][ordered]@{
|
|||
DenseTown = [bool]$DenseTown
|
||||
CaptureContention = [bool]$CaptureContention
|
||||
RuntimeCounters = -not [bool]$SkipRuntimeCounters
|
||||
CollisionShadowEvery = $CollisionShadowEvery
|
||||
Route = $routeFileName
|
||||
EnvironmentVariables = @($acdreamEnvVars)
|
||||
}
|
||||
|
|
@ -897,6 +924,25 @@ try {
|
|||
30
|
||||
$canonicalCheckpoints = @(Read-CanonicalCheckpoints)
|
||||
Add-CanonicalCheckpointFailures $process
|
||||
if ($CollisionShadowEvery -gt 0 -and $canonicalCheckpoints.Count -gt 0) {
|
||||
$lastShadow =
|
||||
$canonicalCheckpoints[-1].resources.PSObject.Properties['collisionShadow']
|
||||
$shadowSamples = if ($null -ne $lastShadow) {
|
||||
$lastShadow.Value.PSObject.Properties['samples']
|
||||
}
|
||||
if ($null -eq $shadowSamples -or [long]$shadowSamples.Value -le 0) {
|
||||
$failures.Add('collision shadow did not sample any query')
|
||||
}
|
||||
$mismatchArtifacts = @(
|
||||
Get-ChildItem -LiteralPath $collisionShadowDir `
|
||||
-Filter 'collision-shadow-*.json' `
|
||||
-File `
|
||||
-ErrorAction SilentlyContinue)
|
||||
if ($mismatchArtifacts.Count -ne 0) {
|
||||
$failures.Add(
|
||||
"collision shadow emitted $($mismatchArtifacts.Count) mismatch artifact(s)")
|
||||
}
|
||||
}
|
||||
if (-not $DenseTown) {
|
||||
Add-RelativeGateFailures
|
||||
}
|
||||
|
|
@ -980,6 +1026,7 @@ finally {
|
|||
BinaryCommit = $binaryCommit
|
||||
BinaryMatchesSource = $binaryMatchesSource
|
||||
SessionName = $env:SESSIONNAME
|
||||
CollisionShadowEvery = $CollisionShadowEvery
|
||||
ExitCode = $exitCode
|
||||
GracefulExit = $gracefulExit
|
||||
Failures = @($failures)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue