abhigyanpatwari/GitNexus · warning

[group/sync] manifest link

Error message

[group/sync] manifest link ${link.type}:${link.contract} references repos not in config.repos: ${dangling.join(', ')} — cross-links will use synthetic UIDs

What it means

During group sync, a manifest-declared link (link.type:link.contract) has from/to endpoints that are not in knownRepos — the set of repos that actually initialized and hold a pool handle, not merely everything listed in config.repos. Cross-links for those endpoints fall back to synthetic UIDs, so they cannot be traced to real indexed symbols.

Solutions

  1. Add the missing repo(s) named in the message to the group's config.repos with correct paths
  2. Fix why the repo failed to initialize (path, missing clone, permissions) so it gains a pool handle
  3. Remove or update stale link entries referencing repos no longer in the group
  4. Re-run group sync and confirm cross-links use real symbol UIDs

Example fix

# before — group config
repos = ["api", "web"]
# links manifest references "mobile" (not configured)

# after — add the repo or drop the link
repos = ["api", "web", "mobile"]
Defensive patterns

Strategy: validation

Validate before calling

// Validate before sync: every link endpoint must be a configured repo
const configured = new Set(groupConfig.repos); // config.repos entries
const dangling = allLinks.flatMap((link) =>
  [link.from, link.to].filter((repo) => !configured.has(repo)),
);
if (dangling.length > 0) {
  throw new Error(
    `links reference unconfigured repos: ${[...new Set(dangling)].join(', ')} — ` +
    `add them to config.repos or remove the links`,
  );
}

Type guard

function linkEndpointsConfigured(link: { from: string; to: string }, configured: ReadonlySet<string>): boolean {
  return configured.has(link.from) && configured.has(link.to);
}

Prevention

When it happens

Trigger: A repo referenced by a link was removed from (or never added to) config.repos, or its initialization failed (bad path, permissions) so it never gained a pool handle; the message names the exact dangling endpoints.

Common situations: Removing or renaming a group repo without updating the links manifest; typos in repo names in link declarations; a repo whose path fails to init during sync (clone missing, permissions).

Related errors


AI-assisted analysis of abhigyanpatwari/GitNexus@ac9a4e9abd (2026-08-20). Data as JSON: /api/errors/59b70d930d45bc93. Report an issue: GitHub.

Appendix: source

Thrown at gitnexus/src/core/group/sync.ts:324

  // would not open, or an extractor threw partway and the repo's staged
  // contracts were dropped. Kept separate from `missingRepos` because the two
  // need different answers from the operator: a missing repo must be indexed or
  // removed from the group, whereas this one is usually a version skew or a
  // lock and the logged error says which. Collapsing them (as this did) reports
  // a LadybugDB storage-version mismatch as "repo not found".
  const unreadableRepos: string[] = [];
  const repoSnapshots: Record<string, RepoSnapshot> = {};
  let autoContracts: StoredContract[] = [];
  const manifestCrossLinks: CrossLink[] = [];
  let registryEntries: RegistryEntry[] | undefined;

  // Group-path → pool identity for repos that successfully initialized. Drives
  // windowed manifest resolution below (re-init + lease per window). Keyed by
  // group path because manifest links reference repos by group path.
  const repoHandles = new Map<string, { poolId: string; lbugPath: string; repoPath: string }>();
  // Keep resolved disk paths even when extraction fails and removes the
  // corresponding handle; workspace discovery does not need a readable index.
  const resolvedRepoPaths = new Map<string, string>();
  // Every eviction lease this sync holds. Window loops release their own leases
  // (bounding residency); this set is the defensive outer-finally sweep —
  // release disposers are idempotent, so double-release is a safe no-op.
  const activeReleases = new Set<() => void>();

  try {
    const eo = opts?.extractorOverride;
    if (eo && eo.length === 0) {
      autoContracts = await (eo as () => Promise<StoredContract[]>)();
    } else {
      // Strict: an unreadable registry must not present as an empty one here.
      // `missingRepos` is derived from this list, and an all-missing sync is
      // allowed to write — so a lenient `[]` on EACCES/corruption would replace
      // a good contracts.json with an empty one and exit 0 (#3011, one frame up).
      registryEntries = await readRegistryStrict();
      const entries = registryEntries;
      const resolve = opts?.resolveRepoHandle ?? defaultResolveHandle(entries);
      if (!opts?.resolveRepoHandle) {

View on GitHub (pinned to ac9a4e9abd)