Skip to content

mecatequi: simplify CI help and exit guidance - #1668

Merged
danbarr merged 3 commits into
docs/mecated-help-1662from
docs/mecatequi-help-1661
Sep 17, 2026
Merged

danbarr merged 3 commits into
docs/mecated-help-1662from
docs/mecatequi-help-1661

Conversation

@danbarr

@danbarr danbarr commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Rewrites mecatequi --help around CI inputs, output destinations, trust boundaries, and completion semantics.
  • Simplifies output-routing and exit-status guidance while preserving the critical distinction that exit 0 does not guarantee task completion.
  • Keeps behavior, defaults, JSON field names, output formats, and exit semantics unchanged.

Development stage

  • Plan / Interface — Bounded/Architectural behavioral and exact-interface contract; no implementation
  • Implementation — based on an approved, merged Plan / Interface PR
  • Combined — compact one-task Bounded/Architectural exception; no separate plan PR,
    and the in-PR plan declares **Expected tasks:** 1, a non-placeholder
    **Combined rationale:**, and no runtime/public/operator/persistence/trust-boundary
    interface change (None — rationale; workflow-only meta-changes may review process
    docs/skills here)
  • Spike / Routine — acceptance-plan spine exempt; Spike evidence does not ship as-is

Contract linkage

  • Work classification: Routine
  • Classification rationale: Copy-only CLI help refinement with no behavior, defaults, or interface changes.
  • Decision record: None; no architectural decision.
  • Human waiver of spine: No
  • Acceptance plan: N/A; Routine work.
  • Human decisions resolved and recorded: N/A; the issue defines the copy scope and acceptance criteria.
  • Plan / Interface PR: N/A
  • Approved commit baseline: N/A
  • Combined/exemption rationale: N/A; Routine work.

Interface conformance

  • No runtime or machine-readable interface changes; only user-facing help text changes.

Issue relationship

Closes #1661

Type of change

  • Behavioral/interface plan
  • Bug fix
  • New feature
  • Refactoring (no behavior change)
  • Dependency update
  • Documentation/process
  • Other (describe):

Test plan

Baseline checks

  • Acceptance-plan checker
  • Linting (task lint)
  • Offline test suite (task test) — package coverage passed; the full command reached one unrelated existing macOS failure in TestCommandRunnerEnvironment_Scenario2_DefaultScrub because PATH=/bin cannot find env
  • Offline demo (go run ./cmd/mecademo)
  • Markdown changed: docs generation/link checks (task docs)
  • User docs/user-facing behavior changed: site build (task site:build)
  • Guarded engine API affected: compatibility check (task api:check)
  • Intentional engine API change: task api:update + engine/CHANGELOG.md
  • Landed plan: strict acceptance trace (task ac-trace-strict)
  • Final implementation review: /panel-review

Additional checks:

  • task build
  • go test ./cmd/mecatequi
  • git diff --check
  • Manual inspection of the complete rendered mecatequi --help output

User-facing change

mecatequi --help now makes required inputs, distinct output sinks, trust controls, and exit interpretation easier to find and understand.

Special notes for reviewers

This PR is stacked on #1667 so its rendered help includes the shared CLI wording polished there.

@danbarr
danbarr added this pull request to stack #1670 September 16, 2026 22:11
@danbarr danbarr changed the title docs(mecatequi): simplify CLI help mecatequi: simplify CI help and exit guidance Sep 16, 2026
@jhrozek

jhrozek commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

@danbarr instead of adding inline comments I pushed a fixup - feel free to just remove it if you disagree

The chang helps to clarify that headless posture requires --trust-project for project content, describe run budgets as per-engine and team budgets as round-boundary checks, and show that --prompt and --prompt-file are alternatives

@danbarr

danbarr commented Sep 17, 2026

Copy link
Copy Markdown
Contributor Author

@jhrozek Thanks for the fixup. I kept the prompt-input and team-budget clarifications, then adjusted three details after checking the implementation:

  • --max-run-tokens is a per-run ceiling that each child run inherits. It is not a shared aggregate across the delegation tree, so the help now describes the run boundary and inherited limit directly.
  • --headless=false surfaces child permission requests, but mecatequi has no approval interface. Any surfaced request therefore cancels the run; the revised text makes that consequence explicit.
  • Headless project trust can come from --trust-project, trustedWorkspaces:, or an undrifted remembered trust decision. Posture alone does not grant it. The full posture ladder already lives in the canonical permissions guide, so I shortened the CLI help to state only that important boundary instead of reproducing the whole explanation.

I pushed those refinements in 6c7c92e. I filed #1680 to tighten the corresponding mecatequi and permissions documentation, including the per-run terminology and --headless=false behavior.

@danbarr
danbarr force-pushed the docs/mecatequi-help-1661 branch from 6c7c92e to 0a12096 Compare September 17, 2026 12:51
@danbarr
danbarr merged commit a54a5ba into main Sep 17, 2026
35 checks passed
@danbarr
danbarr deleted the docs/mecatequi-help-1661 branch September 17, 2026 13:06
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Sep 21, 2026
2 tasks
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.

mecatequi: simplify CI help and exit guidance

2 participants