Skip to content

[M13] Integrate the accepted OSTW semantic surface with Wright tooling services #120

Description

@Teakowa

Parent: #90
Depends on: #118

Goal

Make the accepted native OSTW semantic surface a first-class input to Wright's tooling-first workflows, reusing existing compiler/session/analyzer/language-service contracts rather than introducing an OSTW-specific tool stack.

Context

#118 lowers the first accepted OSTW corpus slice into Wright HIR. Wright's product priority is diagnostics, lint/static analysis, inspect/semantic query, safe source tooling, agent tooling, and CI/embedding; native OSTW support is incomplete if it only compiles.

This issue may proceed in parallel with forward Workshop emission once #118's HIR contract is stable.

Scope

  • Route .ostw / OSTW project inputs through existing check, lint, analyze, and inspect command/session paths.
  • Ensure shared analyzer findings, symbols, references, CFG/semantic queries, and lint infrastructure operate on OSTW-produced HIR without language-specific semantic forks.
  • Preserve root-relative multi-file source paths, spans, and provenance through structured wright-result/v1/tool responses.
  • Integrate the accepted OSTW surface with existing agent/tool request APIs so consumers do not need an OSTW-specific transport or upstream language server.
  • Add the editor-neutral language-service behaviors that naturally fall out of the accepted HIR boundary (at minimum diagnostics/symbol classification and other already-shared services where supported).
  • Add cross-input regression tests proving equivalent shared services work for OPY, Workshop, and the accepted OSTW slice.
  • Document any intentionally unsupported source-edit/refactoring operations rather than regenerating whole OSTW source.

Non-goals

  • Full upstream OSTW LSP feature parity.
  • Binding Wright to upstream LSP protocol types or requiring the pinned language server at runtime.
  • Full-source pretty-printing/comment-preserving OSTW regeneration.
  • Advanced OSTW classes/generics/lambdas/pattern matching outside the accepted corpus boundary.
  • Workshop -> OSTW reconstruction.
  • A new plugin/extension ABI.

Acceptance criteria

  • check, lint, analyze, and inspect accept the declared OSTW project/source boundary and return the same structured result contracts used by existing inputs.
  • Existing analyzer/lint/semantic-query implementations consume OSTW-produced HIR rather than duplicate OSTW-specific analysis logic.
  • Multi-file diagnostics/findings identify the correct OSTW source path/span/provenance.
  • Agent/tool APIs can inspect the accepted OSTW surface through shared session/services without an upstream runtime dependency.
  • Shared language-service capabilities remain frontend-neutral; missing advanced LSP functionality is explicitly documented rather than emulated through upstream runtime calls.
  • Cross-language regressions protect shared semantic-service behavior and current CI remains green.

Relationships

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions