End-To-End Workflows¶
Workflow 0: Compact Benchmark Setup¶
Goal¶
Acquire the frozen records, direct splits, model-facing prompts, schemas, and isolated evaluator without downloading the complete study-evidence archive.
python -m pip install "pqid-bench==1.2.1"
pqid-bench download --version 1.0.0 --output-dir ./benchmarks
pqid-bench verify ./benchmarks/PQID-Bench-v1.0.0-core
Use this profile for run-model, replay, and evaluate. Use the Zenodo
evidence profile instead when the task is reproduce, compare, dashboard,
or verify --full.
Workflow 1: First Installation And Frozen Reproduction¶
Goal¶
Confirm that the package, evidence bundle, and published summary agree without executing generated Python.
Steps¶
- Install the wheel or source distribution.
- Extract the frozen evidence bundle.
- Run the environment report.
- verify file integrity.
- reproduce the summary.
pqid-bench --version
pqid-bench doctor
pqid-bench verify RELEASE_DIR
pqid-bench reproduce \
--release-dir RELEASE_DIR \
--output reproduced-summary.json
Accept when¶
- package version is
1.2.1when using the current toolkit, or1.0.0when reproducing with the wheel preserved inside the frozen archive; - manifest
validis true; canonical_parityis true;- cells equal 3,234;
- executions equal 2,950; and
- signature matches equal 1,703.
This is the minimum scientific reproduction workflow.
Workflow 2: Exhaustive Release Audit¶
Goal¶
Check every manifested file, every frozen primary endpoint total, and the repeatability design dimensions.
pqid-bench verify RELEASE_DIR --full
Accept when¶
{
"valid": true,
"release_parity_errors": [],
"repeatability_parity_errors": []
}
This command checks the scientific contract from archived records. It does not rerun the model APIs or generated programs.
Workflow 3: Summarize A New Evaluation Bundle¶
Goal¶
Calculate package metrics from already scored cells.
Prepare the input¶
Create one JSON object per line. Each record needs:
model;prompt_id;- an execution endpoint; and
- a signature endpoint.
Example:
{"model":"candidate-a","prompt_id":"pqid_bench_external_gen_0001","report_executable":true,"report_assembly_admissible":true,"report_signature_match":false}
{"model":"candidate-a","prompt_id":"pqid_bench_external_gen_0002","report_executable":true,"report_assembly_admissible":true,"report_signature_match":true}
Run¶
pqid-bench evaluate \
--evaluations EVALUATIONS.jsonl \
--output candidate-summary.json
Inspect¶
Check:
cells,models, andprompts;- whether assembly coverage is complete and the resulting AS-Gap;
- whether
ordered_countorparameter_countisnull; - ES-Gap count and rate; and
- the source path written into the report.
evaluate does not attach the frozen identifiable-subset policy automatically.
Use compare when aligned candidate/frozen interpretation is required.
Workflow 4: Compare A Complete Candidate¶
Goal¶
Compare one or more candidate model rows with the frozen benchmark on all 154 prompts.
Prepare evaluations¶
Every candidate model must have exactly one cell for each frozen prompt ID. Candidate models must share the same prompt set.
Prepare the run manifest¶
{
"package_version": "1.2.1",
"benchmark_release": "1.0.0",
"evaluator_version": "pqid-bench-evaluator-1.1.0-safe-builtins",
"predicate_version": "pqid-bench-reference-signature-1.0.0-count-map",
"schema_version": "1.0.0",
"artifact_manifest_version": "1.0.0",
"run_type": "supplied_evaluation"
}
Run¶
pqid-bench compare \
--evaluations EVALUATIONS.jsonl \
--candidate-run-manifest candidate-run-manifest.json \
--release-dir RELEASE_DIR \
--output comparison.json
Inspect¶
Confirm:
comparison_scope.modeisfull_test_set;comparison_scope.prompt_countis 154;- the expected candidate cell count equals candidate models times 154;
comparison_labelisfrozen 154-prompt comparison; and- the candidate and frozen prompt lists are identical by construction.
Rate deltas are candidate minus frozen. A positive ES-Gap delta means a larger execution-to-signature separation in the candidate.
Workflow 5: Compare A Deliberately Partial Candidate¶
Goal¶
Compare an incomplete but common candidate prompt panel without using the full frozen denominator as the control.
Preconditions¶
- Every candidate model has the same prompt IDs.
- Every prompt belongs to the frozen 154-prompt test set.
- The reduced scope is scientifically justified and reported.
Run¶
pqid-bench compare \
--evaluations PARTIAL_EVALUATIONS.jsonl \
--candidate-run-manifest candidate-run-manifest.json \
--release-dir RELEASE_DIR \
--allow-partial \
--output matched-subset-comparison.json
Inspect¶
Confirm:
comparison_scope.modeismatched_subset;comparison_labelismatched-subset comparison;prompt_countmatches the intended panel;prompt_ids_sha256is retained with the report; and- frozen cells equal 21 times the selected prompt count.
Do not describe this output as a complete 154-prompt benchmark comparison.
Workflow 6: Inspect A Replay Without Execution¶
Goal¶
See the exact Docker build and run plan before allowing generated-code execution.
pqid-bench replay \
--release-dir RELEASE_DIR \
--responses RESPONSES.jsonl \
--output-dir replay-output \
--build-image \
--dry-run \
--acknowledge-code-execution
Inspect:
- image tag;
- Dockerfile path;
- input and output mounts;
--network none;- read-only and resource-limit flags; and
- response-file location.
No generated code runs in dry-run mode.
Workflow 7: Execute An Archived Replay¶
Goal¶
Re-evaluate archived generated code under the frozen Docker environment.
Preconditions¶
- Docker Engine is running.
- Release integrity verifies.
- The response file is known and archived.
- The output directory is separate from canonical frozen results.
- The user accepts generated-code execution risk.
Run¶
pqid-bench replay \
--release-dir RELEASE_DIR \
--responses RESPONSES.jsonl \
--output-dir replay-output \
--build-image \
--timeout-seconds 3600 \
--acknowledge-code-execution
Omit --build-image when the exact image has already been loaded.
Outputs¶
The package copies back only:
pqid_bench_external_model_generation_harness_report.json
pqid_bench_external_model_generation_harness_report.md
Compare replay output with the archived canonical evaluation before making a parity claim. A completed process alone does not establish cell-level parity.
Workflow 8: Programmatic Summary¶
from pathlib import Path
from pqid_bench import reproduce_release
release = Path("/path/to/PQID-Bench-v1.0.0")
summary = reproduce_release(release)
print(
{
"cells": summary.cells,
"execution_rate": summary.execution_rate,
"signature_rate": summary.signature_rate,
"es_gap_rate": summary.es_gap_rate,
}
)
For a publication script, serialize summary.to_dict() so every version
dimension accompanies the metrics.
Workflow 9: Prepare An Independent Reviewer Bundle¶
Include:
- frozen evidence ZIP and checksum sidecar;
- wheel and sdist with
SHA256SUMS.txt; - Docker archive and checksum when replay is requested;
docs/REVIEWER_QUICKSTART.md;- this user manual;
- citation and licensing files; and
- a short statement identifying which checks have already run publicly.
Ask the reviewer to:
- verify distribution checksums;
- install into a new environment;
- run
doctor; - run
verify --full; - run
reproduce; and - record platform, Python version, output hashes, and any deviations.
Do not supply private credentials or require provider access for frozen-result reproduction.
Workflow 10: Test A New External Model¶
- Run
run-model --dry-runagainst a new output directory. - Perform an acknowledged one-prompt smoke run.
- Inspect the canonical response, raw payload, attempt history, and manifest.
- Start the complete panel or a declared subset.
- Resume incomplete work with
--resume; add--retry-errorsonly for recorded terminal failures. - Start Docker and evaluate
responses.jsonlwithreplay. - Use the automatically produced text, Markdown, or CSV summary.
- Run
comparewith the live run manifest and canonical evaluation JSONL. - Preserve the new run without replacing frozen v1.0.0 artifacts.
The exact commands, provider presets, retry states, output files, and trust boundaries are in Live Model Testing.