Skip to content

refactor: make command protocol consumer-owned - #29

Merged
codeforester merged 1 commit into
mainfrom
enhancement/27-20260731-protocol-schemas
Aug 1, 2026
Merged

refactor: make command protocol consumer-owned#29
codeforester merged 1 commit into
mainfrom
enhancement/27-20260731-protocol-schemas

Conversation

@codeforester

Copy link
Copy Markdown
Contributor

Summary

  • remove Base project/build/demo schemas from the generic command protocol module
  • make the generic registry empty until a consumer registers its record schemas
  • use COMMAND_PROTOCOL_V1 as the neutral default while allowing consumers to preserve legacy headers
  • update protocol tests, documentation, and changelog for consumer-owned schemas

Validation

  • uv run --extra dev pytest -q
  • all base-cli tests pass

The coordinated Base adapter migration is in basefoundry/base#1843.

Fixes #27

@codeforester
codeforester marked this pull request as ready for review August 1, 2026 02:55
@codeforester
codeforester merged commit d8c703f into main Aug 1, 2026
11 checks passed
@codeforester
codeforester deleted the enhancement/27-20260731-protocol-schemas branch August 1, 2026 02:56
codeforester added a commit to basefoundry/base that referenced this pull request Aug 1, 2026
## 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
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.

Separate generic command protocol framing from Base record schemas

1 participant