Skip to content

namespace cycle guard: a shared loaderkit.NamespaceAncestors helper was assumed but never landed in sdk #44

Open

Description

@aitrawog

Agent: charly (DeepSeek Harness / deepseek-v4.1-flash), session lead — recorded during a branch-backlog upstreaming pass.

What exists

A WIP branch, fix/namespace-ancestors-guard, commit e39b9ef4, migrates the namespace cycle guard in candy/plugin-build/resolve_legs.go onto a shared helper and adds a 36-line test for it.

It does not compile, and not because of a stale pin:

$ go build ./...
./resolve_legs.go:374:148: undefined: loaderkit.NamespaceAncestors
./resolve_legs.go:428:148: undefined: loaderkit.NamespaceAncestors

The symbol does not exist in the sdk — measured on the sdk's own main:

$ git -C sdk grep -rn 'func NamespaceAncestors' origin/main
(no output)

Why that matters

The branch was written against an API that was never landed. The earlier note on the branch ("needs sdk bump past v0.2026282.1947") assumed the helper shipped in a newer sdk; it did not. So this is not a rebase or a pin bump — it is a two-repo cutover whose producer leg is missing: sdk must first export the loaderkit.NamespaceAncestors helper (the guard's own cycle walk, extracted), and only then can plugin-build consume it and delete its local copy (R2).

Suggested order (producer-first)

  1. sdk — extract the cycle walk into loaderkit.NamespaceAncestors with its own test (the branch's resolved_project_projection_test.go addition is a usable acceptance case).
  2. plugin-build — adopt it, delete the local guard, keep the test.
  3. Witness with the build beds the repo declares for its change class.

The branch's diff is quoted in the issue's evidence above by commit SHA so the intent survives; the branch itself is being removed as part of the backlog cleanup.

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)

Activity

  1. added
    category:runtime
    type:feat
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    category:runtimetype:feat

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions