Skip to content

Vendor generated SourceOS interaction Python types#47

Merged
mdheller merged 3 commits into
mainfrom
work/generated-interaction-types
May 30, 2026
Merged

Vendor generated SourceOS interaction Python types#47
mdheller merged 3 commits into
mainfrom
work/generated-interaction-types

Conversation

@mdheller
Copy link
Copy Markdown
Contributor

Summary

Migrates AgentTerm toward the generated SourceOS interaction contract artifact from sourceos-spec.

This PR adds:

  • src/agent_term/contracts/sourceos/generated/sourceos_interaction_event.py
  • renderer imports of the generated SourceOSInteractionEvent TypedDict and required-field list
  • tests proving the generated artifact imports and drives the existing render/convert path

Contract source

Vendored from:

  • SourceOS-Linux/sourceos-spec commit c7f8c2d9e42a56e1127c2f9b85649cbea0f0a9fa
  • generated/python/sourceos_interaction_event.py

Boundary posture

No runtime authority moves into AgentTerm. AgentTerm remains the operator surface. This change keeps local fail-closed validation while anchoring type shape to the canonical generated SourceOS contract.

Validation expected

ruff check .
pytest

Related

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.

1 participant