Skip to content

Public repo sharing (Phases 126-127)#113

Merged
jsilvanus merged 4 commits into
mainfrom
claude/execute-plan-next-track-zq8gnm
Jun 23, 2026
Merged

Public repo sharing (Phases 126-127)#113
jsilvanus merged 4 commits into
mainfrom
claude/execute-plan-next-track-zq8gnm

Conversation

@jsilvanus

Copy link
Copy Markdown
Owner

Summary

  • Implements Phases 126-127 (public-repo-sharing track): repos can be flagged public/private (gitsema repos visibility <repo-id> public|private), auto-granting read access to non-owner callers who index an existing public repo, gated by a first-index allow-list (auth.allowPublicAutoIndex/GITSEMA_PUBLIC_AUTO_INDEX) and a per-user re-index throttle (auth.minReindexIntervalSeconds/GITSEMA_MIN_REINDEX_INTERVAL_SECONDS).
  • Fixes a registry-DB/active-DB foreign-key mismatch in the dual-write path (ownerUserId is only ever written to the active DB, never to the cwd-independent registry DB, since the latter has no matching users row to satisfy its own FK constraint).
  • /simplify cleanup pass: hoists a duplicated non-owner-on-public-repo guard into a single named boolean, adds TTL cleanup for the re-index throttle map (matching the existing _jobs map pattern), and extracts repeated test fixture setup into a shared helper.
  • Adds a CLAUDE.md rule requiring /simplify passes to log any skipped/deferred findings into docs/feature-ideas.md instead of losing them to chat history, and backfills two such findings from this pass (rate-limiter unification, policy-extraction).

Test plan

  • pnpm build — clean
  • pnpm test — full suite passes (1315 passed, 22 skipped)
  • Doc-maintenance checklist completed: docs/features.md, README.md, docs/PLAN.md (phase marked complete with deviation notes), docs/parity.md, .changeset/public-repo-sharing.md

Co-Authored-By: Claude Sonnet 4.6 [email protected]

https://claude.ai/code/session_01BYNogpqPb8oyTF3B5Ebu5p


Generated by Claude Code

claude added 3 commits June 23, 2026 12:11
…eader, first-index gate, refresh throttle)

Adds repos.visibility/owner_user_id and repo_grants.source columns, a
gitsema repos visibility CLI command, and registration-flow logic in
POST /api/v1/remote/index for auto-granting read access on public repos,
gated by auth.allowPublicAutoIndex and throttled by
auth.minReindexIntervalSeconds. Fixes a registry-DB/active-DB FK mismatch
discovered during testing: registry.db (clone/index-path bookkeeping) and
the active session DB (auth/grants) are independent SQLite files with
separate FK-enforced users tables, so ownerUserId is now mirrored only into
the active DB rather than written to both.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BYNogpqPb8oyTF3B5Ebu5p
…fixtures

Hoist the duplicated non-owner-on-public-repo guard into a single named
boolean, add TTL cleanup for the reindex throttle map (matching the
existing jobs map pattern), and extract repeated test fixture setup into
a shared helper.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BYNogpqPb8oyTF3B5Ebu5p
…as.md

Adds a CLAUDE.md rule so skipped /simplify findings aren't lost to chat
history, and backfills the two deferred findings from the Phase 126/127
public-repo-sharing simplify pass.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BYNogpqPb8oyTF3B5Ebu5p
@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.

…ronment

Records that this environment lacks send_later and that CI success
doesn't trigger a webhook, so PR-watching sessions need a manual
~7-minute poll loop instead.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BYNogpqPb8oyTF3B5Ebu5p
@jsilvanus jsilvanus merged commit c0b059a 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