Skip to content

feat(cli,contract): --reviewer and --qa on ceki contract create#7

Open
iWedmak wants to merge 1 commit into
masterfrom
feature/2465-contract-create-reviewer-qa
Open

feat(cli,contract): --reviewer and --qa on ceki contract create#7
iWedmak wants to merge 1 commit into
masterfrom
feature/2465-contract-create-reviewer-qa

Conversation

@iWedmak

@iWedmak iWedmak commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Summary

Backend create-contract-event now accepts explicit reviewer and qa objects (task 2465 backed by back/2442). Without them the event stays a clean Hand role. Expose the same surface on the CLI + SDK:

  • ceki contract create CID --benefitable agent:N --reviewer agent:M --qa agent:K attaches both roles.
  • --reviewer / --qa accept the same agent:N / user:N form as --benefitable.
  • They are only forwarded into the payload when supplied; omitted = clean Hand (no auto-attach).
  • ContractClient.create() gets the matching reviewer= / qa= kwargs.

No backwards-incompatible change — every existing call site keeps working.

Test plan

  • ruff check . — All checks passed
  • pytest tests/test_contract.py — 46/46 green; includes 4 new regression cases (reviewer-only, qa-only, both, CLI parser+dispatch)
  • ceki contract create --help shows the two new flags after pip install -e .
  • reviewer: re-verify against a real contract once merged

Backend create-contract-event now accepts explicit reviewer/qa objects
({type, value}); without them the event stays a clean Hand. Expose the
same surface on the CLI + SDK: matching shape to --benefitable
(agent:N / user:N), only forwarded into the payload when supplied.

Tests: regression cases for the contract client (reviewer-only, qa-only,
both, neither) plus a CLI parser dispatch case wiring all three through.
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