Repository navigation
R06: bind update-health reads and artifact hashing to opened descriptors - #257
Oleksii-debug wants to merge 5 commits into
Conversation
|
HOSTED PR-MERGE REGRESSION CHECKPOINT / CORRECTION — candidate DEV05 runtime grading run Correction to the earlier wording: the DEV05 checkout log proves GitHub fetched DEV1
|
Adopt the already integrated #260 DEV05/DEV06/DEV10 checkout authority so hosted updater-health evidence is bound to this exact candidate SHA. Product/runtime bytes are unchanged.
|
HEAD_CHANGED / EXACT-HEAD QUALIFICATION AUTHORITY REPAIRED — The #257 product delta is unchanged. This fast-forward adds only the already integrated #260 literal-head qualification authority to the three workflows that qualify this runtime surface:
Each now checks out the pull-request head SHA (falling back to the workflow SHA outside PR context) and asserts the resulting HEAD before tests. These bytes are copied from current packaged qualification authority; no criterion is weakened. Product byte readback is exact versus prior #257 head
Direct compare to stacked parent #252 remains BEHIND 0 with exact parent merge-base. Fresh exact-head hosted runs are required; previous green runs are provenance only.
|
Oleksii-debug
left a comment
There was a problem hiding this comment.
FRESH EXACT-HEAD SECURITY/TOCTOU REVIEW — 8605b8b7c4b81e7dc663474e4ad1f8677b2da959
Reviewed the #257 two-file product delta plus the three qualification-only workflow bytes added to bind hosted evidence to the literal PR head.
Product findings:
- receipt parsing now binds the pre-read path identity to the opened descriptor using
fstat, reads from that held descriptor with an explicit size bound, re-checks the descriptor after read, and finally revalidates the pathname identity; - application and rollback hashing similarly bind pre-open identity to the held descriptor, hash from the descriptor, re-check descriptor identity after streaming, then revalidate the pathname;
- symlink/non-regular inputs fail closed before acceptance;
- same-byte pathname replacement is not accepted merely because content hashes match; dedicated regressions replace installed, rollback, and receipt pathnames between metadata lookup and open and require rejection;
- receipt shape/schema/version/executable-name/SHA identities remain fail-closed;
- failed health proof still preserves pending authority, receipt, and rollback evidence; successful commit ordering remains pending journal → receipt → rollback, so a cleanup crash cannot leave a live health receipt after rollback evidence is gone.
Qualification findings:
- DEV05/DEV06/DEV10 workflows now use the already integrated #260 literal-head checkout/assertion bytes;
- updater-health product/test blobs are byte-identical to the pre-workflow-repair #257 head; no runtime behavior changed in the qualification repair.
No blocking defect found in the changed surface. This does not claim a post-health watchdog, production signing, physical Windows updater E2E, or HUMAN_NVDA evidence.
EXACT_HEAD_SECURITY_REVIEW=PASS
PRODUCT_BYTES_UNCHANGED_BY_CI_REPAIR=PASS
READY_FOR_INTEGRATION=NO pending terminal fresh exact-head hosted qualification.
|
CI_TERMINAL / CANDIDATE_QUALIFIED — exact head Fresh literal-head hosted qualification is terminal SUCCESS:
Fresh exact-head security/TOCTOU review The candidate itself is therefore exactly qualified. Integration ordering remains fail-closed: #257 is stacked on #252, whose current head still requires its own fresh literal-head qualification before parent-first intake or an explicit governed reconvergence.
|
Scope
Security/reliability successor to #252. Closes fixed-path TOCTOU/read-amplification seams in post-update health authority without changing update authority, cleanup ordering, browser transport, content, grading, source provenance or package identity.
Exact lineage — 2026-09-29
r06-updater-self-identity-0929-sol@89bab26df4e5c9644178505649bcb2b32b434a03(R06: bind updater direct invocation to its signed app sibling #252);r06-health-receipt-readback-hardening-0929-sol@3b250b75b2f32cea5fda9f9694102f8b807256ad;runtime_engine/scripture_archive_runtime/application_update_health.pyruntime_engine/tests/test_application_update_health.py.Root causes closed
update-health.jsonpath was checked withlstat()and then read later with a separate path-based read. A same-user/local pathname replacement between those operations could make validation parse another inode. The 4096-byte bound was also enforced only after full-file read.Repair
Receipt readback now:
lstatidentity to opened-handlefstat;MAX + 1;Health artifact hashing now:
(device,inode,size,mtime_ns)to the opened descriptor;Regression coverage
changed before readback, even for semantically identical replacement bytes;Path.open;Hosted qualification state
DEV05 run
36619001147is terminal SUCCESS and executed 590 runtime tests, including both new descriptor-identity regressions; DEV0636619001187is also terminal SUCCESS. However log readback proves the then-current DEV05/DEV06pull_requestworkflows checked GitHub's synthetic PR merge ref rather than literal candidate head3b250b75.... These results are therefore PR-merge regression PASS, not exact-head qualification.PR #260 repairs the active DEV03/DEV05/DEV06/DEV10 gates so pull requests explicitly check out
${{ github.event.pull_request.head.sha || github.sha }}and assert the resultingHEADbefore tests. Literal-head hosted qualification must be rerun under that repaired authority before #257 can be called exact-head qualified.RUNTIME_PR_MERGE_REGRESSION=PASSEXACT_HEAD_RUNTIME_QUALIFICATION=NOT_PROVENREADY_FOR_INTEGRATION=NOpending repaired literal-head hosted qualification and independent changed-head review.Non-claims: no production signing, physical Windows 11/WebView2 E2E, HUMAN_NVDA, source/theological final acceptance, or final release acceptance.