Skip to content

experiments: Pi schema offline fixture does not provision host relay credentials #4031

Closed

Description

@schlessera

Context

While verifying #3888 on main eb3c53ac296808291e4aded36c9e4aa65a7e8aae with the five source anchors repaired, all 19 real Pi/server table cases advance past instrumentation loading but fail before a native request. The accepted flat control reports BACKEND_REQUEST_ERROR: This pi turn cannot run on the host inference relay: pi has no credential for openai-codex.

The measurement substitutes ModelRuntime.create(options.modelRuntimeOptions) only in scripts/pi-schema-worker-preload.ts. The host now resolves credentials separately in preparePiHostInference (packages/ui-backend-pi/src/host-inference.ts:243), including a missing-credential refusal at line 295. The closed offline child has no host credential store. This is an offline fixture setup failure, distinct from the provider-enabled native-storage runner in #1838. No live provider call was attempted. This host also reports denied user namespaces, so later runtime execution remains unqualified here.

Scope

Reconcile the keyless Pi schema measurement fixture with host-held inference credentials and the current relay path, preserving fake-only transport and receipt semantics.

Out of scope

Real credentials, paid inference, product guard changes, assertion weakening, and the provider-enabled runner migration in #1838.

Acceptance criteria

  • The accepted offline flat case reaches the controlled provider transport and produces its native request, prompt ownership and parsed handler receipts.
  • All 19 existing table cases in experiments/pi-schema-measurement.test.ts pass on a qualifying namespace-enabled host, with no external network or real credentials.
  • A mutation removing the host fixture credential fails before provider dispatch; capture and billing rejection cases retain their existing assertions.

Verification

Run bun run test ./experiments/pi-schema-measurement.test.ts and the experiment tier on a qualifying host. Retain failing-first, mutation and restored receipts.

Contract impact

None; measurement-only fixture setup.

Activity

  1. added
    type: test
    area: backends
    area: ci
    priority: p1
    agent-ready
    on Nov 15, 2026
  2. added this to the 0.45.0 milestone on Nov 15, 2026
  3. self-assigned this
    on Nov 15, 2026
  4. schlessera commented on Nov 15, 2026

    @schlessera
    OwnerAuthor

    Claimed for implementation. Claim token: claim-c5245a22. Branch: test/4031-pi-schema-relay-credential.

    Path collision only with draft #4032 (the #3888 anchor repair this branch builds on); otherwise shared proof closures.

  5. schlessera commented on Nov 15, 2026

    @schlessera
    OwnerAuthor

    Fixed in draft #4037 at 9da07b14d, together with #3888's anchor repair from the closed #4032 and a sixth drift: the managed worker now refuses any loaded Pi extension, so the measurement tool guard moved onto the worker's tool-safety hook. In a namespace-enabled offline container, experiments/pi-schema-measurement.test.ts passes 27/27. The credential-removal, guard-removal and anchor-drift mutations fail as required and are restored. The full experiment tier is 355 pass / 8 fail; every failure is in an untouched file with an open issue (#3626, #3889, #4003, #3886, #4005, #4033). Milestone 0.45.0 is set on the PR and on both issues.

  6. schlessera commented on Nov 16, 2026

    @schlessera
    OwnerAuthor

    Merged in #4037 as 4452294cc through the integration lease (orchestrator merge queue for 0.45.0). Candidate confirmation passed on the exact head; the squash's own main run carries the post-merge heavy categories.

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

Metadata

Metadata

Assignees

Labels

agent-readyarea: backendsarea: cipriority: p1type: test

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions