Skip to content

test(updater): stabilize trusted snapshot fixtures - #105352

Merged
steipete merged 1 commit into
mainfrom
codex/live-updater-fixture-mode
Jul 12, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/live-updater-fixture-mode

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

The live-updater snapshot-ownership test inherited Blacksmith's permissive umask. Git rewrites .git/HEAD and .git/config through lockfiles, and fixture build writes inherited group-write bits, so the security predicate correctly rejected the nominally trusted fixture. That made the full suite nondeterministic without identifying a product defect.

Why This Change Was Made

Keep the production ownership checks fail-closed. Normalize only the trusted test fixture after security-sensitive writes, and add an explicit assertion that a group-writable gateway entrypoint is rejected.

User Impact

No runtime behavior changes. CI now models a genuinely trusted immutable snapshot regardless of runner umask, while retaining regression coverage for unsafe entrypoint modes.

Evidence

  • Blacksmith Testbox tbx_01kxb316szv90ck4fr66spyvxw: focused ownership test passed.
  • Same Testbox lease: all 52 test/scripts/openclaw-live-updater.test.ts tests passed.
  • oxfmt --check test/scripts/openclaw-live-updater.test.ts passed remotely.
  • Fresh autoreview: clean, confidence 0.94.
  • git diff --check passed.

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Jul 12, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready review complete.

  • Root cause: trusted test metadata inherited a permissive runner umask after Git lockfile replacements; the production predicate correctly rejected group-writable files.
  • Fix: normalize only fixture entrypoint, config, and detached HEAD modes; keep production ownership checks unchanged; explicitly test rejection of a group-writable entrypoint.
  • Blacksmith Testbox tbx_01kxb316szv90ck4fr66spyvxw: focused ownership case passed; all 52 live-updater tests passed; oxfmt check passed.
  • Fresh autoreview: no actionable findings, confidence 0.94.
  • Exact-head CI run 29191898351: success across the full required matrix.
  • Native scripts/pr review artifacts and OPENCLAW_TESTBOX=1 scripts/pr prepare-run 105352: passed.

Known proof gaps: none for this test-only change.

@steipete
steipete merged commit 5a5a28a into main Jul 12, 2026
93 of 95 checks passed
@steipete
steipete deleted the codex/live-updater-fixture-mode branch July 12, 2026 12:08
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant