You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Team mode M1: A member signs in on the LAN and talks in a public Channel #4140
Agent: Claude Code (orchestrator, UI/UX) + Codex CLI (logic)
Task: claude/local/74a5ee4a-f6fe-4aab-870f-5e465b0b8474 (not a DSH Session); Codex thread added once started
Issue scope: M1 tracer — Team mode on, Owner password, member creation, member sign-in over HTTPS, Tobs-only member shell, public Channel browse/join, CLI parity
Branch: claude/4140-team-sign-in (stacked on claude/4139-human-context; Codex sub-branch codex/4140-logic)
Started: 2026-11-13 18:50 UTC
State: active (UI against the contract now; Codex logic starts after the M0 review)
M1 wire contract (agreed before parallel work; Claude = UI, Codex = logic)
Stacked on M0 (HumanContext, resolveInvocationHuman). Names below are binding; changes go through the claim comment first.
Identity on the wire
New DSH principal kind botharness-member: { kind: 'botharness-member', humanId, grantId } (merged into DSH PrincipalMap). The Owner keeps DSH's owner principal.
resolveInvocationHuman: owner → Owner context; botharness-member → that Human after re-checking the grant is live and the member active; anything else → refused.
A dsh-api-remote-access policy for botharness-member allows only the BotHarness bridge endpoints listed as member-callable; every DSH-native method is denied (remote-access/denied, reason no-allow).
Member web entry (HTTP, served by the device gateway; before a Peer exists)
GET /botharness-device/team/ — sign-in page (static bundle built from packages/client, by Claude), or the member shell when the cookie holds a live grant.
POST /botharness-device/team/sign-in{ username, password } → 200 { humanId, displayName, mustChangePassword } + HttpOnly; Secure; SameSite=Strict cookie bound to a new grant (device, Host, Human ID).
Refusals { code }: 401 credentials-invalid · 429 rate-limited (+retryAfterSeconds; per username and per IP) · 403 insecure-transport (non-loopback plain HTTP without the Owner's warned exception) · 403 team-mode-off · 403 member-suspended.
POST /botharness-device/team/sign-out → revokes that grant only.
Member calls after sign-in run through connection.createPeer({ principal }) + the API Gateway, so remote-access decides every call.
Bridge methods (flat names like humanNameSet; refusals are BridgeCallError codes, i.e. { ok: false, error: { code, message } })
[{ channelId, name, description?, memberCount, joined }]
publicChannelJoin { channelId }
member, Owner
channel-not-public, channel-not-found
channelPublicSet { channelId, public }
Owner
minimal M1 switch; M4 replaces it with public/roles/private
While mustChangePassword is true, every member call except teamMode and memberPasswordChange is refused password-change-required.
Persistence: humans (identity only), member_credentials (argon2id), member_grants (hashed token, revocable), Team mode settings; existing Paired Device grants bind to the Owner. Group Channels get a public flag, default off. Source Events record the speaking Human (M0).
CLI (deepseekbot, one JSON document, secrets via stdin/files only)
members list, members create --username <u> --display-name <n> --initial-password-file <path> (file written 0600; JSON reports the path, not the password)
Global --as <username>: the local Owner CLI evaluates the command through that member's Peer and policy; it never bypasses checks.
Client (Claude): Settings → Team mode (switch, Owner password, insecure-HTTP exception with warning, member URLs), Members (list, create, one-time password reveal), sign-in page, forced password change, member shell showing only the Tobs Client, public Channel browse/join; en + zh copy.
Codex logic task for this claim: codex/local/01a1d66a-9b89-73f0-8fc1-cfdd55c283cb on codex/4140-logic (gpt-6.1-sol, high), started after M0 review. M0 PR: #4158. Additional contract details now fixed: usernames match ^[a-z0-9][a-z0-9._-]{1,31}$; the pre-sign-in page is renderTeamSignInPage in packages/client/src/shared/team-sign-in-page.ts.
Contract change (agreed in review, before merge): the forced initial-password change moves to the pre-shell page.
GET /botharness-device/team/ with a live grant whose member has mustChangePassword serves renderTeamSignInPage({ ..., step: 'change-password', displayName }) instead of the shell.
New POST /botharness-device/team/password{ current, next } (member cookie, same transport rule) → 200; refusals 401 credentials-invalid, 400 password-weak, 409 password-reused, 429 rate-limited (+retryAfterSeconds).
teamMode.memberUrls lists only addresses another device can use (no loopback).
Reason: the in-shell gate raced the shell's first loads and rendered once per sidebar instance.
Activity
DoodleBears commentedon Nov 13, 2026
Agent work claim
claude/local/74a5ee4a-f6fe-4aab-870f-5e465b0b8474(not a DSH Session); Codex thread added once startedclaude/4140-team-sign-in(stacked onclaude/4139-human-context; Codex sub-branchcodex/4140-logic)M1 wire contract (agreed before parallel work; Claude = UI, Codex = logic)
Stacked on M0 (
HumanContext,resolveInvocationHuman). Names below are binding; changes go through the claim comment first.Identity on the wire
botharness-member:{ kind: 'botharness-member', humanId, grantId }(merged into DSHPrincipalMap). The Owner keeps DSH'sownerprincipal.resolveInvocationHuman:owner→ Owner context;botharness-member→ that Human after re-checking the grant is live and the member active; anything else → refused.dsh-api-remote-accesspolicy forbotharness-memberallows only the BotHarness bridge endpoints listed as member-callable; every DSH-native method is denied (remote-access/denied, reasonno-allow).Member web entry (HTTP, served by the device gateway; before a Peer exists)
GET /botharness-device/team/— sign-in page (static bundle built frompackages/client, by Claude), or the member shell when the cookie holds a live grant.POST /botharness-device/team/sign-in{ username, password }→200 { humanId, displayName, mustChangePassword }+HttpOnly; Secure; SameSite=Strictcookie bound to a new grant (device, Host, Human ID).Refusals
{ code }:401 credentials-invalid·429 rate-limited(+retryAfterSeconds; per username and per IP) ·403 insecure-transport(non-loopback plain HTTP without the Owner's warned exception) ·403 team-mode-off·403 member-suspended.POST /botharness-device/team/sign-out→ revokes that grant only.connection.createPeer({ principal })+ the API Gateway, so remote-access decides every call.Bridge methods (flat names like
humanNameSet; refusals areBridgeCallErrorcodes, i.e.{ ok: false, error: { code, message } })teamMode{ enabled, ownerPasswordSet, insecureHttpAllowed, memberUrls: string[], viewer: { humanId, kind: 'owner'|'member', displayName, mustChangePassword } }teamModeSet { enabled }owner-password-requiredteamOwnerPasswordSet { password, current? }password-weak(< 10 chars),credentials-invalidteamInsecureHttpSet { allowed }members[{ humanId, username, displayName, status: 'active'|'suspended', mustChangePassword, createdAt, owner }]memberCreate { username, displayName }{ member, initialPassword }(shown once, never stored in plain text) ·team-mode-off,username-invalid,username-takenmemberPasswordChange { current, next }credentials-invalid,password-weak,password-reused; clearsmustChangePasswordpublicChannels[{ channelId, name, description?, memberCount, joined }]publicChannelJoin { channelId }channel-not-public,channel-not-foundchannelPublicSet { channelId, public }public/roles/privatemustChangePasswordis true, every member call exceptteamModeandmemberPasswordChangeis refusedpassword-change-required.Persistence:
humans(identity only),member_credentials(argon2id),member_grants(hashed token, revocable), Team mode settings; existing Paired Device grants bind to the Owner. Group Channels get apublicflag, default off. Source Events record the speaking Human (M0).CLI (
deepseekbot, one JSON document, secrets via stdin/files only)team-mode status|on|off,team-mode owner-password --password-stdin,team-mode insecure-http on|off --confirmmembers list,members create --username <u> --display-name <n> --initial-password-file <path>(file written 0600; JSON reports the path, not the password)channels browse-public,channels join-public <id>,channels set-public <id> on|off--as <username>: the local Owner CLI evaluates the command through that member's Peer and policy; it never bypasses checks.Client (Claude): Settings → Team mode (switch, Owner password, insecure-HTTP exception with warning, member URLs), Members (list, create, one-time password reveal), sign-in page, forced password change, member shell showing only the Tobs Client, public Channel browse/join; en + zh copy.
DoodleBears commentedon Nov 13, 2026
Codex logic task for this claim:
codex/local/01a1d66a-9b89-73f0-8fc1-cfdd55c283cboncodex/4140-logic(gpt-6.1-sol, high), started after M0 review. M0 PR: #4158. Additional contract details now fixed: usernames match^[a-z0-9][a-z0-9._-]{1,31}$; the pre-sign-in page isrenderTeamSignInPageinpackages/client/src/shared/team-sign-in-page.ts.feat(client): show members only their own settings and Channel actions
test(client): keep Host configuration sections away from members
DoodleBears commentedon Nov 13, 2026
Contract change (agreed in review, before merge): the forced initial-password change moves to the pre-shell page.
GET /botharness-device/team/with a live grant whose member hasmustChangePasswordservesrenderTeamSignInPage({ ..., step: 'change-password', displayName })instead of the shell.POST /botharness-device/team/password{ current, next }(member cookie, same transport rule) →200; refusals401 credentials-invalid,400 password-weak,409 password-reused,429 rate-limited(+retryAfterSeconds).teamMode.memberUrlslists only addresses another device can use (no loopback).Reason: the in-shell gate raced the shell's first loads and rendered once per sidebar instance.
docs(verify): map the Team mode journey
Add member-scoped Team mode authentication and public Channels
10 remaining items
Merge Codex M1 pre-shell password change (reviewed)
fix(client): keep onboarding inert on member pages
Allow member-scoped composer recovery identities
Merge Codex M1 member allowlist module (reviewed)
fix(client): send only member-allowed calls from member pages
fix(client): name the other Human in channel previews
fix(client): keep Team settings consistent after failures
Harden Team mode recovery, credential changes and gateway admission
Merge Codex M1 review fixes (reviewed)
DoodleBears commentedon Nov 14, 2026
Agent work outcome
claude/local/74a5ee4a-f6fe-4aab-870f-5e465b0b8474,codex/local/01a1d66a-9b89-73f0-8fc1-cfdd55c283cbfeat(client): Team mode settings, member sign-in page and public Chan…
fix(client): match channel casing in Team strings
Merge M0 (BotHarness#4158) into the M1 slice