Repository navigation
test(protocol): lifecycle wire contract v1 and Python-derived goldens (#86, 1/3) - #91
Merged
Merged
Conversation
Language-neutral contract for the existing read-only status surface: request/MAC framing, origin and redirect rules, response cap, strict JSON, closed job-state.v1 schema with cross-field invariants mirrored from lifecycle.py, error mapping allowlists and the one-read side-effect rule. wire.v1.json is generated from the Python constants. Refs #86, #67 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ty tests Generate signing vectors, status histories, error mappings and negative cases for nano.qsearch.lifecycle-wire.v1 from the actual Python implementation (fixtures/regen.py: LifecycleClient over a capturing transport and real QSearchService.status_request on a temp store with an injected clock; the confirmed-zero history uses the real hardware seal and #58 predicate). Pin all v1 files in SHA256SUMS. tests/test_qsearch_lifecycle_wire_contract.py checks regen --check byte stability, SHA256SUMS, wire constants against Python, every history against the schema and the Python client, read-only status (only nonces written), and an independent strict reference reader for every negative. Places where LifecycleClient is laxer than the contract (closed envelope, duplicate keys, unsafe integers, error-body strict JSON) are xfail(strict=True). Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 8, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Publishes a versioned, language-neutral contract for the existing read-only lifecycle status call, plus golden fixtures generated by the real Python service and client, so another host language can read job state without re-creating scheduling or accounting. No endpoint, schema identity or service code changes. PR 1 of 3 for #86 (roadmap #67); PR 2 (Python parity fix) and PR 3 (TypeScript client) stack on this branch.
Key Changes
Verification
regen.py --checkbyte-stable.Risk / Follow-ups
test_packagedepth,quantum_prepare, and twoj6_a2tests (aether_atlasmissing). The fifth, aserviceconcurrency timing flake, failed 1 time in 22 runs, in code this stack doesn't change.Hashes (sha256, first 16)
CONTRACT.md 45857b87206cac34 · job-state.v1.schema.json 386fa428d167d39e · lifecycle-error.v1.schema.json 3bffff0703575773 · wire.v1.json 7020b187ec49d3fd · signing 927973afb308f67b · status-histories 8484ada41f3b1184 · errors 5b63d86f6a716e28 · negative d329b32b04ff807c · regen.py 528b97928713f78f · SHA256SUMS 450489c7ca3c15f2. Base main 27e8a5f; head 2acf815.
🤖 Generated with Claude Code