Repository navigation
test(experiments): re-anchor Pi schema measurement patches - #4032
Closed
schlessera wants to merge 1 commit into
Closed
schlessera wants to merge 1 commit into
schlessera wants to merge 1 commit into
Conversation
This was referenced Nov 15, 2026
Merged
Owner
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #3888
What changed
The Pi schema measurement preload now patches the hosted prompt in backend-entry, the prepared prompt in worker-session, the launch arguments and environment in worker-launch, and receipt interception in worker-reader. Its load filter names exactly those files plus bridge-tools.
Why this shape
Follows #3888's anchor-only scope. Each injected import belongs to the file that uses it; local prompt ownership uses the current
state.ownedPromptname. Product source, experiment assertions and the strict replacement refusal are unchanged.Proof
bun run test ./experiments/pi-schema-measurement.test.ts: 8 pass, 19 fail withMeasurement source anchor drift.on baseeb3c53ac296808291e4aded36c9e4aa65a7e8aae.openai-codexcredential, before any native request. Tracked in experiments: Pi schema offline fixture does not provision host relay credentials #4031; no successful provider acceptance is claimed.real Pi/server flat/acceptedrun failed withMeasurement source anchor drift.; restored every mutation. The restored control returns to the credential refusal. No product diff remains.git diff --checkpassed.bun run check:pr --base origin/mainpassed all five selected checks against the working tree subsequently committed as this PR's head. The receipt records the pre-commit HEAD; its tested source bytes are this patch.bun run test:experimentscompleted: 336 pass, 27 fail across 38 files; no passing tier receipt. The 19 Pi cases reach the fixture credential refusal. Other failures are tracked in docs: reconcile accumulated citation drift before the next release #3626 (citations), experiments: measure-suggestions still pins the suggestions rule at 336 characters after #3525 lengthened it #3889 (description cost), test: turn-surface capture and overlap retain stale deferred core inventories #4003 (capture/overlap inventories), experiments: the turn-surface live collector refuses every routed arm once the bridge roster passes the 64-entry catalogue bound #3886 (live collector), test: offline runtime placement probe exits before producing its receipt #4005 (runtime placement), and newly filed experiments: Git read qualification expects resolve after synchronous revision refusal #4033 (synchronous Git revision refusal).{"version":1,"kind":"brain-check-pr-receipt","head":"eb3c53ac296808291e4aded36c9e4aa65a7e8aae","base":"origin/main","mode":"focused","startedAt":"2026-11-15T19:26:33.147Z","finishedAt":"2026-11-15T19:27:58.870Z","checks":[{"name":"all lint and leakage gates","categories":["changeset"],"outcome":"passed","elapsedMs":12721.808962000001},{"name":"environment documentation","categories":["changeset"],"outcome":"passed","elapsedMs":103.55714600000101},{"name":"pending changeset package names","categories":["changeset"],"outcome":"passed","elapsedMs":83.65556000000106},{"name":"contribution changeset","categories":["changeset"],"outcome":"passed","elapsedMs":16.866425000000163},{"name":"affected fast invariants","categories":["verify","unit"],"outcome":"passed","elapsedMs":72779.685712}]}Checklist
docs/reflect the change, or nothing documented moved.Anything left open
#4031 must reconcile the offline fixture with host-held relay credentials. Then verify all 27 focused cases and the complete experiment tier on a namespace-enabled host; this host reports denied user namespaces. Keep this PR draft until those receipts and candidate proof pass. Do not close #3888 from this partial handoff. No consumer changeset is needed for measurement-only instrumentation.