Title: Seitan V2 (P6.1): check the Keybase server side, old-style invites, and a real accept before P6.3 · Issue #194 · developing-today/code · GitHub
Open Graph Title: Seitan V2 (P6.1): check the Keybase server side, old-style invites, and a real accept before P6.3 · Issue #194 · developing-today/code
X Title: Seitan V2 (P6.1): check the Keybase server side, old-style invites, and a real accept before P6.3 · Issue #194 · developing-today/code
Description: Phase 6, step P6.1 (Seitan V2) has an open item from the Keybase admin path. It is not blocked by it: the local rules (expiry, single use, revocation, freshness) are implemented and tested. This item must be settled before P6.3 and P6.4 ...
Open Graph Description: Phase 6, step P6.1 (Seitan V2) has an open item from the Keybase admin path. It is not blocked by it: the local rules (expiry, single use, revocation, freshness) are implemented and tested. This it...
X Description: Phase 6, step P6.1 (Seitan V2) has an open item from the Keybase admin path. It is not blocked by it: the local rules (expiry, single use, revocation, freshness) are implemented and tested. This it...
Opengraph URL: https://github.com/developing-today/code/issues/194
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Seitan V2 (P6.1): check the Keybase server side, old-style invites, and a real accept before P6.3","articleBody":"Phase 6, step P6.1 (Seitan V2) has an open item from the Keybase admin path. It is not blocked by it: the local rules (expiry, single use, revocation, freshness) are implemented and tested. This item must be settled before P6.3 and P6.4 (invite events and links) ship, and before the e2e invite and accept test.\n\nBranch `p6-seitan` (not pushed), commit `3eafe3b3` (`pkgs/id/src/seitan/`).\n\n## Verified by reading keybase/client (master, 2026-10-12)\n\n- Accept message: `SigPayload` in `go/teams/seitan_v2.go` has the fields `stage`, `uid`, `eldest_seqno`, `ctime`, `invite_id`, `version`, in that order. Our `accept::message` matches.\n- Encoding: `kbcrypto.CodecHandle()` sets only `WriteExt`. `keybase/go-codec` writes positive integers in their smallest form and strings as fixstr below 32 bytes, then str8. Our golden test assumes the same.\n- Signature: `kbcrypto.NaclSigningKeyPrivate.Sign` is plain `ed25519.Sign` over the payload, with no domain prefix. Keybase verifies with `ed25519.Verify`. We verify strictly, which accepts a subset of what Keybase accepts. Honest signers are unaffected.\n- `ctime` unit: V2 is milliseconds (`handler.go`, \"For V2 this is ms since the epoch\"). V1 and invite links are seconds.\n- Admin V2 check: `verifySeitanSingleV2` (`go/teams/handler.go`) verifies the signature over the message rebuilt from the server-supplied `UnixCTime`. It has no freshness check on `ctime`.\n\n## Not verified: what must be checked\n\n1. **Server side (closed source).** The `team/seitan_v2` endpoint receives `sig`, `now`, and `invite_id`, and forwards `UnixCTime` to the admin's handler. The signature covers `ctime`, so the server cannot alter it without failing the check. Still unknown: what the server does with a withheld or replayed accept, and whether it keeps any state that the admin relies on. This cannot be checked from the client repo.\n2. **Keybase's own V2 invites are old-style.** `Team.InviteSeitanV2` (`go/teams/teams.go`) creates an `SCTeamInvite` with only type, name, and ID. `IsNewStyleInvite` is `invite.MaxUses != nil` (`go/teams/chain.go`), so the admin path does not check expiry or a use count for these invites. `CanConsumeInvite` and `ConsumeInviteByID` (`go/teams/transactions.go`) check only the completed-invite marker within one transaction. Expiry and single use in our design are our rules, not Keybase's. Still to check: how a V2 invite stays single-use across transactions (the chain's stored state). Until that is settled, Keybase must not be cited as the reference for single use or expiry.\n3. **No accept sample from a real client.** No Keybase test vector covers an accept or a signed accept. Capture one accept (`uid`, `eldest_seqno`, `ctime`, `invite_id`, and the signature) from a real Keybase client and check that `seitan::accept::verify` accepts its bytes. This is the only check of the accept bytes beyond the source reading.\n4. **V3 (invite links).** The invite-link path (`verifySeitanSingleInvitelink`, seconds-based `ctime`, AKey) is out of scope for P6.1 and is not checked here.\n\n## What the code assumes until these are checked\n\n- The accept message is Keybase's field set and encoding, as read above.\n- Expiry and single use are local rules, enforced by the admin's node on its own invite state, not by Keybase.\n- The freshness window (N23) is a local rule, not part of the accept bytes.\n\nReference: the S9 spike `doc/2026-10-11T03-44-33Z_design_groups_events_delegation/spikes/s9-seitan/RESULTS.md`, and the phase record `doc/2026-10-12T19-11-31Z_phase_6_invites_pull_cli/`.\n\n## Acceptance criteria\n\n- A real Keybase client accept sample (uid, eldest_seqno, ctime, invite_id, signature) is captured and `seitan::accept::verify` is shown to accept its bytes (golden test added).\n- The single-use question for old-style V2 invites across transactions is settled from keybase/client chain state, or Keybase is explicitly no longer cited as the reference for single use/expiry.\n- The server-side unknowns (withheld/replayed accepts, server state) are documented as accepted unknowns with a stated rationale, since the closed-source endpoint cannot be checked from the client repo.\n- This item is closed out before P6.3/P6.4 (invite events and links) ship, per the body's constraint.\n\n\n\n\u003c!-- hands:v1 kind=interactive-login action=\"Sign in to a Keybase client on this laptop with authorized team access so I can capture a real accept.\" -->\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-12T19:31:22Z","url":"https://github.com/developing-today/code/issues/194"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:325ed43a-2675-f328-ef4b-479a48c44e63 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CADE:0DF6:7CA2A5:A26326:6B062C24 |
| html-safe-nonce | c01c3d183255c97faac98b17112e6a23922ccdbdc4a862222de79822cc6bd645 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQURFOjBERjY6N0NBMkE1OkEyNjMyNjo2QjA2MkMyNCIsInZpc2l0b3JfaWQiOiIzOTY4MjAyNTkxMDI4MjU5ODc2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 35367902ac8db0c8fbe6acea2efade7156f4cf7b3d338f7892a85a8abe0f564b |
| hovercard-subject-tag | issue:5819342637 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/194/issue_layout |
| twitter:image | https://opengraph.githubassets.com/801e45b15724c7705c0d1968ad36f8694171f0688650f84c408cfcaf11ce214d/developing-today/code/issues/194 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/801e45b15724c7705c0d1968ad36f8694171f0688650f84c408cfcaf11ce214d/developing-today/code/issues/194 |
| og:image:alt | Phase 6, step P6.1 (Seitan V2) has an open item from the Keybase admin path. It is not blocked by it: the local rules (expiry, single use, revocation, freshness) are implemented and tested. This it... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7f961de5dd5c5d4aca24d33f8b3ffb3fb8b2ef53d0a4f32f01f0a790e512f6d3 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 494ea0bb1e0feef734a83e2628697647755e8864 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width