Skip to content

docs(contract): define agent-native CLI product - #159

Merged
KalebCole merged 2 commits into
mainfrom
docs/agent-native-cli-contract
Aug 10, 2026
Merged

KalebCole merged 2 commits into
mainfrom
docs/agent-native-cli-contract

Conversation

@KalebCole

@KalebCole KalebCole commented Aug 10, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • define the approved public command hierarchy, inputs, normalized JSON data, typed failures, pagination, and authentication behavior
  • require a bound plan before every remote mutation and explicit confirmation for consequential actions
  • keep raw transport operations private and exclude speculative local helpers
  • treat missing remote evidence as an implementation gate and later remote drift as contract.protocol_changed
  • establish the shared domain language in CONTEXT.md

The decisions were reviewed through the interactive prototype and approved by the owner in issue #154. API contract-refresh automation remains separate in #157 and #158.

Closes #154

Summary by CodeRabbit

  • Documentation
    • Added comprehensive documentation for the Partiful CLI’s product contract and remote API concepts.
    • Documented command syntax, structured responses, error types, exit codes, pagination, and authentication behavior.
    • Defined supported event, guest, RSVP, contact, cohost, blast, poster, schema, and diagnostics capabilities.
    • Documented mutation planning, confirmation tokens, privacy restrictions, implementation boundaries, and excluded features.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: 47ee56c8-dca1-4e88-97f1-43edd25aed99
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@coderabbitai

coderabbitai Bot commented Aug 10, 2026 •

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@KalebCole, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 55 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 0f013120-bf83-4fd7-b68a-18b68f6465d8

📥 Commits

Reviewing files that changed from the base of the PR and between 9b463ec and 9fb7aca.

📒 Files selected for processing (2)
  • CONTEXT.md
  • docs/CLI-PRODUCT-CONTRACT.md
📝 Walkthrough

Walkthrough

The PR adds project context and an approved product contract for the greenfield Go partiful CLI. The documents define command behavior, JSON protocols, failure handling, mutation safety, authentication, implementation boundaries, and excluded features.

Changes

Go CLI contract

Layer / File(s) Summary
CLI context and implementation boundaries
CONTEXT.md
Defines terminology for remote contracts, product behavior, research evidence, implementation gates, protocol changes, mutation planning, confirmation tokens, consequential actions, and the TypeScript-to-Go cutover.
Public CLI product contract
docs/CLI-PRODUCT-CONTRACT.md
Specifies invocation rules, structured input, JSON success and failure envelopes, exit codes, pagination, authentication, mutation safety, public commands, privacy restrictions, diagnostics, private remote boundaries, and excluded features.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related issues

  • KalebCole/partiful-cli#114 — The documented Go CLI contract provides the specification and cutover foundation for the greenfield CLI mapping work.
  • KalebCole/partiful-cli#157 — The contract defines contract.protocol_changed and the supervised boundaries expanded by this issue.

Possibly related PRs

  • KalebCole/partiful-cli#156 — The product contract builds on the remote API contract and research artifacts introduced by this PR.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the documentation change that defines the agent-native CLI product contract.
Linked Issues check ✅ Passed The documentation defines commands, inputs, JSON outputs, typed failures, safety rules, and scope required by issue #154.
Out of Scope Changes check ✅ Passed The changes stay within the approved CLI product contract and shared terminology objectives; no unrelated changes are present.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/agent-native-cli-contract

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Aug 10, 2026 •

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-08-10 23:26 UTC

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@CONTEXT.md`:
- Around line 35-37: Update the plan-token creation and validation flow
described in the Plan token documentation so each token is internally bound to
the authenticated account. Make --apply reject tokens presented by a different
authenticated account while keeping the account identifier private and absent
from token output or user-facing errors.

In `@docs/CLI-PRODUCT-CONTRACT.md`:
- Around line 450-468: Align the RSVP schemas documented for rsvp.set and
rsvp.get by defining a shared stable shape that includes the existing RSVP
model’s questionnaireResponse field and the timezone field, or explicitly mark
these inputs write-only. Update the “complete current RSVP shape” claim and both
command sections consistently, avoiding the mismatched questionnaire field name.
- Around line 17-25: Synchronize the CLI documentation in
skills/partiful/SKILL.md and its linked references with the contract: remove
legacy --format, --output/-o, --dry-run, --yes, and --force behavior; document
the JSON envelope and --apply --plan/--apply --confirm workflow; eliminate
phone-number and Partiful user-ID inputs or output claims; and align RSVP
command names and output schemas with the contract.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 9ee74f41-3b3a-48e9-8690-11a9378ad08b

📥 Commits

Reviewing files that changed from the base of the PR and between f77c581 and 9b463ec.

📒 Files selected for processing (2)
  • CONTEXT.md
  • docs/CLI-PRODUCT-CONTRACT.md

Comment thread CONTEXT.md Resolved
Comment thread docs/CLI-PRODUCT-CONTRACT.md Resolved
Comment thread docs/CLI-PRODUCT-CONTRACT.md Resolved
Comment thread docs/CLI-PRODUCT-CONTRACT.md Resolved
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 47ee56c8-dca1-4e88-97f1-43edd25aed99
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.

Design the agent-native Go CLI product contract

1 participant