Skip to content

fix(agent): align the blue_cell export with the decepticon.agents discovery contract - #9

Merged
PurpleCHOIms merged 1 commit into
mainfrom
fix/agents-entrypoint-lazy-graph
Oct 26, 2026
Merged

PurpleCHOIms merged 1 commit into
mainfrom
fix/agents-entrypoint-lazy-graph

Conversation

@PurpleCHOIms

Copy link
Copy Markdown
Member

The Decepticon graph registry discovers plugin agents under the decepticon.agents entry-point group, and its loader contract requires a module-level graph attribute (module:graph). Two alignments:

  • The entry-point group moves from the ad-hoc decepticon.graphs (introduced in the gateway PR) to the existing decepticon.agents group that decepticon_core.plugin_loader.load_plugin_agents() already discovers — no Decepticon-side registry changes needed.
  • The graph export becomes a PEP 562 module-level __getattr__ (lazy compiled graph) instead of a factory function — the discovery contract wants the attribute, and laziness keeps the model env read at resolution time. Verified: mod.graph resolves to CompiledStateGraph.

@PurpleCHOIms
PurpleCHOIms merged commit 3c4c017 into main Oct 26, 2026
1 check failed
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.

1 participant