Tangled private repositories keep owner declarations and social attestations in Pocket instead of the public PDS, require viewer tokens on Bobbin reads, and authenticate Knot and Spindle reads per repository. Until now, tg assumed every repository was public, so creating, viewing, cloning, or working in private repositories failed or risked writing private metadata to the public PDS.
This change adds private repository support across tg and tgmcp:
tg repo create --privatechecks that the target Knot advertisesknot-private-repos, provisions a private repository, writes the owner declaration to Pocket, refreshes the indexer lease, and waits for Bobbin to index the repository.tg repo edit --visibility publicpublishes a private repository permanently (defaultingcontributionPolicytoanyoneunless--contribution-policyis set), migrates the declaration from Pocket to the public PDS, and supports resuming if interrupted after the manifest update. Setting--spindleon a private repository registers it on the Spindle withorg.tangled.ci.declareRepo.tg repo forkadds--private, always forks private repositories privately, and usesorg.tangled.repo.mintLink(knot-link) for cross-Knot private forks.tg repo deleteremoves private repositories from the Knot before removing the Pocket declaration, with recovery if a previous delete left a dangling Pocket declaration.- Bobbin GET reads attach a cached
x-tangled-viewertoken scoped to the active account (refusing cross-origin redirects and avoiding destructive OAuth scope resets on older sessions). Private Knot reads,pr watchhistory,pr checkout, HTTPS clones, and Spindle reads authenticate with the corresponding repository-scoped tokens, and private social attestations write and retry in Pocket only. - Updates
indigotoc6fa5eee6ba5, syncsinternal/tangledlextotangled.org/core9692f4b, adds matching MCP flags and models intgmcp, and updates the configuration, authentication, and PR watch cookbook docs.
Existing OAuth sessions need tg auth login again to grant the new private repository, Pocket, viewer token, and HTTPS clone scopes.