You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expose Wright as reusable infrastructure for other projects, automation systems, and coding agents through stable toolchain APIs built on the same compiler/session and semantic services as the CLI.
M9 turns Wright from a standalone tool into a platform that other tools can embed without scraping CLI text or depending on internal IR layout.
Scope
Stabilize a Rust embedding API for project loading, compile/check/analyze/query workflows.
Evolve the existing read-only semantic service into a project/session-aware structured tool API.
Provide structured semantic operations for rules, symbols, references, usage, CFGs, findings, target metadata, and compilation results.
Add agent-oriented queries where they have demonstrated value, such as callers/dependencies, rule inspection, variable tracing, and cost estimation.
Define safe source-edit/refactoring contracts only where evidence justifies mutation; avoid exposing raw mutable IR as a public compatibility surface.
Keep transport/protocol adapters thin and optional.
Allow CLI, agent harnesses, and future LSP integrations to reuse the same owned toolchain contracts.
M9 sub-issues are provisional until #55 completes. #62 is a hard re-evaluation gate; M10 should be revised if the actual post-v1 toolchain boundaries differ from current assumptions.
Goal
Expose Wright as reusable infrastructure for other projects, automation systems, and coding agents through stable toolchain APIs built on the same compiler/session and semantic services as the CLI.
M9 turns Wright from a standalone tool into a platform that other tools can embed without scraping CLI text or depending on internal IR layout.
Scope
M9 sub-issues
Architecture
No single agent protocol is the architecture.
Non-goals
Exit criteria
Planning note
M9 sub-issues are provisional until #55 completes. #62 is a hard re-evaluation gate; M10 should be revised if the actual post-v1 toolchain boundaries differ from current assumptions.