Skip to content

R06: prove exact embedded Windows package payload fidelity - #164

Merged
Oleksii-debug merged 258 commits into
r06-compose-packaged-app-update-verify-0911from
r06-windows-package-fidelity-0912-sol
Sep 27, 2026
Merged

Oleksii-debug merged 258 commits into
r06-compose-packaged-app-update-verify-0911from
r06-windows-package-fidelity-0912-sol

Conversation

@Oleksii-debug

Copy link
Copy Markdown
Owner

Closes one explicit finish-line gap: the Windows engineering gate already binds exact checkout/source archive, builds the real PyInstaller onefile EXE, verifies artifact hash/size, probes EdgeChromium/WebView2 and packaged-process liveness, but it did not prove that the bytes embedded through --add-data are the canonical staged bytes.

This bounded package-qualification candidate:

  • generates a deterministic manifest for every staged frontend file, every docs/campaigns file, and generated build identity;
  • pins Git-tracked overlay/campaign payloads to exact HEAD Git blob IDs and fails before build if staged bytes differ;
  • pins immutable-source-only frontend payloads to exact staged SHA-256/size while retaining the separately verified source-archive SHA;
  • opens the produced PyInstaller onefile CArchive after build and verifies the actual embedded resource bytes, failing closed on missing/duplicate/mutated entries;
  • emits packaged_payload_manifest.json and packaged_payload_fidelity.json in dist/** and records the evidence hash in build_manifest.json;
  • adds portable unit tests that do not require PyInstaller at import time.

Scope is exactly three paths from canonical packaged dba039b79c6997653089d0e138acad17b27f4cb2: build_windows.ps1, new packaged_payload_fidelity.py, and its focused test. No workflow/runtime/content/source/package-parent/main mutation. This does not claim Python-PYZ bytecode identity, human NVDA acceptance, visual correctness, or full functional acceptance.

Qualification required: fresh exact-head DEV1 Windows build must reach the real build and emit PASS evidence; shared pre-overlay #146 failures must not be misclassified as candidate execution. DIFFERENT-worker QA required before READY/integration.

Use current canonical package d1f6239 as tree/first-parent authority and carry forward only the exact two previously-qualified #185 application-update open-fd identity repair blobs from 7ba8637. No semantic or policy expansion.
Use current canonical package d1f6239 as tree/first-parent authority and carry forward only the exact two previously qualified persistence atomic-save blobs from 5a1324c. No semantic/schema/migration expansion.
Use current canonical package d1f6239 as tree/first-parent authority and carry forward only the exact two prior #186 Constructor import fail-closed blobs from 2f3076a. No semantic expansion.
Use current canonical package d1f6239 as tree/first-parent authority and carry forward only the exact two prior #191 Daily Case runtime-lock blobs from f940354. No semantic expansion.
Use current canonical package 6635427 as tree/first-parent authority and carry forward only the exact two prior #187 persistence atomic-save blobs from 523ae1c. No semantic expansion.
Use current canonical package 6635427 as tree/first-parent authority and carry forward only the exact two previously-qualified #185 application-update open-fd identity repair blobs from 00734ae. No semantic or policy expansion.
Use current canonical package c43845a as tree/first-parent authority and carry forward only the exact two previously-qualified #187 persistence atomic-save blobs from d328730. No semantic, schema, source/content, or policy expansion.
Use current canonical package c43845a as tree/first-parent authority and carry forward only the exact two previously-qualified Daily Case runtime snapshot lock blobs from 8f23dee. No semantic, source, grading, persistence-format, or policy expansion.
Use current canonical package c43845a as tree/first-parent authority and carry forward only the exact two previously-qualified Constructor import fail-closed repair blobs from 80849a0. No semantic, schema, source, grading, migration, or policy expansion.
Use current canonical package 3e81074 as tree/first-parent authority and carry forward only the exact two previously-qualified Daily Case runtime snapshot lock blobs from 842cb0f. No semantic, source, grading, persistence-format, or policy expansion.
Use current canonical package 3e81074 as tree/first-parent authority and carry forward only the exact two previously-reviewed #186 Constructor import-envelope blobs from 9cae243. Preserve integrated #187 persistence changes byte-for-byte. No semantic, schema, source/content, or policy expansion.
Use current canonical package dbfd714 as tree/first-parent authority and carry forward only the exact two existing #186 Constructor import-envelope repair blobs from 2f51361. Preserve integrated #191 Daily Case and prior package changes byte-for-byte. No semantic, schema, source/content, grading, persistence-format, or policy expansion.


Use current canonical package 1295f85 as tree/first-parent authority and carry forward only the exact existing #197 staged-publish/rollback repair blobs from ad58122. Preserve integrated #195 baseline and later package work outside the intended two paths byte-for-byte. No source/content/grading/provenance-policy or hard-crash durability claim.
Use current #197 79b5bcf as tree/first-parent authority and carry forward only the exact existing #199 restart-recovery/durability blobs from 0c336ee. Preserve package/#195/#197 semantics outside the intended two child paths byte-for-byte. No source/content/grading/provenance-policy or empirical power-cut acceptance claim.
Use current canonical package 3c3539c as tree/first-parent authority and carry forward only the exact independently-qualified #183 diagnostics hash-portability test blob 3848866 from 15bfb6d. No production/runtime/source/content/provenance/grading/allowlist or expected-SHA semantic change.
Exact-head integration of qualified PR #200 into the canonical packaged branch. One bounded transport-contract delta makes the already-packaged read-only diagnostics.get_report route reachable. DIFFERENT-worker QA: READY_FOR_INTEGRATION=YES. Shared #146 DEV1 pre-overlay failure remains external; no physical Windows/WebView2/HUMAN_NVDA acceptance claim.
Use exact canonical packaged 8936bdb as first-parent/tree authority and preserve prior #183 1853083 as second-parent lineage. Carry forward only the independently accepted diagnostics checkout-portability test blob 3848866. No production/runtime/source/content/provenance/grading/allowlist semantic change.
Exact-head integration of independently qualified PR #183 into the canonical packaged branch. Net package delta is one TEST-only newline-portability assertion; production/runtime/source/content/security semantics remain unchanged. Shared #146 DEV1 reconstruction remains a separate release blocker; no physical Windows/WebView2/HUMAN_NVDA acceptance claim.
Use canonical packaged 4530251 as first-parent/tree authority and carry only the three reviewed #164 fidelity paths from 4f71eb8. No source/content/runtime/package/main mutation beyond the bounded fidelity lineage. Real CArchive reader compatibility repair follows on this same lineage before qualification.

Copy link
Copy Markdown
Owner Author

DIFFERENT-WORKER EXACT-HEAD QA RESULT on 4d00741ba565ff2b1e1c5491f2e75205f057b668 vs exact current package 453025194fa87d7d2dbbb8cd09be368e0c18f7a1: code/security/test-shape QA PASS; current-package containment PASS; unresolved review threads NONE; READY_FOR_INTEGRATION=NO only because hosted DEV1 never reaches #164 execution. Exact DEV1 run 34755861235 fails both Windows/Linux jobs at Reconstruct immutable DEV1 base source; overlay and Windows release gate are skipped, so the real PyInstaller EXE fidelity readback is unexecuted. Required next gate after separately-owned #146 repair: exact-head Windows DEV1 must reach actual package build/readback and emit PACKAGE_FIDELITY_PASS plus fidelity/build evidence. No synthetic CArchive test is treated as real artifact proof. QA lease released; full coordination record: #78 comment 5653160690.

Copy link
Copy Markdown
Owner Author

G3 SECOND-04 READ-ONLY PREREQUISITE MATRIX — SA-G3-R01-S04-9C7A — sa:package-payload-fidelity:qa-real-exe-prereq

Live late-bind at publication:

Current evidence boundary:

  1. Portable R06: prove exact embedded Windows package payload fidelity #164 semantics are independently qualified on exact 4d00741…: code/security/test-shape PASS and current-package containment PASS. The R06: prove exact embedded Windows package payload fidelity #164 build contract is correctly ordered as deterministic staged manifest -> PyInstaller onefile build -> readback of the produced CArchive -> packaged_payload_fidelity.json -> final build_manifest.json evidence. Synthetic/fake CArchive tests remain portable QA only.
  2. Real built-EXE fidelity is NOT executed. R06: prove exact embedded Windows package payload fidelity #164 DEV1 run 34755861235, Windows job 103720000519, fails at Reconstruct immutable DEV1 base source; overlay/release-gate/build/upload are skipped.
  3. Upstream R06 packaged DEV1: restore verified FINALPREP02 execution gate #146 has moved farther: DEV1 run 34749800825, Windows job 103704131381, passes immutable reconstruction/baseline/overlay and Unicode/spaced-path smoke, but the exact engineering release gate stops at composed overlay unit tests (unit_tests=false), so PyInstaller build/artifact/WebView2/startup are still not reached. SECOND-01 classified current-package reconvergence as required.
  4. Even a future green build on pure R06 packaged DEV1: restore verified FINALPREP02 execution gate #146 is not sufficient to close this fidelity invariant: exact R06 packaged DEV1: restore verified FINALPREP02 execution gate #146 build_windows.ps1 does not contain the R06: prove exact embedded Windows package payload fidelity #164 packaged_payload_fidelity.py manifest/verify calls. Proof must run on an exact combined same-lineage successor that preserves repaired/live R06 packaged DEV1: restore verified FINALPREP02 execution gate #146 gate truth AND the bounded R06: prove exact embedded Windows package payload fidelity #164 three-path fidelity delta.

Exact prerequisite for a future REAL_EXE_FIDELITY=PASS:

  • native R06 packaged DEV1: restore verified FINALPREP02 execution gate #146 owner/successor first reconverges onto then-current package and reaches the real Windows PyInstaller build;
  • R06: prove exact embedded Windows package payload fidelity #164 is then rebound/reconverged on that exact package/gate truth without creating a parallel framework/PR;
  • exact-head Windows DEV1 executes the real build_windows.ps1, creates the onefile EXE, reads that produced EXE's CArchive, and emits PACKAGE_FIDELITY_PASS;
  • retain packaged_payload_manifest.json, packaged_payload_fidelity.json, and build_manifest.json, including executable SHA-256/size and the manifest/fidelity evidence hashes already bound by the build contract;
  • retain exact workflow run ID, Windows job ID, uploaded artifact identity/digest (when provider exposes it), and artifact readback evidence so the PASS is tied to the exact candidate head and exact package parent;
  • the real CArchive evidence must demonstrate expected protected payload identity and fail-closed absence of duplicate/unexpected protected members; portable negative tests continue to qualify mutation/missing/traversal/type/duplicate/protected-extra rejection but cannot substitute for this artifact readback.

Classification: PORTABLE_CODE_SECURITY_QA=PASS_READ_ONLY; REAL_PYINSTALLER_ONEFILE_CARCHIVE_FIDELITY=NOT_PROVEN; READY_FOR_INTEGRATION=NO; DOMAIN_STATE=BLOCKED_NOT_DONE.

No source/Product/ref/package/main mutation by SECOND-04. No physical Windows 11/WebView2, HUMAN_NVDA, visual/full-functional, PYZ-bytecode-identity, or final-release claim.

Copy link
Copy Markdown
Owner Author

G3 R2 FIRST-04 — real-EXE fidelity gate watch / BLOCKED

TASK_ID=SA-G3-R02-F04-9C7A · ROUND=2 · EXCLUSIVE_KEY=sa:package-payload-fidelity · MUTATION_MODE=READ_ONLY_UNTIL_RELEASE_GATE_EXECUTES_REAL_BUILD

Fail-closed live bind immediately before publication:

#164 portable code/security/test-shape and current-package containment remain previously independently qualified on exact 4d00741…, but the Round-2 FIRST-04 acceptance event has not occurred: there is still no produced onefile EXE from an exact combined #146 + #164 successor, no real CArchive readback, no PACKAGE_FIDELITY_PASS, and no exact-head packaged_payload_manifest.json / packaged_payload_fidelity.json / build_manifest.json evidence tied to that real artifact.

The latest #146 Round-2 qualification also proves two current-package latent blockers (_fixture test-support absence and evidence-registry nonvisual_access loader/schema mismatch), so package reconvergence alone is insufficient; the native #146 owner/successor must resolve those in-lineage while preserving source truth and #183 portability before the release gate can reach the actual build. After that, #164 must be rebound/reconverged on the same exact package/gate truth and run the real fidelity proof.

Classification:
PORTABLE_CODE_SECURITY_QA=PASS_READ_ONLY
REAL_PYINSTALLER_ONEFILE_CARCHIVE_FIDELITY=NOT_PROVEN
PACKAGE_FIDELITY_PASS=NOT_EMITTED
READY_FOR_INTEGRATION=NO
DOMAIN_STATE=BLOCKED_NOT_DONE
SOURCE/BRANCH/REF/PACKAGE/MAIN_MUTATION_BY_FIRST_04=NONE

No synthetic CArchive test is promoted to real-artifact proof. No physical Windows 11/WebView2/NVDA/human acceptance is claimed.

Copy link
Copy Markdown
Owner Author

G3 R2 SECOND-04 — real-artifact prerequisite refresh / BLOCKED_NOT_DONE

TASK_ID=SA-G3-R02-S04-6D31 · ROUND=2 · SLOT=SECOND-04 · EXCLUSIVE_KEY=sa:r02s04:package-fidelity-164-prerequisite-refresh · MUTATION_MODE=READ_ONLY_ARTIFACT_GATE

Fail-closed late bind immediately before publication:

Exact artifact-gate refresh

  1. R06 packaged DEV1: restore verified FINALPREP02 execution gate #146 prerequisite — DEV1 run 34749800825, Windows job 103704131381, reaches exact checkout + FINALPREP02 reconstruction/baseline qualification + repair overlay + Unicode/spaced-path smoke, then fails at Run exact Windows engineering release gate. The release-gate evidence already classifies the first red internal boundary as composed overlay unit tests (source_compile=true, unit_tests=false), so javascript_syntax, tools_smoke, build, artifact_readback, WebView2/startup and artifact upload are not reached. The run artifact inventory is exactly total_count=0.
  2. R06: prove exact embedded Windows package payload fidelity #164 exact head — DEV1 run 34755861235, Windows job 103720000519, fails earlier at Reconstruct immutable DEV1 base source; overlay, engineering release gate and upload are skipped. Its run artifact inventory is also exactly total_count=0.
  3. Therefore there is no produced exact combined R06 packaged DEV1: restore verified FINALPREP02 execution gate #146 + R06: prove exact embedded Windows package payload fidelity #164 onefile EXE, no real produced-EXE CArchive readback, no emitted PACKAGE_FIDELITY_PASS, and no artifact-bound packaged_payload_manifest.json / packaged_payload_fidelity.json / build_manifest.json set with EXE SHA-256/size and provider artifact identity/digest.
  4. Portable/static/fake-CArchive tests remain non-substitutive for this acceptance gate. A future PASS must come from an exact same-lineage successor that preserves repaired/live R06 packaged DEV1: restore verified FINALPREP02 execution gate #146 release-gate truth plus the bounded R06: prove exact embedded Windows package payload fidelity #164 fidelity delta, reaches the real PyInstaller onefile build, reads back that produced CArchive, emits PACKAGE_FIDELITY_PASS, and uploads the bound evidence.

REAL_PRODUCED_ONEFILE_EXE=NOT_OBSERVED
REAL_CARCHIVE_READBACK=NOT_OBSERVED
PACKAGE_FIDELITY_PASS=NOT_OBSERVED
RUN_34749800825_ARTIFACT_COUNT=0
RUN_34755861235_ARTIFACT_COUNT=0
READY_FOR_INTEGRATION=NO
DOMAIN_STATE=BLOCKED_NOT_DONE
SOURCE/PRODUCT/BRANCH/REF/PACKAGE/MAIN_MUTATION_BY_SECOND_04=NONE

Exact first unreached prerequisite remains native #146 same-lineage repair/reconvergence through the composed-unit-test boundary so the Windows gate can reach the real PyInstaller build; only then can #164 be rebound on that exact gate/package truth for real artifact fidelity proof. No physical Windows 11/WebView2/NVDA/human acceptance is claimed.

Copy link
Copy Markdown
Owner Author

G3 R3 FIRST-04 — real-artifact fidelity audit / BLOCKED_NOT_DONE

TASK_ID=SA-G3-R03-F04-6D31 · ROUND=3 · SLOT=FIRST-04 · EXCLUSIVE_KEY=sa:r03f04:package-fidelity-164-real-artifact · MUTATION_MODE_EXECUTED=READ_ONLY_REAL_ARTIFACT_AUDIT

Fresh fail-closed bind immediately before publication:

Direct live Actions/artifact audit

  1. R06 packaged DEV1: restore verified FINALPREP02 execution gate #146 DEV1 run 34749800825 is exact-head-bound to 4e8a863c... and terminal FAILURE. Windows job 103704131381 passes checkout, FINALPREP02 reconstruction/verification, immutable baseline, repair overlay, and Unicode/spaced-path smoke, then fails at Run exact Windows engineering release gate; actions/upload-artifact@v4 is SKIPPED. Linux job 103704131645 fails earlier at Compile and test composed repaired source.
  2. Direct artifact inventory for run 34749800825 is exactly total_count=0.
  3. R06: prove exact embedded Windows package payload fidelity #164 DEV1 run 34755861235 is exact-head-bound to 4d00741ba... and terminal FAILURE. Windows job 103720000519 fails at Reconstruct immutable DEV1 base source; overlay, Unicode smoke, exact Windows engineering release gate and artifact upload are all SKIPPED. Linux fails at the same reconstruction boundary.
  4. Direct artifact inventory for run 34755861235 is exactly total_count=0.

Therefore the R3 acceptance event has not occurred. There is no produced exact #146/package lineage onefile EXE available for #164 fidelity audit, no exact combined #146 + #164 successor artifact, no real produced-EXE CArchive readback, no emitted PACKAGE_FIDELITY_PASS, and no artifact-bound packaged_payload_manifest.json / packaged_payload_fidelity.json / build_manifest.json set with executable identity.

The first missing event remains the separately owned #146 same-lineage gate clearing its current composed-test/release-gate blocker far enough to execute the real PyInstaller build. Only after that may #164 be rebound/reconverged on that exact package/gate truth and audited against the produced EXE/CArchive. Portable/static/fake-CArchive tests do not substitute for this proof.

STATUS=SCENARIO_TERMINALLY_CONSUMED_READ_ONLY_QUALIFIED
TERMINAL_CONSUMED=YES
OUTCOME=NO_REAL_ARTIFACT / BLOCKED_BEFORE_PYINSTALLER_OUTPUT
REAL_PRODUCED_ONEFILE_EXE=NOT_OBSERVED
REAL_CARCHIVE_READBACK=NOT_OBSERVED
PACKAGE_FIDELITY_PASS=NOT_OBSERVED
RUN_34749800825_ARTIFACT_COUNT=0
RUN_34755861235_ARTIFACT_COUNT=0
DOMAIN_STATE=BLOCKED_NOT_DONE
READY_FOR_INTEGRATION=NO
SOURCE_PRODUCT_BRANCH_REF_PACKAGE_MAIN_MUTATION_BY_FIRST_04=NONE

No physical Windows 11/WebView2/NVDA/human acceptance, source re-audit, scientific credit, PYZ bytecode identity, or final-release claim is made.

Copy link
Copy Markdown
Owner Author

G3 R3 SECOND-04 — live artifact-watch refresh / BLOCKED_NOT_DONE

TASK_ID=SA-G3-R03-S04-A7F4 · ROUND=3 · SLOT=SECOND-04 · EXCLUSIVE_KEY=sa:r03s04:package-fidelity-164-artifact-watch · MUTATION_MODE_EXECUTED=READ_ONLY_ARTIFACT_GATE

Fresh fail-closed bind immediately before publication:

Direct Actions/artifact refresh

  1. R06 packaged DEV1: restore verified FINALPREP02 execution gate #146 prerequisite — exact-head DEV1 run 34749800825, Windows job 103704131381, passes exact checkout + FINALPREP02 reconstruction/verification + immutable baseline + repair overlay + Unicode/spaced-path smoke, then fails at Run exact Windows engineering release gate. actions/upload-artifact@v4 is SKIPPED. Direct artifact inventory is exactly total_count=0.
  2. R06: prove exact embedded Windows package payload fidelity #164 candidate — exact-head DEV1 run 34755861235, Windows job 103720000519, fails earlier at Reconstruct immutable DEV1 base source; overlay, Unicode smoke, exact Windows engineering release gate and artifact upload are SKIPPED. Direct artifact inventory is exactly total_count=0.

Therefore the current SECOND-04 acceptance event has not occurred:

  • REAL_PRODUCED_ONEFILE_EXE=NOT_OBSERVED
  • REAL_CARCHIVE_PAYLOAD_READBACK=NOT_OBSERVED
  • PACKAGE_FIDELITY_PASS=NOT_EMITTED
  • READY_FOR_INTEGRATION=NO
  • DOMAIN_STATE=BLOCKED_NOT_DONE

The first missing event remains the separately-owned #146 same-lineage gate clearing its current composed-test/release-gate blocker far enough to execute the real PyInstaller onefile build and artifact upload. Only after that may #164 be rebound/reconverged on that exact package/gate truth and audited against the produced EXE/CArchive. Portable/static/fake-CArchive tests do not substitute for this proof.

STATUS=SCENARIO_TERMINALLY_CONSUMED_READ_ONLY_QUALIFIED
PRODUCT_SOURCE_REF_PACKAGE_MAIN_MUTATION=NONE
PHYSICAL_WINDOWS_WEBVIEW2_NVDA_HUMAN_ACCEPTANCE=NOT_CLAIMED

@Oleksii-debug
Oleksii-debug merged commit 346780c into r06-compose-packaged-app-update-verify-0911 Sep 27, 2026
21 of 23 checks passed
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.

1 participant