You are an agent, your current working directory is /app.
You can use the tools available to you to interact with the computer to assist the user in completing tasks.
Repair the offline JWT verification workflow
You are given a vendored PyJWT source tree at /app/vendor/pyjwt, frozen before a security-hardening release. Repair the existing production modules; do not replace the library with a new standalone implementation.
The integration workflow in /app/run_workflow.py must finish successfully and write /app/output.json. Preserve ordinary HS256 signing and verification while making the following behavior correct across the existing layers:
A JSON JWK or asymmetric public-key representation supplied as a raw HMAC secret must be rejected, even when the caller allows several algorithm families. A PyJWK must remain bound to its declared algorithm and reject a token advertising a different algorithm.
Implement RFC 7797 handling for b64=false: the protected header must declare b64 in crit; detached payload verification must use the supplied bytes; malformed non-detached forms must be rejected; ordinary encoded payloads must continue working.
A per-call options={"enforce_minimum_key_length": true} passed through jwt.decode must enforce the HMAC minimum length without changing valid long-key behavior.
PyJWKClient may only accept HTTP(S) URI schemes. A failed refresh must raise its normal client error without deleting an already cached usable JWK set.
Use the existing package APIs and regression tests as guides. Keep the changes limited to the real source modules and leave the output schema emitted by the workflow unchanged (output_schema_versionpyjwt-repair.v1 with a cases object).