Record failed pre-dispatch preparation as zero-attempt uncharged work
Browse filesFiles changed (5)
- README.md+3
- SHA256SUMS+4-4
- VALIDATION.md+4-1
- artifact_manifest.json+3-3
- run_sampling.py+15-3
144 unmodified lines145146147144 unmodified linesIf saving a completed result fails, a successful fallback record retains theexact answer and known usage with `inference_complete: true` and`failure_stage: result_persistence`; it must not trigger another paid request.144 unmodified lines145146147148149150144 unmodified linesIf saving a completed result fails, a successful fallback record retains theexact answer and known usage with `inference_complete: true` and`failure_stage: result_persistence`; it must not trigger another paid request.If the attempted-payload record cannot be saved, Jev is not called: the failurerecords zero attempts and no unknown provider charge.
123456789101112131415c758d4f7878f1d7bc304c083b9fe1a7392933e5cd7fc9fe641f266c14c93978b LICENSE9536fa2f6c4051093a1b1126ffaaee528d2a5324f12f15fd6cba9a5a9b0b99cc NOTICE.md82b54960cdb9953bf9e0f7d4be05c60d7e23fdebc7ecd32d803dd2e2bc4353ec README.md0975fa492a2b9b059963e731cd34ac81be7d3790eb77d6479b188c3dbc7650f2 SECURITY.md23c9548495b2cd2755e5be98d1b294361b74b75257269c6bd2d5c7ac8c83f916 VALIDATION.mde3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 _client/__init__.pya7064bab80e28d633f99d2c8fabf2deb8c5f024b4540c388b5b02e474df1f84d _client/jev.py20e5af7f3f5c65e9e6293a949693f503e54eccc1c9ebade4d6cef0b2639650b1 _client/types.py91f477735767b63d0863be501ba58fb1eea0fe59f1b7d87ccafe5ffa283e2348 artifact_manifest.json41183c6e3b669411f3bd24de7282509cf8d484021dbc1cc62c305c1a53f28603 example.jsond4351148fcc569c924a11d3c0a24f5fb14381ad6cce960ed74a4e6f555301bda requirements.txtee99bd165ee7734d9da4e7743dec9251d44e2073f65e07874e107680cce469d7 run_sampling.py1cd89b7ec1f6352614f42616bc6e513d613a84338b5498b46586541b9d0115cd runtime.py1ff430aba1a3cd4a194cdfb278701457c963bee33dc66137fd7b024b56007bfe source_manifest.json4040a30deafa507e87151e813800d172991939a69e8633e35883d4abc8a9993c validation/release-e2e.json123456789101112131415c758d4f7878f1d7bc304c083b9fe1a7392933e5cd7fc9fe641f266c14c93978b LICENSE9536fa2f6c4051093a1b1126ffaaee528d2a5324f12f15fd6cba9a5a9b0b99cc NOTICE.md91074e031b26bb7df9dca436c850c3bbbde6df741d52c7d794bd6f25a1db9e36 README.md0975fa492a2b9b059963e731cd34ac81be7d3790eb77d6479b188c3dbc7650f2 SECURITY.mde851c0f7135d273077abba1b5c0e4b3e7ba526bd0f1bcfec6fc242aea29d7682 VALIDATION.mde3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 _client/__init__.pya7064bab80e28d633f99d2c8fabf2deb8c5f024b4540c388b5b02e474df1f84d _client/jev.py20e5af7f3f5c65e9e6293a949693f503e54eccc1c9ebade4d6cef0b2639650b1 _client/types.py87b218b88093fbd2eaa32b1d4d3a8535533297387ac7d3e68f68330390159e18 artifact_manifest.json41183c6e3b669411f3bd24de7282509cf8d484021dbc1cc62c305c1a53f28603 example.jsond4351148fcc569c924a11d3c0a24f5fb14381ad6cce960ed74a4e6f555301bda requirements.txtb6099ebc311080c5a4671e6b3d7a6c4af05d264768660d750717ce92035049ae run_sampling.py1cd89b7ec1f6352614f42616bc6e513d613a84338b5498b46586541b9d0115cd runtime.py1ff430aba1a3cd4a194cdfb278701457c963bee33dc66137fd7b024b56007bfe source_manifest.json4040a30deafa507e87151e813800d172991939a69e8633e35883d4abc8a9993c validation/release-e2e.json
7 unmodified lines89101112131416 unmodified lines3132333435367 unmodified lines- Capability tests first failed on Azure because the new runner did not exist.- Offline tests cover reference isolation, exact token ownership, agreement,strict margin, invalid scores/version, absent credentials and provider failure.- Thirty-three targeted tests passed on Azure, including tiny-model sampled/greedyparity, unchanged weights/private RNG, cache/context checks, credential-freenative mode, single-attempt transport, redirect rejection and artifact tampering.- A review regression first exposed missing task/rubric provenance; saved native,16 unmodified linessupports Linux/macOS; native Windows is rejected before files or inference.Azure Linux integration and a macOS directory-fsync probe passed; the latterexecutes no model and is not a macOS inference validation.- The initial full source-repository suite passed 1,083 tests on Azure; documentation,lint, formatting and package-build checks passed. Initial failures in a tar-onlycheckout were traced to missing Git metadata; the complete suite was rerun in7 unmodified lines89101112131416 unmodified lines3132333435363738397 unmodified lines- Capability tests first failed on Azure because the new runner did not exist.- Offline tests cover reference isolation, exact token ownership, agreement,strict margin, invalid scores/version, absent credentials and provider failure.- Thirty-six targeted tests passed on Azure, including tiny-model sampled/greedyparity, unchanged weights/private RNG, cache/context checks, credential-freenative mode, single-attempt transport, redirect rejection and artifact tampering.- A review regression first exposed missing task/rubric provenance; saved native,16 unmodified linessupports Linux/macOS; native Windows is rejected before files or inference.Azure Linux integration and a macOS directory-fsync probe passed; the latterexecutes no model and is not a macOS inference validation.- Attempt-journal failure and pre-dispatch counter regressions first failed, thenpassed; key/deadline/client-construction and failed attempt writes now recordzero attempts with no unknown provider charge.- The initial full source-repository suite passed 1,083 tests on Azure; documentation,lint, formatting and package-build checks passed. Initial failures in a tar-onlycheckout were traced to missing Git metadata; the complete suite was rerun in
5 unmodified lines67891011121314151617181920212223245 unmodified lines"verifier": "jev-1.13.0","new_weights": false,"files": {"run_sampling.py": "ee99bd165ee7734d9da4e7743dec9251d44e2073f65e07874e107680cce469d7","runtime.py": "1cd89b7ec1f6352614f42616bc6e513d613a84338b5498b46586541b9d0115cd","requirements.txt": "d4351148fcc569c924a11d3c0a24f5fb14381ad6cce960ed74a4e6f555301bda","source_manifest.json": "1ff430aba1a3cd4a194cdfb278701457c963bee33dc66137fd7b024b56007bfe","_client/__init__.py": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","_client/jev.py": "a7064bab80e28d633f99d2c8fabf2deb8c5f024b4540c388b5b02e474df1f84d","_client/types.py": "20e5af7f3f5c65e9e6293a949693f503e54eccc1c9ebade4d6cef0b2639650b1","README.md": "82b54960cdb9953bf9e0f7d4be05c60d7e23fdebc7ecd32d803dd2e2bc4353ec","NOTICE.md": "9536fa2f6c4051093a1b1126ffaaee528d2a5324f12f15fd6cba9a5a9b0b99cc","SECURITY.md": "0975fa492a2b9b059963e731cd34ac81be7d3790eb77d6479b188c3dbc7650f2","LICENSE": "c758d4f7878f1d7bc304c083b9fe1a7392933e5cd7fc9fe641f266c14c93978b","example.json": "41183c6e3b669411f3bd24de7282509cf8d484021dbc1cc62c305c1a53f28603","VALIDATION.md": "23c9548495b2cd2755e5be98d1b294361b74b75257269c6bd2d5c7ac8c83f916","validation/release-smoke.json": "e632a7df8125c6a5c1047a8e1443588c699fff79c05542b06e5dc6db9aeadd24","validation/release-e2e.json": "4040a30deafa507e87151e813800d172991939a69e8633e35883d4abc8a9993c"}5 unmodified lines67891011121314151617181920212223245 unmodified lines"verifier": "jev-1.13.0","new_weights": false,"files": {"run_sampling.py": "b6099ebc311080c5a4671e6b3d7a6c4af05d264768660d750717ce92035049ae","runtime.py": "1cd89b7ec1f6352614f42616bc6e513d613a84338b5498b46586541b9d0115cd","requirements.txt": "d4351148fcc569c924a11d3c0a24f5fb14381ad6cce960ed74a4e6f555301bda","source_manifest.json": "1ff430aba1a3cd4a194cdfb278701457c963bee33dc66137fd7b024b56007bfe","_client/__init__.py": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","_client/jev.py": "a7064bab80e28d633f99d2c8fabf2deb8c5f024b4540c388b5b02e474df1f84d","_client/types.py": "20e5af7f3f5c65e9e6293a949693f503e54eccc1c9ebade4d6cef0b2639650b1","README.md": "91074e031b26bb7df9dca436c850c3bbbde6df741d52c7d794bd6f25a1db9e36","NOTICE.md": "9536fa2f6c4051093a1b1126ffaaee528d2a5324f12f15fd6cba9a5a9b0b99cc","SECURITY.md": "0975fa492a2b9b059963e731cd34ac81be7d3790eb77d6479b188c3dbc7650f2","LICENSE": "c758d4f7878f1d7bc304c083b9fe1a7392933e5cd7fc9fe641f266c14c93978b","example.json": "41183c6e3b669411f3bd24de7282509cf8d484021dbc1cc62c305c1a53f28603","VALIDATION.md": "e851c0f7135d273077abba1b5c0e4b3e7ba526bd0f1bcfec6fc242aea29d7682","validation/release-smoke.json": "e632a7df8125c6a5c1047a8e1443588c699fff79c05542b06e5dc6db9aeadd24","validation/release-e2e.json": "4040a30deafa507e87151e813800d172991939a69e8633e35883d4abc8a9993c"}
197 unmodified lines1981992002012022031 unmodified line205206207208209210211212213214215216217218220 unmodified lines439440441442443444445197 unmodified linesreturn importlib.import_module(name + ".jev")def call_jev(payload, *, key_file=None, timeout=90):try:c = client()1 unmodified lineif type(timeout) not in (int, float) or not math.isfinite(timeout) or timeout <= 0:raise ValueError("Invalid remaining Jev deadline")except Exception as exc:exc.usage_unknown = Falseraiseasync def once():try:scorer = c.JevScorer(key, model=VERIFIER, max_retries=0, request_timeout=timeout)except Exception as exc:exc.usage_unknown = Falseraiseasync with scorer:values, model, inputs, outputs, attempts, seconds, _ = await scorer._evaluate(220 unmodified linesdef record_attempt(binding):provenance.update(binding)provenance["verifier_dispatch_prepared"] = Truepersist(provenance | dict(status="in_progress", usage_unknown=True))try:value = prepare_case(json.loads(args.input.read_text()))197 unmodified lines1981992002012022032042052062072082092101 unmodified line212213214215216217218219220221222223224225220 unmodified lines446447448449450451452453454455456457197 unmodified linesreturn importlib.import_module(name + ".jev")def mark_no_dispatch(exc):"""Attach complete accounting only on paths known to precede provider dispatch."""exc.usage_unknown = Falseexc.usage_unknown_fields = ()exc.attempts = 0def call_jev(payload, *, key_file=None, timeout=90):try:c = client()1 unmodified lineif type(timeout) not in (int, float) or not math.isfinite(timeout) or timeout <= 0:raise ValueError("Invalid remaining Jev deadline")except Exception as exc:mark_no_dispatch(exc)raiseasync def once():try:scorer = c.JevScorer(key, model=VERIFIER, max_retries=0, request_timeout=timeout)except Exception as exc:mark_no_dispatch(exc)raiseasync with scorer:values, model, inputs, outputs, attempts, seconds, _ = await scorer._evaluate(220 unmodified linesdef record_attempt(binding):provenance.update(binding)provenance["verifier_dispatch_prepared"] = Truetry:persist(provenance | dict(status="in_progress", usage_unknown=True))except Exception as exc:# The verifier is called only after this callback returns successfully.mark_no_dispatch(exc)raisetry:value = prepare_case(json.loads(args.input.read_text()))
README.md+3
SHA256SUMS+4-4
VALIDATION.md+4-1
artifact_manifest.json+3-3
run_sampling.py+15-3