Skip to content

Design + schedule: multi-tenant auth, public-repo sharing, locked model sets#110

Merged
jsilvanus merged 5 commits into
mainfrom
claude/whatnext-planning-n0bndq
Jun 23, 2026
Merged

Design + schedule: multi-tenant auth, public-repo sharing, locked model sets#110
jsilvanus merged 5 commits into
mainfrom
claude/whatnext-planning-n0bndq

Conversation

@jsilvanus

Copy link
Copy Markdown
Owner

Summary

  • Designs and schedules three related multi-tenancy/access-control design docs, each grounded in current source code rather than the originating feature-ideas.md assumptions:
    • docs/multi-tenant-auth-plan.md — user accounts, sessions/API keys, orgs (incl. auto-provisioned personal groups), per-repo/per-branch grants, SSO linking, audit log (Phases 122–125).
    • docs/public-repo-sharing-plan.mdrepos.visibility flag, attach-as-reader auto-grants, first-index gate, refresh throttle (Phases 126–127, depends on 122–123). Note: existing repoRegistry.ts already dedupes registrations by normalized URL, so this scopes to access control only, not storage dedup.
    • docs/locked-model-set-plan.md — multi-profile embedding serving, admin-gated enabled sets, never-persisted per-request BYOK for narrator/guide (Phases 128–130). Note: today's embedding provider is a single process-wide singleton with no per-request override, so "locking" required new multi-profile architecture first.
  • Schedules all three docs into docs/PLAN.md as new Tracks (Phases 122–130), following the file's existing Track/table conventions, and cross-links each design doc's header to its assigned phase numbers.
  • Updates docs/feature-ideas.md pointers ("Refined into:") for the two ideas that graduated into design docs this round.

Test plan

  • Docs-only change; no code touched.
  • Verified docs/PLAN.md insertion point and phase numbering (next free number after 121) via grep -n "^### Phase" docs/PLAN.md.
  • Verified design docs' research claims against current source (repoRegistry.ts dedup, resolveModels() singleton, embed_config multi-model support) — citations included inline in each doc's §2.

🤖 Generated with Claude Code

https://claude.ai/code/session_013QsKVsfa7BwEHzrfraz4MZ


Generated by Claude Code

claude added 5 commits June 22, 2026 21:23
…g self-service

Refines the gitsema-side ("Semahub Layer 1") portion of the Semahub idea into
its own design doc, scoping out the SaaS-specific signup/billing work that
stays a separate project.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013QsKVsfa7BwEHzrfraz4MZ
…-member orgs

Extends multi-tenant-auth-plan.md with the personal-group concept (GitHub-style
auto-created one-member org per user), gated by a new auth.personalGroups config
key, with default repo placement and a move-to-org mechanism for promoting solo
repos into team orgs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013QsKVsfa7BwEHzrfraz4MZ
Captures the cost/abuse concern of multiple users separately indexing the
same public repo on a shared server, as a distinct undesigned idea adjacent
to the multi-tenant auth work.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013QsKVsfa7BwEHzrfraz4MZ
- feature-ideas.md: add "Superadmin-Locked Model Set" idea (server-wide
  embedding/narrator model allowlist with BYOK override and org-level
  narrowing), dependent on the multi-tenant-auth-plan role model.
- Promote the access-control half of "Shared/Deduplicated Indexing for
  Public Repos" into docs/public-repo-sharing-plan.md. Research showed the
  storage/clone-duplication concern is already solved by the existing
  repoRegistry dedup-by-URL and incremental blob-hash dedup; the real gap
  is a visibility flag, auto-granted reader access, and abuse-resistant
  first-index gating. Cross-repo blob-level dedup for forks stays in
  feature-ideas.md as a separate, undesigned, larger idea.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013QsKVsfa7BwEHzrfraz4MZ
… designs into PLAN.md

Adds three new tracks (Phases 122-130) scheduling the three draft design
docs into the roadmap, and cross-links each doc's header to its assigned
phase numbers.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013QsKVsfa7BwEHzrfraz4MZ
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@jsilvanus jsilvanus merged commit 1677d57 into main Jun 23, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants