Skip to content

docs(manifest): add runnable doctest for AgentManifest#17

Merged
ForeverAngry merged 1 commit into
mainfrom
chore/audit-2026-05-18
May 18, 2026
Merged

docs(manifest): add runnable doctest for AgentManifest#17
ForeverAngry merged 1 commit into
mainfrom
chore/audit-2026-05-18

Conversation

@ForeverAngry
Copy link
Copy Markdown
Owner

Doctest exercises the full YAML -> manifest -> materialize round-trip against an empty host ToolRegistry. Pins the no-MCP-spawn invariant in compiled code instead of just AGENTS.md prose. cargo test --all-features covers it (6 doctests pass locally).

Exercises YAML -> AgentManifest -> materialize_local_and_delegate_tools
against an empty host ToolRegistry. Pins the kernel's no-MCP-spawn
invariant in code, not just AGENTS.md prose. Covered by cargo test
--all-features.
Copilot AI review requested due to automatic review settings May 18, 2026 16:29
@ForeverAngry ForeverAngry merged commit ad04d7a into main May 18, 2026
@ForeverAngry ForeverAngry deleted the chore/audit-2026-05-18 branch May 18, 2026 16:29
@github-actions github-actions Bot mentioned this pull request May 17, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a runnable rustdoc doctest to AgentManifest documenting and exercising the YAML → AgentManifest parse path and tool materialization against an empty host ToolRegistry, reinforcing the invariant that MCP server spawning is host-owned.

Changes:

  • Added a rustdoc “Example” doctest for AgentManifest demonstrating parsing and delegate stub materialization.
  • Doctest asserts the delegate stub is registered from delegates even with an empty host registry.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

3 participants