Compare commits

...
5 Commits
13 changed files with 137 additions and 5 deletions

No files matched your search

@@ -2,8 +2,8 @@
status: testing
phase: 01-reproducible-fidelity-baseline
source: [01-VERIFICATION.md]
started: 2026-11-14T05:39:44.958968+00:00
updated: 2026-11-14T05:39:44.958968+00:00
started: 2026-11-14T21:56:41.166382+00:00
updated: 2026-11-14T21:56:41.166382+00:00
---
## Current Test
@@ -68,3 +68,7 @@ blocked: 0
## Gaps
No implementation issues reported in this UAT session. All ten actual human checks remain pending; 0/120 capture obligations are accepted. Follow docs/evidence/checkpoint-session.md as one combined session. Prepared materials and prior tests do not supply human approval.
## Session Notes
Restart requested by the user. Readiness then failed on generated tools/recon/__pycache__/fidelity_checkpoint.cpython-312.pyc before any human capture test. Fixed by2fe8b40; real bundled readiness succeeds twice with no bytecode writes. This automated preflight repair does not pass A1 or any other human check.
@@ -3,8 +3,8 @@ phase: 01-reproducible-fidelity-baseline
verified: 2026-11-14T05:34:19Z
status: human_needed
score: 29/42 must-haves verified
covered_files: [".planning/REQUIREMENTS.md",".planning/ROADMAP.md",".planning/phases/01-reproducible-fidelity-baseline/01-01-PLAN.md",".planning/phases/01-reproducible-fidelity-baseline/01-01-SUMMARY.md",".planning/phases/01-reproducible-fidelity-baseline/01-02-PLAN.md",".planning/phases/01-reproducible-fidelity-baseline/01-02-SUMMARY.md",".planning/phases/01-reproducible-fidelity-baseline/01-03-PLAN.md",".planning/phases/01-reproducible-fidelity-baseline/01-03-SUMMARY.md",".planning/phases/01-reproducible-fidelity-baseline/01-04-PLAN.md",".planning/phases/01-reproducible-fidelity-baseline/01-04-SUMMARY.md",".planning/phases/01-reproducible-fidelity-baseline/01-05-PLAN.md",".planning/phases/01-reproducible-fidelity-baseline/01-05-SUMMARY.md",".planning/phases/01-reproducible-fidelity-baseline/01-06-PLAN.md",".planning/phases/01-reproducible-fidelity-baseline/01-06-SUMMARY.md",".planning/phases/01-reproducible-fidelity-baseline/01-07-PLAN.md",".planning/phases/01-reproducible-fidelity-baseline/01-07-SUMMARY.md","artifacts/fidelity/01-07-full-suite.json","artifacts/fidelity/01-07-full-suite.log","artifacts/fidelity/01-review-fixes/acceptance-final.json","artifacts/fidelity/01-review-fixes/python-fidelity-final.log","artifacts/fidelity/01-review-fixes/readiness-final.json","artifacts/fidelity/verification/01-07-final-checkpoint.json","docs/compatibility.md","docs/decisions.md","docs/evidence/README.md","docs/evidence/capabilities.json","docs/evidence/checkpoint-session.md","docs/evidence/linux-session.md","docs/evidence/phase01-baseline.md","docs/evidence/scenarios.json","docs/evidence/windows-session.md","docs/original-manifest.json","docs/progress.md","docs/tasks.md","scripts/collect-fidelity-linux.sh","scripts/collect-fidelity-windows.cmd","scripts/collect-fidelity-windows.ps1","scripts/env.sh","scripts/prepare-fidelity-checkpoint.sh","scripts/test.sh","src/GamePort/Application/FidelityObservation.cs","src/GamePort/Program.cs","tests/GamePort.FidelityObservationTests/GamePort.FidelityObservationTests.csproj","tests/GamePort.FidelityObservationTests/Program.cs","tests/fidelity-viewer.test.mjs","tests/fidelity-windows.Tests.ps1","tests/test_fidelity_acceptance.py","tests/test_fidelity_capture.py","tests/test_fidelity_checkpoint.py","tests/test_fidelity_ledger.py","tests/test_fidelity_observation.py","tests/test_fidelity_review.py","tests/test_fidelity_scenarios.py","tests/test_fidelity_sessions.py","tools/recon/fidelity.py","tools/recon/fidelity_acceptance.py","tools/recon/fidelity_capture.py","tools/recon/fidelity_checkpoint.py","tools/recon/fidelity_ledger.py","tools/recon/fidelity_receipts.py","tools/recon/fidelity_review.py","tools/recon/fidelity_viewer/index.html","tools/recon/fidelity_viewer/style.css","tools/recon/fidelity_viewer/viewer.mjs","tools/recon/inventory.py"]
covered_digest: "v4:sha256:70961b746a2cfc2cdb08a10750338dafb95fa17bd4ab0ecb4e3453c6c1075bcc"
covered_files: [".planning/REQUIREMENTS.md",".planning/ROADMAP.md",".planning/phases/01-reproducible-fidelity-baseline/01-01-PLAN.md",".planning/phases/01-reproducible-fidelity-baseline/01-01-SUMMARY.md",".planning/phases/01-reproducible-fidelity-baseline/01-02-PLAN.md",".planning/phases/01-reproducible-fidelity-baseline/01-02-SUMMARY.md",".planning/phases/01-reproducible-fidelity-baseline/01-03-PLAN.md",".planning/phases/01-reproducible-fidelity-baseline/01-03-SUMMARY.md",".planning/phases/01-reproducible-fidelity-baseline/01-04-PLAN.md",".planning/phases/01-reproducible-fidelity-baseline/01-04-SUMMARY.md",".planning/phases/01-reproducible-fidelity-baseline/01-05-PLAN.md",".planning/phases/01-reproducible-fidelity-baseline/01-05-SUMMARY.md",".planning/phases/01-reproducible-fidelity-baseline/01-06-PLAN.md",".planning/phases/01-reproducible-fidelity-baseline/01-06-SUMMARY.md",".planning/phases/01-reproducible-fidelity-baseline/01-07-PLAN.md",".planning/phases/01-reproducible-fidelity-baseline/01-07-SUMMARY.md","artifacts/fidelity/01-07-full-suite.json","artifacts/fidelity/01-07-full-suite.log","artifacts/fidelity/01-review-fixes/acceptance-final.json","artifacts/fidelity/01-review-fixes/python-fidelity-final.log","artifacts/fidelity/01-review-fixes/readiness-final.json","artifacts/fidelity/bytecode-fix/acceptance.json","artifacts/fidelity/bytecode-fix/fidelity-tests.log","artifacts/fidelity/bytecode-fix/observer-build.log","artifacts/fidelity/bytecode-fix/observer-retry.log","artifacts/fidelity/bytecode-fix/ready-bundled-1.json","artifacts/fidelity/bytecode-fix/ready-bundled-2.json","artifacts/fidelity/verification/01-07-final-checkpoint.json","docs/compatibility.md","docs/decisions.md","docs/evidence/README.md","docs/evidence/capabilities.json","docs/evidence/checkpoint-session.md","docs/evidence/linux-session.md","docs/evidence/phase01-baseline.md","docs/evidence/scenarios.json","docs/evidence/windows-session.md","docs/original-manifest.json","docs/progress.md","docs/tasks.md","scripts/collect-fidelity-linux.sh","scripts/collect-fidelity-windows.cmd","scripts/collect-fidelity-windows.ps1","scripts/env.sh","scripts/prepare-fidelity-checkpoint.sh","scripts/test.sh","src/GamePort/Application/FidelityObservation.cs","src/GamePort/Program.cs","tests/GamePort.FidelityObservationTests/GamePort.FidelityObservationTests.csproj","tests/GamePort.FidelityObservationTests/Program.cs","tests/fidelity-viewer.test.mjs","tests/fidelity-windows.Tests.ps1","tests/test_fidelity_acceptance.py","tests/test_fidelity_capture.py","tests/test_fidelity_checkpoint.py","tests/test_fidelity_ledger.py","tests/test_fidelity_observation.py","tests/test_fidelity_review.py","tests/test_fidelity_scenarios.py","tests/test_fidelity_sessions.py","tools/recon/fidelity.py","tools/recon/fidelity_acceptance.py","tools/recon/fidelity_capture.py","tools/recon/fidelity_checkpoint.py","tools/recon/fidelity_ledger.py","tools/recon/fidelity_receipts.py","tools/recon/fidelity_review.py","tools/recon/fidelity_viewer/index.html","tools/recon/fidelity_viewer/style.css","tools/recon/fidelity_viewer/viewer.mjs","tools/recon/inventory.py"]
covered_digest: "v4:sha256:acca5bdaa1f405a74d29d69c8ebe048085a6a4ff4c86e3b3f80c97cebfba8ac3"
behavior_unverified: 0
overrides_applied: 0
decision_coverage:
@@ -303,3 +303,23 @@ The fingerprint was produced by the owner CLI `query verification.fingerprint` o
_Verified: 2026-11-14T05:34:19Z_
_Verifier: gsd-verifier_
## Bounded Verification Follow-up — Bundled Bytecode Fix (2026-11-14)
The first actual UAT readiness command exposed a tooling defect: Python local imports created `__pycache__/*.pyc` inside the sealed checkpoint, so later immutable-tree checks could fail. This qualifies the earlier readiness evidence; it was not an original/native capture or an A1 pass. Historical bundle `phase01-before-bytecode-fix-20261114T215109Z` is preserved. The freshly assembled `dist/fidelity/phase01` retains 11,001 immutable members and existing result/run history.
Independently inspected regression commit `23ee1c2` and implementation commit `2fe8b40`. The regression invokes all five copied bundled CLI entry points using `python -E`, checks that no bytecode appears, invokes copied checkpoint preflight twice, and compares the complete tree identity before/after. The fix sets `sys.dont_write_bytecode = True` only under `__name__ == '__main__'`, before local imports, in acceptance/checkpoint/capture/review/ledger. It adds two required sys imports and changes no gameplay, library algorithm, receipt schema or acceptance decision.
| Retained evidence inspected | Actual result and scope |
|---|---|
| bytecode-fix/ready-bundled-1.json and ready-bundled-2.json | Exact bundled-cwd default-python readiness command succeeded twice without -B: materials_ready true, 11,001 members, human_needed; updated checkpoint identity receipt records zero created bytecode files |
| bytecode-fix/fidelity-tests.log | Initial broad attempt ran 185 test methods, with an observer-class setup ERROR caused by its 90-second .NET build timeout; the run is FAILED, not a passing aggregate. The completed methods include the 26 checkpoint regressions |
| bytecode-fix/observer-build.log | Separate bounded build succeeded in 72.12s, zero errors; one NU1900 vulnerability-index access warning retained |
| bytecode-fix/observer-retry.log | Observer-only retry: seven tests PASS in 24.473s; 192 target checks are covered across the separate runs, not by a successful initial full run |
| bytecode-fix/acceptance.json | Strict audit remains exit 1, errors [], 0/120 accepted, all ten named human findings pending |
| verification/01-07-final-checkpoint.json | Current manifest/READY identities updated for source fix 2fe8b40; package runtime provenance remains separately identified |
Evidence paths above are under `artifacts/fidelity/`. No tests, runtime, full GPU suite or wider audit were rerun by this follow-up verifier. The reviewed change is confined to bundled CLI cache behavior; no new native compatibility or gameplay claim follows. The user-selected UAT restart preserves all ten pending findings and agent-owned result reconciliation.
**Follow-up verdict:** the bounded bytecode defect is corrected by the inspected implementation and retained behavioral evidence. Overall status remains **human_needed**, score **29/42**, with **all ten human checks pending**. Fingerprint refreshed through the owner CLI over the prior 65 inputs plus the six evidence files above; prior proof is retained.
_Follow-up verified: 2026-11-14T21:58:58Z_
@@ -1 +1 @@
No external API integration: Phase 01 implements local filesystem provenance, native process capture, offline media review and a contained loopback file viewer; it consumes existing game/tool executables without adding a hosted service, external SDK integration or remote API capability.
No external API integration: Phase 01 uses local files, native capture, offline media review and a loopback viewer; no hosted API or external SDK is added.
+17
View File
@@ -1,5 +1,22 @@
# Compatibility and validation
## Bundled checker cache fix — 2026-11-14
A user readiness check created Python bytecode inside the sealed checkpoint and
then rejected it as unexpected immutable material. Regression23ee1c2 reproduces
this; fix2fe8b40 disables bytecode writes before local imports in all five bundled
Python command entry points. All26 checkpoint tests pass, including a real copied
CLI test with environment overrides ignored. The exact bundled readiness command
passes twice without creating pyc files. A fresh11,001-member checkpoint replaces
phase01; the old tree and its cache/results are retained in local history, and
existing results/generated execution copies were copied into the new mutable roots.
The broader attempt ran185 tests but failed observer class setup after a90-second
.NET build timeout. A separate bounded local build passed; the seven observer
checks then passed on their own retry. Thus all192 fidelity checks are covered
across the two runs; the initial full attempt remains recorded as failed.
No runtime implementation changed. Actual original/native acceptance remains
0/120 OPEN and all ten human UAT items remain pending.
## Phase 1 verification — human session pending
Final owner-validated verification is `human_needed`:29/42 truths verified and13
+17
View File
@@ -1,5 +1,22 @@
# Decisions
## Bundled checker cache fix — 2026-11-14
A user readiness check created Python bytecode inside the sealed checkpoint and
then rejected it as unexpected immutable material. Regression23ee1c2 reproduces
this; fix2fe8b40 disables bytecode writes before local imports in all five bundled
Python command entry points. All26 checkpoint tests pass, including a real copied
CLI test with environment overrides ignored. The exact bundled readiness command
passes twice without creating pyc files. A fresh11,001-member checkpoint replaces
phase01; the old tree and its cache/results are retained in local history, and
existing results/generated execution copies were copied into the new mutable roots.
The broader attempt ran185 tests but failed observer class setup after a90-second
.NET build timeout. A separate bounded local build passed; the seven observer
checks then passed on their own retry. Thus all192 fidelity checks are covered
across the two runs; the initial full attempt remains recorded as failed.
No runtime implementation changed. Actual original/native acceptance remains
0/120 OPEN and all ten human UAT items remain pending.
## Phase 1 verification — human session pending
Final owner-validated verification is `human_needed`:29/42 truths verified and13
+17
View File
@@ -1,5 +1,22 @@
# Progress — 2026-11-07
## Bundled checker cache fix — 2026-11-14
A user readiness check created Python bytecode inside the sealed checkpoint and
then rejected it as unexpected immutable material. Regression23ee1c2 reproduces
this; fix2fe8b40 disables bytecode writes before local imports in all five bundled
Python command entry points. All26 checkpoint tests pass, including a real copied
CLI test with environment overrides ignored. The exact bundled readiness command
passes twice without creating pyc files. A fresh11,001-member checkpoint replaces
phase01; the old tree and its cache/results are retained in local history, and
existing results/generated execution copies were copied into the new mutable roots.
The broader attempt ran185 tests but failed observer class setup after a90-second
.NET build timeout. A separate bounded local build passed; the seven observer
checks then passed on their own retry. Thus all192 fidelity checks are covered
across the two runs; the initial full attempt remains recorded as failed.
No runtime implementation changed. Actual original/native acceptance remains
0/120 OPEN and all ten human UAT items remain pending.
## Phase 1 verification — human session pending
Final owner-validated verification is `human_needed`:29/42 truths verified and13
+17
View File
@@ -1,5 +1,22 @@
# Tasks
## Bundled checker cache fix — 2026-11-14
A user readiness check created Python bytecode inside the sealed checkpoint and
then rejected it as unexpected immutable material. Regression23ee1c2 reproduces
this; fix2fe8b40 disables bytecode writes before local imports in all five bundled
Python command entry points. All26 checkpoint tests pass, including a real copied
CLI test with environment overrides ignored. The exact bundled readiness command
passes twice without creating pyc files. A fresh11,001-member checkpoint replaces
phase01; the old tree and its cache/results are retained in local history, and
existing results/generated execution copies were copied into the new mutable roots.
The broader attempt ran185 tests but failed observer class setup after a90-second
.NET build timeout. A separate bounded local build passed; the seven observer
checks then passed on their own retry. Thus all192 fidelity checks are covered
across the two runs; the initial full attempt remains recorded as failed.
No runtime implementation changed. Actual original/native acceptance remains
0/120 OPEN and all ten human UAT items remain pending.
## Phase 1 verification — human session pending
Final owner-validated verification is `human_needed`:29/42 truths verified and13
+18
View File
@@ -76,6 +76,24 @@ class FidelityCheckpoint(unittest.TestCase):
self.assertEqual(receipts.identify_tree(self.original)['files'],
receipts.read_json(self.manifest)['files'])
def test_bundled_python_commands_preserve_immutable_tree(self):
self.prepare()
before = receipts.identify_tree(self.output)
for name in ('fidelity_acceptance', 'fidelity_checkpoint', 'fidelity_capture',
'fidelity_review', 'fidelity_ledger'):
result = subprocess.run(
[sys.executable, '-E', 'tools/recon/' + name + '.py', '--help'],
cwd=self.output, capture_output=True, text=True, timeout=20)
self.assertEqual(result.returncode, 0, result.stderr)
self.assertFalse(list((self.output / 'tools/recon').rglob('*.pyc')), name)
for _ in range(2):
result = subprocess.run(
[sys.executable, '-E', 'tools/recon/fidelity_checkpoint.py',
'preflight', '--checkpoint', '.'], cwd=self.output,
capture_output=True, text=True, timeout=20)
self.assertEqual(result.returncode, 0, result.stderr)
self.assertEqual(receipts.identify_tree(self.output), before)
def test_actual_package_and_resource_bytes_identified(self):
self.prepare()
manifest = receipts.read_json(self.output / 'manifest.json')
+4
View File
@@ -9,6 +9,10 @@ import hashlib
from pathlib import Path
import sys
# A bundled CLI must not create bytecode inside the sealed checkpoint.
if __name__ == '__main__':
sys.dont_write_bytecode = True
from fidelity_checkpoint import MATERIALS, PROJECT, _package, preflight
from fidelity_receipts import (audit_scenarios, canonical_bytes, contained_path,
identify_file, identify_tree, read_json, read_receipt, validate_receipt,
+5
View File
@@ -17,9 +17,14 @@ import re
import shutil
import signal
import subprocess
import sys
import tempfile
import time
# A bundled CLI must not create bytecode inside the sealed checkpoint.
if __name__ == '__main__':
sys.dont_write_bytecode = True
from fidelity_checkpoint import _package
from fidelity_receipts import (MAX_JSON_BYTES, _id, _write_json, canonical_bytes,
contained_path, identify_file, import_receipt, read_json, separated_roots,
+4
View File
@@ -14,6 +14,10 @@ import subprocess
import sys
import uuid
# A bundled CLI must not create bytecode inside the sealed checkpoint.
if __name__ == '__main__':
sys.dont_write_bytecode = True
from fidelity_receipts import (canonical_bytes, contained_path, identify_file,
identify_tree, read_json, relative_name, separated_roots, source_identity,
utc_now, validate_receipt, validate_scenario_contract, verify_inventory,
+4
View File
@@ -20,6 +20,10 @@ import subprocess
import sys
from urllib.parse import quote
# A bundled CLI must not create bytecode inside the sealed checkpoint.
if __name__ == '__main__':
sys.dont_write_bytecode = True
from fidelity_receipts import (KINDS, MAX_JSON_BYTES, canonical_bytes, contained_path,
identify_file, read_json, validate_receipt)
+5
View File
@@ -15,9 +15,14 @@ from pathlib import Path
import re
import shutil
import subprocess
import sys
import tempfile
from urllib.parse import quote, unquote, urlsplit
# A bundled CLI must not create bytecode inside the sealed checkpoint.
if __name__ == '__main__':
sys.dont_write_bytecode = True
from fidelity_receipts import (MAX_JSON_BYTES, canonical_bytes, contained_path,
identify_file, read_json, read_receipt, separated_roots,
validate_receipt)