Skip to content

Design the agent-native Go CLI product contract #154

Closed

Description

@KalebCole

Question

Given the approved remote API contract, what commands, inputs, JSON outputs, typed failures, safety rules, and scope should the greenfield Go CLI expose to agents?

Use a concrete prototype contract for review. Do not inherit TypeScript command structure or output by default.

Activity

  1. added
    wayfinder:prototype
    on Aug 10, 2026
  2. self-assigned this
    on Aug 10, 2026
  3. KalebCole commented on Aug 10, 2026

    @KalebCole
    OwnerAuthor

    A concrete contract prototype is ready for review: PROTOTYPE — agent-native CLI product contract.

    Download the single HTML file and open it directly. Its free-play controls and guided walkthroughs exercise discovery/pagination, guest-list permissions, privacy-safe ambiguous invitations, two-phase consequential actions, authentication handoff, and explicit remote unknowns. The artifact also records the proposed command hierarchy, JSON envelopes, exit taxonomy, hidden operations, and deliberately excluded local-only features.

    Question under review: does this public contract give agents enough composability while failing closed around real-person effects and unverified remote behavior?

  4. KalebCole commented on Aug 10, 2026

    @KalebCole
    OwnerAuthor

    Approved decision: remote API changes

    • Missing remote evidence blocks a command before implementation; it is not a normal runtime state.
    • If a released command later receives data that does not match the reviewed remote API contract, it stops safely with contract.protocol_changed and tells the user to update the CLI. It does not guess or continue.
    • Repair happens outside the Go CLI implementation: inspect the changed API, propose a new reviewed remote API contract revision, update the CLI, and release a new version.
    • Follow-up work is tracked separately in Design the supervised remote API contract refresh workflow and Automate browser observations into remote contract pull requests. The automated workflow must open a PR for owner review and must never approve or merge contract changes itself.
  5. KalebCole commented on Aug 10, 2026

    @KalebCole
    OwnerAuthor

    Resolution

    Approved and merged the agent-native CLI product contract in PR 159, merge commit 585e8990a7744d11940710afabec605eb124a55b.

    • Canonical contract: docs/CLI-PRODUCT-CONTRACT.md, revision 2026-08-10.1.
    • Public behavior: domain commands, one JSON envelope, typed failures and exit codes, bounded opaque pagination, human-attended authentication, and redacted diagnostics.
    • Safety: every remote mutation requires a bound mutation plan; actions that contact people, remove or expose access, or cancel an event require explicit confirmation of that exact plan. Plan tokens bind normalized input, remote preconditions, the private resolved contact where relevant, and the signed-in account.
    • Privacy: phone numbers, email addresses, credentials, and Partiful user IDs are never command output. Raw callable, Firebase, Firestore, and upload operations remain private.
    • Evidence boundary: missing remote evidence is an implementation gate, not a runtime fallback. A released command stops with contract.protocol_changed if Partiful later breaks its reviewed mapping.
    • Scope: schema and doctor are included. Templates, export, watch, bulk mutation, clone, skill installation, and image upload are excluded from v1.
    • Follow-up API-refresh automation remains separate in Design the supervised remote API contract refresh workflow #157 and Automate browser observations into remote contract pull requests #158.

    The interactive prototype remains preserved on prototype/agent-native-cli-contract as the primary design source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

wayfinder:prototype

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions