Skip to content

test(ci): isolate environment-scoped signing in Git fixtures - #4075

Merged
schlessera merged 2 commits into
mainfrom
test/3485-env-signing
Nov 16, 2026
Merged

schlessera merged 2 commits into
mainfrom
test/3485-env-signing

Conversation

@schlessera

@schlessera schlessera commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

Closes #3485

What changed

Temporary Git fixtures now ignore inherited environment-scoped signing even when their product commands commit in-process or through CLI children. Twelve affected test files explicitly opt into withoutSigningForEach, which uses the existing withoutSigning helper before each test and restores the original Git configuration environment afterward. The remaining fixture-only commit helper uses command-scoped -c commit.gpgsign=false.

Why this shape

This follows the maintainer's fixture-local ruling in #3485 and builds on the merged #3117/#3486 correction for #3060. Importing the helper installs no override: only an explicit call in an affected file registers hooks. The shared preload, keylessEnv, product signing behavior, host configuration and all existing assertions are unchanged. Existing repairs from the test-health work are retained. The audit includes all 42 current files represented by the issue's named files and sync-* inventory.

Proof

Tested head: be66700430f3269a8a21668399fa1c7afb0db711; base: cc326cc64348a765325adc1cbe74248d60844845 (origin/main). All test invocations use bun run test and retain the offline guard.

  • Failing first on the unmodified base: the 42-file environment-scoped run reproduces 145 missing-signer fixture failures across the ten remaining affected core files. A separate pinned-Bun run reproduces the other four missing-signer failures in the three affected ui-server files. The initial broad run also exposed independent local prerequisites; these are not attributed to signing.
  • Removal mutation: an otherwise identical sibling copy of sync-runtime.test.ts with only the new opt-in call removed gives 0 pass / 8 fail and eight cannot run fixture-missing-signer diagnostics. The temporary copy was removed; the committed original remains restored and passes its eight cases in the full environment-scoped run.
  • Lint passes. Strict typecheck passes with CI's documented NODE_OPTIONS=--max-old-space-size=6144. The runtime test wrapper builds its required workspace packages successfully.
  • Configuration controls and exact local preflight receipt are recorded below. The initial Bun 1.4.4/install attempts are retained separately; final controls use CI-pinned Bun 1.4.2, independently copied installation bytes under umask 022, an external scratch directory outside Git checkouts, and real Chrome. The frozen native installation qualification passes after the documented install recovery.

Configuration controls (42 files): environment-scoped signing, scratch-global signing, and no signing configuration each return 624 pass / 40 fail / 66,850 assertions. The same 40 test names fail in all three controls. There are zero missing-signer diagnostics; all 531 core cases pass in every control. Restored sync-runtime plus the unchanged hygiene/tags signing-policy suites pass together under hostile signing: 127 pass / 0 fail / 814 assertions. The 40 remaining failures are native-worker/HTTP runtime prerequisites on this host, including refused /proc/self/uid_map writes, and are not presented as passing proof.

bun run check:pr --base origin/main passes: 495 fast invariants / 3,620 assertions plus lint/leakage and metadata gates.

Hosted native runtime qualification — 2026-11-16

Heavy-feedback run 43797929013, attempt 1 completed successfully. Admission binds PR #4075 to head be66700430f3269a8a21668399fa1c7afb0db711 and base cc326cc64348a765325adc1cbe74248d60844845. Although the workflow-dispatch run itself names its default-branch workflow revision, the actual checkout logs of all 14 selected test jobs independently show this exact PR head (tree 3d77ff711b8cef07b2fab52ef0582d631ad7aafd, parent equal to the recorded base).

All selected jobs passed: verify 133071256399; runtime_host 133071256407; runtime 133071256420; unit shards 133071256532, 133071256497, 133071256506, 133071256511; browser shards 133071256421, 133071256449, 133071256469; layout shards 133071256534, 133071256427; captures 133071256490; endurance 133071256489. Admission and the final feedback aggregate passed. Packaging was explicitly unselected (pack=false), so its skip is expected; the supersede job was also inapplicable.

The unit-job logs include every one of the 42 audited test files, including the real Chrome scratch-links suite and the native-worker/HTTP suites that failed on the local host: jobs-board-selection-http, maintenance-startup-view, module-settings-http, provider-mask-bridge, storage-maintenance-owners, storage-removal-worker and search-result-tags-adapters. This supplies the outstanding supported-host runtime qualification alongside the retained hostile-signing controls and mutation receipts; it does not relabel the historical local failures as green.

The single local receipt below remains valid for the unchanged head and the same tested base. Draft heavy feedback is feedback, not reservation-backed candidate confirmation; the orchestrator owns that final integration step.

{"version":1,"kind":"brain-check-pr-receipt","head":"be66700430f3269a8a21668399fa1c7afb0db711","base":"origin/main","mode":"focused","startedAt":"2026-11-15T22:24:58.419Z","finishedAt":"2026-11-15T22:29:17.795Z","checks":[{"name":"all lint and leakage gates","categories":["changeset"],"outcome":"passed","elapsedMs":20131.220851000002},{"name":"environment documentation","categories":["changeset"],"outcome":"passed","elapsedMs":161.55518799999845},{"name":"pending changeset package names","categories":["changeset"],"outcome":"passed","elapsedMs":134.71165499999915},{"name":"contribution changeset","categories":["changeset"],"outcome":"passed","elapsedMs":18.616542000003392},{"name":"affected fast invariants","categories":["verify","unit"],"outcome":"passed","elapsedMs":238912.94796700001}]}

Checklist

  • Local preflight and all selected draft heavy-feedback jobs passed on the exact head; native runtime qualification is complete. Candidate confirmation remains with the orchestrator.
  • Implementation and verification acceptance criteria are complete with the combined local signing controls, mutation receipts and supported-host runtime run.
  • Release milestone: 0.45.0 on this PR and ci: temporary Git fixtures inherit environment-scoped commit signing #3485 (read back before handoff).
  • Test fixtures only; no consumer-visible changeset is required.
  • Leakage gate passes.
  • No machine surface or integration contract changed.
  • No documented product behavior changed.
  • No security or integrity guard changed.
  • No provider-facing history changed.

Collisions

bun scripts/collisions.ts --json --pr 4075, refreshed 2026-11-16 at head be66700430f3269a8a21668399fa1c7afb0db711: 28 shared-closure reports; zero textual, path or unknown collisions. The selection graph was built at this exact head.

Anything left open

No implementation or native runtime verification remains. The orchestrator owns reservation-backed candidate confirmation and landing. No additional heavy run, confirmation or merge was requested during this handoff. The existing claim remains held; both PR and issue retain milestone 0.45.0.

@schlessera schlessera added this to the 0.45.0 milestone Nov 15, 2026
@schlessera schlessera added type: test Coverage, harness or proof work with no behaviour change. area: core packages/core: the brain CLI, indexer, hybrid search, config, taxonomy, skills. area: ui-server Hono app factory: turn coordinator, auth, session catalog, routes, cron. area: ci CI workflows, the gates they run, release scripts, packaging. labels Nov 15, 2026
@schlessera
schlessera marked this pull request as ready for review November 16, 2026 22:56
@schlessera
schlessera merged commit 78e326c into main Nov 16, 2026
50 of 52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci CI workflows, the gates they run, release scripts, packaging. area: core packages/core: the brain CLI, indexer, hybrid search, config, taxonomy, skills. area: ui-server Hono app factory: turn coordinator, auth, session catalog, routes, cron. type: test Coverage, harness or proof work with no behaviour change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: temporary Git fixtures inherit environment-scoped commit signing

1 participant