Skip to content

Generate SourceOSInteractionEvent types#117

Merged
mdheller merged 5 commits into
mainfrom
work/interaction-codegen-116
May 30, 2026
Merged

Generate SourceOSInteractionEvent types#117
mdheller merged 5 commits into
mainfrom
work/interaction-codegen-116

Conversation

@mdheller
Copy link
Copy Markdown
Contributor

Summary

Implements SourceOSInteractionEvent codegen from the canonical schema, closing the drift-control path tracked in #116.

This PR adds:

  • tools/generate_sourceos_interaction_types.py
  • generated/typescript/sourceos-interaction-event.ts
  • generated/python/sourceos_interaction_event.py
  • .github/workflows/sourceos-interaction-codegen.yml
  • catalog docs for downstream consumption and regeneration commands

Contract posture

schemas/SourceOSInteractionEvent.json remains the canonical source. Generated artifacts are downstream consumption aids for TypeScript and Python surfaces such as Noetica and AgentTerm.

Validation

New workflow runs:

python tools/generate_sourceos_interaction_types.py --check
python -m py_compile generated/python/sourceos_interaction_event.py

Related

Closes #116.

Downstream follow-up after merge:

  • migrate SocioProphet/Noetica from local hand-written mirror types to the generated TypeScript artifact or a vendored pinned copy;
  • migrate SourceOS-Linux/agent-term from local structural checks toward generated Python type/schema validation.

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.

Generate shared SourceOSInteractionEvent types for downstream surfaces

1 participant