Skip to content

docs: fix CompilerExtension default impl in ir.md and missing container_runtime.rs in AGENTS.md tree - #2115

Draft
github-actions[bot] wants to merge 1 commit into
mainfrom
docs/fix-ir-extension-tree-drift-578eb8d5e2414ba5
Draft

docs: fix CompilerExtension default impl in ir.md and missing container_runtime.rs in AGENTS.md tree#2115
github-actions[bot] wants to merge 1 commit into
mainfrom
docs/fix-ir-extension-tree-drift-578eb8d5e2414ba5

Conversation

@github-actions

@github-actions github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Agent Documentation Update

Findings

Area Issue File(s)
accuracy docs/ir.md's CompilerExtension trait snippet showed declarations() as a required method with no body, contradicting docs/extending.md and the actual trait definition in src/compile/extensions/mod.rs, which gives it a default implementation (Ok(Declarations::default())). A reader of ir.md alone would incorrectly conclude every extension must implement declarations(). docs/ir.md, src/compile/extensions/mod.rs
structure AGENTS.md's architecture tree under src/compile/extensions/ omitted container_runtime.rs, an existing module providing typed Docker runtime configuration for MCPG stdio servers (mount modes, container args). AGENTS.md, src/compile/extensions/container_runtime.rs

Applied Fixes

  • Updated the CompilerExtension trait code block in docs/ir.md to include the default declarations() implementation, matching docs/extending.md and the real trait.
  • Added a container_runtime.rs entry to the extensions/ subtree in AGENTS.md's architecture diagram.

Notes

Verified by reading src/compile/extensions/mod.rs directly (trait definition at the CompilerExtension declaration) and confirming docs/extending.md already documented the default correctly, making docs/ir.md the outlier. Confirmed container_runtime.rs exists on disk and is referenced by mod.rs but was absent from the AGENTS.md tree via a full diff of find src -name '*.rs' against filenames mentioned in AGENTS.md. Other areas audited this run (CLI commands, safe-outputs tool table, front-matter fields, network/ir/extending cross-checks, schedule-syntax, tools/runtimes config, parameters/execution-context/conclusion, all three prompts/*.md guides) showed no material drift, so no changes were made there.


Created by the agent-documentation maintainer workflow.

Generated by Agent Documentation Maintainer · auto · 177.8 AIC · ⌖ 4.98 AIC · ⊞ 13.6K ·

…e.rs entry

- docs/ir.md showed CompilerExtension::declarations() as a required method
  with no body, contradicting docs/extending.md and the actual trait in
  src/compile/extensions/mod.rs, which gives it a default implementation
  returning Ok(Declarations::default()).
- AGENTS.md's architecture tree omitted src/compile/extensions/container_runtime.rs,
  an existing module (typed Docker runtime config for MCPG stdio servers).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
2 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

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.

0 participants