bug: Baseline Codex journey injects unsupported background inference resources
Describe the bug
The baseline journey calls _start_server, which injects TaskOutcomeExperiencePipeline while enabling scheduled experience processing. The current runtime rejects the injected pipeline as not child-reconstructible. The acceptance journey exits before any Codex turn.
This is an independently reproduced repository test-fixture incompatibility. This report does not establish a production runtime defect or ask that admission/resource-validation rules be weakened.
Steps to reproduce
At immutable commit 0c1dfc289b28e9f529555fb57bf771ce51103913, save this as test_startup_probes.py in the repository root (the selected test makes no external model request):
import asyncio
import os
import pytest
from powercontext.builtin.runtime.config import InferenceConfig
from powercontext.builtin.persistence.sqlite import SQLiteConfig
from powercontext.server.settings import ServerSettings
from tests.e2e.real_experience_skill.harness import _start_server, _start_configured_server, _without_scheduled_processing
from tests.e2e.real_experience_skill.test_native_code import _scope
@pytest.fixture(autouse=True)
def isolated_settings(monkeypatch,tmp_path):
monkeypatch.chdir(tmp_path)
for key in tuple(os.environ):
if key.startswith('POWERCONTEXT_SERVER_'):
monkeypatch.delenv(key)
monkeypatch.setenv('POWERCONTEXT_SERVER_INFERENCE_GENERATION_MODEL','test')
def test_baseline_journey_server_can_start(tmp_path):
server=_start_server(tmp_path/'runtime.db',tmp_path/'scheduler.db')
server.stop()
def test_native_code_scope_can_be_served(tmp_path):
settings=_without_scheduled_processing(ServerSettings(inference=InferenceConfig(),database=SQLiteConfig(url=f'sqlite+aiosqlite:///{tmp_path / "scratch.db"}')))
asyncio.run(_scope(settings,tmp_path))
server=_start_configured_server(settings,tmp_path/'server-scheduler.db')
server.stop()
With repository test dependencies installed, run:
PYTHONPATH=. python -m pytest test_startup_probes.py::test_baseline_journey_server_can_start -q --tb=short --junitxml=startup.xml
The autouse fixture clears inherited Server settings, changes to a temporary working directory, and uses Pydantic AI's built-in test model for the baseline. All SQLite files are temporary.
Expected behavior
The repository baseline journey fixture starts its Server and reaches its deterministic acceptance scenario.
Actual behavior
The focused test fails with RealCodexE2EError from the shared Server launcher. Captured startup stderr shows:
BuiltinConfigurationError: Background processing requires child-reconstructible inference resources
The same error was independently observed while executing the original selected real-service tests on the same SHA. The focused two-test run produced 2 failed with separate errors, including this one; it does not depend on provider availability.
Environment
- PowerContext tested SHA:
0c1dfc289b28e9f529555fb57bf771ce51103913 - Linux, Python 3.12.13, SQLite 3.53.1, SQLAlchemy 2.0.51, aiosqlite 0.22.1
- Real local SQLite and Server lifespan; no remote-backend claim
Regression-proof: ca399b0f-bf82-41c3-ae54-98dd9f377e98/4b30973a12eab1dbcb69/journey-child-resources