Repository navigation
Conform to Gibson's final SQRL spec; release 0.1.2 - #10
Merged
Merged
Conversation
Audit against the December 2019 GRC documents (On The Wire v1.07, Operating Details v1.01, Cryptography v1.04, Explained v1.03) and Steve Gibson's latest rulings in the grc.sqrl newsgroup, his later word superseding abandoned designs. sqrl-core - Return suk= in the reply to every command when the client sends opt=suk, and always for a disabled account or a previous-identity match (grc.sqrl:12289; On The Wire p.14). It was returned on query only. - A successful re-key replies with 0x01 set and 0x02 clear (the post-update state) and clears a disabled state (On The Wire p.17; grc.sqrl:20273, 22934). - disable in CPS mode returns url= like every other non-query command. - sqrlonly/hardlock are copied from every successful non-query command. - A superseded identity is refused with exactly 0x240 (grc.sqrl:23020). - An unknown, expired or reused nut draws a transient error whose fresh nut is not registered, so the retry fails identically, the client's cue to have the user refresh the page (grc.sqrl:23543). It used to "succeed" against an anonymous pending login no browser could complete. - Handler#status never reports a CPS login; PendingLogin#cps? is new. sqrl-rack - A login the client completed with opt=cps can no longer be completed through the browser's status poll or a token-less callback: the server "MUST NOT authenticate the browser session" in that case (On The Wire, url=). Only the browser the client redirects to the one-time token is signed in. sqrl-client - After a transient error the agent retries with the fresh nut and stops as soon as two successive replies carry the identical TIF, with GRC's "login page has expired" message (grc.sqrl:23543, 21887). - The conformance runner accepts both conforming stale-nut behaviours. New spec gems/sqrl-core/spec/gibson_rulings_spec.rb pins each rule to its citation. Docs and all six changelogs updated; the entries join the as yet unpublished 0.1.2 release. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KbjY2qFzx6ywviQPTia9Ea
danielpclark
force-pushed
the
spec-conformance-0.1.2
branch
from
October 21, 2026 19:48
f4b44a1 to
37f0c64
Compare
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
Audit of the six gems against Steve Gibson's final SQRL documents (December 2019 PDFs) and his latest newsgroup rulings, with his later decisions overriding abandoned earlier designs. The cryptography, S4 storage, wire encoding and TIF vocabulary were already conformant; the server-side transaction logic and the client's stale-nut handling were not. This PR fixes every deviation found; it rides along in the unpublished 0.1.2.
Fixes
url=token browser gets in (On The Wire v1.07 p.14)suk=MUST be returned wheneveropt=sukis present, plus for disabled / previous-ID matches (grc.sqrl:12289, Jan 2016)queryonly0x070x05; disabled state cleared (grc.sqrl:20273)url=for every non-query command in CPS modedisablesqrlonly/hardlockcopied from every successful non-query command (p.7)identonlyident,enable,disable0x240(p.18; grc.sqrl:23020)0x2440x2400x60Tests
gems/sqrl-core/spec/gibson_rulings_spec.rbpins each rule to its citation.bundle exec rake spec:gems: 497 examples, 0 failures. Integration suite (six example apps, headless Chrome): 240 examples, 0 failures. RuboCop clean.Changelogs
All six changelogs are reformatted to Keep a Changelog 1.1.0: intro paragraph,
[Unreleased],[version] - YYYY-MM-DDheadings,Added/Changed/Fixed/Securitygroups, compare links at the bottom. The links assumev0.1.0,v0.1.1andv0.1.2tags, which do not exist on the remote yet.Release
Rebased onto
mainafter PR #8 (release 0.1.2) and PR #9 (release workflow removed).SQRL::VERSIONis already 0.1.2 onmainand 0.1.2 is not yet on rubygems.org, so these entries are folded into the existing 0.1.2 changelog sections rather than opening 0.1.3. Releases are built and pushed by hand.Known, documented differences left for later
sqrl.jsprobeslocalhost:25519once and never firessqrl://; the QR code carriescan=; no Punycode conversion of host names; the loopback-onlyinsecuremode still honoursask/sin/cps; integrations show "login failed" after a CPSdisable/removeinstead of an acknowledgement. Seedocs/protocol.mdanddocs/security.md.🤖 Generated with Claude Code
https://claude.ai/code/session_01KbjY2qFzx6ywviQPTia9Ea