There are separate evidence boundaries. Keep their results distinct.
Run in the supported locked environment from the repository root:
PYTHONPATH=. python -m unittest tools.standards_engine.tests.test_input_discovery tools.standards_engine.tests.test_discovered_workflow tools.standards_engine.tests.test_model_discovery_qualification
PYTHONPATH=. python -m tools.standards_contracts.standards_contracts.projection --checkThe first suite reconstructs every published input closure through the actual tool and validates it independently. The second uses discovered schemas to validate real fixture authoring requests and proves shared/inline decisions preserve authority. The third tests the fail-closed qualification checker with synthetic events; those events are not client/model acceptance evidence. Existing raw-Codex navigation checks now exercise discovery too, but still have no model turn.
Use the operator's supported locked Python environment and authenticated Codex. Select the actual model and client execution surface. This opt-in command uses the configured model service and may incur usage. It makes a private fixture clone, registers a uniquely named local MCP server only for that app-server process, and starts an ephemeral model thread in an empty directory. It does not change user Codex configuration or authorize changes in the source repository.
PYTHONPATH=. /path/to/locked/python -m tools.standards_engine.tests.codex_discovery_client \
--allow-model-turn \
--model YOUR_SUPPORTED_MODEL \
--surface YOUR_ACTUAL_CLIENT_SURFACE \
--evidence-dir /new/private/path/discovery-qualificationUse --codex-config KEY=VALUE only for explicit supported client settings needed
to select the intended execution surface or disable other MCP servers. The harness
refuses to start the model turn while another MCP server exposes tools; run-owned
fixture settings take precedence over supplied overrides. The surface label is recorded as an
operator request, not inferred from a raw catalog. Record the actual effective
surface and capture the model-visible declaration when the client exposes it;
attach that observation to acceptance. The harness uses the ordinary app-server
thread and MCP tools path, not a manually posted authoring request.
The task supplies semantic intent and a real fixture evidence reference. It does not supply argument-schema examples or generated call payloads. The model must use describe_input for all five authoring operation roots, reuse shared definitions within the same verified runtime/catalog, create and revise a test proposal, resolve one decision and then a multiple-decision batch, reuse evidence, and explicitly review to readiness. The harness validates observed model-authored arguments/results, requires every used definition to have been retrieved before its action (unrelated union choices need not be read), checks exact sequence and failures, reads back the requested fixture content independently, and confirms main was not published. It rejects filesystem, web, unrelated tools, missing or unknown event surfaces, schema-repair calls and agent self-reported success as substitutes for observed behavior.
Events and results are preserved in events.jsonl, qualification.json, task.txt,
readback JSON and stderr.log. These are private operator artifacts; review them for
sensitive context before sharing. The fixture repository is retained for inspection;
its disposal is an explicit operator action. Preserve active production stores.
An unsupported app-server/event format or missing executable yields unavailable
qualification rather than a pass. There is no elapsed-time deadline for active work;
shutdown escalation applies only after completion, failure or operator cancellation.
Record client version, requested and observed execution surface, model, Engine interface and runtime/catalog identity, trace location, exact readback, tool counts, argument-repair failures and request/result byte measurements. Repeat representative ordinary navigation when the client surface changes. Record model token measurements only when the client actually exposes them; JSON bytes are not billing savings.
A status of passed in qualification.json is behavioral evidence for that one fixture/client run. It is not editorial review, a universal client certification, or proof that TypeScript declarations no longer contain unknown. Operator review must confirm the requested exposure surface and absence of outside schema sources. The current release supports only native declarations/discovery; the owner has retired compatibility-dependent input clients. Qualify the actual candidate on its supported client/build/surface and retain independent integration review. Full schemas reaching the client are insufficient on their own.
Observer version 3 tracks shared definitions once per exact runtime, purpose, catalog and isolated thread/turn. Each operation keeps its own input-root binding. Definition content must match the canonical declaration. Calls may reuse already retrieved definitions from another operation; repeated discovery is not required. A definition arriving after a call starts is too late. Context compaction clears acquired-shape evidence because this observer cannot prove which exact definitions survived it. Successful output alone cannot supply missing discovery evidence.
Use the exact matching source checkout. Current-source replay supports native
recordings only and never rebuilds a compatibility catalog. Use the original
pinned tooling for retired presentations or mismatched source/catalog records. The
original stock harness directory must contain events.jsonl, qualification.json
and its retained repository. No model, Codex process, or Engine tool is run by
replay. Git is used only to read the retained fixture's main ref.
PYTHONPATH=. /path/to/locked/python -m tools.standards_engine.tests.replay_discovery_qualification \
--evidence-dir /private/original-discovery-run \
--output /private/discovery-observer-v3.jsonThe output must be a new file outside the original directory. It is created with owner-only permissions; existing files and aliases are refused. Keep the original observer verdict, independent review, and corrected replay verdict together in the acceptance record. The new report records source hashes and observer-code hashes. It never relabels the old result or overwrites logs. Repeated assessments require separate output paths.
Replay correlates RPC requests and replies, requires one fresh thread/turn, verifies catalog and runtime preflight against this checkout, checks model-authored calls in chronological order, and validates four independent post-turn readbacks. It compares the retained fixture's current main ref with the recorded initial ref. The report names that current observation; it does not prove that no unrecorded external process ever moved and restored a ref. It also cannot authenticate a caller-edited transcript or establish the effective client surface from an operator label alone. Review the original provenance and surface evidence separately.
Missing or mismatched starts, unfinished tool calls, unexpected scripted RPCs, incomplete transcripts, source/catalog drift or unavailable fixture state produce unavailable/failed qualification rather than inferred success. A source mismatch needs the exact matching checkout, not removal of the identity checks. Rerun the existing preserved trace first; another paid model run is needed only when the original evidence cannot decide the claim. The CLI does not rewrite historical contracts or grant acceptance.
Additional automated checks:
PYTHONPATH=. python -m unittest tools.standards_engine.tests.test_model_discovery_qualification tools.standards_engine.tests.test_replay_discovery_qualification tools.standards_engine.tests.test_replay_discovery_workflowThe final suite feeds real Engine outcomes through a synthetic client event stream and replays them in a cold process. It is integration evidence for the observer, not a substitute for actual model/client qualification.
Interface 42 adds an independent --output-schemas eager|on-demand choice to both
Codex harnesses. Omission keeps eager behavior. To exercise the smaller catalog,
add --output-schemas on-demand to the actual-model command above. The harness
configures only its disposable server. The observer validates results against the
canonical schemas, independently of what is advertised to the host/model; those
observer schemas are never pasted into the model instructions or tool declarations.
The model must interpret real tool results through the same proposal-to-readiness
workflow, without mandatory per-action output-schema reads. Optional
describe_output calls are accepted and their returned documents checked exactly.
The no-model configured-client harness checks that outputSchema is actually
absent, retrieves a complete read-output contract through describe_output, and
compares it with the canonical schema. It still does not prove final model-visible
rendering. The model harness saves host-catalog.json separately from the events;
this is the host's inventory, not a captured model prompt/declaration. Obtain the
actual model-visible export separately where supported and record unavailable
measurements honestly. Compare eager and on-demand runs using the same task,
client/model and surface, recording repair count, successful readback and tool calls.
Example actual-host navigation check (server must already be configured):
PYTHONPATH=. /path/to/locked/python -m tools.standards_engine.tests.codex_navigation_client \
--server standards-authoring --output-schemas on-demandRecorded replay recognizes output_schemas in the preserved report, defaulting to
eager for recordings created before the option existed. It still requires the
matching source/catalog and validates every recorded result. It does not silently
upgrade an old transcript to a new interface, start a model or rewrite earlier
verdicts. Output-discovery pages describe structured domain results, not MCP's outer
CallToolResult wrapper. Keep eager for any supported client requiring that initial
schema until its alternative passes acceptance.
Remove --schema-mode and its value from live server and qualification commands.
The native label in a report is evidence metadata, not selectable behavior. Keep
--output-schemas on-demand for the known deployment; omission still selects eager.
Changing input presentation updates catalog binding but does not migrate stores or
workflow contexts. Preserve old recordings and verdicts verbatim. The observer's
private result validators come from the canonical purpose-qualified contracts and
are never injected into the model's context.