oficina / home Public

Link with an Oficina ID sign-in from the last five minutes

Paul's ruling (2026-11-19), option A: linking accepts an Oficina ID
sign-in from the last five minutes in the same browser instead of
forcing a brand-new one.

- internal/home/exchange.go: a max_age request no longer refuses the
  session the person arrived with, or one authenticated before the
  sealed start. It still refuses a gesture older than max_age, a
  future time, a Keymail session with no gesture time and a recovery
  sign-in; intent, subject, nonce and consumer checks are unchanged.
  The directory's fresh consumer gets the same rule, the one teamFresh
  already applies.
- connect/linkstore: Complete no longer refuses a Home auth_time before
  the fresh flow started; it still needs one within maxAge. Started
  stays in the flow struct so rows written before this decode.
- Spec (slice 1, step 2 and Linking) states the rule, the accepted risk
  (someone who forced this browser into their own ID within the window
  could link the person's app account to it) and its bound, corrected
  after the Astra review: the local sign-in may be a reused one from
  the last five minutes, not necessarily inside this flow.
- check-id-mutations.py: the two retired guards are replaced by the
  five-minute window; the record is regenerated.

Stacked on continue-when-unsafe (81c743c).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev e6a15730f531e23527dfb473f2e0ab07e8a130e4 parent 81c743c
9 files changed, +415 −305
  • connect/linkstore/atomic_test.go +71 −11
  • connect/linkstore/flows.go +15 −11
  • docs/superpowers/specs/2026-11-13-oficina-id-slice-1.md +4 −4
  • implementation/oficina-id-slice1-mutations.json +257 −267
  • internal/home/continue_skip_test.go +25 −0
  • internal/home/exchange.go +9 −1
  • internal/home/id_exchange_test.go +24 −7
  • internal/home/keymail_fresh_test.go +8 −1
  • scripts/check-id-mutations.py +2 −3

CI passed — run details

CI log
amadan: .amadan/timeout: this job's budget is 20m0s (this runner allows up to 30m0s)
=== vet ===
CGO_ENABLED=0 go vet ./...
CGO_ENABLED=0 go vet -tags browser ./internal/home/
cd handoff && CGO_ENABLED=0 go vet ./...
cd roster && CGO_ENABLED=0 go vet ./...
cd dashboard && CGO_ENABLED=0 go vet ./...
cd connect && CGO_ENABLED=0 go vet ./...
cd teammode && CGO_ENABLED=0 go vet ./...
=== fmt ===
=== build ===
CGO_ENABLED=0 go build ./...
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build ./cmd/home ./cmd/oficina ./internal/operatorlaunch
cd handoff && CGO_ENABLED=0 go build ./...
cd roster && CGO_ENABLED=0 go build ./...
cd dashboard && CGO_ENABLED=0 go build ./...
cd connect && CGO_ENABLED=0 go build ./...
cd teammode && CGO_ENABLED=0 go build ./...
=== go-test ===
CGO_ENABLED=0 go test -count=1 ./...
?   	amadan.net/oficina/home/cmd/home	[no test files]
ok  	amadan.net/oficina/home/cmd/home-placeholder	0.849s
?   	amadan.net/oficina/home/cmd/oficina	[no test files]
ok  	amadan.net/oficina/home/internal/guardstest	0.085s
ok  	amadan.net/oficina/home/internal/home	53.846s
ok  	amadan.net/oficina/home/internal/home/directorydata	1.392s
ok  	amadan.net/oficina/home/internal/home/logtest	0.007s
ok  	amadan.net/oficina/home/internal/home/seal	0.002s
ok  	amadan.net/oficina/home/internal/home/sealtest	0.003s
ok  	amadan.net/oficina/home/internal/home/wisp	0.049s
ok  	amadan.net/oficina/home/internal/operator	6.307s
ok  	amadan.net/oficina/home/internal/operatorlaunch	4.112s
ok  	amadan.net/oficina/home/internal/provisioner	48.586s
cd handoff && CGO_ENABLED=0 go test -count=1 ./...
ok  	amadan.net/oficina/home/handoff	0.662s
ok  	amadan.net/oficina/home/handoff/seal	0.002s
cd roster && CGO_ENABLED=0 go test -count=1 ./...
ok  	amadan.net/oficina/home/roster	5.120s
cd dashboard && CGO_ENABLED=0 go test ./...
ok  	amadan.net/oficina/home/dashboard	0.010s
cd connect && CGO_ENABLED=0 go test -count=1 ./...
ok  	amadan.net/oficina/home/connect	1.346s
ok  	amadan.net/oficina/home/connect/linkstore	0.481s
cd teammode && CGO_ENABLED=0 go test -count=1 ./...
ok  	amadan.net/oficina/home/teammode	0.098s
?   	amadan.net/oficina/home/teammode/teammodetest	[no test files]
=== race ===
go test -race -count=1 ./internal/home/ ./internal/operator/ ./internal/operatorlaunch/ ./internal/home/directorydata/
ok  	amadan.net/oficina/home/internal/home	415.390s
ok  	amadan.net/oficina/home/internal/operator	82.567s
ok  	amadan.net/oficina/home/internal/operatorlaunch	22.399s
ok  	amadan.net/oficina/home/internal/home/directorydata	23.620s
ok  	amadan.net/oficina/home/internal/provisioner	417.671s
cd handoff && CGO_ENABLED=1 go test -race -count=1 ./...
ok  	amadan.net/oficina/home/handoff	12.826s
ok  	amadan.net/oficina/home/handoff/seal	1.014s
cd roster && CGO_ENABLED=1 go test -race -count=1 ./...
ok  	amadan.net/oficina/home/roster	6.905s
cd dashboard && CGO_ENABLED=1 go test -race -count=1 ./...
ok  	amadan.net/oficina/home/dashboard	1.061s
cd connect && CGO_ENABLED=1 go test -race -count=1 ./...
ok  	amadan.net/oficina/home/connect	5.930s
ok  	amadan.net/oficina/home/connect/linkstore	6.361s
cd teammode && CGO_ENABLED=1 go test -race -count=1 ./...
ok  	amadan.net/oficina/home/teammode	1.944s
?   	amadan.net/oficina/home/teammode/teammodetest	[no test files]
diff --git a/connect/linkstore/atomic_test.go b/connect/linkstore/atomic_test.go
index fe2ecec..f29b333 100644
--- a/connect/linkstore/atomic_test.go
+++ b/connect/linkstore/atomic_test.go
@@ -1,22 +1,40 @@
package linkstore
import (
+ "encoding/json"
+ "strings"
"testing"
"time"
)
-func TestFreshStartRejectsEarlierHomeAuthentication(t *testing.T) {
- s, _ := fixture(t)
- l := local(1)
- secret, err := s.StartFresh(ctx, l, "/", testNow)
- if err != nil {
- t.Fatal(err)
+// A fresh link accepts a Home sign-in from the last five minutes even if
+// it predates this initiation (Paul's ruling, 2026-11-19); older ones,
+// and future ones, are refused.
+func TestFreshStartAcceptsRecentEarlierHomeAuthentication(t *testing.T) {
+ for _, c := range []struct {
+ name string
+ at time.Duration
+ ok bool
+ }{{"just before", -time.Second, true}, {"inside window", -299 * time.Second, true}, {"outside window", -301 * time.Second, false}, {"future", time.Second, false}} {
+ t.Run(c.name, func(t *testing.T) {
+ s, _ := fixture(t)
+ l := local(1)
+ secret, err := s.StartFresh(ctx, l, "/", testNow)
+ if err != nil {
+ t.Fatal(err)
+ }
+ if err = s.BindNonce(ctx, secret, l, nonce(1), testNow); err != nil {
+ t.Fatal(err)
+ }
+ _, err = s.Complete(ctx, secret, l, Home{Issuer: issuer, Subject: "person", Nonce: nonce(1), AuthTime: testNow.Add(c.at)}, testNow)
+ if c.ok && err != nil {
+ t.Fatal("recent Home sign-in refused", err)
+ }
+ if !c.ok {
+ refused(t, err)
+ }
+ })
}
- if err = s.BindNonce(ctx, secret, l, nonce(1), testNow); err != nil {
- t.Fatal(err)
- }
- _, err = s.Complete(ctx, secret, l, Home{Issuer: issuer, Subject: "person", Nonce: nonce(1), AuthTime: testNow.Add(-time.Second)}, testNow)
- refused(t, err)
}
func TestCompleteOnRollbackRetainsInitiation(t *testing.T) {
s, _ := fixture(t)
@@ -50,3 +68,45 @@ func TestStartFreshOnRollsBack(t *testing.T) {
t.Fatal("initiation escaped transaction")
}
}
+
+// A flow row written before 2026-11-19 carries "started". It still
+// decodes, and its start no longer bounds the Home sign-in.
+func TestFlowRowWithStartedStillCompletes(t *testing.T) {
+ s, _ := fixture(t)
+ l := local(1)
+ secret, err := s.StartFresh(ctx, l, "/", testNow)
+ if err != nil {
+ t.Fatal(err)
+ }
+ if err = s.BindNonce(ctx, secret, l, nonce(1), testNow); err != nil {
+ t.Fatal(err)
+ }
+ var id, stage string
+ var raw []byte
+ if err = s.db.QueryRow("SELECT id_hash, stage, payload FROM home_link_flows").Scan(&id, &stage, &raw); err != nil {
+ t.Fatal(err)
+ }
+ opened, err := s.seal.Open(s.purpose(stage, id), raw)
+ if err != nil {
+ t.Fatal(err)
+ }
+ var f flow
+ if err = json.Unmarshal(opened, &f); err != nil {
+ t.Fatal(err)
+ }
+ f.Started = testNow.Unix()
+ plain, _ := json.Marshal(f)
+ if !strings.Contains(string(plain), `"started":`) {
+ t.Fatal("fixture row lacks started")
+ }
+ sealed, err := s.seal.Seal(s.purpose(stage, id), plain)
+ if err != nil {
+ t.Fatal(err)
+ }
+ if _, err = s.db.Exec("UPDATE home_link_flows SET payload=? WHERE id_hash=? AND stage=?", sealed, id, stage); err != nil {
+ t.Fatal(err)
+ }
+ if _, err = s.Complete(ctx, secret, l, Home{Issuer: issuer, Subject: "person", Nonce: nonce(1), AuthTime: testNow.Add(-30 * time.Second)}, testNow); err != nil {
+ t.Fatal("old-format flow row refused", err)
+ }
+}
diff --git a/connect/linkstore/flows.go b/connect/linkstore/flows.go
index 7c29d8a..e1248d2 100644
--- a/connect/linkstore/flows.go
+++ b/connect/linkstore/flows.go
@@ -14,6 +14,8 @@ import (
)
type flow struct {
+ // Started is no longer written or checked (2026-11-19). It stays so a
+ // flow row written before then still decodes.
Started int64 `json:"started,omitempty"`
PersonBinding string `json:"person_binding"`
Version int `json:"v"`
@@ -103,20 +105,25 @@ func (s *Store) currentBinding(ctx context.Context, tx *sql.Tx, id int64) (strin
// Start is called only by an explicit same-origin local-account link POST.
// The returned secret belongs in a host-only Secure/HttpOnly/Lax cookie.
func (s *Store) Start(ctx context.Context, local Local, returnPath string, now time.Time) (string, error) {
- return s.start(ctx, local, returnPath, now, false)
+ return s.start(ctx, local, returnPath, now)
}
-// StartFresh requires Home authentication at or after this initiation.
+// StartFresh is the initiation for the fresh consumer, whose authorize
+// asks Home for max_age=300. Complete takes a Home sign-in from the last
+// maxAge seconds, made before this initiation or after it (Paul's
+// ruling, 2026-11-19): the flow, its nonce and the local session still
+// bind it to this browser. It is Start under its own name, kept for the
+// callers that chose it.
func (s *Store) StartFresh(ctx context.Context, local Local, returnPath string, now time.Time) (string, error) {
- return s.start(ctx, local, returnPath, now, true)
+ return s.start(ctx, local, returnPath, now)
}
-func (s *Store) start(ctx context.Context, local Local, returnPath string, now time.Time, fresh bool) (string, error) {
+func (s *Store) start(ctx context.Context, local Local, returnPath string, now time.Time) (string, error) {
tx, _, err := s.begin(ctx, now)
if err != nil {
return "", err
}
defer tx.Rollback()
- result, err := s.startOn(ctx, tx, local, returnPath, now, fresh)
+ result, err := s.startOn(ctx, tx, local, returnPath, now)
if err != nil && !errors.Is(err, ErrRefused) {
return "", err
}
@@ -128,9 +135,9 @@ func (s *Store) start(ctx context.Context, local Local, returnPath string, now t
// StartFreshOn creates fresh linking intent inside the caller's transaction.
func (s *Store) StartFreshOn(ctx context.Context, tx *sql.Tx, local Local, returnPath string, now time.Time) (string, error) {
- return s.startOn(ctx, tx, local, returnPath, now, true)
+ return s.startOn(ctx, tx, local, returnPath, now)
}
-func (s *Store) startOn(ctx context.Context, tx *sql.Tx, local Local, returnPath string, now time.Time, fresh bool) (string, error) {
+func (s *Store) startOn(ctx context.Context, tx *sql.Tx, local Local, returnPath string, now time.Time) (string, error) {
high, err := s.clockOn(ctx, tx, now)
if err != nil {
return "", err
@@ -164,9 +171,6 @@ func (s *Store) startOn(ctx context.Context, tx *sql.Tx, local Local, returnPath
return "", ErrRefused
}
f := flow{PersonBinding: binding, Version: 1, PersonID: local.PersonID, SessionHash: hash(local.SessionToken), LocalAuth: local.AuthTime.Unix(), Issuer: s.issuer, ReturnPath: safePath(returnPath), Expires: expires}
- if fresh {
- f.Started = now.Unix()
- }
if err := s.put(ctx, tx, "init", hash(secret), f); err != nil {
return "", err
}
@@ -244,7 +248,7 @@ func (s *Store) CompleteOn(ctx context.Context, tx *sql.Tx, secret string, local
if err != nil {
return "", err
}
- if !s.matches(f, local, now.Unix(), high) || !handoff.ValidNonce(home.Nonce) || f.NonceHash != hash(home.Nonce) || home.Issuer != s.issuer || !validSubject(home.Subject) || !fresh(home.AuthTime.Unix(), now.Unix(), high) || home.AuthTime.Unix() < f.Started {
+ if !s.matches(f, local, now.Unix(), high) || !handoff.ValidNonce(home.Nonce) || f.NonceHash != hash(home.Nonce) || home.Issuer != s.issuer || !validSubject(home.Subject) || !fresh(home.AuthTime.Unix(), now.Unix(), high) {
return "", ErrRefused
}
binding, err := s.currentBinding(ctx, tx, local.PersonID)
diff --git a/docs/superpowers/specs/2026-11-13-oficina-id-slice-1.md b/docs/superpowers/specs/2026-11-13-oficina-id-slice-1.md
index 98c448d..38358e0 100644
--- a/docs/superpowers/specs/2026-11-13-oficina-id-slice-1.md
+++ b/docs/superpowers/specs/2026-11-13-oficina-id-slice-1.md
@@ -56,10 +56,10 @@ No email, role, grants, document list, encryption keys or authentication-strengt
1. The app stores a short-lived transaction with independent browser secret, nonce, purpose and validated local return path/query. Set a `__Host-` pending cookie. Redirect to `/authorize` with exactly one `consumer`, one `nonce`, and optionally one `max_age=300`. No other parameters, duplicates or other `max_age` values; this matches `handleAuthorize`'s closed parser. Linking always includes `max_age=300`. Local accounts, documents and privileges stay app-side.
2. Home validates the consumer and authenticates. **Show a fixed-label Continue page before minting unless it is safe to skip it** (Paul's ruling, 2026-11-19, "skip it when safe"). The page stops forced sign-in (login CSRF): another site sends a signed-in person to an app's `/auth/start`, the Lax session cookie rides along, and an automatic handoff would sign them in to that app on a page that site chose. Home skips it, rendering the handoff from the top-level `GET /authorize/resume`, only when that cannot be what is happening:
- - **(a) The person signed in during this flow.** `/authorize` seals its start time and the hash of whatever session cookie it saw. The resume's session must be a different one, with a known gesture time (not a Keymail session that reported none) no earlier than that start. This is the freshness proof linking already uses, not a timing guess.
+ - **(a) The person signed in during this flow.** `/authorize` seals its start time and the hash of whatever session cookie it saw. The resume's session must be a different one, with a known gesture time (not a Keymail session that reported none) no earlier than that start. It is proven from sealed state and the session row, not from timing guesses.
- **(b) No other site started the flow.** The navigation that reached `GET /authorize` carried exactly one `Sec-Fetch-Site` of `same-origin`, `same-site` (the suite's other subdomains) or `none` (a typed address or bookmark), with `Sec-Fetch-Mode: navigate`, `Sec-Fetch-Dest: document` and no `Sec-Purpose`. `/authorize` records that in the sealed intent; nothing later (a resume header, a query, a form field) can supply it. The resume must itself be such a navigation, so another site sending the person straight to `/authorize/resume` while a same-site intent is live still meets the page.
- Why (b) holds: browsers set Fetch Metadata and pages cannot, and across redirects `Sec-Fetch-Site` reports the least related origin in the chain, so an app start that another site linked to arrives as `cross-site`. A missing, repeated or unknown value keeps the page. Residuals accepted with the ruling: `none` also covers a link opened from another application, and any page on a same-site origin counts as here. A cross-site consumer (Base on `oncarlos.com`) still shows Continue to a person already signed in. Skipping changes nothing else: intent, subject, `max_age`, consumer and mint policy are checked first; the Continue POST keeps its CSRF check; the handoff is the same page, with the same one-consumer form-action and the same script. It deletes the intent cookie, so a refetched resume reaches the existing failure page. A handoff the browser restores from history, or one minted from a kept copy of the cookie, carries an assertion for a transaction the app has already finished, and the app's replay checks refuse it, as they do after a Continue POST. Rendering it directly rather than through a 303 to a new step adds no route that mints on GET. Use operator-controlled service labels, no account-authored text. Linking always requires new authentication, regardless of session age. After Continue/authentication, deliver by form POST with optional static auto-submit and a manual button. Never put assertions in URLs or logs; use `no-store` and `strict-origin-when-cross-origin`, since `no-referrer` can null the POST Origin.
+ Why (b) holds: browsers set Fetch Metadata and pages cannot, and across redirects `Sec-Fetch-Site` reports the least related origin in the chain, so an app start that another site linked to arrives as `cross-site`. A missing, repeated or unknown value keeps the page. Residuals accepted with the ruling: `none` also covers a link opened from another application, and any page on a same-site origin counts as here. A cross-site consumer (Base on `oncarlos.com`) still shows Continue to a person already signed in. Skipping changes nothing else: intent, subject, `max_age`, consumer and mint policy are checked first; the Continue POST keeps its CSRF check; the handoff is the same page, with the same one-consumer form-action and the same script. It deletes the intent cookie, so a refetched resume reaches the existing failure page. A handoff the browser restores from history, or one minted from a kept copy of the cookie, carries an assertion for a transaction the app has already finished, and the app's replay checks refuse it, as they do after a Continue POST. Rendering it directly rather than through a 303 to a new step adds no route that mints on GET. Use operator-controlled service labels, no account-authored text. **Linking accepts an Oficina ID sign-in from the last five minutes in this browser** (Paul's ruling, 2026-11-19, replacing "linking always requires new authentication"): a `max_age=300` request is satisfied by the session this browser presents if its gesture time is within 300 seconds, even when it predates the link. A Keymail session with no gesture time, a recovery sign-in and a future time never count, and the intent, subject, nonce and consumer checks still bind the result to this browser and this request. The accepted risk: someone who forced this browser into their own Oficina ID within those five minutes could link the person's app account to that ID. It is bounded because the attacker's ID must have signed in within the last 300 seconds; the app account must hold a local sign-in in this same browser from the last five minutes, which the app reuses when it is that recent and asks for otherwise (`connect` `FreshLocal`, so it need not happen inside this flow); and the app shows the link confirmation, naming the local account, before writing it. The directory's fresh consumer gets the same rule, which is the one its own `teamFresh` already applies. After Continue/authentication, deliver by form POST with optional static auto-submit and a manual button. Never put assertions in URLs or logs; use `no-store` and `strict-origin-when-cross-origin`, since `no-referrer` can null the POST Origin.
3. Accept only a bounded form POST with exact issuer `Origin`. Verify signature, issuer, audience, types and times. Before storing a receipt, require its signed nonce to match a live pending transaction; check and insert atomically. Reserve `(iss,jti)` uniquely so repeated callbacks refuse. Unknown nonces and storage failures store nothing.
4. Store a sealed, expiring inbox receipt, then redirect to `/auth/finish`. Its top-level GET receives the original SameSite=Lax cookie. Recheck the browser secret, nonce, expiry and account binding. Consume the pending/inbox proof, record replay use, resolve the current mapping/admission and mint the session atomically. Preserve the clock watermark and replay retention through expiry plus thirty seconds across restarts. Never mint at the cross-site POST.
@@ -69,9 +69,9 @@ The final transaction boundary is a required adapter change: today's `handoff.Fi
The sibling stores `(issuer, person_ref) → immutable local account ID`, unique in both directions within its instance. Nothing about that account goes to Home. Email equality never creates, repairs or transfers a link.
-Start from the actual local session with request-forgery protection. **Equipo completes local reauthentication before creating the link transaction and starting the Home leg.** Record the transaction start server-side. Both proofs must be within five minutes at confirmation, and Home's `auth_time` must be **at or after that start**, with no backward allowance. Bind proofs to the original local account, session, nonce and purpose; never restart the clock by continuing a stale flow.
+Start from the actual local session with request-forgery protection. **Equipo completes local reauthentication before creating the link transaction and starting the Home leg.** Record the transaction start server-side. Both proofs must be within five minutes at confirmation. Home's `auth_time` may predate that start (Paul's ruling, 2026-11-19; it was "at or after that start" before), as long as it is within the five minutes. Bind proofs to the original local account, session, nonce and purpose; never restart the clock by continuing a stale flow.
-`max_age=300` alone currently permits session reuse. For this slice, these requests must force a new Home authentication gesture, even with a recent session; a passive Keymail approval is insufficient. The consumer independently rejects an older `auth_time`. This tightens issuance behavior without adding request parameters. Show confirmation on Equipo, then consume both proofs and write the link in one transaction, rechecking existence/admission. Conflict refuses; never merge or overwrite.
+`max_age=300` permits reuse of a session whose gesture is within 300 seconds, and since 2026-11-19 Home allows it (step 2); a passive Keymail approval, a recovery sign-in or an older gesture is insufficient and goes back to sign-in. The consumer independently rejects an `auth_time` older than five minutes. Show confirmation on Equipo, then consume both proofs and write the link in one transaction, rechecking existence/admission. Conflict refuses; never merge or overwrite.
Retain `connect`/`linkstore`'s proof stages. Resolve Home subjects to Equipo's member identity before its active-member, invitation and session-epoch checks. Never pass a person ref to address-based helpers. An unlinked ID returns to local sign-in/linking; no duplicate account or implicit invitation acceptance.
diff --git a/implementation/oficina-id-slice1-mutations.json b/implementation/oficina-id-slice1-mutations.json
index ead8681..e556501 100644
--- a/implementation/oficina-id-slice1-mutations.json
+++ b/implementation/oficina-id-slice1-mutations.json
@@ -5,29 +5,19 @@
"test": "TestIDContinueBeforeMinting",
"result": "killed",
"failures": [
- "--- FAIL: TestIDContinueBeforeMinting (0.56s)"
+ "--- FAIL: TestIDContinueBeforeMinting (0.49s)"
],
- "seconds": 2.99
- },
- {
- "guard": "link new session",
- "file": "internal/home/exchange.go",
- "test": "TestIDLinkAlwaysRequiresNewGesture",
- "result": "killed",
- "failures": [
- "--- FAIL: TestIDLinkAlwaysRequiresNewGesture (0.46s)"
- ],
- "seconds": 3.24
+ "seconds": 3.68
},
{
- "guard": "link transaction start",
+ "guard": "link five-minute window",
"file": "internal/home/exchange.go",
- "test": "TestIDLinkRejectsProofBeforeTransactionStart",
+ "test": "TestIDLinkRefusesSignInOlderThanWindow",
"result": "killed",
"failures": [
- "--- FAIL: TestIDLinkRejectsProofBeforeTransactionStart (0.51s)"
+ "--- FAIL: TestIDLinkRefusesSignInOlderThanWindow (0.44s)"
],
- "seconds": 3.12
+ "seconds": 2.74
},
{
"guard": "passive Keymail issuance",
@@ -35,9 +25,9 @@
"test": "TestIDLinkRejectsPassiveMintedSession",
"result": "killed",
"failures": [
- "--- FAIL: TestIDLinkRejectsPassiveMintedSession (0.47s)"
+ "--- FAIL: TestIDLinkRejectsPassiveMintedSession (0.61s)"
],
- "seconds": 2.8
+ "seconds": 2.87
},
{
"guard": "live issuance session",
@@ -45,9 +35,9 @@
"test": "TestIDRevokedCachedSessionCannotMint",
"result": "killed",
"failures": [
- "--- FAIL: TestIDRevokedCachedSessionCannotMint (0.49s)"
+ "--- FAIL: TestIDRevokedCachedSessionCannotMint (0.52s)"
],
- "seconds": 2.91
+ "seconds": 3.23
},
{
"guard": "audience",
@@ -55,9 +45,9 @@
"test": "TestHomeDirectoryExchangeAndPrivacy",
"result": "killed",
"failures": [
- "--- FAIL: TestHomeDirectoryExchangeAndPrivacy (0.49s)"
+ "--- FAIL: TestHomeDirectoryExchangeAndPrivacy (0.48s)"
],
- "seconds": 2.88
+ "seconds": 2.96
},
{
"guard": "nonce",
@@ -65,9 +55,9 @@
"test": "TestHomeDirectoryExchangeAndPrivacy",
"result": "killed",
"failures": [
- "--- FAIL: TestHomeDirectoryExchangeAndPrivacy (0.33s)"
+ "--- FAIL: TestHomeDirectoryExchangeAndPrivacy (0.52s)"
],
- "seconds": 2.6
+ "seconds": 3.05
},
{
"guard": "assertion lifetime",
@@ -75,9 +65,9 @@
"test": "TestHomeDirectoryExchangeAndPrivacy",
"result": "killed",
"failures": [
- "--- FAIL: TestHomeDirectoryExchangeAndPrivacy (0.37s)"
+ "--- FAIL: TestHomeDirectoryExchangeAndPrivacy (0.58s)"
],
- "seconds": 2.79
+ "seconds": 3.15
},
{
"guard": "cookie ambiguity",
@@ -85,10 +75,10 @@
"test": "TestIDChallengeBrowserCookiesAndExpiry/duplicate",
"result": "killed",
"failures": [
- "--- FAIL: TestIDChallengeBrowserCookiesAndExpiry (0.26s)",
- "--- FAIL: TestIDChallengeBrowserCookiesAndExpiry/duplicate (0.26s)"
+ "--- FAIL: TestIDChallengeBrowserCookiesAndExpiry (0.28s)",
+ "--- FAIL: TestIDChallengeBrowserCookiesAndExpiry/duplicate (0.28s)"
],
- "seconds": 2.92
+ "seconds": 2.78
},
{
"guard": "clock rollback",
@@ -96,10 +86,10 @@
"test": "TestIDChallengeBrowserCookiesAndExpiry/clock",
"result": "killed",
"failures": [
- "--- FAIL: TestIDChallengeBrowserCookiesAndExpiry (0.21s)",
- "--- FAIL: TestIDChallengeBrowserCookiesAndExpiry/clock (0.21s)"
+ "--- FAIL: TestIDChallengeBrowserCookiesAndExpiry (0.27s)",
+ "--- FAIL: TestIDChallengeBrowserCookiesAndExpiry/clock (0.27s)"
],
- "seconds": 3.92
+ "seconds": 2.87
},
{
"guard": "future enrollment time",
@@ -107,10 +97,10 @@
"test": "TestIDEnrollmentRejectsFutureAndPassiveAuthentication/future",
"result": "killed",
"failures": [
- "--- FAIL: TestIDEnrollmentRejectsFutureAndPassiveAuthentication (0.17s)",
- "--- FAIL: TestIDEnrollmentRejectsFutureAndPassiveAuthentication/future (0.17s)"
+ "--- FAIL: TestIDEnrollmentRejectsFutureAndPassiveAuthentication (0.41s)",
+ "--- FAIL: TestIDEnrollmentRejectsFutureAndPassiveAuthentication/future (0.41s)"
],
- "seconds": 2.72
+ "seconds": 3.91
},
{
"guard": "passive enrollment",
@@ -118,10 +108,10 @@
"test": "TestIDEnrollmentRejectsFutureAndPassiveAuthentication/passive",
"result": "killed",
"failures": [
- "--- FAIL: TestIDEnrollmentRejectsFutureAndPassiveAuthentication (0.19s)",
- "--- FAIL: TestIDEnrollmentRejectsFutureAndPassiveAuthentication/passive (0.19s)"
+ "--- FAIL: TestIDEnrollmentRejectsFutureAndPassiveAuthentication (0.27s)",
+ "--- FAIL: TestIDEnrollmentRejectsFutureAndPassiveAuthentication/passive (0.27s)"
],
- "seconds": 2.45
+ "seconds": 5.19
},
{
"guard": "challenge capacity",
@@ -129,10 +119,10 @@
"test": "TestIDChallengeBrowserCookiesAndExpiry/capacity",
"result": "killed",
"failures": [
- "--- FAIL: TestIDChallengeBrowserCookiesAndExpiry (0.21s)",
- "--- FAIL: TestIDChallengeBrowserCookiesAndExpiry/capacity (0.21s)"
+ "--- FAIL: TestIDChallengeBrowserCookiesAndExpiry (0.31s)",
+ "--- FAIL: TestIDChallengeBrowserCookiesAndExpiry/capacity (0.31s)"
],
- "seconds": 2.54
+ "seconds": 2.66
},
{
"guard": "challenge lifetime",
@@ -140,10 +130,10 @@
"test": "TestIDGatedChallengeGuards/ttl",
"result": "killed",
"failures": [
- "--- FAIL: TestIDGatedChallengeGuards (0.19s)",
- "--- FAIL: TestIDGatedChallengeGuards/ttl (0.19s)"
+ "--- FAIL: TestIDGatedChallengeGuards (0.31s)",
+ "--- FAIL: TestIDGatedChallengeGuards/ttl (0.31s)"
],
- "seconds": 2.43
+ "seconds": 2.99
},
{
"guard": "challenge browser",
@@ -151,10 +141,10 @@
"test": "TestIDGatedChallengeGuards/browser",
"result": "killed",
"failures": [
- "--- FAIL: TestIDGatedChallengeGuards (0.22s)",
- "--- FAIL: TestIDGatedChallengeGuards/browser (0.22s)"
+ "--- FAIL: TestIDGatedChallengeGuards (0.33s)",
+ "--- FAIL: TestIDGatedChallengeGuards/browser (0.33s)"
],
- "seconds": 2.53
+ "seconds": 3.02
},
{
"guard": "challenge subject",
@@ -162,10 +152,10 @@
"test": "TestIDRegistrationChallengeSubjectAndLiveSession/subject",
"result": "killed",
"failures": [
- "--- FAIL: TestIDRegistrationChallengeSubjectAndLiveSession (0.20s)",
- "--- FAIL: TestIDRegistrationChallengeSubjectAndLiveSession/subject (0.20s)"
+ "--- FAIL: TestIDRegistrationChallengeSubjectAndLiveSession (0.29s)",
+ "--- FAIL: TestIDRegistrationChallengeSubjectAndLiveSession/subject (0.29s)"
],
- "seconds": 2.61
+ "seconds": 2.88
},
{
"guard": "challenge purpose",
@@ -173,10 +163,10 @@
"test": "TestIDGatedChallengeGuards/purpose",
"result": "killed",
"failures": [
- "--- FAIL: TestIDGatedChallengeGuards (0.22s)",
- "--- FAIL: TestIDGatedChallengeGuards/purpose (0.22s)"
+ "--- FAIL: TestIDGatedChallengeGuards (0.32s)",
+ "--- FAIL: TestIDGatedChallengeGuards/purpose (0.32s)"
],
- "seconds": 2.69
+ "seconds": 2.85
},
{
"guard": "challenge expiry",
@@ -184,10 +174,10 @@
"test": "TestIDGatedChallengeGuards/expiry",
"result": "killed",
"failures": [
- "--- FAIL: TestIDGatedChallengeGuards (0.21s)",
- "--- FAIL: TestIDGatedChallengeGuards/expiry (0.21s)"
+ "--- FAIL: TestIDGatedChallengeGuards (0.31s)",
+ "--- FAIL: TestIDGatedChallengeGuards/expiry (0.31s)"
],
- "seconds": 2.62
+ "seconds": 2.88
},
{
"guard": "challenge single use",
@@ -195,10 +185,10 @@
"test": "TestIDGatedChallengeGuards/single-use",
"result": "killed",
"failures": [
- "--- FAIL: TestIDGatedChallengeGuards (0.22s)",
- "--- FAIL: TestIDGatedChallengeGuards/single-use (0.22s)"
+ "--- FAIL: TestIDGatedChallengeGuards (1.04s)",
+ "--- FAIL: TestIDGatedChallengeGuards/single-use (1.04s)"
],
- "seconds": 2.54
+ "seconds": 8.65
},
{
"guard": "strict ceremony JSON",
@@ -206,11 +196,11 @@
"test": "TestIDCeremonyRejectsAmbiguousJSON",
"result": "killed",
"failures": [
- "--- FAIL: TestIDCeremonyRejectsAmbiguousJSON (0.33s)",
- "--- FAIL: TestIDCeremonyRejectsAmbiguousJSON/trailing (0.17s)",
- "--- FAIL: TestIDCeremonyRejectsAmbiguousJSON/duplicate (0.16s)"
+ "--- FAIL: TestIDCeremonyRejectsAmbiguousJSON (2.43s)",
+ "--- FAIL: TestIDCeremonyRejectsAmbiguousJSON/trailing (1.12s)",
+ "--- FAIL: TestIDCeremonyRejectsAmbiguousJSON/duplicate (1.31s)"
],
- "seconds": 2.56
+ "seconds": 28.94
},
{
"guard": "credential collision",
@@ -218,9 +208,9 @@
"test": "TestIDEnrollmentCannotTransferCredential",
"result": "killed",
"failures": [
- "--- FAIL: TestIDEnrollmentCannotTransferCredential (0.22s)"
+ "--- FAIL: TestIDEnrollmentCannotTransferCredential (0.69s)"
],
- "seconds": 2.53
+ "seconds": 35.93
},
{
"guard": "credential enrollment bound",
@@ -228,9 +218,9 @@
"test": "TestIDEnrollmentBound",
"result": "killed",
"failures": [
- "--- FAIL: TestIDEnrollmentBound (0.72s)"
+ "--- FAIL: TestIDEnrollmentBound (1.02s)"
],
- "seconds": 3.03
+ "seconds": 18.74
},
{
"guard": "credential owner",
@@ -238,9 +228,9 @@
"test": "TestIDGateBindsCredentialOwner",
"result": "killed",
"failures": [
- "--- FAIL: TestIDGateBindsCredentialOwner (0.25s)"
+ "--- FAIL: TestIDGateBindsCredentialOwner (0.46s)"
],
- "seconds": 2.73
+ "seconds": 12.7
},
{
"guard": "discoverable admission",
@@ -248,9 +238,9 @@
"test": "TestIDLegacyCredentialCannotSignInDirectly",
"result": "killed",
"failures": [
- "--- FAIL: TestIDLegacyCredentialCannotSignInDirectly (0.19s)"
+ "--- FAIL: TestIDLegacyCredentialCannotSignInDirectly (0.39s)"
],
- "seconds": 2.51
+ "seconds": 18.49
},
{
"guard": "WebAuthn verification",
@@ -258,13 +248,13 @@
"test": "TestIDPasskeyRejectsBadProofs/(origin|rp|uv|signature)",
"result": "killed",
"failures": [
- "--- FAIL: TestIDPasskeyRejectsBadProofs (0.74s)",
- "--- FAIL: TestIDPasskeyRejectsBadProofs/origin (0.22s)",
- "--- FAIL: TestIDPasskeyRejectsBadProofs/rp (0.18s)",
- "--- FAIL: TestIDPasskeyRejectsBadProofs/uv (0.17s)",
- "--- FAIL: TestIDPasskeyRejectsBadProofs/signature (0.16s)"
+ "--- FAIL: TestIDPasskeyRejectsBadProofs (1.80s)",
+ "--- FAIL: TestIDPasskeyRejectsBadProofs/origin (0.58s)",
+ "--- FAIL: TestIDPasskeyRejectsBadProofs/rp (0.34s)",
+ "--- FAIL: TestIDPasskeyRejectsBadProofs/uv (0.35s)",
+ "--- FAIL: TestIDPasskeyRejectsBadProofs/signature (0.53s)"
],
- "seconds": 3.31
+ "seconds": 19.13
},
{
"guard": "recovery entropy",
@@ -272,9 +262,9 @@
"test": "TestIDRecoveryEntropy",
"result": "killed",
"failures": [
- "--- FAIL: TestIDRecoveryEntropy (0.18s)"
+ "--- FAIL: TestIDRecoveryEntropy (0.44s)"
],
- "seconds": 2.38
+ "seconds": 15.29
},
{
"guard": "account attempt budget",
@@ -282,9 +272,9 @@
"test": "TestIDRecoveryAttemptLimitSurvivesReconstruction",
"result": "killed",
"failures": [
- "--- FAIL: TestIDRecoveryAttemptLimitSurvivesReconstruction (0.41s)"
+ "--- FAIL: TestIDRecoveryAttemptLimitSurvivesReconstruction (1.21s)"
],
- "seconds": 2.66
+ "seconds": 15.07
},
{
"guard": "IP attempt budget",
@@ -292,9 +282,9 @@
"test": "TestIDRecoveryIPLimitAcrossAccounts",
"result": "killed",
"failures": [
- "--- FAIL: TestIDRecoveryIPLimitAcrossAccounts (0.69s)"
+ "--- FAIL: TestIDRecoveryIPLimitAcrossAccounts (1.27s)"
],
- "seconds": 3.09
+ "seconds": 6.75
},
{
"guard": "attempt increment",
@@ -302,9 +292,9 @@
"test": "TestIDRecoveryAttemptLimitSurvivesReconstruction",
"result": "killed",
"failures": [
- "--- FAIL: TestIDRecoveryAttemptLimitSurvivesReconstruction (0.29s)"
+ "--- FAIL: TestIDRecoveryAttemptLimitSurvivesReconstruction (0.69s)"
],
- "seconds": 2.66
+ "seconds": 6.14
},
{
"guard": "attempt persistence",
@@ -312,9 +302,9 @@
"test": "TestIDRecoveryAttemptLimitSurvivesReconstruction",
"result": "killed",
"failures": [
- "--- FAIL: TestIDRecoveryAttemptLimitSurvivesReconstruction (0.37s)"
+ "--- FAIL: TestIDRecoveryAttemptLimitSurvivesReconstruction (0.82s)"
],
- "seconds": 2.79
+ "seconds": 10.57
},
{
"guard": "mailbox freshness",
@@ -322,9 +312,9 @@
"test": "TestIDRecoveryMailboxTimeDefense",
"result": "killed",
"failures": [
- "--- FAIL: TestIDRecoveryMailboxTimeDefense (0.25s)"
+ "--- FAIL: TestIDRecoveryMailboxTimeDefense (0.44s)"
],
- "seconds": 2.72
+ "seconds": 11.97
},
{
"guard": "recovery code person",
@@ -332,9 +322,9 @@
"test": "TestIDRecoveryCodePersonBindingAndReplay",
"result": "killed",
"failures": [
- "--- FAIL: TestIDRecoveryCodePersonBindingAndReplay (0.27s)"
+ "--- FAIL: TestIDRecoveryCodePersonBindingAndReplay (0.64s)"
],
- "seconds": 2.81
+ "seconds": 12.82
},
{
"guard": "recovery code single use",
@@ -342,9 +332,9 @@
"test": "TestIDRecoveryCodePersonBindingAndReplay",
"result": "killed",
"failures": [
- "--- FAIL: TestIDRecoveryCodePersonBindingAndReplay (0.31s)"
+ "--- FAIL: TestIDRecoveryCodePersonBindingAndReplay (0.51s)"
],
- "seconds": 2.71
+ "seconds": 9.84
},
{
"guard": "recovery proof expiry",
@@ -352,10 +342,10 @@
"test": "TestIDReplacementProofBinding/expired",
"result": "killed",
"failures": [
- "--- FAIL: TestIDReplacementProofBinding (0.24s)",
- "--- FAIL: TestIDReplacementProofBinding/expired (0.24s)"
+ "--- FAIL: TestIDReplacementProofBinding (0.38s)",
+ "--- FAIL: TestIDReplacementProofBinding/expired (0.38s)"
],
- "seconds": 2.48
+ "seconds": 8.45
},
{
"guard": "recovery proof subject",
@@ -363,7 +353,7 @@
"test": "TestIDReplacementProofBinding/wrong-person",
"result": "survived",
"failures": [],
- "seconds": 2.43,
+ "seconds": 5.58,
"explanation": "Independent in-memory mailbox subject check still refuses. The paired mutation removes both checks and must fail the same regression."
},
{
@@ -372,9 +362,9 @@
"test": "TestIDRecoveryProofCapacity",
"result": "killed",
"failures": [
- "--- FAIL: TestIDRecoveryProofCapacity (0.35s)"
+ "--- FAIL: TestIDRecoveryProofCapacity (0.54s)"
],
- "seconds": 3.4
+ "seconds": 5.99
},
{
"guard": "mailbox memory capacity",
@@ -384,7 +374,7 @@
"failures": [
"--- FAIL: TestIDMailboxMemoryBoundAndExpiry (0.00s)"
],
- "seconds": 3.44
+ "seconds": 6.47
},
{
"guard": "mailbox memory expiry",
@@ -394,7 +384,7 @@
"failures": [
"--- FAIL: TestIDMailboxMemoryBoundAndExpiry (0.00s)"
],
- "seconds": 2.41
+ "seconds": 5.96
},
{
"guard": "notice outcome",
@@ -402,9 +392,9 @@
"test": "TestIDNoticeFailureSurvivesRestartWithoutAddress",
"result": "killed",
"failures": [
- "--- FAIL: TestIDNoticeFailureSurvivesRestartWithoutAddress (0.30s)"
+ "--- FAIL: TestIDNoticeFailureSurvivesRestartWithoutAddress (0.40s)"
],
- "seconds": 2.62
+ "seconds": 3.09
},
{
"guard": "SMTP log privacy",
@@ -412,9 +402,9 @@
"test": "TestIDSMTPFailureDoesNotLeak",
"result": "killed",
"failures": [
- "--- FAIL: TestIDSMTPFailureDoesNotLeak (0.15s)"
+ "--- FAIL: TestIDSMTPFailureDoesNotLeak (0.18s)"
],
- "seconds": 3.17
+ "seconds": 3.48
},
{
"guard": "limiter address blinding",
@@ -422,9 +412,9 @@
"test": "TestIDSigninLimiterUsesBlindedAddress",
"result": "killed",
"failures": [
- "--- FAIL: TestIDSigninLimiterUsesBlindedAddress (0.15s)"
+ "--- FAIL: TestIDSigninLimiterUsesBlindedAddress (0.14s)"
],
- "seconds": 2.7
+ "seconds": 3.2
},
{
"guard": "local signout",
@@ -432,9 +422,9 @@
"test": "TestIDLocalSignoutWithHangingIssuer",
"result": "killed",
"failures": [
- "--- FAIL: TestIDLocalSignoutWithHangingIssuer (0.76s)"
+ "--- FAIL: TestIDLocalSignoutWithHangingIssuer (0.36s)"
],
- "seconds": 3.71
+ "seconds": 2.65
},
{
"guard": "sealed link storage",
@@ -442,9 +432,9 @@
"test": "TestFullSigninLeavesNoReadableAddress",
"result": "killed",
"failures": [
- "--- FAIL: TestFullSigninLeavesNoReadableAddress (0.17s)"
+ "--- FAIL: TestFullSigninLeavesNoReadableAddress (0.21s)"
],
- "seconds": 5.13
+ "seconds": 2.45
},
{
"guard": "closed authorize fields",
@@ -452,9 +442,9 @@
"test": "TestIDClosedAuthorize",
"result": "killed",
"failures": [
- "--- FAIL: TestIDClosedAuthorize (0.44s)"
+ "--- FAIL: TestIDClosedAuthorize (0.41s)"
],
- "seconds": 2.86
+ "seconds": 2.75
},
{
"guard": "authorize consumer uniqueness",
@@ -462,9 +452,9 @@
"test": "TestIDClosedAuthorize",
"result": "killed",
"failures": [
- "--- FAIL: TestIDClosedAuthorize (0.29s)"
+ "--- FAIL: TestIDClosedAuthorize (0.43s)"
],
- "seconds": 2.95
+ "seconds": 2.76
},
{
"guard": "authorize nonce uniqueness",
@@ -472,9 +462,9 @@
"test": "TestIDClosedAuthorize",
"result": "killed",
"failures": [
- "--- FAIL: TestIDClosedAuthorize (0.33s)"
+ "--- FAIL: TestIDClosedAuthorize (0.41s)"
],
- "seconds": 3.08
+ "seconds": 2.78
},
{
"guard": "CSRF for sensitive posts",
@@ -482,9 +472,9 @@
"test": "TestIDAllSensitivePostsRequireOrigin",
"result": "killed",
"failures": [
- "--- FAIL: TestIDAllSensitivePostsRequireOrigin (0.53s)"
+ "--- FAIL: TestIDAllSensitivePostsRequireOrigin (0.29s)"
],
- "seconds": 4.52
+ "seconds": 3.1
},
{
"guard": "recovery subject defenses together",
@@ -492,10 +482,10 @@
"test": "TestIDReplacementProofBinding/wrong-person",
"result": "killed",
"failures": [
- "--- FAIL: TestIDReplacementProofBinding (0.22s)",
- "--- FAIL: TestIDReplacementProofBinding/wrong-person (0.22s)"
+ "--- FAIL: TestIDReplacementProofBinding (0.25s)",
+ "--- FAIL: TestIDReplacementProofBinding/wrong-person (0.25s)"
],
- "seconds": 3.22
+ "seconds": 3.02
},
{
"guard": "registered authorize consumer",
@@ -503,9 +493,9 @@
"test": "TestIDClosedAuthorize",
"result": "killed",
"failures": [
- "--- FAIL: TestIDClosedAuthorize (0.31s)"
+ "--- FAIL: TestIDClosedAuthorize (0.29s)"
],
- "seconds": 2.71
+ "seconds": 2.93
},
{
"guard": "authorize nonce format",
@@ -513,9 +503,9 @@
"test": "TestIDClosedAuthorize",
"result": "killed",
"failures": [
- "--- FAIL: TestIDClosedAuthorize (0.28s)"
+ "--- FAIL: TestIDClosedAuthorize (0.39s)"
],
- "seconds": 2.64
+ "seconds": 3.7
},
{
"guard": "authorize max age",
@@ -523,9 +513,9 @@
"test": "TestIDClosedAuthorize",
"result": "killed",
"failures": [
- "--- FAIL: TestIDClosedAuthorize (0.44s)"
+ "--- FAIL: TestIDClosedAuthorize (0.29s)"
],
- "seconds": 3.24
+ "seconds": 3.04
},
{
"guard": "replacement rollback",
@@ -533,14 +523,14 @@
"test": "TestIDReplacementRollback",
"result": "killed",
"failures": [
- "--- FAIL: TestIDReplacementRollback (1.82s)",
- "--- FAIL: TestIDReplacementRollback/sessionsDELETE (0.32s)",
- "--- FAIL: TestIDReplacementRollback/passkey_recovery_codesDELETE (0.32s)",
- "--- FAIL: TestIDReplacementRollback/home_id_recovery_proofsDELETE (0.33s)",
- "--- FAIL: TestIDReplacementRollback/passkey_credentialsINSERT (0.33s)",
- "--- FAIL: TestIDReplacementRollback/home_id_discoverableINSERT (0.21s)"
+ "--- FAIL: TestIDReplacementRollback (1.77s)",
+ "--- FAIL: TestIDReplacementRollback/sessionsDELETE (0.31s)",
+ "--- FAIL: TestIDReplacementRollback/passkey_recovery_codesDELETE (0.31s)",
+ "--- FAIL: TestIDReplacementRollback/home_id_recovery_proofsDELETE (0.28s)",
+ "--- FAIL: TestIDReplacementRollback/passkey_credentialsINSERT (0.29s)",
+ "--- FAIL: TestIDReplacementRollback/home_id_discoverableINSERT (0.28s)"
],
- "seconds": 4.33
+ "seconds": 4.42
},
{
"guard": "email authentication time",
@@ -548,9 +538,9 @@
"test": "TestIDEmailMintPreservesVerificationTime",
"result": "killed",
"failures": [
- "--- FAIL: TestIDEmailMintPreservesVerificationTime (0.14s)"
+ "--- FAIL: TestIDEmailMintPreservesVerificationTime (0.20s)"
],
- "seconds": 2.33
+ "seconds": 3.79
},
{
"guard": "codes after enrollment",
@@ -558,9 +548,9 @@
"test": "TestIDCodesRequireEnrolledPasskey",
"result": "killed",
"failures": [
- "--- FAIL: TestIDCodesRequireEnrolledPasskey (0.17s)"
+ "--- FAIL: TestIDCodesRequireEnrolledPasskey (0.21s)"
],
- "seconds": 2.78
+ "seconds": 4.95
},
{
"guard": "fresh intent start provenance",
@@ -570,7 +560,7 @@
"failures": [
"--- FAIL: TestIDFreshIntentRequiresStartTime (0.32s)"
],
- "seconds": 2.87
+ "seconds": 2.81
},
{
"guard": "credential page cache privacy",
@@ -578,9 +568,9 @@
"test": "TestIDCredentialPagesAreNoStore",
"result": "killed",
"failures": [
- "--- FAIL: TestIDCredentialPagesAreNoStore (0.31s)"
+ "--- FAIL: TestIDCredentialPagesAreNoStore (0.19s)"
],
- "seconds": 3.33
+ "seconds": 2.7
},
{
"guard": "link recovery exclusion",
@@ -588,9 +578,9 @@
"test": "TestIDRecoveryCannotLink",
"result": "killed",
"failures": [
- "--- FAIL: TestIDRecoveryCannotLink (0.51s)"
+ "--- FAIL: TestIDRecoveryCannotLink (0.33s)"
],
- "seconds": 4.42
+ "seconds": 2.99
},
{
"guard": "enrollment recovery exclusion",
@@ -598,9 +588,9 @@
"test": "TestIDRecoveryExclusions",
"result": "killed",
"failures": [
- "--- FAIL: TestIDRecoveryExclusions (0.23s)"
+ "--- FAIL: TestIDRecoveryExclusions (0.28s)"
],
- "seconds": 2.72
+ "seconds": 2.51
},
{
"guard": "codes recovery exclusion",
@@ -608,9 +598,9 @@
"test": "TestIDRecoveryExclusions",
"result": "killed",
"failures": [
- "--- FAIL: TestIDRecoveryExclusions (0.22s)"
+ "--- FAIL: TestIDRecoveryExclusions (0.21s)"
],
- "seconds": 2.45
+ "seconds": 2.34
},
{
"guard": "replacement recovery suffix",
@@ -618,10 +608,10 @@
"test": "TestIDReplacementRequiresRecoverySession/method",
"result": "killed",
"failures": [
- "--- FAIL: TestIDReplacementRequiresRecoverySession (0.27s)",
- "--- FAIL: TestIDReplacementRequiresRecoverySession/method (0.27s)"
+ "--- FAIL: TestIDReplacementRequiresRecoverySession (0.25s)",
+ "--- FAIL: TestIDReplacementRequiresRecoverySession/method (0.24s)"
],
- "seconds": 2.7
+ "seconds": 2.61
},
{
"guard": "replacement session binding",
@@ -629,10 +619,10 @@
"test": "TestIDReplacementRequiresRecoverySession/session",
"result": "killed",
"failures": [
- "--- FAIL: TestIDReplacementRequiresRecoverySession (0.25s)",
- "--- FAIL: TestIDReplacementRequiresRecoverySession/session (0.25s)"
+ "--- FAIL: TestIDReplacementRequiresRecoverySession (0.26s)",
+ "--- FAIL: TestIDReplacementRequiresRecoverySession/session (0.26s)"
],
- "seconds": 2.86
+ "seconds": 3.39
},
{
"guard": "limits before code consumption",
@@ -640,11 +630,11 @@
"test": "TestIDLimitsBeforeValidCode",
"result": "killed",
"failures": [
- "--- FAIL: TestIDLimitsBeforeValidCode (0.50s)",
+ "--- FAIL: TestIDLimitsBeforeValidCode (0.53s)",
"--- FAIL: TestIDLimitsBeforeValidCode/account (0.27s)",
- "--- FAIL: TestIDLimitsBeforeValidCode/ip (0.23s)"
+ "--- FAIL: TestIDLimitsBeforeValidCode/ip (0.26s)"
],
- "seconds": 4.26
+ "seconds": 4.04
},
{
"guard": "recovery RAM reservation",
@@ -652,10 +642,10 @@
"test": "TestIDRecoveryMailboxFailurePreservesCode/full",
"result": "killed",
"failures": [
- "--- FAIL: TestIDRecoveryMailboxFailurePreservesCode (0.25s)",
- "--- FAIL: TestIDRecoveryMailboxFailurePreservesCode/full (0.25s)"
+ "--- FAIL: TestIDRecoveryMailboxFailurePreservesCode (0.22s)",
+ "--- FAIL: TestIDRecoveryMailboxFailurePreservesCode/full (0.22s)"
],
- "seconds": 2.95
+ "seconds": 3.34
},
{
"guard": "recovery RAM required",
@@ -663,10 +653,10 @@
"test": "TestIDRecoveryMailboxFailurePreservesCode/missing",
"result": "killed",
"failures": [
- "--- FAIL: TestIDRecoveryMailboxFailurePreservesCode (0.20s)",
- "--- FAIL: TestIDRecoveryMailboxFailurePreservesCode/missing (0.20s)"
+ "--- FAIL: TestIDRecoveryMailboxFailurePreservesCode (0.30s)",
+ "--- FAIL: TestIDRecoveryMailboxFailurePreservesCode/missing (0.30s)"
],
- "seconds": 2.75
+ "seconds": 3.61
},
{
"guard": "full mailbox permits gate",
@@ -674,9 +664,9 @@
"test": "TestIDFullMailboxAllowsGatedSignin",
"result": "killed",
"failures": [
- "--- FAIL: TestIDFullMailboxAllowsGatedSignin (0.21s)"
+ "--- FAIL: TestIDFullMailboxAllowsGatedSignin (0.26s)"
],
- "seconds": 2.48
+ "seconds": 3.66
},
{
"guard": "recovery signin notice",
@@ -684,9 +674,9 @@
"test": "TestIDRecoverySigninNotice$",
"result": "killed",
"failures": [
- "--- FAIL: TestIDRecoverySigninNotice (0.21s)"
+ "--- FAIL: TestIDRecoverySigninNotice (0.32s)"
],
- "seconds": 2.62
+ "seconds": 3.66
},
{
"guard": "new codes after replacement",
@@ -694,9 +684,9 @@
"test": "TestIDRecoveryReplacementRevokesEverything",
"result": "killed",
"failures": [
- "--- FAIL: TestIDRecoveryReplacementRevokesEverything (0.27s)"
+ "--- FAIL: TestIDRecoveryReplacementRevokesEverything (0.37s)"
],
- "seconds": 2.69
+ "seconds": 2.89
},
{
"guard": "stateless anonymous begin",
@@ -704,9 +694,9 @@
"test": "TestIDDirectFloodLeavesGatedCapacity",
"result": "killed",
"failures": [
- "--- FAIL: TestIDDirectFloodLeavesGatedCapacity (0.18s)"
+ "--- FAIL: TestIDDirectFloodLeavesGatedCapacity (0.27s)"
],
- "seconds": 2.35
+ "seconds": 4.6
},
{
"guard": "direct seal authentication",
@@ -714,10 +704,10 @@
"test": "TestIDDirectSealedChallenge/tampered",
"result": "killed",
"failures": [
- "--- FAIL: TestIDDirectSealedChallenge (0.19s)",
- "--- FAIL: TestIDDirectSealedChallenge/tampered (0.19s)"
+ "--- FAIL: TestIDDirectSealedChallenge (0.23s)",
+ "--- FAIL: TestIDDirectSealedChallenge/tampered (0.23s)"
],
- "seconds": 2.68
+ "seconds": 2.72
},
{
"guard": "direct challenge binding",
@@ -725,10 +715,10 @@
"test": "TestIDDirectSealedChallenge/mismatch",
"result": "killed",
"failures": [
- "--- FAIL: TestIDDirectSealedChallenge (0.59s)",
- "--- FAIL: TestIDDirectSealedChallenge/mismatch (0.58s)"
+ "--- FAIL: TestIDDirectSealedChallenge (0.25s)",
+ "--- FAIL: TestIDDirectSealedChallenge/mismatch (0.25s)"
],
- "seconds": 9.11
+ "seconds": 2.68
},
{
"guard": "direct expiry",
@@ -736,10 +726,10 @@
"test": "TestIDDirectSealedChallenge/expired",
"result": "killed",
"failures": [
- "--- FAIL: TestIDDirectSealedChallenge (0.55s)",
- "--- FAIL: TestIDDirectSealedChallenge/expired (0.55s)"
+ "--- FAIL: TestIDDirectSealedChallenge (0.25s)",
+ "--- FAIL: TestIDDirectSealedChallenge/expired (0.25s)"
],
- "seconds": 11.22
+ "seconds": 2.57
},
{
"guard": "direct maximum lifetime",
@@ -747,10 +737,10 @@
"test": "TestIDDirectSealedChallenge/future",
"result": "killed",
"failures": [
- "--- FAIL: TestIDDirectSealedChallenge (0.42s)",
- "--- FAIL: TestIDDirectSealedChallenge/future (0.42s)"
+ "--- FAIL: TestIDDirectSealedChallenge (0.24s)",
+ "--- FAIL: TestIDDirectSealedChallenge/future (0.24s)"
],
- "seconds": 17.78
+ "seconds": 2.55
},
{
"guard": "direct receipt replay",
@@ -758,11 +748,11 @@
"test": "TestIDDirectPasskey|TestIDDirectReceiptsBounded/restart",
"result": "killed",
"failures": [
- "--- FAIL: TestIDDirectPasskey (0.44s)",
- "--- FAIL: TestIDDirectReceiptsBounded (0.72s)",
- "--- FAIL: TestIDDirectReceiptsBounded/restart (0.72s)"
+ "--- FAIL: TestIDDirectPasskey (0.28s)",
+ "--- FAIL: TestIDDirectReceiptsBounded (0.35s)",
+ "--- FAIL: TestIDDirectReceiptsBounded/restart (0.35s)"
],
- "seconds": 17.8
+ "seconds": 4.64
},
{
"guard": "direct receipt expiry",
@@ -770,7 +760,7 @@
"test": "TestIDDirectReceiptsBounded/expiry",
"result": "survived",
"failures": [],
- "seconds": 16.23
+ "seconds": 3.21
},
{
"guard": "issuer signout form",
@@ -778,9 +768,9 @@
"test": "TestSignOutEndsTheCredentialSession",
"result": "killed",
"failures": [
- "--- FAIL: TestSignOutEndsTheCredentialSession (0.83s)"
+ "--- FAIL: TestSignOutEndsTheCredentialSession (0.47s)"
],
- "seconds": 13.19
+ "seconds": 2.95
},
{
"guard": "issuer signout auto step",
@@ -788,9 +778,9 @@
"test": "TestSignOutEndsTheCredentialSession",
"result": "killed",
"failures": [
- "--- FAIL: TestSignOutEndsTheCredentialSession (0.71s)"
+ "--- FAIL: TestSignOutEndsTheCredentialSession (0.57s)"
],
- "seconds": 8.39
+ "seconds": 3.99
},
{
"guard": "issuer signout no loop",
@@ -798,9 +788,9 @@
"test": "TestSignOutEndsTheCredentialSession",
"result": "killed",
"failures": [
- "--- FAIL: TestSignOutEndsTheCredentialSession (0.59s)"
+ "--- FAIL: TestSignOutEndsTheCredentialSession (0.46s)"
],
- "seconds": 8.72
+ "seconds": 3.52
},
{
"guard": "issuer signout autosubmit",
@@ -808,11 +798,11 @@
"test": "TestIDBrowserSignoutBothOrigins",
"result": "killed",
"failures": [
- "--- FAIL: TestIDBrowserSignoutBothOrigins (57.14s)",
- "--- FAIL: TestIDBrowserSignoutBothOrigins/https://example.org/scripts=true (25.52s)",
- "--- FAIL: TestIDBrowserSignoutBothOrigins/https://directory.example.test/scripts=true (23.53s)"
+ "--- FAIL: TestIDBrowserSignoutBothOrigins (44.74s)",
+ "--- FAIL: TestIDBrowserSignoutBothOrigins/https://example.org/scripts=true (21.13s)",
+ "--- FAIL: TestIDBrowserSignoutBothOrigins/https://directory.example.test/scripts=true (20.98s)"
],
- "seconds": 66.68
+ "seconds": 48.87
},
{
"guard": "issuer site classification",
@@ -820,9 +810,9 @@
"test": "TestCredentialSignoutUsesIssuerSite",
"result": "killed",
"failures": [
- "--- FAIL: TestCredentialSignoutUsesIssuerSite (0.39s)"
+ "--- FAIL: TestCredentialSignoutUsesIssuerSite (0.35s)"
],
- "seconds": 5.22
+ "seconds": 2.36
},
{
"guard": "issuer scheme classification",
@@ -830,9 +820,9 @@
"test": "TestCredentialSignoutUsesIssuerSite",
"result": "killed",
"failures": [
- "--- FAIL: TestCredentialSignoutUsesIssuerSite (0.28s)"
+ "--- FAIL: TestCredentialSignoutUsesIssuerSite (0.34s)"
],
- "seconds": 2.61
+ "seconds": 2.35
},
{
"guard": "recovery session marked",
@@ -840,9 +830,9 @@
"test": "TestIDRecoverySigninNotice$",
"result": "killed",
"failures": [
- "--- FAIL: TestIDRecoverySigninNotice (0.33s)"
+ "--- FAIL: TestIDRecoverySigninNotice (0.22s)"
],
- "seconds": 3.19
+ "seconds": 2.28
},
{
"guard": "anonymous begin stores no receipt",
@@ -852,7 +842,7 @@
"failures": [
"--- FAIL: TestIDDirectFloodLeavesGatedCapacity (0.26s)"
],
- "seconds": 5.3
+ "seconds": 2.24
},
{
"guard": "recovery notice log privacy",
@@ -860,9 +850,9 @@
"test": "TestIDRecoverySigninNoticeFailurePrivacy",
"result": "killed",
"failures": [
- "--- FAIL: TestIDRecoverySigninNoticeFailurePrivacy (0.34s)"
+ "--- FAIL: TestIDRecoverySigninNoticeFailurePrivacy (0.19s)"
],
- "seconds": 4.2
+ "seconds": 2.19
},
{
"guard": "skip needs sealed start site",
@@ -870,9 +860,9 @@
"test": "TestIDStartSiteIsOnlyTakenAtAuthorize",
"result": "killed",
"failures": [
- "--- FAIL: TestIDStartSiteIsOnlyTakenAtAuthorize (0.72s)"
+ "--- FAIL: TestIDStartSiteIsOnlyTakenAtAuthorize (0.29s)"
],
- "seconds": 3.46
+ "seconds": 2.17
},
{
"guard": "skip needs resume from here",
@@ -880,12 +870,12 @@
"test": "TestIDSkipNeedsTopLevelResumeFromHere",
"result": "killed",
"failures": [
- "--- FAIL: TestIDSkipNeedsTopLevelResumeFromHere (1.48s)",
- "--- FAIL: TestIDSkipNeedsTopLevelResumeFromHere/cross-site (0.51s)",
- "--- FAIL: TestIDSkipNeedsTopLevelResumeFromHere/missing (0.49s)",
- "--- FAIL: TestIDSkipNeedsTopLevelResumeFromHere/iframe (0.48s)"
+ "--- FAIL: TestIDSkipNeedsTopLevelResumeFromHere (1.01s)",
+ "--- FAIL: TestIDSkipNeedsTopLevelResumeFromHere/cross-site (0.29s)",
+ "--- FAIL: TestIDSkipNeedsTopLevelResumeFromHere/missing (0.31s)",
+ "--- FAIL: TestIDSkipNeedsTopLevelResumeFromHere/iframe (0.41s)"
],
- "seconds": 4.86
+ "seconds": 2.94
},
{
"guard": "start site read at authorize",
@@ -893,10 +883,10 @@
"test": "TestIDContinueWhenStartIsNotProvablyHere/missing",
"result": "killed",
"failures": [
- "--- FAIL: TestIDContinueWhenStartIsNotProvablyHere (0.50s)",
- "--- FAIL: TestIDContinueWhenStartIsNotProvablyHere/missing (0.50s)"
+ "--- FAIL: TestIDContinueWhenStartIsNotProvablyHere (0.37s)",
+ "--- FAIL: TestIDContinueWhenStartIsNotProvablyHere/missing (0.37s)"
],
- "seconds": 3.4
+ "seconds": 2.61
},
{
"guard": "cross-site start keeps Continue",
@@ -904,10 +894,10 @@
"test": "TestIDContinueWhenStartIsNotProvablyHere/cross-site",
"result": "killed",
"failures": [
- "--- FAIL: TestIDContinueWhenStartIsNotProvablyHere (0.53s)",
- "--- FAIL: TestIDContinueWhenStartIsNotProvablyHere/cross-site (0.52s)"
+ "--- FAIL: TestIDContinueWhenStartIsNotProvablyHere (0.44s)",
+ "--- FAIL: TestIDContinueWhenStartIsNotProvablyHere/cross-site (0.44s)"
],
- "seconds": 4.6
+ "seconds": 2.45
},
{
"guard": "unknown start site keeps Continue",
@@ -915,11 +905,11 @@
"test": "TestIDContinueWhenStartIsNotProvablyHere/(unknown|empty)",
"result": "killed",
"failures": [
- "--- FAIL: TestIDContinueWhenStartIsNotProvablyHere (0.96s)",
- "--- FAIL: TestIDContinueWhenStartIsNotProvablyHere/unknown (0.50s)",
- "--- FAIL: TestIDContinueWhenStartIsNotProvablyHere/empty (0.46s)"
+ "--- FAIL: TestIDContinueWhenStartIsNotProvablyHere (0.63s)",
+ "--- FAIL: TestIDContinueWhenStartIsNotProvablyHere/empty (0.34s)",
+ "--- FAIL: TestIDContinueWhenStartIsNotProvablyHere/unknown (0.29s)"
],
- "seconds": 3.52
+ "seconds": 2.5
},
{
"guard": "repeated metadata keeps Continue",
@@ -927,12 +917,12 @@
"test": "TestIDContinueWhenStartIsNotProvablyHere/duplicated",
"result": "killed",
"failures": [
- "--- FAIL: TestIDContinueWhenStartIsNotProvablyHere (1.47s)",
- "--- FAIL: TestIDContinueWhenStartIsNotProvablyHere/duplicated-mode (0.44s)",
- "--- FAIL: TestIDContinueWhenStartIsNotProvablyHere/duplicated-dest (0.56s)",
- "--- FAIL: TestIDContinueWhenStartIsNotProvablyHere/duplicated (0.47s)"
+ "--- FAIL: TestIDContinueWhenStartIsNotProvablyHere (0.93s)",
+ "--- FAIL: TestIDContinueWhenStartIsNotProvablyHere/duplicated-mode (0.28s)",
+ "--- FAIL: TestIDContinueWhenStartIsNotProvablyHere/duplicated-dest (0.27s)",
+ "--- FAIL: TestIDContinueWhenStartIsNotProvablyHere/duplicated (0.38s)"
],
- "seconds": 3.7
+ "seconds": 2.95
},
{
"guard": "start must be a navigation",
@@ -940,10 +930,10 @@
"test": "TestIDContinueWhenStartIsNotProvablyHere/no-cors",
"result": "killed",
"failures": [
- "--- FAIL: TestIDContinueWhenStartIsNotProvablyHere (0.46s)",
- "--- FAIL: TestIDContinueWhenStartIsNotProvablyHere/no-cors (0.46s)"
+ "--- FAIL: TestIDContinueWhenStartIsNotProvablyHere (0.30s)",
+ "--- FAIL: TestIDContinueWhenStartIsNotProvablyHere/no-cors (0.30s)"
],
- "seconds": 3.21
+ "seconds": 2.76
},
{
"guard": "start must be top-level",
@@ -951,10 +941,10 @@
"test": "TestIDContinueWhenStartIsNotProvablyHere/iframe",
"result": "killed",
"failures": [
- "--- FAIL: TestIDContinueWhenStartIsNotProvablyHere (0.47s)",
- "--- FAIL: TestIDContinueWhenStartIsNotProvablyHere/iframe (0.47s)"
+ "--- FAIL: TestIDContinueWhenStartIsNotProvablyHere (0.53s)",
+ "--- FAIL: TestIDContinueWhenStartIsNotProvablyHere/iframe (0.53s)"
],
- "seconds": 5.26
+ "seconds": 3.01
},
{
"guard": "speculative start keeps Continue",
@@ -962,10 +952,10 @@
"test": "TestIDContinueWhenStartIsNotProvablyHere/prefetch",
"result": "killed",
"failures": [
- "--- FAIL: TestIDContinueWhenStartIsNotProvablyHere (0.66s)",
- "--- FAIL: TestIDContinueWhenStartIsNotProvablyHere/prefetch (0.66s)"
+ "--- FAIL: TestIDContinueWhenStartIsNotProvablyHere (0.43s)",
+ "--- FAIL: TestIDContinueWhenStartIsNotProvablyHere/prefetch (0.43s)"
],
- "seconds": 4.45
+ "seconds": 3.25
},
{
"guard": "signed in after flow start",
@@ -973,10 +963,10 @@
"test": "TestIDSignedInBeforeFlowKeepsContinue/earlier_sign-in",
"result": "killed",
"failures": [
- "--- FAIL: TestIDSignedInBeforeFlowKeepsContinue (0.78s)",
- "--- FAIL: TestIDSignedInBeforeFlowKeepsContinue/earlier_sign-in (0.78s)"
+ "--- FAIL: TestIDSignedInBeforeFlowKeepsContinue (0.47s)",
+ "--- FAIL: TestIDSignedInBeforeFlowKeepsContinue/earlier_sign-in (0.47s)"
],
- "seconds": 8.15
+ "seconds": 3.03
},
{
"guard": "signed in with a new session",
@@ -984,10 +974,10 @@
"test": "TestIDSignedInBeforeFlowKeepsContinue/same_session",
"result": "killed",
"failures": [
- "--- FAIL: TestIDSignedInBeforeFlowKeepsContinue (0.74s)",
- "--- FAIL: TestIDSignedInBeforeFlowKeepsContinue/same_session (0.74s)"
+ "--- FAIL: TestIDSignedInBeforeFlowKeepsContinue (0.40s)",
+ "--- FAIL: TestIDSignedInBeforeFlowKeepsContinue/same_session (0.40s)"
],
- "seconds": 6.71
+ "seconds": 3.22
},
{
"guard": "arrival session recorded",
@@ -995,10 +985,10 @@
"test": "TestIDSignedInBeforeFlowKeepsContinue/same_session",
"result": "killed",
"failures": [
- "--- FAIL: TestIDSignedInBeforeFlowKeepsContinue (0.86s)",
- "--- FAIL: TestIDSignedInBeforeFlowKeepsContinue/same_session (0.86s)"
+ "--- FAIL: TestIDSignedInBeforeFlowKeepsContinue (0.38s)",
+ "--- FAIL: TestIDSignedInBeforeFlowKeepsContinue/same_session (0.38s)"
],
- "seconds": 6.96
+ "seconds": 3.0
},
{
"guard": "signed in with a gesture time",
@@ -1006,10 +996,10 @@
"test": "TestIDSignedInBeforeFlowKeepsContinue/passive_keymail",
"result": "killed",
"failures": [
- "--- FAIL: TestIDSignedInBeforeFlowKeepsContinue (0.67s)",
- "--- FAIL: TestIDSignedInBeforeFlowKeepsContinue/passive_keymail (0.67s)"
+ "--- FAIL: TestIDSignedInBeforeFlowKeepsContinue (0.37s)",
+ "--- FAIL: TestIDSignedInBeforeFlowKeepsContinue/passive_keymail (0.37s)"
],
- "seconds": 8.96
+ "seconds": 2.88
},
{
"guard": "signed in needs a start time",
@@ -1017,10 +1007,10 @@
"test": "TestIDSignedInBeforeFlowKeepsContinue/no_start_time",
"result": "killed",
"failures": [
- "--- FAIL: TestIDSignedInBeforeFlowKeepsContinue (0.63s)",
- "--- FAIL: TestIDSignedInBeforeFlowKeepsContinue/no_start_time (0.63s)"
+ "--- FAIL: TestIDSignedInBeforeFlowKeepsContinue (0.40s)",
+ "--- FAIL: TestIDSignedInBeforeFlowKeepsContinue/no_start_time (0.40s)"
],
- "seconds": 5.46
+ "seconds": 2.82
},
{
"guard": "replacement revokes sessions",
@@ -1028,9 +1018,9 @@
"test": "TestIDRecoveryReplacementRevokesEverything",
"result": "killed",
"failures": [
- "--- FAIL: TestIDRecoveryReplacementRevokesEverything (0.61s)"
+ "--- FAIL: TestIDRecoveryReplacementRevokesEverything (0.32s)"
],
- "seconds": 7.42
+ "seconds": 2.49
},
{
"guard": "replacement revokes passkey_credentials",
@@ -1038,9 +1028,9 @@
"test": "TestIDRecoveryReplacementRevokesEverything",
"result": "killed",
"failures": [
- "--- FAIL: TestIDRecoveryReplacementRevokesEverything (0.50s)"
+ "--- FAIL: TestIDRecoveryReplacementRevokesEverything (0.40s)"
],
- "seconds": 6.85
+ "seconds": 2.76
},
{
"guard": "replacement revokes passkey_recovery_codes",
@@ -1048,9 +1038,9 @@
"test": "TestIDRecoveryReplacementRevokesEverything",
"result": "killed",
"failures": [
- "--- FAIL: TestIDRecoveryReplacementRevokesEverything (0.50s)"
+ "--- FAIL: TestIDRecoveryReplacementRevokesEverything (0.25s)"
],
- "seconds": 8.86
+ "seconds": 2.59
},
{
"guard": "replacement revokes passkey_pending",
@@ -1058,9 +1048,9 @@
"test": "TestIDRecoveryReplacementRevokesEverything",
"result": "killed",
"failures": [
- "--- FAIL: TestIDRecoveryReplacementRevokesEverything (0.49s)"
+ "--- FAIL: TestIDRecoveryReplacementRevokesEverything (0.33s)"
],
- "seconds": 5.88
+ "seconds": 2.61
},
{
"guard": "replacement revokes passkey_challenges",
@@ -1068,9 +1058,9 @@
"test": "TestIDRecoveryReplacementRevokesEverything",
"result": "killed",
"failures": [
- "--- FAIL: TestIDRecoveryReplacementRevokesEverything (0.52s)"
+ "--- FAIL: TestIDRecoveryReplacementRevokesEverything (0.34s)"
],
- "seconds": 4.72
+ "seconds": 2.46
},
{
"guard": "replacement revokes home_id_ceremonies",
@@ -1078,9 +1068,9 @@
"test": "TestIDRecoveryReplacementRevokesEverything",
"result": "killed",
"failures": [
- "--- FAIL: TestIDRecoveryReplacementRevokesEverything (0.45s)"
+ "--- FAIL: TestIDRecoveryReplacementRevokesEverything (0.31s)"
],
- "seconds": 8.85
+ "seconds": 2.5
},
{
"guard": "replacement revokes home_id_recovery_proofs",
@@ -1088,8 +1078,8 @@
"test": "TestIDRecoveryReplacementRevokesEverything",
"result": "killed",
"failures": [
- "--- FAIL: TestIDRecoveryReplacementRevokesEverything (0.43s)"
+ "--- FAIL: TestIDRecoveryReplacementRevokesEverything (0.30s)"
],
- "seconds": 5.51
+ "seconds": 2.49
}
]
diff --git a/internal/home/continue_skip_test.go b/internal/home/continue_skip_test.go
index 0083224..33cffef 100644
--- a/internal/home/continue_skip_test.go
+++ b/internal/home/continue_skip_test.go
@@ -298,3 +298,28 @@ func TestIDSkippedContinueReplayAndBack(t *testing.T) {
t.Fatal("a replayed handoff signed the person in again", finish.Code)
}
}
+
+// Linking with the session the person arrived with (accepted since
+// 2026-11-19) is not a sign-in during the flow, so only rule (b) can skip
+// Continue: a cross-site link start still stops at it, a same-site one
+// hands off.
+func TestIDLinkWithArrivalSessionFollowsContinueRule(t *testing.T) {
+ for site, skip := range map[string]bool{"cross-site": false, "same-site": true} {
+ t.Run(site, func(t *testing.T) {
+ p := newExchangePair(t)
+ session := signInFully(t, p.credential, sealtest.CanaryAddress)
+ start := exchangeRequest(p.directory, "GET", directoryOrigin+handoff.StartPath+"?return_to=%2F%3Fteam%3Dblue", "", nil)
+ authorize := metadataRequest(p.credential.App, "GET", start.Header().Get("Location")+"&max_age=300", navigation(site), nil, session)
+ if authorize.Code != 303 {
+ t.Fatal("authorize", authorize.Code)
+ }
+ intent := namedCookie(t, authorize, assertionIntentCookie)
+ r := p.resume(navigation(site), intent, session)
+ if skip {
+ handedOff(t, p, r)
+ } else if !showsContinue(r) {
+ t.Fatal("a cross-site link start skipped Continue", r.Code)
+ }
+ })
+ }
+}
diff --git a/internal/home/exchange.go b/internal/home/exchange.go
index c7e3297..4cfbc54 100644
--- a/internal/home/exchange.go
+++ b/internal/home/exchange.go
@@ -146,7 +146,15 @@ func (a *App) handleAssertion(w http.ResponseWriter, r *http.Request) {
if c, err := r.Cookie(a.sessions.CookieName()); err == nil {
sameSession = intent.Previous != "" && sessions.HashToken(c.Value) == intent.Previous
}
- if intent.MaxAge != 0 && (sameSession || (intent.Started != 0 && authTime.Unix() < intent.Started) || !sessions.Fresh(session, time.Duration(intent.MaxAge)*time.Second, now) || authTime.After(now) || keymailWithoutGesture(session) || strings.Contains(session.Method, "recovery")) {
+ // A max_age request (linking, and the operator and directory fresh
+ // steps) takes an Oficina ID sign-in from the last max_age seconds in
+ // this browser, the session the person arrived with included (Paul's
+ // ruling, 2026-11-19; slice-1 spec step 2). The session is this
+ // browser's own cookie, and the intent, subject and nonce checks
+ // around this one still bind the result to this browser and this
+ // request. A Keymail session with no gesture time, a recovery sign-in
+ // and a future time never count.
+ if intent.MaxAge != 0 && (!sessions.Fresh(session, time.Duration(intent.MaxAge)*time.Second, now) || authTime.After(now) || keymailWithoutGesture(session) || strings.Contains(session.Method, "recovery")) {
http.Redirect(w, r, "/signin?return_to=%2Fauthorize%2Fresume", http.StatusSeeOther)
return
}
diff --git a/internal/home/id_exchange_test.go b/internal/home/id_exchange_test.go
index 297772e..0201788 100644
--- a/internal/home/id_exchange_test.go
+++ b/internal/home/id_exchange_test.go
@@ -17,14 +17,33 @@ import (
"amadan.net/rastrillo/rastrillo/migrate"
)
-func TestIDLinkAlwaysRequiresNewGesture(t *testing.T) {
+// Linking accepts an Oficina ID sign-in from the last five minutes in
+// this browser (Paul's ruling, 2026-11-19), including the one the person
+// arrived with, rather than forcing a brand-new one.
+func TestIDLinkAcceptsRecentSignInInThisBrowser(t *testing.T) {
p := newExchangePair(t)
session := signInFully(t, p.credential, sealtest.CanaryAddress)
_, intent := p.startFresh(t, session)
+ r := exchangeRequest(p.credential.App, "GET", Origin+"/authorize/resume", "", nil, intent, session)
+ // Accepted, and with no Fetch Metadata it stops at Continue, never an
+ // automatic handoff.
+ if !showsContinue(r) {
+ t.Fatal("a sign-in seconds old was refused for linking, or skipped Continue", r.Code, r.Header().Get("Location"))
+ }
+ p.mint(t, intent, session)
+}
+
+// Five minutes is the whole window: older sign-ins still go back to
+// sign-in, however the session came to be.
+func TestIDLinkRefusesSignInOlderThanWindow(t *testing.T) {
+ p := newExchangePair(t)
+ session := signInFully(t, p.credential, sealtest.CanaryAddress)
+ backdateCredential(t, p, time.Now().Add(-301*time.Second))
+ _, intent := p.startFresh(t, session)
for _, method := range []string{"GET", "POST"} {
r := exchangeRequest(p.credential.App, method, Origin+"/authorize/resume", Origin, nil, intent, session)
if r.Code != http.StatusSeeOther || !strings.HasPrefix(r.Header().Get("Location"), "/signin?") {
- t.Fatalf("%s reused existing session: %d", method, r.Code)
+ t.Fatalf("%s linked with a sign-in older than five minutes: %d", method, r.Code)
}
}
}
@@ -80,7 +99,8 @@ func TestIDLegacyRuntimeAppliesIdentitySchema(t *testing.T) {
signInFully(t, a, sealtest.CanaryAddress)
}
-func TestIDLinkRejectsProofBeforeTransactionStart(t *testing.T) {
+// A sign-in made before the link began, inside the window, now counts.
+func TestIDLinkAcceptsProofBeforeTransactionStart(t *testing.T) {
p := newExchangePair(t)
old := signInFully(t, p.credential, sealtest.CanaryAddress)
_, intent := p.startFresh(t, old)
@@ -88,10 +108,7 @@ func TestIDLinkRejectsProofBeforeTransactionStart(t *testing.T) {
if _, err := p.credential.db.Writer().Exec("UPDATE sessions SET auth_time=? WHERE token_hash=?", time.Now().Add(-30*time.Second).UTC().Format(time.RFC3339), sessions.HashToken(current.Value)); err != nil {
t.Fatal(err)
}
- r := exchangeRequest(p.credential.App, "POST", Origin+"/authorize/resume", Origin, nil, intent, current)
- if r.Code != 303 || !strings.HasPrefix(r.Header().Get("Location"), "/signin?") {
- t.Fatal("otherwise fresh proof predating link start was accepted")
- }
+ p.mint(t, intent, current)
}
func TestIDLinkRejectsPassiveMintedSession(t *testing.T) {
diff --git a/internal/home/keymail_fresh_test.go b/internal/home/keymail_fresh_test.go
index 8129cd9..f03314f 100644
--- a/internal/home/keymail_fresh_test.go
+++ b/internal/home/keymail_fresh_test.go
@@ -278,7 +278,8 @@ func TestOrdinaryKeymailFallbackFormEmails(t *testing.T) {
// A Keymail session that reported no gesture time has nothing a step-up
// can credit: its At is when Home minted it, not when the person did
// anything. It must not pass a later fresh intent just for being new.
-// The control is the same flow with a reported gesture, which passes.
+// The control is the same session with a reported gesture seconds ago,
+// which a fresh intent now accepts as it is (Paul's ruling, 2026-11-19).
func TestKeymailSessionWithoutGestureTimeIsNotFresh(t *testing.T) {
for name, gesture := range map[string]bool{"no gesture": false, "gesture": true} {
t.Run(name, func(t *testing.T) {
@@ -294,6 +295,12 @@ func TestKeymailSessionWithoutGestureTimeIsNotFresh(t *testing.T) {
}
_, intent := p.startFresh(t, session)
resume := exchangeRequest(p.credential.App, "GET", Origin+"/authorize/resume", "", nil, intent, session)
+ if gesture {
+ if resume.Code != 200 {
+ t.Fatal("a Keymail gesture seconds old was refused", resume.Code)
+ }
+ return
+ }
if resume.Code != 303 || resume.Header().Get("Location") != "/signin?return_to=%2Fauthorize%2Fresume" || strings.Contains(resume.Body.String(), `name="assertion"`) {
t.Fatal("a Keymail session with no gesture time satisfied a step-up", resume.Code)
}
diff --git a/scripts/check-id-mutations.py b/scripts/check-id-mutations.py
index b06482c..99f2ebd 100755
--- a/scripts/check-id-mutations.py
+++ b/scripts/check-id-mutations.py
@@ -12,8 +12,7 @@ HOME = ROOT / "internal/home"
# Guard, file, exact source, replacement, test expression.
CASES = [
("continue gesture", "exchange.go", "if r.Method == http.MethodGet && !signedInDuringFlow", "if false && r.Method == http.MethodGet && !signedInDuringFlow", "TestIDContinueBeforeMinting"),
- ("link new session", "exchange.go", "sameSession ||", "(sameSession && false) ||", "TestIDLinkAlwaysRequiresNewGesture"),
- ("link transaction start", "exchange.go", "authTime.Unix() < intent.Started", "authTime.Unix() < 0", "TestIDLinkRejectsProofBeforeTransactionStart"),
+ ("link five-minute window", "exchange.go", "(!sessions.Fresh(session, time.Duration(intent.MaxAge)*time.Second, now) ||", "(false ||", "TestIDLinkRefusesSignInOlderThanWindow"),
("passive Keymail issuance", "exchange.go", "|| keymailWithoutGesture(session)", "|| (false && keymailWithoutGesture(session))", "TestIDLinkRejectsPassiveMintedSession"),
("live issuance session", "exchange.go", "session, _, err := a.idSession(tx, r, now.Unix())", "session, _ := sessions.Current(r)", "TestIDRevokedCachedSessionCannotMint"),
("audience", "exchange.go", "Audience: target", "Audience: a.origins.Credential", "TestHomeDirectoryExchangeAndPrivacy"),
@@ -120,7 +119,7 @@ CASES += [
("start must be top-level", "exchange.go", 'headerOnce(r, "Sec-Fetch-Dest") != "document"', "false", "TestIDContinueWhenStartIsNotProvablyHere/iframe"),
("speculative start keeps Continue", "exchange.go", 'len(r.Header.Values("Sec-Purpose")) != 0', "false", "TestIDContinueWhenStartIsNotProvablyHere/prefetch"),
("signed in after flow start", "exchange.go", "authTime.Unix() >= intent.Started &&", "", "TestIDSignedInBeforeFlowKeepsContinue/earlier_sign-in"),
- ("signed in with a new session", "exchange.go", "!sameSession && authTime.Unix() >= intent.Started", "authTime.Unix() >= intent.Started", "TestIDSignedInBeforeFlowKeepsContinue/same_session"),
+ ("signed in with a new session", "exchange.go", "!sameSession && authTime.Unix() >= intent.Started", "(!sameSession || true) && authTime.Unix() >= intent.Started", "TestIDSignedInBeforeFlowKeepsContinue/same_session"),
("arrival session recorded", "exchange.go", "intent.Previous = sessions.HashToken(c.Value)", 'intent.Previous = sessions.HashToken(c.Value + "x")', "TestIDSignedInBeforeFlowKeepsContinue/same_session"),
("signed in with a gesture time", "exchange.go", "intent.Started && !keymailWithoutGesture(session)", "intent.Started", "TestIDSignedInBeforeFlowKeepsContinue/passive_keymail"),
("signed in needs a start time", "exchange.go", "intent.Started > 0 && !sameSession", "!sameSession", "TestIDSignedInBeforeFlowKeepsContinue/no_start_time"),