docs: migrate missing pages + re-sync drifted pages (issue #26) - #28
docs: migrate missing pages + re-sync drifted pages (issue #26)#28Steve-Dusty wants to merge 3 commits into
Conversation
…tion#26) Adds missing pages from issue The-Swarm-Corporation#26 'Pages missing locally' section. Two upstream-referenced pages are intentionally excluded: - swarms/structs/maker.md - upstream mkdocs.yml references it but the file does not exist (404). Upstream commit 7d2bd1e7 removed the MAKER struct + source + docs. - swarms/agents/openai_assistant.md - same commit removed the OpenAIAssistant code (swarms/agents/openai_assistant.py, swarms/models/openai_assistant.py, examples wrapper) but left the doc orphaned. The class no longer exists in the library. New pages by group: - API Reference: agent-mcp, custom-swarm, agent-registry, multi-agent-helpers, subagent-registry - Agent Development: agent-loader, agents-yaml, fallback-models, diy-memory - Third-Party Agents (new nav group): new-agent, external-party-agents - Core Concepts: benefits, choosing-architecture All pages wired into docs.json. Validation: docs.json valid JSON, no leftover mkdocs syntax, all JSX balanced, mint broken-links clean. Closes part of The-Swarm-Corporation#26.
Both prediction-markets pages had a Card linking to /examples/finance/financial-analysis which does not exist; the actual page is at /examples/use-cases/financial-analysis. Surfaced by 'mint broken-links'.
…ion#26) For files in issue The-Swarm-Corporation#26's 'should be re-synced' section where upstream has gained substantial new content AND local had no post-migration content edits (only the gpt-4o -> claude-sonnet-4-6 swap from commit 548ae37), re-migrated from current upstream. Verified against swarms master at upstream HEAD 64ccdc9e (2026-05-14): all documented classes exist in source, constructor signatures match the docs, documented Agent methods exist. API Reference (14): graph-workflow, social-algorithms, heavy-swarm, debate-with-judge, majority-voting, mixture-of-agents, spreadsheet-swarm, llm-council, auto-swarm-builder, multi-agent-execution-utilities, multi-agent-router, agent-router, swarm-router, hierarchical-swarm Reasoning Agents (7): reflexion-agent, gkp-agent, reasoning-duo, self-consistency-agent, agent-judge, reasoning-agents-overview, reasoning-agent-router Each preserves local frontmatter title/icon and applies the 4o -> sonnet model-name swap project-wide. Validation: zero leftover mkdocs syntax, all JSX balanced, mint broken-links clean. Files deliberately NOT re-synced: - 3 AHEAD files with intentional post-migration local edits: api/sequential-workflow, agents/agent-memory, architectures/overview - 22 ambiguous files where local was editorially restructured by PR The-Swarm-Corporation#21/The-Swarm-Corporation#23 with different section organization than upstream Partial fix for The-Swarm-Corporation#26.
|
This has been open since May and is conflicting again. Before spending a rebase on it, a note on shape, because I don't think it should land as one PR. It's still needed. I checked the 13 added pages against But it's unreviewable as one change. +15,223 / −3,079 across 37 files mixes two different jobs:
Bundled together, the second job hides inside the first, and the diff conflicts with almost any docs change that lands meanwhile — which is why it has gone stale twice. Proposal: close this in favour of a series — one PR adding the missing pages plus their Happy to do that split, or to rebase this as-is if you'd rather take it in one go — just say which. |
|
Re-verified this against 1. The gap is still real — all 13 pagesI checked every path this PR adds, by path, against 13 of 13. Nothing has been migrated in the meantime. 2.
|
Summary
Addresses issue #26 (Docs audit: migrate/sync remaining pages from upstream swarms mkdocs nav).
Three things in this PR:
mint broken-links)Plus 2 upstream pages were verified-as-removed in upstream code and intentionally excluded.
What's in each commit
1.
docs: migrate 13 missing pages from upstream (issue #26)agent-mcp,custom-swarm,agent-registry,multi-agent-helpers,subagent-registryagent-loader,agents-yaml,fallback-models,diy-memorynew-agent,external-party-agentsbenefits,choosing-architectureEach page migrated from upstream
.mdto Mintlify.mdx(frontmatter, admonitions → callouts, content tabs →<Tabs>, code-fence languages, link rewrites, MDX safety).2.
docs: fix 2 broken Card links to financial-analysis pageBoth
examples/finance/prediction-markets-{kalshi,polymarket}.mdxhad a Card linking to/examples/finance/financial-analysis(which doesn't exist). The real page is at/examples/use-cases/financial-analysis. From merged PR #13. Surfaced bymint broken-links.3.
docs: re-sync 21 pages with upstream swarms (issue #26)For files in issue #26's "should be re-synced" list where:
gpt-4o → claude-sonnet-4-6swap from commit548ae37)Re-migrated from current upstream master. Local frontmatter (
title,icon) preserved; description regenerated from new intro;gpt-4o → claude-sonnet-4-6swap re-applied.Excluded pages (intentionally not migrated)
swarms/structs/maker.md→api/maker.mdxmkdocs.ymlreferences it but the file does not exist in the repo (404). Upstream commit7d2bd1e7removed the MAKER struct + source + docs together.swarms/agents/openai_assistant.md→agents/openai-assistant.mdx7d2bd1e7removedswarms/agents/openai_assistant.py,swarms/models/openai_assistant.py, andexamples/single_agent/external_agents/openai_assistant_wrapper.py— but leftdocs/swarms/agents/openai_assistant.mdorphaned. The class no longer exists in the library, so the doc isn't useful. Confirmed viagrep -rn 'class OpenAIAssistant' swarms/returning zero matches.Deferred work (still on the #26 backlog after this PR)
These have drift but auto-re-syncing would be wrong — saved for human judgment:
3 AHEAD_LOCAL_EDIT — your post-migration content edits would be destroyed:
api/sequential-workflow.mdx— yourf3baeca sequential workflow streamingcommit added streaming docs upstream doesn't haveagents/agent-memory.mdx— your5f7978f update memory docsrewrote itarchitectures/overview.mdx— your3fbc58a clean up multi agent docsintentionally shortened it5 LOCAL_BIGGER — local has more sections/structure than upstream (heavily editorialized by PRs #21/#23):
api/structs-overview,api/orchestration-methods,api/concurrent-workflow,api/model-router,api/skill-orchestra17 REVIEW — mixed signals; both upstream and local have unique sections. Auto-overwriting either way loses content:
api/planner-worker-swarm,api/advisor-swarm,api/planner-generator-evaluator,api/round-robin-swarm,api/self-moa-seq,api/forest-swarm,api/council-as-judge,api/hierarchical-communication-framework,api/hhcs,api/swarm-matcher,api/swarm-rearrange,api/agent-rearrange,api/group-chat,api/batched-grid-workflow,agents/iterative-agent,agents/agent-skills,agents/structured-outputsVerification
Cross-checked against upstream
kyegomez/swarmsatmasterhead64ccdc9e(2026-05-14):mint broken-links— no broken links across the entire docs sitedocs.json— valid JSON; every nav entry resolves to a file<Tabs>/<Tab>/<Note>/<Tip>/<Warning>/<Info>/<Check>/<CardGroup>/<Card>!!!,=== ",:material-,:octicons-,<div class>)grep -rn 'class X'forAgentJudge,AgentLoader,AgentRegistry,AgentRouter,AutoSwarmBuilder,DebateWithJudge,GKPAgent,GraphWorkflow,HeavySwarm,HierarchicalSwarm,IterativeReflectiveExpansion,LLMCouncil,MajorityVoting,MixtureOfAgents,MultiAgentRouter,ReasoningAgentRouter,ReasoningDuo,ReflexionAgent,SelfConsistencyAgent,SocialAlgorithms,SpreadSheetSwarm,SubagentRegistry,SwarmRouter__init__args match documented param tables forHeavySwarm(17/17),LLMCouncil(7/7),SwarmRouter,MajorityVoting,DebateWithJudge,GraphWorkflow,HierarchicalSwarm,AgentRegistry,SubagentRegistry,AgentLoaderAgent.__init__confirmed to exposemcp_url,mcp_urls,mcp_config(forapi/agent-mcp.mdx) andfallback_model_name,fallback_models(foragents/fallback-models.mdx)create_agents_from_yaml()referenced byagents-yaml.mdxexists atswarms/agents/create_agents_from_yaml.py:168talk_to,talk_to_multiple_agents,receive_message,send_agent_message) exist on theAgentclassgpt-4oreferences (all swapped toclaude-sonnet-4-6)Stats
docs.json)Closes part of #26.