Skip to content

refactor: move command protocol schemas into Base - #1844

Merged
codeforester merged 2 commits into
mainfrom
enhancement/1843-20260731-protocol-adapter
Aug 1, 2026
Merged

refactor: move command protocol schemas into Base#1844
codeforester merged 2 commits into
mainfrom
enhancement/1843-20260731-protocol-adapter

Conversation

@codeforester

Copy link
Copy Markdown
Collaborator

Summary

  • add a Base-owned command protocol adapter with all Base record schemas
  • preserve BASE_COMMAND_PROTOCOL_V1 for the Bash peer while generic base-cli uses its neutral protocol header
  • route Base Python producers and decoders through the consumer adapter
  • document the ownership boundary and update the cross-language protocol test

Validation

  • PYTHONPATH=/Users/rameshhp/work/base-cli-worktrees/27-protocol-schemas/lib/python:cli/python /Users/rameshhp/.base.d/base/.venv/bin/python -m pytest -q
  • 931 passed, 1 skipped, 248 subtests passed
  • full pylint suite passes
  • focused command-protocol BATS suite: 9 passed
  • git diff --check

Depends on basefoundry/base-cli#29.

Fixes #1843

@codeforester
codeforester marked this pull request as ready for review August 1, 2026 03:01
@codeforester
codeforester requested a review from a team as a code owner August 1, 2026 03:01
@codeforester
codeforester merged commit a943931 into main Aug 1, 2026
28 checks passed
@codeforester
codeforester deleted the enhancement/1843-20260731-protocol-adapter branch August 1, 2026 03:01
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.

Migrate Base command protocol schemas into the consumer adapter

1 participant