1.8 KiB
1.8 KiB
J.A.R.V.I.S. key generator regression audit — 19 November 2026
Audited source: 5a7294bdfe.
Repair base: verified remote main 3dee0ee6b3.
All three findings reproduced locally. Re-running the new focused tests with the three audited source files restored produced five expected failures: PRJ round-trip, issued form state, changed envoy, deed version and pending-request scope. The repaired versions pass.
- Versioned PRJ syntax now shares the existing canonical hashing route. All 19 registered types are tested in alpha, beta and live editions.
- Reset scope pins the full clan, member and deed rows and pending requests under the existing transaction locks. Old narrower manifests fail closed and require regeneration. Authority and key consumption remain in existing Jarvis services.
- Successful generation locks inputs and offers New instruction, which clears fields and assigns a new request ID. Identical backend retries remain idempotent; conflicting reused references remain rejected.
- A populated unrelated clan, owner, roster, deed, pending request and claim registry remain unchanged. Deliberately removing the roster/deed/owner SQL scope makes the preservation assertions fail.
- The actual mysql.mjs adapter is exercised with a mocked mysql2 pool, including startup, issuance, inspection and redemption. The root adapter has no first method. Its connection executes against the in-memory fixture: this checks the production adapter contract, not a live MySQL server or real lock scheduling.
- Headless Chrome at 1440px and 390px verifies locked fields, a new request ID and separate redemption without horizontal overflow. API responses are simulated.
No production key was issued or redeemed, no production clan was reset, and PR #337 was not changed by this audit.

Staff